]> git.ipfire.org Git - thirdparty/gcc.git/blame - libquadmath/configure
arm: Factorize several occurrences of the same code into reg_needs_saving_p
[thirdparty/gcc.git] / libquadmath / configure
CommitLineData
1ec601bf
FXC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for GCC Quad-precision Math Library 0.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1ec601bf 7#
1ec601bf
FXC
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
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 }
79fi
80
81
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.
22e05272 90as_myself=
1ec601bf
FXC
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
1ec601bf
FXC
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
1ec601bf
FXC
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1d92226b 199test \$(( 1 + 1 )) = 2 || exit 1
1ec601bf
FXC
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
1d92226b 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
1ec601bf
FXC
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
1ec601bf
FXC
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1ec601bf
FXC
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
1ec601bf
FXC
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
1ec601bf
FXC
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
1ec601bf
FXC
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1ec601bf 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
1ec601bf
FXC
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
1ec601bf
FXC
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
1ec601bf 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
1ec601bf
FXC
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
1ec601bf
FXC
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
1ec601bf
FXC
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
1ec601bf
FXC
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
1ec601bf
FXC
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1ec601bf
FXC
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='GCC Quad-precision Math Library'
589PACKAGE_TARNAME='libquadmath'
590PACKAGE_VERSION='0.1'
591PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609# include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
3c36aa6b 635get_gcc_base_ver
4c993c44
TB
636GENINSRC_FALSE
637GENINSRC_TRUE
fda26abe 638XCFLAGS
1ec601bf
FXC
639BUILD_LIBQUADMATH_FALSE
640BUILD_LIBQUADMATH_TRUE
641LIBQUAD_USE_SYMVER_SUN_FALSE
642LIBQUAD_USE_SYMVER_SUN_TRUE
643LIBQUAD_USE_SYMVER_GNU_FALSE
644LIBQUAD_USE_SYMVER_GNU_TRUE
645LIBQUAD_USE_SYMVER_FALSE
646LIBQUAD_USE_SYMVER_TRUE
647toolexeclibdir
648toolexecdir
1ec601bf
FXC
649MAINT
650MAINTAINER_MODE_FALSE
651MAINTAINER_MODE_TRUE
652enable_static
653enable_shared
7de6ba7a 654lt_host_flags
1ec601bf
FXC
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660RANLIB
661AR
662OBJDUMP
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
1d92226b
JJ
669SED
670LIBTOOL
671REPORT_BUGS_TEXI
672REPORT_BUGS_TO
673BUILD_INFO_FALSE
674BUILD_INFO_TRUE
1ec601bf
FXC
675EGREP
676GREP
1d92226b 677CPP
1ec601bf
FXC
678am__fastdepCC_FALSE
679am__fastdepCC_TRUE
680CCDEPMODE
5d79f496 681am__nodep
1ec601bf
FXC
682AMDEPBACKSLASH
683AMDEP_FALSE
684AMDEP_TRUE
685am__quote
686am__include
687DEPDIR
688OBJEXT
689EXEEXT
690ac_ct_CC
691CPPFLAGS
692LDFLAGS
693CFLAGS
694CC
22e05272
JM
695AM_BACKSLASH
696AM_DEFAULT_VERBOSITY
697AM_DEFAULT_V
698AM_V
1ec601bf
FXC
699am__untar
700am__tar
701AMTAR
702am__leading_dot
703SET_MAKE
704AWK
705mkdir_p
706MKDIR_P
707INSTALL_STRIP_PROGRAM
708STRIP
709install_sh
710MAKEINFO
711AUTOHEADER
712AUTOMAKE
713AUTOCONF
714ACLOCAL
715VERSION
716PACKAGE
717CYGPATH_W
718am__isrc
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
ee5f0523 722multi_basedir
fabfcf5e 723target_noncanonical
1ec601bf
FXC
724target_os
725target_vendor
726target_cpu
727target
728host_os
729host_vendor
730host_cpu
731host
732build_os
733build_vendor
734build_cpu
735build
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
ee5f0523 777enable_multilib
22e05272 778enable_silent_rules
1ec601bf 779enable_version_specific_runtime_libs
1d92226b 780enable_dependency_tracking
642d2873 781with_bugurl
1ec601bf
FXC
782enable_shared
783enable_static
784with_pic
785enable_fast_install
786with_gnu_ld
787enable_libtool_lock
788enable_maintainer_mode
e8e66971 789with_toolexeclibdir
bf382f5f 790enable_symvers
fda26abe 791enable_cet
4c993c44 792enable_generated_files_in_srcdir
3c36aa6b 793with_gcc_major_version_only
1ec601bf
FXC
794'
795 ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CPP'
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842includedir='${prefix}/include'
843oldincludedir='/usr/include'
844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
853
854ac_prev=
855ac_dashdash=
856for ac_option
857do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
863 fi
864
865 case $ac_option in
22e05272
JM
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
1ec601bf
FXC
869 esac
870
871 # Accept the important Cygnus configure options, so we can diagnose typos.
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 913 as_fn_error $? "invalid feature name: $ac_useropt"
1ec601bf
FXC
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 939 as_fn_error $? "invalid feature name: $ac_useropt"
1ec601bf
FXC
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944"enable_$ac_useropt"
945"*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1143 as_fn_error $? "invalid package name: $ac_useropt"
1ec601bf
FXC
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148"with_$ac_useropt"
1149"*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1154
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1159 as_fn_error $? "invalid package name: $ac_useropt"
1ec601bf
FXC
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164"with_$ac_useropt"
1165"*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1170
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1174
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1181
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1188
22e05272
JM
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190Try \`$0 --help' for more information"
1ec601bf
FXC
1191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1ec601bf
FXC
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1202
1203 *)
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1ec601bf
FXC
1209 ;;
1210
1211 esac
1212done
1213
1214if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1216 as_fn_error $? "missing argument to $ac_option"
1ec601bf
FXC
1217fi
1218
1219if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
22e05272 1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1ec601bf
FXC
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1225fi
1226
1227# Check all directory arguments for consistency.
1228for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1232do
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
22e05272 1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1ec601bf
FXC
1246done
1247
1248# There might be people who depend on the old broken behavior: `$host'
1249# used to hold the argument of --host etc.
1250# FIXME: To remove some day.
1251build=$build_alias
1252host=$host_alias
1253target=$target_alias
1254
1255# FIXME: To remove some day.
1256if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1ec601bf
FXC
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1261 fi
1262fi
1263
1264ac_tool_prefix=
1265test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267test "$silent" = yes && exec 6>/dev/null
1268
1269
1270ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271ac_ls_di=`ls -di .` &&
1272ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1273 as_fn_error $? "working directory cannot be determined"
1ec601bf 1274test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1275 as_fn_error $? "pwd does not report name of working directory"
1ec601bf
FXC
1276
1277
1278# Find the source files, if location was not specified.
1279if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287$as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\).*/{
1301 s//\1/
1302 q
1303 }
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1308 fi
1309else
1310 ac_srcdir_defaulted=no
1311fi
1312if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1ec601bf
FXC
1315fi
1316ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317ac_abs_confdir=`(
22e05272 1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1ec601bf
FXC
1319 pwd)`
1320# When building in place, set srcdir=.
1321if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1323fi
1324# Remove unnecessary trailing slashes from srcdir.
1325# Double slashes in file names in object file debugging info
1326# mess up M-x gdb in Emacs.
1327case $srcdir in
1328*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329esac
1330for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335done
1336
1337#
1338# Report the --help message.
1339#
1340if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344\`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1345
1346Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349VAR=VALUE. See below for descriptions of some of the useful variables.
1350
1351Defaults for the options are specified in brackets.
1352
1353Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
22e05272 1358 -q, --quiet, --silent do not print \`checking ...' messages
1ec601bf
FXC
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363
1364Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1369
1370By default, \`make install' will install all the files in
1371\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373for instance \`--prefix=\$HOME'.
1374
1375For better control, use the options below.
1376
1377Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397_ACEOF
1398
1399 cat <<\_ACEOF
1400
1401Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 --target=TARGET configure for building compilers for TARGET [HOST]
1410_ACEOF
1411fi
1412
1413if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1416 esac
1417 cat <<\_ACEOF
1418
1419Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ee5f0523 1423 --enable-multilib build many library versions (default)
22e05272
JM
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
4c993c44
TB
1426 --enable-version-specific-runtime-libs
1427 specify that runtime libraries should be installed
1428 in a compiler-specific directory
22e05272
JM
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1ec601bf
FXC
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-static[=PKGS] build static libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
22e05272
JM
1438 --enable-maintainer-mode
1439 enable make rules and dependencies not useful (and
1440 sometimes confusing) to the casual installer
bf382f5f 1441 --disable-symvers disable symbol versioning for libquadmath
a0e1df88 1442 --enable-cet enable Intel CET in target libraries [default=no]
4c993c44
TB
1443 --enable-generated-files-in-srcdir
1444 put copies of generated files in source dir intended
1445 for creating source tarballs for users without
1446 texinfo bison or flex
1ec601bf
FXC
1447
1448Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
642d2873 1451 --with-bugurl=URL Direct users to URL to report a bug
1ec601bf
FXC
1452 --with-pic try to use only PIC/non-PIC objects [default=use
1453 both]
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
e8e66971
MR
1455 --with-toolexeclibdir=DIR
1456 install libraries built with a cross compiler within
1457 DIR
3c36aa6b
JJ
1458 --with-gcc-major-version-only
1459 use only GCC major number in filesystem paths
1ec601bf
FXC
1460
1461Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1467 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1ec601bf
FXC
1468 you have headers in a nonstandard directory <include dir>
1469 CPP C preprocessor
1470
1471Use these variables to override the choices made by `configure' or to help
1472it to find libraries and programs with nonstandard names/locations.
1473
1474Report bugs to the package provider.
1475_ACEOF
1476ac_status=$?
1477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1486
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
1502
1503case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1516esac
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
1527 else
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; }
1531 done
1532fi
1533
1534test -n "$ac_init_help" && exit $ac_status
1535if $ac_init_version; then
1536 cat <<\_ACEOF
1537GCC Quad-precision Math Library configure 0.1
22e05272 1538generated by GNU Autoconf 2.69
1ec601bf 1539
22e05272 1540Copyright (C) 2012 Free Software Foundation, Inc.
1ec601bf
FXC
1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543_ACEOF
1544 exit
1545fi
1546
1547## ------------------------ ##
1548## Autoconf initialization. ##
1549## ------------------------ ##
1550
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 ()
1555{
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
1581
1582 ac_retval=1
1583fi
22e05272
JM
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1ec601bf
FXC
1586
1587} # ac_fn_c_try_compile
1588
1d92226b
JJ
1589# ac_fn_c_try_cpp LINENO
1590# ----------------------
1591# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1592ac_fn_c_try_cpp ()
1ec601bf
FXC
1593{
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1d92226b 1595 if { { ac_try="$ac_cpp conftest.$ac_ext"
1ec601bf
FXC
1596case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1d92226b 1602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1ec601bf
FXC
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1610 test $ac_status = 0; } > conftest.i && {
1d92226b 1611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1ec601bf 1612 test ! -s conftest.err
1ec601bf
FXC
1613 }; then :
1614 ac_retval=0
1615else
1616 $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1d92226b 1619 ac_retval=1
1ec601bf 1620fi
22e05272
JM
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1ec601bf 1623
1d92226b 1624} # ac_fn_c_try_cpp
1ec601bf 1625
1d92226b 1626# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1ec601bf 1627# -------------------------------------------------------
1d92226b
JJ
1628# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1629# the include files in INCLUDES and setting the cache variable VAR
1630# accordingly.
1631ac_fn_c_check_header_mongrel ()
1ec601bf
FXC
1632{
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1634 if eval \${$3+:} false; then :
1ec601bf
FXC
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636$as_echo_n "checking for $2... " >&6; }
22e05272 1637if eval \${$3+:} false; then :
1ec601bf 1638 $as_echo_n "(cached) " >&6
1d92226b
JJ
1639fi
1640eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642$as_echo "$ac_res" >&6; }
1ec601bf 1643else
1d92226b
JJ
1644 # Is the header compilable?
1645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1646$as_echo_n "checking $2 usability... " >&6; }
1647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
1648/* end confdefs.h. */
1649$4
1650#include <$2>
1651_ACEOF
1652if ac_fn_c_try_compile "$LINENO"; then :
1d92226b 1653 ac_header_compiler=yes
1ec601bf 1654else
1d92226b 1655 ac_header_compiler=no
1ec601bf
FXC
1656fi
1657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d92226b
JJ
1658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1659$as_echo "$ac_header_compiler" >&6; }
1ec601bf 1660
1d92226b
JJ
1661# Is the header present?
1662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1663$as_echo_n "checking $2 presence... " >&6; }
1664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665/* end confdefs.h. */
1666#include <$2>
1667_ACEOF
1668if ac_fn_c_try_cpp "$LINENO"; then :
1669 ac_header_preproc=yes
1670else
1671 ac_header_preproc=no
1672fi
22e05272 1673rm -f conftest.err conftest.i conftest.$ac_ext
1d92226b
JJ
1674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1675$as_echo "$ac_header_preproc" >&6; }
1ec601bf 1676
1d92226b
JJ
1677# So? What about this header?
1678case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1679 yes:no: )
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1681$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ;;
1685 no:yes:* )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1687$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1689$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1691$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1693$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1695$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1696 ;;
1ec601bf 1697esac
1d92226b
JJ
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699$as_echo_n "checking for $2... " >&6; }
22e05272 1700if eval \${$3+:} false; then :
1d92226b 1701 $as_echo_n "(cached) " >&6
1ec601bf 1702else
1d92226b
JJ
1703 eval "$3=\$ac_header_compiler"
1704fi
1705eval ac_res=\$$3
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1707$as_echo "$ac_res" >&6; }
1ec601bf 1708fi
22e05272 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ec601bf 1710
1d92226b 1711} # ac_fn_c_check_header_mongrel
1ec601bf
FXC
1712
1713# ac_fn_c_try_run LINENO
1714# ----------------------
1715# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716# that executables *can* be run.
1717ac_fn_c_try_run ()
1718{
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721case "(($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_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=$ac_status
1748fi
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1ec601bf
FXC
1752
1753} # ac_fn_c_try_run
1754
1d92226b
JJ
1755# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1756# -------------------------------------------------------
1757# Tests whether HEADER exists and can be compiled using the include files in
1758# INCLUDES, setting the cache variable VAR accordingly.
1759ac_fn_c_check_header_compile ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
22e05272 1764if eval \${$3+:} false; then :
1d92226b
JJ
1765 $as_echo_n "(cached) " >&6
1766else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h. */
1769$4
1770#include <$2>
1771_ACEOF
1772if ac_fn_c_try_compile "$LINENO"; then :
1773 eval "$3=yes"
1774else
1775 eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778fi
1779eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
22e05272 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1d92226b
JJ
1783
1784} # ac_fn_c_check_header_compile
1785
1786# ac_fn_c_try_link LINENO
1787# -----------------------
1788# Try to link conftest.$ac_ext, and return whether this succeeded.
1789ac_fn_c_try_link ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
22e05272 1813 test -x conftest$ac_exeext
1d92226b
JJ
1814 }; then :
1815 ac_retval=0
1816else
1817 $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821fi
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1d92226b
JJ
1829
1830} # ac_fn_c_try_link
1831
1ec601bf
FXC
1832# ac_fn_c_check_func LINENO FUNC VAR
1833# ----------------------------------
1834# Tests whether FUNC exists, setting the cache variable VAR accordingly
1835ac_fn_c_check_func ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839$as_echo_n "checking for $2... " >&6; }
22e05272 1840if eval \${$3+:} false; then :
1ec601bf
FXC
1841 $as_echo_n "(cached) " >&6
1842else
fabfcf5e 1843 if test x$gcc_no_link = xyes; then
22e05272 1844 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e
KT
1845fi
1846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
1847/* end confdefs.h. */
1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850#define $2 innocuous_$2
1851
1852/* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1856
1857#ifdef __STDC__
1858# include <limits.h>
1859#else
1860# include <assert.h>
1861#endif
1862
1863#undef $2
1864
1865/* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
1878
1879int
1880main ()
1881{
1882return $2 ();
1883 ;
1884 return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_link "$LINENO"; then :
1888 eval "$3=yes"
1889else
1890 eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
22e05272 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1ec601bf
FXC
1899
1900} # ac_fn_c_check_func
1d92226b
JJ
1901cat >config.log <<_ACEOF
1902This file contains any messages produced by compilers while
1903running configure, to aid debugging if configure makes a mistake.
e8d42d28 1904
1d92226b 1905It was created by GCC Quad-precision Math Library $as_me 0.1, which was
22e05272 1906generated by GNU Autoconf 2.69. Invocation command line was
1d92226b
JJ
1907
1908 $ $0 $@
1909
1910_ACEOF
1911exec 5>>config.log
1ec601bf
FXC
1912{
1913cat <<_ASUNAME
1914## --------- ##
1915## Platform. ##
1916## --------- ##
1917
1918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935_ASUNAME
1936
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944IFS=$as_save_IFS
1945
1946} >&5
1947
1948cat >&5 <<_ACEOF
1949
1950
1951## ----------- ##
1952## Core tests. ##
1953## ----------- ##
1954
1955_ACEOF
1956
1957
1958# Keep a trace of the command line.
1959# Strip out --no-create and --no-recursion so they do not pile up.
1960# Strip out --silent because we don't want to record it for future runs.
1961# Also quote any args containing shell meta-characters.
1962# Make two passes to allow for proper duplicate-argument suppression.
1963ac_configure_args=
1964ac_configure_args0=
1965ac_configure_args1=
1966ac_must_keep_next=false
1967for ac_pass in 1 2
1968do
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 case $ac_pass in
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981 2)
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1997 fi
1998 as_fn_append ac_configure_args " '$ac_arg'"
1999 ;;
2000 esac
2001 done
2002done
2003{ ac_configure_args0=; unset ac_configure_args0;}
2004{ ac_configure_args1=; unset ac_configure_args1;}
2005
2006# When interrupted or exit'd, cleanup temporary files, and complete
2007# config.log. We remove comments because anyway the quotes in there
2008# would cause problems or look ugly.
2009# WARNING: Use '\'' to represent an apostrophe within the trap.
2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
22e05272 2016 $as_echo "## ---------------- ##
1ec601bf 2017## Cache variables. ##
22e05272 2018## ---------------- ##"
1ec601bf
FXC
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
2021(
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
2037 (set) 2>&1 |
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2040 sed -n \
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
2044 *)
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046 ;;
2047 esac |
2048 sort
2049)
2050 echo
2051
22e05272 2052 $as_echo "## ----------------- ##
1ec601bf 2053## Output variables. ##
22e05272 2054## ----------------- ##"
1ec601bf
FXC
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
22e05272 2067 $as_echo "## ------------------- ##
1ec601bf 2068## File substitutions. ##
22e05272 2069## ------------------- ##"
1ec601bf
FXC
2070 echo
2071 for ac_var in $ac_subst_files
2072 do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2080 fi
2081
2082 if test -s confdefs.h; then
22e05272 2083 $as_echo "## ----------- ##
1ec601bf 2084## confdefs.h. ##
22e05272 2085## ----------- ##"
1ec601bf
FXC
2086 echo
2087 cat confdefs.h
2088 echo
2089 fi
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2097' 0
2098for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100done
2101ac_signal=0
2102
2103# confdefs.h avoids OS command line length limits that DEFS can exceed.
2104rm -f -r conftest* confdefs.h
2105
2106$as_echo "/* confdefs.h */" > confdefs.h
2107
2108# Predefined preprocessor variables.
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_NAME "$PACKAGE_NAME"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_VERSION "$PACKAGE_VERSION"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_STRING "$PACKAGE_STRING"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128_ACEOF
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_URL "$PACKAGE_URL"
2132_ACEOF
2133
2134
2135# Let the site file select an alternate cache file if it wants to.
2136# Prefer an explicitly selected file to automatically selected ones.
2137ac_site_file1=NONE
2138ac_site_file2=NONE
2139if test -n "$CONFIG_SITE"; then
22e05272
JM
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2145 esac
1ec601bf
FXC
2146elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2152fi
2153for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154do
2155 test "x$ac_site_file" = xNONE && continue
22e05272 2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1ec601bf
FXC
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2160 . "$ac_site_file" \
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163as_fn_error $? "failed to load site script $ac_site_file
2164See \`config.log' for more details" "$LINENO" 5; }
1ec601bf
FXC
2165 fi
2166done
2167
2168if test -r "$cache_file"; then
22e05272
JM
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1ec601bf
FXC
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173$as_echo "$as_me: loading cache $cache_file" >&6;}
2174 case $cache_file in
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
2177 esac
2178 fi
2179else
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181$as_echo "$as_me: creating cache $cache_file" >&6;}
2182 >$cache_file
2183fi
2184
2185# Check that the precious variables saved in the cache have kept the same
2186# value.
2187ac_cache_corrupted=false
2188for ac_var in $ac_precious_vars; do
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2194 set,)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,set)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,);;
2203 *)
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2221 fi;;
2222 esac
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2225 case $ac_new_val in
2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2228 esac
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2232 esac
2233 fi
2234done
2235if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1ec601bf
FXC
2241fi
2242## -------------------- ##
2243## Main body of script. ##
2244## -------------------- ##
2245
2246ac_ext=c
2247ac_cpp='$CPP $CPPFLAGS'
2248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251
2252
2253
2254
2255
2256ac_config_headers="$ac_config_headers config.h"
2257
2258
2259# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2260#
2261# You will slowly go insane if you do not grok the following fact: when
2262# building this library, the top-level /target/ becomes the library's /host/.
2263#
2264# configure then causes --target to default to --host, exactly like any
2265# other package using autoconf. Therefore, 'target' and 'host' will
2266# always be the same. This makes sense both for native and cross compilers
2267# just think about it for a little while. :-)
2268#
2269# Also, if this library is being configured as part of a cross compiler, the
2270# top-level configure script will pass the "real" host as $with_cross_host.
2271#
2272# Do not delete or change the following two lines. For why, see
2273# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2274ac_aux_dir=
2275for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2276 if test -f "$ac_dir/install-sh"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install-sh -c"
2279 break
2280 elif test -f "$ac_dir/install.sh"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/install.sh -c"
2283 break
2284 elif test -f "$ac_dir/shtool"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/shtool install -c"
2287 break
2288 fi
1ec601bf
FXC
2289done
2290if test -z "$ac_aux_dir"; then
22e05272 2291 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1ec601bf
FXC
2292fi
2293
2294# These three variables are undocumented and unsupported,
2295# and are intended to be withdrawn in a future Autoconf release.
2296# They can cause serious problems if a builder's source tree is in a directory
2297# whose full name contains unusual characters.
2298ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2299ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2300ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2301
2302
2303# Make sure we can run config.sub.
2304$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2305 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1ec601bf
FXC
2306
2307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2308$as_echo_n "checking build system type... " >&6; }
22e05272 2309if ${ac_cv_build+:} false; then :
1ec601bf
FXC
2310 $as_echo_n "(cached) " >&6
2311else
2312 ac_build_alias=$build_alias
2313test "x$ac_build_alias" = x &&
2314 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2315test "x$ac_build_alias" = x &&
22e05272 2316 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1ec601bf 2317ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2318 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1ec601bf
FXC
2319
2320fi
2321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2322$as_echo "$ac_cv_build" >&6; }
2323case $ac_cv_build in
2324*-*-*) ;;
22e05272 2325*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1ec601bf
FXC
2326esac
2327build=$ac_cv_build
2328ac_save_IFS=$IFS; IFS='-'
2329set x $ac_cv_build
2330shift
2331build_cpu=$1
2332build_vendor=$2
2333shift; shift
2334# Remember, the first character of IFS is used to create $*,
2335# except with old shells:
2336build_os=$*
2337IFS=$ac_save_IFS
2338case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2339
2340
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2342$as_echo_n "checking host system type... " >&6; }
22e05272 2343if ${ac_cv_host+:} false; then :
1ec601bf
FXC
2344 $as_echo_n "(cached) " >&6
2345else
2346 if test "x$host_alias" = x; then
2347 ac_cv_host=$ac_cv_build
2348else
2349 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1ec601bf
FXC
2351fi
2352
2353fi
2354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2355$as_echo "$ac_cv_host" >&6; }
2356case $ac_cv_host in
2357*-*-*) ;;
22e05272 2358*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1ec601bf
FXC
2359esac
2360host=$ac_cv_host
2361ac_save_IFS=$IFS; IFS='-'
2362set x $ac_cv_host
2363shift
2364host_cpu=$1
2365host_vendor=$2
2366shift; shift
2367# Remember, the first character of IFS is used to create $*,
2368# except with old shells:
2369host_os=$*
2370IFS=$ac_save_IFS
2371case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2372
2373
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2375$as_echo_n "checking target system type... " >&6; }
22e05272 2376if ${ac_cv_target+:} false; then :
1ec601bf
FXC
2377 $as_echo_n "(cached) " >&6
2378else
2379 if test "x$target_alias" = x; then
2380 ac_cv_target=$ac_cv_host
2381else
2382 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1ec601bf
FXC
2384fi
2385
2386fi
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2388$as_echo "$ac_cv_target" >&6; }
2389case $ac_cv_target in
2390*-*-*) ;;
22e05272 2391*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1ec601bf
FXC
2392esac
2393target=$ac_cv_target
2394ac_save_IFS=$IFS; IFS='-'
2395set x $ac_cv_target
2396shift
2397target_cpu=$1
2398target_vendor=$2
2399shift; shift
2400# Remember, the first character of IFS is used to create $*,
2401# except with old shells:
2402target_os=$*
2403IFS=$ac_save_IFS
2404case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2405
2406
2407# The aliases save the names the user supplied, while $host etc.
2408# will get canonicalized.
2409test -n "$target_alias" &&
2410 test "$program_prefix$program_suffix$program_transform_name" = \
2411 NONENONEs,x,x, &&
2412 program_prefix=${target_alias}-
2413
fabfcf5e
KT
2414 case ${build_alias} in
2415 "") build_noncanonical=${build} ;;
2416 *) build_noncanonical=${build_alias} ;;
2417esac
2418
2419 case ${host_alias} in
2420 "") host_noncanonical=${build_noncanonical} ;;
2421 *) host_noncanonical=${host_alias} ;;
2422esac
2423
2424 case ${target_alias} in
2425 "") target_noncanonical=${host_noncanonical} ;;
2426 *) target_noncanonical=${target_alias} ;;
2427esac
2428
2429
2430
2431
ee5f0523
MK
2432# Default to --enable-multilib
2433# Check whether --enable-multilib was given.
2434if test "${enable_multilib+set}" = set; then :
2435 enableval=$enable_multilib; case "$enableval" in
2436 yes) multilib=yes ;;
2437 no) multilib=no ;;
22e05272 2438 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
ee5f0523
MK
2439 esac
2440else
2441 multilib=yes
2442fi
2443
2444
2445# We may get other options which we leave undocumented:
2446# --with-target-subdir, --with-multisrctop, --with-multisubdir
2447# See config-ml.in if you want the gory details.
2448
2449if test "$srcdir" = "."; then
2450 if test "$with_target_subdir" != "."; then
2451 multi_basedir="$srcdir/$with_multisrctop../.."
2452 else
2453 multi_basedir="$srcdir/$with_multisrctop.."
2454 fi
2455else
2456 multi_basedir="$srcdir/.."
2457fi
2458
2459
2460# Even if the default multilib is not a cross compilation,
2461# it may be that some of the other multilibs are.
2462if test $cross_compiling = no && test $multilib = yes \
2463 && test "x${with_multisubdir}" != x ; then
2464 cross_compiling=maybe
2465fi
2466
2467ac_config_commands="$ac_config_commands default-1"
2468
2469
1ec601bf
FXC
2470target_alias=${target_alias-$host_alias}
2471
fabfcf5e 2472
22e05272 2473am__api_version='1.15'
1ec601bf
FXC
2474
2475# Find a good install program. We prefer a C program (faster),
2476# so one script is as good as another. But avoid the broken or
2477# incompatible versions:
2478# SysV /etc/install, /usr/sbin/install
2479# SunOS /usr/etc/install
2480# IRIX /sbin/install
2481# AIX /bin/install
2482# AmigaOS /C/install, which installs bootblocks on floppy discs
2483# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2484# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2485# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2486# OS/2's system install, which has a completely different semantic
2487# ./install, which can be erroneously created by make from ./install.sh.
2488# Reject install programs that cannot install multiple files.
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2490$as_echo_n "checking for a BSD-compatible install... " >&6; }
2491if test -z "$INSTALL"; then
22e05272 2492if ${ac_cv_path_install+:} false; then :
1ec601bf
FXC
2493 $as_echo_n "(cached) " >&6
2494else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 # Account for people who put trailing slashes in PATH elements.
2501case $as_dir/ in #((
2502 ./ | .// | /[cC]/* | \
2503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2504 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2505 /usr/ucb/* ) ;;
2506 *)
2507 # OSF1 and SCO ODT 3.0 have their own names for install.
2508 # Don't use installbsd from OSF since it installs stuff as root
2509 # by default.
2510 for ac_prog in ginstall scoinst install; do
2511 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2512 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1ec601bf
FXC
2513 if test $ac_prog = install &&
2514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515 # AIX install. It has an incompatible calling convention.
2516 :
2517 elif test $ac_prog = install &&
2518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2519 # program-specific install script used by HP pwplus--don't use.
2520 :
2521 else
2522 rm -rf conftest.one conftest.two conftest.dir
2523 echo one > conftest.one
2524 echo two > conftest.two
2525 mkdir conftest.dir
2526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2527 test -s conftest.one && test -s conftest.two &&
2528 test -s conftest.dir/conftest.one &&
2529 test -s conftest.dir/conftest.two
2530 then
2531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2532 break 3
2533 fi
2534 fi
2535 fi
2536 done
2537 done
2538 ;;
2539esac
2540
2541 done
2542IFS=$as_save_IFS
2543
2544rm -rf conftest.one conftest.two conftest.dir
2545
2546fi
2547 if test "${ac_cv_path_install+set}" = set; then
2548 INSTALL=$ac_cv_path_install
2549 else
2550 # As a last resort, use the slow shell script. Don't cache a
2551 # value for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the value is a relative name.
2554 INSTALL=$ac_install_sh
2555 fi
2556fi
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2558$as_echo "$INSTALL" >&6; }
2559
2560# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561# It thinks the first close brace ends the variable substitution.
2562test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563
2564test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2565
2566test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2569$as_echo_n "checking whether build environment is sane... " >&6; }
1ec601bf
FXC
2570# Reject unsafe characters in $srcdir or the absolute working directory
2571# name. Accept space and tab only in the latter.
2572am_lf='
2573'
2574case `pwd` in
2575 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2576 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1ec601bf
FXC
2577esac
2578case $srcdir in
2579 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2580 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1ec601bf
FXC
2581esac
2582
22e05272 2583# Do 'set' in a subshell so we don't clobber the current shell's
1ec601bf
FXC
2584# arguments. Must try -L first in case configure is actually a
2585# symlink; some systems play weird games with the mod time of symlinks
2586# (eg FreeBSD returns the mod time of the symlink's containing
2587# directory).
2588if (
22e05272
JM
2589 am_has_slept=no
2590 for am_try in 1 2; do
2591 echo "timestamp, slept: $am_has_slept" > conftest.file
2592 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2593 if test "$*" = "X"; then
2594 # -L didn't work.
2595 set X `ls -t "$srcdir/configure" conftest.file`
2596 fi
2597 if test "$*" != "X $srcdir/configure conftest.file" \
2598 && test "$*" != "X conftest.file $srcdir/configure"; then
2599
2600 # If neither matched, then we have a broken ls. This can happen
2601 # if, for instance, CONFIG_SHELL is bash and it inherits a
2602 # broken ls alias from the environment. This has actually
2603 # happened. Such a system could not be considered "sane".
2604 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2605 alias in your environment" "$LINENO" 5
2606 fi
2607 if test "$2" = conftest.file || test $am_try -eq 2; then
2608 break
2609 fi
2610 # Just in case.
2611 sleep 1
2612 am_has_slept=yes
2613 done
1ec601bf
FXC
2614 test "$2" = conftest.file
2615 )
2616then
2617 # Ok.
2618 :
2619else
22e05272 2620 as_fn_error $? "newly created file is older than distributed files!
1ec601bf
FXC
2621Check your system clock" "$LINENO" 5
2622fi
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624$as_echo "yes" >&6; }
22e05272
JM
2625# If we didn't sleep, we still need to ensure time stamps of config.status and
2626# generated files are strictly newer.
2627am_sleep_pid=
2628if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2629 ( sleep 1 ) &
2630 am_sleep_pid=$!
2631fi
2632
2633rm -f conftest.file
2634
1ec601bf
FXC
2635test "$program_prefix" != NONE &&
2636 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2637# Use a double $ so make ignores it.
2638test "$program_suffix" != NONE &&
2639 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2640# Double any \ or $.
2641# By default was `s,x,x', remove it if useless.
2642ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2643program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2644
22e05272
JM
2645# Expand $ac_aux_dir to an absolute path.
2646am_aux_dir=`cd "$ac_aux_dir" && pwd`
1ec601bf
FXC
2647
2648if test x"${MISSING+set}" != xset; then
2649 case $am_aux_dir in
2650 *\ * | *\ *)
2651 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2652 *)
2653 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2654 esac
2655fi
2656# Use eval to expand $SHELL
22e05272
JM
2657if eval "$MISSING --is-lightweight"; then
2658 am_missing_run="$MISSING "
1ec601bf
FXC
2659else
2660 am_missing_run=
22e05272
JM
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2662$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1ec601bf
FXC
2663fi
2664
22e05272 2665if test x"${install_sh+set}" != xset; then
1ec601bf
FXC
2666 case $am_aux_dir in
2667 *\ * | *\ *)
2668 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2669 *)
2670 install_sh="\${SHELL} $am_aux_dir/install-sh"
2671 esac
2672fi
2673
22e05272
JM
2674# Installed binaries are usually stripped using 'strip' when the user
2675# run "make install-strip". However 'strip' might not be the right
1ec601bf 2676# tool to use in cross-compilation environments, therefore Automake
22e05272 2677# will honor the 'STRIP' environment variable to overrule this program.
1ec601bf
FXC
2678if test "$cross_compiling" != no; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2681set dummy ${ac_tool_prefix}strip; ac_word=$2
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2684if ${ac_cv_prog_STRIP+:} false; then :
1ec601bf
FXC
2685 $as_echo_n "(cached) " >&6
2686else
2687 if test -n "$STRIP"; then
2688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
2697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701done
2702 done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707STRIP=$ac_cv_prog_STRIP
2708if test -n "$STRIP"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2710$as_echo "$STRIP" >&6; }
2711else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713$as_echo "no" >&6; }
2714fi
2715
2716
2717fi
2718if test -z "$ac_cv_prog_STRIP"; then
2719 ac_ct_STRIP=$STRIP
2720 # Extract the first word of "strip", so it can be a program name with args.
2721set dummy strip; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2724if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1ec601bf
FXC
2725 $as_echo_n "(cached) " >&6
2726else
2727 if test -n "$ac_ct_STRIP"; then
2728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
2737 ac_cv_prog_ac_ct_STRIP="strip"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741done
2742 done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2748if test -n "$ac_ct_STRIP"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2750$as_echo "$ac_ct_STRIP" >&6; }
2751else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756 if test "x$ac_ct_STRIP" = x; then
2757 STRIP=":"
2758 else
2759 case $cross_compiling:$ac_tool_warned in
2760yes:)
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763ac_tool_warned=yes ;;
2764esac
2765 STRIP=$ac_ct_STRIP
2766 fi
2767else
2768 STRIP="$ac_cv_prog_STRIP"
2769fi
2770
2771fi
2772INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2773
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2775$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2776if test -z "$MKDIR_P"; then
22e05272 2777 if ${ac_cv_path_mkdir+:} false; then :
1ec601bf
FXC
2778 $as_echo_n "(cached) " >&6
2779else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_prog in mkdir gmkdir; do
2786 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2787 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1ec601bf
FXC
2788 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2789 'mkdir (GNU coreutils) '* | \
2790 'mkdir (coreutils) '* | \
2791 'mkdir (fileutils) '4.1*)
2792 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2793 break 3;;
2794 esac
2795 done
2796 done
2797 done
2798IFS=$as_save_IFS
2799
2800fi
2801
22e05272 2802 test -d ./--version && rmdir ./--version
1ec601bf
FXC
2803 if test "${ac_cv_path_mkdir+set}" = set; then
2804 MKDIR_P="$ac_cv_path_mkdir -p"
2805 else
2806 # As a last resort, use the slow shell script. Don't cache a
2807 # value for MKDIR_P within a source directory, because that will
2808 # break other packages using the cache if that directory is
2809 # removed, or if the value is a relative name.
1ec601bf
FXC
2810 MKDIR_P="$ac_install_sh -d"
2811 fi
2812fi
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2814$as_echo "$MKDIR_P" >&6; }
2815
1ec601bf
FXC
2816for ac_prog in gawk mawk nawk awk
2817do
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819set dummy $ac_prog; ac_word=$2
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2822if ${ac_cv_prog_AWK+:} false; then :
1ec601bf
FXC
2823 $as_echo_n "(cached) " >&6
2824else
2825 if test -n "$AWK"; then
2826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
2835 ac_cv_prog_AWK="$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
2840 done
2841IFS=$as_save_IFS
2842
2843fi
2844fi
2845AWK=$ac_cv_prog_AWK
2846if test -n "$AWK"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848$as_echo "$AWK" >&6; }
2849else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851$as_echo "no" >&6; }
2852fi
2853
2854
2855 test -n "$AWK" && break
2856done
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2860set x ${MAKE-make}
2861ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2862if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1ec601bf
FXC
2863 $as_echo_n "(cached) " >&6
2864else
2865 cat >conftest.make <<\_ACEOF
2866SHELL = /bin/sh
2867all:
2868 @echo '@@@%%%=$(MAKE)=@@@%%%'
2869_ACEOF
22e05272 2870# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1ec601bf
FXC
2871case `${MAKE-make} -f conftest.make 2>/dev/null` in
2872 *@@@%%%=?*=@@@%%%*)
2873 eval ac_cv_prog_make_${ac_make}_set=yes;;
2874 *)
2875 eval ac_cv_prog_make_${ac_make}_set=no;;
2876esac
2877rm -f conftest.make
2878fi
2879if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881$as_echo "yes" >&6; }
2882 SET_MAKE=
2883else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885$as_echo "no" >&6; }
2886 SET_MAKE="MAKE=${MAKE-make}"
2887fi
2888
2889rm -rf .tst 2>/dev/null
2890mkdir .tst 2>/dev/null
2891if test -d .tst; then
2892 am__leading_dot=.
2893else
2894 am__leading_dot=_
2895fi
2896rmdir .tst 2>/dev/null
2897
22e05272
JM
2898# Check whether --enable-silent-rules was given.
2899if test "${enable_silent_rules+set}" = set; then :
2900 enableval=$enable_silent_rules;
2901fi
2902
2903case $enable_silent_rules in # (((
2904 yes) AM_DEFAULT_VERBOSITY=0;;
2905 no) AM_DEFAULT_VERBOSITY=1;;
2906 *) AM_DEFAULT_VERBOSITY=1;;
2907esac
2908am_make=${MAKE-make}
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2910$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2911if ${am_cv_make_support_nested_variables+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913else
2914 if $as_echo 'TRUE=$(BAR$(V))
2915BAR0=false
2916BAR1=true
2917V=1
2918am__doit:
2919 @$(TRUE)
2920.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2921 am_cv_make_support_nested_variables=yes
2922else
2923 am_cv_make_support_nested_variables=no
2924fi
2925fi
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2927$as_echo "$am_cv_make_support_nested_variables" >&6; }
2928if test $am_cv_make_support_nested_variables = yes; then
2929 AM_V='$(V)'
2930 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2931else
2932 AM_V=$AM_DEFAULT_VERBOSITY
2933 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2934fi
2935AM_BACKSLASH='\'
2936
1ec601bf
FXC
2937if test "`cd $srcdir && pwd`" != "`pwd`"; then
2938 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2939 # is not polluted with repeated "-I."
2940 am__isrc=' -I$(srcdir)'
2941 # test to see if srcdir already configured
2942 if test -f $srcdir/config.status; then
22e05272 2943 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1ec601bf
FXC
2944 fi
2945fi
2946
2947# test whether we have cygpath
2948if test -z "$CYGPATH_W"; then
2949 if (cygpath --version) >/dev/null 2>/dev/null; then
2950 CYGPATH_W='cygpath -w'
2951 else
2952 CYGPATH_W=echo
2953 fi
2954fi
2955
2956
2957# Define the identity of the package.
2958 PACKAGE='libquadmath'
2959 VERSION='0.1'
2960
2961
2962cat >>confdefs.h <<_ACEOF
2963#define PACKAGE "$PACKAGE"
2964_ACEOF
2965
2966
2967cat >>confdefs.h <<_ACEOF
2968#define VERSION "$VERSION"
2969_ACEOF
2970
2971# Some tools Automake needs.
2972
2973ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2974
2975
2976AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2977
2978
2979AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2980
2981
2982AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2983
2984
2985MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2986
22e05272
JM
2987# For better backward compatibility. To be removed once Automake 1.9.x
2988# dies out for good. For more background, see:
2989# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2990# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2991mkdir_p='$(MKDIR_P)'
2992
2993# We need awk for the "check" target (and possibly the TAP driver). The
2994# system "awk" is bad on some platforms.
5d79f496
MH
2995# Always define AMTAR for backward compatibility. Yes, it's still used
2996# in the wild :-( We should find a proper way to deprecate it ...
2997AMTAR='$${TAR-tar}'
1ec601bf 2998
22e05272
JM
2999
3000# We'll loop over all known methods to create a tar archive until one works.
3001_am_tools='gnutar pax cpio none'
3002
5d79f496 3003am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
1ec601bf
FXC
3004
3005
3006
3007
3008
3009
22e05272
JM
3010# POSIX will say in a future version that running "rm -f" with no argument
3011# is OK; and we want to be able to make that assumption in our Makefile
3012# recipes. So use an aggressive probe to check that the usage we want is
3013# actually supported "in the wild" to an acceptable degree.
3014# See automake bug#10828.
3015# To make any issue more visible, cause the running configure to be aborted
3016# by default if the 'rm' program in use doesn't match our expectations; the
3017# user can still override this though.
3018if rm -f && rm -fr && rm -rf; then : OK; else
3019 cat >&2 <<'END'
3020Oops!
3021
3022Your 'rm' program seems unable to run without file operands specified
3023on the command line, even when the '-f' option is present. This is contrary
3024to the behaviour of most rm programs out there, and not conforming with
3025the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3026
3027Please tell bug-automake@gnu.org about your system, including the value
3028of your $PATH and any error possibly output before this message. This
3029can help us improve future automake versions.
3030
3031END
3032 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3033 echo 'Configuration will proceed anyway, since you have set the' >&2
3034 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3035 echo >&2
3036 else
3037 cat >&2 <<'END'
3038Aborting the configuration process, to ensure you take notice of the issue.
3039
3040You can download and install GNU coreutils to get an 'rm' implementation
3041that behaves properly: <http://www.gnu.org/software/coreutils/>.
3042
3043If you want to complete the configuration process using your problematic
3044'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3045to "yes", and re-run configure.
3046
3047END
3048 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3049 fi
3050fi
3051
3052
fabfcf5e
KT
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
3054$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
3055# Check whether --enable-version-specific-runtime-libs was given.
3056if test "${enable_version_specific_runtime_libs+set}" = set; then :
3057 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3058 yes) version_specific_libs=yes ;;
3059 no) version_specific_libs=no ;;
22e05272 3060 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
fabfcf5e
KT
3061 esac
3062else
3063 version_specific_libs=no
3064fi
3065
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
3067$as_echo "$version_specific_libs" >&6; }
3068
3069
3070
1d92226b 3071DEPDIR="${am__leading_dot}deps"
4c993c44 3072
1d92226b
JJ
3073ac_config_commands="$ac_config_commands depfiles"
3074
3075
3076am_make=${MAKE-make}
3077cat > confinc << 'END'
3078am__doit:
3079 @echo this is the am__doit target
3080.PHONY: am__doit
3081END
3082# If we don't find an include directive, just comment out the code.
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3084$as_echo_n "checking for style of include used by $am_make... " >&6; }
3085am__include="#"
3086am__quote=
3087_am_result=none
3088# First try GNU make style include.
3089echo "include confinc" > confmf
22e05272 3090# Ignore all kinds of additional output from 'make'.
1d92226b
JJ
3091case `$am_make -s -f confmf 2> /dev/null` in #(
3092*the\ am__doit\ target*)
3093 am__include=include
3094 am__quote=
3095 _am_result=GNU
3096 ;;
3097esac
3098# Now try BSD make style include.
3099if test "$am__include" = "#"; then
3100 echo '.include "confinc"' > confmf
3101 case `$am_make -s -f confmf 2> /dev/null` in #(
3102 *the\ am__doit\ target*)
3103 am__include=.include
3104 am__quote="\""
3105 _am_result=BSD
3106 ;;
3107 esac
3108fi
3109
3110
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3112$as_echo "$_am_result" >&6; }
3113rm -f confinc confmf
3114
3115# Check whether --enable-dependency-tracking was given.
3116if test "${enable_dependency_tracking+set}" = set; then :
3117 enableval=$enable_dependency_tracking;
3118fi
3119
3120if test "x$enable_dependency_tracking" != xno; then
3121 am_depcomp="$ac_aux_dir/depcomp"
3122 AMDEPBACKSLASH='\'
5d79f496 3123 am__nodep='_no'
1d92226b
JJ
3124fi
3125 if test "x$enable_dependency_tracking" != xno; then
3126 AMDEP_TRUE=
3127 AMDEP_FALSE='#'
3128else
3129 AMDEP_TRUE='#'
3130 AMDEP_FALSE=
3131fi
3132
3133
3134ac_ext=c
3135ac_cpp='$CPP $CPPFLAGS'
3136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3141set dummy ${ac_tool_prefix}gcc; ac_word=$2
4c993c44
TB
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3144if ${ac_cv_prog_CC+:} false; then :
4c993c44
TB
3145 $as_echo_n "(cached) " >&6
3146else
1d92226b
JJ
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
4c993c44
TB
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b 3157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4c993c44
TB
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161done
3162 done
3163IFS=$as_save_IFS
3164
3165fi
3166fi
1d92226b
JJ
3167CC=$ac_cv_prog_CC
3168if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170$as_echo "$CC" >&6; }
4c993c44
TB
3171else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3174fi
3175
3176
1d92226b
JJ
3177fi
3178if test -z "$ac_cv_prog_CC"; then
3179 ac_ct_CC=$CC
3180 # Extract the first word of "gcc", so it can be a program name with args.
3181set dummy gcc; ac_word=$2
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3184if ${ac_cv_prog_ac_ct_CC+:} false; then :
4c993c44
TB
3185 $as_echo_n "(cached) " >&6
3186else
1d92226b
JJ
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b
JJ
3197 ac_cv_prog_ac_ct_CC="gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201done
3202 done
3203IFS=$as_save_IFS
4c993c44
TB
3204
3205fi
1d92226b
JJ
3206fi
3207ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208if test -n "$ac_ct_CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210$as_echo "$ac_ct_CC" >&6; }
3211else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
3214fi
3215
3216 if test "x$ac_ct_CC" = x; then
3217 CC=""
4c993c44 3218 else
1d92226b
JJ
3219 case $cross_compiling:$ac_tool_warned in
3220yes:)
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223ac_tool_warned=yes ;;
3224esac
3225 CC=$ac_ct_CC
4c993c44 3226 fi
4c993c44 3227else
1d92226b 3228 CC="$ac_cv_prog_CC"
4c993c44
TB
3229fi
3230
1d92226b
JJ
3231if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234set dummy ${ac_tool_prefix}cc; ac_word=$2
1ec601bf
FXC
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3237if ${ac_cv_prog_CC+:} false; then :
1ec601bf
FXC
3238 $as_echo_n "(cached) " >&6
3239else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b 3250 ac_cv_prog_CC="${ac_tool_prefix}cc"
1ec601bf
FXC
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254done
3255 done
3256IFS=$as_save_IFS
3257
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263$as_echo "$CC" >&6; }
3264else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267fi
3268
3269
1d92226b 3270 fi
1ec601bf 3271fi
1d92226b
JJ
3272if test -z "$CC"; then
3273 # Extract the first word of "cc", so it can be a program name with args.
3274set dummy cc; ac_word=$2
1ec601bf
FXC
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3277if ${ac_cv_prog_CC+:} false; then :
1ec601bf
FXC
3278 $as_echo_n "(cached) " >&6
3279else
1d92226b
JJ
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
1ec601bf 3282else
1d92226b 3283 ac_prog_rejected=no
1ec601bf
FXC
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b
JJ
3291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292 ac_prog_rejected=yes
3293 continue
3294 fi
3295 ac_cv_prog_CC="cc"
1ec601bf
FXC
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299done
3300 done
3301IFS=$as_save_IFS
3302
1d92226b
JJ
3303if test $ac_prog_rejected = yes; then
3304 # We found a bogon in the path, so make sure we never use it.
3305 set dummy $ac_cv_prog_CC
3306 shift
3307 if test $# != 0; then
3308 # We chose a different compiler from the bogus one.
3309 # However, it has the same basename, so the bogon will be chosen
3310 # first if we set CC to just the basename; use the full file name.
3311 shift
3312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3313 fi
1ec601bf
FXC
3314fi
3315fi
1d92226b
JJ
3316fi
3317CC=$ac_cv_prog_CC
3318if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320$as_echo "$CC" >&6; }
1ec601bf
FXC
3321else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323$as_echo "no" >&6; }
3324fi
3325
1ec601bf 3326
1d92226b 3327fi
1ec601bf 3328if test -z "$CC"; then
1d92226b
JJ
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in cl.exe
3331 do
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1ec601bf
FXC
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3336if ${ac_cv_prog_CC+:} false; then :
1ec601bf
FXC
3337 $as_echo_n "(cached) " >&6
3338else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b 3349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1ec601bf
FXC
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353done
3354 done
3355IFS=$as_save_IFS
3356
3357fi
3358fi
3359CC=$ac_cv_prog_CC
3360if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362$as_echo "$CC" >&6; }
3363else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365$as_echo "no" >&6; }
3366fi
3367
3368
3369 test -n "$CC" && break
3370 done
3371fi
3372if test -z "$CC"; then
3373 ac_ct_CC=$CC
3374 for ac_prog in cl.exe
3375do
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377set dummy $ac_prog; ac_word=$2
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3380if ${ac_cv_prog_ac_ct_CC+:} false; then :
1ec601bf
FXC
3381 $as_echo_n "(cached) " >&6
3382else
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385else
3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH
3388do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
3393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397done
3398 done
3399IFS=$as_save_IFS
3400
3401fi
3402fi
3403ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404if test -n "$ac_ct_CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406$as_echo "$ac_ct_CC" >&6; }
3407else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409$as_echo "no" >&6; }
3410fi
3411
3412
3413 test -n "$ac_ct_CC" && break
3414done
3415
3416 if test "x$ac_ct_CC" = x; then
3417 CC=""
3418 else
3419 case $cross_compiling:$ac_tool_warned in
3420yes:)
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423ac_tool_warned=yes ;;
3424esac
3425 CC=$ac_ct_CC
3426 fi
3427fi
3428
3429fi
3430
3431
3432test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3434as_fn_error $? "no acceptable C compiler found in \$PATH
3435See \`config.log' for more details" "$LINENO" 5; }
1ec601bf
FXC
3436
3437# Provide some information about the compiler.
3438$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439set X $ac_compile
3440ac_compiler=$2
3441for ac_option in --version -v -V -qversion; do
3442 { { ac_try="$ac_compiler $ac_option >&5"
3443case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446esac
3447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448$as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450 ac_status=$?
3451 if test -s conftest.err; then
3452 sed '10a\
3453... rest of stderr output deleted ...
3454 10q' conftest.err >conftest.er1
3455 cat conftest.er1 >&5
1ec601bf 3456 fi
22e05272 3457 rm -f conftest.er1 conftest.err
1ec601bf
FXC
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460done
3461
3462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h. */
02ce382c 3464#include <stdio.h>
fabfcf5e
KT
3465int
3466main ()
3467{
02ce382c 3468printf ("hello world\n");
fabfcf5e
KT
3469 ;
3470 return 0;
3471}
3472_ACEOF
3473# FIXME: Cleanup?
3474if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3475 (eval $ac_link) 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
3479 gcc_no_link=no
3480else
3481 gcc_no_link=yes
3482fi
3483if test x$gcc_no_link = xyes; then
3484 # Setting cross_compile will disable run tests; it will
3485 # also disable AC_CHECK_FILE but that's generally
3486 # correct if we can't link.
3487 cross_compiling=yes
3488 EXEEXT=
3489else
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491/* end confdefs.h. */
3492
1ec601bf
FXC
3493int
3494main ()
3495{
3496
3497 ;
3498 return 0;
3499}
3500_ACEOF
3501ac_clean_files_save=$ac_clean_files
22e05272 3502ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1ec601bf
FXC
3503# Try to create an executable without -o first, disregard a.out.
3504# It will help us diagnose broken compilers, and finding out an intuition
3505# of exeext.
22e05272
JM
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3507$as_echo_n "checking whether the C compiler works... " >&6; }
1ec601bf
FXC
3508ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3509
3510# The possible output files:
3511ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3512
3513ac_rmfiles=
3514for ac_file in $ac_files
3515do
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3519 esac
3520done
3521rm -f $ac_rmfiles
3522
3523if { { ac_try="$ac_link_default"
3524case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527esac
3528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529$as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_link_default") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536# in a Makefile. We should not override ac_cv_exeext if it was cached,
3537# so that the user can short-circuit this test for compilers unknown to
3538# Autoconf.
3539for ac_file in $ac_files ''
3540do
3541 test -f "$ac_file" || continue
3542 case $ac_file in
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3544 ;;
3545 [ab].out )
3546 # We found the default executable, but exeext='' is most
3547 # certainly right.
3548 break;;
3549 *.* )
3550 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3551 then :; else
3552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553 fi
3554 # We set ac_cv_exeext here because the later test for it is not
3555 # safe: cross compilers may not add the suffix if given an `-o'
3556 # argument, so we may need to know it at that point already.
3557 # Even if this section looks crufty: it has the advantage of
3558 # actually working.
3559 break;;
3560 * )
3561 break;;
3562 esac
3563done
3564test "$ac_cv_exeext" = no && ac_cv_exeext=
3565
3566else
3567 ac_file=''
3568fi
1ec601bf 3569if test -z "$ac_file"; then :
22e05272
JM
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571$as_echo "no" >&6; }
3572$as_echo "$as_me: failed program was:" >&5
1ec601bf
FXC
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3577as_fn_error 77 "C compiler cannot create executables
3578See \`config.log' for more details" "$LINENO" 5; }
3579else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3581$as_echo "yes" >&6; }
1ec601bf 3582fi
22e05272
JM
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3584$as_echo_n "checking for C compiler default output file name... " >&6; }
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3586$as_echo "$ac_file" >&6; }
1ec601bf
FXC
3587ac_exeext=$ac_cv_exeext
3588
22e05272 3589rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1ec601bf 3590ac_clean_files=$ac_clean_files_save
1ec601bf
FXC
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3592$as_echo_n "checking for suffix of executables... " >&6; }
3593if { { ac_try="$ac_link"
3594case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597esac
3598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599$as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_link") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; then :
3604 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3605# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3606# work properly (i.e., refer to `conftest.exe'), while it won't with
3607# `rm'.
3608for ac_file in conftest.exe conftest conftest.*; do
3609 test -f "$ac_file" || continue
3610 case $ac_file in
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3612 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613 break;;
3614 * ) break;;
3615 esac
3616done
3617else
3618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3620as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3621See \`config.log' for more details" "$LINENO" 5; }
1ec601bf 3622fi
22e05272 3623rm -f conftest conftest$ac_cv_exeext
1ec601bf
FXC
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3625$as_echo "$ac_cv_exeext" >&6; }
3626
3627rm -f conftest.$ac_ext
3628EXEEXT=$ac_cv_exeext
3629ac_exeext=$EXEEXT
22e05272
JM
3630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631/* end confdefs.h. */
3632#include <stdio.h>
3633int
3634main ()
3635{
3636FILE *f = fopen ("conftest.out", "w");
3637 return ferror (f) || fclose (f) != 0;
3638
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643ac_clean_files="$ac_clean_files conftest.out"
3644# Check that the compiler produces executables we can run. If not, either
3645# the compiler is broken, or we cross compile.
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3647$as_echo_n "checking whether we are cross compiling... " >&6; }
3648if test "$cross_compiling" != yes; then
3649 { { ac_try="$ac_link"
3650case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653esac
3654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655$as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }
3660 if { ac_try='./conftest$ac_cv_exeext'
3661 { { case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_try") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; }; then
3671 cross_compiling=no
3672 else
3673 if test "$cross_compiling" = maybe; then
3674 cross_compiling=yes
3675 else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678as_fn_error $? "cannot run C compiled programs.
3679If you meant to cross compile, use \`--host'.
3680See \`config.log' for more details" "$LINENO" 5; }
3681 fi
3682 fi
3683fi
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3685$as_echo "$cross_compiling" >&6; }
3686
3687rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3688ac_clean_files=$ac_clean_files_save
fabfcf5e 3689fi
1ec601bf
FXC
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3691$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3692if ${ac_cv_objext+:} false; then :
1ec601bf
FXC
3693 $as_echo_n "(cached) " >&6
3694else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h. */
3697
3698int
3699main ()
3700{
3701
3702 ;
3703 return 0;
3704}
3705_ACEOF
3706rm -f conftest.o conftest.obj
3707if { { ac_try="$ac_compile"
3708case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
3712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713$as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compile") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 for ac_file in conftest.o conftest.obj conftest.*; do
3719 test -f "$ac_file" || continue;
3720 case $ac_file in
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3723 break;;
3724 esac
3725done
3726else
3727 $as_echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3732as_fn_error $? "cannot compute suffix of object files: cannot compile
3733See \`config.log' for more details" "$LINENO" 5; }
1ec601bf
FXC
3734fi
3735rm -f conftest.$ac_cv_objext conftest.$ac_ext
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3738$as_echo "$ac_cv_objext" >&6; }
3739OBJEXT=$ac_cv_objext
3740ac_objext=$OBJEXT
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3742$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3743if ${ac_cv_c_compiler_gnu+:} false; then :
1ec601bf
FXC
3744 $as_echo_n "(cached) " >&6
3745else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h. */
3748
3749int
3750main ()
3751{
3752#ifndef __GNUC__
3753 choke me
3754#endif
3755
3756 ;
3757 return 0;
3758}
3759_ACEOF
3760if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_compiler_gnu=yes
3762else
3763 ac_compiler_gnu=no
3764fi
3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766ac_cv_c_compiler_gnu=$ac_compiler_gnu
3767
3768fi
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3770$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3771if test $ac_compiler_gnu = yes; then
3772 GCC=yes
3773else
3774 GCC=
3775fi
3776ac_test_CFLAGS=${CFLAGS+set}
3777ac_save_CFLAGS=$CFLAGS
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3779$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3780if ${ac_cv_prog_cc_g+:} false; then :
1ec601bf
FXC
3781 $as_echo_n "(cached) " >&6
3782else
3783 ac_save_c_werror_flag=$ac_c_werror_flag
3784 ac_c_werror_flag=yes
3785 ac_cv_prog_cc_g=no
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789
3790int
3791main ()
3792{
3793
3794 ;
3795 return 0;
3796}
3797_ACEOF
3798if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3800else
3801 CFLAGS=""
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h. */
3804
3805int
3806main ()
3807{
3808
3809 ;
3810 return 0;
3811}
3812_ACEOF
3813if ac_fn_c_try_compile "$LINENO"; then :
3814
3815else
3816 ac_c_werror_flag=$ac_save_c_werror_flag
3817 CFLAGS="-g"
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h. */
3820
3821int
3822main ()
3823{
3824
3825 ;
3826 return 0;
3827}
3828_ACEOF
3829if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_g=yes
3831fi
3832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833fi
3834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835fi
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3840$as_echo "$ac_cv_prog_cc_g" >&6; }
3841if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3848 fi
3849else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3854 fi
3855fi
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3857$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3858if ${ac_cv_prog_cc_c89+:} false; then :
1ec601bf
FXC
3859 $as_echo_n "(cached) " >&6
3860else
3861 ac_cv_prog_cc_c89=no
3862ac_save_CC=$CC
3863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h. */
3865#include <stdarg.h>
3866#include <stdio.h>
22e05272 3867struct stat;
1ec601bf
FXC
3868/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3869struct buf { int x; };
3870FILE * (*rcsopen) (struct buf *, struct stat *, int);
3871static char *e (p, i)
3872 char **p;
3873 int i;
3874{
3875 return p[i];
3876}
3877static char *f (char * (*g) (char **, int), char **p, ...)
3878{
3879 char *s;
3880 va_list v;
3881 va_start (v,p);
3882 s = g (p, va_arg (v,int));
3883 va_end (v);
3884 return s;
3885}
3886
3887/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3888 function prototypes and stuff, but not '\xHH' hex character constants.
3889 These don't provoke an error unfortunately, instead are silently treated
3890 as 'x'. The following induces an error, until -std is added to get
3891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3892 array size at least. It's necessary to write '\x00'==0 to get something
3893 that's true only with -std. */
3894int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3895
3896/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3897 inside strings and character constants. */
3898#define FOO(x) 'x'
3899int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3900
3901int test (int i, double x);
3902struct s1 {int (*f) (int a);};
3903struct s2 {int (*f) (double a);};
3904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905int argc;
3906char **argv;
3907int
3908main ()
3909{
3910return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3911 ;
3912 return 0;
3913}
3914_ACEOF
3915for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917do
3918 CC="$ac_save_CC $ac_arg"
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_c89=$ac_arg
3921fi
3922rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924done
3925rm -f conftest.$ac_ext
3926CC=$ac_save_CC
3927
3928fi
3929# AC_CACHE_VAL
3930case "x$ac_cv_prog_cc_c89" in
3931 x)
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3933$as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3936$as_echo "unsupported" >&6; } ;;
3937 *)
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3940$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941esac
3942if test "x$ac_cv_prog_cc_c89" != xno; then :
3943
3944fi
3945
3946ac_ext=c
3947ac_cpp='$CPP $CPPFLAGS'
3948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ec601bf 3951
22e05272
JM
3952ac_ext=c
3953ac_cpp='$CPP $CPPFLAGS'
3954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3958$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3959if ${am_cv_prog_cc_c_o+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h. */
3964
3965int
3966main ()
3967{
3968
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973 # Make sure it works both with $CC and with simple cc.
3974 # Following AC_PROG_CC_C_O, we do the test twice because some
3975 # compilers refuse to overwrite an existing .o file with -o,
3976 # though they will create one.
3977 am_cv_prog_cc_c_o=yes
3978 for am_i in 1 2; do
3979 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3980 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } \
3984 && test -f conftest2.$ac_objext; then
3985 : OK
3986 else
3987 am_cv_prog_cc_c_o=no
3988 break
3989 fi
3990 done
3991 rm -f core conftest*
3992 unset am_i
3993fi
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3995$as_echo "$am_cv_prog_cc_c_o" >&6; }
3996if test "$am_cv_prog_cc_c_o" != yes; then
3997 # Losing compiler, so override with the script.
3998 # FIXME: It is wrong to rewrite CC.
3999 # But if we don't then we get into trouble of one sort or another.
4000 # A longer-term fix would be to have automake use am__CC in this case,
4001 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4002 CC="$am_aux_dir/compile $CC"
4003fi
4004ac_ext=c
4005ac_cpp='$CPP $CPPFLAGS'
4006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010
fabfcf5e 4011depcc="$CC" am_compiler_list=
1ec601bf 4012
fabfcf5e
KT
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4014$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4015if ${am_cv_CC_dependencies_compiler_type+:} false; then :
fabfcf5e
KT
4016 $as_echo_n "(cached) " >&6
4017else
4018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4019 # We make a subdir and do the tests there. Otherwise we can end up
4020 # making bogus files that we don't know about and never remove. For
4021 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4022 # making a dummy file named 'D' -- because '-MD' means "put the output
4023 # in D".
5d79f496 4024 rm -rf conftest.dir
fabfcf5e
KT
4025 mkdir conftest.dir
4026 # Copy depcomp to subdir because otherwise we won't find it if we're
4027 # using a relative directory.
4028 cp "$am_depcomp" conftest.dir
4029 cd conftest.dir
4030 # We will build objects and dependencies in a subdirectory because
4031 # it helps to detect inapplicable dependency modes. For instance
4032 # both Tru64's cc and ICC support -MD to output dependencies as a
4033 # side effect of compilation, but ICC will put the dependencies in
4034 # the current directory while Tru64 will put them in the object
4035 # directory.
4036 mkdir sub
1ec601bf
FXC
4037
4038 am_cv_CC_dependencies_compiler_type=none
4039 if test "$am_compiler_list" = ""; then
4040 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4041 fi
4042 am__universal=false
4043 case " $depcc " in #(
4044 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4045 esac
4046
4047 for depmode in $am_compiler_list; do
4048 # Setup a source with many dependencies, because some compilers
4049 # like to wrap large dependency lists on column 80 (with \), and
4050 # we should not choose a depcomp mode which is confused by this.
4051 #
4052 # We need to recreate these files for each test, as the compiler may
4053 # overwrite some of them when testing with obscure command lines.
4054 # This happens at least with the AIX C compiler.
4055 : > sub/conftest.c
4056 for i in 1 2 3 4 5 6; do
4057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4058 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4059 # Solaris 10 /bin/sh.
4060 echo '/* dummy */' > sub/conftst$i.h
1ec601bf
FXC
4061 done
4062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4063
22e05272 4064 # We check with '-c' and '-o' for the sake of the "dashmstdout"
1ec601bf 4065 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4066 # handle '-M -o', and we need to detect this. Also, some Intel
4067 # versions had trouble with output in subdirs.
1ec601bf
FXC
4068 am__obj=sub/conftest.${OBJEXT-o}
4069 am__minus_obj="-o $am__obj"
4070 case $depmode in
4071 gcc)
4072 # This depmode causes a compiler race in universal mode.
4073 test "$am__universal" = false || continue
4074 ;;
4075 nosideeffect)
22e05272
JM
4076 # After this tag, mechanisms are not by side-effect, so they'll
4077 # only be used when explicitly requested.
1ec601bf
FXC
4078 if test "x$enable_dependency_tracking" = xyes; then
4079 continue
4080 else
4081 break
4082 fi
4083 ;;
5d79f496 4084 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4085 # This compiler won't grok '-c -o', but also, the minuso test has
1ec601bf
FXC
4086 # not run yet. These depmodes are late enough in the game, and
4087 # so weak that their functioning should not be impacted.
4088 am__obj=conftest.${OBJEXT-o}
4089 am__minus_obj=
4090 ;;
4091 none) break ;;
4092 esac
4093 if depmode=$depmode \
4094 source=sub/conftest.c object=$am__obj \
4095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4097 >/dev/null 2>conftest.err &&
4098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102 # icc doesn't choke on unknown options, it will just issue warnings
4103 # or remarks (even with -Werror). So we grep stderr for any message
4104 # that says an option was ignored or not supported.
4105 # When given -MP, icc 7.0 and 7.1 complain thusly:
4106 # icc: Command line warning: ignoring option '-M'; no argument required
4107 # The diagnosis changed in icc 8.0:
4108 # icc: Command line remark: option '-MP' not supported
4109 if (grep 'ignoring option' conftest.err ||
4110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111 am_cv_CC_dependencies_compiler_type=$depmode
4112 break
4113 fi
4114 fi
4115 done
4116
4117 cd ..
4118 rm -rf conftest.dir
4119else
4120 am_cv_CC_dependencies_compiler_type=none
4121fi
4122
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4125$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4126CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4127
4128 if
4129 test "x$enable_dependency_tracking" != xno \
4130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4131 am__fastdepCC_TRUE=
4132 am__fastdepCC_FALSE='#'
4133else
4134 am__fastdepCC_TRUE='#'
4135 am__fastdepCC_FALSE=
4136fi
4137
4138
1d92226b
JJ
4139
4140ac_ext=c
4141ac_cpp='$CPP $CPPFLAGS'
4142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4146$as_echo_n "checking how to run the C preprocessor... " >&6; }
4147# On Suns, sometimes $CPP names a directory.
4148if test -n "$CPP" && test -d "$CPP"; then
4149 CPP=
4150fi
4151if test -z "$CPP"; then
22e05272 4152 if ${ac_cv_prog_CPP+:} false; then :
1ec601bf
FXC
4153 $as_echo_n "(cached) " >&6
4154else
1d92226b
JJ
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4157 do
4158 ac_preproc_ok=false
4159for ac_c_preproc_warn_flag in '' yes
fabfcf5e 4160do
1d92226b
JJ
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168/* end confdefs.h. */
4169#ifdef __STDC__
4170# include <limits.h>
4171#else
4172# include <assert.h>
4173#endif
4174 Syntax error
4175_ACEOF
4176if ac_fn_c_try_cpp "$LINENO"; then :
fabfcf5e 4177
1ec601bf 4178else
1d92226b
JJ
4179 # Broken: fails on valid input.
4180continue
1ec601bf 4181fi
22e05272 4182rm -f conftest.err conftest.i conftest.$ac_ext
1ec601bf 4183
1d92226b
JJ
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h. */
4188#include <ac_nonexistent.h>
4189_ACEOF
4190if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4192continue
4193else
4194 # Passes both tests.
4195ac_preproc_ok=:
4196break
1ec601bf 4197fi
22e05272 4198rm -f conftest.err conftest.i conftest.$ac_ext
1ec601bf 4199
1d92226b
JJ
4200done
4201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4202rm -f conftest.i conftest.err conftest.$ac_ext
1d92226b
JJ
4203if $ac_preproc_ok; then :
4204 break
4205fi
1ec601bf 4206
1d92226b
JJ
4207 done
4208 ac_cv_prog_CPP=$CPP
1ec601bf 4209
1d92226b
JJ
4210fi
4211 CPP=$ac_cv_prog_CPP
1ec601bf 4212else
1d92226b
JJ
4213 ac_cv_prog_CPP=$CPP
4214fi
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4216$as_echo "$CPP" >&6; }
4217ac_preproc_ok=false
4218for ac_c_preproc_warn_flag in '' yes
1ec601bf 4219do
1d92226b
JJ
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227/* end confdefs.h. */
4228#ifdef __STDC__
4229# include <limits.h>
4230#else
4231# include <assert.h>
4232#endif
4233 Syntax error
4234_ACEOF
4235if ac_fn_c_try_cpp "$LINENO"; then :
4236
4237else
4238 # Broken: fails on valid input.
4239continue
4240fi
22e05272 4241rm -f conftest.err conftest.i conftest.$ac_ext
1d92226b
JJ
4242
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246/* end confdefs.h. */
4247#include <ac_nonexistent.h>
4248_ACEOF
4249if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: success on invalid input.
4251continue
4252else
4253 # Passes both tests.
4254ac_preproc_ok=:
4255break
4256fi
22e05272 4257rm -f conftest.err conftest.i conftest.$ac_ext
1d92226b
JJ
4258
4259done
4260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4261rm -f conftest.i conftest.err conftest.$ac_ext
1d92226b
JJ
4262if $ac_preproc_ok; then :
4263
4264else
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4267as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4268See \`config.log' for more details" "$LINENO" 5; }
1d92226b
JJ
4269fi
4270
4271ac_ext=c
4272ac_cpp='$CPP $CPPFLAGS'
4273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276
4277
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4279$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4280if ${ac_cv_path_GREP+:} false; then :
1d92226b
JJ
4281 $as_echo_n "(cached) " >&6
4282else
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4294 as_fn_executable_p "$ac_path_GREP" || continue
1d92226b
JJ
4295# Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297case `"$ac_path_GREP" --version 2>&1` in
4298*GNU*)
1ec601bf
FXC
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4300*)
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4304 do
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
4316 fi
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321esac
4322
4323 $ac_path_GREP_found && break 3
4324 done
4325 done
4326 done
4327IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_GREP"; then
22e05272 4329 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1ec601bf
FXC
4330 fi
4331else
4332 ac_cv_path_GREP=$GREP
4333fi
4334
4335fi
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4337$as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4339
4340
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4342$as_echo_n "checking for egrep... " >&6; }
22e05272 4343if ${ac_cv_path_EGREP+:} false; then :
1ec601bf
FXC
4344 $as_echo_n "(cached) " >&6
4345else
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4360 as_fn_executable_p "$ac_path_EGREP" || continue
1ec601bf
FXC
4361# Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363case `"$ac_path_EGREP" --version 2>&1` in
4364*GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4366*)
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4370 do
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4382 fi
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387esac
4388
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392 done
4393IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
22e05272 4395 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1ec601bf
FXC
4396 fi
4397else
4398 ac_cv_path_EGREP=$EGREP
4399fi
4400
4401 fi
4402fi
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4404$as_echo "$ac_cv_path_EGREP" >&6; }
4405 EGREP="$ac_cv_path_EGREP"
4406
4407
1d92226b
JJ
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4409$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4410if ${ac_cv_header_stdc+:} false; then :
1ec601bf
FXC
4411 $as_echo_n "(cached) " >&6
4412else
1d92226b
JJ
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h. */
4415#include <stdlib.h>
4416#include <stdarg.h>
4417#include <string.h>
4418#include <float.h>
1ec601bf 4419
1d92226b
JJ
4420int
4421main ()
4422{
4423
4424 ;
4425 return 0;
4426}
4427_ACEOF
4428if ac_fn_c_try_compile "$LINENO"; then :
4429 ac_cv_header_stdc=yes
1ec601bf 4430else
1d92226b 4431 ac_cv_header_stdc=no
1ec601bf 4432fi
1d92226b 4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1ec601bf 4434
1d92226b
JJ
4435if test $ac_cv_header_stdc = yes; then
4436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438/* end confdefs.h. */
4439#include <string.h>
4440
4441_ACEOF
4442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443 $EGREP "memchr" >/dev/null 2>&1; then :
4444
4445else
4446 ac_cv_header_stdc=no
1ec601bf 4447fi
1d92226b 4448rm -f conftest*
1ec601bf 4449
1d92226b 4450fi
1ec601bf 4451
1d92226b
JJ
4452if test $ac_cv_header_stdc = yes; then
4453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h. */
4456#include <stdlib.h>
1ec601bf 4457
1d92226b
JJ
4458_ACEOF
4459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "free" >/dev/null 2>&1; then :
1ec601bf 4461
1d92226b
JJ
4462else
4463 ac_cv_header_stdc=no
4464fi
4465rm -f conftest*
1ec601bf 4466
1d92226b 4467fi
1ec601bf 4468
1d92226b
JJ
4469if test $ac_cv_header_stdc = yes; then
4470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4471 if test "$cross_compiling" = yes; then :
4472 :
4473else
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h. */
4476#include <ctype.h>
4477#include <stdlib.h>
4478#if ((' ' & 0x0FF) == 0x020)
4479# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4480# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4481#else
4482# define ISLOWER(c) \
4483 (('a' <= (c) && (c) <= 'i') \
4484 || ('j' <= (c) && (c) <= 'r') \
4485 || ('s' <= (c) && (c) <= 'z'))
4486# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4487#endif
1ec601bf 4488
1d92226b
JJ
4489#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4490int
4491main ()
4492{
4493 int i;
4494 for (i = 0; i < 256; i++)
4495 if (XOR (islower (i), ISLOWER (i))
4496 || toupper (i) != TOUPPER (i))
4497 return 2;
4498 return 0;
4499}
4500_ACEOF
4501if ac_fn_c_try_run "$LINENO"; then :
1ec601bf 4502
1d92226b
JJ
4503else
4504 ac_cv_header_stdc=no
4505fi
4506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4507 conftest.$ac_objext conftest.beam conftest.$ac_ext
4508fi
1ec601bf 4509
1d92226b
JJ
4510fi
4511fi
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4513$as_echo "$ac_cv_header_stdc" >&6; }
4514if test $ac_cv_header_stdc = yes; then
1ec601bf 4515
1d92226b 4516$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1ec601bf 4517
1d92226b 4518fi
1ec601bf 4519
1d92226b
JJ
4520# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4521for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4522 inttypes.h stdint.h unistd.h
4523do :
4524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4525ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4526"
22e05272 4527if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1d92226b
JJ
4528 cat >>confdefs.h <<_ACEOF
4529#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4530_ACEOF
1ec601bf 4531
1d92226b 4532fi
1ec601bf 4533
1d92226b 4534done
1ec601bf
FXC
4535
4536
4537
1d92226b 4538 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 4539if test "x$ac_cv_header_minix_config_h" = xyes; then :
1d92226b
JJ
4540 MINIX=yes
4541else
4542 MINIX=
4543fi
1ec601bf
FXC
4544
4545
1d92226b 4546 if test "$MINIX" = yes; then
1ec601bf 4547
1d92226b 4548$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
1ec601bf 4549
1ec601bf 4550
1d92226b
JJ
4551$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4552
4553
4554$as_echo "#define _MINIX 1" >>confdefs.h
4555
4556 fi
4557
4558
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4560$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 4561if ${ac_cv_safe_to_define___extensions__+:} false; then :
1ec601bf
FXC
4562 $as_echo_n "(cached) " >&6
4563else
1d92226b
JJ
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565/* end confdefs.h. */
1ec601bf 4566
22e05272
JM
4567# define __EXTENSIONS__ 1
4568 $ac_includes_default
1d92226b
JJ
4569int
4570main ()
4571{
4572
4573 ;
4574 return 0;
4575}
4576_ACEOF
4577if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_cv_safe_to_define___extensions__=yes
1ec601bf 4579else
1d92226b 4580 ac_cv_safe_to_define___extensions__=no
1ec601bf 4581fi
1d92226b 4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1ec601bf 4583fi
1d92226b
JJ
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4585$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4586 test $ac_cv_safe_to_define___extensions__ = yes &&
4587 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
1ec601bf 4588
1d92226b 4589 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
1ec601bf 4590
1d92226b 4591 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
1ec601bf 4592
1d92226b 4593 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
1ec601bf 4594
1d92226b 4595 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
1ec601bf
FXC
4596
4597
4598
1d92226b
JJ
4599# See if makeinfo has been installed and is modern enough
4600# that we can use it.
1ec601bf 4601
1d92226b
JJ
4602 # Extract the first word of "makeinfo", so it can be a program name with args.
4603set dummy makeinfo; ac_word=$2
1ec601bf
FXC
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4606if ${ac_cv_prog_MAKEINFO+:} false; then :
1ec601bf
FXC
4607 $as_echo_n "(cached) " >&6
4608else
1d92226b
JJ
4609 if test -n "$MAKEINFO"; then
4610 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1ec601bf
FXC
4611else
4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b 4619 ac_cv_prog_MAKEINFO="makeinfo"
1ec601bf
FXC
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623done
4624 done
4625IFS=$as_save_IFS
4626
4627fi
4628fi
1d92226b
JJ
4629MAKEINFO=$ac_cv_prog_MAKEINFO
4630if test -n "$MAKEINFO"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4632$as_echo "$MAKEINFO" >&6; }
1ec601bf
FXC
4633else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635$as_echo "no" >&6; }
4636fi
4637
4638
1d92226b
JJ
4639 if test -n "$MAKEINFO"; then
4640 # Found it, now check the version.
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4642$as_echo_n "checking for modern makeinfo... " >&6; }
22e05272 4643if ${gcc_cv_prog_makeinfo_modern+:} false; then :
1ec601bf
FXC
4644 $as_echo_n "(cached) " >&6
4645else
1d92226b
JJ
4646 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4647 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4648
4649 case $ac_prog_version in
4650 '') gcc_cv_prog_makeinfo_modern=no;;
4651 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4652 *) gcc_cv_prog_makeinfo_modern=no;;
4653 esac
1ec601bf
FXC
4654
4655fi
1d92226b
JJ
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4657$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4658 else
4659 gcc_cv_prog_makeinfo_modern=no
4660 fi
4661 if test $gcc_cv_prog_makeinfo_modern = no; then
4662 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4663 fi
4664
4665 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4666 BUILD_INFO_TRUE=
4667 BUILD_INFO_FALSE='#'
1ec601bf 4668else
1d92226b
JJ
4669 BUILD_INFO_TRUE='#'
4670 BUILD_INFO_FALSE=
1ec601bf
FXC
4671fi
4672
4673
1ec601bf 4674
1ec601bf 4675
1d92226b
JJ
4676# Check whether --with-bugurl was given.
4677if test "${with_bugurl+set}" = set; then :
4678 withval=$with_bugurl; case "$withval" in
22e05272 4679 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
1d92226b
JJ
4680 no) BUGURL=
4681 ;;
4682 *) BUGURL="$withval"
4683 ;;
4684 esac
4685else
19e30111 4686 BUGURL="https://gcc.gnu.org/bugs/"
1ec601bf 4687
1ec601bf 4688fi
1ec601bf 4689
1d92226b
JJ
4690 case ${BUGURL} in
4691 "")
4692 REPORT_BUGS_TO=
4693 REPORT_BUGS_TEXI=
4694 ;;
4695 *)
4696 REPORT_BUGS_TO="<$BUGURL>"
4697 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4698 ;;
4699 esac;
1ec601bf
FXC
4700
4701
4702
4703
1d92226b
JJ
4704# Configure libtool
4705case `pwd` in
4706 *\ * | *\ *)
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4708$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4709esac
1ec601bf 4710
1ec601bf 4711
1ec601bf 4712
1d92226b
JJ
4713macro_version='2.2.7a'
4714macro_revision='1.3134'
1ec601bf 4715
1ec601bf 4716
1ec601bf 4717
1ec601bf 4718
1ec601bf 4719
1ec601bf 4720
1ec601bf 4721
1ec601bf 4722
1ec601bf 4723
1ec601bf
FXC
4724
4725
4726
4727
1d92226b 4728ltmain="$ac_aux_dir/ltmain.sh"
1ec601bf 4729
1d92226b
JJ
4730# Backslashify metacharacters that are still active within
4731# double-quoted strings.
4732sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1ec601bf 4733
1d92226b
JJ
4734# Same as above, but do not quote variable references.
4735double_quote_subst='s/\(["`\\]\)/\\\1/g'
1ec601bf 4736
1d92226b
JJ
4737# Sed substitution to delay expansion of an escaped shell variable in a
4738# double_quote_subst'ed string.
4739delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1ec601bf 4740
1d92226b
JJ
4741# Sed substitution to delay expansion of an escaped single quote.
4742delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1ec601bf 4743
1d92226b
JJ
4744# Sed substitution to avoid accidental globbing in evaled expressions
4745no_glob_subst='s/\*/\\\*/g'
1ec601bf 4746
1d92226b
JJ
4747ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4748ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4749ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1ec601bf 4750
1d92226b
JJ
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4752$as_echo_n "checking how to print strings... " >&6; }
4753# Test print first, because it will be a builtin if present.
4754if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4756 ECHO='print -r --'
4757elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4758 ECHO='printf %s\n'
1ec601bf 4759else
1d92226b
JJ
4760 # Use this function as a fallback that always works.
4761 func_fallback_echo ()
4762 {
4763 eval 'cat <<_LTECHO_EOF
4764$1
4765_LTECHO_EOF'
4766 }
4767 ECHO='func_fallback_echo'
1ec601bf
FXC
4768fi
4769
1d92226b
JJ
4770# func_echo_all arg...
4771# Invoke $ECHO with all args, space-separated.
4772func_echo_all ()
4773{
4774 $ECHO ""
4775}
1ec601bf 4776
1d92226b
JJ
4777case "$ECHO" in
4778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4779$as_echo "printf" >&6; } ;;
4780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4781$as_echo "print -r" >&6; } ;;
4782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4783$as_echo "cat" >&6; } ;;
1ec601bf
FXC
4784esac
4785
4786
4787
4788
4789
4790
4791
4792
4793
1ec601bf
FXC
4794
4795
4796
4797
4798
1d92226b
JJ
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4800$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 4801if ${ac_cv_path_SED+:} false; then :
1ec601bf
FXC
4802 $as_echo_n "(cached) " >&6
4803else
1d92226b
JJ
4804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4805 for ac_i in 1 2 3 4 5 6 7; do
4806 ac_script="$ac_script$as_nl$ac_script"
4807 done
4808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4809 { ac_script=; unset ac_script;}
4810 if test -z "$SED"; then
4811 ac_path_SED_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1ec601bf
FXC
4814for as_dir in $PATH
4815do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
1d92226b 4818 for ac_prog in sed gsed; do
1ec601bf 4819 for ac_exec_ext in '' $ac_executable_extensions; do
1d92226b 4820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4821 as_fn_executable_p "$ac_path_SED" || continue
1d92226b
JJ
4822# Check for GNU ac_path_SED and select it if it is found.
4823 # Check for GNU $ac_path_SED
4824case `"$ac_path_SED" --version 2>&1` in
4825*GNU*)
4826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4827*)
4828 ac_count=0
4829 $as_echo_n 0123456789 >"conftest.in"
4830 while :
4831 do
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo '' >> "conftest.nl"
4836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_SED_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_SED="$ac_path_SED"
4842 ac_path_SED_max=$ac_count
4843 fi
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
1ec601bf 4846 done
1d92226b
JJ
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848esac
1ec601bf 4849
1d92226b
JJ
4850 $ac_path_SED_found && break 3
4851 done
4852 done
4853 done
4854IFS=$as_save_IFS
4855 if test -z "$ac_cv_path_SED"; then
22e05272 4856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1d92226b 4857 fi
1ec601bf 4858else
1d92226b 4859 ac_cv_path_SED=$SED
1ec601bf
FXC
4860fi
4861
1ec601bf 4862fi
1d92226b
JJ
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4864$as_echo "$ac_cv_path_SED" >&6; }
4865 SED="$ac_cv_path_SED"
4866 rm -f conftest.sed
4867
4868test -z "$SED" && SED=sed
4869Xsed="$SED -e 1s/^X//"
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4882$as_echo_n "checking for fgrep... " >&6; }
22e05272 4883if ${ac_cv_path_FGREP+:} false; then :
1ec601bf
FXC
4884 $as_echo_n "(cached) " >&6
4885else
1d92226b
JJ
4886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4887 then ac_cv_path_FGREP="$GREP -F"
4888 else
4889 if test -z "$FGREP"; then
4890 ac_path_FGREP_found=false
4891 # Loop through the user's path and test for each of PROGNAME-LIST
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1ec601bf
FXC
4894do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
1d92226b 4897 for ac_prog in fgrep; do
1ec601bf 4898 for ac_exec_ext in '' $ac_executable_extensions; do
1d92226b 4899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4900 as_fn_executable_p "$ac_path_FGREP" || continue
1d92226b
JJ
4901# Check for GNU ac_path_FGREP and select it if it is found.
4902 # Check for GNU $ac_path_FGREP
4903case `"$ac_path_FGREP" --version 2>&1` in
4904*GNU*)
4905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4906*)
4907 ac_count=0
4908 $as_echo_n 0123456789 >"conftest.in"
4909 while :
4910 do
4911 cat "conftest.in" "conftest.in" >"conftest.tmp"
4912 mv "conftest.tmp" "conftest.in"
4913 cp "conftest.in" "conftest.nl"
4914 $as_echo 'FGREP' >> "conftest.nl"
4915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4917 as_fn_arith $ac_count + 1 && ac_count=$as_val
4918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4919 # Best one so far, save it but keep looking for a better one
4920 ac_cv_path_FGREP="$ac_path_FGREP"
4921 ac_path_FGREP_max=$ac_count
4922 fi
4923 # 10*(2^10) chars as input seems more than enough
4924 test $ac_count -gt 10 && break
1ec601bf 4925 done
1d92226b
JJ
4926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4927esac
1ec601bf 4928
1d92226b
JJ
4929 $ac_path_FGREP_found && break 3
4930 done
4931 done
4932 done
4933IFS=$as_save_IFS
4934 if test -z "$ac_cv_path_FGREP"; then
22e05272 4935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1d92226b 4936 fi
1ec601bf 4937else
1d92226b 4938 ac_cv_path_FGREP=$FGREP
1ec601bf
FXC
4939fi
4940
1d92226b 4941 fi
1ec601bf 4942fi
1d92226b
JJ
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4944$as_echo "$ac_cv_path_FGREP" >&6; }
4945 FGREP="$ac_cv_path_FGREP"
1ec601bf 4946
1ec601bf 4947
1d92226b 4948test -z "$GREP" && GREP=grep
1ec601bf
FXC
4949
4950
4951
4952
4953
4954
4955
4956
1d92226b
JJ
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968# Check whether --with-gnu-ld was given.
4969if test "${with_gnu_ld+set}" = set; then :
4970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4971else
4972 with_gnu_ld=no
4973fi
4974
4975ac_prog=ld
4976if test "$GCC" = yes; then
4977 # Check if gcc -print-prog-name=ld gives a path.
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4979$as_echo_n "checking for ld used by $CC... " >&6; }
4980 case $host in
4981 *-*-mingw*)
4982 # gcc leaves a trailing carriage return which upsets mingw
4983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4984 *)
4985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4986 esac
4987 case $ac_prog in
4988 # Accept absolute paths.
4989 [\\/]* | ?:[\\/]*)
4990 re_direlt='/[^/][^/]*/\.\./'
4991 # Canonicalize the pathname of ld
4992 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4993 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4994 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4995 done
4996 test -z "$LD" && LD="$ac_prog"
4997 ;;
4998 "")
4999 # If it fails, then pretend we aren't using GCC.
5000 ac_prog=ld
5001 ;;
5002 *)
5003 # If it is relative, then search for the first ld in PATH.
5004 with_gnu_ld=unknown
5005 ;;
5006 esac
5007elif test "$with_gnu_ld" = yes; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5009$as_echo_n "checking for GNU ld... " >&6; }
5010else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5012$as_echo_n "checking for non-GNU ld... " >&6; }
5013fi
22e05272 5014if ${lt_cv_path_LD+:} false; then :
1d92226b
JJ
5015 $as_echo_n "(cached) " >&6
5016else
5017 if test -z "$LD"; then
5018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5019 for ac_dir in $PATH; do
5020 IFS="$lt_save_ifs"
5021 test -z "$ac_dir" && ac_dir=.
5022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5023 lt_cv_path_LD="$ac_dir/$ac_prog"
5024 # Check to see if the program is GNU ld. I'd rather use --version,
5025 # but apparently some variants of GNU ld only accept -v.
5026 # Break only if it was the GNU/non-GNU ld that we prefer.
5027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5028 *GNU* | *'with BFD'*)
5029 test "$with_gnu_ld" != no && break
5030 ;;
5031 *)
5032 test "$with_gnu_ld" != yes && break
5033 ;;
5034 esac
5035 fi
5036 done
5037 IFS="$lt_save_ifs"
5038else
5039 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5040fi
5041fi
5042
5043LD="$lt_cv_path_LD"
5044if test -n "$LD"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5046$as_echo "$LD" >&6; }
5047else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049$as_echo "no" >&6; }
5050fi
22e05272 5051test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1d92226b
JJ
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5053$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5054if ${lt_cv_prog_gnu_ld+:} false; then :
1d92226b
JJ
5055 $as_echo_n "(cached) " >&6
5056else
5057 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5058case `$LD -v 2>&1 </dev/null` in
5059*GNU* | *'with BFD'*)
5060 lt_cv_prog_gnu_ld=yes
5061 ;;
5062*)
5063 lt_cv_prog_gnu_ld=no
5064 ;;
5065esac
5066fi
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5068$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5069with_gnu_ld=$lt_cv_prog_gnu_ld
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5080$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5081if ${lt_cv_path_NM+:} false; then :
1d92226b
JJ
5082 $as_echo_n "(cached) " >&6
5083else
5084 if test -n "$NM"; then
5085 # Let the user override the test.
5086 lt_cv_path_NM="$NM"
5087else
5088 lt_nm_to_check="${ac_tool_prefix}nm"
5089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5090 lt_nm_to_check="$lt_nm_to_check nm"
5091 fi
5092 for lt_tmp_nm in $lt_nm_to_check; do
5093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5094 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5095 IFS="$lt_save_ifs"
5096 test -z "$ac_dir" && ac_dir=.
5097 tmp_nm="$ac_dir/$lt_tmp_nm"
5098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5099 # Check to see if the nm accepts a BSD-compat flag.
5100 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5101 # nm: unknown option "B" ignored
5102 # Tru64's nm complains that /dev/null is an invalid object file
5103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5104 */dev/null* | *'Invalid file or object type'*)
5105 lt_cv_path_NM="$tmp_nm -B"
5106 break
5107 ;;
5108 *)
5109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5110 */dev/null*)
5111 lt_cv_path_NM="$tmp_nm -p"
5112 break
5113 ;;
5114 *)
5115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5116 continue # so that we can try to find one that supports BSD flags
5117 ;;
5118 esac
5119 ;;
5120 esac
5121 fi
5122 done
5123 IFS="$lt_save_ifs"
5124 done
5125 : ${lt_cv_path_NM=no}
5126fi
5127fi
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5129$as_echo "$lt_cv_path_NM" >&6; }
5130if test "$lt_cv_path_NM" != "no"; then
5131 NM="$lt_cv_path_NM"
5132else
5133 # Didn't find any BSD compatible name lister, look for dumpbin.
5134 if test -n "$DUMPBIN"; then :
5135 # Let the user override the test.
5136 else
5137 if test -n "$ac_tool_prefix"; then
5138 for ac_prog in dumpbin "link -dump"
5139 do
5140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5141set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5144if ${ac_cv_prog_DUMPBIN+:} false; then :
1d92226b
JJ
5145 $as_echo_n "(cached) " >&6
5146else
5147 if test -n "$DUMPBIN"; then
5148 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5149else
5150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b
JJ
5157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161done
5162 done
5163IFS=$as_save_IFS
5164
5165fi
5166fi
5167DUMPBIN=$ac_cv_prog_DUMPBIN
5168if test -n "$DUMPBIN"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5170$as_echo "$DUMPBIN" >&6; }
5171else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173$as_echo "no" >&6; }
5174fi
5175
5176
5177 test -n "$DUMPBIN" && break
5178 done
5179fi
5180if test -z "$DUMPBIN"; then
5181 ac_ct_DUMPBIN=$DUMPBIN
5182 for ac_prog in dumpbin "link -dump"
5183do
5184 # Extract the first word of "$ac_prog", so it can be a program name with args.
5185set dummy $ac_prog; ac_word=$2
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5188if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
1d92226b
JJ
5189 $as_echo_n "(cached) " >&6
5190else
5191 if test -n "$ac_ct_DUMPBIN"; then
5192 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5193else
5194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b
JJ
5201 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205done
5206 done
5207IFS=$as_save_IFS
5208
5209fi
5210fi
5211ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5212if test -n "$ac_ct_DUMPBIN"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5214$as_echo "$ac_ct_DUMPBIN" >&6; }
5215else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217$as_echo "no" >&6; }
5218fi
5219
5220
5221 test -n "$ac_ct_DUMPBIN" && break
5222done
5223
5224 if test "x$ac_ct_DUMPBIN" = x; then
5225 DUMPBIN=":"
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228yes:)
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231ac_tool_warned=yes ;;
5232esac
5233 DUMPBIN=$ac_ct_DUMPBIN
5234 fi
5235fi
5236
5237 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5238 *COFF*)
5239 DUMPBIN="$DUMPBIN -symbols"
5240 ;;
5241 *)
5242 DUMPBIN=:
5243 ;;
5244 esac
5245 fi
5246
5247 if test "$DUMPBIN" != ":"; then
5248 NM="$DUMPBIN"
5249 fi
5250fi
5251test -z "$NM" && NM=nm
5252
5253
5254
5255
5256
5257
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5259$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5260if ${lt_cv_nm_interface+:} false; then :
1d92226b
JJ
5261 $as_echo_n "(cached) " >&6
5262else
5263 lt_cv_nm_interface="BSD nm"
5264 echo "int some_variable = 0;" > conftest.$ac_ext
5265 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5266 (eval "$ac_compile" 2>conftest.err)
5267 cat conftest.err >&5
5268 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5269 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5270 cat conftest.err >&5
5271 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5272 cat conftest.out >&5
5273 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5274 lt_cv_nm_interface="MS dumpbin"
5275 fi
5276 rm -f conftest*
5277fi
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5279$as_echo "$lt_cv_nm_interface" >&6; }
5280
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5282$as_echo_n "checking whether ln -s works... " >&6; }
5283LN_S=$as_ln_s
5284if test "$LN_S" = "ln -s"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5286$as_echo "yes" >&6; }
5287else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5289$as_echo "no, using $LN_S" >&6; }
5290fi
5291
5292# find the maximum length of command line arguments
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5294$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5295if ${lt_cv_sys_max_cmd_len+:} false; then :
1d92226b
JJ
5296 $as_echo_n "(cached) " >&6
5297else
5298 i=0
5299 teststring="ABCD"
5300
5301 case $build_os in
5302 msdosdjgpp*)
5303 # On DJGPP, this test can blow up pretty badly due to problems in libc
5304 # (any single argument exceeding 2000 bytes causes a buffer overrun
5305 # during glob expansion). Even if it were fixed, the result of this
5306 # check would be larger than it should be.
5307 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5308 ;;
5309
5310 gnu*)
5311 # Under GNU Hurd, this test is not required because there is
5312 # no limit to the length of command line arguments.
5313 # Libtool will interpret -1 as no limit whatsoever
5314 lt_cv_sys_max_cmd_len=-1;
5315 ;;
5316
5317 cygwin* | mingw* | cegcc*)
5318 # On Win9x/ME, this test blows up -- it succeeds, but takes
5319 # about 5 minutes as the teststring grows exponentially.
5320 # Worse, since 9x/ME are not pre-emptively multitasking,
5321 # you end up with a "frozen" computer, even though with patience
5322 # the test eventually succeeds (with a max line length of 256k).
5323 # Instead, let's just punt: use the minimum linelength reported by
5324 # all of the supported platforms: 8192 (on NT/2K/XP).
5325 lt_cv_sys_max_cmd_len=8192;
5326 ;;
5327
5328 mint*)
5329 # On MiNT this can take a long time and run out of memory.
5330 lt_cv_sys_max_cmd_len=8192;
5331 ;;
5332
5333 amigaos*)
5334 # On AmigaOS with pdksh, this test takes hours, literally.
5335 # So we just punt and use a minimum line length of 8192.
5336 lt_cv_sys_max_cmd_len=8192;
5337 ;;
5338
5339 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5340 # This has been around since 386BSD, at least. Likely further.
5341 if test -x /sbin/sysctl; then
5342 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5343 elif test -x /usr/sbin/sysctl; then
5344 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5345 else
5346 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5347 fi
5348 # And add a safety zone
5349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5351 ;;
5352
5353 interix*)
5354 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5355 lt_cv_sys_max_cmd_len=196608
5356 ;;
5357
5358 osf*)
5359 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5360 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5361 # nice to cause kernel panics so lets avoid the loop below.
5362 # First set a reasonable default.
5363 lt_cv_sys_max_cmd_len=16384
5364 #
5365 if test -x /sbin/sysconfig; then
5366 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5367 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5368 esac
5369 fi
5370 ;;
5371 sco3.2v5*)
5372 lt_cv_sys_max_cmd_len=102400
5373 ;;
5374 sysv5* | sco5v6* | sysv4.2uw2*)
5375 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5376 if test -n "$kargmax"; then
5377 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5378 else
5379 lt_cv_sys_max_cmd_len=32768
5380 fi
5381 ;;
5382 *)
5383 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5384 if test -n "$lt_cv_sys_max_cmd_len"; then
5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5387 else
5388 # Make teststring a little bigger before we do anything with it.
5389 # a 1K string should be a reasonable start.
5390 for i in 1 2 3 4 5 6 7 8 ; do
5391 teststring=$teststring$teststring
5392 done
5393 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5394 # If test is not a shell built-in, we'll probably end up computing a
5395 # maximum length that is only half of the actual maximum length, but
5396 # we can't tell.
5397 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5398 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5399 test $i != 17 # 1/2 MB should be enough
5400 do
5401 i=`expr $i + 1`
5402 teststring=$teststring$teststring
5403 done
5404 # Only check the string length outside the loop.
5405 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5406 teststring=
5407 # Add a significant safety factor because C++ compilers can tack on
5408 # massive amounts of additional arguments before passing them to the
5409 # linker. It appears as though 1/2 is a usable value.
5410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5411 fi
5412 ;;
5413 esac
5414
5415fi
5416
5417if test -n $lt_cv_sys_max_cmd_len ; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5419$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5420else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5422$as_echo "none" >&6; }
5423fi
5424max_cmd_len=$lt_cv_sys_max_cmd_len
5425
5426
5427
5428
5429
5430
5431: ${CP="cp -f"}
5432: ${MV="mv -f"}
5433: ${RM="rm -f"}
5434
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5436$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5437# Try some XSI features
5438xsi_shell=no
5439( _lt_dummy="a/b/c"
5440 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5441 = c,a/b,, \
5442 && eval 'test $(( 1 + 1 )) -eq 2 \
5443 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5444 && xsi_shell=yes
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5446$as_echo "$xsi_shell" >&6; }
5447
5448
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5450$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5451lt_shell_append=no
5452( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5453 >/dev/null 2>&1 \
5454 && lt_shell_append=yes
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5456$as_echo "$lt_shell_append" >&6; }
5457
5458
5459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5460 lt_unset=unset
5461else
5462 lt_unset=false
5463fi
5464
5465
5466
5467
5468
5469# test EBCDIC or ASCII
5470case `echo X|tr X '\101'` in
5471 A) # ASCII based system
5472 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5473 lt_SP2NL='tr \040 \012'
5474 lt_NL2SP='tr \015\012 \040\040'
5475 ;;
5476 *) # EBCDIC based system
5477 lt_SP2NL='tr \100 \n'
5478 lt_NL2SP='tr \r\n \100\100'
5479 ;;
5480esac
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5491$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5492if ${lt_cv_ld_reload_flag+:} false; then :
1d92226b
JJ
5493 $as_echo_n "(cached) " >&6
5494else
5495 lt_cv_ld_reload_flag='-r'
5496fi
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5498$as_echo "$lt_cv_ld_reload_flag" >&6; }
5499reload_flag=$lt_cv_ld_reload_flag
5500case $reload_flag in
5501"" | " "*) ;;
5502*) reload_flag=" $reload_flag" ;;
5503esac
5504reload_cmds='$LD$reload_flag -o $output$reload_objs'
5505case $host_os in
5506 darwin*)
5507 if test "$GCC" = yes; then
5508 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5509 else
5510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5511 fi
5512 ;;
5513esac
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523if test -n "$ac_tool_prefix"; then
5524 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5525set dummy ${ac_tool_prefix}objdump; ac_word=$2
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5528if ${ac_cv_prog_OBJDUMP+:} false; then :
1d92226b
JJ
5529 $as_echo_n "(cached) " >&6
5530else
5531 if test -n "$OBJDUMP"; then
5532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5533else
5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH
5536do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b
JJ
5541 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545done
5546 done
5547IFS=$as_save_IFS
5548
5549fi
5550fi
5551OBJDUMP=$ac_cv_prog_OBJDUMP
5552if test -n "$OBJDUMP"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5554$as_echo "$OBJDUMP" >&6; }
5555else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557$as_echo "no" >&6; }
5558fi
5559
5560
5561fi
5562if test -z "$ac_cv_prog_OBJDUMP"; then
5563 ac_ct_OBJDUMP=$OBJDUMP
5564 # Extract the first word of "objdump", so it can be a program name with args.
5565set dummy objdump; ac_word=$2
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5568if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
1d92226b
JJ
5569 $as_echo_n "(cached) " >&6
5570else
5571 if test -n "$ac_ct_OBJDUMP"; then
5572 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5573else
5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b
JJ
5581 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585done
5586 done
5587IFS=$as_save_IFS
5588
5589fi
5590fi
5591ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5592if test -n "$ac_ct_OBJDUMP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5594$as_echo "$ac_ct_OBJDUMP" >&6; }
5595else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597$as_echo "no" >&6; }
5598fi
5599
5600 if test "x$ac_ct_OBJDUMP" = x; then
5601 OBJDUMP="false"
5602 else
5603 case $cross_compiling:$ac_tool_warned in
5604yes:)
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607ac_tool_warned=yes ;;
5608esac
5609 OBJDUMP=$ac_ct_OBJDUMP
5610 fi
5611else
5612 OBJDUMP="$ac_cv_prog_OBJDUMP"
5613fi
5614
5615test -z "$OBJDUMP" && OBJDUMP=objdump
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5626$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 5627if ${lt_cv_deplibs_check_method+:} false; then :
1ec601bf
FXC
5628 $as_echo_n "(cached) " >&6
5629else
5630 lt_cv_file_magic_cmd='$MAGIC_CMD'
5631lt_cv_file_magic_test_file=
5632lt_cv_deplibs_check_method='unknown'
5633# Need to set the preceding variable on all platforms that support
5634# interlibrary dependencies.
5635# 'none' -- dependencies not supported.
5636# `unknown' -- same as none, but documents that we really don't know.
5637# 'pass_all' -- all dependencies passed with no checks.
5638# 'test_compile' -- check by making test program.
5639# 'file_magic [[regex]]' -- check by looking for files in library path
5640# which responds to the $file_magic_cmd with a given extended regex.
5641# If you have `file' or equivalent on your system and you're not sure
5642# whether `pass_all' will *always* work, you probably want this one.
5643
5644case $host_os in
5645aix[4-9]*)
5646 lt_cv_deplibs_check_method=pass_all
5647 ;;
5648
5649beos*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653bsdi[45]*)
5654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5655 lt_cv_file_magic_cmd='/usr/bin/file -L'
5656 lt_cv_file_magic_test_file=/shlib/libc.so
5657 ;;
5658
5659cygwin*)
5660 # func_win32_libid is a shell function defined in ltmain.sh
5661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5662 lt_cv_file_magic_cmd='func_win32_libid'
5663 ;;
5664
5665mingw* | pw32*)
5666 # Base MSYS/MinGW do not provide the 'file' command needed by
5667 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5668 # unless we find 'file', for example because we are cross-compiling.
5669 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5670 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5672 lt_cv_file_magic_cmd='func_win32_libid'
5673 else
5674 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5675 lt_cv_file_magic_cmd='$OBJDUMP -f'
5676 fi
5677 ;;
5678
5679cegcc*)
5680 # use the weaker test based on 'objdump'. See mingw*.
5681 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5682 lt_cv_file_magic_cmd='$OBJDUMP -f'
5683 ;;
5684
5685darwin* | rhapsody*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688
5689freebsd* | dragonfly*)
5690 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5691 case $host_cpu in
5692 i*86 )
5693 # Not sure whether the presence of OpenBSD here was a mistake.
5694 # Let's accept both of them until this is cleared up.
5695 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5696 lt_cv_file_magic_cmd=/usr/bin/file
5697 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5698 ;;
5699 esac
5700 else
5701 lt_cv_deplibs_check_method=pass_all
5702 fi
5703 ;;
5704
5705gnu*)
5706 lt_cv_deplibs_check_method=pass_all
5707 ;;
5708
5709haiku*)
5710 lt_cv_deplibs_check_method=pass_all
5711 ;;
5712
5713hpux10.20* | hpux11*)
5714 lt_cv_file_magic_cmd=/usr/bin/file
5715 case $host_cpu in
5716 ia64*)
5717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5718 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5719 ;;
5720 hppa*64*)
5721 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]'
5722 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5723 ;;
5724 *)
5725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5726 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5727 ;;
5728 esac
5729 ;;
5730
5731interix[3-9]*)
5732 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5734 ;;
5735
5736irix5* | irix6* | nonstopux*)
5737 case $LD in
5738 *-32|*"-32 ") libmagic=32-bit;;
5739 *-n32|*"-n32 ") libmagic=N32;;
5740 *-64|*"-64 ") libmagic=64-bit;;
5741 *) libmagic=never-match;;
5742 esac
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745
5746# This must be Linux ELF.
e9085da5 5747linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1ec601bf
FXC
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751netbsd*)
5752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754 else
5755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5756 fi
5757 ;;
5758
5759newos6*)
5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5761 lt_cv_file_magic_cmd=/usr/bin/file
5762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5763 ;;
5764
5765*nto* | *qnx*)
5766 lt_cv_deplibs_check_method=pass_all
5767 ;;
5768
5769openbsd*)
5770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5772 else
5773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5774 fi
5775 ;;
5776
5777osf3* | osf4* | osf5*)
5778 lt_cv_deplibs_check_method=pass_all
5779 ;;
5780
5781rdos*)
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
5784
5785solaris*)
5786 lt_cv_deplibs_check_method=pass_all
5787 ;;
5788
5789sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792
5793sysv4 | sysv4.3*)
5794 case $host_vendor in
5795 motorola)
5796 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]'
5797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5798 ;;
5799 ncr)
5800 lt_cv_deplibs_check_method=pass_all
5801 ;;
5802 sequent)
5803 lt_cv_file_magic_cmd='/bin/file'
5804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5805 ;;
5806 sni)
5807 lt_cv_file_magic_cmd='/bin/file'
5808 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5809 lt_cv_file_magic_test_file=/lib/libc.so
5810 ;;
5811 siemens)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814 pc)
5815 lt_cv_deplibs_check_method=pass_all
5816 ;;
5817 esac
5818 ;;
5819
5820tpf*)
5821 lt_cv_deplibs_check_method=pass_all
5822 ;;
5823esac
5824
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5827$as_echo "$lt_cv_deplibs_check_method" >&6; }
5828file_magic_cmd=$lt_cv_file_magic_cmd
5829deplibs_check_method=$lt_cv_deplibs_check_method
5830test -z "$deplibs_check_method" && deplibs_check_method=unknown
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843if test -n "$ac_tool_prefix"; then
5844 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5845set dummy ${ac_tool_prefix}ar; ac_word=$2
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5848if ${ac_cv_prog_AR+:} false; then :
1ec601bf
FXC
5849 $as_echo_n "(cached) " >&6
5850else
5851 if test -n "$AR"; then
5852 ac_cv_prog_AR="$AR" # Let the user override the test.
5853else
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
5861 ac_cv_prog_AR="${ac_tool_prefix}ar"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865done
5866 done
5867IFS=$as_save_IFS
5868
5869fi
5870fi
5871AR=$ac_cv_prog_AR
5872if test -n "$AR"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5874$as_echo "$AR" >&6; }
5875else
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877$as_echo "no" >&6; }
5878fi
5879
5880
5881fi
5882if test -z "$ac_cv_prog_AR"; then
5883 ac_ct_AR=$AR
5884 # Extract the first word of "ar", so it can be a program name with args.
5885set dummy ar; ac_word=$2
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5888if ${ac_cv_prog_ac_ct_AR+:} false; then :
1ec601bf
FXC
5889 $as_echo_n "(cached) " >&6
5890else
5891 if test -n "$ac_ct_AR"; then
5892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
5901 ac_cv_prog_ac_ct_AR="ar"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5904 fi
5905done
5906 done
5907IFS=$as_save_IFS
5908
5909fi
5910fi
5911ac_ct_AR=$ac_cv_prog_ac_ct_AR
5912if test -n "$ac_ct_AR"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5914$as_echo "$ac_ct_AR" >&6; }
5915else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917$as_echo "no" >&6; }
5918fi
5919
5920 if test "x$ac_ct_AR" = x; then
5921 AR="false"
5922 else
5923 case $cross_compiling:$ac_tool_warned in
5924yes:)
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927ac_tool_warned=yes ;;
5928esac
5929 AR=$ac_ct_AR
5930 fi
5931else
5932 AR="$ac_cv_prog_AR"
5933fi
5934
5935test -z "$AR" && AR=ar
5936test -z "$AR_FLAGS" && AR_FLAGS=cru
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948if test -n "$ac_tool_prefix"; then
5949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5950set dummy ${ac_tool_prefix}strip; ac_word=$2
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5953if ${ac_cv_prog_STRIP+:} false; then :
1ec601bf
FXC
5954 $as_echo_n "(cached) " >&6
5955else
5956 if test -n "$STRIP"; then
5957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
5966 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970done
5971 done
5972IFS=$as_save_IFS
5973
5974fi
5975fi
5976STRIP=$ac_cv_prog_STRIP
5977if test -n "$STRIP"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5979$as_echo "$STRIP" >&6; }
5980else
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982$as_echo "no" >&6; }
5983fi
5984
5985
5986fi
5987if test -z "$ac_cv_prog_STRIP"; then
5988 ac_ct_STRIP=$STRIP
5989 # Extract the first word of "strip", so it can be a program name with args.
5990set dummy strip; ac_word=$2
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5993if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1ec601bf
FXC
5994 $as_echo_n "(cached) " >&6
5995else
5996 if test -n "$ac_ct_STRIP"; then
5997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
6006 ac_cv_prog_ac_ct_STRIP="strip"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010done
6011 done
6012IFS=$as_save_IFS
6013
6014fi
6015fi
6016ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6017if test -n "$ac_ct_STRIP"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6019$as_echo "$ac_ct_STRIP" >&6; }
6020else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022$as_echo "no" >&6; }
6023fi
6024
6025 if test "x$ac_ct_STRIP" = x; then
6026 STRIP=":"
6027 else
6028 case $cross_compiling:$ac_tool_warned in
6029yes:)
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6032ac_tool_warned=yes ;;
6033esac
6034 STRIP=$ac_ct_STRIP
6035 fi
6036else
6037 STRIP="$ac_cv_prog_STRIP"
6038fi
6039
6040test -z "$STRIP" && STRIP=:
6041
6042
6043
6044
6045
6046
6047if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6049set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6052if ${ac_cv_prog_RANLIB+:} false; then :
1ec601bf
FXC
6053 $as_echo_n "(cached) " >&6
6054else
6055 if test -n "$RANLIB"; then
6056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
6065 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069done
6070 done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075RANLIB=$ac_cv_prog_RANLIB
6076if test -n "$RANLIB"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6078$as_echo "$RANLIB" >&6; }
6079else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
6082fi
6083
6084
6085fi
6086if test -z "$ac_cv_prog_RANLIB"; then
6087 ac_ct_RANLIB=$RANLIB
6088 # Extract the first word of "ranlib", so it can be a program name with args.
6089set dummy ranlib; ac_word=$2
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6092if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1ec601bf
FXC
6093 $as_echo_n "(cached) " >&6
6094else
6095 if test -n "$ac_ct_RANLIB"; then
6096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
6105 ac_cv_prog_ac_ct_RANLIB="ranlib"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109done
6110 done
6111IFS=$as_save_IFS
6112
6113fi
6114fi
6115ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6116if test -n "$ac_ct_RANLIB"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6118$as_echo "$ac_ct_RANLIB" >&6; }
6119else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121$as_echo "no" >&6; }
6122fi
6123
6124 if test "x$ac_ct_RANLIB" = x; then
6125 RANLIB=":"
6126 else
6127 case $cross_compiling:$ac_tool_warned in
6128yes:)
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131ac_tool_warned=yes ;;
6132esac
6133 RANLIB=$ac_ct_RANLIB
6134 fi
6135else
6136 RANLIB="$ac_cv_prog_RANLIB"
6137fi
6138
6139test -z "$RANLIB" && RANLIB=:
6140
6141
6142
6143
6144
6145
6146# Determine commands to create old-style static archives.
6147old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6148old_postinstall_cmds='chmod 644 $oldlib'
6149old_postuninstall_cmds=
6150
6151if test -n "$RANLIB"; then
6152 case $host_os in
6153 openbsd*)
6154 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6155 ;;
6156 *)
6157 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6158 ;;
6159 esac
6160 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6161fi
6162
6163case $host_os in
6164 darwin*)
6165 lock_old_archive_extraction=yes ;;
6166 *)
6167 lock_old_archive_extraction=no ;;
6168esac
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208# If no C compiler was specified, use CC.
6209LTCC=${LTCC-"$CC"}
6210
6211# If no C compiler flags were specified, use CFLAGS.
6212LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6213
6214# Allow CC to be a program name with arguments.
6215compiler=$CC
6216
6217
6218# Check for command to grab the raw symbol name followed by C symbol from nm.
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6220$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6221if ${lt_cv_sys_global_symbol_pipe+:} false; then :
1ec601bf
FXC
6222 $as_echo_n "(cached) " >&6
6223else
6224
6225# These are sane defaults that work on at least a few old systems.
6226# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6227
6228# Character class describing NM global symbol codes.
6229symcode='[BCDEGRST]'
6230
6231# Regexp to match symbols that can be accessed directly from C.
6232sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6233
6234# Define system-specific variables.
6235case $host_os in
6236aix*)
6237 symcode='[BCDT]'
6238 ;;
6239cygwin* | mingw* | pw32* | cegcc*)
6240 symcode='[ABCDGISTW]'
6241 ;;
6242hpux*)
6243 if test "$host_cpu" = ia64; then
6244 symcode='[ABCDEGRST]'
6245 fi
6246 ;;
6247irix* | nonstopux*)
6248 symcode='[BCDEGRST]'
6249 ;;
6250osf*)
6251 symcode='[BCDEGQRST]'
6252 ;;
6253solaris*)
6254 symcode='[BDRT]'
6255 ;;
6256sco3.2v5*)
6257 symcode='[DT]'
6258 ;;
6259sysv4.2uw2*)
6260 symcode='[DT]'
6261 ;;
6262sysv5* | sco5v6* | unixware* | OpenUNIX*)
6263 symcode='[ABDT]'
6264 ;;
6265sysv4)
6266 symcode='[DFNSTU]'
6267 ;;
6268esac
6269
6270# If we're using GNU nm, then use its standard symbol codes.
6271case `$NM -V 2>&1` in
6272*GNU* | *'with BFD'*)
6273 symcode='[ABCDGIRSTW]' ;;
6274esac
6275
6276# Transform an extracted symbol line into a proper C declaration.
6277# Some systems (esp. on ia64) link data and code symbols differently,
6278# so use this general approach.
6279lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6280
6281# Transform an extracted symbol line into symbol name and symbol address
6282lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6283lt_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'"
6284
6285# Handle CRLF in mingw tool chain
6286opt_cr=
6287case $build_os in
6288mingw*)
6289 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6290 ;;
6291esac
6292
6293# Try without a prefix underscore, then with it.
6294for ac_symprfx in "" "_"; do
6295
6296 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6297 symxfrm="\\1 $ac_symprfx\\2 \\2"
6298
6299 # Write the raw and C identifiers.
6300 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6301 # Fake it for dumpbin and say T for any non-static function
6302 # and D for any global variable.
6303 # Also find C++ and __fastcall symbols from MSVC++,
6304 # which start with @ or ?.
6305 lt_cv_sys_global_symbol_pipe="$AWK '"\
6306" {last_section=section; section=\$ 3};"\
6307" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6308" \$ 0!~/External *\|/{next};"\
6309" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6310" {if(hide[section]) next};"\
6311" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6312" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6313" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6314" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6315" ' prfx=^$ac_symprfx"
6316 else
6317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6318 fi
6319
6320 # Check to see that the pipe works correctly.
6321 pipe_works=no
6322
6323 rm -f conftest*
6324 cat > conftest.$ac_ext <<_LT_EOF
6325#ifdef __cplusplus
6326extern "C" {
6327#endif
6328char nm_test_var;
6329void nm_test_func(void);
6330void nm_test_func(void){}
6331#ifdef __cplusplus
6332}
6333#endif
6334int main(){nm_test_var='a';nm_test_func();return(0);}
6335_LT_EOF
6336
6337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6338 (eval $ac_compile) 2>&5
6339 ac_status=$?
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; }; then
6342 # Now try to grab the symbols.
6343 nlist=conftest.nm
6344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6345 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6346 ac_status=$?
6347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6348 test $ac_status = 0; } && test -s "$nlist"; then
6349 # Try sorting and uniquifying the output.
6350 if sort "$nlist" | uniq > "$nlist"T; then
6351 mv -f "$nlist"T "$nlist"
6352 else
6353 rm -f "$nlist"T
6354 fi
6355
6356 # Make sure that we snagged all the symbols we need.
6357 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6358 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6359 cat <<_LT_EOF > conftest.$ac_ext
6360#ifdef __cplusplus
6361extern "C" {
6362#endif
6363
6364_LT_EOF
6365 # Now generate the symbol file.
6366 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6367
6368 cat <<_LT_EOF >> conftest.$ac_ext
6369
6370/* The mapping between symbol names and symbols. */
6371const struct {
6372 const char *name;
6373 void *address;
6374}
6375lt__PROGRAM__LTX_preloaded_symbols[] =
6376{
6377 { "@PROGRAM@", (void *) 0 },
6378_LT_EOF
6379 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6380 cat <<\_LT_EOF >> conftest.$ac_ext
6381 {0, (void *) 0}
6382};
6383
6384/* This works around a problem in FreeBSD linker */
6385#ifdef FREEBSD_WORKAROUND
6386static const void *lt_preloaded_setup() {
6387 return lt__PROGRAM__LTX_preloaded_symbols;
6388}
6389#endif
6390
6391#ifdef __cplusplus
6392}
6393#endif
6394_LT_EOF
6395 # Now try linking the two files.
6396 mv conftest.$ac_objext conftstm.$ac_objext
6397 lt_save_LIBS="$LIBS"
6398 lt_save_CFLAGS="$CFLAGS"
6399 LIBS="conftstm.$ac_objext"
6400 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6402 (eval $ac_link) 2>&5
6403 ac_status=$?
6404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6405 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6406 pipe_works=yes
6407 fi
6408 LIBS="$lt_save_LIBS"
6409 CFLAGS="$lt_save_CFLAGS"
6410 else
6411 echo "cannot find nm_test_func in $nlist" >&5
6412 fi
6413 else
6414 echo "cannot find nm_test_var in $nlist" >&5
6415 fi
6416 else
6417 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6418 fi
6419 else
6420 echo "$progname: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6422 fi
6423 rm -rf conftest* conftst*
6424
6425 # Do not use the global_symbol_pipe unless it works.
6426 if test "$pipe_works" = yes; then
6427 break
6428 else
6429 lt_cv_sys_global_symbol_pipe=
6430 fi
6431done
6432
6433fi
6434
6435if test -z "$lt_cv_sys_global_symbol_pipe"; then
6436 lt_cv_sys_global_symbol_to_cdecl=
6437fi
6438if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6440$as_echo "failed" >&6; }
6441else
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6443$as_echo "ok" >&6; }
6444fi
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
1ec601bf
FXC
6465
6466
6467# Check whether --enable-libtool-lock was given.
6468if test "${enable_libtool_lock+set}" = set; then :
6469 enableval=$enable_libtool_lock;
6470fi
6471
6472test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6473
6474# Some flags need to be propagated to the compiler or linker for good
6475# libtool support.
6476case $host in
6477ia64-*-hpux*)
6478 # Find out which ABI we are using.
6479 echo 'int i;' > conftest.$ac_ext
6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484 test $ac_status = 0; }; then
6485 case `/usr/bin/file conftest.$ac_objext` in
6486 *ELF-32*)
6487 HPUX_IA64_MODE="32"
6488 ;;
6489 *ELF-64*)
6490 HPUX_IA64_MODE="64"
6491 ;;
6492 esac
6493 fi
6494 rm -rf conftest*
6495 ;;
6496*-*-irix6*)
6497 # Find out which ABI we are using.
6498 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500 (eval $ac_compile) 2>&5
6501 ac_status=$?
6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503 test $ac_status = 0; }; then
6504 if test "$lt_cv_prog_gnu_ld" = yes; then
6505 case `/usr/bin/file conftest.$ac_objext` in
6506 *32-bit*)
6507 LD="${LD-ld} -melf32bsmip"
6508 ;;
6509 *N32*)
6510 LD="${LD-ld} -melf32bmipn32"
6511 ;;
6512 *64-bit*)
6513 LD="${LD-ld} -melf64bmip"
6514 ;;
6515 esac
6516 else
6517 case `/usr/bin/file conftest.$ac_objext` in
6518 *32-bit*)
6519 LD="${LD-ld} -32"
6520 ;;
6521 *N32*)
6522 LD="${LD-ld} -n32"
6523 ;;
6524 *64-bit*)
6525 LD="${LD-ld} -64"
6526 ;;
6527 esac
6528 fi
6529 fi
6530 rm -rf conftest*
6531 ;;
6532
3cbe17f7 6533x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1ec601bf
FXC
6534s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6535 # Find out which ABI we are using.
6536 echo 'int i;' > conftest.$ac_ext
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6538 (eval $ac_compile) 2>&5
6539 ac_status=$?
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; }; then
6542 case `/usr/bin/file conftest.o` in
6543 *32-bit*)
6544 case $host in
6545 x86_64-*kfreebsd*-gnu)
6546 LD="${LD-ld} -m elf_i386_fbsd"
6547 ;;
6548 x86_64-*linux*)
e6d5f8c9
L
6549 case `/usr/bin/file conftest.o` in
6550 *x86-64*)
6551 LD="${LD-ld} -m elf32_x86_64"
6552 ;;
6553 *)
6554 LD="${LD-ld} -m elf_i386"
6555 ;;
6556 esac
1ec601bf 6557 ;;
3cbe17f7
AM
6558 powerpc64le-*linux*)
6559 LD="${LD-ld} -m elf32lppclinux"
6560 ;;
6561 powerpc64-*linux*)
1ec601bf
FXC
6562 LD="${LD-ld} -m elf32ppclinux"
6563 ;;
6564 s390x-*linux*)
6565 LD="${LD-ld} -m elf_s390"
6566 ;;
6567 sparc64-*linux*)
6568 LD="${LD-ld} -m elf32_sparc"
6569 ;;
6570 esac
6571 ;;
6572 *64-bit*)
6573 case $host in
6574 x86_64-*kfreebsd*-gnu)
6575 LD="${LD-ld} -m elf_x86_64_fbsd"
6576 ;;
6577 x86_64-*linux*)
6578 LD="${LD-ld} -m elf_x86_64"
6579 ;;
3cbe17f7
AM
6580 powerpcle-*linux*)
6581 LD="${LD-ld} -m elf64lppc"
6582 ;;
6583 powerpc-*linux*)
1ec601bf
FXC
6584 LD="${LD-ld} -m elf64ppc"
6585 ;;
6586 s390*-*linux*|s390*-*tpf*)
6587 LD="${LD-ld} -m elf64_s390"
6588 ;;
6589 sparc*-*linux*)
6590 LD="${LD-ld} -m elf64_sparc"
6591 ;;
6592 esac
6593 ;;
6594 esac
6595 fi
6596 rm -rf conftest*
6597 ;;
6598
6599*-*-sco3.2v5*)
6600 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6601 SAVE_CFLAGS="$CFLAGS"
6602 CFLAGS="$CFLAGS -belf"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6604$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 6605if ${lt_cv_cc_needs_belf+:} false; then :
1ec601bf
FXC
6606 $as_echo_n "(cached) " >&6
6607else
6608 ac_ext=c
6609ac_cpp='$CPP $CPPFLAGS'
6610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613
fabfcf5e 6614 if test x$gcc_no_link = xyes; then
22e05272 6615 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e
KT
6616fi
6617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
6618/* end confdefs.h. */
6619
6620int
6621main ()
6622{
6623
6624 ;
6625 return 0;
6626}
6627_ACEOF
6628if ac_fn_c_try_link "$LINENO"; then :
6629 lt_cv_cc_needs_belf=yes
6630else
6631 lt_cv_cc_needs_belf=no
6632fi
6633rm -f core conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 ac_ext=c
6636ac_cpp='$CPP $CPPFLAGS'
6637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640
6641fi
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6643$as_echo "$lt_cv_cc_needs_belf" >&6; }
6644 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6646 CFLAGS="$SAVE_CFLAGS"
6647 fi
6648 ;;
6649sparc*-*solaris*)
6650 # Find out which ABI we are using.
6651 echo 'int i;' > conftest.$ac_ext
6652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656 test $ac_status = 0; }; then
6657 case `/usr/bin/file conftest.o` in
6658 *64-bit*)
6659 case $lt_cv_prog_gnu_ld in
6660 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6661 *)
6662 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6663 LD="${LD-ld} -64"
6664 fi
6665 ;;
6666 esac
6667 ;;
6668 esac
6669 fi
6670 rm -rf conftest*
6671 ;;
6672esac
6673
6674need_locks="$enable_libtool_lock"
6675
6676
6677 case $host_os in
6678 rhapsody* | darwin*)
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6681set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6684if ${ac_cv_prog_DSYMUTIL+:} false; then :
1ec601bf
FXC
6685 $as_echo_n "(cached) " >&6
6686else
6687 if test -n "$DSYMUTIL"; then
6688 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6689else
6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
6697 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701done
6702 done
6703IFS=$as_save_IFS
6704
6705fi
6706fi
6707DSYMUTIL=$ac_cv_prog_DSYMUTIL
6708if test -n "$DSYMUTIL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6710$as_echo "$DSYMUTIL" >&6; }
6711else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713$as_echo "no" >&6; }
6714fi
6715
6716
6717fi
6718if test -z "$ac_cv_prog_DSYMUTIL"; then
6719 ac_ct_DSYMUTIL=$DSYMUTIL
6720 # Extract the first word of "dsymutil", so it can be a program name with args.
6721set dummy dsymutil; ac_word=$2
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6724if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
1ec601bf
FXC
6725 $as_echo_n "(cached) " >&6
6726else
6727 if test -n "$ac_ct_DSYMUTIL"; then
6728 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6729else
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
6737 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741done
6742 done
6743IFS=$as_save_IFS
6744
6745fi
6746fi
6747ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6748if test -n "$ac_ct_DSYMUTIL"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6750$as_echo "$ac_ct_DSYMUTIL" >&6; }
6751else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753$as_echo "no" >&6; }
6754fi
6755
6756 if test "x$ac_ct_DSYMUTIL" = x; then
6757 DSYMUTIL=":"
6758 else
6759 case $cross_compiling:$ac_tool_warned in
6760yes:)
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763ac_tool_warned=yes ;;
6764esac
6765 DSYMUTIL=$ac_ct_DSYMUTIL
6766 fi
6767else
6768 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6769fi
6770
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6773set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6776if ${ac_cv_prog_NMEDIT+:} false; then :
1ec601bf
FXC
6777 $as_echo_n "(cached) " >&6
6778else
6779 if test -n "$NMEDIT"; then
6780 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
6789 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793done
6794 done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799NMEDIT=$ac_cv_prog_NMEDIT
6800if test -n "$NMEDIT"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6802$as_echo "$NMEDIT" >&6; }
6803else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
6808
6809fi
6810if test -z "$ac_cv_prog_NMEDIT"; then
6811 ac_ct_NMEDIT=$NMEDIT
6812 # Extract the first word of "nmedit", so it can be a program name with args.
6813set dummy nmedit; ac_word=$2
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6816if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
1ec601bf
FXC
6817 $as_echo_n "(cached) " >&6
6818else
6819 if test -n "$ac_ct_NMEDIT"; then
6820 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
6829 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834 done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6840if test -n "$ac_ct_NMEDIT"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6842$as_echo "$ac_ct_NMEDIT" >&6; }
6843else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845$as_echo "no" >&6; }
6846fi
6847
6848 if test "x$ac_ct_NMEDIT" = x; then
6849 NMEDIT=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852yes:)
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855ac_tool_warned=yes ;;
6856esac
6857 NMEDIT=$ac_ct_NMEDIT
6858 fi
6859else
6860 NMEDIT="$ac_cv_prog_NMEDIT"
6861fi
6862
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6865set dummy ${ac_tool_prefix}lipo; ac_word=$2
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6868if ${ac_cv_prog_LIPO+:} false; then :
1ec601bf
FXC
6869 $as_echo_n "(cached) " >&6
6870else
6871 if test -n "$LIPO"; then
6872 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6873else
6874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875for as_dir in $PATH
6876do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1ec601bf
FXC
6881 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885done
6886 done
6887IFS=$as_save_IFS
6888
6889fi
6890fi
6891LIPO=$ac_cv_prog_LIPO
1d92226b
JJ
6892if test -n "$LIPO"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6894$as_echo "$LIPO" >&6; }
1ec601bf
FXC
6895else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897$as_echo "no" >&6; }
6898fi
6899
6900
6901fi
1d92226b
JJ
6902if test -z "$ac_cv_prog_LIPO"; then
6903 ac_ct_LIPO=$LIPO
6904 # Extract the first word of "lipo", so it can be a program name with args.
6905set dummy lipo; ac_word=$2
1ec601bf
FXC
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6908if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
1ec601bf
FXC
6909 $as_echo_n "(cached) " >&6
6910else
1d92226b
JJ
6911 if test -n "$ac_ct_LIPO"; then
6912 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
1ec601bf
FXC
6913else
6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b 6921 ac_cv_prog_ac_ct_LIPO="lipo"
1ec601bf
FXC
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925done
6926 done
6927IFS=$as_save_IFS
6928
6929fi
6930fi
1d92226b
JJ
6931ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6932if test -n "$ac_ct_LIPO"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6934$as_echo "$ac_ct_LIPO" >&6; }
1ec601bf
FXC
6935else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937$as_echo "no" >&6; }
6938fi
6939
1d92226b
JJ
6940 if test "x$ac_ct_LIPO" = x; then
6941 LIPO=":"
1ec601bf
FXC
6942 else
6943 case $cross_compiling:$ac_tool_warned in
6944yes:)
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947ac_tool_warned=yes ;;
6948esac
1d92226b 6949 LIPO=$ac_ct_LIPO
1ec601bf
FXC
6950 fi
6951else
1d92226b 6952 LIPO="$ac_cv_prog_LIPO"
1ec601bf
FXC
6953fi
6954
1d92226b
JJ
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6957set dummy ${ac_tool_prefix}otool; ac_word=$2
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6960if ${ac_cv_prog_OTOOL+:} false; then :
1ec601bf
FXC
6961 $as_echo_n "(cached) " >&6
6962else
1d92226b
JJ
6963 if test -n "$OTOOL"; then
6964 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
1ec601bf 6965else
1d92226b
JJ
6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b
JJ
6973 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977done
6978 done
6979IFS=$as_save_IFS
1ec601bf 6980
1ec601bf 6981fi
1ec601bf 6982fi
1d92226b
JJ
6983OTOOL=$ac_cv_prog_OTOOL
6984if test -n "$OTOOL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6986$as_echo "$OTOOL" >&6; }
1ec601bf 6987else
1d92226b
JJ
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989$as_echo "no" >&6; }
1ec601bf 6990fi
1ec601bf 6991
1d92226b 6992
1ec601bf 6993fi
1d92226b
JJ
6994if test -z "$ac_cv_prog_OTOOL"; then
6995 ac_ct_OTOOL=$OTOOL
6996 # Extract the first word of "otool", so it can be a program name with args.
6997set dummy otool; ac_word=$2
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7000if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
1ec601bf
FXC
7001 $as_echo_n "(cached) " >&6
7002else
1d92226b
JJ
7003 if test -n "$ac_ct_OTOOL"; then
7004 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7005else
7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b
JJ
7013 ac_cv_prog_ac_ct_OTOOL="otool"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017done
7018 done
7019IFS=$as_save_IFS
1ec601bf 7020
1d92226b
JJ
7021fi
7022fi
7023ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7024if test -n "$ac_ct_OTOOL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7026$as_echo "$ac_ct_OTOOL" >&6; }
1ec601bf 7027else
1d92226b
JJ
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029$as_echo "no" >&6; }
1ec601bf 7030fi
1ec601bf 7031
1d92226b
JJ
7032 if test "x$ac_ct_OTOOL" = x; then
7033 OTOOL=":"
7034 else
7035 case $cross_compiling:$ac_tool_warned in
7036yes:)
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039ac_tool_warned=yes ;;
7040esac
7041 OTOOL=$ac_ct_OTOOL
7042 fi
1ec601bf 7043else
1d92226b 7044 OTOOL="$ac_cv_prog_OTOOL"
1ec601bf 7045fi
1ec601bf 7046
1d92226b
JJ
7047 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7049set dummy ${ac_tool_prefix}otool64; ac_word=$2
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7052if ${ac_cv_prog_OTOOL64+:} false; then :
1d92226b
JJ
7053 $as_echo_n "(cached) " >&6
7054else
7055 if test -n "$OTOOL64"; then
7056 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b
JJ
7065 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
1ec601bf 7069done
1d92226b
JJ
7070 done
7071IFS=$as_save_IFS
7072
7073fi
7074fi
7075OTOOL64=$ac_cv_prog_OTOOL64
7076if test -n "$OTOOL64"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7078$as_echo "$OTOOL64" >&6; }
7079else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081$as_echo "no" >&6; }
1ec601bf
FXC
7082fi
7083
1ec601bf
FXC
7084
7085fi
1d92226b
JJ
7086if test -z "$ac_cv_prog_OTOOL64"; then
7087 ac_ct_OTOOL64=$OTOOL64
7088 # Extract the first word of "otool64", so it can be a program name with args.
7089set dummy otool64; ac_word=$2
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7092if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
1d92226b 7093 $as_echo_n "(cached) " >&6
1ec601bf 7094else
1d92226b
JJ
7095 if test -n "$ac_ct_OTOOL64"; then
7096 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
1ec601bf 7100do
1d92226b
JJ
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1d92226b
JJ
7105 ac_cv_prog_ac_ct_OTOOL64="otool64"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109done
7110 done
7111IFS=$as_save_IFS
1ec601bf 7112
1d92226b
JJ
7113fi
7114fi
7115ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7116if test -n "$ac_ct_OTOOL64"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7118$as_echo "$ac_ct_OTOOL64" >&6; }
1ec601bf 7119else
1d92226b
JJ
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
1ec601bf 7122fi
1ec601bf 7123
1d92226b
JJ
7124 if test "x$ac_ct_OTOOL64" = x; then
7125 OTOOL64=":"
7126 else
7127 case $cross_compiling:$ac_tool_warned in
7128yes:)
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131ac_tool_warned=yes ;;
7132esac
7133 OTOOL64=$ac_ct_OTOOL64
7134 fi
1ec601bf 7135else
1d92226b 7136 OTOOL64="$ac_cv_prog_OTOOL64"
1ec601bf 7137fi
1ec601bf 7138
1ec601bf 7139
1ec601bf 7140
1ec601bf
FXC
7141
7142
1ec601bf 7143
1ec601bf 7144
1ec601bf 7145
1ec601bf 7146
1ec601bf 7147
1ec601bf 7148
1d92226b
JJ
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7166$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7167if ${lt_cv_apple_cc_single_mod+:} false; then :
1d92226b
JJ
7168 $as_echo_n "(cached) " >&6
7169else
7170 lt_cv_apple_cc_single_mod=no
7171 if test -z "${LT_MULTI_MODULE}"; then
7172 # By default we will add the -single_module flag. You can override
7173 # by either setting the environment variable LT_MULTI_MODULE
7174 # non-empty at configure time, or by adding -multi_module to the
7175 # link flags.
7176 rm -rf libconftest.dylib*
7177 echo "int foo(void){return 1;}" > conftest.c
7178 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7179-dynamiclib -Wl,-single_module conftest.c" >&5
7180 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7181 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7182 _lt_result=$?
7183 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7184 lt_cv_apple_cc_single_mod=yes
7185 else
7186 cat conftest.err >&5
7187 fi
7188 rm -rf libconftest.dylib*
7189 rm -f conftest.*
7190 fi
1ec601bf 7191fi
1d92226b
JJ
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7193$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7195$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7196if ${lt_cv_ld_exported_symbols_list+:} false; then :
1d92226b 7197 $as_echo_n "(cached) " >&6
1ec601bf 7198else
1d92226b
JJ
7199 lt_cv_ld_exported_symbols_list=no
7200 save_LDFLAGS=$LDFLAGS
7201 echo "_main" > conftest.sym
7202 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7203 if test x$gcc_no_link = xyes; then
22e05272 7204 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1ec601bf 7205fi
1d92226b 7206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf 7207/* end confdefs.h. */
1ec601bf 7208
1ec601bf
FXC
7209int
7210main ()
7211{
1d92226b
JJ
7212
7213 ;
1ec601bf
FXC
7214 return 0;
7215}
7216_ACEOF
1d92226b
JJ
7217if ac_fn_c_try_link "$LINENO"; then :
7218 lt_cv_ld_exported_symbols_list=yes
1ec601bf 7219else
1d92226b 7220 lt_cv_ld_exported_symbols_list=no
1ec601bf 7221fi
1d92226b
JJ
7222rm -f core conftest.err conftest.$ac_objext \
7223 conftest$ac_exeext conftest.$ac_ext
7224 LDFLAGS="$save_LDFLAGS"
1ec601bf
FXC
7225
7226fi
1d92226b
JJ
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7228$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7230$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7231if ${lt_cv_ld_force_load+:} false; then :
1d92226b
JJ
7232 $as_echo_n "(cached) " >&6
7233else
7234 lt_cv_ld_force_load=no
7235 cat > conftest.c << _LT_EOF
7236int forced_loaded() { return 2;}
7237_LT_EOF
7238 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7239 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7240 echo "$AR cru libconftest.a conftest.o" >&5
7241 $AR cru libconftest.a conftest.o 2>&5
7242 cat > conftest.c << _LT_EOF
7243int main() { return 0;}
7244_LT_EOF
7245 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7246 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7247 _lt_result=$?
7248 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7249 lt_cv_ld_force_load=yes
7250 else
7251 cat conftest.err >&5
7252 fi
7253 rm -f conftest.err libconftest.a conftest conftest.c
7254 rm -rf conftest.dSYM
1ec601bf
FXC
7255
7256fi
1d92226b
JJ
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7258$as_echo "$lt_cv_ld_force_load" >&6; }
7259 case $host_os in
7260 rhapsody* | darwin1.[012])
7261 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7262 darwin1.*)
7263 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7264 darwin*) # darwin 5.x on
7265 # if running on 10.5 or later, the deployment target defaults
7266 # to the OS version, if on x86, and 10.4, the deployment
7267 # target defaults to 10.4. Don't you love it?
7268 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7269 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7270 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 7271 10.[012][,.]*)
1d92226b
JJ
7272 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7273 10.*)
7274 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7275 esac
7276 ;;
7277 esac
7278 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7279 _lt_dar_single_mod='$single_module'
7280 fi
7281 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7282 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7283 else
7284 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7285 fi
7286 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7287 _lt_dsymutil='~$DSYMUTIL $lib || :'
7288 else
7289 _lt_dsymutil=
7290 fi
7291 ;;
7292 esac
1ec601bf
FXC
7293
7294for ac_header in dlfcn.h
7295do :
7296 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7297"
22e05272 7298if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1ec601bf
FXC
7299 cat >>confdefs.h <<_ACEOF
7300#define HAVE_DLFCN_H 1
7301_ACEOF
7302
7303fi
7304
7305done
7306
7307
7308
7309
7310
7311# Set options
7312
7313
7314
7315 enable_dlopen=no
7316
7317
7318 enable_win32_dll=no
7319
7320
7321 # Check whether --enable-shared was given.
7322if test "${enable_shared+set}" = set; then :
7323 enableval=$enable_shared; p=${PACKAGE-default}
7324 case $enableval in
7325 yes) enable_shared=yes ;;
7326 no) enable_shared=no ;;
7327 *)
7328 enable_shared=no
7329 # Look at the argument we got. We use all the common list separators.
7330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7331 for pkg in $enableval; do
7332 IFS="$lt_save_ifs"
7333 if test "X$pkg" = "X$p"; then
7334 enable_shared=yes
7335 fi
7336 done
7337 IFS="$lt_save_ifs"
7338 ;;
7339 esac
7340else
7341 enable_shared=yes
7342fi
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352 # Check whether --enable-static was given.
7353if test "${enable_static+set}" = set; then :
7354 enableval=$enable_static; p=${PACKAGE-default}
7355 case $enableval in
7356 yes) enable_static=yes ;;
7357 no) enable_static=no ;;
7358 *)
7359 enable_static=no
7360 # Look at the argument we got. We use all the common list separators.
7361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7362 for pkg in $enableval; do
7363 IFS="$lt_save_ifs"
7364 if test "X$pkg" = "X$p"; then
7365 enable_static=yes
7366 fi
7367 done
7368 IFS="$lt_save_ifs"
7369 ;;
7370 esac
7371else
7372 enable_static=yes
7373fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384# Check whether --with-pic was given.
7385if test "${with_pic+set}" = set; then :
7386 withval=$with_pic; pic_mode="$withval"
7387else
7388 pic_mode=default
7389fi
7390
7391
7392test -z "$pic_mode" && pic_mode=default
7393
7394
7395
7396
7397
7398
7399
7400 # Check whether --enable-fast-install was given.
7401if test "${enable_fast_install+set}" = set; then :
7402 enableval=$enable_fast_install; p=${PACKAGE-default}
7403 case $enableval in
7404 yes) enable_fast_install=yes ;;
7405 no) enable_fast_install=no ;;
7406 *)
7407 enable_fast_install=no
7408 # Look at the argument we got. We use all the common list separators.
7409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7410 for pkg in $enableval; do
7411 IFS="$lt_save_ifs"
7412 if test "X$pkg" = "X$p"; then
7413 enable_fast_install=yes
7414 fi
7415 done
7416 IFS="$lt_save_ifs"
7417 ;;
7418 esac
7419else
7420 enable_fast_install=yes
7421fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433# This can be used to rebuild libtool when needed
7434LIBTOOL_DEPS="$ltmain"
7435
7436# Always use our own libtool.
7437LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464test -z "$LN_S" && LN_S="ln -s"
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479if test -n "${ZSH_VERSION+set}" ; then
7480 setopt NO_GLOB_SUBST
7481fi
7482
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7484$as_echo_n "checking for objdir... " >&6; }
22e05272 7485if ${lt_cv_objdir+:} false; then :
1ec601bf
FXC
7486 $as_echo_n "(cached) " >&6
7487else
7488 rm -f .libs 2>/dev/null
7489mkdir .libs 2>/dev/null
7490if test -d .libs; then
7491 lt_cv_objdir=.libs
7492else
7493 # MS-DOS does not allow filenames that begin with a dot.
7494 lt_cv_objdir=_libs
7495fi
7496rmdir .libs 2>/dev/null
7497fi
7498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7499$as_echo "$lt_cv_objdir" >&6; }
7500objdir=$lt_cv_objdir
7501
7502
7503
7504
7505
7506cat >>confdefs.h <<_ACEOF
7507#define LT_OBJDIR "$lt_cv_objdir/"
7508_ACEOF
7509
7510
7511
7512
7513case $host_os in
7514aix3*)
7515 # AIX sometimes has problems with the GCC collect2 program. For some
7516 # reason, if we set the COLLECT_NAMES environment variable, the problems
7517 # vanish in a puff of smoke.
7518 if test "X${COLLECT_NAMES+set}" != Xset; then
7519 COLLECT_NAMES=
7520 export COLLECT_NAMES
7521 fi
7522 ;;
7523esac
7524
7525# Global variables:
7526ofile=libtool
7527can_build_shared=yes
7528
7529# All known linkers require a `.a' archive for static linking (except MSVC,
7530# which needs '.lib').
7531libext=a
7532
7533with_gnu_ld="$lt_cv_prog_gnu_ld"
7534
7535old_CC="$CC"
7536old_CFLAGS="$CFLAGS"
7537
7538# Set sane defaults for various variables
7539test -z "$CC" && CC=cc
7540test -z "$LTCC" && LTCC=$CC
7541test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7542test -z "$LD" && LD=ld
7543test -z "$ac_objext" && ac_objext=o
7544
7545for cc_temp in $compiler""; do
7546 case $cc_temp in
7547 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7548 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7549 \-*) ;;
7550 *) break;;
7551 esac
7552done
7553cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7554
7555
7556# Only perform the check for file, if the check method requires it
7557test -z "$MAGIC_CMD" && MAGIC_CMD=file
7558case $deplibs_check_method in
7559file_magic*)
7560 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7562$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 7563if ${lt_cv_path_MAGIC_CMD+:} false; then :
1ec601bf
FXC
7564 $as_echo_n "(cached) " >&6
7565else
7566 case $MAGIC_CMD in
7567[\\/*] | ?:[\\/]*)
7568 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7569 ;;
7570*)
7571 lt_save_MAGIC_CMD="$MAGIC_CMD"
7572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7573 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7574 for ac_dir in $ac_dummy; do
7575 IFS="$lt_save_ifs"
7576 test -z "$ac_dir" && ac_dir=.
7577 if test -f $ac_dir/${ac_tool_prefix}file; then
7578 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7579 if test -n "$file_magic_test_file"; then
7580 case $deplibs_check_method in
7581 "file_magic "*)
7582 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7584 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7585 $EGREP "$file_magic_regex" > /dev/null; then
7586 :
7587 else
7588 cat <<_LT_EOF 1>&2
7589
7590*** Warning: the command libtool uses to detect shared libraries,
7591*** $file_magic_cmd, produces output that libtool cannot recognize.
7592*** The result is that libtool may fail to recognize shared libraries
7593*** as such. This will affect the creation of libtool libraries that
7594*** depend on shared libraries, but programs linked with such libtool
7595*** libraries will work regardless of this problem. Nevertheless, you
7596*** may want to report the problem to your system manager and/or to
7597*** bug-libtool@gnu.org
7598
7599_LT_EOF
7600 fi ;;
7601 esac
7602 fi
7603 break
7604 fi
7605 done
7606 IFS="$lt_save_ifs"
7607 MAGIC_CMD="$lt_save_MAGIC_CMD"
7608 ;;
7609esac
7610fi
7611
7612MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613if test -n "$MAGIC_CMD"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7615$as_echo "$MAGIC_CMD" >&6; }
7616else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
7619fi
7620
7621
7622
7623
7624
7625if test -z "$lt_cv_path_MAGIC_CMD"; then
7626 if test -n "$ac_tool_prefix"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7628$as_echo_n "checking for file... " >&6; }
22e05272 7629if ${lt_cv_path_MAGIC_CMD+:} false; then :
1ec601bf
FXC
7630 $as_echo_n "(cached) " >&6
7631else
7632 case $MAGIC_CMD in
7633[\\/*] | ?:[\\/]*)
7634 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7635 ;;
7636*)
7637 lt_save_MAGIC_CMD="$MAGIC_CMD"
7638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7640 for ac_dir in $ac_dummy; do
7641 IFS="$lt_save_ifs"
7642 test -z "$ac_dir" && ac_dir=.
7643 if test -f $ac_dir/file; then
7644 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7645 if test -n "$file_magic_test_file"; then
7646 case $deplibs_check_method in
7647 "file_magic "*)
7648 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7651 $EGREP "$file_magic_regex" > /dev/null; then
7652 :
7653 else
7654 cat <<_LT_EOF 1>&2
7655
7656*** Warning: the command libtool uses to detect shared libraries,
7657*** $file_magic_cmd, produces output that libtool cannot recognize.
7658*** The result is that libtool may fail to recognize shared libraries
7659*** as such. This will affect the creation of libtool libraries that
7660*** depend on shared libraries, but programs linked with such libtool
7661*** libraries will work regardless of this problem. Nevertheless, you
7662*** may want to report the problem to your system manager and/or to
7663*** bug-libtool@gnu.org
7664
7665_LT_EOF
7666 fi ;;
7667 esac
7668 fi
7669 break
7670 fi
7671 done
7672 IFS="$lt_save_ifs"
7673 MAGIC_CMD="$lt_save_MAGIC_CMD"
7674 ;;
7675esac
7676fi
7677
7678MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679if test -n "$MAGIC_CMD"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7681$as_echo "$MAGIC_CMD" >&6; }
7682else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684$as_echo "no" >&6; }
7685fi
7686
7687
7688 else
7689 MAGIC_CMD=:
7690 fi
7691fi
7692
7693 fi
7694 ;;
7695esac
7696
7697# Use C for the default configuration in the libtool script
7698
7699lt_save_CC="$CC"
7700ac_ext=c
7701ac_cpp='$CPP $CPPFLAGS'
7702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706
7707# Source file extension for C test sources.
7708ac_ext=c
7709
7710# Object file extension for compiled C test sources.
7711objext=o
7712objext=$objext
7713
7714# Code to be used in simple compile tests
7715lt_simple_compile_test_code="int some_variable = 0;"
7716
7717# Code to be used in simple link tests
7718lt_simple_link_test_code='int main(){return(0);}'
7719
7720
7721
7722
7723
7724
7725
7726# If no C compiler was specified, use CC.
7727LTCC=${LTCC-"$CC"}
7728
7729# If no C compiler flags were specified, use CFLAGS.
7730LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7731
7732# Allow CC to be a program name with arguments.
7733compiler=$CC
7734
7735# Save the default compiler, since it gets overwritten when the other
7736# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7737compiler_DEFAULT=$CC
7738
7739# save warnings/boilerplate of simple test code
7740ac_outfile=conftest.$ac_objext
7741echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7742eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7743_lt_compiler_boilerplate=`cat conftest.err`
7744$RM conftest*
7745
7746ac_outfile=conftest.$ac_objext
7747echo "$lt_simple_link_test_code" >conftest.$ac_ext
7748eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7749_lt_linker_boilerplate=`cat conftest.err`
7750$RM -r conftest*
7751
7752
7753## CAVEAT EMPTOR:
7754## There is no encapsulation within the following macros, do not change
7755## the running order or otherwise move them around unless you know exactly
7756## what you are doing...
7757if test -n "$compiler"; then
7758
7759lt_prog_compiler_no_builtin_flag=
7760
7761if test "$GCC" = yes; then
7762 case $cc_basename in
7763 nvcc*)
7764 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7765 *)
7766 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7767 esac
7768
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7770$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 7771if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
1ec601bf
FXC
7772 $as_echo_n "(cached) " >&6
7773else
7774 lt_cv_prog_compiler_rtti_exceptions=no
7775 ac_outfile=conftest.$ac_objext
7776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7777 lt_compiler_flag="-fno-rtti -fno-exceptions"
7778 # Insert the option either (1) after the last *FLAGS variable, or
7779 # (2) before a word containing "conftest.", or (3) at the end.
7780 # Note that $ac_compile itself does not contain backslashes and begins
7781 # with a dollar sign (not a hyphen), so the echo should work correctly.
7782 # The option is referenced via a variable to avoid confusing sed.
7783 lt_compile=`echo "$ac_compile" | $SED \
7784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7786 -e 's:$: $lt_compiler_flag:'`
7787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7788 (eval "$lt_compile" 2>conftest.err)
7789 ac_status=$?
7790 cat conftest.err >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 if (exit $ac_status) && test -s "$ac_outfile"; then
7793 # The compiler can only warn and ignore the option if not recognized
7794 # So say no if there are warnings other than the usual output.
7795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7798 lt_cv_prog_compiler_rtti_exceptions=yes
7799 fi
7800 fi
7801 $RM conftest*
7802
7803fi
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7805$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7806
7807if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7808 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7809else
7810 :
7811fi
7812
7813fi
7814
7815
7816
7817
7818
7819
7820 lt_prog_compiler_wl=
7821lt_prog_compiler_pic=
7822lt_prog_compiler_static=
7823
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7825$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7826
7827 if test "$GCC" = yes; then
7828 lt_prog_compiler_wl='-Wl,'
7829 lt_prog_compiler_static='-static'
7830
7831 case $host_os in
7832 aix*)
7833 # All AIX code is PIC.
7834 if test "$host_cpu" = ia64; then
7835 # AIX 5 now supports IA64 processor
7836 lt_prog_compiler_static='-Bstatic'
7837 fi
249b09fa 7838 lt_prog_compiler_pic='-fPIC'
1ec601bf
FXC
7839 ;;
7840
7841 amigaos*)
7842 case $host_cpu in
7843 powerpc)
7844 # see comment about AmigaOS4 .so support
7845 lt_prog_compiler_pic='-fPIC'
7846 ;;
7847 m68k)
7848 # FIXME: we need at least 68020 code to build shared libraries, but
7849 # adding the `-m68020' flag to GCC prevents building anything better,
7850 # like `-m68040'.
7851 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7852 ;;
7853 esac
7854 ;;
7855
7856 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7857 # PIC is the default for these OSes.
7858 ;;
7859
7860 mingw* | cygwin* | pw32* | os2* | cegcc*)
7861 # This hack is so that the source file can tell whether it is being
7862 # built for inclusion in a dll (and should export symbols for example).
7863 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7864 # (--disable-auto-import) libraries
7865 lt_prog_compiler_pic='-DDLL_EXPORT'
7866 ;;
7867
7868 darwin* | rhapsody*)
7869 # PIC is the default on this platform
7870 # Common symbols not allowed in MH_DYLIB files
7871 lt_prog_compiler_pic='-fno-common'
7872 ;;
7873
7874 haiku*)
7875 # PIC is the default for Haiku.
7876 # The "-static" flag exists, but is broken.
7877 lt_prog_compiler_static=
7878 ;;
7879
7880 hpux*)
7881 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7882 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7883 # sets the default TLS model and affects inlining.
7884 case $host_cpu in
7885 hppa*64*)
7886 # +Z the default
7887 ;;
7888 *)
7889 lt_prog_compiler_pic='-fPIC'
7890 ;;
7891 esac
7892 ;;
7893
7894 interix[3-9]*)
7895 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7896 # Instead, we relocate shared libraries at runtime.
7897 ;;
7898
7899 msdosdjgpp*)
7900 # Just because we use GCC doesn't mean we suddenly get shared libraries
7901 # on systems that don't support them.
7902 lt_prog_compiler_can_build_shared=no
7903 enable_shared=no
7904 ;;
7905
7906 *nto* | *qnx*)
7907 # QNX uses GNU C++, but need to define -shared option too, otherwise
7908 # it will coredump.
7909 lt_prog_compiler_pic='-fPIC -shared'
7910 ;;
7911
7912 sysv4*MP*)
7913 if test -d /usr/nec; then
7914 lt_prog_compiler_pic=-Kconform_pic
7915 fi
7916 ;;
7917
7918 *)
7919 lt_prog_compiler_pic='-fPIC'
7920 ;;
7921 esac
7922
7923 case $cc_basename in
7924 nvcc*) # Cuda Compiler Driver 2.2
7925 lt_prog_compiler_wl='-Xlinker '
7926 lt_prog_compiler_pic='-Xcompiler -fPIC'
7927 ;;
7928 esac
7929 else
7930 # PORTME Check for flag to pass linker flags through the system compiler.
7931 case $host_os in
7932 aix*)
7933 lt_prog_compiler_wl='-Wl,'
7934 if test "$host_cpu" = ia64; then
7935 # AIX 5 now supports IA64 processor
7936 lt_prog_compiler_static='-Bstatic'
7937 else
7938 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7939 fi
7940 ;;
7941
7942 mingw* | cygwin* | pw32* | os2* | cegcc*)
7943 # This hack is so that the source file can tell whether it is being
7944 # built for inclusion in a dll (and should export symbols for example).
7945 lt_prog_compiler_pic='-DDLL_EXPORT'
7946 ;;
7947
7948 hpux9* | hpux10* | hpux11*)
7949 lt_prog_compiler_wl='-Wl,'
7950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7951 # not for PA HP-UX.
7952 case $host_cpu in
7953 hppa*64*|ia64*)
7954 # +Z the default
7955 ;;
7956 *)
7957 lt_prog_compiler_pic='+Z'
7958 ;;
7959 esac
7960 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7961 lt_prog_compiler_static='${wl}-a ${wl}archive'
7962 ;;
7963
7964 irix5* | irix6* | nonstopux*)
7965 lt_prog_compiler_wl='-Wl,'
7966 # PIC (with -KPIC) is the default.
7967 lt_prog_compiler_static='-non_shared'
7968 ;;
7969
7970 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7971 case $cc_basename in
7972 # old Intel for x86_64 which still supported -KPIC.
7973 ecc*)
7974 lt_prog_compiler_wl='-Wl,'
7975 lt_prog_compiler_pic='-KPIC'
7976 lt_prog_compiler_static='-static'
7977 ;;
7978 # icc used to be incompatible with GCC.
7979 # ICC 10 doesn't accept -KPIC any more.
7980 icc* | ifort*)
7981 lt_prog_compiler_wl='-Wl,'
7982 lt_prog_compiler_pic='-fPIC'
7983 lt_prog_compiler_static='-static'
7984 ;;
7985 # Lahey Fortran 8.1.
7986 lf95*)
7987 lt_prog_compiler_wl='-Wl,'
7988 lt_prog_compiler_pic='--shared'
7989 lt_prog_compiler_static='--static'
7990 ;;
7991 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7992 # Portland Group compilers (*not* the Pentium gcc compiler,
7993 # which looks to be a dead project)
7994 lt_prog_compiler_wl='-Wl,'
7995 lt_prog_compiler_pic='-fpic'
7996 lt_prog_compiler_static='-Bstatic'
7997 ;;
7998 ccc*)
7999 lt_prog_compiler_wl='-Wl,'
8000 # All Alpha code is PIC.
8001 lt_prog_compiler_static='-non_shared'
8002 ;;
8003 xl* | bgxl* | bgf* | mpixl*)
8004 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8005 lt_prog_compiler_wl='-Wl,'
8006 lt_prog_compiler_pic='-qpic'
8007 lt_prog_compiler_static='-qstaticlink'
8008 ;;
8009 *)
8010 case `$CC -V 2>&1 | sed 5q` in
8011 *Sun\ F* | *Sun*Fortran*)
8012 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8013 lt_prog_compiler_pic='-KPIC'
8014 lt_prog_compiler_static='-Bstatic'
8015 lt_prog_compiler_wl=''
8016 ;;
8017 *Sun\ C*)
8018 # Sun C 5.9
8019 lt_prog_compiler_pic='-KPIC'
8020 lt_prog_compiler_static='-Bstatic'
8021 lt_prog_compiler_wl='-Wl,'
8022 ;;
8023 esac
8024 ;;
8025 esac
8026 ;;
8027
8028 newsos6)
8029 lt_prog_compiler_pic='-KPIC'
8030 lt_prog_compiler_static='-Bstatic'
8031 ;;
8032
8033 *nto* | *qnx*)
8034 # QNX uses GNU C++, but need to define -shared option too, otherwise
8035 # it will coredump.
8036 lt_prog_compiler_pic='-fPIC -shared'
8037 ;;
8038
8039 osf3* | osf4* | osf5*)
8040 lt_prog_compiler_wl='-Wl,'
8041 # All OSF/1 code is PIC.
8042 lt_prog_compiler_static='-non_shared'
8043 ;;
8044
8045 rdos*)
8046 lt_prog_compiler_static='-non_shared'
8047 ;;
8048
8049 solaris*)
8050 lt_prog_compiler_pic='-KPIC'
8051 lt_prog_compiler_static='-Bstatic'
8052 case $cc_basename in
8053 f77* | f90* | f95*)
8054 lt_prog_compiler_wl='-Qoption ld ';;
8055 *)
8056 lt_prog_compiler_wl='-Wl,';;
8057 esac
8058 ;;
8059
8060 sunos4*)
8061 lt_prog_compiler_wl='-Qoption ld '
8062 lt_prog_compiler_pic='-PIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 ;;
8065
8066 sysv4 | sysv4.2uw2* | sysv4.3*)
8067 lt_prog_compiler_wl='-Wl,'
8068 lt_prog_compiler_pic='-KPIC'
8069 lt_prog_compiler_static='-Bstatic'
8070 ;;
8071
8072 sysv4*MP*)
8073 if test -d /usr/nec ;then
8074 lt_prog_compiler_pic='-Kconform_pic'
8075 lt_prog_compiler_static='-Bstatic'
8076 fi
8077 ;;
8078
8079 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
8083 ;;
8084
8085 unicos*)
8086 lt_prog_compiler_wl='-Wl,'
8087 lt_prog_compiler_can_build_shared=no
8088 ;;
8089
8090 uts4*)
8091 lt_prog_compiler_pic='-pic'
8092 lt_prog_compiler_static='-Bstatic'
8093 ;;
8094
8095 *)
8096 lt_prog_compiler_can_build_shared=no
8097 ;;
8098 esac
8099 fi
8100
8101case $host_os in
8102 # For platforms which do not support PIC, -DPIC is meaningless:
8103 *djgpp*)
8104 lt_prog_compiler_pic=
8105 ;;
8106 *)
8107 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8108 ;;
8109esac
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8111$as_echo "$lt_prog_compiler_pic" >&6; }
8112
8113
8114
8115
8116
8117
8118#
8119# Check to make sure the PIC flag actually works.
8120#
8121if test -n "$lt_prog_compiler_pic"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8123$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8124if ${lt_cv_prog_compiler_pic_works+:} false; then :
1ec601bf
FXC
8125 $as_echo_n "(cached) " >&6
8126else
8127 lt_cv_prog_compiler_pic_works=no
8128 ac_outfile=conftest.$ac_objext
8129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8130 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8131 # Insert the option either (1) after the last *FLAGS variable, or
8132 # (2) before a word containing "conftest.", or (3) at the end.
8133 # Note that $ac_compile itself does not contain backslashes and begins
8134 # with a dollar sign (not a hyphen), so the echo should work correctly.
8135 # The option is referenced via a variable to avoid confusing sed.
8136 lt_compile=`echo "$ac_compile" | $SED \
8137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8139 -e 's:$: $lt_compiler_flag:'`
8140 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8141 (eval "$lt_compile" 2>conftest.err)
8142 ac_status=$?
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 if (exit $ac_status) && test -s "$ac_outfile"; then
8146 # The compiler can only warn and ignore the option if not recognized
8147 # So say no if there are warnings other than the usual output.
8148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8150 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8151 lt_cv_prog_compiler_pic_works=yes
8152 fi
8153 fi
8154 $RM conftest*
8155
8156fi
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8158$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8159
8160if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8161 case $lt_prog_compiler_pic in
8162 "" | " "*) ;;
8163 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8164 esac
8165else
8166 lt_prog_compiler_pic=
8167 lt_prog_compiler_can_build_shared=no
8168fi
8169
8170fi
8171
8172
8173
8174
8175
8176
8177#
8178# Check to make sure the static flag actually works.
8179#
8180wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8182$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8183if ${lt_cv_prog_compiler_static_works+:} false; then :
1ec601bf
FXC
8184 $as_echo_n "(cached) " >&6
8185else
8186 lt_cv_prog_compiler_static_works=no
8187 save_LDFLAGS="$LDFLAGS"
8188 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8189 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8191 # The linker can only warn and ignore the option if not recognized
8192 # So say no if there are warnings
8193 if test -s conftest.err; then
8194 # Append any errors to the config.log.
8195 cat conftest.err 1>&5
8196 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8198 if diff conftest.exp conftest.er2 >/dev/null; then
8199 lt_cv_prog_compiler_static_works=yes
8200 fi
8201 else
8202 lt_cv_prog_compiler_static_works=yes
8203 fi
8204 fi
8205 $RM -r conftest*
8206 LDFLAGS="$save_LDFLAGS"
8207
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8210$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8211
8212if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8213 :
8214else
8215 lt_prog_compiler_static=
8216fi
8217
8218
8219
8220
8221
8222
8223
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8225$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8226if ${lt_cv_prog_compiler_c_o+:} false; then :
1ec601bf
FXC
8227 $as_echo_n "(cached) " >&6
8228else
8229 lt_cv_prog_compiler_c_o=no
8230 $RM -r conftest 2>/dev/null
8231 mkdir conftest
8232 cd conftest
8233 mkdir out
8234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8235
8236 lt_compiler_flag="-o out/conftest2.$ac_objext"
8237 # Insert the option either (1) after the last *FLAGS variable, or
8238 # (2) before a word containing "conftest.", or (3) at the end.
8239 # Note that $ac_compile itself does not contain backslashes and begins
8240 # with a dollar sign (not a hyphen), so the echo should work correctly.
8241 lt_compile=`echo "$ac_compile" | $SED \
8242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8244 -e 's:$: $lt_compiler_flag:'`
8245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8246 (eval "$lt_compile" 2>out/conftest.err)
8247 ac_status=$?
8248 cat out/conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8251 then
8252 # The compiler can only warn and ignore the option if not recognized
8253 # So say no if there are warnings
8254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8257 lt_cv_prog_compiler_c_o=yes
8258 fi
8259 fi
8260 chmod u+w . 2>&5
8261 $RM conftest*
8262 # SGI C++ compiler will create directory out/ii_files/ for
8263 # template instantiation
8264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8265 $RM out/* && rmdir out
8266 cd ..
8267 $RM -r conftest
8268 $RM conftest*
8269
8270fi
8271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8272$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8273
8274
8275
8276
8277
8278
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8280$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8281if ${lt_cv_prog_compiler_c_o+:} false; then :
1ec601bf
FXC
8282 $as_echo_n "(cached) " >&6
8283else
8284 lt_cv_prog_compiler_c_o=no
8285 $RM -r conftest 2>/dev/null
8286 mkdir conftest
8287 cd conftest
8288 mkdir out
8289 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8290
8291 lt_compiler_flag="-o out/conftest2.$ac_objext"
8292 # Insert the option either (1) after the last *FLAGS variable, or
8293 # (2) before a word containing "conftest.", or (3) at the end.
8294 # Note that $ac_compile itself does not contain backslashes and begins
8295 # with a dollar sign (not a hyphen), so the echo should work correctly.
8296 lt_compile=`echo "$ac_compile" | $SED \
8297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8299 -e 's:$: $lt_compiler_flag:'`
8300 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8301 (eval "$lt_compile" 2>out/conftest.err)
8302 ac_status=$?
8303 cat out/conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8306 then
8307 # The compiler can only warn and ignore the option if not recognized
8308 # So say no if there are warnings
8309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8310 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8311 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8312 lt_cv_prog_compiler_c_o=yes
8313 fi
8314 fi
8315 chmod u+w . 2>&5
8316 $RM conftest*
8317 # SGI C++ compiler will create directory out/ii_files/ for
8318 # template instantiation
8319 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8320 $RM out/* && rmdir out
8321 cd ..
8322 $RM -r conftest
8323 $RM conftest*
8324
8325fi
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8327$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8328
8329
8330
8331
8332hard_links="nottested"
8333if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8334 # do not overwrite the value of need_locks provided by the user
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8336$as_echo_n "checking if we can lock with hard links... " >&6; }
8337 hard_links=yes
8338 $RM conftest*
8339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8340 touch conftest.a
8341 ln conftest.a conftest.b 2>&5 || hard_links=no
8342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8344$as_echo "$hard_links" >&6; }
8345 if test "$hard_links" = no; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8347$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8348 need_locks=warn
8349 fi
8350else
8351 need_locks=no
8352fi
8353
8354
8355
8356
8357
8358
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8360$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8361
8362 runpath_var=
8363 allow_undefined_flag=
8364 always_export_symbols=no
8365 archive_cmds=
8366 archive_expsym_cmds=
8367 compiler_needs_object=no
8368 enable_shared_with_static_runtimes=no
8369 export_dynamic_flag_spec=
8370 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8371 hardcode_automatic=no
8372 hardcode_direct=no
8373 hardcode_direct_absolute=no
8374 hardcode_libdir_flag_spec=
8375 hardcode_libdir_flag_spec_ld=
8376 hardcode_libdir_separator=
8377 hardcode_minus_L=no
8378 hardcode_shlibpath_var=unsupported
8379 inherit_rpath=no
8380 link_all_deplibs=unknown
8381 module_cmds=
8382 module_expsym_cmds=
8383 old_archive_from_new_cmds=
8384 old_archive_from_expsyms_cmds=
8385 thread_safe_flag_spec=
8386 whole_archive_flag_spec=
8387 # include_expsyms should be a list of space-separated symbols to be *always*
8388 # included in the symbol list
8389 include_expsyms=
8390 # exclude_expsyms can be an extended regexp of symbols to exclude
8391 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8392 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8393 # as well as any symbol that contains `d'.
8394 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8395 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8396 # platforms (ab)use it in PIC code, but their linkers get confused if
8397 # the symbol is explicitly referenced. Since portable code cannot
8398 # rely on this symbol name, it's probably fine to never include it in
8399 # preloaded symbol tables.
8400 # Exclude shared library initialization/finalization symbols.
8401 extract_expsyms_cmds=
8402
8403 case $host_os in
8404 cygwin* | mingw* | pw32* | cegcc*)
8405 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8406 # When not using gcc, we currently assume that we are using
8407 # Microsoft Visual C++.
8408 if test "$GCC" != yes; then
8409 with_gnu_ld=no
8410 fi
8411 ;;
8412 interix*)
8413 # we just hope/assume this is gcc and not c89 (= MSVC++)
8414 with_gnu_ld=yes
8415 ;;
8416 openbsd*)
8417 with_gnu_ld=no
8418 ;;
8419 esac
8420
8421 ld_shlibs=yes
8422
8423 # On some targets, GNU ld is compatible enough with the native linker
8424 # that we're better off using the native interface for both.
8425 lt_use_gnu_ld_interface=no
8426 if test "$with_gnu_ld" = yes; then
8427 case $host_os in
8428 aix*)
8429 # The AIX port of GNU ld has always aspired to compatibility
8430 # with the native linker. However, as the warning in the GNU ld
8431 # block says, versions before 2.19.5* couldn't really create working
8432 # shared libraries, regardless of the interface used.
8433 case `$LD -v 2>&1` in
8434 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8435 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8436 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8437 *)
8438 lt_use_gnu_ld_interface=yes
8439 ;;
8440 esac
8441 ;;
8442 *)
8443 lt_use_gnu_ld_interface=yes
8444 ;;
8445 esac
8446 fi
8447
8448 if test "$lt_use_gnu_ld_interface" = yes; then
8449 # If archive_cmds runs LD, not CC, wlarc should be empty
8450 wlarc='${wl}'
8451
8452 # Set some defaults for GNU ld with shared library support. These
8453 # are reset later if shared libraries are not supported. Putting them
8454 # here allows them to be overridden if necessary.
8455 runpath_var=LD_RUN_PATH
8456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8457 export_dynamic_flag_spec='${wl}--export-dynamic'
8458 # ancient GNU ld didn't support --whole-archive et. al.
8459 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8460 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8461 else
8462 whole_archive_flag_spec=
8463 fi
8464 supports_anon_versioning=no
8465 case `$LD -v 2>&1` in
8466 *GNU\ gold*) supports_anon_versioning=yes ;;
8467 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8468 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8469 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8470 *\ 2.11.*) ;; # other 2.11 versions
8471 *) supports_anon_versioning=yes ;;
8472 esac
8473
8474 # See if GNU ld supports shared libraries.
8475 case $host_os in
8476 aix[3-9]*)
8477 # On AIX/PPC, the GNU linker is very broken
8478 if test "$host_cpu" != ia64; then
8479 ld_shlibs=no
8480 cat <<_LT_EOF 1>&2
8481
8482*** Warning: the GNU linker, at least up to release 2.19, is reported
8483*** to be unable to reliably create shared libraries on AIX.
8484*** Therefore, libtool is disabling shared libraries support. If you
8485*** really care for shared libraries, you may want to install binutils
8486*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8487*** You will then need to restart the configuration process.
8488
8489_LT_EOF
8490 fi
8491 ;;
8492
8493 amigaos*)
8494 case $host_cpu in
8495 powerpc)
8496 # see comment about AmigaOS4 .so support
8497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 archive_expsym_cmds=''
8499 ;;
8500 m68k)
8501 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)'
8502 hardcode_libdir_flag_spec='-L$libdir'
8503 hardcode_minus_L=yes
8504 ;;
8505 esac
8506 ;;
8507
8508 beos*)
8509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8510 allow_undefined_flag=unsupported
8511 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8512 # support --undefined. This deserves some investigation. FIXME
8513 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514 else
8515 ld_shlibs=no
8516 fi
8517 ;;
8518
8519 cygwin* | mingw* | pw32* | cegcc*)
8520 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8521 # as there is no search path for DLLs.
8522 hardcode_libdir_flag_spec='-L$libdir'
8523 export_dynamic_flag_spec='${wl}--export-all-symbols'
8524 allow_undefined_flag=unsupported
8525 always_export_symbols=no
8526 enable_shared_with_static_runtimes=yes
8527 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8528
8529 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8531 # If the export-symbols file already is a .def file (1st line
8532 # is EXPORTS), use it as is; otherwise, prepend...
8533 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8534 cp $export_symbols $output_objdir/$soname.def;
8535 else
8536 echo EXPORTS > $output_objdir/$soname.def;
8537 cat $export_symbols >> $output_objdir/$soname.def;
8538 fi~
8539 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8540 else
8541 ld_shlibs=no
8542 fi
8543 ;;
8544
8545 haiku*)
8546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8547 link_all_deplibs=yes
8548 ;;
8549
8550 interix[3-9]*)
8551 hardcode_direct=no
8552 hardcode_shlibpath_var=no
8553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8554 export_dynamic_flag_spec='${wl}-E'
8555 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8556 # Instead, shared libraries are loaded at an image base (0x10000000 by
8557 # default) and relocated if they conflict, which is a slow very memory
8558 # consuming and fragmenting process. To avoid this, we pick a random,
8559 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8560 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8561 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8562 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'
8563 ;;
8564
e9085da5 8565 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1ec601bf
FXC
8566 tmp_diet=no
8567 if test "$host_os" = linux-dietlibc; then
8568 case $cc_basename in
8569 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8570 esac
8571 fi
8572 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8573 && test "$tmp_diet" = no
8574 then
a699d672 8575 tmp_addflag=' $pic_flag'
1ec601bf
FXC
8576 tmp_sharedflag='-shared'
8577 case $cc_basename,$host_cpu in
8578 pgcc*) # Portland Group C compiler
8579 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'
8580 tmp_addflag=' $pic_flag'
8581 ;;
8582 pgf77* | pgf90* | pgf95* | pgfortran*)
8583 # Portland Group f77 and f90 compilers
8584 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'
8585 tmp_addflag=' $pic_flag -Mnomain' ;;
8586 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8587 tmp_addflag=' -i_dynamic' ;;
8588 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8589 tmp_addflag=' -i_dynamic -nofor_main' ;;
8590 ifc* | ifort*) # Intel Fortran compiler
8591 tmp_addflag=' -nofor_main' ;;
8592 lf95*) # Lahey Fortran 8.1
8593 whole_archive_flag_spec=
8594 tmp_sharedflag='--shared' ;;
8595 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8596 tmp_sharedflag='-qmkshrobj'
8597 tmp_addflag= ;;
8598 nvcc*) # Cuda Compiler Driver 2.2
8599 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'
8600 compiler_needs_object=yes
8601 ;;
8602 esac
8603 case `$CC -V 2>&1 | sed 5q` in
8604 *Sun\ C*) # Sun C 5.9
8605 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'
8606 compiler_needs_object=yes
8607 tmp_sharedflag='-G' ;;
8608 *Sun\ F*) # Sun Fortran 8.3
8609 tmp_sharedflag='-G' ;;
8610 esac
8611 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8612
8613 if test "x$supports_anon_versioning" = xyes; then
8614 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8615 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8616 echo "local: *; };" >> $output_objdir/$libname.ver~
8617 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8618 fi
8619
8620 case $cc_basename in
8621 xlf* | bgf* | bgxlf* | mpixlf*)
8622 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8623 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8624 hardcode_libdir_flag_spec=
8625 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8626 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8627 if test "x$supports_anon_versioning" = xyes; then
8628 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8630 echo "local: *; };" >> $output_objdir/$libname.ver~
8631 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8632 fi
8633 ;;
8634 esac
8635 else
8636 ld_shlibs=no
8637 fi
8638 ;;
8639
8640 netbsd*)
8641 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8642 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8643 wlarc=
8644 else
8645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8647 fi
8648 ;;
8649
8650 solaris*)
8651 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8652 ld_shlibs=no
8653 cat <<_LT_EOF 1>&2
8654
8655*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8656*** create shared libraries on Solaris systems. Therefore, libtool
8657*** is disabling shared libraries support. We urge you to upgrade GNU
8658*** binutils to release 2.9.1 or newer. Another option is to modify
8659*** your PATH or compiler configuration so that the native linker is
8660*** used, and then restart.
8661
8662_LT_EOF
8663 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8666 else
8667 ld_shlibs=no
8668 fi
8669 ;;
8670
8671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8672 case `$LD -v 2>&1` in
8673 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8674 ld_shlibs=no
8675 cat <<_LT_EOF 1>&2
8676
8677*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8678*** reliably create shared libraries on SCO systems. Therefore, libtool
8679*** is disabling shared libraries support. We urge you to upgrade GNU
8680*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8681*** your PATH or compiler configuration so that the native linker is
8682*** used, and then restart.
8683
8684_LT_EOF
8685 ;;
8686 *)
8687 # For security reasons, it is highly recommended that you always
8688 # use absolute paths for naming shared libraries, and exclude the
8689 # DT_RUNPATH tag from executables and libraries. But doing so
8690 # requires that you compile everything twice, which is a pain.
8691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8695 else
8696 ld_shlibs=no
8697 fi
8698 ;;
8699 esac
8700 ;;
8701
8702 sunos4*)
8703 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8704 wlarc=
8705 hardcode_direct=yes
8706 hardcode_shlibpath_var=no
8707 ;;
8708
8709 *)
8710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713 else
8714 ld_shlibs=no
8715 fi
8716 ;;
8717 esac
8718
8719 if test "$ld_shlibs" = no; then
8720 runpath_var=
8721 hardcode_libdir_flag_spec=
8722 export_dynamic_flag_spec=
8723 whole_archive_flag_spec=
8724 fi
8725 else
8726 # PORTME fill in a description of your system's linker (not GNU ld)
8727 case $host_os in
8728 aix3*)
8729 allow_undefined_flag=unsupported
8730 always_export_symbols=yes
8731 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'
8732 # Note: this linker hardcodes the directories in LIBPATH if there
8733 # are no directories specified by -L.
8734 hardcode_minus_L=yes
8735 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8736 # Neither direct hardcoding nor static linking is supported with a
8737 # broken collect2.
8738 hardcode_direct=unsupported
8739 fi
8740 ;;
8741
8742 aix[4-9]*)
8743 if test "$host_cpu" = ia64; then
8744 # On IA64, the linker does run time linking by default, so we don't
8745 # have to do anything special.
8746 aix_use_runtimelinking=no
8747 exp_sym_flag='-Bexport'
8748 no_entry_flag=""
8749 else
8750 # If we're using GNU nm, then we don't want the "-C" option.
8751 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8752 # Also, AIX nm treats weak defined symbols like other global
8753 # defined symbols, whereas GNU nm marks them as "W".
8754 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8755 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'
8756 else
84c1b9d3 8757 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1ec601bf
FXC
8758 fi
8759 aix_use_runtimelinking=no
8760
8761 # Test if we are trying to use run time linking or normal
8762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8763 # need to do runtime linking.
8764 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8765 for ld_flag in $LDFLAGS; do
8766 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8767 aix_use_runtimelinking=yes
8768 break
8769 fi
8770 done
8771 ;;
8772 esac
8773
8774 exp_sym_flag='-bexport'
8775 no_entry_flag='-bnoentry'
8776 fi
8777
8778 # When large executables or shared objects are built, AIX ld can
8779 # have problems creating the table of contents. If linking a library
8780 # or program results in "error TOC overflow" add -mminimal-toc to
8781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8783
8784 archive_cmds=''
8785 hardcode_direct=yes
8786 hardcode_direct_absolute=yes
8787 hardcode_libdir_separator=':'
8788 link_all_deplibs=yes
8789 file_list_spec='${wl}-f,'
8790
8791 if test "$GCC" = yes; then
8792 case $host_os in aix4.[012]|aix4.[012].*)
8793 # We only want to do this on AIX 4.2 and lower, the check
8794 # below for broken collect2 doesn't work under 4.3+
8795 collect2name=`${CC} -print-prog-name=collect2`
8796 if test -f "$collect2name" &&
8797 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8798 then
8799 # We have reworked collect2
8800 :
8801 else
8802 # We have old collect2
8803 hardcode_direct=unsupported
8804 # It fails to find uninstalled libraries when the uninstalled
8805 # path is not listed in the libpath. Setting hardcode_minus_L
8806 # to unsupported forces relinking
8807 hardcode_minus_L=yes
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_libdir_separator=
8810 fi
8811 ;;
8812 esac
8813 shared_flag='-shared'
8814 if test "$aix_use_runtimelinking" = yes; then
8815 shared_flag="$shared_flag "'${wl}-G'
8816 fi
8817 else
8818 # not using gcc
8819 if test "$host_cpu" = ia64; then
8820 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8821 # chokes on -Wl,-G. The following line is correct:
8822 shared_flag='-G'
8823 else
8824 if test "$aix_use_runtimelinking" = yes; then
8825 shared_flag='${wl}-G'
8826 else
8827 shared_flag='${wl}-bM:SRE'
8828 fi
8829 fi
8830 fi
8831
8832 export_dynamic_flag_spec='${wl}-bexpall'
8833 # It seems that -bexpall does not export symbols beginning with
8834 # underscore (_), so it is better to generate a list of symbols to export.
8835 always_export_symbols=yes
8836 if test "$aix_use_runtimelinking" = yes; then
8837 # Warning - without using the other runtime loading flags (-brtl),
8838 # -berok will link without error, but may produce a broken library.
8839 allow_undefined_flag='-berok'
8840 # Determine the default libpath from the value encoded in an
8841 # empty executable.
fabfcf5e 8842 if test x$gcc_no_link = xyes; then
22e05272 8843 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e
KT
8844fi
8845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8846/* end confdefs.h. */
8847
8848int
8849main ()
8850{
8851
8852 ;
8853 return 0;
8854}
8855_ACEOF
8856if ac_fn_c_try_link "$LINENO"; then :
8857
8858lt_aix_libpath_sed='
8859 /Import File Strings/,/^$/ {
8860 /^0/ {
8861 s/^0 *\(.*\)$/\1/
8862 p
8863 }
8864 }'
8865aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8866# Check for a 64-bit object if we didn't find anything.
8867if test -z "$aix_libpath"; then
8868 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8869fi
8870fi
8871rm -f core conftest.err conftest.$ac_objext \
8872 conftest$ac_exeext conftest.$ac_ext
8873if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8874
8875 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8876 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"
8877 else
8878 if test "$host_cpu" = ia64; then
8879 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8880 allow_undefined_flag="-z nodefs"
8881 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"
8882 else
8883 # Determine the default libpath from the value encoded in an
8884 # empty executable.
fabfcf5e 8885 if test x$gcc_no_link = xyes; then
22e05272 8886 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e
KT
8887fi
8888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
8889/* end confdefs.h. */
8890
8891int
8892main ()
8893{
8894
8895 ;
8896 return 0;
8897}
8898_ACEOF
8899if ac_fn_c_try_link "$LINENO"; then :
8900
8901lt_aix_libpath_sed='
8902 /Import File Strings/,/^$/ {
8903 /^0/ {
8904 s/^0 *\(.*\)$/\1/
8905 p
8906 }
8907 }'
8908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8909# Check for a 64-bit object if we didn't find anything.
8910if test -z "$aix_libpath"; then
8911 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8912fi
8913fi
8914rm -f core conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
8916if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8917
8918 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8919 # Warning - without using the other run time loading flags,
8920 # -berok will link without error, but may produce a broken library.
8921 no_undefined_flag=' ${wl}-bernotok'
8922 allow_undefined_flag=' ${wl}-berok'
8923 if test "$with_gnu_ld" = yes; then
8924 # We only use this code for GNU lds that support --whole-archive.
8925 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8926 else
8927 # Exported symbols can be pulled into shared objects from archives
8928 whole_archive_flag_spec='$convenience'
8929 fi
8930 archive_cmds_need_lc=yes
8931 # This is similar to how AIX traditionally builds its shared libraries.
8932 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'
8933 fi
8934 fi
8935 ;;
8936
8937 amigaos*)
8938 case $host_cpu in
8939 powerpc)
8940 # see comment about AmigaOS4 .so support
8941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8942 archive_expsym_cmds=''
8943 ;;
8944 m68k)
8945 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)'
8946 hardcode_libdir_flag_spec='-L$libdir'
8947 hardcode_minus_L=yes
8948 ;;
8949 esac
8950 ;;
8951
8952 bsdi[45]*)
8953 export_dynamic_flag_spec=-rdynamic
8954 ;;
8955
8956 cygwin* | mingw* | pw32* | cegcc*)
8957 # When not using gcc, we currently assume that we are using
8958 # Microsoft Visual C++.
8959 # hardcode_libdir_flag_spec is actually meaningless, as there is
8960 # no search path for DLLs.
8961 hardcode_libdir_flag_spec=' '
8962 allow_undefined_flag=unsupported
8963 # Tell ltmain to make .lib files, not .a files.
8964 libext=lib
8965 # Tell ltmain to make .dll files, not .so files.
8966 shrext_cmds=".dll"
8967 # FIXME: Setting linknames here is a bad hack.
8968 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8969 # The linker will automatically build a .lib file if we build a DLL.
8970 old_archive_from_new_cmds='true'
8971 # FIXME: Should let the user specify the lib program.
8972 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8973 fix_srcfile_path='`cygpath -w "$srcfile"`'
8974 enable_shared_with_static_runtimes=yes
8975 ;;
8976
8977 darwin* | rhapsody*)
8978
8979
8980 archive_cmds_need_lc=no
8981 hardcode_direct=no
8982 hardcode_automatic=yes
8983 hardcode_shlibpath_var=unsupported
8984 if test "$lt_cv_ld_force_load" = "yes"; then
8985 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\"`'
8986 else
8987 whole_archive_flag_spec=''
8988 fi
8989 link_all_deplibs=yes
8990 allow_undefined_flag="$_lt_dar_allow_undefined"
8991 case $cc_basename in
8992 ifort*) _lt_dar_can_shared=yes ;;
8993 *) _lt_dar_can_shared=$GCC ;;
8994 esac
8995 if test "$_lt_dar_can_shared" = "yes"; then
8996 output_verbose_link_cmd=func_echo_all
8997 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8998 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8999 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}"
9000 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}"
9001
9002 else
9003 ld_shlibs=no
9004 fi
9005
9006 ;;
9007
9008 dgux*)
9009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_libdir_flag_spec='-L$libdir'
9011 hardcode_shlibpath_var=no
9012 ;;
9013
1ec601bf
FXC
9014 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9015 # support. Future versions do this automatically, but an explicit c++rt0.o
9016 # does not break anything, and helps significantly (at the cost of a little
9017 # extra space).
9018 freebsd2.2*)
9019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9020 hardcode_libdir_flag_spec='-R$libdir'
9021 hardcode_direct=yes
9022 hardcode_shlibpath_var=no
9023 ;;
9024
9025 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 9026 freebsd2.*)
1ec601bf
FXC
9027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9028 hardcode_direct=yes
9029 hardcode_minus_L=yes
9030 hardcode_shlibpath_var=no
9031 ;;
9032
9033 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9034 freebsd* | dragonfly*)
9035 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9036 hardcode_libdir_flag_spec='-R$libdir'
9037 hardcode_direct=yes
9038 hardcode_shlibpath_var=no
9039 ;;
9040
9041 hpux9*)
9042 if test "$GCC" = yes; then
9043 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'
9044 else
9045 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'
9046 fi
9047 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9048 hardcode_libdir_separator=:
9049 hardcode_direct=yes
9050
9051 # hardcode_minus_L: Not really in the search PATH,
9052 # but as the default location of the library.
9053 hardcode_minus_L=yes
9054 export_dynamic_flag_spec='${wl}-E'
9055 ;;
9056
9057 hpux10*)
9058 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9059 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9060 else
9061 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9062 fi
9063 if test "$with_gnu_ld" = no; then
9064 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9065 hardcode_libdir_flag_spec_ld='+b $libdir'
9066 hardcode_libdir_separator=:
9067 hardcode_direct=yes
9068 hardcode_direct_absolute=yes
9069 export_dynamic_flag_spec='${wl}-E'
9070 # hardcode_minus_L: Not really in the search PATH,
9071 # but as the default location of the library.
9072 hardcode_minus_L=yes
9073 fi
9074 ;;
9075
9076 hpux11*)
9077 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9078 case $host_cpu in
9079 hppa*64*)
9080 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9081 ;;
9082 ia64*)
9083 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9084 ;;
9085 *)
9086 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9087 ;;
9088 esac
9089 else
9090 case $host_cpu in
9091 hppa*64*)
9092 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093 ;;
9094 ia64*)
9095 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9096 ;;
9097 *)
9098
9099 # Older versions of the 11.00 compiler do not understand -b yet
9100 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9102$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9103if ${lt_cv_prog_compiler__b+:} false; then :
1ec601bf
FXC
9104 $as_echo_n "(cached) " >&6
9105else
9106 lt_cv_prog_compiler__b=no
9107 save_LDFLAGS="$LDFLAGS"
9108 LDFLAGS="$LDFLAGS -b"
9109 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9110 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9111 # The linker can only warn and ignore the option if not recognized
9112 # So say no if there are warnings
9113 if test -s conftest.err; then
9114 # Append any errors to the config.log.
9115 cat conftest.err 1>&5
9116 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9118 if diff conftest.exp conftest.er2 >/dev/null; then
9119 lt_cv_prog_compiler__b=yes
9120 fi
9121 else
9122 lt_cv_prog_compiler__b=yes
9123 fi
9124 fi
9125 $RM -r conftest*
9126 LDFLAGS="$save_LDFLAGS"
9127
9128fi
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9130$as_echo "$lt_cv_prog_compiler__b" >&6; }
9131
9132if test x"$lt_cv_prog_compiler__b" = xyes; then
9133 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9134else
9135 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9136fi
9137
9138 ;;
9139 esac
9140 fi
9141 if test "$with_gnu_ld" = no; then
9142 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9143 hardcode_libdir_separator=:
9144
9145 case $host_cpu in
9146 hppa*64*|ia64*)
9147 hardcode_direct=no
9148 hardcode_shlibpath_var=no
9149 ;;
9150 *)
9151 hardcode_direct=yes
9152 hardcode_direct_absolute=yes
9153 export_dynamic_flag_spec='${wl}-E'
9154
9155 # hardcode_minus_L: Not really in the search PATH,
9156 # but as the default location of the library.
9157 hardcode_minus_L=yes
9158 ;;
9159 esac
9160 fi
9161 ;;
9162
9163 irix5* | irix6* | nonstopux*)
9164 if test "$GCC" = yes; then
9165 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'
9166 # Try to use the -exported_symbol ld option, if it does not
9167 # work, assume that -exports_file does not work either and
9168 # implicitly export all symbols.
9169 save_LDFLAGS="$LDFLAGS"
9170 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
fabfcf5e 9171 if test x$gcc_no_link = xyes; then
22e05272 9172 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e
KT
9173fi
9174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
9175/* end confdefs.h. */
9176int foo(void) {}
9177_ACEOF
9178if ac_fn_c_try_link "$LINENO"; then :
9179 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'
9180
9181fi
9182rm -f core conftest.err conftest.$ac_objext \
9183 conftest$ac_exeext conftest.$ac_ext
9184 LDFLAGS="$save_LDFLAGS"
9185 else
9186 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'
9187 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'
9188 fi
9189 archive_cmds_need_lc='no'
9190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191 hardcode_libdir_separator=:
9192 inherit_rpath=yes
9193 link_all_deplibs=yes
9194 ;;
9195
9196 netbsd*)
9197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9199 else
9200 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9201 fi
9202 hardcode_libdir_flag_spec='-R$libdir'
9203 hardcode_direct=yes
9204 hardcode_shlibpath_var=no
9205 ;;
9206
9207 newsos6)
9208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_direct=yes
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 hardcode_libdir_separator=:
9212 hardcode_shlibpath_var=no
9213 ;;
9214
9215 *nto* | *qnx*)
9216 ;;
9217
9218 openbsd*)
9219 if test -f /usr/libexec/ld.so; then
9220 hardcode_direct=yes
9221 hardcode_shlibpath_var=no
9222 hardcode_direct_absolute=yes
9223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9225 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9227 export_dynamic_flag_spec='${wl}-E'
9228 else
9229 case $host_os in
9230 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9232 hardcode_libdir_flag_spec='-R$libdir'
9233 ;;
9234 *)
9235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9237 ;;
9238 esac
9239 fi
9240 else
9241 ld_shlibs=no
9242 fi
9243 ;;
9244
9245 os2*)
9246 hardcode_libdir_flag_spec='-L$libdir'
9247 hardcode_minus_L=yes
9248 allow_undefined_flag=unsupported
9249 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'
9250 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9251 ;;
9252
9253 osf3*)
9254 if test "$GCC" = yes; then
9255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9256 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'
9257 else
9258 allow_undefined_flag=' -expect_unresolved \*'
9259 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'
9260 fi
9261 archive_cmds_need_lc='no'
9262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9263 hardcode_libdir_separator=:
9264 ;;
9265
9266 osf4* | osf5*) # as osf3* with the addition of -msym flag
9267 if test "$GCC" = yes; then
9268 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9269 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'
9270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9271 else
9272 allow_undefined_flag=' -expect_unresolved \*'
9273 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'
9274 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~
9275 $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'
9276
9277 # Both c and cxx compiler support -rpath directly
9278 hardcode_libdir_flag_spec='-rpath $libdir'
9279 fi
9280 archive_cmds_need_lc='no'
9281 hardcode_libdir_separator=:
9282 ;;
9283
9284 solaris*)
9285 no_undefined_flag=' -z defs'
9286 if test "$GCC" = yes; then
9287 wlarc='${wl}'
9288 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9290 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9291 else
9292 case `$CC -V 2>&1` in
9293 *"Compilers 5.0"*)
9294 wlarc=''
9295 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9297 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9298 ;;
9299 *)
9300 wlarc='${wl}'
9301 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9303 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9304 ;;
9305 esac
9306 fi
9307 hardcode_libdir_flag_spec='-R$libdir'
9308 hardcode_shlibpath_var=no
9309 case $host_os in
9310 solaris2.[0-5] | solaris2.[0-5].*) ;;
9311 *)
9312 # The compiler driver will combine and reorder linker options,
9313 # but understands `-z linker_flag'. GCC discards it without `$wl',
9314 # but is careful enough not to reorder.
9315 # Supported since Solaris 2.6 (maybe 2.5.1?)
9316 if test "$GCC" = yes; then
9317 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9318 else
9319 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9320 fi
9321 ;;
9322 esac
9323 link_all_deplibs=yes
9324 ;;
9325
9326 sunos4*)
9327 if test "x$host_vendor" = xsequent; then
9328 # Use $CC to link under sequent, because it throws in some extra .o
9329 # files that make .init and .fini sections work.
9330 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9331 else
9332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9333 fi
9334 hardcode_libdir_flag_spec='-L$libdir'
9335 hardcode_direct=yes
9336 hardcode_minus_L=yes
9337 hardcode_shlibpath_var=no
9338 ;;
9339
9340 sysv4)
9341 case $host_vendor in
9342 sni)
9343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_direct=yes # is this really true???
9345 ;;
9346 siemens)
9347 ## LD is ld it makes a PLAMLIB
9348 ## CC just makes a GrossModule.
9349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9350 reload_cmds='$CC -r -o $output$reload_objs'
9351 hardcode_direct=no
9352 ;;
9353 motorola)
9354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9356 ;;
9357 esac
9358 runpath_var='LD_RUN_PATH'
9359 hardcode_shlibpath_var=no
9360 ;;
9361
9362 sysv4.3*)
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_shlibpath_var=no
9365 export_dynamic_flag_spec='-Bexport'
9366 ;;
9367
9368 sysv4*MP*)
9369 if test -d /usr/nec; then
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_shlibpath_var=no
9372 runpath_var=LD_RUN_PATH
9373 hardcode_runpath_var=yes
9374 ld_shlibs=yes
9375 fi
9376 ;;
9377
9378 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9379 no_undefined_flag='${wl}-z,text'
9380 archive_cmds_need_lc=no
9381 hardcode_shlibpath_var=no
9382 runpath_var='LD_RUN_PATH'
9383
9384 if test "$GCC" = yes; then
9385 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9386 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9387 else
9388 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 fi
9391 ;;
9392
9393 sysv5* | sco3.2v5* | sco5v6*)
9394 # Note: We can NOT use -z defs as we might desire, because we do not
9395 # link with -lc, and that would cause any symbols used from libc to
9396 # always be unresolved, which means just about no library would
9397 # ever link correctly. If we're not using GNU ld we use -z text
9398 # though, which does catch some bad symbols but isn't as heavy-handed
9399 # as -z defs.
9400 no_undefined_flag='${wl}-z,text'
9401 allow_undefined_flag='${wl}-z,nodefs'
9402 archive_cmds_need_lc=no
9403 hardcode_shlibpath_var=no
9404 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9405 hardcode_libdir_separator=':'
9406 link_all_deplibs=yes
9407 export_dynamic_flag_spec='${wl}-Bexport'
9408 runpath_var='LD_RUN_PATH'
9409
9410 if test "$GCC" = yes; then
9411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 else
9414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 fi
9417 ;;
9418
9419 uts4*)
9420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421 hardcode_libdir_flag_spec='-L$libdir'
9422 hardcode_shlibpath_var=no
9423 ;;
9424
9425 *)
9426 ld_shlibs=no
9427 ;;
9428 esac
9429
9430 if test x$host_vendor = xsni; then
9431 case $host in
9432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9433 export_dynamic_flag_spec='${wl}-Blargedynsym'
9434 ;;
9435 esac
9436 fi
9437 fi
9438
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9440$as_echo "$ld_shlibs" >&6; }
9441test "$ld_shlibs" = no && can_build_shared=no
9442
9443with_gnu_ld=$with_gnu_ld
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459#
9460# Do we need to explicitly link libc?
9461#
9462case "x$archive_cmds_need_lc" in
9463x|xyes)
9464 # Assume -lc should be added
9465 archive_cmds_need_lc=yes
9466
9467 if test "$enable_shared" = yes && test "$GCC" = yes; then
9468 case $archive_cmds in
9469 *'~'*)
9470 # FIXME: we may have to deal with multi-command sequences.
9471 ;;
9472 '$CC '*)
9473 # Test whether the compiler implicitly links with -lc since on some
9474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9475 # to ld, don't add -lc before -lgcc.
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9477$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 9478if ${lt_cv_archive_cmds_need_lc+:} false; then :
1ec601bf
FXC
9479 $as_echo_n "(cached) " >&6
9480else
9481 $RM conftest*
9482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9483
9484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9485 (eval $ac_compile) 2>&5
9486 ac_status=$?
9487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9488 test $ac_status = 0; } 2>conftest.err; then
9489 soname=conftest
9490 lib=conftest
9491 libobjs=conftest.$ac_objext
9492 deplibs=
9493 wl=$lt_prog_compiler_wl
9494 pic_flag=$lt_prog_compiler_pic
9495 compiler_flags=-v
9496 linker_flags=-v
9497 verstring=
9498 output_objdir=.
9499 libname=conftest
9500 lt_save_allow_undefined_flag=$allow_undefined_flag
9501 allow_undefined_flag=
9502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9503 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9504 ac_status=$?
9505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9506 test $ac_status = 0; }
9507 then
9508 lt_cv_archive_cmds_need_lc=no
9509 else
9510 lt_cv_archive_cmds_need_lc=yes
9511 fi
9512 allow_undefined_flag=$lt_save_allow_undefined_flag
9513 else
9514 cat conftest.err 1>&5
9515 fi
9516 $RM conftest*
9517
9518fi
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9520$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9521 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9522 ;;
9523 esac
9524 fi
9525 ;;
9526esac
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9685$as_echo_n "checking dynamic linker characteristics... " >&6; }
9686
9687if test "$GCC" = yes; then
9688 case $host_os in
9689 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9690 *) lt_awk_arg="/^libraries:/" ;;
9691 esac
9692 case $host_os in
9693 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9694 *) lt_sed_strip_eq="s,=/,/,g" ;;
9695 esac
9696 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9697 case $lt_search_path_spec in
9698 *\;*)
9699 # if the path contains ";" then we assume it to be the separator
9700 # otherwise default to the standard path separator (i.e. ":") - it is
9701 # assumed that no part of a normal pathname contains ";" but that should
9702 # okay in the real world where ";" in dirpaths is itself problematic.
9703 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9704 ;;
9705 *)
9706 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9707 ;;
9708 esac
9709 # Ok, now we have the path, separated by spaces, we can step through it
9710 # and add multilib dir if necessary.
9711 lt_tmp_lt_search_path_spec=
9712 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9713 for lt_sys_path in $lt_search_path_spec; do
9714 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9715 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9716 else
9717 test -d "$lt_sys_path" && \
9718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9719 fi
9720 done
9721 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9722BEGIN {RS=" "; FS="/|\n";} {
9723 lt_foo="";
9724 lt_count=0;
9725 for (lt_i = NF; lt_i > 0; lt_i--) {
9726 if ($lt_i != "" && $lt_i != ".") {
9727 if ($lt_i == "..") {
9728 lt_count++;
9729 } else {
9730 if (lt_count == 0) {
9731 lt_foo="/" $lt_i lt_foo;
9732 } else {
9733 lt_count--;
9734 }
9735 }
9736 }
9737 }
9738 if (lt_foo != "") { lt_freq[lt_foo]++; }
9739 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9740}'`
9741 # AWK program above erroneously prepends '/' to C:/dos/paths
9742 # for these hosts.
9743 case $host_os in
9744 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9745 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9746 esac
9747 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9748else
9749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9750fi
9751library_names_spec=
9752libname_spec='lib$name'
9753soname_spec=
9754shrext_cmds=".so"
9755postinstall_cmds=
9756postuninstall_cmds=
9757finish_cmds=
9758finish_eval=
9759shlibpath_var=
9760shlibpath_overrides_runpath=unknown
9761version_type=none
9762dynamic_linker="$host_os ld.so"
9763sys_lib_dlsearch_path_spec="/lib /usr/lib"
9764need_lib_prefix=unknown
9765hardcode_into_libs=no
9766
9767# when you set need_version to no, make sure it does not cause -set_version
9768# flags to be left without arguments
9769need_version=unknown
9770
9771case $host_os in
9772aix3*)
9773 version_type=linux
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9775 shlibpath_var=LIBPATH
9776
9777 # AIX 3 has no versioning support, so we append a major version to the name.
9778 soname_spec='${libname}${release}${shared_ext}$major'
9779 ;;
9780
9781aix[4-9]*)
9782 version_type=linux
9783 need_lib_prefix=no
9784 need_version=no
9785 hardcode_into_libs=yes
9786 if test "$host_cpu" = ia64; then
9787 # AIX 5 supports IA64
9788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 else
9791 # With GCC up to 2.95.x, collect2 would create an import file
9792 # for dependence libraries. The import file would start with
9793 # the line `#! .'. This would cause the generated library to
9794 # depend on `.', always an invalid library. This was fixed in
9795 # development snapshots of GCC prior to 3.0.
9796 case $host_os in
9797 aix4 | aix4.[01] | aix4.[01].*)
9798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9799 echo ' yes '
9800 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9801 :
9802 else
9803 can_build_shared=no
9804 fi
9805 ;;
9806 esac
9807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9808 # soname into executable. Probably we can add versioning support to
9809 # collect2, so additional links can be useful in future.
9810 if test "$aix_use_runtimelinking" = yes; then
9811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9812 # instead of lib<name>.a to let people know that these are not
9813 # typical AIX shared libraries.
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815 else
9816 # We preserve .a as extension for shared libraries through AIX4.2
9817 # and later when we are not doing run time linking.
9818 library_names_spec='${libname}${release}.a $libname.a'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 fi
9821 shlibpath_var=LIBPATH
9822 fi
9823 ;;
9824
9825amigaos*)
9826 case $host_cpu in
9827 powerpc)
9828 # Since July 2007 AmigaOS4 officially supports .so libraries.
9829 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 ;;
9832 m68k)
9833 library_names_spec='$libname.ixlibrary $libname.a'
9834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9835 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'
9836 ;;
9837 esac
9838 ;;
9839
9840beos*)
9841 library_names_spec='${libname}${shared_ext}'
9842 dynamic_linker="$host_os ld.so"
9843 shlibpath_var=LIBRARY_PATH
9844 ;;
9845
9846bsdi[45]*)
9847 version_type=linux
9848 need_version=no
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850 soname_spec='${libname}${release}${shared_ext}$major'
9851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9855 # the default ld.so.conf also contains /usr/contrib/lib and
9856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9857 # libtool to hard-code these into programs
9858 ;;
9859
9860cygwin* | mingw* | pw32* | cegcc*)
9861 version_type=windows
9862 shrext_cmds=".dll"
9863 need_version=no
9864 need_lib_prefix=no
9865
9866 case $GCC,$host_os in
9867 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9868 library_names_spec='$libname.dll.a'
9869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9870 postinstall_cmds='base_file=`basename \${file}`~
9871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9872 dldir=$destdir/`dirname \$dlpath`~
9873 test -d \$dldir || mkdir -p \$dldir~
9874 $install_prog $dir/$dlname \$dldir/$dlname~
9875 chmod a+x \$dldir/$dlname~
9876 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9877 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9878 fi'
9879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9880 dlpath=$dir/\$dldll~
9881 $RM \$dlpath'
9882 shlibpath_overrides_runpath=yes
9883
9884 case $host_os in
9885 cygwin*)
9886 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9887 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9888
9889 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9890 ;;
9891 mingw* | cegcc*)
9892 # MinGW DLLs use traditional 'lib' prefix
9893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9894 ;;
9895 pw32*)
9896 # pw32 DLLs use 'pw' prefix rather than 'lib'
9897 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9898 ;;
9899 esac
9900 ;;
9901
9902 *)
9903 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9904 ;;
9905 esac
9906 dynamic_linker='Win32 ld.exe'
9907 # FIXME: first we should search . and the directory the executable is in
9908 shlibpath_var=PATH
9909 ;;
9910
9911darwin* | rhapsody*)
9912 dynamic_linker="$host_os dyld"
9913 version_type=darwin
9914 need_lib_prefix=no
9915 need_version=no
9916 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9917 soname_spec='${libname}${release}${major}$shared_ext'
9918 shlibpath_overrides_runpath=yes
9919 shlibpath_var=DYLD_LIBRARY_PATH
9920 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9921
9922 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9923 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9924 ;;
9925
9926dgux*)
9927 version_type=linux
9928 need_lib_prefix=no
9929 need_version=no
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 shlibpath_var=LD_LIBRARY_PATH
9933 ;;
9934
1ec601bf
FXC
9935freebsd* | dragonfly*)
9936 # DragonFly does not have aout. When/if they implement a new
9937 # versioning mechanism, adjust this.
9938 if test -x /usr/bin/objformat; then
9939 objformat=`/usr/bin/objformat`
9940 else
9941 case $host_os in
c6084f68 9942 freebsd[23].*) objformat=aout ;;
1ec601bf
FXC
9943 *) objformat=elf ;;
9944 esac
9945 fi
9946 version_type=freebsd-$objformat
9947 case $version_type in
9948 freebsd-elf*)
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9950 need_version=no
9951 need_lib_prefix=no
9952 ;;
9953 freebsd-*)
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9955 need_version=yes
9956 ;;
9957 esac
9958 shlibpath_var=LD_LIBRARY_PATH
9959 case $host_os in
c6084f68 9960 freebsd2.*)
1ec601bf
FXC
9961 shlibpath_overrides_runpath=yes
9962 ;;
9963 freebsd3.[01]* | freebsdelf3.[01]*)
9964 shlibpath_overrides_runpath=yes
9965 hardcode_into_libs=yes
9966 ;;
9967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9969 shlibpath_overrides_runpath=no
9970 hardcode_into_libs=yes
9971 ;;
9972 *) # from 4.6 on, and DragonFly
9973 shlibpath_overrides_runpath=yes
9974 hardcode_into_libs=yes
9975 ;;
9976 esac
9977 ;;
9978
9979gnu*)
9980 version_type=linux
9981 need_lib_prefix=no
9982 need_version=no
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 hardcode_into_libs=yes
9987 ;;
9988
9989haiku*)
9990 version_type=linux
9991 need_lib_prefix=no
9992 need_version=no
9993 dynamic_linker="$host_os runtime_loader"
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9995 soname_spec='${libname}${release}${shared_ext}$major'
9996 shlibpath_var=LIBRARY_PATH
9997 shlibpath_overrides_runpath=yes
9998 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9999 hardcode_into_libs=yes
10000 ;;
10001
10002hpux9* | hpux10* | hpux11*)
10003 # Give a soname corresponding to the major version so that dld.sl refuses to
10004 # link against other versions.
10005 version_type=sunos
10006 need_lib_prefix=no
10007 need_version=no
10008 case $host_cpu in
10009 ia64*)
10010 shrext_cmds='.so'
10011 hardcode_into_libs=yes
10012 dynamic_linker="$host_os dld.so"
10013 shlibpath_var=LD_LIBRARY_PATH
10014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016 soname_spec='${libname}${release}${shared_ext}$major'
10017 if test "X$HPUX_IA64_MODE" = X32; then
10018 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10019 else
10020 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10021 fi
10022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10023 ;;
10024 hppa*64*)
10025 shrext_cmds='.sl'
10026 hardcode_into_libs=yes
10027 dynamic_linker="$host_os dld.sl"
10028 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10034 ;;
10035 *)
10036 shrext_cmds='.sl'
10037 dynamic_linker="$host_os dld.sl"
10038 shlibpath_var=SHLIB_PATH
10039 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 ;;
10043 esac
10044 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10045 postinstall_cmds='chmod 555 $lib'
10046 # or fails outright, so override atomically:
10047 install_override_mode=555
10048 ;;
10049
10050interix[3-9]*)
10051 version_type=linux
10052 need_lib_prefix=no
10053 need_version=no
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10057 shlibpath_var=LD_LIBRARY_PATH
10058 shlibpath_overrides_runpath=no
10059 hardcode_into_libs=yes
10060 ;;
10061
10062irix5* | irix6* | nonstopux*)
10063 case $host_os in
10064 nonstopux*) version_type=nonstopux ;;
10065 *)
10066 if test "$lt_cv_prog_gnu_ld" = yes; then
10067 version_type=linux
10068 else
10069 version_type=irix
10070 fi ;;
10071 esac
10072 need_lib_prefix=no
10073 need_version=no
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10076 case $host_os in
10077 irix5* | nonstopux*)
10078 libsuff= shlibsuff=
10079 ;;
10080 *)
10081 case $LD in # libtool.m4 will add one of these switches to LD
10082 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10083 libsuff= shlibsuff= libmagic=32-bit;;
10084 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10085 libsuff=32 shlibsuff=N32 libmagic=N32;;
10086 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10087 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10088 *) libsuff= shlibsuff= libmagic=never-match;;
10089 esac
10090 ;;
10091 esac
10092 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10093 shlibpath_overrides_runpath=no
10094 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10095 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10096 hardcode_into_libs=yes
10097 ;;
10098
10099# No shared lib support for Linux oldld, aout, or coff.
10100linux*oldld* | linux*aout* | linux*coff*)
10101 dynamic_linker=no
10102 ;;
10103
10104# This must be Linux ELF.
e9085da5
MR
10105
10106# uclinux* changes (here and below) have been submitted to the libtool
10107# project, but have not yet been accepted: they are GCC-local changes
10108# for the time being. (See
10109# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10110linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
1ec601bf
FXC
10111 version_type=linux
10112 need_lib_prefix=no
10113 need_version=no
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 shlibpath_overrides_runpath=no
10119
10120 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10121 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
1ec601bf
FXC
10122 $as_echo_n "(cached) " >&6
10123else
10124 lt_cv_shlibpath_overrides_runpath=no
10125 save_LDFLAGS=$LDFLAGS
10126 save_libdir=$libdir
10127 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10128 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
fabfcf5e 10129 if test x$gcc_no_link = xyes; then
22e05272 10130 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e
KT
10131fi
10132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
10133/* end confdefs.h. */
10134
10135int
10136main ()
10137{
10138
10139 ;
10140 return 0;
10141}
10142_ACEOF
10143if ac_fn_c_try_link "$LINENO"; then :
10144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10145 lt_cv_shlibpath_overrides_runpath=yes
10146fi
10147fi
10148rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 LDFLAGS=$save_LDFLAGS
10151 libdir=$save_libdir
10152
10153fi
10154
10155 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10156
10157 # This implies no fast_install, which is unacceptable.
10158 # Some rework will be needed to allow for fast_install
10159 # before this can be enabled.
10160 hardcode_into_libs=yes
10161
10162 # Append ld.so.conf contents to the search path
10163 if test -f /etc/ld.so.conf; then
10164 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' ' '`
10165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10166 fi
10167
10168 # We used to test for /lib/ld.so.1 and disable shared libraries on
10169 # powerpc, because MkLinux only supported shared libraries with the
10170 # GNU dynamic linker. Since this was broken with cross compilers,
10171 # most powerpc-linux boxes support dynamic linking these days and
10172 # people can always --disable-shared, the test was removed, and we
10173 # assume the GNU/Linux dynamic linker is in use.
10174 dynamic_linker='GNU/Linux ld.so'
10175 ;;
10176
10177netbsd*)
10178 version_type=sunos
10179 need_lib_prefix=no
10180 need_version=no
10181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10184 dynamic_linker='NetBSD (a.out) ld.so'
10185 else
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 dynamic_linker='NetBSD ld.elf_so'
10189 fi
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=yes
10192 hardcode_into_libs=yes
10193 ;;
10194
10195newsos6)
10196 version_type=linux
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=yes
10200 ;;
10201
10202*nto* | *qnx*)
10203 version_type=qnx
10204 need_lib_prefix=no
10205 need_version=no
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 shlibpath_overrides_runpath=no
10210 hardcode_into_libs=yes
10211 dynamic_linker='ldqnx.so'
10212 ;;
10213
10214openbsd*)
10215 version_type=sunos
10216 sys_lib_dlsearch_path_spec="/usr/lib"
10217 need_lib_prefix=no
10218 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10219 case $host_os in
10220 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10221 *) need_version=no ;;
10222 esac
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10227 case $host_os in
10228 openbsd2.[89] | openbsd2.[89].*)
10229 shlibpath_overrides_runpath=no
10230 ;;
10231 *)
10232 shlibpath_overrides_runpath=yes
10233 ;;
10234 esac
10235 else
10236 shlibpath_overrides_runpath=yes
10237 fi
10238 ;;
10239
10240os2*)
10241 libname_spec='$name'
10242 shrext_cmds=".dll"
10243 need_lib_prefix=no
10244 library_names_spec='$libname${shared_ext} $libname.a'
10245 dynamic_linker='OS/2 ld.exe'
10246 shlibpath_var=LIBPATH
10247 ;;
10248
10249osf3* | osf4* | osf5*)
10250 version_type=osf
10251 need_lib_prefix=no
10252 need_version=no
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10258 ;;
10259
10260rdos*)
10261 dynamic_linker=no
10262 ;;
10263
10264solaris*)
10265 version_type=linux
10266 need_lib_prefix=no
10267 need_version=no
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269 soname_spec='${libname}${release}${shared_ext}$major'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 shlibpath_overrides_runpath=yes
10272 hardcode_into_libs=yes
10273 # ldd complains unless libraries are executable
10274 postinstall_cmds='chmod +x $lib'
10275 ;;
10276
10277sunos4*)
10278 version_type=sunos
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 shlibpath_overrides_runpath=yes
10283 if test "$with_gnu_ld" = yes; then
10284 need_lib_prefix=no
10285 fi
10286 need_version=yes
10287 ;;
10288
10289sysv4 | sysv4.3*)
10290 version_type=linux
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 case $host_vendor in
10295 sni)
10296 shlibpath_overrides_runpath=no
10297 need_lib_prefix=no
10298 runpath_var=LD_RUN_PATH
10299 ;;
10300 siemens)
10301 need_lib_prefix=no
10302 ;;
10303 motorola)
10304 need_lib_prefix=no
10305 need_version=no
10306 shlibpath_overrides_runpath=no
10307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10308 ;;
10309 esac
10310 ;;
10311
10312sysv4*MP*)
10313 if test -d /usr/nec ;then
10314 version_type=linux
10315 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10316 soname_spec='$libname${shared_ext}.$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 fi
10319 ;;
10320
10321sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10322 version_type=freebsd-elf
10323 need_lib_prefix=no
10324 need_version=no
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 shlibpath_overrides_runpath=yes
10329 hardcode_into_libs=yes
10330 if test "$with_gnu_ld" = yes; then
10331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10332 else
10333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10334 case $host_os in
10335 sco3.2v5*)
10336 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10337 ;;
10338 esac
10339 fi
10340 sys_lib_dlsearch_path_spec='/usr/lib'
10341 ;;
10342
10343tpf*)
10344 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10345 version_type=linux
10346 need_lib_prefix=no
10347 need_version=no
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=no
10351 hardcode_into_libs=yes
10352 ;;
10353
10354uts4*)
10355 version_type=linux
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 ;;
10360
10361*)
10362 dynamic_linker=no
10363 ;;
10364esac
10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10366$as_echo "$dynamic_linker" >&6; }
10367test "$dynamic_linker" = no && can_build_shared=no
10368
10369variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10370if test "$GCC" = yes; then
10371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10372fi
10373
10374if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10375 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10376fi
10377if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10378 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10379fi
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10473$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10474hardcode_action=
10475if test -n "$hardcode_libdir_flag_spec" ||
10476 test -n "$runpath_var" ||
10477 test "X$hardcode_automatic" = "Xyes" ; then
10478
10479 # We can hardcode non-existent directories.
10480 if test "$hardcode_direct" != no &&
10481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10482 # have to relink, otherwise we might link with an installed library
10483 # when we should be linking with a yet-to-be-installed one
10484 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10485 test "$hardcode_minus_L" != no; then
10486 # Linking always hardcodes the temporary library directory.
10487 hardcode_action=relink
10488 else
10489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10490 hardcode_action=immediate
10491 fi
10492else
10493 # We cannot hardcode anything, or else we can only hardcode existing
10494 # directories.
10495 hardcode_action=unsupported
10496fi
10497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10498$as_echo "$hardcode_action" >&6; }
10499
10500if test "$hardcode_action" = relink ||
10501 test "$inherit_rpath" = yes; then
10502 # Fast installation is not supported
10503 enable_fast_install=no
10504elif test "$shlibpath_overrides_runpath" = yes ||
10505 test "$enable_shared" = no; then
10506 # Fast installation is not necessary
10507 enable_fast_install=needless
10508fi
10509
10510
10511
10512
10513
10514
10515 if test "x$enable_dlopen" != xyes; then
10516 enable_dlopen=unknown
10517 enable_dlopen_self=unknown
10518 enable_dlopen_self_static=unknown
10519else
10520 lt_cv_dlopen=no
10521 lt_cv_dlopen_libs=
10522
10523 case $host_os in
10524 beos*)
10525 lt_cv_dlopen="load_add_on"
10526 lt_cv_dlopen_libs=
10527 lt_cv_dlopen_self=yes
10528 ;;
10529
10530 mingw* | pw32* | cegcc*)
10531 lt_cv_dlopen="LoadLibrary"
10532 lt_cv_dlopen_libs=
10533 ;;
10534
10535 cygwin*)
10536 lt_cv_dlopen="dlopen"
10537 lt_cv_dlopen_libs=
10538 ;;
10539
10540 darwin*)
10541 # if libdl is installed we need to link against it
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10543$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 10544if ${ac_cv_lib_dl_dlopen+:} false; then :
1ec601bf
FXC
10545 $as_echo_n "(cached) " >&6
10546else
10547 ac_check_lib_save_LIBS=$LIBS
10548LIBS="-ldl $LIBS"
fabfcf5e 10549if test x$gcc_no_link = xyes; then
22e05272 10550 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e 10551fi
1ec601bf
FXC
10552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553/* end confdefs.h. */
10554
10555/* Override any GCC internal prototype to avoid an error.
10556 Use char because int might match the return type of a GCC
10557 builtin and then its argument prototype would still apply. */
10558#ifdef __cplusplus
10559extern "C"
10560#endif
10561char dlopen ();
10562int
10563main ()
10564{
10565return dlopen ();
10566 ;
10567 return 0;
10568}
10569_ACEOF
10570if ac_fn_c_try_link "$LINENO"; then :
10571 ac_cv_lib_dl_dlopen=yes
10572else
10573 ac_cv_lib_dl_dlopen=no
10574fi
10575rm -f core conftest.err conftest.$ac_objext \
10576 conftest$ac_exeext conftest.$ac_ext
10577LIBS=$ac_check_lib_save_LIBS
10578fi
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10580$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 10581if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1ec601bf
FXC
10582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10583else
10584
10585 lt_cv_dlopen="dyld"
10586 lt_cv_dlopen_libs=
10587 lt_cv_dlopen_self=yes
10588
10589fi
10590
10591 ;;
10592
10593 *)
10594 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 10595if test "x$ac_cv_func_shl_load" = xyes; then :
1ec601bf
FXC
10596 lt_cv_dlopen="shl_load"
10597else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10599$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 10600if ${ac_cv_lib_dld_shl_load+:} false; then :
1ec601bf
FXC
10601 $as_echo_n "(cached) " >&6
10602else
10603 ac_check_lib_save_LIBS=$LIBS
10604LIBS="-ldld $LIBS"
fabfcf5e 10605if test x$gcc_no_link = xyes; then
22e05272 10606 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e 10607fi
1ec601bf
FXC
10608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609/* end confdefs.h. */
10610
10611/* Override any GCC internal prototype to avoid an error.
10612 Use char because int might match the return type of a GCC
10613 builtin and then its argument prototype would still apply. */
10614#ifdef __cplusplus
10615extern "C"
10616#endif
10617char shl_load ();
10618int
10619main ()
10620{
10621return shl_load ();
10622 ;
10623 return 0;
10624}
10625_ACEOF
10626if ac_fn_c_try_link "$LINENO"; then :
10627 ac_cv_lib_dld_shl_load=yes
10628else
10629 ac_cv_lib_dld_shl_load=no
10630fi
10631rm -f core conftest.err conftest.$ac_objext \
10632 conftest$ac_exeext conftest.$ac_ext
10633LIBS=$ac_check_lib_save_LIBS
10634fi
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10636$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 10637if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1ec601bf
FXC
10638 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10639else
10640 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 10641if test "x$ac_cv_func_dlopen" = xyes; then :
1ec601bf
FXC
10642 lt_cv_dlopen="dlopen"
10643else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10645$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 10646if ${ac_cv_lib_dl_dlopen+:} false; then :
1ec601bf
FXC
10647 $as_echo_n "(cached) " >&6
10648else
10649 ac_check_lib_save_LIBS=$LIBS
10650LIBS="-ldl $LIBS"
fabfcf5e 10651if test x$gcc_no_link = xyes; then
22e05272 10652 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e 10653fi
1ec601bf
FXC
10654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655/* end confdefs.h. */
10656
10657/* Override any GCC internal prototype to avoid an error.
10658 Use char because int might match the return type of a GCC
10659 builtin and then its argument prototype would still apply. */
10660#ifdef __cplusplus
10661extern "C"
10662#endif
10663char dlopen ();
10664int
10665main ()
10666{
10667return dlopen ();
10668 ;
10669 return 0;
10670}
10671_ACEOF
10672if ac_fn_c_try_link "$LINENO"; then :
10673 ac_cv_lib_dl_dlopen=yes
10674else
10675 ac_cv_lib_dl_dlopen=no
10676fi
10677rm -f core conftest.err conftest.$ac_objext \
10678 conftest$ac_exeext conftest.$ac_ext
10679LIBS=$ac_check_lib_save_LIBS
10680fi
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10682$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 10683if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1ec601bf
FXC
10684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10685else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10687$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 10688if ${ac_cv_lib_svld_dlopen+:} false; then :
1ec601bf
FXC
10689 $as_echo_n "(cached) " >&6
10690else
10691 ac_check_lib_save_LIBS=$LIBS
10692LIBS="-lsvld $LIBS"
fabfcf5e 10693if test x$gcc_no_link = xyes; then
22e05272 10694 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e 10695fi
1ec601bf
FXC
10696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697/* end confdefs.h. */
10698
10699/* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10702#ifdef __cplusplus
10703extern "C"
10704#endif
10705char dlopen ();
10706int
10707main ()
10708{
10709return dlopen ();
10710 ;
10711 return 0;
10712}
10713_ACEOF
10714if ac_fn_c_try_link "$LINENO"; then :
10715 ac_cv_lib_svld_dlopen=yes
10716else
10717 ac_cv_lib_svld_dlopen=no
10718fi
10719rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721LIBS=$ac_check_lib_save_LIBS
10722fi
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10724$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 10725if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1ec601bf
FXC
10726 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10727else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10729$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 10730if ${ac_cv_lib_dld_dld_link+:} false; then :
1ec601bf
FXC
10731 $as_echo_n "(cached) " >&6
10732else
10733 ac_check_lib_save_LIBS=$LIBS
10734LIBS="-ldld $LIBS"
fabfcf5e 10735if test x$gcc_no_link = xyes; then
22e05272 10736 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e 10737fi
1ec601bf
FXC
10738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739/* end confdefs.h. */
10740
10741/* Override any GCC internal prototype to avoid an error.
10742 Use char because int might match the return type of a GCC
10743 builtin and then its argument prototype would still apply. */
10744#ifdef __cplusplus
10745extern "C"
10746#endif
10747char dld_link ();
10748int
10749main ()
10750{
10751return dld_link ();
10752 ;
10753 return 0;
10754}
10755_ACEOF
10756if ac_fn_c_try_link "$LINENO"; then :
10757 ac_cv_lib_dld_dld_link=yes
10758else
10759 ac_cv_lib_dld_dld_link=no
10760fi
10761rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763LIBS=$ac_check_lib_save_LIBS
10764fi
10765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10766$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 10767if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1ec601bf
FXC
10768 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10769fi
10770
10771
10772fi
10773
10774
10775fi
10776
10777
10778fi
10779
10780
10781fi
10782
10783
10784fi
10785
10786 ;;
10787 esac
10788
10789 if test "x$lt_cv_dlopen" != xno; then
10790 enable_dlopen=yes
10791 else
10792 enable_dlopen=no
10793 fi
10794
10795 case $lt_cv_dlopen in
10796 dlopen)
10797 save_CPPFLAGS="$CPPFLAGS"
10798 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10799
10800 save_LDFLAGS="$LDFLAGS"
10801 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10802
10803 save_LIBS="$LIBS"
10804 LIBS="$lt_cv_dlopen_libs $LIBS"
10805
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10807$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 10808if ${lt_cv_dlopen_self+:} false; then :
1ec601bf
FXC
10809 $as_echo_n "(cached) " >&6
10810else
10811 if test "$cross_compiling" = yes; then :
10812 lt_cv_dlopen_self=cross
10813else
10814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10815 lt_status=$lt_dlunknown
10816 cat > conftest.$ac_ext <<_LT_EOF
e8e66971 10817#line 10817 "configure"
1ec601bf
FXC
10818#include "confdefs.h"
10819
10820#if HAVE_DLFCN_H
10821#include <dlfcn.h>
10822#endif
10823
10824#include <stdio.h>
10825
10826#ifdef RTLD_GLOBAL
10827# define LT_DLGLOBAL RTLD_GLOBAL
10828#else
10829# ifdef DL_GLOBAL
10830# define LT_DLGLOBAL DL_GLOBAL
10831# else
10832# define LT_DLGLOBAL 0
10833# endif
10834#endif
10835
10836/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10837 find out it does not work in some platform. */
10838#ifndef LT_DLLAZY_OR_NOW
10839# ifdef RTLD_LAZY
10840# define LT_DLLAZY_OR_NOW RTLD_LAZY
10841# else
10842# ifdef DL_LAZY
10843# define LT_DLLAZY_OR_NOW DL_LAZY
10844# else
10845# ifdef RTLD_NOW
10846# define LT_DLLAZY_OR_NOW RTLD_NOW
10847# else
10848# ifdef DL_NOW
10849# define LT_DLLAZY_OR_NOW DL_NOW
10850# else
10851# define LT_DLLAZY_OR_NOW 0
10852# endif
10853# endif
10854# endif
10855# endif
10856#endif
10857
10858/* When -fvisbility=hidden is used, assume the code has been annotated
10859 correspondingly for the symbols needed. */
10860#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10861void fnord () __attribute__((visibility("default")));
10862#endif
10863
10864void fnord () { int i=42; }
10865int main ()
10866{
10867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10868 int status = $lt_dlunknown;
10869
10870 if (self)
10871 {
10872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10873 else
10874 {
10875 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10876 else puts (dlerror ());
10877 }
10878 /* dlclose (self); */
10879 }
10880 else
10881 puts (dlerror ());
10882
10883 return status;
10884}
10885_LT_EOF
10886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10887 (eval $ac_link) 2>&5
10888 ac_status=$?
10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10891 (./conftest; exit; ) >&5 2>/dev/null
10892 lt_status=$?
10893 case x$lt_status in
10894 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10895 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10896 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10897 esac
10898 else :
10899 # compilation failed
10900 lt_cv_dlopen_self=no
10901 fi
10902fi
10903rm -fr conftest*
10904
10905
10906fi
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10908$as_echo "$lt_cv_dlopen_self" >&6; }
10909
10910 if test "x$lt_cv_dlopen_self" = xyes; then
10911 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10913$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 10914if ${lt_cv_dlopen_self_static+:} false; then :
1ec601bf
FXC
10915 $as_echo_n "(cached) " >&6
10916else
10917 if test "$cross_compiling" = yes; then :
10918 lt_cv_dlopen_self_static=cross
10919else
10920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10921 lt_status=$lt_dlunknown
10922 cat > conftest.$ac_ext <<_LT_EOF
e8e66971 10923#line 10923 "configure"
1ec601bf
FXC
10924#include "confdefs.h"
10925
10926#if HAVE_DLFCN_H
10927#include <dlfcn.h>
10928#endif
10929
10930#include <stdio.h>
10931
10932#ifdef RTLD_GLOBAL
10933# define LT_DLGLOBAL RTLD_GLOBAL
10934#else
10935# ifdef DL_GLOBAL
10936# define LT_DLGLOBAL DL_GLOBAL
10937# else
10938# define LT_DLGLOBAL 0
10939# endif
10940#endif
10941
10942/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10943 find out it does not work in some platform. */
10944#ifndef LT_DLLAZY_OR_NOW
10945# ifdef RTLD_LAZY
10946# define LT_DLLAZY_OR_NOW RTLD_LAZY
10947# else
10948# ifdef DL_LAZY
10949# define LT_DLLAZY_OR_NOW DL_LAZY
10950# else
10951# ifdef RTLD_NOW
10952# define LT_DLLAZY_OR_NOW RTLD_NOW
10953# else
10954# ifdef DL_NOW
10955# define LT_DLLAZY_OR_NOW DL_NOW
10956# else
10957# define LT_DLLAZY_OR_NOW 0
10958# endif
10959# endif
10960# endif
10961# endif
10962#endif
10963
10964/* When -fvisbility=hidden is used, assume the code has been annotated
10965 correspondingly for the symbols needed. */
10966#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10967void fnord () __attribute__((visibility("default")));
10968#endif
10969
10970void fnord () { int i=42; }
10971int main ()
10972{
10973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10974 int status = $lt_dlunknown;
10975
10976 if (self)
10977 {
10978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10979 else
10980 {
10981 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10982 else puts (dlerror ());
10983 }
10984 /* dlclose (self); */
10985 }
10986 else
10987 puts (dlerror ());
10988
10989 return status;
10990}
10991_LT_EOF
10992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10993 (eval $ac_link) 2>&5
10994 ac_status=$?
10995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10996 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10997 (./conftest; exit; ) >&5 2>/dev/null
10998 lt_status=$?
10999 case x$lt_status in
11000 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11001 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11002 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11003 esac
11004 else :
11005 # compilation failed
11006 lt_cv_dlopen_self_static=no
11007 fi
11008fi
11009rm -fr conftest*
11010
11011
11012fi
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11014$as_echo "$lt_cv_dlopen_self_static" >&6; }
11015 fi
11016
11017 CPPFLAGS="$save_CPPFLAGS"
11018 LDFLAGS="$save_LDFLAGS"
11019 LIBS="$save_LIBS"
11020 ;;
11021 esac
11022
11023 case $lt_cv_dlopen_self in
11024 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11025 *) enable_dlopen_self=unknown ;;
11026 esac
11027
11028 case $lt_cv_dlopen_self_static in
11029 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11030 *) enable_dlopen_self_static=unknown ;;
11031 esac
11032fi
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050striplib=
11051old_striplib=
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11053$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11054if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11055 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11056 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11058$as_echo "yes" >&6; }
11059else
11060# FIXME - insert some real tests, host_os isn't really good enough
11061 case $host_os in
11062 darwin*)
11063 if test -n "$STRIP" ; then
11064 striplib="$STRIP -x"
11065 old_striplib="$STRIP -S"
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11067$as_echo "yes" >&6; }
11068 else
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070$as_echo "no" >&6; }
11071 fi
11072 ;;
11073 *)
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075$as_echo "no" >&6; }
11076 ;;
11077 esac
11078fi
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091 # Report which library types will actually be built
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11093$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11095$as_echo "$can_build_shared" >&6; }
11096
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11098$as_echo_n "checking whether to build shared libraries... " >&6; }
11099 test "$can_build_shared" = "no" && enable_shared=no
11100
11101 # On AIX, shared libraries and static libraries use the same namespace, and
11102 # are all built from PIC.
11103 case $host_os in
11104 aix3*)
11105 test "$enable_shared" = yes && enable_static=no
11106 if test -n "$RANLIB"; then
11107 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11108 postinstall_cmds='$RANLIB $lib'
11109 fi
fabfcf5e
KT
11110 ;;
11111
11112 aix[4-9]*)
11113 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11114 test "$enable_shared" = yes && enable_static=no
11115 fi
11116 ;;
11117 esac
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11119$as_echo "$enable_shared" >&6; }
11120
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11122$as_echo_n "checking whether to build static libraries... " >&6; }
11123 # Make sure either enable_shared or enable_static is yes.
11124 test "$enable_shared" = yes || enable_static=yes
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11126$as_echo "$enable_static" >&6; }
11127
11128
11129
11130
11131fi
11132ac_ext=c
11133ac_cpp='$CPP $CPPFLAGS'
11134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11136ac_compiler_gnu=$ac_cv_c_compiler_gnu
11137
11138CC="$lt_save_CC"
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152 ac_config_commands="$ac_config_commands libtool"
11153
11154
11155
11156
11157# Only expand once:
11158
11159
11160
11161
11162
7de6ba7a
DK
11163case $host in
11164 *-cygwin* | *-mingw*)
11165 # 'host' will be top-level target in the case of a target lib,
11166 # we must compare to with_cross_host to decide if this is a native
11167 # or cross-compiler and select where to install dlls appropriately.
11168 if test -n "$with_cross_host" &&
11169 test x"$with_cross_host" != x"no"; then
11170 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11171 else
11172 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11173 fi
11174 ;;
11175 *)
11176 lt_host_flags=
11177 ;;
11178esac
11179
11180
11181
11182
11183
11184
fabfcf5e
KT
11185
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11187$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11188 # Check whether --enable-maintainer-mode was given.
11189if test "${enable_maintainer_mode+set}" = set; then :
11190 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11191else
11192 USE_MAINTAINER_MODE=no
11193fi
11194
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11196$as_echo "$USE_MAINTAINER_MODE" >&6; }
11197 if test $USE_MAINTAINER_MODE = yes; then
11198 MAINTAINER_MODE_TRUE=
11199 MAINTAINER_MODE_FALSE='#'
11200else
11201 MAINTAINER_MODE_TRUE='#'
11202 MAINTAINER_MODE_FALSE=
11203fi
11204
11205 MAINT=$MAINTAINER_MODE_TRUE
11206
11207
fabfcf5e
KT
11208
11209ac_ext=c
11210ac_cpp='$CPP $CPPFLAGS'
11211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213ac_compiler_gnu=$ac_cv_c_compiler_gnu
11214
11215# The same as in boehm-gc and libstdc++. Have to borrow it from there.
11216# We must force CC to /not/ be precious variables; otherwise
11217# the wrong, non-multilib-adjusted value will be used in multilibs.
11218# As a side effect, we have to subst CFLAGS ourselves.
11219
11220
11221
11222ac_ext=c
11223ac_cpp='$CPP $CPPFLAGS'
11224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11226ac_compiler_gnu=$ac_cv_c_compiler_gnu
11227if test -n "$ac_tool_prefix"; then
11228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11229set dummy ${ac_tool_prefix}gcc; ac_word=$2
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11231$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11232if ${ac_cv_prog_CC+:} false; then :
fabfcf5e
KT
11233 $as_echo_n "(cached) " >&6
11234else
11235 if test -n "$CC"; then
11236 ac_cv_prog_CC="$CC" # Let the user override the test.
11237else
11238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239for as_dir in $PATH
11240do
11241 IFS=$as_save_IFS
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fabfcf5e
KT
11245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11247 break 2
11248 fi
11249done
11250 done
11251IFS=$as_save_IFS
11252
11253fi
11254fi
11255CC=$ac_cv_prog_CC
11256if test -n "$CC"; then
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11258$as_echo "$CC" >&6; }
11259else
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261$as_echo "no" >&6; }
11262fi
11263
11264
11265fi
11266if test -z "$ac_cv_prog_CC"; then
11267 ac_ct_CC=$CC
11268 # Extract the first word of "gcc", so it can be a program name with args.
11269set dummy gcc; ac_word=$2
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11271$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11272if ${ac_cv_prog_ac_ct_CC+:} false; then :
fabfcf5e
KT
11273 $as_echo_n "(cached) " >&6
11274else
11275 if test -n "$ac_ct_CC"; then
11276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11277else
11278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279for as_dir in $PATH
11280do
11281 IFS=$as_save_IFS
11282 test -z "$as_dir" && as_dir=.
11283 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fabfcf5e
KT
11285 ac_cv_prog_ac_ct_CC="gcc"
11286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 break 2
11288 fi
11289done
11290 done
11291IFS=$as_save_IFS
11292
11293fi
11294fi
11295ac_ct_CC=$ac_cv_prog_ac_ct_CC
11296if test -n "$ac_ct_CC"; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11298$as_echo "$ac_ct_CC" >&6; }
11299else
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301$as_echo "no" >&6; }
11302fi
11303
11304 if test "x$ac_ct_CC" = x; then
11305 CC=""
11306 else
11307 case $cross_compiling:$ac_tool_warned in
11308yes:)
11309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11311ac_tool_warned=yes ;;
11312esac
11313 CC=$ac_ct_CC
11314 fi
11315else
11316 CC="$ac_cv_prog_CC"
11317fi
11318
11319if test -z "$CC"; then
11320 if test -n "$ac_tool_prefix"; then
11321 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11322set dummy ${ac_tool_prefix}cc; ac_word=$2
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11325if ${ac_cv_prog_CC+:} false; then :
fabfcf5e
KT
11326 $as_echo_n "(cached) " >&6
11327else
11328 if test -n "$CC"; then
11329 ac_cv_prog_CC="$CC" # Let the user override the test.
11330else
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fabfcf5e
KT
11338 ac_cv_prog_CC="${ac_tool_prefix}cc"
11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 break 2
11341 fi
11342done
11343 done
11344IFS=$as_save_IFS
11345
11346fi
11347fi
11348CC=$ac_cv_prog_CC
11349if test -n "$CC"; then
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11351$as_echo "$CC" >&6; }
11352else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
11355fi
11356
11357
11358 fi
11359fi
11360if test -z "$CC"; then
11361 # Extract the first word of "cc", so it can be a program name with args.
11362set dummy cc; ac_word=$2
11363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11364$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11365if ${ac_cv_prog_CC+:} false; then :
fabfcf5e
KT
11366 $as_echo_n "(cached) " >&6
11367else
11368 if test -n "$CC"; then
11369 ac_cv_prog_CC="$CC" # Let the user override the test.
11370else
11371 ac_prog_rejected=no
11372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373for as_dir in $PATH
11374do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
11377 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fabfcf5e
KT
11379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11380 ac_prog_rejected=yes
11381 continue
11382 fi
11383 ac_cv_prog_CC="cc"
11384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 break 2
11386 fi
11387done
11388 done
11389IFS=$as_save_IFS
11390
11391if test $ac_prog_rejected = yes; then
11392 # We found a bogon in the path, so make sure we never use it.
11393 set dummy $ac_cv_prog_CC
11394 shift
11395 if test $# != 0; then
11396 # We chose a different compiler from the bogus one.
11397 # However, it has the same basename, so the bogon will be chosen
11398 # first if we set CC to just the basename; use the full file name.
11399 shift
11400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11401 fi
11402fi
11403fi
11404fi
11405CC=$ac_cv_prog_CC
11406if test -n "$CC"; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11408$as_echo "$CC" >&6; }
11409else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411$as_echo "no" >&6; }
11412fi
11413
11414
11415fi
11416if test -z "$CC"; then
11417 if test -n "$ac_tool_prefix"; then
11418 for ac_prog in cl.exe
11419 do
11420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11424if ${ac_cv_prog_CC+:} false; then :
fabfcf5e
KT
11425 $as_echo_n "(cached) " >&6
11426else
11427 if test -n "$CC"; then
11428 ac_cv_prog_CC="$CC" # Let the user override the test.
11429else
11430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431for as_dir in $PATH
11432do
11433 IFS=$as_save_IFS
11434 test -z "$as_dir" && as_dir=.
11435 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fabfcf5e
KT
11437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11439 break 2
11440 fi
11441done
11442 done
11443IFS=$as_save_IFS
11444
11445fi
11446fi
11447CC=$ac_cv_prog_CC
11448if test -n "$CC"; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11450$as_echo "$CC" >&6; }
11451else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
11454fi
11455
11456
11457 test -n "$CC" && break
11458 done
11459fi
11460if test -z "$CC"; then
11461 ac_ct_CC=$CC
11462 for ac_prog in cl.exe
11463do
11464 # Extract the first word of "$ac_prog", so it can be a program name with args.
11465set dummy $ac_prog; ac_word=$2
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11468if ${ac_cv_prog_ac_ct_CC+:} false; then :
fabfcf5e
KT
11469 $as_echo_n "(cached) " >&6
11470else
11471 if test -n "$ac_ct_CC"; then
11472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11473else
11474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475for as_dir in $PATH
11476do
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fabfcf5e
KT
11481 ac_cv_prog_ac_ct_CC="$ac_prog"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 break 2
11484 fi
11485done
11486 done
11487IFS=$as_save_IFS
11488
11489fi
11490fi
11491ac_ct_CC=$ac_cv_prog_ac_ct_CC
11492if test -n "$ac_ct_CC"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11494$as_echo "$ac_ct_CC" >&6; }
11495else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497$as_echo "no" >&6; }
11498fi
11499
11500
11501 test -n "$ac_ct_CC" && break
11502done
11503
11504 if test "x$ac_ct_CC" = x; then
11505 CC=""
11506 else
11507 case $cross_compiling:$ac_tool_warned in
11508yes:)
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11511ac_tool_warned=yes ;;
11512esac
11513 CC=$ac_ct_CC
11514 fi
11515fi
11516
11517fi
11518
11519
11520test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
11522as_fn_error $? "no acceptable C compiler found in \$PATH
11523See \`config.log' for more details" "$LINENO" 5; }
fabfcf5e
KT
11524
11525# Provide some information about the compiler.
11526$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11527set X $ac_compile
11528ac_compiler=$2
11529for ac_option in --version -v -V -qversion; do
11530 { { ac_try="$ac_compiler $ac_option >&5"
11531case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11534esac
11535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11536$as_echo "$ac_try_echo"; } >&5
11537 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11538 ac_status=$?
11539 if test -s conftest.err; then
11540 sed '10a\
11541... rest of stderr output deleted ...
11542 10q' conftest.err >conftest.er1
11543 cat conftest.er1 >&5
fabfcf5e 11544 fi
22e05272 11545 rm -f conftest.er1 conftest.err
fabfcf5e
KT
11546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11547 test $ac_status = 0; }
11548done
11549
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11551$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 11552if ${ac_cv_c_compiler_gnu+:} false; then :
fabfcf5e
KT
11553 $as_echo_n "(cached) " >&6
11554else
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556/* end confdefs.h. */
11557
11558int
11559main ()
11560{
11561#ifndef __GNUC__
11562 choke me
11563#endif
11564
11565 ;
11566 return 0;
11567}
11568_ACEOF
11569if ac_fn_c_try_compile "$LINENO"; then :
11570 ac_compiler_gnu=yes
11571else
11572 ac_compiler_gnu=no
11573fi
11574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575ac_cv_c_compiler_gnu=$ac_compiler_gnu
11576
11577fi
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11579$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11580if test $ac_compiler_gnu = yes; then
11581 GCC=yes
11582else
11583 GCC=
11584fi
11585ac_test_CFLAGS=${CFLAGS+set}
11586ac_save_CFLAGS=$CFLAGS
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11588$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 11589if ${ac_cv_prog_cc_g+:} false; then :
fabfcf5e
KT
11590 $as_echo_n "(cached) " >&6
11591else
11592 ac_save_c_werror_flag=$ac_c_werror_flag
11593 ac_c_werror_flag=yes
11594 ac_cv_prog_cc_g=no
11595 CFLAGS="-g"
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h. */
11598
11599int
11600main ()
11601{
11602
11603 ;
11604 return 0;
11605}
11606_ACEOF
11607if ac_fn_c_try_compile "$LINENO"; then :
11608 ac_cv_prog_cc_g=yes
11609else
11610 CFLAGS=""
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612/* end confdefs.h. */
11613
11614int
11615main ()
11616{
11617
11618 ;
11619 return 0;
11620}
11621_ACEOF
11622if ac_fn_c_try_compile "$LINENO"; then :
11623
11624else
11625 ac_c_werror_flag=$ac_save_c_werror_flag
11626 CFLAGS="-g"
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628/* end confdefs.h. */
11629
11630int
11631main ()
11632{
11633
11634 ;
11635 return 0;
11636}
11637_ACEOF
11638if ac_fn_c_try_compile "$LINENO"; then :
11639 ac_cv_prog_cc_g=yes
11640fi
11641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642fi
11643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644fi
11645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11646 ac_c_werror_flag=$ac_save_c_werror_flag
11647fi
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11649$as_echo "$ac_cv_prog_cc_g" >&6; }
11650if test "$ac_test_CFLAGS" = set; then
11651 CFLAGS=$ac_save_CFLAGS
11652elif test $ac_cv_prog_cc_g = yes; then
11653 if test "$GCC" = yes; then
11654 CFLAGS="-g -O2"
11655 else
11656 CFLAGS="-g"
11657 fi
11658else
11659 if test "$GCC" = yes; then
11660 CFLAGS="-O2"
11661 else
11662 CFLAGS=
11663 fi
11664fi
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11666$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 11667if ${ac_cv_prog_cc_c89+:} false; then :
fabfcf5e
KT
11668 $as_echo_n "(cached) " >&6
11669else
11670 ac_cv_prog_cc_c89=no
11671ac_save_CC=$CC
11672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673/* end confdefs.h. */
11674#include <stdarg.h>
11675#include <stdio.h>
22e05272 11676struct stat;
fabfcf5e
KT
11677/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11678struct buf { int x; };
11679FILE * (*rcsopen) (struct buf *, struct stat *, int);
11680static char *e (p, i)
11681 char **p;
11682 int i;
11683{
11684 return p[i];
11685}
11686static char *f (char * (*g) (char **, int), char **p, ...)
11687{
11688 char *s;
11689 va_list v;
11690 va_start (v,p);
11691 s = g (p, va_arg (v,int));
11692 va_end (v);
11693 return s;
11694}
11695
11696/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11697 function prototypes and stuff, but not '\xHH' hex character constants.
11698 These don't provoke an error unfortunately, instead are silently treated
11699 as 'x'. The following induces an error, until -std is added to get
11700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11701 array size at least. It's necessary to write '\x00'==0 to get something
11702 that's true only with -std. */
11703int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11704
11705/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11706 inside strings and character constants. */
11707#define FOO(x) 'x'
11708int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11709
11710int test (int i, double x);
11711struct s1 {int (*f) (int a);};
11712struct s2 {int (*f) (double a);};
11713int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11714int argc;
11715char **argv;
11716int
11717main ()
11718{
11719return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11726do
11727 CC="$ac_save_CC $ac_arg"
11728 if ac_fn_c_try_compile "$LINENO"; then :
11729 ac_cv_prog_cc_c89=$ac_arg
11730fi
11731rm -f core conftest.err conftest.$ac_objext
11732 test "x$ac_cv_prog_cc_c89" != "xno" && break
11733done
11734rm -f conftest.$ac_ext
11735CC=$ac_save_CC
11736
11737fi
11738# AC_CACHE_VAL
11739case "x$ac_cv_prog_cc_c89" in
11740 x)
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11742$as_echo "none needed" >&6; } ;;
11743 xno)
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11745$as_echo "unsupported" >&6; } ;;
11746 *)
11747 CC="$CC $ac_cv_prog_cc_c89"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11749$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11750esac
11751if test "x$ac_cv_prog_cc_c89" != xno; then :
11752
11753fi
11754
11755ac_ext=c
11756ac_cpp='$CPP $CPPFLAGS'
11757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760
22e05272
JM
11761ac_ext=c
11762ac_cpp='$CPP $CPPFLAGS'
11763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11765ac_compiler_gnu=$ac_cv_c_compiler_gnu
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11767$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11768if ${am_cv_prog_cc_c_o+:} false; then :
11769 $as_echo_n "(cached) " >&6
11770else
11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772/* end confdefs.h. */
11773
11774int
11775main ()
11776{
11777
11778 ;
11779 return 0;
11780}
11781_ACEOF
11782 # Make sure it works both with $CC and with simple cc.
11783 # Following AC_PROG_CC_C_O, we do the test twice because some
11784 # compilers refuse to overwrite an existing .o file with -o,
11785 # though they will create one.
11786 am_cv_prog_cc_c_o=yes
11787 for am_i in 1 2; do
11788 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
11789 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } \
11793 && test -f conftest2.$ac_objext; then
11794 : OK
11795 else
11796 am_cv_prog_cc_c_o=no
11797 break
11798 fi
11799 done
11800 rm -f core conftest*
11801 unset am_i
11802fi
11803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
11804$as_echo "$am_cv_prog_cc_c_o" >&6; }
11805if test "$am_cv_prog_cc_c_o" != yes; then
11806 # Losing compiler, so override with the script.
11807 # FIXME: It is wrong to rewrite CC.
11808 # But if we don't then we get into trouble of one sort or another.
11809 # A longer-term fix would be to have automake use am__CC in this case,
11810 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11811 CC="$am_aux_dir/compile $CC"
11812fi
11813ac_ext=c
11814ac_cpp='$CPP $CPPFLAGS'
11815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11817ac_compiler_gnu=$ac_cv_c_compiler_gnu
11818
11819
fabfcf5e
KT
11820depcc="$CC" am_compiler_list=
11821
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11823$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 11824if ${am_cv_CC_dependencies_compiler_type+:} false; then :
fabfcf5e
KT
11825 $as_echo_n "(cached) " >&6
11826else
11827 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11828 # We make a subdir and do the tests there. Otherwise we can end up
11829 # making bogus files that we don't know about and never remove. For
11830 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
11831 # making a dummy file named 'D' -- because '-MD' means "put the output
11832 # in D".
5d79f496 11833 rm -rf conftest.dir
fabfcf5e
KT
11834 mkdir conftest.dir
11835 # Copy depcomp to subdir because otherwise we won't find it if we're
11836 # using a relative directory.
11837 cp "$am_depcomp" conftest.dir
11838 cd conftest.dir
11839 # We will build objects and dependencies in a subdirectory because
11840 # it helps to detect inapplicable dependency modes. For instance
11841 # both Tru64's cc and ICC support -MD to output dependencies as a
11842 # side effect of compilation, but ICC will put the dependencies in
11843 # the current directory while Tru64 will put them in the object
11844 # directory.
11845 mkdir sub
11846
11847 am_cv_CC_dependencies_compiler_type=none
11848 if test "$am_compiler_list" = ""; then
11849 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11850 fi
11851 am__universal=false
11852 case " $depcc " in #(
11853 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11854 esac
11855
11856 for depmode in $am_compiler_list; do
11857 # Setup a source with many dependencies, because some compilers
11858 # like to wrap large dependency lists on column 80 (with \), and
11859 # we should not choose a depcomp mode which is confused by this.
11860 #
11861 # We need to recreate these files for each test, as the compiler may
11862 # overwrite some of them when testing with obscure command lines.
11863 # This happens at least with the AIX C compiler.
11864 : > sub/conftest.c
11865 for i in 1 2 3 4 5 6; do
11866 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
11867 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11868 # Solaris 10 /bin/sh.
11869 echo '/* dummy */' > sub/conftst$i.h
fabfcf5e
KT
11870 done
11871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11872
22e05272 11873 # We check with '-c' and '-o' for the sake of the "dashmstdout"
fabfcf5e 11874 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
11875 # handle '-M -o', and we need to detect this. Also, some Intel
11876 # versions had trouble with output in subdirs.
fabfcf5e
KT
11877 am__obj=sub/conftest.${OBJEXT-o}
11878 am__minus_obj="-o $am__obj"
11879 case $depmode in
11880 gcc)
11881 # This depmode causes a compiler race in universal mode.
11882 test "$am__universal" = false || continue
11883 ;;
11884 nosideeffect)
22e05272
JM
11885 # After this tag, mechanisms are not by side-effect, so they'll
11886 # only be used when explicitly requested.
fabfcf5e
KT
11887 if test "x$enable_dependency_tracking" = xyes; then
11888 continue
11889 else
11890 break
11891 fi
11892 ;;
5d79f496 11893 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 11894 # This compiler won't grok '-c -o', but also, the minuso test has
fabfcf5e
KT
11895 # not run yet. These depmodes are late enough in the game, and
11896 # so weak that their functioning should not be impacted.
11897 am__obj=conftest.${OBJEXT-o}
11898 am__minus_obj=
11899 ;;
11900 none) break ;;
11901 esac
11902 if depmode=$depmode \
11903 source=sub/conftest.c object=$am__obj \
11904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11905 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11906 >/dev/null 2>conftest.err &&
11907 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11909 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11911 # icc doesn't choke on unknown options, it will just issue warnings
11912 # or remarks (even with -Werror). So we grep stderr for any message
11913 # that says an option was ignored or not supported.
11914 # When given -MP, icc 7.0 and 7.1 complain thusly:
11915 # icc: Command line warning: ignoring option '-M'; no argument required
11916 # The diagnosis changed in icc 8.0:
11917 # icc: Command line remark: option '-MP' not supported
11918 if (grep 'ignoring option' conftest.err ||
11919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11920 am_cv_CC_dependencies_compiler_type=$depmode
11921 break
11922 fi
11923 fi
11924 done
11925
11926 cd ..
11927 rm -rf conftest.dir
11928else
11929 am_cv_CC_dependencies_compiler_type=none
11930fi
11931
11932fi
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11934$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11935CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11936
11937 if
11938 test "x$enable_dependency_tracking" != xno \
11939 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11940 am__fastdepCC_TRUE=
11941 am__fastdepCC_FALSE='#'
11942else
11943 am__fastdepCC_TRUE='#'
11944 am__fastdepCC_FALSE=
11945fi
11946
11947
11948
11949
11950
11951
1ec601bf
FXC
11952
11953
fabfcf5e 11954if test "x$GCC" != "xyes"; then
22e05272 11955 as_fn_error $? "libquadmath must be built with GCC" "$LINENO" 5
1ec601bf
FXC
11956fi
11957ac_ext=c
11958ac_cpp='$CPP $CPPFLAGS'
11959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961ac_compiler_gnu=$ac_cv_c_compiler_gnu
fabfcf5e
KT
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11963$as_echo_n "checking how to run the C preprocessor... " >&6; }
11964# On Suns, sometimes $CPP names a directory.
11965if test -n "$CPP" && test -d "$CPP"; then
11966 CPP=
11967fi
11968if test -z "$CPP"; then
22e05272 11969 if ${ac_cv_prog_CPP+:} false; then :
fabfcf5e
KT
11970 $as_echo_n "(cached) " >&6
11971else
11972 # Double quotes because CPP needs to be expanded
11973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11974 do
11975 ac_preproc_ok=false
11976for ac_c_preproc_warn_flag in '' yes
11977do
11978 # Use a header file that comes with gcc, so configuring glibc
11979 # with a fresh cross-compiler works.
11980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11981 # <limits.h> exists even on freestanding compilers.
11982 # On the NeXT, cc -E runs the code through the compiler's parser,
11983 # not just through cpp. "Syntax error" is here to catch this case.
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985/* end confdefs.h. */
11986#ifdef __STDC__
11987# include <limits.h>
11988#else
11989# include <assert.h>
11990#endif
11991 Syntax error
11992_ACEOF
11993if ac_fn_c_try_cpp "$LINENO"; then :
1ec601bf 11994
1ec601bf 11995else
fabfcf5e
KT
11996 # Broken: fails on valid input.
11997continue
1ec601bf 11998fi
22e05272 11999rm -f conftest.err conftest.i conftest.$ac_ext
1ec601bf 12000
fabfcf5e
KT
12001 # OK, works on sane cases. Now check whether nonexistent headers
12002 # can be detected and how.
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004/* end confdefs.h. */
12005#include <ac_nonexistent.h>
12006_ACEOF
12007if ac_fn_c_try_cpp "$LINENO"; then :
12008 # Broken: success on invalid input.
12009continue
1ec601bf 12010else
fabfcf5e
KT
12011 # Passes both tests.
12012ac_preproc_ok=:
12013break
1ec601bf 12014fi
22e05272 12015rm -f conftest.err conftest.i conftest.$ac_ext
1ec601bf 12016
fabfcf5e
KT
12017done
12018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12019rm -f conftest.i conftest.err conftest.$ac_ext
fabfcf5e
KT
12020if $ac_preproc_ok; then :
12021 break
12022fi
1ec601bf 12023
fabfcf5e
KT
12024 done
12025 ac_cv_prog_CPP=$CPP
1ec601bf 12026
fabfcf5e
KT
12027fi
12028 CPP=$ac_cv_prog_CPP
1ec601bf 12029else
fabfcf5e 12030 ac_cv_prog_CPP=$CPP
1ec601bf 12031fi
fabfcf5e
KT
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12033$as_echo "$CPP" >&6; }
12034ac_preproc_ok=false
12035for ac_c_preproc_warn_flag in '' yes
12036do
12037 # Use a header file that comes with gcc, so configuring glibc
12038 # with a fresh cross-compiler works.
12039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12040 # <limits.h> exists even on freestanding compilers.
12041 # On the NeXT, cc -E runs the code through the compiler's parser,
12042 # not just through cpp. "Syntax error" is here to catch this case.
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044/* end confdefs.h. */
12045#ifdef __STDC__
12046# include <limits.h>
12047#else
12048# include <assert.h>
12049#endif
12050 Syntax error
12051_ACEOF
12052if ac_fn_c_try_cpp "$LINENO"; then :
1ec601bf 12053
fabfcf5e
KT
12054else
12055 # Broken: fails on valid input.
12056continue
12057fi
22e05272 12058rm -f conftest.err conftest.i conftest.$ac_ext
1ec601bf 12059
fabfcf5e
KT
12060 # OK, works on sane cases. Now check whether nonexistent headers
12061 # can be detected and how.
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063/* end confdefs.h. */
12064#include <ac_nonexistent.h>
12065_ACEOF
12066if ac_fn_c_try_cpp "$LINENO"; then :
12067 # Broken: success on invalid input.
12068continue
1ec601bf 12069else
fabfcf5e
KT
12070 # Passes both tests.
12071ac_preproc_ok=:
12072break
1ec601bf 12073fi
22e05272 12074rm -f conftest.err conftest.i conftest.$ac_ext
1ec601bf 12075
fabfcf5e
KT
12076done
12077# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12078rm -f conftest.i conftest.err conftest.$ac_ext
fabfcf5e 12079if $ac_preproc_ok; then :
1ec601bf 12080
fabfcf5e
KT
12081else
12082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12084as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12085See \`config.log' for more details" "$LINENO" 5; }
1ec601bf
FXC
12086fi
12087
fabfcf5e
KT
12088ac_ext=c
12089ac_cpp='$CPP $CPPFLAGS'
12090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12092ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ec601bf
FXC
12093
12094
e8e66971
MR
12095
12096# Check whether --with-toolexeclibdir was given.
12097if test "${with_toolexeclibdir+set}" = set; then :
12098 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
12099 /)
12100 ;;
12101 */)
12102 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
12103 ;;
12104esac
12105else
12106 with_toolexeclibdir=no
12107fi
12108
12109
12110
1ec601bf
FXC
12111# Calculate toolexeclibdir
12112# Also toolexecdir, though it's only used in toolexeclibdir
12113case ${version_specific_libs} in
12114 yes)
12115 # Need the gcc compiler version to know where to install libraries
12116 # and header files if --enable-version-specific-runtime-libs option
12117 # is selected.
12118 toolexecdir='$(libdir)/gcc/$(target_alias)'
12119 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
12120 ;;
12121 no)
12122 if test -n "$with_cross_host" &&
12123 test x"$with_cross_host" != x"no"; then
12124 # Install a library built with a cross compiler in tooldir, not libdir.
12125 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
12126 case ${with_toolexeclibdir} in
12127 no)
12128 toolexeclibdir='$(toolexecdir)/lib'
12129 ;;
12130 *)
12131 toolexeclibdir=${with_toolexeclibdir}
12132 ;;
12133 esac
1ec601bf
FXC
12134 else
12135 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12136 toolexeclibdir='$(libdir)'
12137 fi
12138 multi_os_directory=`$CC -print-multi-os-directory`
12139 case $multi_os_directory in
12140 .) ;; # Avoid trailing /.
12141 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12142 esac
12143 ;;
12144esac
12145
12146
12147
d2995f21 12148for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
e8d42d28 12149do :
1d92226b
JJ
12150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12151ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22e05272 12152if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
e8d42d28 12153 cat >>confdefs.h <<_ACEOF
1d92226b 12154#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
e8d42d28
JJ
12155_ACEOF
12156
12157fi
12158
12159done
12160
12161
5a09d908
TB
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
12163$as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
22e05272 12164if ${libgfor_cv_have_math_h_signgam+:} false; then :
5a09d908
TB
12165 $as_echo_n "(cached) " >&6
12166else
12167
12168 save_CFLAGS="$CFLAGS"
12169 CFLAGS="$CFLAGS -Werror"
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h. */
12172
12173#include <math.h>
12174void foo(void) { signgam = 1; }
12175int
12176main ()
12177{
12178
12179 ;
12180 return 0;
12181}
12182_ACEOF
12183if ac_fn_c_try_compile "$LINENO"; then :
12184 libgfor_cv_have_math_h_signgam=yes
12185else
12186 libgfor_cv_have_math_h_signgam=no
12187fi
12188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 CFLAGS="$save_CFLAGS"
12190fi
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
12192$as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
12193 if test $libgfor_cv_have_math_h_signgam = yes; then
12194
12195$as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
12196
12197 fi
12198
6f468984
TB
12199# If available, sqrtl and cbrtl speed up the calculation -
12200# but they are not required
12201if test x$gcc_no_link != xyes; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
1ec601bf 12203$as_echo_n "checking for sqrtl in -lm... " >&6; }
22e05272 12204if ${ac_cv_lib_m_sqrtl+:} false; then :
1ec601bf
FXC
12205 $as_echo_n "(cached) " >&6
12206else
12207 ac_check_lib_save_LIBS=$LIBS
12208LIBS="-lm $LIBS"
fabfcf5e 12209if test x$gcc_no_link = xyes; then
22e05272 12210 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e 12211fi
1ec601bf
FXC
12212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213/* end confdefs.h. */
12214
12215/* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218#ifdef __cplusplus
12219extern "C"
12220#endif
12221char sqrtl ();
12222int
12223main ()
12224{
12225return sqrtl ();
12226 ;
12227 return 0;
12228}
12229_ACEOF
12230if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_m_sqrtl=yes
12232else
12233 ac_cv_lib_m_sqrtl=no
12234fi
12235rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237LIBS=$ac_check_lib_save_LIBS
12238fi
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12240$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
22e05272 12241if test "x$ac_cv_lib_m_sqrtl" = xyes; then :
1ec601bf
FXC
12242
12243$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12244
12245fi
12246
6f468984 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
1ec601bf 12248$as_echo_n "checking for cbrtl in -lm... " >&6; }
22e05272 12249if ${ac_cv_lib_m_cbrtl+:} false; then :
1ec601bf
FXC
12250 $as_echo_n "(cached) " >&6
12251else
12252 ac_check_lib_save_LIBS=$LIBS
12253LIBS="-lm $LIBS"
fabfcf5e 12254if test x$gcc_no_link = xyes; then
22e05272 12255 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e 12256fi
1ec601bf
FXC
12257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258/* end confdefs.h. */
12259
12260/* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12263#ifdef __cplusplus
12264extern "C"
12265#endif
12266char cbrtl ();
12267int
12268main ()
12269{
12270return cbrtl ();
12271 ;
12272 return 0;
12273}
12274_ACEOF
12275if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_lib_m_cbrtl=yes
12277else
12278 ac_cv_lib_m_cbrtl=no
12279fi
12280rm -f core conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282LIBS=$ac_check_lib_save_LIBS
12283fi
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12285$as_echo "$ac_cv_lib_m_cbrtl" >&6; }
22e05272 12286if test "x$ac_cv_lib_m_cbrtl" = xyes; then :
1ec601bf
FXC
12287
12288$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12289
e8d42d28
JJ
12290fi
12291
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12293$as_echo_n "checking for feholdexcept in -lm... " >&6; }
22e05272 12294if ${ac_cv_lib_m_feholdexcept+:} false; then :
e8d42d28
JJ
12295 $as_echo_n "(cached) " >&6
12296else
12297 ac_check_lib_save_LIBS=$LIBS
12298LIBS="-lm $LIBS"
12299if test x$gcc_no_link = xyes; then
22e05272 12300 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e8d42d28
JJ
12301fi
12302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303/* end confdefs.h. */
12304
12305/* Override any GCC internal prototype to avoid an error.
12306 Use char because int might match the return type of a GCC
12307 builtin and then its argument prototype would still apply. */
12308#ifdef __cplusplus
12309extern "C"
12310#endif
12311char feholdexcept ();
12312int
12313main ()
12314{
12315return feholdexcept ();
12316 ;
12317 return 0;
12318}
12319_ACEOF
12320if ac_fn_c_try_link "$LINENO"; then :
12321 ac_cv_lib_m_feholdexcept=yes
12322else
12323 ac_cv_lib_m_feholdexcept=no
12324fi
12325rm -f core conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327LIBS=$ac_check_lib_save_LIBS
12328fi
12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12330$as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
22e05272 12331if test "x$ac_cv_lib_m_feholdexcept" = xyes; then :
e8d42d28
JJ
12332
12333$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12334
12335fi
12336
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12338$as_echo_n "checking for fesetround in -lm... " >&6; }
22e05272 12339if ${ac_cv_lib_m_fesetround+:} false; then :
e8d42d28
JJ
12340 $as_echo_n "(cached) " >&6
12341else
12342 ac_check_lib_save_LIBS=$LIBS
12343LIBS="-lm $LIBS"
12344if test x$gcc_no_link = xyes; then
22e05272 12345 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e8d42d28
JJ
12346fi
12347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348/* end confdefs.h. */
12349
12350/* Override any GCC internal prototype to avoid an error.
12351 Use char because int might match the return type of a GCC
12352 builtin and then its argument prototype would still apply. */
12353#ifdef __cplusplus
12354extern "C"
12355#endif
12356char fesetround ();
12357int
12358main ()
12359{
12360return fesetround ();
12361 ;
12362 return 0;
12363}
12364_ACEOF
12365if ac_fn_c_try_link "$LINENO"; then :
12366 ac_cv_lib_m_fesetround=yes
12367else
12368 ac_cv_lib_m_fesetround=no
12369fi
12370rm -f core conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12372LIBS=$ac_check_lib_save_LIBS
12373fi
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12375$as_echo "$ac_cv_lib_m_fesetround" >&6; }
22e05272 12376if test "x$ac_cv_lib_m_fesetround" = xyes; then :
e8d42d28
JJ
12377
12378$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12379
12380fi
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12383$as_echo_n "checking for feupdateenv in -lm... " >&6; }
22e05272 12384if ${ac_cv_lib_m_feupdateenv+:} false; then :
e8d42d28
JJ
12385 $as_echo_n "(cached) " >&6
12386else
12387 ac_check_lib_save_LIBS=$LIBS
12388LIBS="-lm $LIBS"
12389if test x$gcc_no_link = xyes; then
22e05272 12390 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e8d42d28
JJ
12391fi
12392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393/* end confdefs.h. */
12394
12395/* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12398#ifdef __cplusplus
12399extern "C"
12400#endif
12401char feupdateenv ();
12402int
12403main ()
12404{
12405return feupdateenv ();
12406 ;
12407 return 0;
12408}
12409_ACEOF
12410if ac_fn_c_try_link "$LINENO"; then :
12411 ac_cv_lib_m_feupdateenv=yes
12412else
12413 ac_cv_lib_m_feupdateenv=no
12414fi
12415rm -f core conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
12417LIBS=$ac_check_lib_save_LIBS
12418fi
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12420$as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
22e05272 12421if test "x$ac_cv_lib_m_feupdateenv" = xyes; then :
e8d42d28
JJ
12422
12423$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12424
12425fi
12426
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12428$as_echo_n "checking for fesetenv in -lm... " >&6; }
22e05272 12429if ${ac_cv_lib_m_fesetenv+:} false; then :
e8d42d28
JJ
12430 $as_echo_n "(cached) " >&6
12431else
12432 ac_check_lib_save_LIBS=$LIBS
12433LIBS="-lm $LIBS"
12434if test x$gcc_no_link = xyes; then
22e05272 12435 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e8d42d28
JJ
12436fi
12437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438/* end confdefs.h. */
12439
12440/* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12443#ifdef __cplusplus
12444extern "C"
12445#endif
12446char fesetenv ();
12447int
12448main ()
12449{
12450return fesetenv ();
12451 ;
12452 return 0;
12453}
12454_ACEOF
12455if ac_fn_c_try_link "$LINENO"; then :
12456 ac_cv_lib_m_fesetenv=yes
12457else
12458 ac_cv_lib_m_fesetenv=no
12459fi
12460rm -f core conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext conftest.$ac_ext
12462LIBS=$ac_check_lib_save_LIBS
12463fi
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12465$as_echo "$ac_cv_lib_m_fesetenv" >&6; }
22e05272 12466if test "x$ac_cv_lib_m_fesetenv" = xyes; then :
e8d42d28
JJ
12467
12468$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12469
12470fi
12471
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12473$as_echo_n "checking for fetestexcept in -lm... " >&6; }
22e05272 12474if ${ac_cv_lib_m_fetestexcept+:} false; then :
e8d42d28
JJ
12475 $as_echo_n "(cached) " >&6
12476else
12477 ac_check_lib_save_LIBS=$LIBS
12478LIBS="-lm $LIBS"
12479if test x$gcc_no_link = xyes; then
22e05272 12480 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
e8d42d28
JJ
12481fi
12482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483/* end confdefs.h. */
12484
12485/* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12488#ifdef __cplusplus
12489extern "C"
12490#endif
12491char fetestexcept ();
12492int
12493main ()
12494{
12495return fetestexcept ();
12496 ;
12497 return 0;
12498}
12499_ACEOF
12500if ac_fn_c_try_link "$LINENO"; then :
12501 ac_cv_lib_m_fetestexcept=yes
12502else
12503 ac_cv_lib_m_fetestexcept=no
12504fi
12505rm -f core conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
12507LIBS=$ac_check_lib_save_LIBS
12508fi
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12510$as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
22e05272 12511if test "x$ac_cv_lib_m_fetestexcept" = xyes; then :
e8d42d28
JJ
12512
12513$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12514
1ec601bf
FXC
12515fi
12516
a855debf
JJ
12517 for ac_func in strtoull
12518do :
12519 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
22e05272 12520if test "x$ac_cv_func_strtoull" = xyes; then :
a855debf
JJ
12521 cat >>confdefs.h <<_ACEOF
12522#define HAVE_STRTOULL 1
12523_ACEOF
12524
12525fi
12526done
12527
6f468984
TB
12528else
12529 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12530
12531$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12532
12533 fi
12534 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12535
12536$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12537
e8d42d28
JJ
12538 fi
12539 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12540
12541$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12542
12543 fi
12544 if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12545
12546$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12547
12548 fi
12549 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12550
12551$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12552
12553 fi
12554 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12555
12556$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12557
12558 fi
12559 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12560
12561$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12562
6f468984
TB
12563 fi
12564fi
1ec601bf 12565
1d92226b 12566# Check for hidden visibility (copied from libssp).
49f0e1ba
JJ
12567saved_CFLAGS="$CFLAGS"
12568CFLAGS="$CFLAGS -Werror"
1d92226b
JJ
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12570$as_echo_n "checking whether hidden visibility is supported... " >&6; }
12571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572/* end confdefs.h. */
12573
12574void __attribute__((visibility ("hidden"))) bar (void) {}
12575int
12576main ()
12577{
12578
12579 ;
12580 return 0;
12581}
12582_ACEOF
12583if ac_fn_c_try_compile "$LINENO"; then :
12584 quadmath_hidden=yes
12585else
12586 quadmath_hidden=no
12587fi
12588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12590$as_echo "$quadmath_hidden" >&6; }
12591if test x$quadmath_hidden = xyes; then
12592
12593$as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12594
12595fi
49f0e1ba 12596CFLAGS="$saved_CFLAGS"
1d92226b 12597
1ec601bf
FXC
12598# Check for symbol versioning (copied from libssp).
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12600$as_echo_n "checking whether symbol versioning is supported... " >&6; }
bf382f5f
RO
12601# Check whether --enable-symvers was given.
12602if test "${enable_symvers+set}" = set; then :
12603 enableval=$enable_symvers; quadmath_use_symver=$enableval
fabfcf5e 12604else
bf382f5f
RO
12605 quadmath_use_symver=yes
12606fi
12607
19af62db 12608if test "x$quadmath_use_symver" != xno; then
bf382f5f
RO
12609 if test x$gcc_no_link = xyes; then
12610 # If we cannot link, we cannot build shared libraries, so do not use
12611 # symbol versioning.
12612 quadmath_use_symver=no
12613 else
12614 save_LDFLAGS="$LDFLAGS"
12615 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12616 cat > conftest.map <<EOF
1ec601bf
FXC
12617FOO_1.0 {
12618 global: *foo*; bar; local: *;
12619};
12620EOF
bf382f5f 12621 if test x$gcc_no_link = xyes; then
22e05272 12622 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e 12623fi
1ec601bf
FXC
12624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625/* end confdefs.h. */
12626int foo;
12627int
12628main ()
12629{
12630
12631 ;
12632 return 0;
12633}
12634_ACEOF
12635if ac_fn_c_try_link "$LINENO"; then :
12636 quadmath_use_symver=gnu
12637else
12638 quadmath_use_symver=no
12639fi
12640rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
12642 if test x$quadmath_use_symver = xno; then
12643 case "$target_os" in
12644 solaris2*)
12645 LDFLAGS="$save_LDFLAGS"
12646 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12647 # Sun ld cannot handle wildcards and treats all entries as undefined.
12648 cat > conftest.map <<EOF
1ec601bf
FXC
12649FOO_1.0 {
12650 global: foo; local: *;
12651};
12652EOF
bf382f5f 12653 if test x$gcc_no_link = xyes; then
22e05272 12654 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e
KT
12655fi
12656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
12657/* end confdefs.h. */
12658int foo;
12659int
12660main ()
12661{
12662
12663 ;
12664 return 0;
12665}
12666_ACEOF
12667if ac_fn_c_try_link "$LINENO"; then :
12668 quadmath_use_symver=sun
12669else
12670 quadmath_use_symver=no
12671fi
12672rm -f core conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
bf382f5f
RO
12674 ;;
12675 esac
12676 fi
12677 LDFLAGS="$save_LDFLAGS"
fabfcf5e 12678 fi
1ec601bf 12679fi
1ec601bf
FXC
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12681$as_echo "$quadmath_use_symver" >&6; }
12682 if test "x$quadmath_use_symver" != xno; then
12683 LIBQUAD_USE_SYMVER_TRUE=
12684 LIBQUAD_USE_SYMVER_FALSE='#'
12685else
12686 LIBQUAD_USE_SYMVER_TRUE='#'
12687 LIBQUAD_USE_SYMVER_FALSE=
12688fi
12689
12690 if test "x$quadmath_use_symver" = xgnu; then
12691 LIBQUAD_USE_SYMVER_GNU_TRUE=
12692 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12693else
12694 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12695 LIBQUAD_USE_SYMVER_GNU_FALSE=
12696fi
12697
12698 if test "x$quadmath_use_symver" = xsun; then
12699 LIBQUAD_USE_SYMVER_SUN_TRUE=
12700 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12701else
12702 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12703 LIBQUAD_USE_SYMVER_SUN_FALSE=
12704fi
12705
12706
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12708$as_echo_n "checking whether __float128 is supported... " >&6; }
22e05272 12709if ${libquad_cv_have_float128+:} false; then :
abccc9a9
TB
12710 $as_echo_n "(cached) " >&6
12711else
12712 if test x$gcc_no_link = xyes; then
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714/* end confdefs.h. */
12715
0c949f0a 12716 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
abccc9a9 12717 typedef _Complex float __attribute__((mode(TC))) __complex128;
0c949f0a
MM
12718 #else
12719 typedef _Complex float __attribute__((mode(KC))) __complex128;
12720 #endif
abccc9a9
TB
12721
12722 __float128 foo (__float128 x)
12723 {
12724
12725 __complex128 z1, z2;
12726
12727 z1 = x;
12728 z2 = x / 7.Q;
12729 z2 /= z1;
12730
12731 return (__float128) z2;
12732 }
12733
12734 __float128 bar (__float128 x)
12735 {
12736 return x * __builtin_huge_valq ();
12737 }
12738
12739int
12740main ()
12741{
12742
12743 foo (1.2Q);
12744 bar (1.2Q);
12745
12746 ;
12747 return 0;
12748}
12749_ACEOF
12750if ac_fn_c_try_compile "$LINENO"; then :
12751
12752 libquad_cv_have_float128=yes
12753
12754else
12755
12756 libquad_cv_have_float128=no
12757
12758fi
12759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760else
fabfcf5e 12761 if test x$gcc_no_link = xyes; then
22e05272 12762 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
fabfcf5e
KT
12763fi
12764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1ec601bf
FXC
12765/* end confdefs.h. */
12766
0c949f0a 12767 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
1ec601bf 12768 typedef _Complex float __attribute__((mode(TC))) __complex128;
0c949f0a
MM
12769 #else
12770 typedef _Complex float __attribute__((mode(KC))) __complex128;
12771 #endif
1ec601bf
FXC
12772
12773 __float128 foo (__float128 x)
12774 {
12775
12776 __complex128 z1, z2;
12777
12778 z1 = x;
12779 z2 = x / 7.Q;
12780 z2 /= z1;
12781
12782 return (__float128) z2;
12783 }
12784
12785 __float128 bar (__float128 x)
12786 {
12787 return x * __builtin_huge_valq ();
12788 }
12789
12790int
12791main ()
12792{
12793
12794 foo (1.2Q);
12795 bar (1.2Q);
12796
12797 ;
12798 return 0;
12799}
12800_ACEOF
12801if ac_fn_c_try_link "$LINENO"; then :
12802
abccc9a9 12803 libquad_cv_have_float128=yes
1ec601bf
FXC
12804
12805else
12806
abccc9a9 12807 libquad_cv_have_float128=no
1ec601bf
FXC
12808
12809fi
12810rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
abccc9a9
TB
12812fi
12813fi
12814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12815$as_echo "$libquad_cv_have_float128" >&6; }
12816 if test "x$libquad_cv_have_float128" = xyes; then
1ec601bf
FXC
12817 BUILD_LIBQUADMATH_TRUE=
12818 BUILD_LIBQUADMATH_FALSE='#'
12819else
12820 BUILD_LIBQUADMATH_TRUE='#'
12821 BUILD_LIBQUADMATH_FALSE=
12822fi
12823
12824
1d92226b
JJ
12825# Check for printf hook support.
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12827$as_echo_n "checking whether printf hooks are supported... " >&6; }
12828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829/* end confdefs.h. */
12830
12831#include <printf.h>
12832#include <stdarg.h>
12833#include <stdlib.h>
12834extern void flt128_va (void *, va_list *);
12835extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12836extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12837
12838int
12839main ()
12840{
12841
12842int pa_flt128 = register_printf_type (flt128_va);
12843int mod_Q = register_printf_modifier (L"Q");
12844int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12967872 12845struct printf_info info = { .user = -1 };
1d92226b
JJ
12846
12847 ;
12848 return 0;
12849}
12850_ACEOF
12851if ac_fn_c_try_compile "$LINENO"; then :
12852 quadmath_printf_hooks=yes
12853else
12854 quadmath_printf_hooks=no
12855fi
12856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12858$as_echo "$quadmath_printf_hooks" >&6; }
12859if test x$quadmath_printf_hooks = xyes; then
12860
12861$as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12862
12863fi
12864
12865# Check for whether locale support for quadmath_snprintf or Q printf hooks
12866# should be provided.
d2995f21
JJ
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12868$as_echo_n "checking whether nl_langinfo should be used... " >&6; }
1d92226b
JJ
12869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870/* end confdefs.h. */
12871#include <langinfo.h>
12872int
12873main ()
12874{
12875
12876const char *s;
12877s = nl_langinfo (DECIMAL_POINT);
12878s = nl_langinfo (MON_DECIMAL_POINT);
12879s = nl_langinfo (GROUPING);
12880s = nl_langinfo (MON_GROUPING);
12881s = nl_langinfo (THOUSANDS_SEP);
12882s = nl_langinfo (MON_THOUSANDS_SEP);
d2995f21
JJ
12883(void) s;
12884
12885 ;
12886 return 0;
12887}
12888_ACEOF
12889if ac_fn_c_try_compile "$LINENO"; then :
12890 quadmath_use_nl_langinfo=yes
12891else
12892 quadmath_use_nl_langinfo=no
12893fi
12894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12896$as_echo "$quadmath_use_nl_langinfo" >&6; }
12897if test x$quadmath_use_nl_langinfo = xyes; then
12898
12899$as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12900
12901fi
12902
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12904$as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906/* end confdefs.h. */
12907#include <langinfo.h>
12908int
12909main ()
12910{
12911
12912const char *s;
1d92226b
JJ
12913s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12914s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12915s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12916s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
1d92226b
JJ
12917(void) s;
12918
12919 ;
12920 return 0;
12921}
12922_ACEOF
12923if ac_fn_c_try_compile "$LINENO"; then :
d2995f21 12924 quadmath_use_nl_langinfo_wc=yes
1d92226b 12925else
d2995f21 12926 quadmath_use_nl_langinfo_wc=no
1d92226b
JJ
12927fi
12928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d2995f21
JJ
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12930$as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12931if test x$quadmath_use_nl_langinfo_wc = xyes; then
1d92226b 12932
d2995f21
JJ
12933$as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12934
12935fi
12936
12937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12938$as_echo_n "checking whether localeconv should be used... " >&6; }
12939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940/* end confdefs.h. */
12941#include <locale.h>
12942int
12943main ()
12944{
12945
12946const struct lconv *l = localeconv ();
12947const char *s;
12948s = l->decimal_point;
12949s = l->mon_decimal_point;
12950s = l->grouping;
12951s = l->mon_grouping;
12952s = l->thousands_sep;
12953s = l->mon_thousands_sep;
12954(void) s;
12955
12956 ;
12957 return 0;
12958}
12959_ACEOF
12960if ac_fn_c_try_compile "$LINENO"; then :
12961 quadmath_use_localeconv=yes
12962else
12963 quadmath_use_localeconv=no
12964fi
12965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12967$as_echo "$quadmath_use_localeconv" >&6; }
12968if test x$quadmath_use_localeconv = xyes; then
12969
12970$as_echo "#define USE_LOCALECONV 1" >>confdefs.h
1d92226b
JJ
12971
12972fi
12973
12974# Check for whether i18n number rewriting support for quadmath_snprintf
12975# or Q printf hooks should be provided.
12976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12977$as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979/* end confdefs.h. */
12980#include <langinfo.h>
12981#include <limits.h>
12982#include <string.h>
12983#include <wchar.h>
12984#include <wctype.h>
12985int
12986main ()
12987{
12988
12989const char *s;
12990char decimal[MB_LEN_MAX];
12991wctrans_t map = wctrans ("to_outpunct");
12992wint_t wdecimal = towctrans (L'.', map);
12993mbstate_t state;
12994memset (&state, '\0', sizeof (state));
12995wcrtomb (decimal, wdecimal, &state);
12996s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12997s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
d2995f21 12998s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
1d92226b
JJ
12999(void) s;
13000
13001 ;
13002 return 0;
13003}
13004_ACEOF
13005if ac_fn_c_try_compile "$LINENO"; then :
13006 quadmath_use_i18n_number_h=yes
13007else
13008 quadmath_use_i18n_number_h=no
13009fi
13010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
13012$as_echo "$quadmath_use_i18n_number_h" >&6; }
13013if test x$quadmath_use_i18n_number_h = xyes; then
13014
13015$as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
13016
13017fi
13018
fda26abe
IT
13019# Add CET specific flags if CET is enabled
13020 # Check whether --enable-cet was given.
13021if test "${enable_cet+set}" = set; then :
13022 enableval=$enable_cet;
13023 case "$enableval" in
a0e1df88 13024 yes|no|auto) ;;
22e05272 13025 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
fda26abe
IT
13026 esac
13027
13028else
a0e1df88 13029 enable_cet=no
fda26abe
IT
13030fi
13031
13032
14e335ed
IT
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
13034$as_echo_n "checking for CET support... " >&6; }
13035
fda26abe
IT
13036case "$host" in
13037 i[34567]86-*-linux* | x86_64-*-linux*)
13038 case "$enable_cet" in
a0e1df88 13039 auto)
14e335ed
IT
13040 # Check if target supports multi-byte NOPs
13041 # and if assembler supports CET insn.
fda26abe
IT
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043/* end confdefs.h. */
13044
13045int
13046main ()
13047{
14e335ed
IT
13048
13049#if !defined(__SSE2__)
13050#error target does not support multi-byte NOPs
13051#else
fda26abe 13052asm ("setssbsy");
14e335ed
IT
13053#endif
13054
fda26abe
IT
13055 ;
13056 return 0;
13057}
13058_ACEOF
13059if ac_fn_c_try_compile "$LINENO"; then :
13060 enable_cet=yes
13061else
13062 enable_cet=no
13063fi
13064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 ;;
13066 yes)
13067 # Check if assembler supports CET.
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069/* end confdefs.h. */
13070
13071int
13072main ()
13073{
13074asm ("setssbsy");
13075 ;
13076 return 0;
13077}
13078_ACEOF
13079if ac_fn_c_try_compile "$LINENO"; then :
13080
13081else
22e05272 13082 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
fda26abe
IT
13083fi
13084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 ;;
13086 esac
13087 ;;
13088 *)
13089 enable_cet=no
13090 ;;
13091esac
13092if test x$enable_cet = xyes; then
7b47ecf2 13093 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13095$as_echo "yes" >&6; }
13096else
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098$as_echo "no" >&6; }
fda26abe
IT
13099fi
13100
13101XCFLAGS="$XCFLAGS $CET_FLAGS"
13102
13103
1ec601bf
FXC
13104cat >confcache <<\_ACEOF
13105# This file is a shell script that caches the results of configure
13106# tests run on this system so they can be shared between configure
13107# scripts and configure runs, see configure's option --config-cache.
13108# It is not useful on other systems. If it contains results you don't
13109# want to keep, you may remove or edit it.
13110#
13111# config.status only pays attention to the cache file if you give it
13112# the --recheck option to rerun configure.
13113#
13114# `ac_cv_env_foo' variables (set or unset) will be overridden when
13115# loading this file, other *unset* `ac_cv_foo' will be assigned the
13116# following values.
13117
13118_ACEOF
13119
13120# The following way of writing the cache mishandles newlines in values,
13121# but we know of no workaround that is simple, portable, and efficient.
13122# So, we kill variables containing newlines.
13123# Ultrix sh set writes to stderr and can't be redirected directly,
13124# and sets the high bit in the cache file unless we assign to the vars.
13125(
13126 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13127 eval ac_val=\$$ac_var
13128 case $ac_val in #(
13129 *${as_nl}*)
13130 case $ac_var in #(
13131 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13132$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13133 esac
13134 case $ac_var in #(
13135 _ | IFS | as_nl) ;; #(
13136 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13137 *) { eval $ac_var=; unset $ac_var;} ;;
13138 esac ;;
13139 esac
13140 done
13141
13142 (set) 2>&1 |
13143 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13144 *${as_nl}ac_space=\ *)
13145 # `set' does not quote correctly, so add quotes: double-quote
13146 # substitution turns \\\\ into \\, and sed turns \\ into \.
13147 sed -n \
13148 "s/'/'\\\\''/g;
13149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13150 ;; #(
13151 *)
13152 # `set' quotes correctly as required by POSIX, so do not add quotes.
13153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13154 ;;
13155 esac |
13156 sort
13157) |
13158 sed '
13159 /^ac_cv_env_/b end
13160 t clear
13161 :clear
13162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13163 t end
13164 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13165 :end' >>confcache
13166if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13167 if test -w "$cache_file"; then
22e05272 13168 if test "x$cache_file" != "x/dev/null"; then
1ec601bf
FXC
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13170$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
13171 if test ! -f "$cache_file" || test -h "$cache_file"; then
13172 cat confcache >"$cache_file"
13173 else
13174 case $cache_file in #(
13175 */* | ?:*)
13176 mv -f confcache "$cache_file"$$ &&
13177 mv -f "$cache_file"$$ "$cache_file" ;; #(
13178 *)
13179 mv -f confcache "$cache_file" ;;
13180 esac
13181 fi
13182 fi
1ec601bf
FXC
13183 else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13185$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13186 fi
13187fi
13188rm -f confcache
13189
13190if test ${multilib} = yes; then
13191 multilib_arg="--enable-multilib"
13192else
13193 multilib_arg=
13194fi
13195
4c993c44
TB
13196
13197# We would like our source tree to be readonly. However when releases or
13198# pre-releases are generated, the flex/bison generated files as well as the
13199# various formats of manuals need to be included along with the rest of the
13200# sources. Therefore we have --enable-generated-files-in-srcdir to do
13201# just that.
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
13203$as_echo_n "checking generated-files-in-srcdir... " >&6; }
13204# Check whether --enable-generated-files-in-srcdir was given.
13205if test "${enable_generated_files_in_srcdir+set}" = set; then :
13206 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
13207 yes) enable_generated_files_in_srcdir=yes ;;
13208 no) enable_generated_files_in_srcdir=no ;;
22e05272 13209 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4c993c44
TB
13210 esac
13211else
13212 enable_generated_files_in_srcdir=no
13213fi
13214
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
13216$as_echo "$enable_generated_files_in_srcdir" >&6; }
13217 if test "$enable_generated_files_in_srcdir" = yes; then
13218 GENINSRC_TRUE=
13219 GENINSRC_FALSE='#'
13220else
13221 GENINSRC_TRUE='#'
13222 GENINSRC_FALSE=
13223fi
13224
13225
3c36aa6b
JJ
13226# Determine what GCC version number to use in filesystem paths.
13227
13228 get_gcc_base_ver="cat"
13229
13230# Check whether --with-gcc-major-version-only was given.
13231if test "${with_gcc_major_version_only+set}" = set; then :
13232 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 13233 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
13234 fi
13235
13236fi
13237
13238
13239
4c993c44 13240
1ec601bf
FXC
13241ac_config_files="$ac_config_files Makefile"
13242
13243cat >confcache <<\_ACEOF
13244# This file is a shell script that caches the results of configure
13245# tests run on this system so they can be shared between configure
13246# scripts and configure runs, see configure's option --config-cache.
13247# It is not useful on other systems. If it contains results you don't
13248# want to keep, you may remove or edit it.
13249#
13250# config.status only pays attention to the cache file if you give it
13251# the --recheck option to rerun configure.
13252#
13253# `ac_cv_env_foo' variables (set or unset) will be overridden when
13254# loading this file, other *unset* `ac_cv_foo' will be assigned the
13255# following values.
13256
13257_ACEOF
13258
13259# The following way of writing the cache mishandles newlines in values,
13260# but we know of no workaround that is simple, portable, and efficient.
13261# So, we kill variables containing newlines.
13262# Ultrix sh set writes to stderr and can't be redirected directly,
13263# and sets the high bit in the cache file unless we assign to the vars.
13264(
13265 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13266 eval ac_val=\$$ac_var
13267 case $ac_val in #(
13268 *${as_nl}*)
13269 case $ac_var in #(
13270 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13271$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13272 esac
13273 case $ac_var in #(
13274 _ | IFS | as_nl) ;; #(
13275 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13276 *) { eval $ac_var=; unset $ac_var;} ;;
13277 esac ;;
13278 esac
13279 done
13280
13281 (set) 2>&1 |
13282 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13283 *${as_nl}ac_space=\ *)
13284 # `set' does not quote correctly, so add quotes: double-quote
13285 # substitution turns \\\\ into \\, and sed turns \\ into \.
13286 sed -n \
13287 "s/'/'\\\\''/g;
13288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13289 ;; #(
13290 *)
13291 # `set' quotes correctly as required by POSIX, so do not add quotes.
13292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13293 ;;
13294 esac |
13295 sort
13296) |
13297 sed '
13298 /^ac_cv_env_/b end
13299 t clear
13300 :clear
13301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13302 t end
13303 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13304 :end' >>confcache
13305if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13306 if test -w "$cache_file"; then
22e05272 13307 if test "x$cache_file" != "x/dev/null"; then
1ec601bf
FXC
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13309$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
13310 if test ! -f "$cache_file" || test -h "$cache_file"; then
13311 cat confcache >"$cache_file"
13312 else
13313 case $cache_file in #(
13314 */* | ?:*)
13315 mv -f confcache "$cache_file"$$ &&
13316 mv -f "$cache_file"$$ "$cache_file" ;; #(
13317 *)
13318 mv -f confcache "$cache_file" ;;
13319 esac
13320 fi
13321 fi
1ec601bf
FXC
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13324$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13325 fi
13326fi
13327rm -f confcache
13328
13329test "x$prefix" = xNONE && prefix=$ac_default_prefix
13330# Let make expand exec_prefix.
13331test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13332
13333DEFS=-DHAVE_CONFIG_H
13334
13335ac_libobjs=
13336ac_ltlibobjs=
22e05272 13337U=
1ec601bf
FXC
13338for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13339 # 1. Remove the extension, and $U if already installed.
13340 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13341 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13342 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13343 # will be set to the directory where LIBOBJS objects are built.
13344 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13345 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13346done
13347LIBOBJS=$ac_libobjs
13348
13349LTLIBOBJS=$ac_ltlibobjs
13350
13351
22e05272
JM
13352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13353$as_echo_n "checking that generated files are newer than configure... " >&6; }
13354 if test -n "$am_sleep_pid"; then
13355 # Hide warnings about reused PIDs.
13356 wait $am_sleep_pid 2>/dev/null
13357 fi
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13359$as_echo "done" >&6; }
1ec601bf
FXC
13360 if test -n "$EXEEXT"; then
13361 am__EXEEXT_TRUE=
13362 am__EXEEXT_FALSE='#'
13363else
13364 am__EXEEXT_TRUE='#'
13365 am__EXEEXT_FALSE=
13366fi
13367
13368if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 13369 as_fn_error $? "conditional \"AMDEP\" was never defined.
1ec601bf
FXC
13370Usually this means the macro was only invoked conditionally." "$LINENO" 5
13371fi
13372if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 13373 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1ec601bf
FXC
13374Usually this means the macro was only invoked conditionally." "$LINENO" 5
13375fi
1d92226b 13376if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
22e05272 13377 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
1d92226b
JJ
13378Usually this means the macro was only invoked conditionally." "$LINENO" 5
13379fi
1ec601bf 13380if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 13381 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
1ec601bf
FXC
13382Usually this means the macro was only invoked conditionally." "$LINENO" 5
13383fi
fabfcf5e 13384if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 13385 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
fabfcf5e
KT
13386Usually this means the macro was only invoked conditionally." "$LINENO" 5
13387fi
1ec601bf 13388if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
22e05272 13389 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
1ec601bf
FXC
13390Usually this means the macro was only invoked conditionally." "$LINENO" 5
13391fi
13392if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
22e05272 13393 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
1ec601bf
FXC
13394Usually this means the macro was only invoked conditionally." "$LINENO" 5
13395fi
13396if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
22e05272 13397 as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
1ec601bf
FXC
13398Usually this means the macro was only invoked conditionally." "$LINENO" 5
13399fi
13400if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
22e05272 13401 as_fn_error $? "conditional \"BUILD_LIBQUADMATH\" was never defined.
4c993c44
TB
13402Usually this means the macro was only invoked conditionally." "$LINENO" 5
13403fi
13404if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
22e05272 13405 as_fn_error $? "conditional \"GENINSRC\" was never defined.
1ec601bf
FXC
13406Usually this means the macro was only invoked conditionally." "$LINENO" 5
13407fi
13408
22e05272 13409: "${CONFIG_STATUS=./config.status}"
1ec601bf
FXC
13410ac_write_fail=0
13411ac_clean_files_save=$ac_clean_files
13412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13413{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13414$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13415as_write_fail=0
13416cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13417#! $SHELL
13418# Generated by $as_me.
13419# Run this file to recreate the current configuration.
13420# Compiler output produced by configure, useful for debugging
13421# configure, is in config.log if it exists.
13422
13423debug=false
13424ac_cs_recheck=false
13425ac_cs_silent=false
13426
13427SHELL=\${CONFIG_SHELL-$SHELL}
13428export SHELL
13429_ASEOF
13430cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13431## -------------------- ##
13432## M4sh Initialization. ##
13433## -------------------- ##
13434
13435# Be more Bourne compatible
13436DUALCASE=1; export DUALCASE # for MKS sh
13437if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13438 emulate sh
13439 NULLCMD=:
13440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13441 # is contrary to our usage. Disable this feature.
13442 alias -g '${1+"$@"}'='"$@"'
13443 setopt NO_GLOB_SUBST
13444else
13445 case `(set -o) 2>/dev/null` in #(
13446 *posix*) :
13447 set -o posix ;; #(
13448 *) :
13449 ;;
13450esac
13451fi
13452
13453
13454as_nl='
13455'
13456export as_nl
13457# Printing a long string crashes Solaris 7 /usr/bin/printf.
13458as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13460as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13461# Prefer a ksh shell builtin over an external printf program on Solaris,
13462# but without wasting forks for bash or zsh.
13463if test -z "$BASH_VERSION$ZSH_VERSION" \
13464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13465 as_echo='print -r --'
13466 as_echo_n='print -rn --'
13467elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13468 as_echo='printf %s\n'
13469 as_echo_n='printf %s'
13470else
13471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13473 as_echo_n='/usr/ucb/echo -n'
13474 else
13475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13476 as_echo_n_body='eval
13477 arg=$1;
13478 case $arg in #(
13479 *"$as_nl"*)
13480 expr "X$arg" : "X\\(.*\\)$as_nl";
13481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13482 esac;
13483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13484 '
13485 export as_echo_n_body
13486 as_echo_n='sh -c $as_echo_n_body as_echo'
13487 fi
13488 export as_echo_body
13489 as_echo='sh -c $as_echo_body as_echo'
13490fi
13491
13492# The user is always right.
13493if test "${PATH_SEPARATOR+set}" != set; then
13494 PATH_SEPARATOR=:
13495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13497 PATH_SEPARATOR=';'
13498 }
13499fi
13500
13501
13502# IFS
13503# We need space, tab and new line, in precisely that order. Quoting is
13504# there to prevent editors from complaining about space-tab.
13505# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13506# splitting by setting IFS to empty value.)
13507IFS=" "" $as_nl"
13508
13509# Find who we are. Look in the path if we contain no directory separator.
22e05272 13510as_myself=
1ec601bf
FXC
13511case $0 in #((
13512 *[\\/]* ) as_myself=$0 ;;
13513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13514for as_dir in $PATH
13515do
13516 IFS=$as_save_IFS
13517 test -z "$as_dir" && as_dir=.
13518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13519 done
13520IFS=$as_save_IFS
13521
13522 ;;
13523esac
13524# We did not find ourselves, most probably we were run as `sh COMMAND'
13525# in which case we are not to be found in the path.
13526if test "x$as_myself" = x; then
13527 as_myself=$0
13528fi
13529if test ! -f "$as_myself"; then
13530 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13531 exit 1
13532fi
13533
13534# Unset variables that we do not need and which cause bugs (e.g. in
13535# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13536# suppresses any "Segmentation fault" message there. '((' could
13537# trigger a bug in pdksh 5.2.14.
13538for as_var in BASH_ENV ENV MAIL MAILPATH
13539do eval test x\${$as_var+set} = xset \
13540 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13541done
13542PS1='$ '
13543PS2='> '
13544PS4='+ '
13545
13546# NLS nuisances.
13547LC_ALL=C
13548export LC_ALL
13549LANGUAGE=C
13550export LANGUAGE
13551
13552# CDPATH.
13553(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13554
13555
22e05272
JM
13556# as_fn_error STATUS ERROR [LINENO LOG_FD]
13557# ----------------------------------------
1ec601bf
FXC
13558# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13559# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 13560# script with STATUS, using 1 if that was 0.
1ec601bf
FXC
13561as_fn_error ()
13562{
22e05272
JM
13563 as_status=$1; test $as_status -eq 0 && as_status=1
13564 if test "$4"; then
13565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13566 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1ec601bf 13567 fi
22e05272 13568 $as_echo "$as_me: error: $2" >&2
1ec601bf
FXC
13569 as_fn_exit $as_status
13570} # as_fn_error
13571
13572
13573# as_fn_set_status STATUS
13574# -----------------------
13575# Set $? to STATUS, without forking.
13576as_fn_set_status ()
13577{
13578 return $1
13579} # as_fn_set_status
13580
13581# as_fn_exit STATUS
13582# -----------------
13583# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13584as_fn_exit ()
13585{
13586 set +e
13587 as_fn_set_status $1
13588 exit $1
13589} # as_fn_exit
13590
13591# as_fn_unset VAR
13592# ---------------
13593# Portably unset VAR.
13594as_fn_unset ()
13595{
13596 { eval $1=; unset $1;}
13597}
13598as_unset=as_fn_unset
13599# as_fn_append VAR VALUE
13600# ----------------------
13601# Append the text in VALUE to the end of the definition contained in VAR. Take
13602# advantage of any shell optimizations that allow amortized linear growth over
13603# repeated appends, instead of the typical quadratic growth present in naive
13604# implementations.
13605if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13606 eval 'as_fn_append ()
13607 {
13608 eval $1+=\$2
13609 }'
13610else
13611 as_fn_append ()
13612 {
13613 eval $1=\$$1\$2
13614 }
13615fi # as_fn_append
13616
13617# as_fn_arith ARG...
13618# ------------------
13619# Perform arithmetic evaluation on the ARGs, and store the result in the
13620# global $as_val. Take advantage of shells that can avoid forks. The arguments
13621# must be portable across $(()) and expr.
13622if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13623 eval 'as_fn_arith ()
13624 {
13625 as_val=$(( $* ))
13626 }'
13627else
13628 as_fn_arith ()
13629 {
13630 as_val=`expr "$@" || test $? -eq 1`
13631 }
13632fi # as_fn_arith
13633
13634
13635if expr a : '\(a\)' >/dev/null 2>&1 &&
13636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13637 as_expr=expr
13638else
13639 as_expr=false
13640fi
13641
13642if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13643 as_basename=basename
13644else
13645 as_basename=false
13646fi
13647
13648if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13649 as_dirname=dirname
13650else
13651 as_dirname=false
13652fi
13653
13654as_me=`$as_basename -- "$0" ||
13655$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13656 X"$0" : 'X\(//\)$' \| \
13657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13658$as_echo X/"$0" |
13659 sed '/^.*\/\([^/][^/]*\)\/*$/{
13660 s//\1/
13661 q
13662 }
13663 /^X\/\(\/\/\)$/{
13664 s//\1/
13665 q
13666 }
13667 /^X\/\(\/\).*/{
13668 s//\1/
13669 q
13670 }
13671 s/.*/./; q'`
13672
13673# Avoid depending upon Character Ranges.
13674as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13675as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13676as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13677as_cr_digits='0123456789'
13678as_cr_alnum=$as_cr_Letters$as_cr_digits
13679
13680ECHO_C= ECHO_N= ECHO_T=
13681case `echo -n x` in #(((((
13682-n*)
13683 case `echo 'xy\c'` in
13684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13685 xy) ECHO_C='\c';;
13686 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13687 ECHO_T=' ';;
13688 esac;;
13689*)
13690 ECHO_N='-n';;
13691esac
13692
13693rm -f conf$$ conf$$.exe conf$$.file
13694if test -d conf$$.dir; then
13695 rm -f conf$$.dir/conf$$.file
13696else
13697 rm -f conf$$.dir
13698 mkdir conf$$.dir 2>/dev/null
13699fi
13700if (echo >conf$$.file) 2>/dev/null; then
13701 if ln -s conf$$.file conf$$ 2>/dev/null; then
13702 as_ln_s='ln -s'
13703 # ... but there are two gotchas:
13704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 13706 # In both cases, we have to default to `cp -pR'.
1ec601bf 13707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 13708 as_ln_s='cp -pR'
1ec601bf
FXC
13709 elif ln conf$$.file conf$$ 2>/dev/null; then
13710 as_ln_s=ln
13711 else
22e05272 13712 as_ln_s='cp -pR'
1ec601bf
FXC
13713 fi
13714else
22e05272 13715 as_ln_s='cp -pR'
1ec601bf
FXC
13716fi
13717rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13718rmdir conf$$.dir 2>/dev/null
13719
13720
13721# as_fn_mkdir_p
13722# -------------
13723# Create "$as_dir" as a directory, including parents if necessary.
13724as_fn_mkdir_p ()
13725{
13726
13727 case $as_dir in #(
13728 -*) as_dir=./$as_dir;;
13729 esac
13730 test -d "$as_dir" || eval $as_mkdir_p || {
13731 as_dirs=
13732 while :; do
13733 case $as_dir in #(
13734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13735 *) as_qdir=$as_dir;;
13736 esac
13737 as_dirs="'$as_qdir' $as_dirs"
13738 as_dir=`$as_dirname -- "$as_dir" ||
13739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13740 X"$as_dir" : 'X\(//\)[^/]' \| \
13741 X"$as_dir" : 'X\(//\)$' \| \
13742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13743$as_echo X"$as_dir" |
13744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13745 s//\1/
13746 q
13747 }
13748 /^X\(\/\/\)[^/].*/{
13749 s//\1/
13750 q
13751 }
13752 /^X\(\/\/\)$/{
13753 s//\1/
13754 q
13755 }
13756 /^X\(\/\).*/{
13757 s//\1/
13758 q
13759 }
13760 s/.*/./; q'`
13761 test -d "$as_dir" && break
13762 done
13763 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 13764 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1ec601bf
FXC
13765
13766
13767} # as_fn_mkdir_p
13768if mkdir -p . 2>/dev/null; then
13769 as_mkdir_p='mkdir -p "$as_dir"'
13770else
13771 test -d ./-p && rmdir ./-p
13772 as_mkdir_p=false
13773fi
13774
22e05272
JM
13775
13776# as_fn_executable_p FILE
13777# -----------------------
13778# Test if FILE is an executable regular file.
13779as_fn_executable_p ()
13780{
13781 test -f "$1" && test -x "$1"
13782} # as_fn_executable_p
13783as_test_x='test -x'
13784as_executable_p=as_fn_executable_p
1ec601bf
FXC
13785
13786# Sed expression to map a string onto a valid CPP name.
13787as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13788
13789# Sed expression to map a string onto a valid variable name.
13790as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13791
13792
13793exec 6>&1
13794## ----------------------------------- ##
13795## Main body of $CONFIG_STATUS script. ##
13796## ----------------------------------- ##
13797_ASEOF
13798test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13799
13800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13801# Save the log message, to keep $0 and so on meaningful, and to
13802# report actual input values of CONFIG_FILES etc. instead of their
13803# values after options handling.
13804ac_log="
13805This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
22e05272 13806generated by GNU Autoconf 2.69. Invocation command line was
1ec601bf
FXC
13807
13808 CONFIG_FILES = $CONFIG_FILES
13809 CONFIG_HEADERS = $CONFIG_HEADERS
13810 CONFIG_LINKS = $CONFIG_LINKS
13811 CONFIG_COMMANDS = $CONFIG_COMMANDS
13812 $ $0 $@
13813
13814on `(hostname || uname -n) 2>/dev/null | sed 1q`
13815"
13816
13817_ACEOF
13818
13819case $ac_config_files in *"
13820"*) set x $ac_config_files; shift; ac_config_files=$*;;
13821esac
13822
13823case $ac_config_headers in *"
13824"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13825esac
13826
13827
13828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13829# Files that config.status was made for.
13830config_files="$ac_config_files"
13831config_headers="$ac_config_headers"
13832config_commands="$ac_config_commands"
13833
13834_ACEOF
13835
13836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13837ac_cs_usage="\
13838\`$as_me' instantiates files and other configuration actions
13839from templates according to the current configuration. Unless the files
13840and actions are specified as TAGs, all are instantiated by default.
13841
13842Usage: $0 [OPTION]... [TAG]...
13843
13844 -h, --help print this help, then exit
13845 -V, --version print version number and configuration settings, then exit
22e05272 13846 --config print configuration, then exit
1ec601bf
FXC
13847 -q, --quiet, --silent
13848 do not print progress messages
13849 -d, --debug don't remove temporary files
13850 --recheck update $as_me by reconfiguring in the same conditions
13851 --file=FILE[:TEMPLATE]
13852 instantiate the configuration file FILE
13853 --header=FILE[:TEMPLATE]
13854 instantiate the configuration header FILE
13855
13856Configuration files:
13857$config_files
13858
13859Configuration headers:
13860$config_headers
13861
13862Configuration commands:
13863$config_commands
13864
13865Report bugs to the package provider."
13866
13867_ACEOF
13868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 13869ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1ec601bf
FXC
13870ac_cs_version="\\
13871GCC Quad-precision Math Library config.status 0.1
22e05272
JM
13872configured by $0, generated by GNU Autoconf 2.69,
13873 with options \\"\$ac_cs_config\\"
1ec601bf 13874
22e05272 13875Copyright (C) 2012 Free Software Foundation, Inc.
1ec601bf
FXC
13876This config.status script is free software; the Free Software Foundation
13877gives unlimited permission to copy, distribute and modify it."
13878
13879ac_pwd='$ac_pwd'
13880srcdir='$srcdir'
13881INSTALL='$INSTALL'
13882MKDIR_P='$MKDIR_P'
13883AWK='$AWK'
13884test -n "\$AWK" || AWK=awk
13885_ACEOF
13886
13887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13888# The default lists apply if the user does not specify any file.
13889ac_need_defaults=:
13890while test $# != 0
13891do
13892 case $1 in
22e05272 13893 --*=?*)
1ec601bf
FXC
13894 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13895 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13896 ac_shift=:
13897 ;;
22e05272
JM
13898 --*=)
13899 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13900 ac_optarg=
13901 ac_shift=:
13902 ;;
1ec601bf
FXC
13903 *)
13904 ac_option=$1
13905 ac_optarg=$2
13906 ac_shift=shift
13907 ;;
13908 esac
13909
13910 case $ac_option in
13911 # Handling of the options.
13912 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13913 ac_cs_recheck=: ;;
13914 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13915 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
13916 --config | --confi | --conf | --con | --co | --c )
13917 $as_echo "$ac_cs_config"; exit ;;
1ec601bf
FXC
13918 --debug | --debu | --deb | --de | --d | -d )
13919 debug=: ;;
13920 --file | --fil | --fi | --f )
13921 $ac_shift
13922 case $ac_optarg in
13923 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 13924 '') as_fn_error $? "missing file argument" ;;
1ec601bf
FXC
13925 esac
13926 as_fn_append CONFIG_FILES " '$ac_optarg'"
13927 ac_need_defaults=false;;
13928 --header | --heade | --head | --hea )
13929 $ac_shift
13930 case $ac_optarg in
13931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13932 esac
13933 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13934 ac_need_defaults=false;;
13935 --he | --h)
13936 # Conflict between --help and --header
22e05272 13937 as_fn_error $? "ambiguous option: \`$1'
1ec601bf
FXC
13938Try \`$0 --help' for more information.";;
13939 --help | --hel | -h )
13940 $as_echo "$ac_cs_usage"; exit ;;
13941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13942 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13943 ac_cs_silent=: ;;
13944
13945 # This is an error.
22e05272 13946 -*) as_fn_error $? "unrecognized option: \`$1'
1ec601bf
FXC
13947Try \`$0 --help' for more information." ;;
13948
13949 *) as_fn_append ac_config_targets " $1"
13950 ac_need_defaults=false ;;
13951
13952 esac
13953 shift
13954done
13955
13956ac_configure_extra_args=
13957
13958if $ac_cs_silent; then
13959 exec 6>/dev/null
13960 ac_configure_extra_args="$ac_configure_extra_args --silent"
13961fi
13962
13963_ACEOF
13964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13965if \$ac_cs_recheck; then
22e05272 13966 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1ec601bf
FXC
13967 shift
13968 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13969 CONFIG_SHELL='$SHELL'
13970 export CONFIG_SHELL
13971 exec "\$@"
13972fi
13973
13974_ACEOF
13975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13976exec 5>>config.log
13977{
13978 echo
13979 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13980## Running $as_me. ##
13981_ASBOX
13982 $as_echo "$ac_log"
13983} >&5
13984
13985_ACEOF
13986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13987#
13988# INIT-COMMANDS
13989#
ee5f0523
MK
13990
13991srcdir="$srcdir"
13992host="$host"
13993target="$target"
13994with_multisubdir="$with_multisubdir"
13995with_multisrctop="$with_multisrctop"
13996with_target_subdir="$with_target_subdir"
13997ac_configure_args="${multilib_arg} ${ac_configure_args}"
13998multi_basedir="$multi_basedir"
13999CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14000CC="$CC"
14001CXX="$CXX"
14002GFORTRAN="$GFORTRAN"
22e05272 14003GDC="$GDC"
1ec601bf
FXC
14004AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14005
14006
14007# The HP-UX ksh and POSIX shell print the target directory to stdout
14008# if CDPATH is set.
14009(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14010
14011sed_quote_subst='$sed_quote_subst'
14012double_quote_subst='$double_quote_subst'
14013delay_variable_subst='$delay_variable_subst'
14014macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14015macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14016enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14017enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14018pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14019enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14020SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14021ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14022host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14023host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14024host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14025build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14026build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14027build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14028SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14029Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14030GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14031EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14032FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14033LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14034NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14035LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14036max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14037ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14038exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14039lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14040lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14041lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14042reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14043reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14044OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14045deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14046file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14047AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14048AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14049STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14050RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14051old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14052old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14053old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14054lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14055CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14056CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14057compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14058GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14059lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14060lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14061lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14062lt_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"`'
14063objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14064MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14065lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14066lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14067lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14068lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14069lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14070need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14071DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14072NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14073LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14074OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14075OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14076libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14077shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14078extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14079archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14080enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14081export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14082whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14083compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14084old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14085old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14086archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14087archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14088module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14089module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14090with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14091allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14092no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14093hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14094hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14095hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14096hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14097hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14098hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14099hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14100hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14101inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14102link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14103fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14104always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14105export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14106exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14107include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14108prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14109file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14110variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14111need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14112need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14113version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14114runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14115shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14116shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14117libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14118library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14119soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14120install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14121postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14122postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14123finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14124finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14125hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14126sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14127sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14128hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14129enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14130enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14131enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14132old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14133striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14134
14135LTCC='$LTCC'
14136LTCFLAGS='$LTCFLAGS'
14137compiler='$compiler_DEFAULT'
14138
14139# A function that is used when there is no print builtin or printf.
14140func_fallback_echo ()
14141{
14142 eval 'cat <<_LTECHO_EOF
14143\$1
14144_LTECHO_EOF'
14145}
14146
14147# Quote evaled strings.
14148for var in SHELL \
14149ECHO \
14150SED \
14151GREP \
14152EGREP \
14153FGREP \
14154LD \
14155NM \
14156LN_S \
14157lt_SP2NL \
14158lt_NL2SP \
14159reload_flag \
14160OBJDUMP \
14161deplibs_check_method \
14162file_magic_cmd \
14163AR \
14164AR_FLAGS \
14165STRIP \
14166RANLIB \
14167CC \
14168CFLAGS \
14169compiler \
14170lt_cv_sys_global_symbol_pipe \
14171lt_cv_sys_global_symbol_to_cdecl \
14172lt_cv_sys_global_symbol_to_c_name_address \
14173lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14174lt_prog_compiler_no_builtin_flag \
14175lt_prog_compiler_wl \
14176lt_prog_compiler_pic \
14177lt_prog_compiler_static \
14178lt_cv_prog_compiler_c_o \
14179need_locks \
14180DSYMUTIL \
14181NMEDIT \
14182LIPO \
14183OTOOL \
14184OTOOL64 \
14185shrext_cmds \
14186export_dynamic_flag_spec \
14187whole_archive_flag_spec \
14188compiler_needs_object \
14189with_gnu_ld \
14190allow_undefined_flag \
14191no_undefined_flag \
14192hardcode_libdir_flag_spec \
14193hardcode_libdir_flag_spec_ld \
14194hardcode_libdir_separator \
14195fix_srcfile_path \
14196exclude_expsyms \
14197include_expsyms \
14198file_list_spec \
14199variables_saved_for_relink \
14200libname_spec \
14201library_names_spec \
14202soname_spec \
14203install_override_mode \
14204finish_eval \
14205old_striplib \
14206striplib; do
14207 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14208 *[\\\\\\\`\\"\\\$]*)
14209 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14210 ;;
14211 *)
14212 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14213 ;;
14214 esac
14215done
14216
14217# Double-quote double-evaled strings.
14218for var in reload_cmds \
14219old_postinstall_cmds \
14220old_postuninstall_cmds \
14221old_archive_cmds \
14222extract_expsyms_cmds \
14223old_archive_from_new_cmds \
14224old_archive_from_expsyms_cmds \
14225archive_cmds \
14226archive_expsym_cmds \
14227module_cmds \
14228module_expsym_cmds \
14229export_symbols_cmds \
14230prelink_cmds \
14231postinstall_cmds \
14232postuninstall_cmds \
14233finish_cmds \
14234sys_lib_search_path_spec \
14235sys_lib_dlsearch_path_spec; do
14236 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14237 *[\\\\\\\`\\"\\\$]*)
14238 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14239 ;;
14240 *)
14241 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14242 ;;
14243 esac
14244done
14245
14246ac_aux_dir='$ac_aux_dir'
14247xsi_shell='$xsi_shell'
14248lt_shell_append='$lt_shell_append'
14249
14250# See if we are running on zsh, and set the options which allow our
14251# commands through without removal of \ escapes INIT.
14252if test -n "\${ZSH_VERSION+set}" ; then
14253 setopt NO_GLOB_SUBST
14254fi
14255
14256
14257 PACKAGE='$PACKAGE'
14258 VERSION='$VERSION'
14259 TIMESTAMP='$TIMESTAMP'
14260 RM='$RM'
14261 ofile='$ofile'
14262
14263
14264
14265
1ec601bf
FXC
14266_ACEOF
14267
14268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14269
14270# Handling of arguments.
14271for ac_config_target in $ac_config_targets
14272do
14273 case $ac_config_target in
14274 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
ee5f0523 14275 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
1ec601bf
FXC
14276 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14277 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1ec601bf
FXC
14278 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14279
22e05272 14280 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1ec601bf
FXC
14281 esac
14282done
14283
14284
14285# If the user did not use the arguments to specify the items to instantiate,
14286# then the envvar interface is used. Set only those that are not.
14287# We use the long form for the default assignment because of an extremely
14288# bizarre bug on SunOS 4.1.3.
14289if $ac_need_defaults; then
14290 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14291 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14292 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14293fi
14294
14295# Have a temporary directory for convenience. Make it in the build tree
14296# simply because there is no reason against having it here, and in addition,
14297# creating and moving files from /tmp can sometimes cause problems.
14298# Hook for its removal unless debugging.
14299# Note that there is a small window in which the directory will not be cleaned:
14300# after its creation but before its name has been assigned to `$tmp'.
14301$debug ||
14302{
22e05272 14303 tmp= ac_tmp=
1ec601bf 14304 trap 'exit_status=$?
22e05272
JM
14305 : "${ac_tmp:=$tmp}"
14306 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1ec601bf
FXC
14307' 0
14308 trap 'as_fn_exit 1' 1 2 13 15
14309}
14310# Create a (secure) tmp directory for tmp files.
14311
14312{
14313 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 14314 test -d "$tmp"
1ec601bf
FXC
14315} ||
14316{
14317 tmp=./conf$$-$RANDOM
14318 (umask 077 && mkdir "$tmp")
22e05272
JM
14319} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14320ac_tmp=$tmp
1ec601bf
FXC
14321
14322# Set up the scripts for CONFIG_FILES section.
14323# No need to generate them if there are no CONFIG_FILES.
14324# This happens for instance with `./config.status config.h'.
14325if test -n "$CONFIG_FILES"; then
14326
14327
14328ac_cr=`echo X | tr X '\015'`
14329# On cygwin, bash can eat \r inside `` if the user requested igncr.
14330# But we know of no other shell where ac_cr would be empty at this
14331# point, so we can use a bashism as a fallback.
14332if test "x$ac_cr" = x; then
14333 eval ac_cr=\$\'\\r\'
14334fi
14335ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14336if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 14337 ac_cs_awk_cr='\\r'
1ec601bf
FXC
14338else
14339 ac_cs_awk_cr=$ac_cr
14340fi
14341
22e05272 14342echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1ec601bf
FXC
14343_ACEOF
14344
14345
14346{
14347 echo "cat >conf$$subs.awk <<_ACEOF" &&
14348 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14349 echo "_ACEOF"
14350} >conf$$subs.sh ||
22e05272
JM
14351 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14352ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1ec601bf
FXC
14353ac_delim='%!_!# '
14354for ac_last_try in false false false false false :; do
14355 . ./conf$$subs.sh ||
22e05272 14356 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1ec601bf
FXC
14357
14358 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14359 if test $ac_delim_n = $ac_delim_num; then
14360 break
14361 elif $ac_last_try; then
22e05272 14362 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1ec601bf
FXC
14363 else
14364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14365 fi
14366done
14367rm -f conf$$subs.sh
14368
14369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 14370cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1ec601bf
FXC
14371_ACEOF
14372sed -n '
14373h
14374s/^/S["/; s/!.*/"]=/
14375p
14376g
14377s/^[^!]*!//
14378:repl
14379t repl
14380s/'"$ac_delim"'$//
14381t delim
14382:nl
14383h
22e05272 14384s/\(.\{148\}\)..*/\1/
1ec601bf
FXC
14385t more1
14386s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14387p
14388n
14389b repl
14390:more1
14391s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14392p
14393g
14394s/.\{148\}//
14395t nl
14396:delim
14397h
22e05272 14398s/\(.\{148\}\)..*/\1/
1ec601bf
FXC
14399t more2
14400s/["\\]/\\&/g; s/^/"/; s/$/"/
14401p
14402b
14403:more2
14404s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14405p
14406g
14407s/.\{148\}//
14408t delim
14409' <conf$$subs.awk | sed '
14410/^[^""]/{
14411 N
14412 s/\n//
14413}
14414' >>$CONFIG_STATUS || ac_write_fail=1
14415rm -f conf$$subs.awk
14416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14417_ACAWK
22e05272 14418cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1ec601bf
FXC
14419 for (key in S) S_is_set[key] = 1
14420 FS = "\a"
14421
14422}
14423{
14424 line = $ 0
14425 nfields = split(line, field, "@")
14426 substed = 0
14427 len = length(field[1])
14428 for (i = 2; i < nfields; i++) {
14429 key = field[i]
14430 keylen = length(key)
14431 if (S_is_set[key]) {
14432 value = S[key]
14433 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14434 len += length(value) + length(field[++i])
14435 substed = 1
14436 } else
14437 len += 1 + keylen
14438 }
14439
14440 print line
14441}
14442
14443_ACAWK
14444_ACEOF
14445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14446if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14447 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14448else
14449 cat
22e05272
JM
14450fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14451 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1ec601bf
FXC
14452_ACEOF
14453
22e05272
JM
14454# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14455# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1ec601bf
FXC
14456# trailing colons and then remove the whole line if VPATH becomes empty
14457# (actually we leave an empty line to preserve line numbers).
14458if test "x$srcdir" = x.; then
22e05272
JM
14459 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14460h
14461s///
14462s/^/:/
14463s/[ ]*$/:/
14464s/:\$(srcdir):/:/g
14465s/:\${srcdir}:/:/g
14466s/:@srcdir@:/:/g
14467s/^:*//
1ec601bf 14468s/:*$//
22e05272
JM
14469x
14470s/\(=[ ]*\).*/\1/
14471G
14472s/\n//
1ec601bf
FXC
14473s/^[^=]*=[ ]*$//
14474}'
14475fi
14476
14477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14478fi # test -n "$CONFIG_FILES"
14479
14480# Set up the scripts for CONFIG_HEADERS section.
14481# No need to generate them if there are no CONFIG_HEADERS.
14482# This happens for instance with `./config.status Makefile'.
14483if test -n "$CONFIG_HEADERS"; then
22e05272 14484cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1ec601bf
FXC
14485BEGIN {
14486_ACEOF
14487
14488# Transform confdefs.h into an awk script `defines.awk', embedded as
14489# here-document in config.status, that substitutes the proper values into
14490# config.h.in to produce config.h.
14491
14492# Create a delimiter string that does not exist in confdefs.h, to ease
14493# handling of long lines.
14494ac_delim='%!_!# '
14495for ac_last_try in false false :; do
22e05272
JM
14496 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14497 if test -z "$ac_tt"; then
1ec601bf
FXC
14498 break
14499 elif $ac_last_try; then
22e05272 14500 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1ec601bf
FXC
14501 else
14502 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14503 fi
14504done
14505
14506# For the awk script, D is an array of macro values keyed by name,
14507# likewise P contains macro parameters if any. Preserve backslash
14508# newline sequences.
14509
14510ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14511sed -n '
14512s/.\{148\}/&'"$ac_delim"'/g
14513t rset
14514:rset
14515s/^[ ]*#[ ]*define[ ][ ]*/ /
14516t def
14517d
14518:def
14519s/\\$//
14520t bsnl
14521s/["\\]/\\&/g
14522s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14523D["\1"]=" \3"/p
14524s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14525d
14526:bsnl
14527s/["\\]/\\&/g
14528s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14529D["\1"]=" \3\\\\\\n"\\/p
14530t cont
14531s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14532t cont
14533d
14534:cont
14535n
14536s/.\{148\}/&'"$ac_delim"'/g
14537t clear
14538:clear
14539s/\\$//
14540t bsnlc
14541s/["\\]/\\&/g; s/^/"/; s/$/"/p
14542d
14543:bsnlc
14544s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14545b cont
14546' <confdefs.h | sed '
14547s/'"$ac_delim"'/"\\\
14548"/g' >>$CONFIG_STATUS || ac_write_fail=1
14549
14550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14551 for (key in D) D_is_set[key] = 1
14552 FS = "\a"
14553}
14554/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14555 line = \$ 0
14556 split(line, arg, " ")
14557 if (arg[1] == "#") {
14558 defundef = arg[2]
14559 mac1 = arg[3]
14560 } else {
14561 defundef = substr(arg[1], 2)
14562 mac1 = arg[2]
14563 }
14564 split(mac1, mac2, "(") #)
14565 macro = mac2[1]
14566 prefix = substr(line, 1, index(line, defundef) - 1)
14567 if (D_is_set[macro]) {
14568 # Preserve the white space surrounding the "#".
14569 print prefix "define", macro P[macro] D[macro]
14570 next
14571 } else {
14572 # Replace #undef with comments. This is necessary, for example,
14573 # in the case of _POSIX_SOURCE, which is predefined and required
14574 # on some systems where configure will not decide to define it.
14575 if (defundef == "undef") {
14576 print "/*", prefix defundef, macro, "*/"
14577 next
14578 }
14579 }
14580}
14581{ print }
14582_ACAWK
14583_ACEOF
14584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 14585 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1ec601bf
FXC
14586fi # test -n "$CONFIG_HEADERS"
14587
14588
14589eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14590shift
14591for ac_tag
14592do
14593 case $ac_tag in
14594 :[FHLC]) ac_mode=$ac_tag; continue;;
14595 esac
14596 case $ac_mode$ac_tag in
14597 :[FHL]*:*);;
22e05272 14598 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1ec601bf
FXC
14599 :[FH]-) ac_tag=-:-;;
14600 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14601 esac
14602 ac_save_IFS=$IFS
14603 IFS=:
14604 set x $ac_tag
14605 IFS=$ac_save_IFS
14606 shift
14607 ac_file=$1
14608 shift
14609
14610 case $ac_mode in
14611 :L) ac_source=$1;;
14612 :[FH])
14613 ac_file_inputs=
14614 for ac_f
14615 do
14616 case $ac_f in
22e05272 14617 -) ac_f="$ac_tmp/stdin";;
1ec601bf
FXC
14618 *) # Look for the file first in the build tree, then in the source tree
14619 # (if the path is not absolute). The absolute path cannot be DOS-style,
14620 # because $ac_f cannot contain `:'.
14621 test -f "$ac_f" ||
14622 case $ac_f in
14623 [\\/$]*) false;;
14624 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14625 esac ||
22e05272 14626 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1ec601bf
FXC
14627 esac
14628 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14629 as_fn_append ac_file_inputs " '$ac_f'"
14630 done
14631
14632 # Let's still pretend it is `configure' which instantiates (i.e., don't
14633 # use $as_me), people would be surprised to read:
14634 # /* config.h. Generated by config.status. */
14635 configure_input='Generated from '`
14636 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14637 `' by configure.'
14638 if test x"$ac_file" != x-; then
14639 configure_input="$ac_file. $configure_input"
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14641$as_echo "$as_me: creating $ac_file" >&6;}
14642 fi
14643 # Neutralize special characters interpreted by sed in replacement strings.
14644 case $configure_input in #(
14645 *\&* | *\|* | *\\* )
14646 ac_sed_conf_input=`$as_echo "$configure_input" |
14647 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14648 *) ac_sed_conf_input=$configure_input;;
14649 esac
14650
14651 case $ac_tag in
22e05272
JM
14652 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1ec601bf
FXC
14654 esac
14655 ;;
14656 esac
14657
14658 ac_dir=`$as_dirname -- "$ac_file" ||
14659$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14660 X"$ac_file" : 'X\(//\)[^/]' \| \
14661 X"$ac_file" : 'X\(//\)$' \| \
14662 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14663$as_echo X"$ac_file" |
14664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14665 s//\1/
14666 q
14667 }
14668 /^X\(\/\/\)[^/].*/{
14669 s//\1/
14670 q
14671 }
14672 /^X\(\/\/\)$/{
14673 s//\1/
14674 q
14675 }
14676 /^X\(\/\).*/{
14677 s//\1/
14678 q
14679 }
14680 s/.*/./; q'`
14681 as_dir="$ac_dir"; as_fn_mkdir_p
14682 ac_builddir=.
14683
14684case "$ac_dir" in
14685.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14686*)
14687 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14688 # A ".." for each directory in $ac_dir_suffix.
14689 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14690 case $ac_top_builddir_sub in
14691 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14692 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14693 esac ;;
14694esac
14695ac_abs_top_builddir=$ac_pwd
14696ac_abs_builddir=$ac_pwd$ac_dir_suffix
14697# for backward compatibility:
14698ac_top_builddir=$ac_top_build_prefix
14699
14700case $srcdir in
14701 .) # We are building in place.
14702 ac_srcdir=.
14703 ac_top_srcdir=$ac_top_builddir_sub
14704 ac_abs_top_srcdir=$ac_pwd ;;
14705 [\\/]* | ?:[\\/]* ) # Absolute name.
14706 ac_srcdir=$srcdir$ac_dir_suffix;
14707 ac_top_srcdir=$srcdir
14708 ac_abs_top_srcdir=$srcdir ;;
14709 *) # Relative name.
14710 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14711 ac_top_srcdir=$ac_top_build_prefix$srcdir
14712 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14713esac
14714ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14715
14716
14717 case $ac_mode in
14718 :F)
14719 #
14720 # CONFIG_FILE
14721 #
14722
14723 case $INSTALL in
14724 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14725 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14726 esac
14727 ac_MKDIR_P=$MKDIR_P
14728 case $MKDIR_P in
14729 [\\/$]* | ?:[\\/]* ) ;;
14730 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14731 esac
14732_ACEOF
14733
14734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14735# If the template does not know about datarootdir, expand it.
14736# FIXME: This hack should be removed a few years after 2.60.
14737ac_datarootdir_hack=; ac_datarootdir_seen=
14738ac_sed_dataroot='
14739/datarootdir/ {
14740 p
14741 q
14742}
14743/@datadir@/p
14744/@docdir@/p
14745/@infodir@/p
14746/@localedir@/p
14747/@mandir@/p'
14748case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14749*datarootdir*) ac_datarootdir_seen=yes;;
14750*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14752$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14753_ACEOF
14754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14755 ac_datarootdir_hack='
14756 s&@datadir@&$datadir&g
14757 s&@docdir@&$docdir&g
14758 s&@infodir@&$infodir&g
14759 s&@localedir@&$localedir&g
14760 s&@mandir@&$mandir&g
14761 s&\\\${datarootdir}&$datarootdir&g' ;;
14762esac
14763_ACEOF
14764
14765# Neutralize VPATH when `$srcdir' = `.'.
14766# Shell code in configure.ac might set extrasub.
14767# FIXME: do we really want to maintain this feature?
14768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14769ac_sed_extra="$ac_vpsub
14770$extrasub
14771_ACEOF
14772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14773:t
14774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14775s|@configure_input@|$ac_sed_conf_input|;t t
14776s&@top_builddir@&$ac_top_builddir_sub&;t t
14777s&@top_build_prefix@&$ac_top_build_prefix&;t t
14778s&@srcdir@&$ac_srcdir&;t t
14779s&@abs_srcdir@&$ac_abs_srcdir&;t t
14780s&@top_srcdir@&$ac_top_srcdir&;t t
14781s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14782s&@builddir@&$ac_builddir&;t t
14783s&@abs_builddir@&$ac_abs_builddir&;t t
14784s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14785s&@INSTALL@&$ac_INSTALL&;t t
14786s&@MKDIR_P@&$ac_MKDIR_P&;t t
14787$ac_datarootdir_hack
14788"
22e05272
JM
14789eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14790 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1ec601bf
FXC
14791
14792test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
14793 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14795 "$ac_tmp/out"`; test -z "$ac_out"; } &&
1ec601bf 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 14797which seems to be undefined. Please make sure it is defined" >&5
1ec601bf 14798$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 14799which seems to be undefined. Please make sure it is defined" >&2;}
1ec601bf 14800
22e05272 14801 rm -f "$ac_tmp/stdin"
1ec601bf 14802 case $ac_file in
22e05272
JM
14803 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14804 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1ec601bf 14805 esac \
22e05272 14806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1ec601bf
FXC
14807 ;;
14808 :H)
14809 #
14810 # CONFIG_HEADER
14811 #
14812 if test x"$ac_file" != x-; then
14813 {
14814 $as_echo "/* $configure_input */" \
22e05272
JM
14815 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14816 } >"$ac_tmp/config.h" \
14817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14818 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1ec601bf
FXC
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14820$as_echo "$as_me: $ac_file is unchanged" >&6;}
14821 else
14822 rm -f "$ac_file"
22e05272
JM
14823 mv "$ac_tmp/config.h" "$ac_file" \
14824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1ec601bf
FXC
14825 fi
14826 else
14827 $as_echo "/* $configure_input */" \
22e05272
JM
14828 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14829 || as_fn_error $? "could not create -" "$LINENO" 5
1ec601bf
FXC
14830 fi
14831# Compute "$ac_file"'s index in $config_headers.
14832_am_arg="$ac_file"
14833_am_stamp_count=1
14834for _am_header in $config_headers :; do
14835 case $_am_header in
14836 $_am_arg | $_am_arg:* )
14837 break ;;
14838 * )
14839 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14840 esac
14841done
14842echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14843$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14844 X"$_am_arg" : 'X\(//\)[^/]' \| \
14845 X"$_am_arg" : 'X\(//\)$' \| \
14846 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14847$as_echo X"$_am_arg" |
14848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14849 s//\1/
14850 q
14851 }
14852 /^X\(\/\/\)[^/].*/{
14853 s//\1/
14854 q
14855 }
14856 /^X\(\/\/\)$/{
14857 s//\1/
14858 q
14859 }
14860 /^X\(\/\).*/{
14861 s//\1/
14862 q
14863 }
14864 s/.*/./; q'`/stamp-h$_am_stamp_count
14865 ;;
14866
14867 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14868$as_echo "$as_me: executing $ac_file commands" >&6;}
14869 ;;
14870 esac
14871
14872
14873 case $ac_file$ac_mode in
ee5f0523
MK
14874 "default-1":C)
14875# Only add multilib support code if we just rebuilt the top-level
14876# Makefile.
14877case " $CONFIG_FILES " in
14878 *" Makefile "*)
14879 ac_file=Makefile . ${multi_basedir}/config-ml.in
14880 ;;
14881esac ;;
1ec601bf 14882 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 14883 # Older Autoconf quotes --file arguments for eval, but not when files
1ec601bf
FXC
14884 # are listed without --file. Let's play safe and only enable the eval
14885 # if we detect the quoting.
14886 case $CONFIG_FILES in
14887 *\'*) eval set x "$CONFIG_FILES" ;;
14888 *) set x $CONFIG_FILES ;;
14889 esac
14890 shift
14891 for mf
14892 do
14893 # Strip MF so we end up with the name of the file.
14894 mf=`echo "$mf" | sed -e 's/:.*$//'`
14895 # Check whether this is an Automake generated Makefile or not.
22e05272 14896 # We used to match only the files named 'Makefile.in', but
1ec601bf
FXC
14897 # some people rename them; so instead we look at the file content.
14898 # Grep'ing the first line is not enough: some people post-process
14899 # each Makefile.in and add a new line on top of each file to say so.
14900 # Grep'ing the whole file is not good either: AIX grep has a line
14901 # limit of 2048, but all sed's we know have understand at least 4000.
14902 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14903 dirpart=`$as_dirname -- "$mf" ||
14904$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14905 X"$mf" : 'X\(//\)[^/]' \| \
14906 X"$mf" : 'X\(//\)$' \| \
14907 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14908$as_echo X"$mf" |
14909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14910 s//\1/
14911 q
14912 }
14913 /^X\(\/\/\)[^/].*/{
14914 s//\1/
14915 q
14916 }
14917 /^X\(\/\/\)$/{
14918 s//\1/
14919 q
14920 }
14921 /^X\(\/\).*/{
14922 s//\1/
14923 q
14924 }
14925 s/.*/./; q'`
14926 else
14927 continue
14928 fi
14929 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 14930 # from the Makefile without running 'make'.
1ec601bf
FXC
14931 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14932 test -z "$DEPDIR" && continue
14933 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 14934 test -z "$am__include" && continue
1ec601bf 14935 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1ec601bf
FXC
14936 # Find all dependency output files, they are included files with
14937 # $(DEPDIR) in their names. We invoke sed twice because it is the
14938 # simplest approach to changing $(DEPDIR) to its actual value in the
14939 # expansion.
14940 for file in `sed -n "
14941 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 14942 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1ec601bf
FXC
14943 # Make sure the directory exists.
14944 test -f "$dirpart/$file" && continue
14945 fdir=`$as_dirname -- "$file" ||
14946$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947 X"$file" : 'X\(//\)[^/]' \| \
14948 X"$file" : 'X\(//\)$' \| \
14949 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14950$as_echo X"$file" |
14951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14952 s//\1/
14953 q
14954 }
14955 /^X\(\/\/\)[^/].*/{
14956 s//\1/
14957 q
14958 }
14959 /^X\(\/\/\)$/{
14960 s//\1/
14961 q
14962 }
14963 /^X\(\/\).*/{
14964 s//\1/
14965 q
14966 }
14967 s/.*/./; q'`
14968 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14969 # echo "creating $dirpart/$file"
14970 echo '# dummy' > "$dirpart/$file"
14971 done
14972 done
14973}
14974 ;;
14975 "libtool":C)
14976
14977 # See if we are running on zsh, and set the options which allow our
14978 # commands through without removal of \ escapes.
14979 if test -n "${ZSH_VERSION+set}" ; then
14980 setopt NO_GLOB_SUBST
14981 fi
14982
14983 cfgfile="${ofile}T"
14984 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14985 $RM "$cfgfile"
14986
14987 cat <<_LT_EOF >> "$cfgfile"
14988#! $SHELL
14989
14990# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14991# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14992# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14993# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14994#
14995# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14996# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14997# Written by Gordon Matzigkeit, 1996
14998#
14999# This file is part of GNU Libtool.
15000#
15001# GNU Libtool is free software; you can redistribute it and/or
15002# modify it under the terms of the GNU General Public License as
15003# published by the Free Software Foundation; either version 2 of
15004# the License, or (at your option) any later version.
15005#
15006# As a special exception to the GNU General Public License,
15007# if you distribute this file as part of a program or library that
15008# is built using GNU Libtool, you may include this file under the
15009# same distribution terms that you use for the rest of that program.
15010#
15011# GNU Libtool is distributed in the hope that it will be useful,
15012# but WITHOUT ANY WARRANTY; without even the implied warranty of
15013# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15014# GNU General Public License for more details.
15015#
15016# You should have received a copy of the GNU General Public License
15017# along with GNU Libtool; see the file COPYING. If not, a copy
15018# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15019# obtained by writing to the Free Software Foundation, Inc.,
15020# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15021
15022
15023# The names of the tagged configurations supported by this script.
15024available_tags=""
15025
15026# ### BEGIN LIBTOOL CONFIG
15027
15028# Which release of libtool.m4 was used?
15029macro_version=$macro_version
15030macro_revision=$macro_revision
15031
15032# Whether or not to build shared libraries.
15033build_libtool_libs=$enable_shared
15034
15035# Whether or not to build static libraries.
15036build_old_libs=$enable_static
15037
15038# What type of objects to build.
15039pic_mode=$pic_mode
15040
15041# Whether or not to optimize for fast installation.
15042fast_install=$enable_fast_install
15043
15044# Shell to use when invoking shell scripts.
15045SHELL=$lt_SHELL
15046
15047# An echo program that protects backslashes.
15048ECHO=$lt_ECHO
15049
15050# The host system.
15051host_alias=$host_alias
15052host=$host
15053host_os=$host_os
15054
15055# The build system.
15056build_alias=$build_alias
15057build=$build
15058build_os=$build_os
15059
15060# A sed program that does not truncate output.
15061SED=$lt_SED
15062
15063# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15064Xsed="\$SED -e 1s/^X//"
15065
15066# A grep program that handles long lines.
15067GREP=$lt_GREP
15068
15069# An ERE matcher.
15070EGREP=$lt_EGREP
15071
15072# A literal string matcher.
15073FGREP=$lt_FGREP
15074
15075# A BSD- or MS-compatible name lister.
15076NM=$lt_NM
15077
15078# Whether we need soft or hard links.
15079LN_S=$lt_LN_S
15080
15081# What is the maximum length of a command?
15082max_cmd_len=$max_cmd_len
15083
15084# Object file suffix (normally "o").
15085objext=$ac_objext
15086
15087# Executable file suffix (normally "").
15088exeext=$exeext
15089
15090# whether the shell understands "unset".
15091lt_unset=$lt_unset
15092
15093# turn spaces into newlines.
15094SP2NL=$lt_lt_SP2NL
15095
15096# turn newlines into spaces.
15097NL2SP=$lt_lt_NL2SP
15098
15099# An object symbol dumper.
15100OBJDUMP=$lt_OBJDUMP
15101
15102# Method to check whether dependent libraries are shared objects.
15103deplibs_check_method=$lt_deplibs_check_method
15104
15105# Command to use when deplibs_check_method == "file_magic".
15106file_magic_cmd=$lt_file_magic_cmd
15107
15108# The archiver.
15109AR=$lt_AR
15110AR_FLAGS=$lt_AR_FLAGS
15111
15112# A symbol stripping program.
15113STRIP=$lt_STRIP
15114
15115# Commands used to install an old-style archive.
15116RANLIB=$lt_RANLIB
15117old_postinstall_cmds=$lt_old_postinstall_cmds
15118old_postuninstall_cmds=$lt_old_postuninstall_cmds
15119
15120# Whether to use a lock for old archive extraction.
15121lock_old_archive_extraction=$lock_old_archive_extraction
15122
15123# A C compiler.
15124LTCC=$lt_CC
15125
15126# LTCC compiler flags.
15127LTCFLAGS=$lt_CFLAGS
15128
15129# Take the output of nm and produce a listing of raw symbols and C names.
15130global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15131
15132# Transform the output of nm in a proper C declaration.
15133global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15134
15135# Transform the output of nm in a C name address pair.
15136global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15137
15138# Transform the output of nm in a C name address pair when lib prefix is needed.
15139global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15140
15141# The name of the directory that contains temporary libtool files.
15142objdir=$objdir
15143
15144# Used to examine libraries when file_magic_cmd begins with "file".
15145MAGIC_CMD=$MAGIC_CMD
15146
15147# Must we lock files when doing compilation?
15148need_locks=$lt_need_locks
15149
15150# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15151DSYMUTIL=$lt_DSYMUTIL
15152
15153# Tool to change global to local symbols on Mac OS X.
15154NMEDIT=$lt_NMEDIT
15155
15156# Tool to manipulate fat objects and archives on Mac OS X.
15157LIPO=$lt_LIPO
15158
15159# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15160OTOOL=$lt_OTOOL
15161
15162# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15163OTOOL64=$lt_OTOOL64
15164
15165# Old archive suffix (normally "a").
15166libext=$libext
15167
15168# Shared library suffix (normally ".so").
15169shrext_cmds=$lt_shrext_cmds
15170
15171# The commands to extract the exported symbol list from a shared archive.
15172extract_expsyms_cmds=$lt_extract_expsyms_cmds
15173
15174# Variables whose values should be saved in libtool wrapper scripts and
15175# restored at link time.
15176variables_saved_for_relink=$lt_variables_saved_for_relink
15177
15178# Do we need the "lib" prefix for modules?
15179need_lib_prefix=$need_lib_prefix
15180
15181# Do we need a version for libraries?
15182need_version=$need_version
15183
15184# Library versioning type.
15185version_type=$version_type
15186
15187# Shared library runtime path variable.
15188runpath_var=$runpath_var
15189
15190# Shared library path variable.
15191shlibpath_var=$shlibpath_var
15192
15193# Is shlibpath searched before the hard-coded library search path?
15194shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15195
15196# Format of library name prefix.
15197libname_spec=$lt_libname_spec
15198
15199# List of archive names. First name is the real one, the rest are links.
15200# The last name is the one that the linker finds with -lNAME
15201library_names_spec=$lt_library_names_spec
15202
15203# The coded name of the library, if different from the real name.
15204soname_spec=$lt_soname_spec
15205
15206# Permission mode override for installation of shared libraries.
15207install_override_mode=$lt_install_override_mode
15208
15209# Command to use after installation of a shared archive.
15210postinstall_cmds=$lt_postinstall_cmds
15211
15212# Command to use after uninstallation of a shared archive.
15213postuninstall_cmds=$lt_postuninstall_cmds
15214
15215# Commands used to finish a libtool library installation in a directory.
15216finish_cmds=$lt_finish_cmds
15217
15218# As "finish_cmds", except a single script fragment to be evaled but
15219# not shown.
15220finish_eval=$lt_finish_eval
15221
15222# Whether we should hardcode library paths into libraries.
15223hardcode_into_libs=$hardcode_into_libs
15224
15225# Compile-time system search path for libraries.
15226sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15227
15228# Run-time system search path for libraries.
15229sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15230
15231# Whether dlopen is supported.
15232dlopen_support=$enable_dlopen
15233
15234# Whether dlopen of programs is supported.
15235dlopen_self=$enable_dlopen_self
15236
15237# Whether dlopen of statically linked programs is supported.
15238dlopen_self_static=$enable_dlopen_self_static
15239
15240# Commands to strip libraries.
15241old_striplib=$lt_old_striplib
15242striplib=$lt_striplib
15243
15244
15245# The linker used to build libraries.
15246LD=$lt_LD
15247
15248# How to create reloadable object files.
15249reload_flag=$lt_reload_flag
15250reload_cmds=$lt_reload_cmds
15251
15252# Commands used to build an old-style archive.
15253old_archive_cmds=$lt_old_archive_cmds
15254
15255# A language specific compiler.
15256CC=$lt_compiler
15257
15258# Is the compiler the GNU compiler?
15259with_gcc=$GCC
15260
15261# Compiler flag to turn off builtin functions.
15262no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15263
15264# How to pass a linker flag through the compiler.
15265wl=$lt_lt_prog_compiler_wl
15266
15267# Additional compiler flags for building library objects.
15268pic_flag=$lt_lt_prog_compiler_pic
15269
15270# Compiler flag to prevent dynamic linking.
15271link_static_flag=$lt_lt_prog_compiler_static
15272
15273# Does compiler simultaneously support -c and -o options?
15274compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15275
15276# Whether or not to add -lc for building shared libraries.
15277build_libtool_need_lc=$archive_cmds_need_lc
15278
15279# Whether or not to disallow shared libs when runtime libs are static.
15280allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15281
15282# Compiler flag to allow reflexive dlopens.
15283export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15284
15285# Compiler flag to generate shared objects directly from archives.
15286whole_archive_flag_spec=$lt_whole_archive_flag_spec
15287
15288# Whether the compiler copes with passing no objects directly.
15289compiler_needs_object=$lt_compiler_needs_object
15290
15291# Create an old-style archive from a shared archive.
15292old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15293
15294# Create a temporary old-style archive to link instead of a shared archive.
15295old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15296
15297# Commands used to build a shared archive.
15298archive_cmds=$lt_archive_cmds
15299archive_expsym_cmds=$lt_archive_expsym_cmds
15300
15301# Commands used to build a loadable module if different from building
15302# a shared archive.
15303module_cmds=$lt_module_cmds
15304module_expsym_cmds=$lt_module_expsym_cmds
15305
15306# Whether we are building with GNU ld or not.
15307with_gnu_ld=$lt_with_gnu_ld
15308
15309# Flag that allows shared libraries with undefined symbols to be built.
15310allow_undefined_flag=$lt_allow_undefined_flag
15311
15312# Flag that enforces no undefined symbols.
15313no_undefined_flag=$lt_no_undefined_flag
15314
15315# Flag to hardcode \$libdir into a binary during linking.
15316# This must work even if \$libdir does not exist
15317hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15318
15319# If ld is used when linking, flag to hardcode \$libdir into a binary
15320# during linking. This must work even if \$libdir does not exist.
15321hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15322
15323# Whether we need a single "-rpath" flag with a separated argument.
15324hardcode_libdir_separator=$lt_hardcode_libdir_separator
15325
15326# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15327# DIR into the resulting binary.
15328hardcode_direct=$hardcode_direct
15329
15330# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15331# DIR into the resulting binary and the resulting library dependency is
15332# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15333# library is relocated.
15334hardcode_direct_absolute=$hardcode_direct_absolute
15335
15336# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15337# into the resulting binary.
15338hardcode_minus_L=$hardcode_minus_L
15339
15340# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15341# into the resulting binary.
15342hardcode_shlibpath_var=$hardcode_shlibpath_var
15343
15344# Set to "yes" if building a shared library automatically hardcodes DIR
15345# into the library and all subsequent libraries and executables linked
15346# against it.
15347hardcode_automatic=$hardcode_automatic
15348
15349# Set to yes if linker adds runtime paths of dependent libraries
15350# to runtime path list.
15351inherit_rpath=$inherit_rpath
15352
15353# Whether libtool must link a program against all its dependency libraries.
15354link_all_deplibs=$link_all_deplibs
15355
15356# Fix the shell variable \$srcfile for the compiler.
15357fix_srcfile_path=$lt_fix_srcfile_path
15358
15359# Set to "yes" if exported symbols are required.
15360always_export_symbols=$always_export_symbols
15361
15362# The commands to list exported symbols.
15363export_symbols_cmds=$lt_export_symbols_cmds
15364
15365# Symbols that should not be listed in the preloaded symbols.
15366exclude_expsyms=$lt_exclude_expsyms
15367
15368# Symbols that must always be exported.
15369include_expsyms=$lt_include_expsyms
15370
15371# Commands necessary for linking programs (against libraries) with templates.
15372prelink_cmds=$lt_prelink_cmds
15373
15374# Specify filename containing input files.
15375file_list_spec=$lt_file_list_spec
15376
15377# How to hardcode a shared library path into an executable.
15378hardcode_action=$hardcode_action
15379
15380# ### END LIBTOOL CONFIG
15381
15382_LT_EOF
15383
15384 case $host_os in
15385 aix3*)
15386 cat <<\_LT_EOF >> "$cfgfile"
15387# AIX sometimes has problems with the GCC collect2 program. For some
15388# reason, if we set the COLLECT_NAMES environment variable, the problems
15389# vanish in a puff of smoke.
15390if test "X${COLLECT_NAMES+set}" != Xset; then
15391 COLLECT_NAMES=
15392 export COLLECT_NAMES
15393fi
15394_LT_EOF
15395 ;;
15396 esac
15397
15398
15399ltmain="$ac_aux_dir/ltmain.sh"
15400
15401
15402 # We use sed instead of cat because bash on DJGPP gets confused if
15403 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15404 # text mode, it properly converts lines to CR/LF. This bash problem
15405 # is reportedly fixed, but why not run on old versions too?
15406 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15407 || (rm -f "$cfgfile"; exit 1)
15408
15409 case $xsi_shell in
15410 yes)
15411 cat << \_LT_EOF >> "$cfgfile"
15412
15413# func_dirname file append nondir_replacement
15414# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15415# otherwise set result to NONDIR_REPLACEMENT.
15416func_dirname ()
15417{
15418 case ${1} in
15419 */*) func_dirname_result="${1%/*}${2}" ;;
15420 * ) func_dirname_result="${3}" ;;
15421 esac
15422}
15423
15424# func_basename file
15425func_basename ()
15426{
15427 func_basename_result="${1##*/}"
15428}
15429
15430# func_dirname_and_basename file append nondir_replacement
15431# perform func_basename and func_dirname in a single function
15432# call:
15433# dirname: Compute the dirname of FILE. If nonempty,
15434# add APPEND to the result, otherwise set result
15435# to NONDIR_REPLACEMENT.
15436# value returned in "$func_dirname_result"
15437# basename: Compute filename of FILE.
15438# value retuned in "$func_basename_result"
15439# Implementation must be kept synchronized with func_dirname
15440# and func_basename. For efficiency, we do not delegate to
15441# those functions but instead duplicate the functionality here.
15442func_dirname_and_basename ()
15443{
15444 case ${1} in
15445 */*) func_dirname_result="${1%/*}${2}" ;;
15446 * ) func_dirname_result="${3}" ;;
15447 esac
15448 func_basename_result="${1##*/}"
15449}
15450
15451# func_stripname prefix suffix name
15452# strip PREFIX and SUFFIX off of NAME.
15453# PREFIX and SUFFIX must not contain globbing or regex special
15454# characters, hashes, percent signs, but SUFFIX may contain a leading
15455# dot (in which case that matches only a dot).
15456func_stripname ()
15457{
15458 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15459 # positional parameters, so assign one to ordinary parameter first.
15460 func_stripname_result=${3}
15461 func_stripname_result=${func_stripname_result#"${1}"}
15462 func_stripname_result=${func_stripname_result%"${2}"}
15463}
15464
15465# func_opt_split
15466func_opt_split ()
15467{
15468 func_opt_split_opt=${1%%=*}
15469 func_opt_split_arg=${1#*=}
15470}
15471
15472# func_lo2o object
15473func_lo2o ()
15474{
15475 case ${1} in
15476 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15477 *) func_lo2o_result=${1} ;;
15478 esac
15479}
15480
15481# func_xform libobj-or-source
15482func_xform ()
15483{
15484 func_xform_result=${1%.*}.lo
15485}
15486
15487# func_arith arithmetic-term...
15488func_arith ()
15489{
15490 func_arith_result=$(( $* ))
15491}
15492
15493# func_len string
15494# STRING may not start with a hyphen.
15495func_len ()
15496{
15497 func_len_result=${#1}
15498}
15499
15500_LT_EOF
15501 ;;
15502 *) # Bourne compatible functions.
15503 cat << \_LT_EOF >> "$cfgfile"
15504
15505# func_dirname file append nondir_replacement
15506# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15507# otherwise set result to NONDIR_REPLACEMENT.
15508func_dirname ()
15509{
15510 # Extract subdirectory from the argument.
15511 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15512 if test "X$func_dirname_result" = "X${1}"; then
15513 func_dirname_result="${3}"
15514 else
15515 func_dirname_result="$func_dirname_result${2}"
15516 fi
15517}
15518
15519# func_basename file
15520func_basename ()
15521{
15522 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15523}
15524
15525
15526# func_stripname prefix suffix name
15527# strip PREFIX and SUFFIX off of NAME.
15528# PREFIX and SUFFIX must not contain globbing or regex special
15529# characters, hashes, percent signs, but SUFFIX may contain a leading
15530# dot (in which case that matches only a dot).
15531# func_strip_suffix prefix name
15532func_stripname ()
15533{
15534 case ${2} in
15535 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15536 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15537 esac
15538}
15539
15540# sed scripts:
15541my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15542my_sed_long_arg='1s/^-[^=]*=//'
15543
15544# func_opt_split
15545func_opt_split ()
15546{
15547 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15548 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15549}
15550
15551# func_lo2o object
15552func_lo2o ()
15553{
15554 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15555}
15556
15557# func_xform libobj-or-source
15558func_xform ()
15559{
15560 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15561}
15562
15563# func_arith arithmetic-term...
15564func_arith ()
15565{
15566 func_arith_result=`expr "$@"`
15567}
15568
15569# func_len string
15570# STRING may not start with a hyphen.
15571func_len ()
15572{
15573 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15574}
15575
15576_LT_EOF
15577esac
15578
15579case $lt_shell_append in
15580 yes)
15581 cat << \_LT_EOF >> "$cfgfile"
15582
15583# func_append var value
15584# Append VALUE to the end of shell variable VAR.
15585func_append ()
15586{
15587 eval "$1+=\$2"
15588}
15589_LT_EOF
15590 ;;
15591 *)
15592 cat << \_LT_EOF >> "$cfgfile"
15593
15594# func_append var value
15595# Append VALUE to the end of shell variable VAR.
15596func_append ()
15597{
15598 eval "$1=\$$1\$2"
15599}
15600
15601_LT_EOF
15602 ;;
15603 esac
15604
15605
15606 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15607 || (rm -f "$cfgfile"; exit 1)
15608
15609 mv -f "$cfgfile" "$ofile" ||
15610 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15611 chmod +x "$ofile"
15612
15613 ;;
1ec601bf
FXC
15614
15615 esac
15616done # for ac_tag
15617
15618
15619as_fn_exit 0
15620_ACEOF
15621ac_clean_files=$ac_clean_files_save
15622
15623test $ac_write_fail = 0 ||
22e05272 15624 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1ec601bf
FXC
15625
15626
15627# configure is writing to config.log, and then calls config.status.
15628# config.status does its own redirection, appending to config.log.
15629# Unfortunately, on DOS this fails, as config.log is still kept open
15630# by configure, so config.status won't be able to write to it; its
15631# output is simply discarded. So we exec the FD to /dev/null,
15632# effectively closing config.log, so it can be properly (re)opened and
15633# appended to by config.status. When coming back to configure, we
15634# need to make the FD available again.
15635if test "$no_create" != yes; then
15636 ac_cs_success=:
15637 ac_config_status_args=
15638 test "$silent" = yes &&
15639 ac_config_status_args="$ac_config_status_args --quiet"
15640 exec 5>/dev/null
15641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15642 exec 5>>config.log
15643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15644 # would make configure fail if this is the last instruction.
22e05272 15645 $ac_cs_success || as_fn_exit 1
1ec601bf
FXC
15646fi
15647if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15649$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15650fi
15651