]> git.ipfire.org Git - thirdparty/gcc.git/blame - libatomic/configure
Config,Darwin: Allow for configuring Darwin to use embedded runpath.
[thirdparty/gcc.git] / libatomic / configure
CommitLineData
48310492
RH
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for GNU Atomic Library 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
48310492 7#
48310492
RH
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=
48310492
RH
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;}
48310492
RH
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"
48310492
RH
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
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
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
48310492
RH
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"
48310492
RH
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
48310492
RH
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# ----------------------------------------
48310492
RH
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.
48310492
RH
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
48310492 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
48310492
RH
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
48310492
RH
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'.
48310492 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
48310492
RH
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
48310492
RH
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
48310492
RH
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
48310492
RH
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
48310492
RH
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
48310492
RH
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='GNU Atomic Library'
589PACKAGE_TARNAME='libatomic'
590PACKAGE_VERSION='1.0'
591PACKAGE_STRING='GNU Atomic Library 1.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL='http://www.gnu.org/software/libatomic/'
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
48310492
RH
636ARCH_X86_64_FALSE
637ARCH_X86_64_TRUE
638ARCH_I386_FALSE
639ARCH_I386_TRUE
640ARCH_ARM_LINUX_FALSE
641ARCH_ARM_LINUX_TRUE
141abc6f
SE
642ARCH_AARCH64_LINUX_FALSE
643ARCH_AARCH64_LINUX_TRUE
48310492
RH
644HAVE_IFUNC_FALSE
645HAVE_IFUNC_TRUE
47ddb895 646tmake_file
48310492
RH
647SIZES
648XLDFLAGS
649XCFLAGS
650config_path
651LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
652LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
653LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
654LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
655LIBAT_BUILD_VERSIONED_SHLIB_FALSE
656LIBAT_BUILD_VERSIONED_SHLIB_TRUE
657OPT_LDFLAGS
658SECTION_LDFLAGS
9d0e85af 659enable_aarch64_lse
48310492 660libtool_VERSION
6a6d3817
IS
661ENABLE_DARWIN_AT_RPATH_FALSE
662ENABLE_DARWIN_AT_RPATH_TRUE
fa3cd3c3
RH
663MAINT
664MAINTAINER_MODE_FALSE
665MAINTAINER_MODE_TRUE
48310492
RH
666enable_static
667enable_shared
dc3368d0 668lt_host_flags
48310492
RH
669CPP
670OTOOL64
671OTOOL
672LIPO
673NMEDIT
674DSYMUTIL
675OBJDUMP
676LN_S
677ac_ct_DUMPBIN
678DUMPBIN
679LD
680FGREP
681EGREP
682GREP
683SED
684LIBTOOL
48310492
RH
685RANLIB
686NM
687AR
688am__fastdepCCAS_FALSE
689am__fastdepCCAS_TRUE
690CCASDEPMODE
691CCASFLAGS
692CCAS
693am__fastdepCC_FALSE
694am__fastdepCC_TRUE
695CCDEPMODE
dc3368d0 696am__nodep
48310492
RH
697AMDEPBACKSLASH
698AMDEP_FALSE
699AMDEP_TRUE
700am__quote
701am__include
702DEPDIR
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710toolexeclibdir
711toolexecdir
712multi_basedir
22e05272
JM
713AM_BACKSLASH
714AM_DEFAULT_VERBOSITY
715AM_DEFAULT_V
716AM_V
48310492
RH
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_os
741target_vendor
742target_cpu
743target
744host_os
745host_vendor
746host_cpu
747host
748build_os
749build_vendor
750build_cpu
751build
752GENINSRC_FALSE
753GENINSRC_TRUE
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
792ac_subst_files=''
793ac_user_opts='
794enable_option_checking
795enable_version_specific_runtime_libs
796enable_generated_files_in_srcdir
22e05272 797enable_silent_rules
48310492 798enable_multilib
e8e66971 799with_toolexeclibdir
48310492
RH
800enable_dependency_tracking
801enable_shared
802enable_static
803with_pic
804enable_fast_install
805with_gnu_ld
806enable_libtool_lock
6a6d3817 807enable_darwin_at_rpath
fa3cd3c3 808enable_maintainer_mode
48310492 809enable_symvers
45ba6bf2 810enable_werror
efc643e9 811enable_cet
3c36aa6b 812with_gcc_major_version_only
48310492
RH
813'
814 ac_precious_vars='build_alias
815host_alias
816target_alias
817CPP
818CPPFLAGS'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
22e05272
JM
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
48310492
RH
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 928 as_fn_error $? "invalid feature name: $ac_useropt"
48310492
RH
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933"enable_$ac_useropt"
934"*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 954 as_fn_error $? "invalid feature name: $ac_useropt"
48310492
RH
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959"enable_$ac_useropt"
960"*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1158 as_fn_error $? "invalid package name: $ac_useropt"
48310492
RH
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163"with_$ac_useropt"
1164"*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1174 as_fn_error $? "invalid package name: $ac_useropt"
48310492
RH
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
22e05272
JM
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
48310492
RH
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
48310492
RH
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
48310492
RH
1224 ;;
1225
1226 esac
1227done
1228
1229if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1231 as_fn_error $? "missing argument to $ac_option"
48310492
RH
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
22e05272 1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
48310492
RH
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
22e05272 1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
48310492
RH
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
48310492
RH
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
1283
1284
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1288 as_fn_error $? "working directory cannot be determined"
48310492 1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1290 as_fn_error $? "pwd does not report name of working directory"
48310492
RH
1291
1292
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324else
1325 ac_srcdir_defaulted=no
1326fi
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
48310492
RH
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
22e05272 1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
48310492
RH
1334 pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359\`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
22e05272 1373 -q, --quiet, --silent do not print \`checking ...' messages
48310492
RH
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412_ACEOF
1413
1414 cat <<\_ACEOF
1415
1416Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 --target=TARGET configure for building compilers for TARGET [HOST]
1425_ACEOF
1426fi
1427
1428if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-version-specific-runtime-libs
1439 Specify that runtime libraries should be installed
1440 in a compiler-specific directory [default=no]
1441 --enable-generated-files-in-srcdir
1442 put copies of generated files in source dir intended
1443 for creating source tarballs for users without
1444 texinfo bison or flex. [default=no]
22e05272
JM
1445 --enable-silent-rules less verbose build output (undo: "make V=1")
1446 --disable-silent-rules verbose build output (undo: "make V=0")
48310492 1447 --enable-multilib build many library versions (default)
22e05272
JM
1448 --enable-dependency-tracking
1449 do not reject slow dependency extractors
1450 --disable-dependency-tracking
1451 speeds up one-time build
48310492
RH
1452 --enable-shared[=PKGS] build shared libraries [default=yes]
1453 --enable-static[=PKGS] build static libraries [default=yes]
1454 --enable-fast-install[=PKGS]
1455 optimize for fast installation [default=yes]
1456 --disable-libtool-lock avoid locking (might break parallel builds)
6a6d3817
IS
1457 --enable-darwin-at-rpath
1458 install libraries with @rpath/library-name, requires
1459 rpaths to be added to executables
22e05272
JM
1460 --enable-maintainer-mode
1461 enable make rules and dependencies not useful (and
1462 sometimes confusing) to the casual installer
48310492
RH
1463 --enable-symvers=STYLE enables symbol versioning of the shared library
1464 [default=yes]
45ba6bf2 1465 --disable-werror disable building with -Werror
8d286dd1 1466 --enable-cet enable Intel CET in target libraries [default=auto]
48310492
RH
1467
1468Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
e8e66971
MR
1471 --with-toolexeclibdir=DIR
1472 install libraries built with a cross compiler within
1473 DIR
48310492
RH
1474 --with-pic try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1477 --with-gcc-major-version-only
1478 use only GCC major number in filesystem paths
48310492
RH
1479
1480Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
48310492
RH
1487 you have headers in a nonstandard directory <include dir>
1488 CCAS assembler compiler command (defaults to CC)
1489 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1490 CPP C preprocessor
1491
1492Use these variables to override the choices made by `configure' or to help
1493it to find libraries and programs with nonstandard names/locations.
1494
1495Report bugs to the package provider.
1496GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1497General help using GNU software: <http://www.gnu.org/gethelp/>.
1498_ACEOF
1499ac_status=$?
1500fi
1501
1502if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1525
1526case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539esac
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555fi
1556
1557test -n "$ac_init_help" && exit $ac_status
1558if $ac_init_version; then
1559 cat <<\_ACEOF
1560GNU Atomic Library configure 1.0
22e05272 1561generated by GNU Autoconf 2.69
48310492 1562
22e05272 1563Copyright (C) 2012 Free Software Foundation, Inc.
48310492
RH
1564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
1566_ACEOF
1567 exit
1568fi
1569
1570## ------------------------ ##
1571## Autoconf initialization. ##
1572## ------------------------ ##
1573
1574# ac_fn_c_try_compile LINENO
1575# --------------------------
1576# Try to compile conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_compile ()
1578{
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606fi
22e05272
JM
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
48310492
RH
1609
1610} # ac_fn_c_try_compile
1611
1612# ac_fn_c_try_link LINENO
1613# -----------------------
1614# Try to link conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_link ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest$ac_exeext
1619 if { { ac_try="$ac_link"
1620case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
22e05272 1639 test -x conftest$ac_exeext
48310492
RH
1640 }; then :
1641 ac_retval=0
1642else
1643 $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647fi
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
48310492
RH
1655
1656} # ac_fn_c_try_link
1657
1658# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659# -------------------------------------------------------
1660# Tests whether HEADER exists and can be compiled using the include files in
1661# INCLUDES, setting the cache variable VAR accordingly.
1662ac_fn_c_check_header_compile ()
1663{
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
22e05272 1667if eval \${$3+:} false; then :
48310492
RH
1668 $as_echo_n "(cached) " >&6
1669else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h. */
1672$4
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677else
1678 eval "$3=no"
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681fi
1682eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684$as_echo "$ac_res" >&6; }
22e05272 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1686
1687} # ac_fn_c_check_header_compile
1688
1689# ac_fn_c_try_cpp LINENO
1690# ----------------------
1691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_cpp ()
1693{
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1710 test $ac_status = 0; } > conftest.i && {
48310492
RH
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720fi
22e05272
JM
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
48310492
RH
1723
1724} # ac_fn_c_try_cpp
1725
1726# ac_fn_c_try_run LINENO
1727# ----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729# that executables *can* be run.
1730ac_fn_c_try_run ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=$ac_status
1761fi
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
48310492
RH
1765
1766} # ac_fn_c_try_run
1767
1768# ac_fn_c_check_func LINENO FUNC VAR
1769# ----------------------------------
1770# Tests whether FUNC exists, setting the cache variable VAR accordingly
1771ac_fn_c_check_func ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
22e05272 1776if eval \${$3+:} false; then :
48310492
RH
1777 $as_echo_n "(cached) " >&6
1778else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780/* end confdefs.h. */
1781/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783#define $2 innocuous_$2
1784
1785/* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1789
1790#ifdef __STDC__
1791# include <limits.h>
1792#else
1793# include <assert.h>
1794#endif
1795
1796#undef $2
1797
1798/* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801#ifdef __cplusplus
1802extern "C"
1803#endif
1804char $2 ();
1805/* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808#if defined __stub_$2 || defined __stub___$2
1809choke me
1810#endif
1811
1812int
1813main ()
1814{
1815return $2 ();
1816 ;
1817 return 0;
1818}
1819_ACEOF
1820if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822else
1823 eval "$3=no"
1824fi
1825rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1827fi
1828eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830$as_echo "$ac_res" >&6; }
22e05272 1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1832
1833} # ac_fn_c_check_func
1834
1835# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1836# -------------------------------------------
1837# Tests whether TYPE exists after having included INCLUDES, setting cache
1838# variable VAR accordingly.
1839ac_fn_c_check_type ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843$as_echo_n "checking for $2... " >&6; }
22e05272 1844if eval \${$3+:} false; then :
48310492
RH
1845 $as_echo_n "(cached) " >&6
1846else
1847 eval "$3=no"
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h. */
1850$4
1851int
1852main ()
1853{
1854if (sizeof ($2))
1855 return 0;
1856 ;
1857 return 0;
1858}
1859_ACEOF
1860if ac_fn_c_try_compile "$LINENO"; then :
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h. */
1863$4
1864int
1865main ()
1866{
1867if (sizeof (($2)))
1868 return 0;
1869 ;
1870 return 0;
1871}
1872_ACEOF
1873if ac_fn_c_try_compile "$LINENO"; then :
1874
1875else
1876 eval "$3=yes"
1877fi
1878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879fi
1880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881fi
1882eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884$as_echo "$ac_res" >&6; }
22e05272 1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1886
1887} # ac_fn_c_check_type
1888
1889# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1890# --------------------------------------------
1891# Tries to find the compile-time value of EXPR in a program that includes
1892# INCLUDES, setting VAR accordingly. Returns whether the value could be
1893# computed
1894ac_fn_c_compute_int ()
1895{
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if test "$cross_compiling" = yes; then
1898 # Depending upon the size, compute the lo and hi bounds.
1899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901$4
1902int
1903main ()
1904{
1905static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
1906test_array [0] = 0;
1907return test_array [0];
48310492
RH
1908
1909 ;
1910 return 0;
1911}
1912_ACEOF
1913if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_lo=0 ac_mid=0
1915 while :; do
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h. */
1918$4
1919int
1920main ()
1921{
1922static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1923test_array [0] = 0;
1924return test_array [0];
48310492
RH
1925
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_compile "$LINENO"; then :
1931 ac_hi=$ac_mid; break
1932else
1933 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1934 if test $ac_lo -le $ac_mid; then
1935 ac_lo= ac_hi=
1936 break
1937 fi
1938 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1939fi
1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 done
1942else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945$4
1946int
1947main ()
1948{
1949static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
1950test_array [0] = 0;
1951return test_array [0];
48310492
RH
1952
1953 ;
1954 return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_hi=-1 ac_mid=-1
1959 while :; do
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961/* end confdefs.h. */
1962$4
1963int
1964main ()
1965{
1966static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
1967test_array [0] = 0;
1968return test_array [0];
48310492
RH
1969
1970 ;
1971 return 0;
1972}
1973_ACEOF
1974if ac_fn_c_try_compile "$LINENO"; then :
1975 ac_lo=$ac_mid; break
1976else
1977 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1978 if test $ac_mid -le $ac_hi; then
1979 ac_lo= ac_hi=
1980 break
1981 fi
1982 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 done
1986else
1987 ac_lo= ac_hi=
1988fi
1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990fi
1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992# Binary search between lo and hi bounds.
1993while test "x$ac_lo" != "x$ac_hi"; do
1994 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996/* end confdefs.h. */
1997$4
1998int
1999main ()
2000{
2001static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2002test_array [0] = 0;
2003return test_array [0];
48310492
RH
2004
2005 ;
2006 return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"; then :
2010 ac_hi=$ac_mid
2011else
2012 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2013fi
2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015done
2016case $ac_lo in #((
2017?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2018'') ac_retval=1 ;;
2019esac
2020 else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h. */
2023$4
2024static long int longval () { return $2; }
2025static unsigned long int ulongval () { return $2; }
2026#include <stdio.h>
2027#include <stdlib.h>
2028int
2029main ()
2030{
2031
2032 FILE *f = fopen ("conftest.val", "w");
2033 if (! f)
2034 return 1;
2035 if (($2) < 0)
2036 {
2037 long int i = longval ();
2038 if (i != ($2))
2039 return 1;
2040 fprintf (f, "%ld", i);
2041 }
2042 else
2043 {
2044 unsigned long int i = ulongval ();
2045 if (i != ($2))
2046 return 1;
2047 fprintf (f, "%lu", i);
2048 }
2049 /* Do not output a trailing newline, as this causes \r\n confusion
2050 on some platforms. */
2051 return ferror (f) || fclose (f) != 0;
2052
2053 ;
2054 return 0;
2055}
2056_ACEOF
2057if ac_fn_c_try_run "$LINENO"; then :
2058 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2059else
2060 ac_retval=1
2061fi
2062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2063 conftest.$ac_objext conftest.beam conftest.$ac_ext
2064rm -f conftest.val
2065
2066 fi
22e05272
JM
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 as_fn_set_status $ac_retval
48310492
RH
2069
2070} # ac_fn_c_compute_int
267bac10
JM
2071
2072# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2073# -------------------------------------------------------
2074# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2075# the include files in INCLUDES and setting the cache variable VAR
2076# accordingly.
2077ac_fn_c_check_header_mongrel ()
2078{
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 2080 if eval \${$3+:} false; then :
267bac10
JM
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082$as_echo_n "checking for $2... " >&6; }
22e05272 2083if eval \${$3+:} false; then :
267bac10
JM
2084 $as_echo_n "(cached) " >&6
2085fi
2086eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088$as_echo "$ac_res" >&6; }
2089else
2090 # Is the header compilable?
2091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2092$as_echo_n "checking $2 usability... " >&6; }
2093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h. */
2095$4
2096#include <$2>
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_header_compiler=yes
2100else
2101 ac_header_compiler=no
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2105$as_echo "$ac_header_compiler" >&6; }
2106
2107# Is the header present?
2108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2109$as_echo_n "checking $2 presence... " >&6; }
2110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h. */
2112#include <$2>
2113_ACEOF
2114if ac_fn_c_try_cpp "$LINENO"; then :
2115 ac_header_preproc=yes
2116else
2117 ac_header_preproc=no
2118fi
22e05272 2119rm -f conftest.err conftest.i conftest.$ac_ext
267bac10
JM
2120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2121$as_echo "$ac_header_preproc" >&6; }
2122
2123# So? What about this header?
2124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2125 yes:no: )
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2127$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2129$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2130 ;;
2131 no:yes:* )
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2133$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2135$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2137$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2139$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2141$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2142 ;;
2143esac
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145$as_echo_n "checking for $2... " >&6; }
22e05272 2146if eval \${$3+:} false; then :
267bac10
JM
2147 $as_echo_n "(cached) " >&6
2148else
2149 eval "$3=\$ac_header_compiler"
2150fi
2151eval ac_res=\$$3
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153$as_echo "$ac_res" >&6; }
2154fi
22e05272 2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
267bac10
JM
2156
2157} # ac_fn_c_check_header_mongrel
48310492
RH
2158cat >config.log <<_ACEOF
2159This file contains any messages produced by compilers while
2160running configure, to aid debugging if configure makes a mistake.
2161
2162It was created by GNU Atomic Library $as_me 1.0, which was
22e05272 2163generated by GNU Autoconf 2.69. Invocation command line was
48310492
RH
2164
2165 $ $0 $@
2166
2167_ACEOF
2168exec 5>>config.log
2169{
2170cat <<_ASUNAME
2171## --------- ##
2172## Platform. ##
2173## --------- ##
2174
2175hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2176uname -m = `(uname -m) 2>/dev/null || echo unknown`
2177uname -r = `(uname -r) 2>/dev/null || echo unknown`
2178uname -s = `(uname -s) 2>/dev/null || echo unknown`
2179uname -v = `(uname -v) 2>/dev/null || echo unknown`
2180
2181/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2182/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2183
2184/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2185/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2186/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2187/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2188/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2189/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2190/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2191
2192_ASUNAME
2193
2194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195for as_dir in $PATH
2196do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 $as_echo "PATH: $as_dir"
2200 done
2201IFS=$as_save_IFS
2202
2203} >&5
2204
2205cat >&5 <<_ACEOF
2206
2207
2208## ----------- ##
2209## Core tests. ##
2210## ----------- ##
2211
2212_ACEOF
2213
2214
2215# Keep a trace of the command line.
2216# Strip out --no-create and --no-recursion so they do not pile up.
2217# Strip out --silent because we don't want to record it for future runs.
2218# Also quote any args containing shell meta-characters.
2219# Make two passes to allow for proper duplicate-argument suppression.
2220ac_configure_args=
2221ac_configure_args0=
2222ac_configure_args1=
2223ac_must_keep_next=false
2224for ac_pass in 1 2
2225do
2226 for ac_arg
2227 do
2228 case $ac_arg in
2229 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2231 | -silent | --silent | --silen | --sile | --sil)
2232 continue ;;
2233 *\'*)
2234 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 esac
2236 case $ac_pass in
2237 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2238 2)
2239 as_fn_append ac_configure_args1 " '$ac_arg'"
2240 if test $ac_must_keep_next = true; then
2241 ac_must_keep_next=false # Got value, back to normal.
2242 else
2243 case $ac_arg in
2244 *=* | --config-cache | -C | -disable-* | --disable-* \
2245 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2246 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2247 | -with-* | --with-* | -without-* | --without-* | --x)
2248 case "$ac_configure_args0 " in
2249 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2250 esac
2251 ;;
2252 -* ) ac_must_keep_next=true ;;
2253 esac
2254 fi
2255 as_fn_append ac_configure_args " '$ac_arg'"
2256 ;;
2257 esac
2258 done
2259done
2260{ ac_configure_args0=; unset ac_configure_args0;}
2261{ ac_configure_args1=; unset ac_configure_args1;}
2262
2263# When interrupted or exit'd, cleanup temporary files, and complete
2264# config.log. We remove comments because anyway the quotes in there
2265# would cause problems or look ugly.
2266# WARNING: Use '\'' to represent an apostrophe within the trap.
2267# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2268trap 'exit_status=$?
2269 # Save into config.log some information that might help in debugging.
2270 {
2271 echo
2272
22e05272 2273 $as_echo "## ---------------- ##
48310492 2274## Cache variables. ##
22e05272 2275## ---------------- ##"
48310492
RH
2276 echo
2277 # The following way of writing the cache mishandles newlines in values,
2278(
2279 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2280 eval ac_val=\$$ac_var
2281 case $ac_val in #(
2282 *${as_nl}*)
2283 case $ac_var in #(
2284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2285$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2286 esac
2287 case $ac_var in #(
2288 _ | IFS | as_nl) ;; #(
2289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2290 *) { eval $ac_var=; unset $ac_var;} ;;
2291 esac ;;
2292 esac
2293 done
2294 (set) 2>&1 |
2295 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2296 *${as_nl}ac_space=\ *)
2297 sed -n \
2298 "s/'\''/'\''\\\\'\'''\''/g;
2299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2300 ;; #(
2301 *)
2302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2303 ;;
2304 esac |
2305 sort
2306)
2307 echo
2308
22e05272 2309 $as_echo "## ----------------- ##
48310492 2310## Output variables. ##
22e05272 2311## ----------------- ##"
48310492
RH
2312 echo
2313 for ac_var in $ac_subst_vars
2314 do
2315 eval ac_val=\$$ac_var
2316 case $ac_val in
2317 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 esac
2319 $as_echo "$ac_var='\''$ac_val'\''"
2320 done | sort
2321 echo
2322
2323 if test -n "$ac_subst_files"; then
22e05272 2324 $as_echo "## ------------------- ##
48310492 2325## File substitutions. ##
22e05272 2326## ------------------- ##"
48310492
RH
2327 echo
2328 for ac_var in $ac_subst_files
2329 do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2337 fi
2338
2339 if test -s confdefs.h; then
22e05272 2340 $as_echo "## ----------- ##
48310492 2341## confdefs.h. ##
22e05272 2342## ----------- ##"
48310492
RH
2343 echo
2344 cat confdefs.h
2345 echo
2346 fi
2347 test "$ac_signal" != 0 &&
2348 $as_echo "$as_me: caught signal $ac_signal"
2349 $as_echo "$as_me: exit $exit_status"
2350 } >&5
2351 rm -f core *.core core.conftest.* &&
2352 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2353 exit $exit_status
2354' 0
2355for ac_signal in 1 2 13 15; do
2356 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2357done
2358ac_signal=0
2359
2360# confdefs.h avoids OS command line length limits that DEFS can exceed.
2361rm -f -r conftest* confdefs.h
2362
2363$as_echo "/* confdefs.h */" > confdefs.h
2364
2365# Predefined preprocessor variables.
2366
2367cat >>confdefs.h <<_ACEOF
2368#define PACKAGE_NAME "$PACKAGE_NAME"
2369_ACEOF
2370
2371cat >>confdefs.h <<_ACEOF
2372#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2373_ACEOF
2374
2375cat >>confdefs.h <<_ACEOF
2376#define PACKAGE_VERSION "$PACKAGE_VERSION"
2377_ACEOF
2378
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_STRING "$PACKAGE_STRING"
2381_ACEOF
2382
2383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2385_ACEOF
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_URL "$PACKAGE_URL"
2389_ACEOF
2390
2391
2392# Let the site file select an alternate cache file if it wants to.
2393# Prefer an explicitly selected file to automatically selected ones.
2394ac_site_file1=NONE
2395ac_site_file2=NONE
2396if test -n "$CONFIG_SITE"; then
22e05272
JM
2397 # We do not want a PATH search for config.site.
2398 case $CONFIG_SITE in #((
2399 -*) ac_site_file1=./$CONFIG_SITE;;
2400 */*) ac_site_file1=$CONFIG_SITE;;
2401 *) ac_site_file1=./$CONFIG_SITE;;
2402 esac
48310492
RH
2403elif test "x$prefix" != xNONE; then
2404 ac_site_file1=$prefix/share/config.site
2405 ac_site_file2=$prefix/etc/config.site
2406else
2407 ac_site_file1=$ac_default_prefix/share/config.site
2408 ac_site_file2=$ac_default_prefix/etc/config.site
2409fi
2410for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2411do
2412 test "x$ac_site_file" = xNONE && continue
22e05272 2413 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
48310492
RH
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2415$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2416 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2417 . "$ac_site_file" \
2418 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420as_fn_error $? "failed to load site script $ac_site_file
2421See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
2422 fi
2423done
2424
2425if test -r "$cache_file"; then
22e05272
JM
2426 # Some versions of bash will fail to source /dev/null (special files
2427 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2428 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
48310492
RH
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2430$as_echo "$as_me: loading cache $cache_file" >&6;}
2431 case $cache_file in
2432 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2433 *) . "./$cache_file";;
2434 esac
2435 fi
2436else
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2438$as_echo "$as_me: creating cache $cache_file" >&6;}
2439 >$cache_file
2440fi
2441
2442# Check that the precious variables saved in the cache have kept the same
2443# value.
2444ac_cache_corrupted=false
2445for ac_var in $ac_precious_vars; do
2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2447 eval ac_new_set=\$ac_env_${ac_var}_set
2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2449 eval ac_new_val=\$ac_env_${ac_var}_value
2450 case $ac_old_set,$ac_new_set in
2451 set,)
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2453$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454 ac_cache_corrupted=: ;;
2455 ,set)
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2457$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,);;
2460 *)
2461 if test "x$ac_old_val" != "x$ac_new_val"; then
2462 # differences in whitespace do not lead to failure.
2463 ac_old_val_w=`echo x $ac_old_val`
2464 ac_new_val_w=`echo x $ac_new_val`
2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2467$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2468 ac_cache_corrupted=:
2469 else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2471$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472 eval $ac_var=\$ac_old_val
2473 fi
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2475$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2477$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2478 fi;;
2479 esac
2480 # Pass precious variables to config.status.
2481 if test "$ac_new_set" = set; then
2482 case $ac_new_val in
2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2484 *) ac_arg=$ac_var=$ac_new_val ;;
2485 esac
2486 case " $ac_configure_args " in
2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2488 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2489 esac
2490 fi
2491done
2492if $ac_cache_corrupted; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2496$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2497 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
48310492
RH
2498fi
2499## -------------------- ##
2500## Main body of script. ##
2501## -------------------- ##
2502
2503ac_ext=c
2504ac_cpp='$CPP $CPPFLAGS'
2505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507ac_compiler_gnu=$ac_cv_c_compiler_gnu
2508
2509
2510
2511
2512
2513ac_config_headers="$ac_config_headers auto-config.h"
2514
2515
2516# -------
2517# Options
2518# -------
2519
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2521$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2522 # Check whether --enable-version-specific-runtime-libs was given.
2523if test "${enable_version_specific_runtime_libs+set}" = set; then :
2524 enableval=$enable_version_specific_runtime_libs;
2525 case "$enableval" in
2526 yes|no) ;;
22e05272 2527 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
48310492
RH
2528 esac
2529
2530else
2531 enable_version_specific_runtime_libs=no
2532fi
2533
2534
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2536$as_echo "$enable_version_specific_runtime_libs" >&6; }
2537
2538# We would like our source tree to be readonly. However when releases or
2539# pre-releases are generated, the flex/bison generated files as well as the
2540# various formats of manuals need to be included along with the rest of the
2541# sources. Therefore we have --enable-generated-files-in-srcdir to do
2542# just that.
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2544$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2545 # Check whether --enable-generated-files-in-srcdir was given.
2546if test "${enable_generated_files_in_srcdir+set}" = set; then :
2547 enableval=$enable_generated_files_in_srcdir;
2548 case "$enableval" in
2549 yes|no) ;;
22e05272 2550 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
48310492
RH
2551 esac
2552
2553else
2554 enable_generated_files_in_srcdir=no
2555fi
2556
2557
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2559$as_echo "$enable_generated_files_in_srcdir" >&6; }
2560 if test "$enable_generated_files_in_srcdir" = yes; then
2561 GENINSRC_TRUE=
2562 GENINSRC_FALSE='#'
2563else
2564 GENINSRC_TRUE='#'
2565 GENINSRC_FALSE=
2566fi
2567
2568
2569
2570# -------
2571
2572# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2573#
2574# You will slowly go insane if you do not grok the following fact: when
2575# building this library, the top-level /target/ becomes the library's /host/.
2576#
2577# configure then causes --target to default to --host, exactly like any
2578# other package using autoconf. Therefore, 'target' and 'host' will
2579# always be the same. This makes sense both for native and cross compilers
2580# just think about it for a little while. :-)
2581#
2582# Also, if this library is being configured as part of a cross compiler, the
2583# top-level configure script will pass the "real" host as $with_cross_host.
2584#
2585# Do not delete or change the following two lines. For why, see
2586# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2587ac_aux_dir=
2588for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2589 if test -f "$ac_dir/install-sh"; then
2590 ac_aux_dir=$ac_dir
2591 ac_install_sh="$ac_aux_dir/install-sh -c"
2592 break
2593 elif test -f "$ac_dir/install.sh"; then
2594 ac_aux_dir=$ac_dir
2595 ac_install_sh="$ac_aux_dir/install.sh -c"
2596 break
2597 elif test -f "$ac_dir/shtool"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/shtool install -c"
2600 break
2601 fi
48310492
RH
2602done
2603if test -z "$ac_aux_dir"; then
22e05272 2604 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
48310492
RH
2605fi
2606
2607# These three variables are undocumented and unsupported,
2608# and are intended to be withdrawn in a future Autoconf release.
2609# They can cause serious problems if a builder's source tree is in a directory
2610# whose full name contains unusual characters.
2611ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2612ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2613ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2614
2615
2616# Make sure we can run config.sub.
2617$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2618 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
48310492
RH
2619
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2621$as_echo_n "checking build system type... " >&6; }
22e05272 2622if ${ac_cv_build+:} false; then :
48310492
RH
2623 $as_echo_n "(cached) " >&6
2624else
2625 ac_build_alias=$build_alias
2626test "x$ac_build_alias" = x &&
2627 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2628test "x$ac_build_alias" = x &&
22e05272 2629 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
48310492 2630ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2631 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
48310492
RH
2632
2633fi
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2635$as_echo "$ac_cv_build" >&6; }
2636case $ac_cv_build in
2637*-*-*) ;;
22e05272 2638*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
48310492
RH
2639esac
2640build=$ac_cv_build
2641ac_save_IFS=$IFS; IFS='-'
2642set x $ac_cv_build
2643shift
2644build_cpu=$1
2645build_vendor=$2
2646shift; shift
2647# Remember, the first character of IFS is used to create $*,
2648# except with old shells:
2649build_os=$*
2650IFS=$ac_save_IFS
2651case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2652
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2655$as_echo_n "checking host system type... " >&6; }
22e05272 2656if ${ac_cv_host+:} false; then :
48310492
RH
2657 $as_echo_n "(cached) " >&6
2658else
2659 if test "x$host_alias" = x; then
2660 ac_cv_host=$ac_cv_build
2661else
2662 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2663 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
48310492
RH
2664fi
2665
2666fi
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2668$as_echo "$ac_cv_host" >&6; }
2669case $ac_cv_host in
2670*-*-*) ;;
22e05272 2671*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
48310492
RH
2672esac
2673host=$ac_cv_host
2674ac_save_IFS=$IFS; IFS='-'
2675set x $ac_cv_host
2676shift
2677host_cpu=$1
2678host_vendor=$2
2679shift; shift
2680# Remember, the first character of IFS is used to create $*,
2681# except with old shells:
2682host_os=$*
2683IFS=$ac_save_IFS
2684case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2685
2686
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2688$as_echo_n "checking target system type... " >&6; }
22e05272 2689if ${ac_cv_target+:} false; then :
48310492
RH
2690 $as_echo_n "(cached) " >&6
2691else
2692 if test "x$target_alias" = x; then
2693 ac_cv_target=$ac_cv_host
2694else
2695 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2696 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
48310492
RH
2697fi
2698
2699fi
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2701$as_echo "$ac_cv_target" >&6; }
2702case $ac_cv_target in
2703*-*-*) ;;
22e05272 2704*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
48310492
RH
2705esac
2706target=$ac_cv_target
2707ac_save_IFS=$IFS; IFS='-'
2708set x $ac_cv_target
2709shift
2710target_cpu=$1
2711target_vendor=$2
2712shift; shift
2713# Remember, the first character of IFS is used to create $*,
2714# except with old shells:
2715target_os=$*
2716IFS=$ac_save_IFS
2717case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2718
2719
2720# The aliases save the names the user supplied, while $host etc.
2721# will get canonicalized.
2722test -n "$target_alias" &&
2723 test "$program_prefix$program_suffix$program_transform_name" = \
2724 NONENONEs,x,x, &&
2725 program_prefix=${target_alias}-
2726
2727target_alias=${target_alias-$host_alias}
2728
2729# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2730# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2731# 1.9.0: minimum required version
2732# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2733# of other PACKAGE_* variables will, however, and there's nothing
2734# we can do about that; they come from AC_INIT).
c0758df9 2735# no-dist: we don't want 'dist' and related rules.
48310492
RH
2736# foreign: we don't follow the normal rules for GNU packages (no COPYING
2737# file in the top srcdir, etc, etc), so stop complaining.
2738# -Wall: turns on all automake warnings...
2739# -Wno-portability: ...except this one, since GNU make is required.
2740# -Wno-override: ... and this one, since we do want this in testsuite.
22e05272 2741am__api_version='1.15'
48310492
RH
2742
2743# Find a good install program. We prefer a C program (faster),
2744# so one script is as good as another. But avoid the broken or
2745# incompatible versions:
2746# SysV /etc/install, /usr/sbin/install
2747# SunOS /usr/etc/install
2748# IRIX /sbin/install
2749# AIX /bin/install
2750# AmigaOS /C/install, which installs bootblocks on floppy discs
2751# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2752# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2753# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2754# OS/2's system install, which has a completely different semantic
2755# ./install, which can be erroneously created by make from ./install.sh.
2756# Reject install programs that cannot install multiple files.
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2758$as_echo_n "checking for a BSD-compatible install... " >&6; }
2759if test -z "$INSTALL"; then
22e05272 2760if ${ac_cv_path_install+:} false; then :
48310492
RH
2761 $as_echo_n "(cached) " >&6
2762else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 # Account for people who put trailing slashes in PATH elements.
2769case $as_dir/ in #((
2770 ./ | .// | /[cC]/* | \
2771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2772 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2773 /usr/ucb/* ) ;;
2774 *)
2775 # OSF1 and SCO ODT 3.0 have their own names for install.
2776 # Don't use installbsd from OSF since it installs stuff as root
2777 # by default.
2778 for ac_prog in ginstall scoinst install; do
2779 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2780 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
48310492
RH
2781 if test $ac_prog = install &&
2782 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2783 # AIX install. It has an incompatible calling convention.
2784 :
2785 elif test $ac_prog = install &&
2786 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2787 # program-specific install script used by HP pwplus--don't use.
2788 :
2789 else
2790 rm -rf conftest.one conftest.two conftest.dir
2791 echo one > conftest.one
2792 echo two > conftest.two
2793 mkdir conftest.dir
2794 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2795 test -s conftest.one && test -s conftest.two &&
2796 test -s conftest.dir/conftest.one &&
2797 test -s conftest.dir/conftest.two
2798 then
2799 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2800 break 3
2801 fi
2802 fi
2803 fi
2804 done
2805 done
2806 ;;
2807esac
2808
2809 done
2810IFS=$as_save_IFS
2811
2812rm -rf conftest.one conftest.two conftest.dir
2813
2814fi
2815 if test "${ac_cv_path_install+set}" = set; then
2816 INSTALL=$ac_cv_path_install
2817 else
2818 # As a last resort, use the slow shell script. Don't cache a
2819 # value for INSTALL within a source directory, because that will
2820 # break other packages using the cache if that directory is
2821 # removed, or if the value is a relative name.
2822 INSTALL=$ac_install_sh
2823 fi
2824fi
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2826$as_echo "$INSTALL" >&6; }
2827
2828# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2829# It thinks the first close brace ends the variable substitution.
2830test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2831
2832test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2833
2834test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2835
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2837$as_echo_n "checking whether build environment is sane... " >&6; }
48310492
RH
2838# Reject unsafe characters in $srcdir or the absolute working directory
2839# name. Accept space and tab only in the latter.
2840am_lf='
2841'
2842case `pwd` in
2843 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2844 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
48310492
RH
2845esac
2846case $srcdir in
2847 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2848 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
48310492
RH
2849esac
2850
22e05272 2851# Do 'set' in a subshell so we don't clobber the current shell's
48310492
RH
2852# arguments. Must try -L first in case configure is actually a
2853# symlink; some systems play weird games with the mod time of symlinks
2854# (eg FreeBSD returns the mod time of the symlink's containing
2855# directory).
2856if (
22e05272
JM
2857 am_has_slept=no
2858 for am_try in 1 2; do
2859 echo "timestamp, slept: $am_has_slept" > conftest.file
2860 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2861 if test "$*" = "X"; then
2862 # -L didn't work.
2863 set X `ls -t "$srcdir/configure" conftest.file`
2864 fi
2865 if test "$*" != "X $srcdir/configure conftest.file" \
2866 && test "$*" != "X conftest.file $srcdir/configure"; then
2867
2868 # If neither matched, then we have a broken ls. This can happen
2869 # if, for instance, CONFIG_SHELL is bash and it inherits a
2870 # broken ls alias from the environment. This has actually
2871 # happened. Such a system could not be considered "sane".
2872 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2873 alias in your environment" "$LINENO" 5
2874 fi
2875 if test "$2" = conftest.file || test $am_try -eq 2; then
2876 break
2877 fi
2878 # Just in case.
2879 sleep 1
2880 am_has_slept=yes
2881 done
48310492
RH
2882 test "$2" = conftest.file
2883 )
2884then
2885 # Ok.
2886 :
2887else
22e05272 2888 as_fn_error $? "newly created file is older than distributed files!
48310492
RH
2889Check your system clock" "$LINENO" 5
2890fi
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892$as_echo "yes" >&6; }
22e05272
JM
2893# If we didn't sleep, we still need to ensure time stamps of config.status and
2894# generated files are strictly newer.
2895am_sleep_pid=
2896if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2897 ( sleep 1 ) &
2898 am_sleep_pid=$!
2899fi
2900
2901rm -f conftest.file
2902
48310492
RH
2903test "$program_prefix" != NONE &&
2904 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2905# Use a double $ so make ignores it.
2906test "$program_suffix" != NONE &&
2907 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2908# Double any \ or $.
2909# By default was `s,x,x', remove it if useless.
2910ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2911program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2912
22e05272
JM
2913# Expand $ac_aux_dir to an absolute path.
2914am_aux_dir=`cd "$ac_aux_dir" && pwd`
48310492
RH
2915
2916if test x"${MISSING+set}" != xset; then
2917 case $am_aux_dir in
2918 *\ * | *\ *)
2919 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2920 *)
2921 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2922 esac
2923fi
2924# Use eval to expand $SHELL
22e05272
JM
2925if eval "$MISSING --is-lightweight"; then
2926 am_missing_run="$MISSING "
48310492
RH
2927else
2928 am_missing_run=
22e05272
JM
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2930$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
48310492
RH
2931fi
2932
22e05272 2933if test x"${install_sh+set}" != xset; then
48310492
RH
2934 case $am_aux_dir in
2935 *\ * | *\ *)
2936 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2937 *)
2938 install_sh="\${SHELL} $am_aux_dir/install-sh"
2939 esac
2940fi
2941
22e05272
JM
2942# Installed binaries are usually stripped using 'strip' when the user
2943# run "make install-strip". However 'strip' might not be the right
48310492 2944# tool to use in cross-compilation environments, therefore Automake
22e05272 2945# will honor the 'STRIP' environment variable to overrule this program.
48310492
RH
2946if test "$cross_compiling" != no; then
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2949set dummy ${ac_tool_prefix}strip; ac_word=$2
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2952if ${ac_cv_prog_STRIP+:} false; then :
48310492
RH
2953 $as_echo_n "(cached) " >&6
2954else
2955 if test -n "$STRIP"; then
2956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2957else
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
2965 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969done
2970 done
2971IFS=$as_save_IFS
2972
2973fi
2974fi
2975STRIP=$ac_cv_prog_STRIP
2976if test -n "$STRIP"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2978$as_echo "$STRIP" >&6; }
2979else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981$as_echo "no" >&6; }
2982fi
2983
2984
2985fi
2986if test -z "$ac_cv_prog_STRIP"; then
2987 ac_ct_STRIP=$STRIP
2988 # Extract the first word of "strip", so it can be a program name with args.
2989set dummy strip; ac_word=$2
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2992if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
48310492
RH
2993 $as_echo_n "(cached) " >&6
2994else
2995 if test -n "$ac_ct_STRIP"; then
2996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3005 ac_cv_prog_ac_ct_STRIP="strip"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3008 fi
3009done
3010 done
3011IFS=$as_save_IFS
3012
3013fi
3014fi
3015ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3016if test -n "$ac_ct_STRIP"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3018$as_echo "$ac_ct_STRIP" >&6; }
3019else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021$as_echo "no" >&6; }
3022fi
3023
3024 if test "x$ac_ct_STRIP" = x; then
3025 STRIP=":"
3026 else
3027 case $cross_compiling:$ac_tool_warned in
3028yes:)
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031ac_tool_warned=yes ;;
3032esac
3033 STRIP=$ac_ct_STRIP
3034 fi
3035else
3036 STRIP="$ac_cv_prog_STRIP"
3037fi
3038
3039fi
3040INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3041
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3043$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3044if test -z "$MKDIR_P"; then
22e05272 3045 if ${ac_cv_path_mkdir+:} false; then :
48310492
RH
3046 $as_echo_n "(cached) " >&6
3047else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3050do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_prog in mkdir gmkdir; do
3054 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3055 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
48310492
RH
3056 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3057 'mkdir (GNU coreutils) '* | \
3058 'mkdir (coreutils) '* | \
3059 'mkdir (fileutils) '4.1*)
3060 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3061 break 3;;
3062 esac
3063 done
3064 done
3065 done
3066IFS=$as_save_IFS
3067
3068fi
3069
22e05272 3070 test -d ./--version && rmdir ./--version
48310492
RH
3071 if test "${ac_cv_path_mkdir+set}" = set; then
3072 MKDIR_P="$ac_cv_path_mkdir -p"
3073 else
3074 # As a last resort, use the slow shell script. Don't cache a
3075 # value for MKDIR_P within a source directory, because that will
3076 # break other packages using the cache if that directory is
3077 # removed, or if the value is a relative name.
48310492
RH
3078 MKDIR_P="$ac_install_sh -d"
3079 fi
3080fi
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3082$as_echo "$MKDIR_P" >&6; }
3083
48310492
RH
3084for ac_prog in gawk mawk nawk awk
3085do
3086 # Extract the first word of "$ac_prog", so it can be a program name with args.
3087set dummy $ac_prog; ac_word=$2
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3090if ${ac_cv_prog_AWK+:} false; then :
48310492
RH
3091 $as_echo_n "(cached) " >&6
3092else
3093 if test -n "$AWK"; then
3094 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3103 ac_cv_prog_AWK="$ac_prog"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107done
3108 done
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113AWK=$ac_cv_prog_AWK
3114if test -n "$AWK"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3116$as_echo "$AWK" >&6; }
3117else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
3120fi
3121
3122
3123 test -n "$AWK" && break
3124done
3125
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3127$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3128set x ${MAKE-make}
3129ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 3130if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
48310492
RH
3131 $as_echo_n "(cached) " >&6
3132else
3133 cat >conftest.make <<\_ACEOF
3134SHELL = /bin/sh
3135all:
3136 @echo '@@@%%%=$(MAKE)=@@@%%%'
3137_ACEOF
22e05272 3138# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
48310492
RH
3139case `${MAKE-make} -f conftest.make 2>/dev/null` in
3140 *@@@%%%=?*=@@@%%%*)
3141 eval ac_cv_prog_make_${ac_make}_set=yes;;
3142 *)
3143 eval ac_cv_prog_make_${ac_make}_set=no;;
3144esac
3145rm -f conftest.make
3146fi
3147if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3149$as_echo "yes" >&6; }
3150 SET_MAKE=
3151else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154 SET_MAKE="MAKE=${MAKE-make}"
3155fi
3156
3157rm -rf .tst 2>/dev/null
3158mkdir .tst 2>/dev/null
3159if test -d .tst; then
3160 am__leading_dot=.
3161else
3162 am__leading_dot=_
3163fi
3164rmdir .tst 2>/dev/null
3165
22e05272
JM
3166# Check whether --enable-silent-rules was given.
3167if test "${enable_silent_rules+set}" = set; then :
3168 enableval=$enable_silent_rules;
3169fi
3170
3171case $enable_silent_rules in # (((
3172 yes) AM_DEFAULT_VERBOSITY=0;;
3173 no) AM_DEFAULT_VERBOSITY=1;;
3174 *) AM_DEFAULT_VERBOSITY=1;;
3175esac
3176am_make=${MAKE-make}
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3178$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3179if ${am_cv_make_support_nested_variables+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181else
3182 if $as_echo 'TRUE=$(BAR$(V))
3183BAR0=false
3184BAR1=true
3185V=1
3186am__doit:
3187 @$(TRUE)
3188.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3189 am_cv_make_support_nested_variables=yes
3190else
3191 am_cv_make_support_nested_variables=no
3192fi
3193fi
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3195$as_echo "$am_cv_make_support_nested_variables" >&6; }
3196if test $am_cv_make_support_nested_variables = yes; then
3197 AM_V='$(V)'
3198 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3199else
3200 AM_V=$AM_DEFAULT_VERBOSITY
3201 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3202fi
3203AM_BACKSLASH='\'
3204
48310492
RH
3205if test "`cd $srcdir && pwd`" != "`pwd`"; then
3206 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3207 # is not polluted with repeated "-I."
3208 am__isrc=' -I$(srcdir)'
3209 # test to see if srcdir already configured
3210 if test -f $srcdir/config.status; then
22e05272 3211 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
48310492
RH
3212 fi
3213fi
3214
3215# test whether we have cygpath
3216if test -z "$CYGPATH_W"; then
3217 if (cygpath --version) >/dev/null 2>/dev/null; then
3218 CYGPATH_W='cygpath -w'
3219 else
3220 CYGPATH_W=echo
3221 fi
3222fi
3223
3224
3225# Define the identity of the package.
3226 PACKAGE='libatomic'
3227 VERSION='1.0'
3228
3229
3230cat >>confdefs.h <<_ACEOF
3231#define PACKAGE "$PACKAGE"
3232_ACEOF
3233
3234
3235cat >>confdefs.h <<_ACEOF
3236#define VERSION "$VERSION"
3237_ACEOF
3238
3239# Some tools Automake needs.
3240
3241ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3242
3243
3244AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3245
3246
3247AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3248
3249
3250AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3251
3252
3253MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3254
22e05272
JM
3255# For better backward compatibility. To be removed once Automake 1.9.x
3256# dies out for good. For more background, see:
3257# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3258# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3259mkdir_p='$(MKDIR_P)'
3260
3261# We need awk for the "check" target (and possibly the TAP driver). The
3262# system "awk" is bad on some platforms.
dc3368d0
KT
3263# Always define AMTAR for backward compatibility. Yes, it's still used
3264# in the wild :-( We should find a proper way to deprecate it ...
3265AMTAR='$${TAR-tar}'
48310492 3266
22e05272
JM
3267
3268# We'll loop over all known methods to create a tar archive until one works.
3269_am_tools='gnutar pax cpio none'
3270
dc3368d0 3271am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
48310492
RH
3272
3273
3274
3275
3276
22e05272
JM
3277
3278# POSIX will say in a future version that running "rm -f" with no argument
3279# is OK; and we want to be able to make that assumption in our Makefile
3280# recipes. So use an aggressive probe to check that the usage we want is
3281# actually supported "in the wild" to an acceptable degree.
3282# See automake bug#10828.
3283# To make any issue more visible, cause the running configure to be aborted
3284# by default if the 'rm' program in use doesn't match our expectations; the
3285# user can still override this though.
3286if rm -f && rm -fr && rm -rf; then : OK; else
3287 cat >&2 <<'END'
3288Oops!
3289
3290Your 'rm' program seems unable to run without file operands specified
3291on the command line, even when the '-f' option is present. This is contrary
3292to the behaviour of most rm programs out there, and not conforming with
3293the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3294
3295Please tell bug-automake@gnu.org about your system, including the value
3296of your $PATH and any error possibly output before this message. This
3297can help us improve future automake versions.
3298
3299END
3300 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3301 echo 'Configuration will proceed anyway, since you have set the' >&2
3302 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3303 echo >&2
3304 else
3305 cat >&2 <<'END'
3306Aborting the configuration process, to ensure you take notice of the issue.
3307
3308You can download and install GNU coreutils to get an 'rm' implementation
3309that behaves properly: <http://www.gnu.org/software/coreutils/>.
3310
3311If you want to complete the configuration process using your problematic
3312'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3313to "yes", and re-run configure.
3314
3315END
3316 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3317 fi
3318fi
3319
48310492
RH
3320# Default to --enable-multilib
3321# Check whether --enable-multilib was given.
3322if test "${enable_multilib+set}" = set; then :
3323 enableval=$enable_multilib; case "$enableval" in
3324 yes) multilib=yes ;;
3325 no) multilib=no ;;
22e05272 3326 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
48310492
RH
3327 esac
3328else
3329 multilib=yes
3330fi
3331
3332
3333# We may get other options which we leave undocumented:
3334# --with-target-subdir, --with-multisrctop, --with-multisubdir
3335# See config-ml.in if you want the gory details.
3336
3337if test "$srcdir" = "."; then
3338 if test "$with_target_subdir" != "."; then
3339 multi_basedir="$srcdir/$with_multisrctop../.."
3340 else
3341 multi_basedir="$srcdir/$with_multisrctop.."
3342 fi
3343else
3344 multi_basedir="$srcdir/.."
3345fi
3346
3347
3348# Even if the default multilib is not a cross compilation,
3349# it may be that some of the other multilibs are.
3350if test $cross_compiling = no && test $multilib = yes \
3351 && test "x${with_multisubdir}" != x ; then
3352 cross_compiling=maybe
3353fi
3354
3355ac_config_commands="$ac_config_commands default-1"
3356
3357
e8e66971
MR
3358
3359# Check whether --with-toolexeclibdir was given.
3360if test "${with_toolexeclibdir+set}" = set; then :
3361 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3362 /)
3363 ;;
3364 */)
3365 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3366 ;;
3367esac
3368else
3369 with_toolexeclibdir=no
3370fi
3371
3372
3373
48310492
RH
3374# Calculate toolexeclibdir
3375# Also toolexecdir, though it's only used in toolexeclibdir
3376case ${enable_version_specific_runtime_libs} in
3377 yes)
3378 # Need the gcc compiler version to know where to install libraries
3379 # and header files if --enable-version-specific-runtime-libs option
3380 # is selected.
3381 toolexecdir='$(libdir)/gcc/$(target_alias)'
3382 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3383 ;;
3384 no)
3385 if test -n "$with_cross_host" &&
3386 test x"$with_cross_host" != x"no"; then
3387 # Install a library built with a cross compiler in tooldir, not libdir.
3388 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
3389 case ${with_toolexeclibdir} in
3390 no)
3391 toolexeclibdir='$(toolexecdir)/lib'
3392 ;;
3393 *)
3394 toolexeclibdir=${with_toolexeclibdir}
3395 ;;
3396 esac
48310492
RH
3397 else
3398 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3399 toolexeclibdir='$(libdir)'
3400 fi
3401 multi_os_directory=`$CC -print-multi-os-directory`
3402 case $multi_os_directory in
3403 .) ;; # Avoid trailing /.
3404 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3405 esac
3406 ;;
3407esac
3408
3409
3410
3411# Check the compiler.
3412# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3413# We must force CC to /not/ be precious variables; otherwise
3414# the wrong, non-multilib-adjusted value will be used in multilibs.
3415# As a side effect, we have to subst CFLAGS ourselves.
3416
3417
3418
3419ac_ext=c
3420ac_cpp='$CPP $CPPFLAGS'
3421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424if test -n "$ac_tool_prefix"; then
3425 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3426set dummy ${ac_tool_prefix}gcc; ac_word=$2
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3429if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3430 $as_echo_n "(cached) " >&6
3431else
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434else
3435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in $PATH
3437do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3442 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446done
3447 done
3448IFS=$as_save_IFS
3449
3450fi
3451fi
3452CC=$ac_cv_prog_CC
3453if test -n "$CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455$as_echo "$CC" >&6; }
3456else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458$as_echo "no" >&6; }
3459fi
3460
3461
3462fi
3463if test -z "$ac_cv_prog_CC"; then
3464 ac_ct_CC=$CC
3465 # Extract the first word of "gcc", so it can be a program name with args.
3466set dummy gcc; ac_word=$2
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3469if ${ac_cv_prog_ac_ct_CC+:} false; then :
48310492
RH
3470 $as_echo_n "(cached) " >&6
3471else
3472 if test -n "$ac_ct_CC"; then
3473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3474else
3475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH
3477do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3482 ac_cv_prog_ac_ct_CC="gcc"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486done
3487 done
3488IFS=$as_save_IFS
3489
3490fi
3491fi
3492ac_ct_CC=$ac_cv_prog_ac_ct_CC
3493if test -n "$ac_ct_CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3495$as_echo "$ac_ct_CC" >&6; }
3496else
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498$as_echo "no" >&6; }
3499fi
3500
3501 if test "x$ac_ct_CC" = x; then
3502 CC=""
3503 else
3504 case $cross_compiling:$ac_tool_warned in
3505yes:)
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3508ac_tool_warned=yes ;;
3509esac
3510 CC=$ac_ct_CC
3511 fi
3512else
3513 CC="$ac_cv_prog_CC"
3514fi
3515
3516if test -z "$CC"; then
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3519set dummy ${ac_tool_prefix}cc; ac_word=$2
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3522if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3523 $as_echo_n "(cached) " >&6
3524else
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3535 ac_cv_prog_CC="${ac_tool_prefix}cc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539done
3540 done
3541IFS=$as_save_IFS
3542
3543fi
3544fi
3545CC=$ac_cv_prog_CC
3546if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548$as_echo "$CC" >&6; }
3549else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551$as_echo "no" >&6; }
3552fi
3553
3554
3555 fi
3556fi
3557if test -z "$CC"; then
3558 # Extract the first word of "cc", so it can be a program name with args.
3559set dummy cc; ac_word=$2
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3562if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3563 $as_echo_n "(cached) " >&6
3564else
3565 if test -n "$CC"; then
3566 ac_cv_prog_CC="$CC" # Let the user override the test.
3567else
3568 ac_prog_rejected=no
3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH
3571do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3576 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3577 ac_prog_rejected=yes
3578 continue
3579 fi
3580 ac_cv_prog_CC="cc"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3583 fi
3584done
3585 done
3586IFS=$as_save_IFS
3587
3588if test $ac_prog_rejected = yes; then
3589 # We found a bogon in the path, so make sure we never use it.
3590 set dummy $ac_cv_prog_CC
3591 shift
3592 if test $# != 0; then
3593 # We chose a different compiler from the bogus one.
3594 # However, it has the same basename, so the bogon will be chosen
3595 # first if we set CC to just the basename; use the full file name.
3596 shift
3597 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3598 fi
3599fi
3600fi
3601fi
3602CC=$ac_cv_prog_CC
3603if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605$as_echo "$CC" >&6; }
3606else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608$as_echo "no" >&6; }
3609fi
3610
3611
3612fi
3613if test -z "$CC"; then
3614 if test -n "$ac_tool_prefix"; then
3615 for ac_prog in cl.exe
3616 do
3617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3618set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3621if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3622 $as_echo_n "(cached) " >&6
3623else
3624 if test -n "$CC"; then
3625 ac_cv_prog_CC="$CC" # Let the user override the test.
3626else
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3637 fi
3638done
3639 done
3640IFS=$as_save_IFS
3641
3642fi
3643fi
3644CC=$ac_cv_prog_CC
3645if test -n "$CC"; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3647$as_echo "$CC" >&6; }
3648else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650$as_echo "no" >&6; }
3651fi
3652
3653
3654 test -n "$CC" && break
3655 done
3656fi
3657if test -z "$CC"; then
3658 ac_ct_CC=$CC
3659 for ac_prog in cl.exe
3660do
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662set dummy $ac_prog; ac_word=$2
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3665if ${ac_cv_prog_ac_ct_CC+:} false; then :
48310492
RH
3666 $as_echo_n "(cached) " >&6
3667else
3668 if test -n "$ac_ct_CC"; then
3669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3670else
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3678 ac_cv_prog_ac_ct_CC="$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3681 fi
3682done
3683 done
3684IFS=$as_save_IFS
3685
3686fi
3687fi
3688ac_ct_CC=$ac_cv_prog_ac_ct_CC
3689if test -n "$ac_ct_CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3691$as_echo "$ac_ct_CC" >&6; }
3692else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694$as_echo "no" >&6; }
3695fi
3696
3697
3698 test -n "$ac_ct_CC" && break
3699done
3700
3701 if test "x$ac_ct_CC" = x; then
3702 CC=""
3703 else
3704 case $cross_compiling:$ac_tool_warned in
3705yes:)
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3708ac_tool_warned=yes ;;
3709esac
3710 CC=$ac_ct_CC
3711 fi
3712fi
3713
3714fi
3715
3716
3717test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3719as_fn_error $? "no acceptable C compiler found in \$PATH
3720See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
3721
3722# Provide some information about the compiler.
3723$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3724set X $ac_compile
3725ac_compiler=$2
3726for ac_option in --version -v -V -qversion; do
3727 { { ac_try="$ac_compiler $ac_option >&5"
3728case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731esac
3732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733$as_echo "$ac_try_echo"; } >&5
3734 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3735 ac_status=$?
3736 if test -s conftest.err; then
3737 sed '10a\
3738... rest of stderr output deleted ...
3739 10q' conftest.err >conftest.er1
3740 cat conftest.er1 >&5
48310492 3741 fi
22e05272 3742 rm -f conftest.er1 conftest.err
48310492
RH
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }
3745done
3746
3747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h. */
3749
3750int
3751main ()
3752{
3753
3754 ;
3755 return 0;
3756}
3757_ACEOF
3758ac_clean_files_save=$ac_clean_files
22e05272 3759ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
48310492
RH
3760# Try to create an executable without -o first, disregard a.out.
3761# It will help us diagnose broken compilers, and finding out an intuition
3762# of exeext.
22e05272
JM
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3764$as_echo_n "checking whether the C compiler works... " >&6; }
48310492
RH
3765ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3766
3767# The possible output files:
3768ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3769
3770ac_rmfiles=
3771for ac_file in $ac_files
3772do
3773 case $ac_file in
3774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3776 esac
3777done
3778rm -f $ac_rmfiles
3779
3780if { { ac_try="$ac_link_default"
3781case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784esac
3785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786$as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link_default") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }; then :
3791 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3792# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3793# in a Makefile. We should not override ac_cv_exeext if it was cached,
3794# so that the user can short-circuit this test for compilers unknown to
3795# Autoconf.
3796for ac_file in $ac_files ''
3797do
3798 test -f "$ac_file" || continue
3799 case $ac_file in
3800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3801 ;;
3802 [ab].out )
3803 # We found the default executable, but exeext='' is most
3804 # certainly right.
3805 break;;
3806 *.* )
3807 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3808 then :; else
3809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3810 fi
3811 # We set ac_cv_exeext here because the later test for it is not
3812 # safe: cross compilers may not add the suffix if given an `-o'
3813 # argument, so we may need to know it at that point already.
3814 # Even if this section looks crufty: it has the advantage of
3815 # actually working.
3816 break;;
3817 * )
3818 break;;
3819 esac
3820done
3821test "$ac_cv_exeext" = no && ac_cv_exeext=
3822
3823else
3824 ac_file=''
3825fi
48310492 3826if test -z "$ac_file"; then :
22e05272
JM
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828$as_echo "no" >&6; }
3829$as_echo "$as_me: failed program was:" >&5
48310492
RH
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3834as_fn_error 77 "C compiler cannot create executables
3835See \`config.log' for more details" "$LINENO" 5; }
3836else
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3838$as_echo "yes" >&6; }
48310492 3839fi
22e05272
JM
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3841$as_echo_n "checking for C compiler default output file name... " >&6; }
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3843$as_echo "$ac_file" >&6; }
48310492
RH
3844ac_exeext=$ac_cv_exeext
3845
22e05272 3846rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
48310492 3847ac_clean_files=$ac_clean_files_save
48310492
RH
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3849$as_echo_n "checking for suffix of executables... " >&6; }
3850if { { ac_try="$ac_link"
3851case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854esac
3855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856$as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3862# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3863# work properly (i.e., refer to `conftest.exe'), while it won't with
3864# `rm'.
3865for ac_file in conftest.exe conftest conftest.*; do
3866 test -f "$ac_file" || continue
3867 case $ac_file in
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3869 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3870 break;;
3871 * ) break;;
3872 esac
3873done
3874else
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3877as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3878See \`config.log' for more details" "$LINENO" 5; }
48310492 3879fi
22e05272 3880rm -f conftest conftest$ac_cv_exeext
48310492
RH
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3882$as_echo "$ac_cv_exeext" >&6; }
3883
3884rm -f conftest.$ac_ext
3885EXEEXT=$ac_cv_exeext
3886ac_exeext=$EXEEXT
22e05272
JM
3887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888/* end confdefs.h. */
3889#include <stdio.h>
3890int
3891main ()
3892{
3893FILE *f = fopen ("conftest.out", "w");
3894 return ferror (f) || fclose (f) != 0;
3895
3896 ;
3897 return 0;
3898}
3899_ACEOF
3900ac_clean_files="$ac_clean_files conftest.out"
3901# Check that the compiler produces executables we can run. If not, either
3902# the compiler is broken, or we cross compile.
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3904$as_echo_n "checking whether we are cross compiling... " >&6; }
3905if test "$cross_compiling" != yes; then
3906 { { ac_try="$ac_link"
3907case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910esac
3911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912$as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_link") 2>&5
3914 ac_status=$?
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }
3917 if { ac_try='./conftest$ac_cv_exeext'
3918 { { case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921esac
3922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923$as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_try") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; }; then
3928 cross_compiling=no
3929 else
3930 if test "$cross_compiling" = maybe; then
3931 cross_compiling=yes
3932 else
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935as_fn_error $? "cannot run C compiled programs.
3936If you meant to cross compile, use \`--host'.
3937See \`config.log' for more details" "$LINENO" 5; }
3938 fi
3939 fi
3940fi
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3942$as_echo "$cross_compiling" >&6; }
3943
3944rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3945ac_clean_files=$ac_clean_files_save
48310492
RH
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3947$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3948if ${ac_cv_objext+:} false; then :
48310492
RH
3949 $as_echo_n "(cached) " >&6
3950else
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h. */
3953
3954int
3955main ()
3956{
3957
3958 ;
3959 return 0;
3960}
3961_ACEOF
3962rm -f conftest.o conftest.obj
3963if { { ac_try="$ac_compile"
3964case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969$as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compile") 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 for ac_file in conftest.o conftest.obj conftest.*; do
3975 test -f "$ac_file" || continue;
3976 case $ac_file in
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3979 break;;
3980 esac
3981done
3982else
3983 $as_echo "$as_me: failed program was:" >&5
3984sed 's/^/| /' conftest.$ac_ext >&5
3985
3986{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3988as_fn_error $? "cannot compute suffix of object files: cannot compile
3989See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
3990fi
3991rm -f conftest.$ac_cv_objext conftest.$ac_ext
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3994$as_echo "$ac_cv_objext" >&6; }
3995OBJEXT=$ac_cv_objext
3996ac_objext=$OBJEXT
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3998$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3999if ${ac_cv_c_compiler_gnu+:} false; then :
48310492
RH
4000 $as_echo_n "(cached) " >&6
4001else
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003/* end confdefs.h. */
4004
4005int
4006main ()
4007{
4008#ifndef __GNUC__
4009 choke me
4010#endif
4011
4012 ;
4013 return 0;
4014}
4015_ACEOF
4016if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_compiler_gnu=yes
4018else
4019 ac_compiler_gnu=no
4020fi
4021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022ac_cv_c_compiler_gnu=$ac_compiler_gnu
4023
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4026$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4027if test $ac_compiler_gnu = yes; then
4028 GCC=yes
4029else
4030 GCC=
4031fi
4032ac_test_CFLAGS=${CFLAGS+set}
4033ac_save_CFLAGS=$CFLAGS
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4035$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4036if ${ac_cv_prog_cc_g+:} false; then :
48310492
RH
4037 $as_echo_n "(cached) " >&6
4038else
4039 ac_save_c_werror_flag=$ac_c_werror_flag
4040 ac_c_werror_flag=yes
4041 ac_cv_prog_cc_g=no
4042 CFLAGS="-g"
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044/* end confdefs.h. */
4045
4046int
4047main ()
4048{
4049
4050 ;
4051 return 0;
4052}
4053_ACEOF
4054if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_g=yes
4056else
4057 CFLAGS=""
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h. */
4060
4061int
4062main ()
4063{
4064
4065 ;
4066 return 0;
4067}
4068_ACEOF
4069if ac_fn_c_try_compile "$LINENO"; then :
4070
4071else
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4073 CFLAGS="-g"
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h. */
4076
4077int
4078main ()
4079{
4080
4081 ;
4082 return 0;
4083}
4084_ACEOF
4085if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_cv_prog_cc_g=yes
4087fi
4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089fi
4090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091fi
4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_c_werror_flag=$ac_save_c_werror_flag
4094fi
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096$as_echo "$ac_cv_prog_cc_g" >&6; }
4097if test "$ac_test_CFLAGS" = set; then
4098 CFLAGS=$ac_save_CFLAGS
4099elif test $ac_cv_prog_cc_g = yes; then
4100 if test "$GCC" = yes; then
4101 CFLAGS="-g -O2"
4102 else
4103 CFLAGS="-g"
4104 fi
4105else
4106 if test "$GCC" = yes; then
4107 CFLAGS="-O2"
4108 else
4109 CFLAGS=
4110 fi
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4113$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4114if ${ac_cv_prog_cc_c89+:} false; then :
48310492
RH
4115 $as_echo_n "(cached) " >&6
4116else
4117 ac_cv_prog_cc_c89=no
4118ac_save_CC=$CC
4119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h. */
4121#include <stdarg.h>
4122#include <stdio.h>
22e05272 4123struct stat;
48310492
RH
4124/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4125struct buf { int x; };
4126FILE * (*rcsopen) (struct buf *, struct stat *, int);
4127static char *e (p, i)
4128 char **p;
4129 int i;
4130{
4131 return p[i];
4132}
4133static char *f (char * (*g) (char **, int), char **p, ...)
4134{
4135 char *s;
4136 va_list v;
4137 va_start (v,p);
4138 s = g (p, va_arg (v,int));
4139 va_end (v);
4140 return s;
4141}
4142
4143/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4144 function prototypes and stuff, but not '\xHH' hex character constants.
4145 These don't provoke an error unfortunately, instead are silently treated
4146 as 'x'. The following induces an error, until -std is added to get
4147 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4148 array size at least. It's necessary to write '\x00'==0 to get something
4149 that's true only with -std. */
4150int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4151
4152/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4153 inside strings and character constants. */
4154#define FOO(x) 'x'
4155int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4156
4157int test (int i, double x);
4158struct s1 {int (*f) (int a);};
4159struct s2 {int (*f) (double a);};
4160int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4161int argc;
4162char **argv;
4163int
4164main ()
4165{
4166return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4172 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4173do
4174 CC="$ac_save_CC $ac_arg"
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_prog_cc_c89=$ac_arg
4177fi
4178rm -f core conftest.err conftest.$ac_objext
4179 test "x$ac_cv_prog_cc_c89" != "xno" && break
4180done
4181rm -f conftest.$ac_ext
4182CC=$ac_save_CC
4183
4184fi
4185# AC_CACHE_VAL
4186case "x$ac_cv_prog_cc_c89" in
4187 x)
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4189$as_echo "none needed" >&6; } ;;
4190 xno)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4192$as_echo "unsupported" >&6; } ;;
4193 *)
4194 CC="$CC $ac_cv_prog_cc_c89"
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4196$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4197esac
4198if test "x$ac_cv_prog_cc_c89" != xno; then :
4199
4200fi
4201
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
22e05272
JM
4207
4208ac_ext=c
4209ac_cpp='$CPP $CPPFLAGS'
4210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4214$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4215if ${am_cv_prog_cc_c_o+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217else
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h. */
4220
4221int
4222main ()
4223{
4224
4225 ;
4226 return 0;
4227}
4228_ACEOF
4229 # Make sure it works both with $CC and with simple cc.
4230 # Following AC_PROG_CC_C_O, we do the test twice because some
4231 # compilers refuse to overwrite an existing .o file with -o,
4232 # though they will create one.
4233 am_cv_prog_cc_c_o=yes
4234 for am_i in 1 2; do
4235 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4236 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } \
4240 && test -f conftest2.$ac_objext; then
4241 : OK
4242 else
4243 am_cv_prog_cc_c_o=no
4244 break
4245 fi
4246 done
4247 rm -f core conftest*
4248 unset am_i
4249fi
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4251$as_echo "$am_cv_prog_cc_c_o" >&6; }
4252if test "$am_cv_prog_cc_c_o" != yes; then
4253 # Losing compiler, so override with the script.
4254 # FIXME: It is wrong to rewrite CC.
4255 # But if we don't then we get into trouble of one sort or another.
4256 # A longer-term fix would be to have automake use am__CC in this case,
4257 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4258 CC="$am_aux_dir/compile $CC"
4259fi
4260ac_ext=c
4261ac_cpp='$CPP $CPPFLAGS'
4262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4264ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265
48310492
RH
4266DEPDIR="${am__leading_dot}deps"
4267
4268ac_config_commands="$ac_config_commands depfiles"
4269
4270
4271am_make=${MAKE-make}
4272cat > confinc << 'END'
4273am__doit:
4274 @echo this is the am__doit target
4275.PHONY: am__doit
4276END
4277# If we don't find an include directive, just comment out the code.
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4279$as_echo_n "checking for style of include used by $am_make... " >&6; }
4280am__include="#"
4281am__quote=
4282_am_result=none
4283# First try GNU make style include.
4284echo "include confinc" > confmf
22e05272 4285# Ignore all kinds of additional output from 'make'.
48310492
RH
4286case `$am_make -s -f confmf 2> /dev/null` in #(
4287*the\ am__doit\ target*)
4288 am__include=include
4289 am__quote=
4290 _am_result=GNU
4291 ;;
4292esac
4293# Now try BSD make style include.
4294if test "$am__include" = "#"; then
4295 echo '.include "confinc"' > confmf
4296 case `$am_make -s -f confmf 2> /dev/null` in #(
4297 *the\ am__doit\ target*)
4298 am__include=.include
4299 am__quote="\""
4300 _am_result=BSD
4301 ;;
4302 esac
4303fi
4304
4305
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4307$as_echo "$_am_result" >&6; }
4308rm -f confinc confmf
4309
4310# Check whether --enable-dependency-tracking was given.
4311if test "${enable_dependency_tracking+set}" = set; then :
4312 enableval=$enable_dependency_tracking;
4313fi
4314
4315if test "x$enable_dependency_tracking" != xno; then
4316 am_depcomp="$ac_aux_dir/depcomp"
4317 AMDEPBACKSLASH='\'
dc3368d0 4318 am__nodep='_no'
48310492
RH
4319fi
4320 if test "x$enable_dependency_tracking" != xno; then
4321 AMDEP_TRUE=
4322 AMDEP_FALSE='#'
4323else
4324 AMDEP_TRUE='#'
4325 AMDEP_FALSE=
4326fi
4327
4328
4329
4330depcc="$CC" am_compiler_list=
4331
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4333$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4334if ${am_cv_CC_dependencies_compiler_type+:} false; then :
48310492
RH
4335 $as_echo_n "(cached) " >&6
4336else
4337 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4338 # We make a subdir and do the tests there. Otherwise we can end up
4339 # making bogus files that we don't know about and never remove. For
4340 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4341 # making a dummy file named 'D' -- because '-MD' means "put the output
4342 # in D".
dc3368d0 4343 rm -rf conftest.dir
48310492
RH
4344 mkdir conftest.dir
4345 # Copy depcomp to subdir because otherwise we won't find it if we're
4346 # using a relative directory.
4347 cp "$am_depcomp" conftest.dir
4348 cd conftest.dir
4349 # We will build objects and dependencies in a subdirectory because
4350 # it helps to detect inapplicable dependency modes. For instance
4351 # both Tru64's cc and ICC support -MD to output dependencies as a
4352 # side effect of compilation, but ICC will put the dependencies in
4353 # the current directory while Tru64 will put them in the object
4354 # directory.
4355 mkdir sub
4356
4357 am_cv_CC_dependencies_compiler_type=none
4358 if test "$am_compiler_list" = ""; then
4359 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4360 fi
4361 am__universal=false
4362 case " $depcc " in #(
4363 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4364 esac
4365
4366 for depmode in $am_compiler_list; do
4367 # Setup a source with many dependencies, because some compilers
4368 # like to wrap large dependency lists on column 80 (with \), and
4369 # we should not choose a depcomp mode which is confused by this.
4370 #
4371 # We need to recreate these files for each test, as the compiler may
4372 # overwrite some of them when testing with obscure command lines.
4373 # This happens at least with the AIX C compiler.
4374 : > sub/conftest.c
4375 for i in 1 2 3 4 5 6; do
4376 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4377 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4378 # Solaris 10 /bin/sh.
4379 echo '/* dummy */' > sub/conftst$i.h
48310492
RH
4380 done
4381 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4382
22e05272 4383 # We check with '-c' and '-o' for the sake of the "dashmstdout"
48310492 4384 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4385 # handle '-M -o', and we need to detect this. Also, some Intel
4386 # versions had trouble with output in subdirs.
48310492
RH
4387 am__obj=sub/conftest.${OBJEXT-o}
4388 am__minus_obj="-o $am__obj"
4389 case $depmode in
4390 gcc)
4391 # This depmode causes a compiler race in universal mode.
4392 test "$am__universal" = false || continue
4393 ;;
4394 nosideeffect)
22e05272
JM
4395 # After this tag, mechanisms are not by side-effect, so they'll
4396 # only be used when explicitly requested.
48310492
RH
4397 if test "x$enable_dependency_tracking" = xyes; then
4398 continue
4399 else
4400 break
4401 fi
4402 ;;
dc3368d0 4403 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4404 # This compiler won't grok '-c -o', but also, the minuso test has
48310492
RH
4405 # not run yet. These depmodes are late enough in the game, and
4406 # so weak that their functioning should not be impacted.
4407 am__obj=conftest.${OBJEXT-o}
4408 am__minus_obj=
4409 ;;
4410 none) break ;;
4411 esac
4412 if depmode=$depmode \
4413 source=sub/conftest.c object=$am__obj \
4414 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4415 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4416 >/dev/null 2>conftest.err &&
4417 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4418 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4419 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4420 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4421 # icc doesn't choke on unknown options, it will just issue warnings
4422 # or remarks (even with -Werror). So we grep stderr for any message
4423 # that says an option was ignored or not supported.
4424 # When given -MP, icc 7.0 and 7.1 complain thusly:
4425 # icc: Command line warning: ignoring option '-M'; no argument required
4426 # The diagnosis changed in icc 8.0:
4427 # icc: Command line remark: option '-MP' not supported
4428 if (grep 'ignoring option' conftest.err ||
4429 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4430 am_cv_CC_dependencies_compiler_type=$depmode
4431 break
4432 fi
4433 fi
4434 done
4435
4436 cd ..
4437 rm -rf conftest.dir
4438else
4439 am_cv_CC_dependencies_compiler_type=none
4440fi
4441
4442fi
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4444$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4445CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4446
4447 if
4448 test "x$enable_dependency_tracking" != xno \
4449 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4450 am__fastdepCC_TRUE=
4451 am__fastdepCC_FALSE='#'
4452else
4453 am__fastdepCC_TRUE='#'
4454 am__fastdepCC_FALSE=
4455fi
4456
4457
4458# By default we simply use the C compiler to build assembly code.
4459
4460test "${CCAS+set}" = set || CCAS=$CC
4461test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4462
4463
4464
4465depcc="$CCAS" am_compiler_list=
4466
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4468$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4469if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
48310492
RH
4470 $as_echo_n "(cached) " >&6
4471else
4472 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4473 # We make a subdir and do the tests there. Otherwise we can end up
4474 # making bogus files that we don't know about and never remove. For
4475 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4476 # making a dummy file named 'D' -- because '-MD' means "put the output
4477 # in D".
dc3368d0 4478 rm -rf conftest.dir
48310492
RH
4479 mkdir conftest.dir
4480 # Copy depcomp to subdir because otherwise we won't find it if we're
4481 # using a relative directory.
4482 cp "$am_depcomp" conftest.dir
4483 cd conftest.dir
4484 # We will build objects and dependencies in a subdirectory because
4485 # it helps to detect inapplicable dependency modes. For instance
4486 # both Tru64's cc and ICC support -MD to output dependencies as a
4487 # side effect of compilation, but ICC will put the dependencies in
4488 # the current directory while Tru64 will put them in the object
4489 # directory.
4490 mkdir sub
4491
4492 am_cv_CCAS_dependencies_compiler_type=none
4493 if test "$am_compiler_list" = ""; then
4494 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4495 fi
4496 am__universal=false
4497
4498
4499 for depmode in $am_compiler_list; do
4500 # Setup a source with many dependencies, because some compilers
4501 # like to wrap large dependency lists on column 80 (with \), and
4502 # we should not choose a depcomp mode which is confused by this.
4503 #
4504 # We need to recreate these files for each test, as the compiler may
4505 # overwrite some of them when testing with obscure command lines.
4506 # This happens at least with the AIX C compiler.
4507 : > sub/conftest.c
4508 for i in 1 2 3 4 5 6; do
4509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4510 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4511 # Solaris 10 /bin/sh.
4512 echo '/* dummy */' > sub/conftst$i.h
48310492
RH
4513 done
4514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4515
22e05272 4516 # We check with '-c' and '-o' for the sake of the "dashmstdout"
48310492 4517 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4518 # handle '-M -o', and we need to detect this. Also, some Intel
4519 # versions had trouble with output in subdirs.
48310492
RH
4520 am__obj=sub/conftest.${OBJEXT-o}
4521 am__minus_obj="-o $am__obj"
4522 case $depmode in
4523 gcc)
4524 # This depmode causes a compiler race in universal mode.
4525 test "$am__universal" = false || continue
4526 ;;
4527 nosideeffect)
22e05272
JM
4528 # After this tag, mechanisms are not by side-effect, so they'll
4529 # only be used when explicitly requested.
48310492
RH
4530 if test "x$enable_dependency_tracking" = xyes; then
4531 continue
4532 else
4533 break
4534 fi
4535 ;;
dc3368d0 4536 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4537 # This compiler won't grok '-c -o', but also, the minuso test has
48310492
RH
4538 # not run yet. These depmodes are late enough in the game, and
4539 # so weak that their functioning should not be impacted.
4540 am__obj=conftest.${OBJEXT-o}
4541 am__minus_obj=
4542 ;;
4543 none) break ;;
4544 esac
4545 if depmode=$depmode \
4546 source=sub/conftest.c object=$am__obj \
4547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4548 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4549 >/dev/null 2>conftest.err &&
4550 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4551 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4553 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4554 # icc doesn't choke on unknown options, it will just issue warnings
4555 # or remarks (even with -Werror). So we grep stderr for any message
4556 # that says an option was ignored or not supported.
4557 # When given -MP, icc 7.0 and 7.1 complain thusly:
4558 # icc: Command line warning: ignoring option '-M'; no argument required
4559 # The diagnosis changed in icc 8.0:
4560 # icc: Command line remark: option '-MP' not supported
4561 if (grep 'ignoring option' conftest.err ||
4562 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4563 am_cv_CCAS_dependencies_compiler_type=$depmode
4564 break
4565 fi
4566 fi
4567 done
4568
4569 cd ..
4570 rm -rf conftest.dir
4571else
4572 am_cv_CCAS_dependencies_compiler_type=none
4573fi
4574
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4577$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4578CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4579
4580 if
4581 test "x$enable_dependency_tracking" != xno \
4582 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4583 am__fastdepCCAS_TRUE=
4584 am__fastdepCCAS_FALSE='#'
4585else
4586 am__fastdepCCAS_TRUE='#'
4587 am__fastdepCCAS_FALSE=
4588fi
4589
4590
4591
4592
4593
4594
4595# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4596# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4597# in both places for now and restore CFLAGS at the end of config.
4598save_CFLAGS="$CFLAGS"
4599
4600# Find other programs we need.
4601if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4603set dummy ${ac_tool_prefix}ar; ac_word=$2
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_AR+:} false; then :
48310492
RH
4607 $as_echo_n "(cached) " >&6
4608else
4609 if test -n "$AR"; then
4610 ac_cv_prog_AR="$AR" # Let the user override the test.
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
48310492
RH
4619 ac_cv_prog_AR="${ac_tool_prefix}ar"
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
4629AR=$ac_cv_prog_AR
4630if test -n "$AR"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4632$as_echo "$AR" >&6; }
4633else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635$as_echo "no" >&6; }
4636fi
4637
4638
4639fi
4640if test -z "$ac_cv_prog_AR"; then
4641 ac_ct_AR=$AR
4642 # Extract the first word of "ar", so it can be a program name with args.
4643set dummy ar; ac_word=$2
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4646if ${ac_cv_prog_ac_ct_AR+:} false; then :
48310492
RH
4647 $as_echo_n "(cached) " >&6
4648else
4649 if test -n "$ac_ct_AR"; then
4650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4651else
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4659 ac_cv_prog_ac_ct_AR="ar"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663done
4664 done
4665IFS=$as_save_IFS
4666
4667fi
4668fi
4669ac_ct_AR=$ac_cv_prog_ac_ct_AR
4670if test -n "$ac_ct_AR"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4672$as_echo "$ac_ct_AR" >&6; }
4673else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675$as_echo "no" >&6; }
4676fi
4677
4678 if test "x$ac_ct_AR" = x; then
4679 AR=""
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682yes:)
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685ac_tool_warned=yes ;;
4686esac
4687 AR=$ac_ct_AR
4688 fi
4689else
4690 AR="$ac_cv_prog_AR"
4691fi
4692
4693if test -n "$ac_tool_prefix"; then
4694 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4695set dummy ${ac_tool_prefix}nm; ac_word=$2
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4698if ${ac_cv_prog_NM+:} false; then :
48310492
RH
4699 $as_echo_n "(cached) " >&6
4700else
4701 if test -n "$NM"; then
4702 ac_cv_prog_NM="$NM" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4711 ac_cv_prog_NM="${ac_tool_prefix}nm"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715done
4716 done
4717IFS=$as_save_IFS
4718
4719fi
4720fi
4721NM=$ac_cv_prog_NM
4722if test -n "$NM"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4724$as_echo "$NM" >&6; }
4725else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727$as_echo "no" >&6; }
4728fi
4729
4730
4731fi
4732if test -z "$ac_cv_prog_NM"; then
4733 ac_ct_NM=$NM
4734 # Extract the first word of "nm", so it can be a program name with args.
4735set dummy nm; ac_word=$2
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4738if ${ac_cv_prog_ac_ct_NM+:} false; then :
48310492
RH
4739 $as_echo_n "(cached) " >&6
4740else
4741 if test -n "$ac_ct_NM"; then
4742 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4743else
4744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH
4746do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4751 ac_cv_prog_ac_ct_NM="nm"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755done
4756 done
4757IFS=$as_save_IFS
4758
4759fi
4760fi
4761ac_ct_NM=$ac_cv_prog_ac_ct_NM
4762if test -n "$ac_ct_NM"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4764$as_echo "$ac_ct_NM" >&6; }
4765else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767$as_echo "no" >&6; }
4768fi
4769
4770 if test "x$ac_ct_NM" = x; then
4771 NM=""
4772 else
4773 case $cross_compiling:$ac_tool_warned in
4774yes:)
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4777ac_tool_warned=yes ;;
4778esac
4779 NM=$ac_ct_NM
4780 fi
4781else
4782 NM="$ac_cv_prog_NM"
4783fi
4784
4785if test -n "$ac_tool_prefix"; then
4786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4787set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4790if ${ac_cv_prog_RANLIB+:} false; then :
48310492
RH
4791 $as_echo_n "(cached) " >&6
4792else
4793 if test -n "$RANLIB"; then
4794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4795else
4796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH
4798do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4806 fi
4807done
4808 done
4809IFS=$as_save_IFS
4810
4811fi
4812fi
4813RANLIB=$ac_cv_prog_RANLIB
4814if test -n "$RANLIB"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4816$as_echo "$RANLIB" >&6; }
4817else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819$as_echo "no" >&6; }
4820fi
4821
4822
4823fi
4824if test -z "$ac_cv_prog_RANLIB"; then
4825 ac_ct_RANLIB=$RANLIB
4826 # Extract the first word of "ranlib", so it can be a program name with args.
4827set dummy ranlib; ac_word=$2
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4830if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
48310492
RH
4831 $as_echo_n "(cached) " >&6
4832else
4833 if test -n "$ac_ct_RANLIB"; then
4834 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4835else
4836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4843 ac_cv_prog_ac_ct_RANLIB="ranlib"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4846 fi
4847done
4848 done
4849IFS=$as_save_IFS
4850
4851fi
4852fi
4853ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4854if test -n "$ac_ct_RANLIB"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4856$as_echo "$ac_ct_RANLIB" >&6; }
4857else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859$as_echo "no" >&6; }
4860fi
4861
4862 if test "x$ac_ct_RANLIB" = x; then
4863 RANLIB="ranlib-not-found-in-path-error"
4864 else
4865 case $cross_compiling:$ac_tool_warned in
4866yes:)
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4869ac_tool_warned=yes ;;
4870esac
4871 RANLIB=$ac_ct_RANLIB
4872 fi
4873else
4874 RANLIB="$ac_cv_prog_RANLIB"
4875fi
4876
48310492
RH
4877
4878
4879# Configure libtool
4880case `pwd` in
4881 *\ * | *\ *)
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4883$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4884esac
4885
4886
4887
4888macro_version='2.2.7a'
4889macro_revision='1.3134'
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903ltmain="$ac_aux_dir/ltmain.sh"
4904
4905# Backslashify metacharacters that are still active within
4906# double-quoted strings.
4907sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4908
4909# Same as above, but do not quote variable references.
4910double_quote_subst='s/\(["`\\]\)/\\\1/g'
4911
4912# Sed substitution to delay expansion of an escaped shell variable in a
4913# double_quote_subst'ed string.
4914delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4915
4916# Sed substitution to delay expansion of an escaped single quote.
4917delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4918
4919# Sed substitution to avoid accidental globbing in evaled expressions
4920no_glob_subst='s/\*/\\\*/g'
4921
4922ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4923ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4924ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4925
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4927$as_echo_n "checking how to print strings... " >&6; }
4928# Test print first, because it will be a builtin if present.
4929if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4930 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4931 ECHO='print -r --'
4932elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4933 ECHO='printf %s\n'
4934else
4935 # Use this function as a fallback that always works.
4936 func_fallback_echo ()
4937 {
4938 eval 'cat <<_LTECHO_EOF
4939$1
4940_LTECHO_EOF'
4941 }
4942 ECHO='func_fallback_echo'
4943fi
4944
4945# func_echo_all arg...
4946# Invoke $ECHO with all args, space-separated.
4947func_echo_all ()
4948{
4949 $ECHO ""
4950}
4951
4952case "$ECHO" in
4953 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4954$as_echo "printf" >&6; } ;;
4955 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4956$as_echo "print -r" >&6; } ;;
4957 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4958$as_echo "cat" >&6; } ;;
4959esac
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4975$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 4976if ${ac_cv_path_SED+:} false; then :
48310492
RH
4977 $as_echo_n "(cached) " >&6
4978else
4979 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4980 for ac_i in 1 2 3 4 5 6 7; do
4981 ac_script="$ac_script$as_nl$ac_script"
4982 done
4983 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4984 { ac_script=; unset ac_script;}
4985 if test -z "$SED"; then
4986 ac_path_SED_found=false
4987 # Loop through the user's path and test for each of PROGNAME-LIST
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_prog in sed gsed; do
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4996 as_fn_executable_p "$ac_path_SED" || continue
48310492
RH
4997# Check for GNU ac_path_SED and select it if it is found.
4998 # Check for GNU $ac_path_SED
4999case `"$ac_path_SED" --version 2>&1` in
5000*GNU*)
5001 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5002*)
5003 ac_count=0
5004 $as_echo_n 0123456789 >"conftest.in"
5005 while :
5006 do
5007 cat "conftest.in" "conftest.in" >"conftest.tmp"
5008 mv "conftest.tmp" "conftest.in"
5009 cp "conftest.in" "conftest.nl"
5010 $as_echo '' >> "conftest.nl"
5011 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5013 as_fn_arith $ac_count + 1 && ac_count=$as_val
5014 if test $ac_count -gt ${ac_path_SED_max-0}; then
5015 # Best one so far, save it but keep looking for a better one
5016 ac_cv_path_SED="$ac_path_SED"
5017 ac_path_SED_max=$ac_count
5018 fi
5019 # 10*(2^10) chars as input seems more than enough
5020 test $ac_count -gt 10 && break
5021 done
5022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5023esac
5024
5025 $ac_path_SED_found && break 3
5026 done
5027 done
5028 done
5029IFS=$as_save_IFS
5030 if test -z "$ac_cv_path_SED"; then
22e05272 5031 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
48310492
RH
5032 fi
5033else
5034 ac_cv_path_SED=$SED
5035fi
5036
5037fi
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5039$as_echo "$ac_cv_path_SED" >&6; }
5040 SED="$ac_cv_path_SED"
5041 rm -f conftest.sed
5042
5043test -z "$SED" && SED=sed
5044Xsed="$SED -e 1s/^X//"
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5057$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 5058if ${ac_cv_path_GREP+:} false; then :
48310492
RH
5059 $as_echo_n "(cached) " >&6
5060else
5061 if test -z "$GREP"; then
5062 ac_path_GREP_found=false
5063 # Loop through the user's path and test for each of PROGNAME-LIST
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_prog in grep ggrep; do
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5072 as_fn_executable_p "$ac_path_GREP" || continue
48310492
RH
5073# Check for GNU ac_path_GREP and select it if it is found.
5074 # Check for GNU $ac_path_GREP
5075case `"$ac_path_GREP" --version 2>&1` in
5076*GNU*)
5077 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5078*)
5079 ac_count=0
5080 $as_echo_n 0123456789 >"conftest.in"
5081 while :
5082 do
5083 cat "conftest.in" "conftest.in" >"conftest.tmp"
5084 mv "conftest.tmp" "conftest.in"
5085 cp "conftest.in" "conftest.nl"
5086 $as_echo 'GREP' >> "conftest.nl"
5087 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5089 as_fn_arith $ac_count + 1 && ac_count=$as_val
5090 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5091 # Best one so far, save it but keep looking for a better one
5092 ac_cv_path_GREP="$ac_path_GREP"
5093 ac_path_GREP_max=$ac_count
5094 fi
5095 # 10*(2^10) chars as input seems more than enough
5096 test $ac_count -gt 10 && break
5097 done
5098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5099esac
5100
5101 $ac_path_GREP_found && break 3
5102 done
5103 done
5104 done
5105IFS=$as_save_IFS
5106 if test -z "$ac_cv_path_GREP"; then
22e05272 5107 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5108 fi
5109else
5110 ac_cv_path_GREP=$GREP
5111fi
5112
5113fi
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5115$as_echo "$ac_cv_path_GREP" >&6; }
5116 GREP="$ac_cv_path_GREP"
5117
5118
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5120$as_echo_n "checking for egrep... " >&6; }
22e05272 5121if ${ac_cv_path_EGREP+:} false; then :
48310492
RH
5122 $as_echo_n "(cached) " >&6
5123else
5124 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5125 then ac_cv_path_EGREP="$GREP -E"
5126 else
5127 if test -z "$EGREP"; then
5128 ac_path_EGREP_found=false
5129 # Loop through the user's path and test for each of PROGNAME-LIST
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5132do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_prog in egrep; do
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5138 as_fn_executable_p "$ac_path_EGREP" || continue
48310492
RH
5139# Check for GNU ac_path_EGREP and select it if it is found.
5140 # Check for GNU $ac_path_EGREP
5141case `"$ac_path_EGREP" --version 2>&1` in
5142*GNU*)
5143 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5144*)
5145 ac_count=0
5146 $as_echo_n 0123456789 >"conftest.in"
5147 while :
5148 do
5149 cat "conftest.in" "conftest.in" >"conftest.tmp"
5150 mv "conftest.tmp" "conftest.in"
5151 cp "conftest.in" "conftest.nl"
5152 $as_echo 'EGREP' >> "conftest.nl"
5153 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5155 as_fn_arith $ac_count + 1 && ac_count=$as_val
5156 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5157 # Best one so far, save it but keep looking for a better one
5158 ac_cv_path_EGREP="$ac_path_EGREP"
5159 ac_path_EGREP_max=$ac_count
5160 fi
5161 # 10*(2^10) chars as input seems more than enough
5162 test $ac_count -gt 10 && break
5163 done
5164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5165esac
5166
5167 $ac_path_EGREP_found && break 3
5168 done
5169 done
5170 done
5171IFS=$as_save_IFS
5172 if test -z "$ac_cv_path_EGREP"; then
22e05272 5173 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5174 fi
5175else
5176 ac_cv_path_EGREP=$EGREP
5177fi
5178
5179 fi
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5182$as_echo "$ac_cv_path_EGREP" >&6; }
5183 EGREP="$ac_cv_path_EGREP"
5184
5185
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5187$as_echo_n "checking for fgrep... " >&6; }
22e05272 5188if ${ac_cv_path_FGREP+:} false; then :
48310492
RH
5189 $as_echo_n "(cached) " >&6
5190else
5191 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5192 then ac_cv_path_FGREP="$GREP -F"
5193 else
5194 if test -z "$FGREP"; then
5195 ac_path_FGREP_found=false
5196 # Loop through the user's path and test for each of PROGNAME-LIST
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_prog in fgrep; do
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5205 as_fn_executable_p "$ac_path_FGREP" || continue
48310492
RH
5206# Check for GNU ac_path_FGREP and select it if it is found.
5207 # Check for GNU $ac_path_FGREP
5208case `"$ac_path_FGREP" --version 2>&1` in
5209*GNU*)
5210 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5211*)
5212 ac_count=0
5213 $as_echo_n 0123456789 >"conftest.in"
5214 while :
5215 do
5216 cat "conftest.in" "conftest.in" >"conftest.tmp"
5217 mv "conftest.tmp" "conftest.in"
5218 cp "conftest.in" "conftest.nl"
5219 $as_echo 'FGREP' >> "conftest.nl"
5220 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5222 as_fn_arith $ac_count + 1 && ac_count=$as_val
5223 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5224 # Best one so far, save it but keep looking for a better one
5225 ac_cv_path_FGREP="$ac_path_FGREP"
5226 ac_path_FGREP_max=$ac_count
5227 fi
5228 # 10*(2^10) chars as input seems more than enough
5229 test $ac_count -gt 10 && break
5230 done
5231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5232esac
5233
5234 $ac_path_FGREP_found && break 3
5235 done
5236 done
5237 done
5238IFS=$as_save_IFS
5239 if test -z "$ac_cv_path_FGREP"; then
22e05272 5240 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5241 fi
5242else
5243 ac_cv_path_FGREP=$FGREP
5244fi
5245
5246 fi
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5249$as_echo "$ac_cv_path_FGREP" >&6; }
5250 FGREP="$ac_cv_path_FGREP"
5251
5252
5253test -z "$GREP" && GREP=grep
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273# Check whether --with-gnu-ld was given.
5274if test "${with_gnu_ld+set}" = set; then :
5275 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5276else
5277 with_gnu_ld=no
5278fi
5279
5280ac_prog=ld
5281if test "$GCC" = yes; then
5282 # Check if gcc -print-prog-name=ld gives a path.
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5284$as_echo_n "checking for ld used by $CC... " >&6; }
5285 case $host in
5286 *-*-mingw*)
5287 # gcc leaves a trailing carriage return which upsets mingw
5288 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5289 *)
5290 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5291 esac
5292 case $ac_prog in
5293 # Accept absolute paths.
5294 [\\/]* | ?:[\\/]*)
5295 re_direlt='/[^/][^/]*/\.\./'
5296 # Canonicalize the pathname of ld
5297 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5298 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5299 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5300 done
5301 test -z "$LD" && LD="$ac_prog"
5302 ;;
5303 "")
5304 # If it fails, then pretend we aren't using GCC.
5305 ac_prog=ld
5306 ;;
5307 *)
5308 # If it is relative, then search for the first ld in PATH.
5309 with_gnu_ld=unknown
5310 ;;
5311 esac
5312elif test "$with_gnu_ld" = yes; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5314$as_echo_n "checking for GNU ld... " >&6; }
5315else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5317$as_echo_n "checking for non-GNU ld... " >&6; }
5318fi
22e05272 5319if ${lt_cv_path_LD+:} false; then :
48310492
RH
5320 $as_echo_n "(cached) " >&6
5321else
5322 if test -z "$LD"; then
5323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5324 for ac_dir in $PATH; do
5325 IFS="$lt_save_ifs"
5326 test -z "$ac_dir" && ac_dir=.
5327 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5328 lt_cv_path_LD="$ac_dir/$ac_prog"
5329 # Check to see if the program is GNU ld. I'd rather use --version,
5330 # but apparently some variants of GNU ld only accept -v.
5331 # Break only if it was the GNU/non-GNU ld that we prefer.
5332 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5333 *GNU* | *'with BFD'*)
5334 test "$with_gnu_ld" != no && break
5335 ;;
5336 *)
5337 test "$with_gnu_ld" != yes && break
5338 ;;
5339 esac
5340 fi
5341 done
5342 IFS="$lt_save_ifs"
5343else
5344 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5345fi
5346fi
5347
5348LD="$lt_cv_path_LD"
5349if test -n "$LD"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5351$as_echo "$LD" >&6; }
5352else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5355fi
22e05272 5356test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
48310492
RH
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5358$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5359if ${lt_cv_prog_gnu_ld+:} false; then :
48310492
RH
5360 $as_echo_n "(cached) " >&6
5361else
5362 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5363case `$LD -v 2>&1 </dev/null` in
5364*GNU* | *'with BFD'*)
5365 lt_cv_prog_gnu_ld=yes
5366 ;;
5367*)
5368 lt_cv_prog_gnu_ld=no
5369 ;;
5370esac
5371fi
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5373$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5374with_gnu_ld=$lt_cv_prog_gnu_ld
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5385$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5386if ${lt_cv_path_NM+:} false; then :
48310492
RH
5387 $as_echo_n "(cached) " >&6
5388else
5389 if test -n "$NM"; then
ab422974
NA
5390 # Let the user override the nm to test.
5391 lt_nm_to_check="$NM"
5392 else
5393 lt_nm_to_check="${ac_tool_prefix}nm"
5394 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5395 lt_nm_to_check="$lt_nm_to_check nm"
5396 fi
5397 fi
f3307109 5398 for lt_tmp_nm in "$lt_nm_to_check"; do
ab422974
NA
5399 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5400 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5401 IFS="$lt_save_ifs"
5402 test -z "$ac_dir" && ac_dir=.
f3307109
NA
5403 # Strip out any user-provided options from the nm to test twice,
5404 # the first time to test to see if nm (rather than its options) has
5405 # an explicit path, the second time to yield a file which can be
5406 # nm'ed itself.
5407 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5408 case "$tmp_nm_path" in
ab422974
NA
5409 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5410 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5411 esac
f3307109
NA
5412 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5413 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
ab422974
NA
5414 # Check to see if the nm accepts a BSD-compat flag.
5415 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5416 # nm: unknown option "B" ignored
f3307109 5417 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
5418 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5419 break
5420 ;;
5421 *)
f3307109 5422 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
5423 *$tmp_nm*)
5424 lt_cv_path_NM="$tmp_nm -p"
5425 break
5426 ;;
5427 *)
5428 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5429 continue # so that we can try to find one that supports BSD flags
5430 ;;
5431 esac
5432 ;;
5433 esac
5434 fi
5435 done
5436 IFS="$lt_save_ifs"
5437 done
5438 : ${lt_cv_path_NM=no}
48310492
RH
5439fi
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5441$as_echo "$lt_cv_path_NM" >&6; }
5442if test "$lt_cv_path_NM" != "no"; then
5443 NM="$lt_cv_path_NM"
5444else
5445 # Didn't find any BSD compatible name lister, look for dumpbin.
5446 if test -n "$DUMPBIN"; then :
5447 # Let the user override the test.
5448 else
5449 if test -n "$ac_tool_prefix"; then
5450 for ac_prog in dumpbin "link -dump"
5451 do
5452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5453set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5456if ${ac_cv_prog_DUMPBIN+:} false; then :
48310492
RH
5457 $as_echo_n "(cached) " >&6
5458else
5459 if test -n "$DUMPBIN"; then
5460 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5461else
5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH
5464do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5469 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5472 fi
5473done
5474 done
5475IFS=$as_save_IFS
5476
5477fi
5478fi
5479DUMPBIN=$ac_cv_prog_DUMPBIN
5480if test -n "$DUMPBIN"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5482$as_echo "$DUMPBIN" >&6; }
5483else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485$as_echo "no" >&6; }
5486fi
5487
5488
5489 test -n "$DUMPBIN" && break
5490 done
5491fi
5492if test -z "$DUMPBIN"; then
5493 ac_ct_DUMPBIN=$DUMPBIN
5494 for ac_prog in dumpbin "link -dump"
5495do
5496 # Extract the first word of "$ac_prog", so it can be a program name with args.
5497set dummy $ac_prog; ac_word=$2
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5500if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
48310492
RH
5501 $as_echo_n "(cached) " >&6
5502else
5503 if test -n "$ac_ct_DUMPBIN"; then
5504 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5513 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517done
5518 done
5519IFS=$as_save_IFS
5520
5521fi
5522fi
5523ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5524if test -n "$ac_ct_DUMPBIN"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5526$as_echo "$ac_ct_DUMPBIN" >&6; }
5527else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531
5532
5533 test -n "$ac_ct_DUMPBIN" && break
5534done
5535
5536 if test "x$ac_ct_DUMPBIN" = x; then
5537 DUMPBIN=":"
5538 else
5539 case $cross_compiling:$ac_tool_warned in
5540yes:)
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543ac_tool_warned=yes ;;
5544esac
5545 DUMPBIN=$ac_ct_DUMPBIN
5546 fi
5547fi
5548
5549 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5550 *COFF*)
5551 DUMPBIN="$DUMPBIN -symbols"
5552 ;;
5553 *)
5554 DUMPBIN=:
5555 ;;
5556 esac
5557 fi
5558
5559 if test "$DUMPBIN" != ":"; then
5560 NM="$DUMPBIN"
5561 fi
5562fi
5563test -z "$NM" && NM=nm
5564
5565
5566
5567
5568
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5571$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5572if ${lt_cv_nm_interface+:} false; then :
48310492
RH
5573 $as_echo_n "(cached) " >&6
5574else
5575 lt_cv_nm_interface="BSD nm"
5576 echo "int some_variable = 0;" > conftest.$ac_ext
5577 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5578 (eval "$ac_compile" 2>conftest.err)
5579 cat conftest.err >&5
5580 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5581 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5582 cat conftest.err >&5
5583 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5584 cat conftest.out >&5
5585 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5586 lt_cv_nm_interface="MS dumpbin"
5587 fi
5588 rm -f conftest*
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5591$as_echo "$lt_cv_nm_interface" >&6; }
5592
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5594$as_echo_n "checking whether ln -s works... " >&6; }
5595LN_S=$as_ln_s
5596if test "$LN_S" = "ln -s"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5598$as_echo "yes" >&6; }
5599else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5601$as_echo "no, using $LN_S" >&6; }
5602fi
5603
5604# find the maximum length of command line arguments
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5606$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5607if ${lt_cv_sys_max_cmd_len+:} false; then :
48310492
RH
5608 $as_echo_n "(cached) " >&6
5609else
5610 i=0
5611 teststring="ABCD"
5612
5613 case $build_os in
5614 msdosdjgpp*)
5615 # On DJGPP, this test can blow up pretty badly due to problems in libc
5616 # (any single argument exceeding 2000 bytes causes a buffer overrun
5617 # during glob expansion). Even if it were fixed, the result of this
5618 # check would be larger than it should be.
5619 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5620 ;;
5621
5622 gnu*)
5623 # Under GNU Hurd, this test is not required because there is
5624 # no limit to the length of command line arguments.
5625 # Libtool will interpret -1 as no limit whatsoever
5626 lt_cv_sys_max_cmd_len=-1;
5627 ;;
5628
5629 cygwin* | mingw* | cegcc*)
5630 # On Win9x/ME, this test blows up -- it succeeds, but takes
5631 # about 5 minutes as the teststring grows exponentially.
5632 # Worse, since 9x/ME are not pre-emptively multitasking,
5633 # you end up with a "frozen" computer, even though with patience
5634 # the test eventually succeeds (with a max line length of 256k).
5635 # Instead, let's just punt: use the minimum linelength reported by
5636 # all of the supported platforms: 8192 (on NT/2K/XP).
5637 lt_cv_sys_max_cmd_len=8192;
5638 ;;
5639
5640 mint*)
5641 # On MiNT this can take a long time and run out of memory.
5642 lt_cv_sys_max_cmd_len=8192;
5643 ;;
5644
5645 amigaos*)
5646 # On AmigaOS with pdksh, this test takes hours, literally.
5647 # So we just punt and use a minimum line length of 8192.
5648 lt_cv_sys_max_cmd_len=8192;
5649 ;;
5650
5651 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5652 # This has been around since 386BSD, at least. Likely further.
5653 if test -x /sbin/sysctl; then
5654 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5655 elif test -x /usr/sbin/sysctl; then
5656 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5657 else
5658 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5659 fi
5660 # And add a safety zone
5661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5663 ;;
5664
5665 interix*)
5666 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5667 lt_cv_sys_max_cmd_len=196608
5668 ;;
5669
5670 osf*)
5671 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5672 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5673 # nice to cause kernel panics so lets avoid the loop below.
5674 # First set a reasonable default.
5675 lt_cv_sys_max_cmd_len=16384
5676 #
5677 if test -x /sbin/sysconfig; then
5678 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5679 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5680 esac
5681 fi
5682 ;;
5683 sco3.2v5*)
5684 lt_cv_sys_max_cmd_len=102400
5685 ;;
5686 sysv5* | sco5v6* | sysv4.2uw2*)
5687 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5688 if test -n "$kargmax"; then
5689 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5690 else
5691 lt_cv_sys_max_cmd_len=32768
5692 fi
5693 ;;
5694 *)
5695 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5696 if test -n "$lt_cv_sys_max_cmd_len"; then
5697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5699 else
5700 # Make teststring a little bigger before we do anything with it.
5701 # a 1K string should be a reasonable start.
5702 for i in 1 2 3 4 5 6 7 8 ; do
5703 teststring=$teststring$teststring
5704 done
5705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5706 # If test is not a shell built-in, we'll probably end up computing a
5707 # maximum length that is only half of the actual maximum length, but
5708 # we can't tell.
5709 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5710 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5711 test $i != 17 # 1/2 MB should be enough
5712 do
5713 i=`expr $i + 1`
5714 teststring=$teststring$teststring
5715 done
5716 # Only check the string length outside the loop.
5717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5718 teststring=
5719 # Add a significant safety factor because C++ compilers can tack on
5720 # massive amounts of additional arguments before passing them to the
5721 # linker. It appears as though 1/2 is a usable value.
5722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5723 fi
5724 ;;
5725 esac
5726
5727fi
5728
5729if test -n $lt_cv_sys_max_cmd_len ; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5731$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5732else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5734$as_echo "none" >&6; }
5735fi
5736max_cmd_len=$lt_cv_sys_max_cmd_len
5737
5738
5739
5740
5741
5742
5743: ${CP="cp -f"}
5744: ${MV="mv -f"}
5745: ${RM="rm -f"}
5746
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5748$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5749# Try some XSI features
5750xsi_shell=no
5751( _lt_dummy="a/b/c"
5752 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5753 = c,a/b,, \
5754 && eval 'test $(( 1 + 1 )) -eq 2 \
5755 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5756 && xsi_shell=yes
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5758$as_echo "$xsi_shell" >&6; }
5759
5760
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5762$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5763lt_shell_append=no
5764( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5765 >/dev/null 2>&1 \
5766 && lt_shell_append=yes
5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5768$as_echo "$lt_shell_append" >&6; }
5769
5770
5771if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5772 lt_unset=unset
5773else
5774 lt_unset=false
5775fi
5776
5777
5778
5779
5780
5781# test EBCDIC or ASCII
5782case `echo X|tr X '\101'` in
5783 A) # ASCII based system
5784 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5785 lt_SP2NL='tr \040 \012'
5786 lt_NL2SP='tr \015\012 \040\040'
5787 ;;
5788 *) # EBCDIC based system
5789 lt_SP2NL='tr \100 \n'
5790 lt_NL2SP='tr \r\n \100\100'
5791 ;;
5792esac
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5803$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5804if ${lt_cv_ld_reload_flag+:} false; then :
48310492
RH
5805 $as_echo_n "(cached) " >&6
5806else
5807 lt_cv_ld_reload_flag='-r'
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5810$as_echo "$lt_cv_ld_reload_flag" >&6; }
5811reload_flag=$lt_cv_ld_reload_flag
5812case $reload_flag in
5813"" | " "*) ;;
5814*) reload_flag=" $reload_flag" ;;
5815esac
5816reload_cmds='$LD$reload_flag -o $output$reload_objs'
5817case $host_os in
5818 darwin*)
5819 if test "$GCC" = yes; then
5820 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5821 else
5822 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5823 fi
5824 ;;
5825esac
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835if test -n "$ac_tool_prefix"; then
5836 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5837set dummy ${ac_tool_prefix}objdump; ac_word=$2
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5840if ${ac_cv_prog_OBJDUMP+:} false; then :
48310492
RH
5841 $as_echo_n "(cached) " >&6
5842else
5843 if test -n "$OBJDUMP"; then
5844 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5845else
5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5853 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857done
5858 done
5859IFS=$as_save_IFS
5860
5861fi
5862fi
5863OBJDUMP=$ac_cv_prog_OBJDUMP
5864if test -n "$OBJDUMP"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5866$as_echo "$OBJDUMP" >&6; }
5867else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869$as_echo "no" >&6; }
5870fi
5871
5872
5873fi
5874if test -z "$ac_cv_prog_OBJDUMP"; then
5875 ac_ct_OBJDUMP=$OBJDUMP
5876 # Extract the first word of "objdump", so it can be a program name with args.
5877set dummy objdump; ac_word=$2
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5880if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
48310492
RH
5881 $as_echo_n "(cached) " >&6
5882else
5883 if test -n "$ac_ct_OBJDUMP"; then
5884 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5885else
5886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5893 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897done
5898 done
5899IFS=$as_save_IFS
5900
5901fi
5902fi
5903ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5904if test -n "$ac_ct_OBJDUMP"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5906$as_echo "$ac_ct_OBJDUMP" >&6; }
5907else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909$as_echo "no" >&6; }
5910fi
5911
5912 if test "x$ac_ct_OBJDUMP" = x; then
5913 OBJDUMP="false"
5914 else
5915 case $cross_compiling:$ac_tool_warned in
5916yes:)
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5919ac_tool_warned=yes ;;
5920esac
5921 OBJDUMP=$ac_ct_OBJDUMP
5922 fi
5923else
5924 OBJDUMP="$ac_cv_prog_OBJDUMP"
5925fi
5926
5927test -z "$OBJDUMP" && OBJDUMP=objdump
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5938$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 5939if ${lt_cv_deplibs_check_method+:} false; then :
48310492
RH
5940 $as_echo_n "(cached) " >&6
5941else
5942 lt_cv_file_magic_cmd='$MAGIC_CMD'
5943lt_cv_file_magic_test_file=
5944lt_cv_deplibs_check_method='unknown'
5945# Need to set the preceding variable on all platforms that support
5946# interlibrary dependencies.
5947# 'none' -- dependencies not supported.
5948# `unknown' -- same as none, but documents that we really don't know.
5949# 'pass_all' -- all dependencies passed with no checks.
5950# 'test_compile' -- check by making test program.
5951# 'file_magic [[regex]]' -- check by looking for files in library path
5952# which responds to the $file_magic_cmd with a given extended regex.
5953# If you have `file' or equivalent on your system and you're not sure
5954# whether `pass_all' will *always* work, you probably want this one.
5955
5956case $host_os in
5957aix[4-9]*)
5958 lt_cv_deplibs_check_method=pass_all
5959 ;;
5960
5961beos*)
5962 lt_cv_deplibs_check_method=pass_all
5963 ;;
5964
5965bsdi[45]*)
5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5967 lt_cv_file_magic_cmd='/usr/bin/file -L'
5968 lt_cv_file_magic_test_file=/shlib/libc.so
5969 ;;
5970
5971cygwin*)
5972 # func_win32_libid is a shell function defined in ltmain.sh
5973 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5974 lt_cv_file_magic_cmd='func_win32_libid'
5975 ;;
5976
5977mingw* | pw32*)
5978 # Base MSYS/MinGW do not provide the 'file' command needed by
5979 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5980 # unless we find 'file', for example because we are cross-compiling.
5981 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5982 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5984 lt_cv_file_magic_cmd='func_win32_libid'
5985 else
5986 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5987 lt_cv_file_magic_cmd='$OBJDUMP -f'
5988 fi
5989 ;;
5990
5991cegcc*)
5992 # use the weaker test based on 'objdump'. See mingw*.
5993 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5994 lt_cv_file_magic_cmd='$OBJDUMP -f'
5995 ;;
5996
5997darwin* | rhapsody*)
5998 lt_cv_deplibs_check_method=pass_all
5999 ;;
6000
6001freebsd* | dragonfly*)
6002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6003 case $host_cpu in
6004 i*86 )
6005 # Not sure whether the presence of OpenBSD here was a mistake.
6006 # Let's accept both of them until this is cleared up.
6007 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6008 lt_cv_file_magic_cmd=/usr/bin/file
6009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6010 ;;
6011 esac
6012 else
6013 lt_cv_deplibs_check_method=pass_all
6014 fi
6015 ;;
6016
6017gnu*)
6018 lt_cv_deplibs_check_method=pass_all
6019 ;;
6020
6021haiku*)
6022 lt_cv_deplibs_check_method=pass_all
6023 ;;
6024
6025hpux10.20* | hpux11*)
6026 lt_cv_file_magic_cmd=/usr/bin/file
6027 case $host_cpu in
6028 ia64*)
6029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6030 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6031 ;;
6032 hppa*64*)
6033 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]'
6034 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6035 ;;
6036 *)
6037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6038 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6039 ;;
6040 esac
6041 ;;
6042
6043interix[3-9]*)
6044 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6046 ;;
6047
6048irix5* | irix6* | nonstopux*)
6049 case $LD in
6050 *-32|*"-32 ") libmagic=32-bit;;
6051 *-n32|*"-n32 ") libmagic=N32;;
6052 *-64|*"-64 ") libmagic=64-bit;;
6053 *) libmagic=never-match;;
6054 esac
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057
6058# This must be Linux ELF.
b1e21e5a 6059linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
48310492
RH
6060 lt_cv_deplibs_check_method=pass_all
6061 ;;
6062
6063netbsd*)
6064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6066 else
6067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6068 fi
6069 ;;
6070
6071newos6*)
6072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6073 lt_cv_file_magic_cmd=/usr/bin/file
6074 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6075 ;;
6076
6077*nto* | *qnx*)
6078 lt_cv_deplibs_check_method=pass_all
6079 ;;
6080
6081openbsd*)
6082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6084 else
6085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6086 fi
6087 ;;
6088
6089osf3* | osf4* | osf5*)
6090 lt_cv_deplibs_check_method=pass_all
6091 ;;
6092
6093rdos*)
6094 lt_cv_deplibs_check_method=pass_all
6095 ;;
6096
6097solaris*)
6098 lt_cv_deplibs_check_method=pass_all
6099 ;;
6100
6101sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6102 lt_cv_deplibs_check_method=pass_all
6103 ;;
6104
6105sysv4 | sysv4.3*)
6106 case $host_vendor in
6107 motorola)
6108 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]'
6109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6110 ;;
6111 ncr)
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
6114 sequent)
6115 lt_cv_file_magic_cmd='/bin/file'
6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6117 ;;
6118 sni)
6119 lt_cv_file_magic_cmd='/bin/file'
6120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6121 lt_cv_file_magic_test_file=/lib/libc.so
6122 ;;
6123 siemens)
6124 lt_cv_deplibs_check_method=pass_all
6125 ;;
6126 pc)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
6129 esac
6130 ;;
6131
6132tpf*)
6133 lt_cv_deplibs_check_method=pass_all
6134 ;;
0ecd0f1c
OH
6135vxworks*)
6136 # Assume VxWorks cross toolchains are built on Linux, possibly
6137 # as canadian for Windows hosts.
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
48310492
RH
6140esac
6141
6142fi
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6144$as_echo "$lt_cv_deplibs_check_method" >&6; }
6145file_magic_cmd=$lt_cv_file_magic_cmd
6146deplibs_check_method=$lt_cv_deplibs_check_method
6147test -z "$deplibs_check_method" && deplibs_check_method=unknown
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
126f707e
L
6160plugin_option=
6161plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6162for plugin in $plugin_names; do
6163 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6164 if test x$plugin_so = x$plugin; then
6165 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6166 fi
6167 if test x$plugin_so != x$plugin; then
6168 plugin_option="--plugin $plugin_so"
6169 break
6170 fi
6171done
6172
48310492
RH
6173if test -n "$ac_tool_prefix"; then
6174 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6175set dummy ${ac_tool_prefix}ar; ac_word=$2
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6178if ${ac_cv_prog_AR+:} false; then :
48310492
RH
6179 $as_echo_n "(cached) " >&6
6180else
6181 if test -n "$AR"; then
6182 ac_cv_prog_AR="$AR" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6191 ac_cv_prog_AR="${ac_tool_prefix}ar"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195done
6196 done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201AR=$ac_cv_prog_AR
6202if test -n "$AR"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6204$as_echo "$AR" >&6; }
6205else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210
6211fi
6212if test -z "$ac_cv_prog_AR"; then
6213 ac_ct_AR=$AR
6214 # Extract the first word of "ar", so it can be a program name with args.
6215set dummy ar; ac_word=$2
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6218if ${ac_cv_prog_ac_ct_AR+:} false; then :
48310492
RH
6219 $as_echo_n "(cached) " >&6
6220else
6221 if test -n "$ac_ct_AR"; then
6222 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6223else
6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH
6226do
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6231 ac_cv_prog_ac_ct_AR="ar"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 break 2
6234 fi
6235done
6236 done
6237IFS=$as_save_IFS
6238
6239fi
6240fi
6241ac_ct_AR=$ac_cv_prog_ac_ct_AR
6242if test -n "$ac_ct_AR"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6244$as_echo "$ac_ct_AR" >&6; }
6245else
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247$as_echo "no" >&6; }
6248fi
6249
6250 if test "x$ac_ct_AR" = x; then
6251 AR="false"
6252 else
6253 case $cross_compiling:$ac_tool_warned in
6254yes:)
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257ac_tool_warned=yes ;;
6258esac
6259 AR=$ac_ct_AR
6260 fi
6261else
6262 AR="$ac_cv_prog_AR"
6263fi
6264
6265test -z "$AR" && AR=ar
126f707e
L
6266if test -n "$plugin_option"; then
6267 if $AR --help 2>&1 | grep -q "\--plugin"; then
9c7797a8
L
6268 touch conftest.c
6269 $AR $plugin_option rc conftest.a conftest.c
6270 if test "$?" != 0; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6272$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6273 else
6274 AR="$AR $plugin_option"
6275 fi
6276 rm -f conftest.*
126f707e
L
6277 fi
6278fi
48310492
RH
6279test -z "$AR_FLAGS" && AR_FLAGS=cru
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291if test -n "$ac_tool_prefix"; then
6292 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6293set dummy ${ac_tool_prefix}strip; ac_word=$2
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6296if ${ac_cv_prog_STRIP+:} false; then :
48310492
RH
6297 $as_echo_n "(cached) " >&6
6298else
6299 if test -n "$STRIP"; then
6300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6301else
6302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6309 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313done
6314 done
6315IFS=$as_save_IFS
6316
6317fi
6318fi
6319STRIP=$ac_cv_prog_STRIP
6320if test -n "$STRIP"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6322$as_echo "$STRIP" >&6; }
6323else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325$as_echo "no" >&6; }
6326fi
6327
6328
6329fi
6330if test -z "$ac_cv_prog_STRIP"; then
6331 ac_ct_STRIP=$STRIP
6332 # Extract the first word of "strip", so it can be a program name with args.
6333set dummy strip; ac_word=$2
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6336if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
48310492
RH
6337 $as_echo_n "(cached) " >&6
6338else
6339 if test -n "$ac_ct_STRIP"; then
6340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6349 ac_cv_prog_ac_ct_STRIP="strip"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353done
6354 done
6355IFS=$as_save_IFS
6356
6357fi
6358fi
6359ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6360if test -n "$ac_ct_STRIP"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6362$as_echo "$ac_ct_STRIP" >&6; }
6363else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366fi
6367
6368 if test "x$ac_ct_STRIP" = x; then
6369 STRIP=":"
6370 else
6371 case $cross_compiling:$ac_tool_warned in
6372yes:)
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375ac_tool_warned=yes ;;
6376esac
6377 STRIP=$ac_ct_STRIP
6378 fi
6379else
6380 STRIP="$ac_cv_prog_STRIP"
6381fi
6382
6383test -z "$STRIP" && STRIP=:
6384
6385
6386
6387
6388
6389
6390if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6392set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6395if ${ac_cv_prog_RANLIB+:} false; then :
48310492
RH
6396 $as_echo_n "(cached) " >&6
6397else
6398 if test -n "$RANLIB"; then
6399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6408 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412done
6413 done
6414IFS=$as_save_IFS
6415
6416fi
6417fi
6418RANLIB=$ac_cv_prog_RANLIB
6419if test -n "$RANLIB"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6421$as_echo "$RANLIB" >&6; }
6422else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }
6425fi
6426
6427
6428fi
6429if test -z "$ac_cv_prog_RANLIB"; then
6430 ac_ct_RANLIB=$RANLIB
6431 # Extract the first word of "ranlib", so it can be a program name with args.
6432set dummy ranlib; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6435if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
48310492
RH
6436 $as_echo_n "(cached) " >&6
6437else
6438 if test -n "$ac_ct_RANLIB"; then
6439 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6448 ac_cv_prog_ac_ct_RANLIB="ranlib"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452done
6453 done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6459if test -n "$ac_ct_RANLIB"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6461$as_echo "$ac_ct_RANLIB" >&6; }
6462else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467 if test "x$ac_ct_RANLIB" = x; then
6468 RANLIB=":"
6469 else
6470 case $cross_compiling:$ac_tool_warned in
6471yes:)
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474ac_tool_warned=yes ;;
6475esac
6476 RANLIB=$ac_ct_RANLIB
6477 fi
6478else
6479 RANLIB="$ac_cv_prog_RANLIB"
6480fi
6481
6482test -z "$RANLIB" && RANLIB=:
126f707e
L
6483if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6484 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6485 RANLIB="$RANLIB $plugin_option"
6486 fi
6487fi
48310492
RH
6488
6489
6490
6491
6492
6493
6494# Determine commands to create old-style static archives.
6495old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6496old_postinstall_cmds='chmod 644 $oldlib'
6497old_postuninstall_cmds=
6498
6499if test -n "$RANLIB"; then
6500 case $host_os in
6501 openbsd*)
6502 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6503 ;;
6504 *)
6505 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6506 ;;
6507 esac
6508 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6509fi
6510
6511case $host_os in
6512 darwin*)
6513 lock_old_archive_extraction=yes ;;
6514 *)
6515 lock_old_archive_extraction=no ;;
6516esac
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556# If no C compiler was specified, use CC.
6557LTCC=${LTCC-"$CC"}
6558
6559# If no C compiler flags were specified, use CFLAGS.
6560LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6561
6562# Allow CC to be a program name with arguments.
6563compiler=$CC
6564
6565
6566# Check for command to grab the raw symbol name followed by C symbol from nm.
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6568$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6569if ${lt_cv_sys_global_symbol_pipe+:} false; then :
48310492
RH
6570 $as_echo_n "(cached) " >&6
6571else
6572
6573# These are sane defaults that work on at least a few old systems.
6574# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6575
6576# Character class describing NM global symbol codes.
6577symcode='[BCDEGRST]'
6578
6579# Regexp to match symbols that can be accessed directly from C.
6580sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6581
6582# Define system-specific variables.
6583case $host_os in
6584aix*)
6585 symcode='[BCDT]'
6586 ;;
6587cygwin* | mingw* | pw32* | cegcc*)
6588 symcode='[ABCDGISTW]'
6589 ;;
6590hpux*)
6591 if test "$host_cpu" = ia64; then
6592 symcode='[ABCDEGRST]'
6593 fi
6594 ;;
6595irix* | nonstopux*)
6596 symcode='[BCDEGRST]'
6597 ;;
6598osf*)
6599 symcode='[BCDEGQRST]'
6600 ;;
6601solaris*)
dc17ceb3 6602 symcode='[BCDRT]'
48310492
RH
6603 ;;
6604sco3.2v5*)
6605 symcode='[DT]'
6606 ;;
6607sysv4.2uw2*)
6608 symcode='[DT]'
6609 ;;
6610sysv5* | sco5v6* | unixware* | OpenUNIX*)
6611 symcode='[ABDT]'
6612 ;;
6613sysv4)
6614 symcode='[DFNSTU]'
6615 ;;
6616esac
6617
6618# If we're using GNU nm, then use its standard symbol codes.
6619case `$NM -V 2>&1` in
6620*GNU* | *'with BFD'*)
6621 symcode='[ABCDGIRSTW]' ;;
6622esac
6623
6624# Transform an extracted symbol line into a proper C declaration.
6625# Some systems (esp. on ia64) link data and code symbols differently,
6626# so use this general approach.
6627lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6628
6629# Transform an extracted symbol line into symbol name and symbol address
6630lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6631lt_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'"
6632
6633# Handle CRLF in mingw tool chain
6634opt_cr=
6635case $build_os in
6636mingw*)
6637 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6638 ;;
6639esac
6640
6641# Try without a prefix underscore, then with it.
6642for ac_symprfx in "" "_"; do
6643
6644 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6645 symxfrm="\\1 $ac_symprfx\\2 \\2"
6646
6647 # Write the raw and C identifiers.
6648 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6649 # Fake it for dumpbin and say T for any non-static function
6650 # and D for any global variable.
6651 # Also find C++ and __fastcall symbols from MSVC++,
6652 # which start with @ or ?.
6653 lt_cv_sys_global_symbol_pipe="$AWK '"\
6654" {last_section=section; section=\$ 3};"\
6655" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6656" \$ 0!~/External *\|/{next};"\
6657" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6658" {if(hide[section]) next};"\
6659" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6660" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6661" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6662" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6663" ' prfx=^$ac_symprfx"
6664 else
6665 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6666 fi
6667
6668 # Check to see that the pipe works correctly.
6669 pipe_works=no
6670
6671 rm -f conftest*
6672 cat > conftest.$ac_ext <<_LT_EOF
6673#ifdef __cplusplus
6674extern "C" {
6675#endif
6676char nm_test_var;
6677void nm_test_func(void);
6678void nm_test_func(void){}
6679#ifdef __cplusplus
6680}
6681#endif
6682int main(){nm_test_var='a';nm_test_func();return(0);}
6683_LT_EOF
6684
6685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6686 (eval $ac_compile) 2>&5
6687 ac_status=$?
6688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689 test $ac_status = 0; }; then
6690 # Now try to grab the symbols.
6691 nlist=conftest.nm
6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6693 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6694 ac_status=$?
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; } && test -s "$nlist"; then
6697 # Try sorting and uniquifying the output.
6698 if sort "$nlist" | uniq > "$nlist"T; then
6699 mv -f "$nlist"T "$nlist"
6700 else
6701 rm -f "$nlist"T
6702 fi
6703
6704 # Make sure that we snagged all the symbols we need.
6705 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6706 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6707 cat <<_LT_EOF > conftest.$ac_ext
6708#ifdef __cplusplus
6709extern "C" {
6710#endif
6711
6712_LT_EOF
6713 # Now generate the symbol file.
6714 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6715
6716 cat <<_LT_EOF >> conftest.$ac_ext
6717
6718/* The mapping between symbol names and symbols. */
6719const struct {
6720 const char *name;
6721 void *address;
6722}
6723lt__PROGRAM__LTX_preloaded_symbols[] =
6724{
6725 { "@PROGRAM@", (void *) 0 },
6726_LT_EOF
6727 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6728 cat <<\_LT_EOF >> conftest.$ac_ext
6729 {0, (void *) 0}
6730};
6731
6732/* This works around a problem in FreeBSD linker */
6733#ifdef FREEBSD_WORKAROUND
6734static const void *lt_preloaded_setup() {
6735 return lt__PROGRAM__LTX_preloaded_symbols;
6736}
6737#endif
6738
6739#ifdef __cplusplus
6740}
6741#endif
6742_LT_EOF
6743 # Now try linking the two files.
6744 mv conftest.$ac_objext conftstm.$ac_objext
6745 lt_save_LIBS="$LIBS"
6746 lt_save_CFLAGS="$CFLAGS"
6747 LIBS="conftstm.$ac_objext"
6748 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6750 (eval $ac_link) 2>&5
6751 ac_status=$?
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6754 pipe_works=yes
6755 fi
6756 LIBS="$lt_save_LIBS"
6757 CFLAGS="$lt_save_CFLAGS"
6758 else
6759 echo "cannot find nm_test_func in $nlist" >&5
6760 fi
6761 else
6762 echo "cannot find nm_test_var in $nlist" >&5
6763 fi
6764 else
6765 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6766 fi
6767 else
6768 echo "$progname: failed program was:" >&5
6769 cat conftest.$ac_ext >&5
6770 fi
6771 rm -rf conftest* conftst*
6772
6773 # Do not use the global_symbol_pipe unless it works.
6774 if test "$pipe_works" = yes; then
6775 break
6776 else
6777 lt_cv_sys_global_symbol_pipe=
6778 fi
6779done
6780
6781fi
6782
6783if test -z "$lt_cv_sys_global_symbol_pipe"; then
6784 lt_cv_sys_global_symbol_to_cdecl=
6785fi
6786if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6788$as_echo "failed" >&6; }
6789else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6791$as_echo "ok" >&6; }
6792fi
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816# Check whether --enable-libtool-lock was given.
6817if test "${enable_libtool_lock+set}" = set; then :
6818 enableval=$enable_libtool_lock;
6819fi
6820
6821test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6822
6823# Some flags need to be propagated to the compiler or linker for good
6824# libtool support.
6825case $host in
6826ia64-*-hpux*)
6827 # Find out which ABI we are using.
6828 echo 'int i;' > conftest.$ac_ext
6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830 (eval $ac_compile) 2>&5
6831 ac_status=$?
6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833 test $ac_status = 0; }; then
6834 case `/usr/bin/file conftest.$ac_objext` in
6835 *ELF-32*)
6836 HPUX_IA64_MODE="32"
6837 ;;
6838 *ELF-64*)
6839 HPUX_IA64_MODE="64"
6840 ;;
6841 esac
6842 fi
6843 rm -rf conftest*
6844 ;;
6845*-*-irix6*)
6846 # Find out which ABI we are using.
6847 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }; then
6853 if test "$lt_cv_prog_gnu_ld" = yes; then
6854 case `/usr/bin/file conftest.$ac_objext` in
6855 *32-bit*)
6856 LD="${LD-ld} -melf32bsmip"
6857 ;;
6858 *N32*)
6859 LD="${LD-ld} -melf32bmipn32"
6860 ;;
6861 *64-bit*)
6862 LD="${LD-ld} -melf64bmip"
6863 ;;
6864 esac
6865 else
6866 case `/usr/bin/file conftest.$ac_objext` in
6867 *32-bit*)
6868 LD="${LD-ld} -32"
6869 ;;
6870 *N32*)
6871 LD="${LD-ld} -n32"
6872 ;;
6873 *64-bit*)
6874 LD="${LD-ld} -64"
6875 ;;
6876 esac
6877 fi
6878 fi
6879 rm -rf conftest*
6880 ;;
6881
3cbe17f7 6882x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
48310492
RH
6883s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6884 # Find out which ABI we are using.
6885 echo 'int i;' > conftest.$ac_ext
6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887 (eval $ac_compile) 2>&5
6888 ac_status=$?
6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }; then
6891 case `/usr/bin/file conftest.o` in
6892 *32-bit*)
6893 case $host in
6894 x86_64-*kfreebsd*-gnu)
6895 LD="${LD-ld} -m elf_i386_fbsd"
6896 ;;
6897 x86_64-*linux*)
e6d5f8c9
L
6898 case `/usr/bin/file conftest.o` in
6899 *x86-64*)
6900 LD="${LD-ld} -m elf32_x86_64"
6901 ;;
6902 *)
6903 LD="${LD-ld} -m elf_i386"
6904 ;;
6905 esac
48310492 6906 ;;
3cbe17f7
AM
6907 powerpc64le-*linux*)
6908 LD="${LD-ld} -m elf32lppclinux"
6909 ;;
6910 powerpc64-*linux*)
48310492
RH
6911 LD="${LD-ld} -m elf32ppclinux"
6912 ;;
6913 s390x-*linux*)
6914 LD="${LD-ld} -m elf_s390"
6915 ;;
6916 sparc64-*linux*)
6917 LD="${LD-ld} -m elf32_sparc"
6918 ;;
6919 esac
6920 ;;
6921 *64-bit*)
6922 case $host in
6923 x86_64-*kfreebsd*-gnu)
6924 LD="${LD-ld} -m elf_x86_64_fbsd"
6925 ;;
6926 x86_64-*linux*)
6927 LD="${LD-ld} -m elf_x86_64"
6928 ;;
3cbe17f7
AM
6929 powerpcle-*linux*)
6930 LD="${LD-ld} -m elf64lppc"
6931 ;;
6932 powerpc-*linux*)
48310492
RH
6933 LD="${LD-ld} -m elf64ppc"
6934 ;;
6935 s390*-*linux*|s390*-*tpf*)
6936 LD="${LD-ld} -m elf64_s390"
6937 ;;
6938 sparc*-*linux*)
6939 LD="${LD-ld} -m elf64_sparc"
6940 ;;
6941 esac
6942 ;;
6943 esac
6944 fi
6945 rm -rf conftest*
6946 ;;
6947
6948*-*-sco3.2v5*)
6949 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6950 SAVE_CFLAGS="$CFLAGS"
6951 CFLAGS="$CFLAGS -belf"
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6953$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 6954if ${lt_cv_cc_needs_belf+:} false; then :
48310492
RH
6955 $as_echo_n "(cached) " >&6
6956else
6957 ac_ext=c
6958ac_cpp='$CPP $CPPFLAGS'
6959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964/* end confdefs.h. */
6965
6966int
6967main ()
6968{
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
6974if ac_fn_c_try_link "$LINENO"; then :
6975 lt_cv_cc_needs_belf=yes
6976else
6977 lt_cv_cc_needs_belf=no
6978fi
6979rm -f core conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
6981 ac_ext=c
6982ac_cpp='$CPP $CPPFLAGS'
6983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985ac_compiler_gnu=$ac_cv_c_compiler_gnu
6986
6987fi
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6989$as_echo "$lt_cv_cc_needs_belf" >&6; }
6990 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6991 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6992 CFLAGS="$SAVE_CFLAGS"
6993 fi
6994 ;;
6995sparc*-*solaris*)
6996 # Find out which ABI we are using.
6997 echo 'int i;' > conftest.$ac_ext
6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999 (eval $ac_compile) 2>&5
7000 ac_status=$?
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; then
7003 case `/usr/bin/file conftest.o` in
7004 *64-bit*)
7005 case $lt_cv_prog_gnu_ld in
7006 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7007 *)
7008 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7009 LD="${LD-ld} -64"
7010 fi
7011 ;;
7012 esac
7013 ;;
7014 esac
7015 fi
7016 rm -rf conftest*
7017 ;;
7018esac
7019
7020need_locks="$enable_libtool_lock"
7021
7022
7023 case $host_os in
7024 rhapsody* | darwin*)
7025 if test -n "$ac_tool_prefix"; then
7026 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7027set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7030if ${ac_cv_prog_DSYMUTIL+:} false; then :
48310492
RH
7031 $as_echo_n "(cached) " >&6
7032else
7033 if test -n "$DSYMUTIL"; then
7034 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7043 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047done
7048 done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053DSYMUTIL=$ac_cv_prog_DSYMUTIL
7054if test -n "$DSYMUTIL"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7056$as_echo "$DSYMUTIL" >&6; }
7057else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
7060fi
7061
7062
7063fi
7064if test -z "$ac_cv_prog_DSYMUTIL"; then
7065 ac_ct_DSYMUTIL=$DSYMUTIL
7066 # Extract the first word of "dsymutil", so it can be a program name with args.
7067set dummy dsymutil; ac_word=$2
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7070if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
48310492
RH
7071 $as_echo_n "(cached) " >&6
7072else
7073 if test -n "$ac_ct_DSYMUTIL"; then
7074 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7083 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087done
7088 done
7089IFS=$as_save_IFS
7090
7091fi
7092fi
7093ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7094if test -n "$ac_ct_DSYMUTIL"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7096$as_echo "$ac_ct_DSYMUTIL" >&6; }
7097else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099$as_echo "no" >&6; }
7100fi
7101
7102 if test "x$ac_ct_DSYMUTIL" = x; then
7103 DSYMUTIL=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106yes:)
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109ac_tool_warned=yes ;;
7110esac
7111 DSYMUTIL=$ac_ct_DSYMUTIL
7112 fi
7113else
7114 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7115fi
7116
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7119set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7122if ${ac_cv_prog_NMEDIT+:} false; then :
48310492
RH
7123 $as_echo_n "(cached) " >&6
7124else
7125 if test -n "$NMEDIT"; then
7126 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7135 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139done
7140 done
7141IFS=$as_save_IFS
7142
7143fi
7144fi
7145NMEDIT=$ac_cv_prog_NMEDIT
7146if test -n "$NMEDIT"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7148$as_echo "$NMEDIT" >&6; }
7149else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
7152fi
7153
7154
7155fi
7156if test -z "$ac_cv_prog_NMEDIT"; then
7157 ac_ct_NMEDIT=$NMEDIT
7158 # Extract the first word of "nmedit", so it can be a program name with args.
7159set dummy nmedit; ac_word=$2
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7162if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
48310492
RH
7163 $as_echo_n "(cached) " >&6
7164else
7165 if test -n "$ac_ct_NMEDIT"; then
7166 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7175 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179done
7180 done
7181IFS=$as_save_IFS
7182
7183fi
7184fi
7185ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7186if test -n "$ac_ct_NMEDIT"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7188$as_echo "$ac_ct_NMEDIT" >&6; }
7189else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191$as_echo "no" >&6; }
7192fi
7193
7194 if test "x$ac_ct_NMEDIT" = x; then
7195 NMEDIT=":"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198yes:)
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201ac_tool_warned=yes ;;
7202esac
7203 NMEDIT=$ac_ct_NMEDIT
7204 fi
7205else
7206 NMEDIT="$ac_cv_prog_NMEDIT"
7207fi
7208
7209 if test -n "$ac_tool_prefix"; then
7210 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7211set dummy ${ac_tool_prefix}lipo; ac_word=$2
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7214if ${ac_cv_prog_LIPO+:} false; then :
48310492
RH
7215 $as_echo_n "(cached) " >&6
7216else
7217 if test -n "$LIPO"; then
7218 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7227 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7230 fi
7231done
7232 done
7233IFS=$as_save_IFS
7234
7235fi
7236fi
7237LIPO=$ac_cv_prog_LIPO
7238if test -n "$LIPO"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7240$as_echo "$LIPO" >&6; }
7241else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
7244fi
7245
7246
7247fi
7248if test -z "$ac_cv_prog_LIPO"; then
7249 ac_ct_LIPO=$LIPO
7250 # Extract the first word of "lipo", so it can be a program name with args.
7251set dummy lipo; ac_word=$2
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7254if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
48310492
RH
7255 $as_echo_n "(cached) " >&6
7256else
7257 if test -n "$ac_ct_LIPO"; then
7258 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7259else
7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7267 ac_cv_prog_ac_ct_LIPO="lipo"
7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271done
7272 done
7273IFS=$as_save_IFS
7274
7275fi
7276fi
7277ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7278if test -n "$ac_ct_LIPO"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7280$as_echo "$ac_ct_LIPO" >&6; }
7281else
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283$as_echo "no" >&6; }
7284fi
7285
7286 if test "x$ac_ct_LIPO" = x; then
7287 LIPO=":"
7288 else
7289 case $cross_compiling:$ac_tool_warned in
7290yes:)
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293ac_tool_warned=yes ;;
7294esac
7295 LIPO=$ac_ct_LIPO
7296 fi
7297else
7298 LIPO="$ac_cv_prog_LIPO"
7299fi
7300
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7303set dummy ${ac_tool_prefix}otool; ac_word=$2
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7306if ${ac_cv_prog_OTOOL+:} false; then :
48310492
RH
7307 $as_echo_n "(cached) " >&6
7308else
7309 if test -n "$OTOOL"; then
7310 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7311else
7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7319 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 break 2
7322 fi
7323done
7324 done
7325IFS=$as_save_IFS
7326
7327fi
7328fi
7329OTOOL=$ac_cv_prog_OTOOL
7330if test -n "$OTOOL"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7332$as_echo "$OTOOL" >&6; }
7333else
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335$as_echo "no" >&6; }
7336fi
7337
7338
7339fi
7340if test -z "$ac_cv_prog_OTOOL"; then
7341 ac_ct_OTOOL=$OTOOL
7342 # Extract the first word of "otool", so it can be a program name with args.
7343set dummy otool; ac_word=$2
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7346if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
48310492
RH
7347 $as_echo_n "(cached) " >&6
7348else
7349 if test -n "$ac_ct_OTOOL"; then
7350 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7359 ac_cv_prog_ac_ct_OTOOL="otool"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363done
7364 done
7365IFS=$as_save_IFS
7366
7367fi
7368fi
7369ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7370if test -n "$ac_ct_OTOOL"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7372$as_echo "$ac_ct_OTOOL" >&6; }
7373else
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375$as_echo "no" >&6; }
7376fi
7377
7378 if test "x$ac_ct_OTOOL" = x; then
7379 OTOOL=":"
7380 else
7381 case $cross_compiling:$ac_tool_warned in
7382yes:)
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385ac_tool_warned=yes ;;
7386esac
7387 OTOOL=$ac_ct_OTOOL
7388 fi
7389else
7390 OTOOL="$ac_cv_prog_OTOOL"
7391fi
7392
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7395set dummy ${ac_tool_prefix}otool64; ac_word=$2
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7398if ${ac_cv_prog_OTOOL64+:} false; then :
48310492
RH
7399 $as_echo_n "(cached) " >&6
7400else
7401 if test -n "$OTOOL64"; then
7402 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7403else
7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7411 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415done
7416 done
7417IFS=$as_save_IFS
7418
7419fi
7420fi
7421OTOOL64=$ac_cv_prog_OTOOL64
7422if test -n "$OTOOL64"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7424$as_echo "$OTOOL64" >&6; }
7425else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427$as_echo "no" >&6; }
7428fi
7429
7430
7431fi
7432if test -z "$ac_cv_prog_OTOOL64"; then
7433 ac_ct_OTOOL64=$OTOOL64
7434 # Extract the first word of "otool64", so it can be a program name with args.
7435set dummy otool64; ac_word=$2
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7438if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
48310492
RH
7439 $as_echo_n "(cached) " >&6
7440else
7441 if test -n "$ac_ct_OTOOL64"; then
7442 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7451 ac_cv_prog_ac_ct_OTOOL64="otool64"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455done
7456 done
7457IFS=$as_save_IFS
7458
7459fi
7460fi
7461ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7462if test -n "$ac_ct_OTOOL64"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7464$as_echo "$ac_ct_OTOOL64" >&6; }
7465else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468fi
7469
7470 if test "x$ac_ct_OTOOL64" = x; then
7471 OTOOL64=":"
7472 else
7473 case $cross_compiling:$ac_tool_warned in
7474yes:)
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477ac_tool_warned=yes ;;
7478esac
7479 OTOOL64=$ac_ct_OTOOL64
7480 fi
7481else
7482 OTOOL64="$ac_cv_prog_OTOOL64"
7483fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7512$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7513if ${lt_cv_apple_cc_single_mod+:} false; then :
48310492
RH
7514 $as_echo_n "(cached) " >&6
7515else
7516 lt_cv_apple_cc_single_mod=no
7517 if test -z "${LT_MULTI_MODULE}"; then
7518 # By default we will add the -single_module flag. You can override
7519 # by either setting the environment variable LT_MULTI_MODULE
7520 # non-empty at configure time, or by adding -multi_module to the
7521 # link flags.
7522 rm -rf libconftest.dylib*
7523 echo "int foo(void){return 1;}" > conftest.c
7524 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7525-dynamiclib -Wl,-single_module conftest.c" >&5
7526 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7527 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7528 _lt_result=$?
7529 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7530 lt_cv_apple_cc_single_mod=yes
7531 else
7532 cat conftest.err >&5
7533 fi
7534 rm -rf libconftest.dylib*
7535 rm -f conftest.*
7536 fi
7537fi
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7539$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7541$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7542if ${lt_cv_ld_exported_symbols_list+:} false; then :
48310492
RH
7543 $as_echo_n "(cached) " >&6
7544else
7545 lt_cv_ld_exported_symbols_list=no
7546 save_LDFLAGS=$LDFLAGS
7547 echo "_main" > conftest.sym
7548 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h. */
7551
7552int
7553main ()
7554{
7555
7556 ;
7557 return 0;
7558}
7559_ACEOF
7560if ac_fn_c_try_link "$LINENO"; then :
7561 lt_cv_ld_exported_symbols_list=yes
7562else
7563 lt_cv_ld_exported_symbols_list=no
7564fi
7565rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 LDFLAGS="$save_LDFLAGS"
7568
7569fi
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7571$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7573$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7574if ${lt_cv_ld_force_load+:} false; then :
48310492
RH
7575 $as_echo_n "(cached) " >&6
7576else
7577 lt_cv_ld_force_load=no
7578 cat > conftest.c << _LT_EOF
7579int forced_loaded() { return 2;}
7580_LT_EOF
7581 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7582 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7583 echo "$AR cru libconftest.a conftest.o" >&5
7584 $AR cru libconftest.a conftest.o 2>&5
7585 cat > conftest.c << _LT_EOF
7586int main() { return 0;}
7587_LT_EOF
7588 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7589 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7590 _lt_result=$?
7591 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7592 lt_cv_ld_force_load=yes
7593 else
7594 cat conftest.err >&5
7595 fi
7596 rm -f conftest.err libconftest.a conftest conftest.c
7597 rm -rf conftest.dSYM
7598
7599fi
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7601$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
7602 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7603 # build without first building modern cctools / linker.
7604 case $host_cpu-$host_os in
7605 *-rhapsody* | *-darwin1.[012])
48310492 7606 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 7607 *-darwin1.*)
48310492 7608 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
7609 *-darwin*)
7610 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7611 # deployment target is forced to an earlier version.
7612 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
6a6d3817 7613 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
1352bc88 7614 ;;
ebf6d33b 7615 10.[012][,.]*)
1352bc88
IS
7616 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7617 ;;
7618 *)
7619 ;;
7620 esac
48310492
RH
7621 ;;
7622 esac
7623 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7624 _lt_dar_single_mod='$single_module'
7625 fi
7626 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7627 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7628 else
7629 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7630 fi
7631 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7632 _lt_dsymutil='~$DSYMUTIL $lib || :'
7633 else
7634 _lt_dsymutil=
7635 fi
7636 ;;
7637 esac
7638
7639ac_ext=c
7640ac_cpp='$CPP $CPPFLAGS'
7641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7645$as_echo_n "checking how to run the C preprocessor... " >&6; }
7646# On Suns, sometimes $CPP names a directory.
7647if test -n "$CPP" && test -d "$CPP"; then
7648 CPP=
7649fi
7650if test -z "$CPP"; then
22e05272 7651 if ${ac_cv_prog_CPP+:} false; then :
48310492
RH
7652 $as_echo_n "(cached) " >&6
7653else
7654 # Double quotes because CPP needs to be expanded
7655 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7656 do
7657 ac_preproc_ok=false
7658for ac_c_preproc_warn_flag in '' yes
7659do
7660 # Use a header file that comes with gcc, so configuring glibc
7661 # with a fresh cross-compiler works.
7662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7663 # <limits.h> exists even on freestanding compilers.
7664 # On the NeXT, cc -E runs the code through the compiler's parser,
7665 # not just through cpp. "Syntax error" is here to catch this case.
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667/* end confdefs.h. */
7668#ifdef __STDC__
7669# include <limits.h>
7670#else
7671# include <assert.h>
7672#endif
7673 Syntax error
7674_ACEOF
7675if ac_fn_c_try_cpp "$LINENO"; then :
7676
7677else
7678 # Broken: fails on valid input.
7679continue
7680fi
22e05272 7681rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7682
7683 # OK, works on sane cases. Now check whether nonexistent headers
7684 # can be detected and how.
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686/* end confdefs.h. */
7687#include <ac_nonexistent.h>
7688_ACEOF
7689if ac_fn_c_try_cpp "$LINENO"; then :
7690 # Broken: success on invalid input.
7691continue
7692else
7693 # Passes both tests.
7694ac_preproc_ok=:
7695break
7696fi
22e05272 7697rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7698
7699done
7700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7701rm -f conftest.i conftest.err conftest.$ac_ext
48310492
RH
7702if $ac_preproc_ok; then :
7703 break
7704fi
7705
7706 done
7707 ac_cv_prog_CPP=$CPP
7708
7709fi
7710 CPP=$ac_cv_prog_CPP
7711else
7712 ac_cv_prog_CPP=$CPP
7713fi
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7715$as_echo "$CPP" >&6; }
7716ac_preproc_ok=false
7717for ac_c_preproc_warn_flag in '' yes
7718do
7719 # Use a header file that comes with gcc, so configuring glibc
7720 # with a fresh cross-compiler works.
7721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7722 # <limits.h> exists even on freestanding compilers.
7723 # On the NeXT, cc -E runs the code through the compiler's parser,
7724 # not just through cpp. "Syntax error" is here to catch this case.
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h. */
7727#ifdef __STDC__
7728# include <limits.h>
7729#else
7730# include <assert.h>
7731#endif
7732 Syntax error
7733_ACEOF
7734if ac_fn_c_try_cpp "$LINENO"; then :
7735
7736else
7737 # Broken: fails on valid input.
7738continue
7739fi
22e05272 7740rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7741
7742 # OK, works on sane cases. Now check whether nonexistent headers
7743 # can be detected and how.
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h. */
7746#include <ac_nonexistent.h>
7747_ACEOF
7748if ac_fn_c_try_cpp "$LINENO"; then :
7749 # Broken: success on invalid input.
7750continue
7751else
7752 # Passes both tests.
7753ac_preproc_ok=:
7754break
7755fi
22e05272 7756rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7757
7758done
7759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7760rm -f conftest.i conftest.err conftest.$ac_ext
48310492
RH
7761if $ac_preproc_ok; then :
7762
7763else
7764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
7766as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7767See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
7768fi
7769
7770ac_ext=c
7771ac_cpp='$CPP $CPPFLAGS'
7772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7774ac_compiler_gnu=$ac_cv_c_compiler_gnu
7775
7776
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7778$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 7779if ${ac_cv_header_stdc+:} false; then :
48310492
RH
7780 $as_echo_n "(cached) " >&6
7781else
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783/* end confdefs.h. */
7784#include <stdlib.h>
7785#include <stdarg.h>
7786#include <string.h>
7787#include <float.h>
7788
7789int
7790main ()
7791{
7792
7793 ;
7794 return 0;
7795}
7796_ACEOF
7797if ac_fn_c_try_compile "$LINENO"; then :
7798 ac_cv_header_stdc=yes
7799else
7800 ac_cv_header_stdc=no
7801fi
7802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803
7804if test $ac_cv_header_stdc = yes; then
7805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h. */
7808#include <string.h>
7809
7810_ACEOF
7811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7812 $EGREP "memchr" >/dev/null 2>&1; then :
7813
7814else
7815 ac_cv_header_stdc=no
7816fi
7817rm -f conftest*
7818
7819fi
7820
7821if test $ac_cv_header_stdc = yes; then
7822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h. */
7825#include <stdlib.h>
7826
7827_ACEOF
7828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7829 $EGREP "free" >/dev/null 2>&1; then :
7830
7831else
7832 ac_cv_header_stdc=no
7833fi
7834rm -f conftest*
7835
7836fi
7837
7838if test $ac_cv_header_stdc = yes; then
7839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7840 if test "$cross_compiling" = yes; then :
7841 :
7842else
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h. */
7845#include <ctype.h>
7846#include <stdlib.h>
7847#if ((' ' & 0x0FF) == 0x020)
7848# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7849# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7850#else
7851# define ISLOWER(c) \
7852 (('a' <= (c) && (c) <= 'i') \
7853 || ('j' <= (c) && (c) <= 'r') \
7854 || ('s' <= (c) && (c) <= 'z'))
7855# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7856#endif
7857
7858#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7859int
7860main ()
7861{
7862 int i;
7863 for (i = 0; i < 256; i++)
7864 if (XOR (islower (i), ISLOWER (i))
7865 || toupper (i) != TOUPPER (i))
7866 return 2;
7867 return 0;
7868}
7869_ACEOF
7870if ac_fn_c_try_run "$LINENO"; then :
7871
7872else
7873 ac_cv_header_stdc=no
7874fi
7875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7876 conftest.$ac_objext conftest.beam conftest.$ac_ext
7877fi
7878
7879fi
7880fi
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7882$as_echo "$ac_cv_header_stdc" >&6; }
7883if test $ac_cv_header_stdc = yes; then
7884
7885$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7886
7887fi
7888
7889# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7890for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7891 inttypes.h stdint.h unistd.h
7892do :
7893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7894ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7895"
22e05272 7896if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
48310492
RH
7897 cat >>confdefs.h <<_ACEOF
7898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7899_ACEOF
7900
7901fi
7902
7903done
7904
7905
7906for ac_header in dlfcn.h
7907do :
7908 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7909"
22e05272 7910if test "x$ac_cv_header_dlfcn_h" = xyes; then :
48310492
RH
7911 cat >>confdefs.h <<_ACEOF
7912#define HAVE_DLFCN_H 1
7913_ACEOF
7914
7915fi
7916
7917done
7918
7919
7920
7921
7922
7923# Set options
7924
7925
7926
7927 enable_dlopen=no
7928
7929
7930 enable_win32_dll=no
7931
7932
7933 # Check whether --enable-shared was given.
7934if test "${enable_shared+set}" = set; then :
7935 enableval=$enable_shared; p=${PACKAGE-default}
7936 case $enableval in
7937 yes) enable_shared=yes ;;
7938 no) enable_shared=no ;;
7939 *)
7940 enable_shared=no
7941 # Look at the argument we got. We use all the common list separators.
7942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7943 for pkg in $enableval; do
7944 IFS="$lt_save_ifs"
7945 if test "X$pkg" = "X$p"; then
7946 enable_shared=yes
7947 fi
7948 done
7949 IFS="$lt_save_ifs"
7950 ;;
7951 esac
7952else
7953 enable_shared=yes
7954fi
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 # Check whether --enable-static was given.
7965if test "${enable_static+set}" = set; then :
7966 enableval=$enable_static; p=${PACKAGE-default}
7967 case $enableval in
7968 yes) enable_static=yes ;;
7969 no) enable_static=no ;;
7970 *)
7971 enable_static=no
7972 # Look at the argument we got. We use all the common list separators.
7973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7974 for pkg in $enableval; do
7975 IFS="$lt_save_ifs"
7976 if test "X$pkg" = "X$p"; then
7977 enable_static=yes
7978 fi
7979 done
7980 IFS="$lt_save_ifs"
7981 ;;
7982 esac
7983else
7984 enable_static=yes
7985fi
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996# Check whether --with-pic was given.
7997if test "${with_pic+set}" = set; then :
7998 withval=$with_pic; pic_mode="$withval"
7999else
8000 pic_mode=default
8001fi
8002
8003
8004test -z "$pic_mode" && pic_mode=default
8005
8006
8007
8008
8009
8010
8011
8012 # Check whether --enable-fast-install was given.
8013if test "${enable_fast_install+set}" = set; then :
8014 enableval=$enable_fast_install; p=${PACKAGE-default}
8015 case $enableval in
8016 yes) enable_fast_install=yes ;;
8017 no) enable_fast_install=no ;;
8018 *)
8019 enable_fast_install=no
8020 # Look at the argument we got. We use all the common list separators.
8021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8022 for pkg in $enableval; do
8023 IFS="$lt_save_ifs"
8024 if test "X$pkg" = "X$p"; then
8025 enable_fast_install=yes
8026 fi
8027 done
8028 IFS="$lt_save_ifs"
8029 ;;
8030 esac
8031else
8032 enable_fast_install=yes
8033fi
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045# This can be used to rebuild libtool when needed
8046LIBTOOL_DEPS="$ltmain"
8047
8048# Always use our own libtool.
8049LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076test -z "$LN_S" && LN_S="ln -s"
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091if test -n "${ZSH_VERSION+set}" ; then
8092 setopt NO_GLOB_SUBST
8093fi
8094
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8096$as_echo_n "checking for objdir... " >&6; }
22e05272 8097if ${lt_cv_objdir+:} false; then :
48310492
RH
8098 $as_echo_n "(cached) " >&6
8099else
8100 rm -f .libs 2>/dev/null
8101mkdir .libs 2>/dev/null
8102if test -d .libs; then
8103 lt_cv_objdir=.libs
8104else
8105 # MS-DOS does not allow filenames that begin with a dot.
8106 lt_cv_objdir=_libs
8107fi
8108rmdir .libs 2>/dev/null
8109fi
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8111$as_echo "$lt_cv_objdir" >&6; }
8112objdir=$lt_cv_objdir
8113
8114
8115
8116
8117
8118cat >>confdefs.h <<_ACEOF
8119#define LT_OBJDIR "$lt_cv_objdir/"
8120_ACEOF
8121
8122
8123
8124
8125case $host_os in
8126aix3*)
8127 # AIX sometimes has problems with the GCC collect2 program. For some
8128 # reason, if we set the COLLECT_NAMES environment variable, the problems
8129 # vanish in a puff of smoke.
8130 if test "X${COLLECT_NAMES+set}" != Xset; then
8131 COLLECT_NAMES=
8132 export COLLECT_NAMES
8133 fi
8134 ;;
8135esac
8136
8137# Global variables:
8138ofile=libtool
8139can_build_shared=yes
8140
8141# All known linkers require a `.a' archive for static linking (except MSVC,
8142# which needs '.lib').
8143libext=a
8144
8145with_gnu_ld="$lt_cv_prog_gnu_ld"
8146
8147old_CC="$CC"
8148old_CFLAGS="$CFLAGS"
8149
8150# Set sane defaults for various variables
8151test -z "$CC" && CC=cc
8152test -z "$LTCC" && LTCC=$CC
8153test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8154test -z "$LD" && LD=ld
8155test -z "$ac_objext" && ac_objext=o
8156
8157for cc_temp in $compiler""; do
8158 case $cc_temp in
8159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8161 \-*) ;;
8162 *) break;;
8163 esac
8164done
8165cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8166
8167
8168# Only perform the check for file, if the check method requires it
8169test -z "$MAGIC_CMD" && MAGIC_CMD=file
8170case $deplibs_check_method in
8171file_magic*)
8172 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8174$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8175if ${lt_cv_path_MAGIC_CMD+:} false; then :
48310492
RH
8176 $as_echo_n "(cached) " >&6
8177else
8178 case $MAGIC_CMD in
8179[\\/*] | ?:[\\/]*)
8180 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8181 ;;
8182*)
8183 lt_save_MAGIC_CMD="$MAGIC_CMD"
8184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8186 for ac_dir in $ac_dummy; do
8187 IFS="$lt_save_ifs"
8188 test -z "$ac_dir" && ac_dir=.
8189 if test -f $ac_dir/${ac_tool_prefix}file; then
8190 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8191 if test -n "$file_magic_test_file"; then
8192 case $deplibs_check_method in
8193 "file_magic "*)
8194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8197 $EGREP "$file_magic_regex" > /dev/null; then
8198 :
8199 else
8200 cat <<_LT_EOF 1>&2
8201
8202*** Warning: the command libtool uses to detect shared libraries,
8203*** $file_magic_cmd, produces output that libtool cannot recognize.
8204*** The result is that libtool may fail to recognize shared libraries
8205*** as such. This will affect the creation of libtool libraries that
8206*** depend on shared libraries, but programs linked with such libtool
8207*** libraries will work regardless of this problem. Nevertheless, you
8208*** may want to report the problem to your system manager and/or to
8209*** bug-libtool@gnu.org
8210
8211_LT_EOF
8212 fi ;;
8213 esac
8214 fi
8215 break
8216 fi
8217 done
8218 IFS="$lt_save_ifs"
8219 MAGIC_CMD="$lt_save_MAGIC_CMD"
8220 ;;
8221esac
8222fi
8223
8224MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8225if test -n "$MAGIC_CMD"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8227$as_echo "$MAGIC_CMD" >&6; }
8228else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230$as_echo "no" >&6; }
8231fi
8232
8233
8234
8235
8236
8237if test -z "$lt_cv_path_MAGIC_CMD"; then
8238 if test -n "$ac_tool_prefix"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8240$as_echo_n "checking for file... " >&6; }
22e05272 8241if ${lt_cv_path_MAGIC_CMD+:} false; then :
48310492
RH
8242 $as_echo_n "(cached) " >&6
8243else
8244 case $MAGIC_CMD in
8245[\\/*] | ?:[\\/]*)
8246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8247 ;;
8248*)
8249 lt_save_MAGIC_CMD="$MAGIC_CMD"
8250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8252 for ac_dir in $ac_dummy; do
8253 IFS="$lt_save_ifs"
8254 test -z "$ac_dir" && ac_dir=.
8255 if test -f $ac_dir/file; then
8256 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8257 if test -n "$file_magic_test_file"; then
8258 case $deplibs_check_method in
8259 "file_magic "*)
8260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8263 $EGREP "$file_magic_regex" > /dev/null; then
8264 :
8265 else
8266 cat <<_LT_EOF 1>&2
8267
8268*** Warning: the command libtool uses to detect shared libraries,
8269*** $file_magic_cmd, produces output that libtool cannot recognize.
8270*** The result is that libtool may fail to recognize shared libraries
8271*** as such. This will affect the creation of libtool libraries that
8272*** depend on shared libraries, but programs linked with such libtool
8273*** libraries will work regardless of this problem. Nevertheless, you
8274*** may want to report the problem to your system manager and/or to
8275*** bug-libtool@gnu.org
8276
8277_LT_EOF
8278 fi ;;
8279 esac
8280 fi
8281 break
8282 fi
8283 done
8284 IFS="$lt_save_ifs"
8285 MAGIC_CMD="$lt_save_MAGIC_CMD"
8286 ;;
8287esac
8288fi
8289
8290MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8291if test -n "$MAGIC_CMD"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8293$as_echo "$MAGIC_CMD" >&6; }
8294else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296$as_echo "no" >&6; }
8297fi
8298
8299
8300 else
8301 MAGIC_CMD=:
8302 fi
8303fi
8304
8305 fi
8306 ;;
8307esac
8308
8309# Use C for the default configuration in the libtool script
8310
8311lt_save_CC="$CC"
8312ac_ext=c
8313ac_cpp='$CPP $CPPFLAGS'
8314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8316ac_compiler_gnu=$ac_cv_c_compiler_gnu
8317
8318
8319# Source file extension for C test sources.
8320ac_ext=c
8321
8322# Object file extension for compiled C test sources.
8323objext=o
8324objext=$objext
8325
8326# Code to be used in simple compile tests
8327lt_simple_compile_test_code="int some_variable = 0;"
8328
8329# Code to be used in simple link tests
8330lt_simple_link_test_code='int main(){return(0);}'
8331
8332
8333
8334
8335
8336
8337
8338# If no C compiler was specified, use CC.
8339LTCC=${LTCC-"$CC"}
8340
8341# If no C compiler flags were specified, use CFLAGS.
8342LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8343
8344# Allow CC to be a program name with arguments.
8345compiler=$CC
8346
8347# Save the default compiler, since it gets overwritten when the other
8348# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8349compiler_DEFAULT=$CC
8350
8351# save warnings/boilerplate of simple test code
8352ac_outfile=conftest.$ac_objext
8353echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8354eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8355_lt_compiler_boilerplate=`cat conftest.err`
8356$RM conftest*
8357
8358ac_outfile=conftest.$ac_objext
8359echo "$lt_simple_link_test_code" >conftest.$ac_ext
8360eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8361_lt_linker_boilerplate=`cat conftest.err`
8362$RM -r conftest*
8363
8364
8365## CAVEAT EMPTOR:
8366## There is no encapsulation within the following macros, do not change
8367## the running order or otherwise move them around unless you know exactly
8368## what you are doing...
8369if test -n "$compiler"; then
8370
8371lt_prog_compiler_no_builtin_flag=
8372
8373if test "$GCC" = yes; then
8374 case $cc_basename in
8375 nvcc*)
8376 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8377 *)
8378 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8379 esac
8380
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8382$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8383if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
48310492
RH
8384 $as_echo_n "(cached) " >&6
8385else
8386 lt_cv_prog_compiler_rtti_exceptions=no
8387 ac_outfile=conftest.$ac_objext
8388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8389 lt_compiler_flag="-fno-rtti -fno-exceptions"
8390 # Insert the option either (1) after the last *FLAGS variable, or
8391 # (2) before a word containing "conftest.", or (3) at the end.
8392 # Note that $ac_compile itself does not contain backslashes and begins
8393 # with a dollar sign (not a hyphen), so the echo should work correctly.
8394 # The option is referenced via a variable to avoid confusing sed.
8395 lt_compile=`echo "$ac_compile" | $SED \
8396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8398 -e 's:$: $lt_compiler_flag:'`
8399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8400 (eval "$lt_compile" 2>conftest.err)
8401 ac_status=$?
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 if (exit $ac_status) && test -s "$ac_outfile"; then
8405 # The compiler can only warn and ignore the option if not recognized
8406 # So say no if there are warnings other than the usual output.
8407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8410 lt_cv_prog_compiler_rtti_exceptions=yes
8411 fi
8412 fi
8413 $RM conftest*
8414
8415fi
8416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8417$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8418
8419if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8420 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8421else
8422 :
8423fi
8424
8425fi
8426
8427
8428
8429
8430
8431
8432 lt_prog_compiler_wl=
8433lt_prog_compiler_pic=
8434lt_prog_compiler_static=
8435
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8437$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8438
8439 if test "$GCC" = yes; then
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_static='-static'
8442
8443 case $host_os in
8444 aix*)
8445 # All AIX code is PIC.
8446 if test "$host_cpu" = ia64; then
8447 # AIX 5 now supports IA64 processor
8448 lt_prog_compiler_static='-Bstatic'
8449 fi
00c2f0ef 8450 lt_prog_compiler_pic='-fPIC'
48310492
RH
8451 ;;
8452
8453 amigaos*)
8454 case $host_cpu in
8455 powerpc)
8456 # see comment about AmigaOS4 .so support
8457 lt_prog_compiler_pic='-fPIC'
8458 ;;
8459 m68k)
8460 # FIXME: we need at least 68020 code to build shared libraries, but
8461 # adding the `-m68020' flag to GCC prevents building anything better,
8462 # like `-m68040'.
8463 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8464 ;;
8465 esac
8466 ;;
8467
8468 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8469 # PIC is the default for these OSes.
8470 ;;
8471
8472 mingw* | cygwin* | pw32* | os2* | cegcc*)
8473 # This hack is so that the source file can tell whether it is being
8474 # built for inclusion in a dll (and should export symbols for example).
8475 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8476 # (--disable-auto-import) libraries
8477 lt_prog_compiler_pic='-DDLL_EXPORT'
8478 ;;
8479
8480 darwin* | rhapsody*)
8481 # PIC is the default on this platform
8482 # Common symbols not allowed in MH_DYLIB files
8483 lt_prog_compiler_pic='-fno-common'
8484 ;;
8485
8486 haiku*)
8487 # PIC is the default for Haiku.
8488 # The "-static" flag exists, but is broken.
8489 lt_prog_compiler_static=
8490 ;;
8491
8492 hpux*)
8493 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8494 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8495 # sets the default TLS model and affects inlining.
8496 case $host_cpu in
8497 hppa*64*)
8498 # +Z the default
8499 ;;
8500 *)
8501 lt_prog_compiler_pic='-fPIC'
8502 ;;
8503 esac
8504 ;;
8505
8506 interix[3-9]*)
8507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8508 # Instead, we relocate shared libraries at runtime.
8509 ;;
8510
8511 msdosdjgpp*)
8512 # Just because we use GCC doesn't mean we suddenly get shared libraries
8513 # on systems that don't support them.
8514 lt_prog_compiler_can_build_shared=no
8515 enable_shared=no
8516 ;;
8517
8518 *nto* | *qnx*)
8519 # QNX uses GNU C++, but need to define -shared option too, otherwise
8520 # it will coredump.
8521 lt_prog_compiler_pic='-fPIC -shared'
8522 ;;
8523
8524 sysv4*MP*)
8525 if test -d /usr/nec; then
8526 lt_prog_compiler_pic=-Kconform_pic
8527 fi
8528 ;;
8529
8530 *)
8531 lt_prog_compiler_pic='-fPIC'
8532 ;;
8533 esac
8534
8535 case $cc_basename in
8536 nvcc*) # Cuda Compiler Driver 2.2
8537 lt_prog_compiler_wl='-Xlinker '
8538 lt_prog_compiler_pic='-Xcompiler -fPIC'
8539 ;;
8540 esac
8541 else
8542 # PORTME Check for flag to pass linker flags through the system compiler.
8543 case $host_os in
8544 aix*)
8545 lt_prog_compiler_wl='-Wl,'
8546 if test "$host_cpu" = ia64; then
8547 # AIX 5 now supports IA64 processor
8548 lt_prog_compiler_static='-Bstatic'
8549 else
8550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8551 fi
8552 ;;
8553
8554 mingw* | cygwin* | pw32* | os2* | cegcc*)
8555 # This hack is so that the source file can tell whether it is being
8556 # built for inclusion in a dll (and should export symbols for example).
8557 lt_prog_compiler_pic='-DDLL_EXPORT'
8558 ;;
8559
8560 hpux9* | hpux10* | hpux11*)
8561 lt_prog_compiler_wl='-Wl,'
8562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8563 # not for PA HP-UX.
8564 case $host_cpu in
8565 hppa*64*|ia64*)
8566 # +Z the default
8567 ;;
8568 *)
8569 lt_prog_compiler_pic='+Z'
8570 ;;
8571 esac
8572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8573 lt_prog_compiler_static='${wl}-a ${wl}archive'
8574 ;;
8575
8576 irix5* | irix6* | nonstopux*)
8577 lt_prog_compiler_wl='-Wl,'
8578 # PIC (with -KPIC) is the default.
8579 lt_prog_compiler_static='-non_shared'
8580 ;;
8581
8582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8583 case $cc_basename in
8584 # old Intel for x86_64 which still supported -KPIC.
8585 ecc*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-static'
8589 ;;
8590 # icc used to be incompatible with GCC.
8591 # ICC 10 doesn't accept -KPIC any more.
8592 icc* | ifort*)
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-fPIC'
8595 lt_prog_compiler_static='-static'
8596 ;;
8597 # Lahey Fortran 8.1.
8598 lf95*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='--shared'
8601 lt_prog_compiler_static='--static'
8602 ;;
8603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8604 # Portland Group compilers (*not* the Pentium gcc compiler,
8605 # which looks to be a dead project)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-fpic'
8608 lt_prog_compiler_static='-Bstatic'
8609 ;;
8610 ccc*)
8611 lt_prog_compiler_wl='-Wl,'
8612 # All Alpha code is PIC.
8613 lt_prog_compiler_static='-non_shared'
8614 ;;
8615 xl* | bgxl* | bgf* | mpixl*)
8616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-qpic'
8619 lt_prog_compiler_static='-qstaticlink'
8620 ;;
8621 *)
8622 case `$CC -V 2>&1 | sed 5q` in
8623 *Sun\ F* | *Sun*Fortran*)
8624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8625 lt_prog_compiler_pic='-KPIC'
8626 lt_prog_compiler_static='-Bstatic'
8627 lt_prog_compiler_wl=''
8628 ;;
8629 *Sun\ C*)
8630 # Sun C 5.9
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 lt_prog_compiler_wl='-Wl,'
8634 ;;
8635 esac
8636 ;;
8637 esac
8638 ;;
8639
8640 newsos6)
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8643 ;;
8644
8645 *nto* | *qnx*)
8646 # QNX uses GNU C++, but need to define -shared option too, otherwise
8647 # it will coredump.
8648 lt_prog_compiler_pic='-fPIC -shared'
8649 ;;
8650
8651 osf3* | osf4* | osf5*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # All OSF/1 code is PIC.
8654 lt_prog_compiler_static='-non_shared'
8655 ;;
8656
8657 rdos*)
8658 lt_prog_compiler_static='-non_shared'
8659 ;;
8660
8661 solaris*)
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-Bstatic'
8664 case $cc_basename in
8665 f77* | f90* | f95*)
8666 lt_prog_compiler_wl='-Qoption ld ';;
8667 *)
8668 lt_prog_compiler_wl='-Wl,';;
8669 esac
8670 ;;
8671
8672 sunos4*)
8673 lt_prog_compiler_wl='-Qoption ld '
8674 lt_prog_compiler_pic='-PIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 ;;
8677
8678 sysv4 | sysv4.2uw2* | sysv4.3*)
8679 lt_prog_compiler_wl='-Wl,'
8680 lt_prog_compiler_pic='-KPIC'
8681 lt_prog_compiler_static='-Bstatic'
8682 ;;
8683
8684 sysv4*MP*)
8685 if test -d /usr/nec ;then
8686 lt_prog_compiler_pic='-Kconform_pic'
8687 lt_prog_compiler_static='-Bstatic'
8688 fi
8689 ;;
8690
8691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-KPIC'
8694 lt_prog_compiler_static='-Bstatic'
8695 ;;
8696
8697 unicos*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_can_build_shared=no
8700 ;;
8701
8702 uts4*)
8703 lt_prog_compiler_pic='-pic'
8704 lt_prog_compiler_static='-Bstatic'
8705 ;;
8706
8707 *)
8708 lt_prog_compiler_can_build_shared=no
8709 ;;
8710 esac
8711 fi
8712
8713case $host_os in
8714 # For platforms which do not support PIC, -DPIC is meaningless:
8715 *djgpp*)
8716 lt_prog_compiler_pic=
8717 ;;
8718 *)
8719 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8720 ;;
8721esac
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8723$as_echo "$lt_prog_compiler_pic" >&6; }
8724
8725
8726
8727
8728
8729
8730#
8731# Check to make sure the PIC flag actually works.
8732#
8733if test -n "$lt_prog_compiler_pic"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8735$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8736if ${lt_cv_prog_compiler_pic_works+:} false; then :
48310492
RH
8737 $as_echo_n "(cached) " >&6
8738else
8739 lt_cv_prog_compiler_pic_works=no
8740 ac_outfile=conftest.$ac_objext
8741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8743 # Insert the option either (1) after the last *FLAGS variable, or
8744 # (2) before a word containing "conftest.", or (3) at the end.
8745 # Note that $ac_compile itself does not contain backslashes and begins
8746 # with a dollar sign (not a hyphen), so the echo should work correctly.
8747 # The option is referenced via a variable to avoid confusing sed.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>conftest.err)
8754 ac_status=$?
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s "$ac_outfile"; then
8758 # The compiler can only warn and ignore the option if not recognized
8759 # So say no if there are warnings other than the usual output.
8760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8763 lt_cv_prog_compiler_pic_works=yes
8764 fi
8765 fi
8766 $RM conftest*
8767
8768fi
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8770$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8771
8772if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8773 case $lt_prog_compiler_pic in
8774 "" | " "*) ;;
8775 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8776 esac
8777else
8778 lt_prog_compiler_pic=
8779 lt_prog_compiler_can_build_shared=no
8780fi
8781
8782fi
8783
8784
8785
8786
8787
8788
8789#
8790# Check to make sure the static flag actually works.
8791#
8792wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8794$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8795if ${lt_cv_prog_compiler_static_works+:} false; then :
48310492
RH
8796 $as_echo_n "(cached) " >&6
8797else
8798 lt_cv_prog_compiler_static_works=no
8799 save_LDFLAGS="$LDFLAGS"
8800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8803 # The linker can only warn and ignore the option if not recognized
8804 # So say no if there are warnings
8805 if test -s conftest.err; then
8806 # Append any errors to the config.log.
8807 cat conftest.err 1>&5
8808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8810 if diff conftest.exp conftest.er2 >/dev/null; then
8811 lt_cv_prog_compiler_static_works=yes
8812 fi
8813 else
8814 lt_cv_prog_compiler_static_works=yes
8815 fi
8816 fi
8817 $RM -r conftest*
8818 LDFLAGS="$save_LDFLAGS"
8819
8820fi
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8822$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8823
8824if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8825 :
8826else
8827 lt_prog_compiler_static=
8828fi
8829
8830
8831
8832
8833
8834
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8837$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8838if ${lt_cv_prog_compiler_c_o+:} false; then :
48310492
RH
8839 $as_echo_n "(cached) " >&6
8840else
8841 lt_cv_prog_compiler_c_o=no
8842 $RM -r conftest 2>/dev/null
8843 mkdir conftest
8844 cd conftest
8845 mkdir out
8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847
8848 lt_compiler_flag="-o out/conftest2.$ac_objext"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 lt_compile=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858 (eval "$lt_compile" 2>out/conftest.err)
8859 ac_status=$?
8860 cat out/conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8863 then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings
8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_c_o=yes
8870 fi
8871 fi
8872 chmod u+w . 2>&5
8873 $RM conftest*
8874 # SGI C++ compiler will create directory out/ii_files/ for
8875 # template instantiation
8876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8877 $RM out/* && rmdir out
8878 cd ..
8879 $RM -r conftest
8880 $RM conftest*
8881
8882fi
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8884$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8885
8886
8887
8888
8889
8890
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8892$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8893if ${lt_cv_prog_compiler_c_o+:} false; then :
48310492
RH
8894 $as_echo_n "(cached) " >&6
8895else
8896 lt_cv_prog_compiler_c_o=no
8897 $RM -r conftest 2>/dev/null
8898 mkdir conftest
8899 cd conftest
8900 mkdir out
8901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8902
8903 lt_compiler_flag="-o out/conftest2.$ac_objext"
8904 # Insert the option either (1) after the last *FLAGS variable, or
8905 # (2) before a word containing "conftest.", or (3) at the end.
8906 # Note that $ac_compile itself does not contain backslashes and begins
8907 # with a dollar sign (not a hyphen), so the echo should work correctly.
8908 lt_compile=`echo "$ac_compile" | $SED \
8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911 -e 's:$: $lt_compiler_flag:'`
8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8913 (eval "$lt_compile" 2>out/conftest.err)
8914 ac_status=$?
8915 cat out/conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8918 then
8919 # The compiler can only warn and ignore the option if not recognized
8920 # So say no if there are warnings
8921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8924 lt_cv_prog_compiler_c_o=yes
8925 fi
8926 fi
8927 chmod u+w . 2>&5
8928 $RM conftest*
8929 # SGI C++ compiler will create directory out/ii_files/ for
8930 # template instantiation
8931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8932 $RM out/* && rmdir out
8933 cd ..
8934 $RM -r conftest
8935 $RM conftest*
8936
8937fi
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8939$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8940
8941
8942
8943
8944hard_links="nottested"
8945if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8946 # do not overwrite the value of need_locks provided by the user
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8948$as_echo_n "checking if we can lock with hard links... " >&6; }
8949 hard_links=yes
8950 $RM conftest*
8951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8952 touch conftest.a
8953 ln conftest.a conftest.b 2>&5 || hard_links=no
8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8956$as_echo "$hard_links" >&6; }
8957 if test "$hard_links" = no; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8959$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8960 need_locks=warn
8961 fi
8962else
8963 need_locks=no
8964fi
8965
8966
8967
8968
8969
8970
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8972$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8973
8974 runpath_var=
8975 allow_undefined_flag=
8976 always_export_symbols=no
8977 archive_cmds=
8978 archive_expsym_cmds=
8979 compiler_needs_object=no
8980 enable_shared_with_static_runtimes=no
8981 export_dynamic_flag_spec=
8982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8983 hardcode_automatic=no
8984 hardcode_direct=no
8985 hardcode_direct_absolute=no
8986 hardcode_libdir_flag_spec=
8987 hardcode_libdir_flag_spec_ld=
8988 hardcode_libdir_separator=
8989 hardcode_minus_L=no
8990 hardcode_shlibpath_var=unsupported
8991 inherit_rpath=no
8992 link_all_deplibs=unknown
8993 module_cmds=
8994 module_expsym_cmds=
8995 old_archive_from_new_cmds=
8996 old_archive_from_expsyms_cmds=
8997 thread_safe_flag_spec=
8998 whole_archive_flag_spec=
8999 # include_expsyms should be a list of space-separated symbols to be *always*
9000 # included in the symbol list
9001 include_expsyms=
9002 # exclude_expsyms can be an extended regexp of symbols to exclude
9003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9005 # as well as any symbol that contains `d'.
9006 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9008 # platforms (ab)use it in PIC code, but their linkers get confused if
9009 # the symbol is explicitly referenced. Since portable code cannot
9010 # rely on this symbol name, it's probably fine to never include it in
9011 # preloaded symbol tables.
9012 # Exclude shared library initialization/finalization symbols.
9013 extract_expsyms_cmds=
9014
9015 case $host_os in
9016 cygwin* | mingw* | pw32* | cegcc*)
9017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9018 # When not using gcc, we currently assume that we are using
9019 # Microsoft Visual C++.
9020 if test "$GCC" != yes; then
9021 with_gnu_ld=no
9022 fi
9023 ;;
9024 interix*)
9025 # we just hope/assume this is gcc and not c89 (= MSVC++)
9026 with_gnu_ld=yes
9027 ;;
9028 openbsd*)
9029 with_gnu_ld=no
9030 ;;
9031 esac
9032
9033 ld_shlibs=yes
9034
9035 # On some targets, GNU ld is compatible enough with the native linker
9036 # that we're better off using the native interface for both.
9037 lt_use_gnu_ld_interface=no
9038 if test "$with_gnu_ld" = yes; then
9039 case $host_os in
9040 aix*)
9041 # The AIX port of GNU ld has always aspired to compatibility
9042 # with the native linker. However, as the warning in the GNU ld
9043 # block says, versions before 2.19.5* couldn't really create working
9044 # shared libraries, regardless of the interface used.
9045 case `$LD -v 2>&1` in
9046 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9047 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9048 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9049 *)
9050 lt_use_gnu_ld_interface=yes
9051 ;;
9052 esac
9053 ;;
9054 *)
9055 lt_use_gnu_ld_interface=yes
9056 ;;
9057 esac
9058 fi
9059
9060 if test "$lt_use_gnu_ld_interface" = yes; then
9061 # If archive_cmds runs LD, not CC, wlarc should be empty
9062 wlarc='${wl}'
9063
9064 # Set some defaults for GNU ld with shared library support. These
9065 # are reset later if shared libraries are not supported. Putting them
9066 # here allows them to be overridden if necessary.
9067 runpath_var=LD_RUN_PATH
9068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069 export_dynamic_flag_spec='${wl}--export-dynamic'
9070 # ancient GNU ld didn't support --whole-archive et. al.
9071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9072 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9073 else
9074 whole_archive_flag_spec=
9075 fi
9076 supports_anon_versioning=no
9077 case `$LD -v 2>&1` in
9078 *GNU\ gold*) supports_anon_versioning=yes ;;
9079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9082 *\ 2.11.*) ;; # other 2.11 versions
9083 *) supports_anon_versioning=yes ;;
9084 esac
9085
9086 # See if GNU ld supports shared libraries.
9087 case $host_os in
9088 aix[3-9]*)
9089 # On AIX/PPC, the GNU linker is very broken
9090 if test "$host_cpu" != ia64; then
9091 ld_shlibs=no
9092 cat <<_LT_EOF 1>&2
9093
9094*** Warning: the GNU linker, at least up to release 2.19, is reported
9095*** to be unable to reliably create shared libraries on AIX.
9096*** Therefore, libtool is disabling shared libraries support. If you
9097*** really care for shared libraries, you may want to install binutils
9098*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9099*** You will then need to restart the configuration process.
9100
9101_LT_EOF
9102 fi
9103 ;;
9104
9105 amigaos*)
9106 case $host_cpu in
9107 powerpc)
9108 # see comment about AmigaOS4 .so support
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 archive_expsym_cmds=''
9111 ;;
9112 m68k)
9113 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)'
9114 hardcode_libdir_flag_spec='-L$libdir'
9115 hardcode_minus_L=yes
9116 ;;
9117 esac
9118 ;;
9119
9120 beos*)
9121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9122 allow_undefined_flag=unsupported
9123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9124 # support --undefined. This deserves some investigation. FIXME
9125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 else
9127 ld_shlibs=no
9128 fi
9129 ;;
9130
9131 cygwin* | mingw* | pw32* | cegcc*)
9132 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9133 # as there is no search path for DLLs.
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 export_dynamic_flag_spec='${wl}--export-all-symbols'
9136 allow_undefined_flag=unsupported
9137 always_export_symbols=no
9138 enable_shared_with_static_runtimes=yes
9139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9140
9141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9143 # If the export-symbols file already is a .def file (1st line
9144 # is EXPORTS), use it as is; otherwise, prepend...
9145 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9146 cp $export_symbols $output_objdir/$soname.def;
9147 else
9148 echo EXPORTS > $output_objdir/$soname.def;
9149 cat $export_symbols >> $output_objdir/$soname.def;
9150 fi~
9151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156
9157 haiku*)
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 link_all_deplibs=yes
9160 ;;
9161
9162 interix[3-9]*)
9163 hardcode_direct=no
9164 hardcode_shlibpath_var=no
9165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9166 export_dynamic_flag_spec='${wl}-E'
9167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9168 # Instead, shared libraries are loaded at an image base (0x10000000 by
9169 # default) and relocated if they conflict, which is a slow very memory
9170 # consuming and fragmenting process. To avoid this, we pick a random,
9171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9174 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'
9175 ;;
9176
b1e21e5a 9177 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
48310492
RH
9178 tmp_diet=no
9179 if test "$host_os" = linux-dietlibc; then
9180 case $cc_basename in
9181 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9182 esac
9183 fi
9184 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9185 && test "$tmp_diet" = no
9186 then
a699d672 9187 tmp_addflag=' $pic_flag'
48310492
RH
9188 tmp_sharedflag='-shared'
9189 case $cc_basename,$host_cpu in
9190 pgcc*) # Portland Group C compiler
9191 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'
9192 tmp_addflag=' $pic_flag'
9193 ;;
9194 pgf77* | pgf90* | pgf95* | pgfortran*)
9195 # Portland Group f77 and f90 compilers
9196 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'
9197 tmp_addflag=' $pic_flag -Mnomain' ;;
9198 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9199 tmp_addflag=' -i_dynamic' ;;
9200 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9201 tmp_addflag=' -i_dynamic -nofor_main' ;;
9202 ifc* | ifort*) # Intel Fortran compiler
9203 tmp_addflag=' -nofor_main' ;;
9204 lf95*) # Lahey Fortran 8.1
9205 whole_archive_flag_spec=
9206 tmp_sharedflag='--shared' ;;
9207 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9208 tmp_sharedflag='-qmkshrobj'
9209 tmp_addflag= ;;
9210 nvcc*) # Cuda Compiler Driver 2.2
9211 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'
9212 compiler_needs_object=yes
9213 ;;
9214 esac
9215 case `$CC -V 2>&1 | sed 5q` in
9216 *Sun\ C*) # Sun C 5.9
9217 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'
9218 compiler_needs_object=yes
9219 tmp_sharedflag='-G' ;;
9220 *Sun\ F*) # Sun Fortran 8.3
9221 tmp_sharedflag='-G' ;;
9222 esac
9223 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224
9225 if test "x$supports_anon_versioning" = xyes; then
9226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9228 echo "local: *; };" >> $output_objdir/$libname.ver~
9229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9230 fi
9231
9232 case $cc_basename in
9233 xlf* | bgf* | bgxlf* | mpixlf*)
9234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9236 hardcode_libdir_flag_spec=
9237 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9238 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9239 if test "x$supports_anon_versioning" = xyes; then
9240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9242 echo "local: *; };" >> $output_objdir/$libname.ver~
9243 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9244 fi
9245 ;;
9246 esac
9247 else
9248 ld_shlibs=no
9249 fi
9250 ;;
9251
9252 netbsd*)
9253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9254 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9255 wlarc=
9256 else
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9259 fi
9260 ;;
9261
9262 solaris*)
9263 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9264 ld_shlibs=no
9265 cat <<_LT_EOF 1>&2
9266
9267*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9268*** create shared libraries on Solaris systems. Therefore, libtool
9269*** is disabling shared libraries support. We urge you to upgrade GNU
9270*** binutils to release 2.9.1 or newer. Another option is to modify
9271*** your PATH or compiler configuration so that the native linker is
9272*** used, and then restart.
9273
9274_LT_EOF
9275 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9278 else
9279 ld_shlibs=no
9280 fi
9281 ;;
9282
9283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9284 case `$LD -v 2>&1` in
9285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9286 ld_shlibs=no
9287 cat <<_LT_EOF 1>&2
9288
9289*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9290*** reliably create shared libraries on SCO systems. Therefore, libtool
9291*** is disabling shared libraries support. We urge you to upgrade GNU
9292*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9293*** your PATH or compiler configuration so that the native linker is
9294*** used, and then restart.
9295
9296_LT_EOF
9297 ;;
9298 *)
9299 # For security reasons, it is highly recommended that you always
9300 # use absolute paths for naming shared libraries, and exclude the
9301 # DT_RUNPATH tag from executables and libraries. But doing so
9302 # requires that you compile everything twice, which is a pain.
9303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9307 else
9308 ld_shlibs=no
9309 fi
9310 ;;
9311 esac
9312 ;;
9313
9314 sunos4*)
9315 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9316 wlarc=
9317 hardcode_direct=yes
9318 hardcode_shlibpath_var=no
9319 ;;
9320
9321 *)
9322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325 else
9326 ld_shlibs=no
9327 fi
9328 ;;
9329 esac
9330
9331 if test "$ld_shlibs" = no; then
9332 runpath_var=
9333 hardcode_libdir_flag_spec=
9334 export_dynamic_flag_spec=
9335 whole_archive_flag_spec=
9336 fi
9337 else
9338 # PORTME fill in a description of your system's linker (not GNU ld)
9339 case $host_os in
9340 aix3*)
9341 allow_undefined_flag=unsupported
9342 always_export_symbols=yes
9343 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'
9344 # Note: this linker hardcodes the directories in LIBPATH if there
9345 # are no directories specified by -L.
9346 hardcode_minus_L=yes
9347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9348 # Neither direct hardcoding nor static linking is supported with a
9349 # broken collect2.
9350 hardcode_direct=unsupported
9351 fi
9352 ;;
9353
9354 aix[4-9]*)
9355 if test "$host_cpu" = ia64; then
9356 # On IA64, the linker does run time linking by default, so we don't
9357 # have to do anything special.
9358 aix_use_runtimelinking=no
9359 exp_sym_flag='-Bexport'
9360 no_entry_flag=""
9361 else
9362 # If we're using GNU nm, then we don't want the "-C" option.
9363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9364 # Also, AIX nm treats weak defined symbols like other global
9365 # defined symbols, whereas GNU nm marks them as "W".
9366 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9367 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'
9368 else
84c1b9d3 9369 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'
48310492
RH
9370 fi
9371 aix_use_runtimelinking=no
9372
9373 # Test if we are trying to use run time linking or normal
9374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9375 # need to do runtime linking.
9376 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9377 for ld_flag in $LDFLAGS; do
9378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9379 aix_use_runtimelinking=yes
9380 break
9381 fi
9382 done
9383 ;;
9384 esac
9385
9386 exp_sym_flag='-bexport'
9387 no_entry_flag='-bnoentry'
9388 fi
9389
9390 # When large executables or shared objects are built, AIX ld can
9391 # have problems creating the table of contents. If linking a library
9392 # or program results in "error TOC overflow" add -mminimal-toc to
9393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9395
9396 archive_cmds=''
9397 hardcode_direct=yes
9398 hardcode_direct_absolute=yes
9399 hardcode_libdir_separator=':'
9400 link_all_deplibs=yes
9401 file_list_spec='${wl}-f,'
9402
9403 if test "$GCC" = yes; then
9404 case $host_os in aix4.[012]|aix4.[012].*)
9405 # We only want to do this on AIX 4.2 and lower, the check
9406 # below for broken collect2 doesn't work under 4.3+
9407 collect2name=`${CC} -print-prog-name=collect2`
9408 if test -f "$collect2name" &&
9409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9410 then
9411 # We have reworked collect2
9412 :
9413 else
9414 # We have old collect2
9415 hardcode_direct=unsupported
9416 # It fails to find uninstalled libraries when the uninstalled
9417 # path is not listed in the libpath. Setting hardcode_minus_L
9418 # to unsupported forces relinking
9419 hardcode_minus_L=yes
9420 hardcode_libdir_flag_spec='-L$libdir'
9421 hardcode_libdir_separator=
9422 fi
9423 ;;
9424 esac
9425 shared_flag='-shared'
9426 if test "$aix_use_runtimelinking" = yes; then
9427 shared_flag="$shared_flag "'${wl}-G'
9428 fi
9429 else
9430 # not using gcc
9431 if test "$host_cpu" = ia64; then
9432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9433 # chokes on -Wl,-G. The following line is correct:
9434 shared_flag='-G'
9435 else
9436 if test "$aix_use_runtimelinking" = yes; then
9437 shared_flag='${wl}-G'
9438 else
9439 shared_flag='${wl}-bM:SRE'
9440 fi
9441 fi
9442 fi
9443
9444 export_dynamic_flag_spec='${wl}-bexpall'
9445 # It seems that -bexpall does not export symbols beginning with
9446 # underscore (_), so it is better to generate a list of symbols to export.
9447 always_export_symbols=yes
9448 if test "$aix_use_runtimelinking" = yes; then
9449 # Warning - without using the other runtime loading flags (-brtl),
9450 # -berok will link without error, but may produce a broken library.
9451 allow_undefined_flag='-berok'
9452 # Determine the default libpath from the value encoded in an
9453 # empty executable.
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h. */
9456
9457int
9458main ()
9459{
9460
9461 ;
9462 return 0;
9463}
9464_ACEOF
9465if ac_fn_c_try_link "$LINENO"; then :
9466
9467lt_aix_libpath_sed='
9468 /Import File Strings/,/^$/ {
9469 /^0/ {
9470 s/^0 *\(.*\)$/\1/
9471 p
9472 }
9473 }'
9474aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9475# Check for a 64-bit object if we didn't find anything.
9476if test -z "$aix_libpath"; then
9477 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9478fi
9479fi
9480rm -f core conftest.err conftest.$ac_objext \
9481 conftest$ac_exeext conftest.$ac_ext
9482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9483
9484 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9485 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"
9486 else
9487 if test "$host_cpu" = ia64; then
9488 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9489 allow_undefined_flag="-z nodefs"
9490 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"
9491 else
9492 # Determine the default libpath from the value encoded in an
9493 # empty executable.
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495/* end confdefs.h. */
9496
9497int
9498main ()
9499{
9500
9501 ;
9502 return 0;
9503}
9504_ACEOF
9505if ac_fn_c_try_link "$LINENO"; then :
9506
9507lt_aix_libpath_sed='
9508 /Import File Strings/,/^$/ {
9509 /^0/ {
9510 s/^0 *\(.*\)$/\1/
9511 p
9512 }
9513 }'
9514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515# Check for a 64-bit object if we didn't find anything.
9516if test -z "$aix_libpath"; then
9517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9518fi
9519fi
9520rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9523
9524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9525 # Warning - without using the other run time loading flags,
9526 # -berok will link without error, but may produce a broken library.
9527 no_undefined_flag=' ${wl}-bernotok'
9528 allow_undefined_flag=' ${wl}-berok'
9529 if test "$with_gnu_ld" = yes; then
9530 # We only use this code for GNU lds that support --whole-archive.
9531 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9532 else
9533 # Exported symbols can be pulled into shared objects from archives
9534 whole_archive_flag_spec='$convenience'
9535 fi
9536 archive_cmds_need_lc=yes
9537 # This is similar to how AIX traditionally builds its shared libraries.
9538 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'
9539 fi
9540 fi
9541 ;;
9542
9543 amigaos*)
9544 case $host_cpu in
9545 powerpc)
9546 # see comment about AmigaOS4 .so support
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds=''
9549 ;;
9550 m68k)
9551 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)'
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_minus_L=yes
9554 ;;
9555 esac
9556 ;;
9557
9558 bsdi[45]*)
9559 export_dynamic_flag_spec=-rdynamic
9560 ;;
9561
9562 cygwin* | mingw* | pw32* | cegcc*)
9563 # When not using gcc, we currently assume that we are using
9564 # Microsoft Visual C++.
9565 # hardcode_libdir_flag_spec is actually meaningless, as there is
9566 # no search path for DLLs.
9567 hardcode_libdir_flag_spec=' '
9568 allow_undefined_flag=unsupported
9569 # Tell ltmain to make .lib files, not .a files.
9570 libext=lib
9571 # Tell ltmain to make .dll files, not .so files.
9572 shrext_cmds=".dll"
9573 # FIXME: Setting linknames here is a bad hack.
9574 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9575 # The linker will automatically build a .lib file if we build a DLL.
9576 old_archive_from_new_cmds='true'
9577 # FIXME: Should let the user specify the lib program.
9578 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9579 fix_srcfile_path='`cygpath -w "$srcfile"`'
9580 enable_shared_with_static_runtimes=yes
9581 ;;
9582
9583 darwin* | rhapsody*)
9584
9585
6a6d3817
IS
9586
9587 # Publish an arg to allow the user to select that Darwin host (and target)
9588 # libraries should be given install-names like @rpath/libfoo.dylib. This
9589 # requires that the user of the library then adds an 'rpath' to the DSO that
9590 # needs access.
9591 # NOTE: there are defaults below, for systems that support rpaths. The person
9592 # configuring can override the defaults for any system version that supports
9593 # them - they are, however, forced off for system versions without support.
9594 # Check whether --enable-darwin-at-rpath was given.
9595if test "${enable_darwin_at_rpath+set}" = set; then :
9596 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
9597 # This is not supported before macOS 10.5 / Darwin9.
9598 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9599 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9601$as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9602 enable_darwin_at_rpath=no
9603 ;;
9604 esac
9605 fi
9606else
9607 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9608 # As above, before 10.5 / Darwin9 this does not work.
9609 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9610 enable_darwin_at_rpath=no
9611 ;;
9612
9613 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9614 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9615 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9616 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9618$as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9619 enable_darwin_at_rpath=yes
9620 ;;
9621 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9622 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9623
9624 esac
9625
9626fi
9627
9628
48310492
RH
9629 archive_cmds_need_lc=no
9630 hardcode_direct=no
9631 hardcode_automatic=yes
9632 hardcode_shlibpath_var=unsupported
9633 if test "$lt_cv_ld_force_load" = "yes"; then
9634 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\"`'
9635 else
9636 whole_archive_flag_spec=''
9637 fi
9638 link_all_deplibs=yes
9639 allow_undefined_flag="$_lt_dar_allow_undefined"
9640 case $cc_basename in
9641 ifort*) _lt_dar_can_shared=yes ;;
9642 *) _lt_dar_can_shared=$GCC ;;
9643 esac
9644 if test "$_lt_dar_can_shared" = "yes"; then
9645 output_verbose_link_cmd=func_echo_all
6a6d3817
IS
9646 _lt_install_name='\$rpath/\$soname'
9647 if test "x$enable_darwin_at_rpath" = "xyes"; then
9648 _lt_install_name='@rpath/\$soname'
9649 fi
9650 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
48310492 9651 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6a6d3817 9652 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
48310492
RH
9653 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}"
9654
9655 else
9656 ld_shlibs=no
9657 fi
9658
9659 ;;
9660
9661 dgux*)
9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_libdir_flag_spec='-L$libdir'
9664 hardcode_shlibpath_var=no
9665 ;;
9666
9667 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9668 # support. Future versions do this automatically, but an explicit c++rt0.o
9669 # does not break anything, and helps significantly (at the cost of a little
9670 # extra space).
9671 freebsd2.2*)
9672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9673 hardcode_libdir_flag_spec='-R$libdir'
9674 hardcode_direct=yes
9675 hardcode_shlibpath_var=no
9676 ;;
9677
9678 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9679 freebsd2.*)
9680 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_direct=yes
9682 hardcode_minus_L=yes
9683 hardcode_shlibpath_var=no
9684 ;;
9685
9686 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9687 freebsd* | dragonfly*)
9688 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9689 hardcode_libdir_flag_spec='-R$libdir'
9690 hardcode_direct=yes
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 hpux9*)
9695 if test "$GCC" = yes; then
9696 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'
9697 else
9698 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'
9699 fi
9700 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9701 hardcode_libdir_separator=:
9702 hardcode_direct=yes
9703
9704 # hardcode_minus_L: Not really in the search PATH,
9705 # but as the default location of the library.
9706 hardcode_minus_L=yes
9707 export_dynamic_flag_spec='${wl}-E'
9708 ;;
9709
9710 hpux10*)
9711 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9713 else
9714 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9715 fi
9716 if test "$with_gnu_ld" = no; then
9717 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9718 hardcode_libdir_flag_spec_ld='+b $libdir'
9719 hardcode_libdir_separator=:
9720 hardcode_direct=yes
9721 hardcode_direct_absolute=yes
9722 export_dynamic_flag_spec='${wl}-E'
9723 # hardcode_minus_L: Not really in the search PATH,
9724 # but as the default location of the library.
9725 hardcode_minus_L=yes
9726 fi
9727 ;;
9728
9729 hpux11*)
9730 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9731 case $host_cpu in
9732 hppa*64*)
4e4ba647 9733 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48310492
RH
9734 ;;
9735 ia64*)
9736 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9737 ;;
9738 *)
9739 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9740 ;;
9741 esac
9742 else
9743 case $host_cpu in
9744 hppa*64*)
4e4ba647 9745 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48310492
RH
9746 ;;
9747 ia64*)
9748 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9749 ;;
9750 *)
9751
9752 # Older versions of the 11.00 compiler do not understand -b yet
9753 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9755$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9756if ${lt_cv_prog_compiler__b+:} false; then :
48310492
RH
9757 $as_echo_n "(cached) " >&6
9758else
9759 lt_cv_prog_compiler__b=no
9760 save_LDFLAGS="$LDFLAGS"
9761 LDFLAGS="$LDFLAGS -b"
9762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9764 # The linker can only warn and ignore the option if not recognized
9765 # So say no if there are warnings
9766 if test -s conftest.err; then
9767 # Append any errors to the config.log.
9768 cat conftest.err 1>&5
9769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9771 if diff conftest.exp conftest.er2 >/dev/null; then
9772 lt_cv_prog_compiler__b=yes
9773 fi
9774 else
9775 lt_cv_prog_compiler__b=yes
9776 fi
9777 fi
9778 $RM -r conftest*
9779 LDFLAGS="$save_LDFLAGS"
9780
9781fi
9782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9783$as_echo "$lt_cv_prog_compiler__b" >&6; }
9784
9785if test x"$lt_cv_prog_compiler__b" = xyes; then
9786 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9787else
9788 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9789fi
9790
9791 ;;
9792 esac
9793 fi
9794 if test "$with_gnu_ld" = no; then
9795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9796 hardcode_libdir_separator=:
9797
9798 case $host_cpu in
9799 hppa*64*|ia64*)
9800 hardcode_direct=no
9801 hardcode_shlibpath_var=no
9802 ;;
9803 *)
9804 hardcode_direct=yes
9805 hardcode_direct_absolute=yes
9806 export_dynamic_flag_spec='${wl}-E'
9807
9808 # hardcode_minus_L: Not really in the search PATH,
9809 # but as the default location of the library.
9810 hardcode_minus_L=yes
9811 ;;
9812 esac
9813 fi
9814 ;;
9815
9816 irix5* | irix6* | nonstopux*)
9817 if test "$GCC" = yes; then
9818 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'
9819 # Try to use the -exported_symbol ld option, if it does not
9820 # work, assume that -exports_file does not work either and
9821 # implicitly export all symbols.
9822 save_LDFLAGS="$LDFLAGS"
9823 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825/* end confdefs.h. */
9826int foo(void) {}
9827_ACEOF
9828if ac_fn_c_try_link "$LINENO"; then :
9829 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'
9830
9831fi
9832rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LDFLAGS="$save_LDFLAGS"
9835 else
9836 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'
9837 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'
9838 fi
9839 archive_cmds_need_lc='no'
9840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9841 hardcode_libdir_separator=:
9842 inherit_rpath=yes
9843 link_all_deplibs=yes
9844 ;;
9845
9846 netbsd*)
9847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9849 else
9850 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9851 fi
9852 hardcode_libdir_flag_spec='-R$libdir'
9853 hardcode_direct=yes
9854 hardcode_shlibpath_var=no
9855 ;;
9856
9857 newsos6)
9858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859 hardcode_direct=yes
9860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9861 hardcode_libdir_separator=:
9862 hardcode_shlibpath_var=no
9863 ;;
9864
9865 *nto* | *qnx*)
9866 ;;
9867
9868 openbsd*)
9869 if test -f /usr/libexec/ld.so; then
9870 hardcode_direct=yes
9871 hardcode_shlibpath_var=no
9872 hardcode_direct_absolute=yes
9873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9875 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9877 export_dynamic_flag_spec='${wl}-E'
9878 else
9879 case $host_os in
9880 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9882 hardcode_libdir_flag_spec='-R$libdir'
9883 ;;
9884 *)
9885 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9886 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9887 ;;
9888 esac
9889 fi
9890 else
9891 ld_shlibs=no
9892 fi
9893 ;;
9894
9895 os2*)
9896 hardcode_libdir_flag_spec='-L$libdir'
9897 hardcode_minus_L=yes
9898 allow_undefined_flag=unsupported
9899 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'
9900 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9901 ;;
9902
9903 osf3*)
9904 if test "$GCC" = yes; then
9905 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9906 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'
9907 else
9908 allow_undefined_flag=' -expect_unresolved \*'
9909 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'
9910 fi
9911 archive_cmds_need_lc='no'
9912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9913 hardcode_libdir_separator=:
9914 ;;
9915
9916 osf4* | osf5*) # as osf3* with the addition of -msym flag
9917 if test "$GCC" = yes; then
9918 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9919 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'
9920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9921 else
9922 allow_undefined_flag=' -expect_unresolved \*'
9923 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'
9924 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~
9925 $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'
9926
9927 # Both c and cxx compiler support -rpath directly
9928 hardcode_libdir_flag_spec='-rpath $libdir'
9929 fi
9930 archive_cmds_need_lc='no'
9931 hardcode_libdir_separator=:
9932 ;;
9933
9934 solaris*)
9935 no_undefined_flag=' -z defs'
9936 if test "$GCC" = yes; then
9937 wlarc='${wl}'
9938 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9940 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9941 else
9942 case `$CC -V 2>&1` in
9943 *"Compilers 5.0"*)
9944 wlarc=''
9945 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9946 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9947 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9948 ;;
9949 *)
9950 wlarc='${wl}'
9951 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9953 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9954 ;;
9955 esac
9956 fi
9957 hardcode_libdir_flag_spec='-R$libdir'
9958 hardcode_shlibpath_var=no
9959 case $host_os in
9960 solaris2.[0-5] | solaris2.[0-5].*) ;;
9961 *)
9962 # The compiler driver will combine and reorder linker options,
9963 # but understands `-z linker_flag'. GCC discards it without `$wl',
9964 # but is careful enough not to reorder.
9965 # Supported since Solaris 2.6 (maybe 2.5.1?)
9966 if test "$GCC" = yes; then
9967 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9968 else
9969 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9970 fi
9971 ;;
9972 esac
9973 link_all_deplibs=yes
9974 ;;
9975
9976 sunos4*)
9977 if test "x$host_vendor" = xsequent; then
9978 # Use $CC to link under sequent, because it throws in some extra .o
9979 # files that make .init and .fini sections work.
9980 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9981 else
9982 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9983 fi
9984 hardcode_libdir_flag_spec='-L$libdir'
9985 hardcode_direct=yes
9986 hardcode_minus_L=yes
9987 hardcode_shlibpath_var=no
9988 ;;
9989
9990 sysv4)
9991 case $host_vendor in
9992 sni)
9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_direct=yes # is this really true???
9995 ;;
9996 siemens)
9997 ## LD is ld it makes a PLAMLIB
9998 ## CC just makes a GrossModule.
9999 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10000 reload_cmds='$CC -r -o $output$reload_objs'
10001 hardcode_direct=no
10002 ;;
10003 motorola)
10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10006 ;;
10007 esac
10008 runpath_var='LD_RUN_PATH'
10009 hardcode_shlibpath_var=no
10010 ;;
10011
10012 sysv4.3*)
10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014 hardcode_shlibpath_var=no
10015 export_dynamic_flag_spec='-Bexport'
10016 ;;
10017
10018 sysv4*MP*)
10019 if test -d /usr/nec; then
10020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021 hardcode_shlibpath_var=no
10022 runpath_var=LD_RUN_PATH
10023 hardcode_runpath_var=yes
10024 ld_shlibs=yes
10025 fi
10026 ;;
10027
10028 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10029 no_undefined_flag='${wl}-z,text'
10030 archive_cmds_need_lc=no
10031 hardcode_shlibpath_var=no
10032 runpath_var='LD_RUN_PATH'
10033
10034 if test "$GCC" = yes; then
10035 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037 else
10038 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 fi
10041 ;;
10042
10043 sysv5* | sco3.2v5* | sco5v6*)
10044 # Note: We can NOT use -z defs as we might desire, because we do not
10045 # link with -lc, and that would cause any symbols used from libc to
10046 # always be unresolved, which means just about no library would
10047 # ever link correctly. If we're not using GNU ld we use -z text
10048 # though, which does catch some bad symbols but isn't as heavy-handed
10049 # as -z defs.
10050 no_undefined_flag='${wl}-z,text'
10051 allow_undefined_flag='${wl}-z,nodefs'
10052 archive_cmds_need_lc=no
10053 hardcode_shlibpath_var=no
10054 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10055 hardcode_libdir_separator=':'
10056 link_all_deplibs=yes
10057 export_dynamic_flag_spec='${wl}-Bexport'
10058 runpath_var='LD_RUN_PATH'
10059
10060 if test "$GCC" = yes; then
10061 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 else
10064 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10066 fi
10067 ;;
10068
10069 uts4*)
10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_libdir_flag_spec='-L$libdir'
10072 hardcode_shlibpath_var=no
10073 ;;
10074
10075 *)
10076 ld_shlibs=no
10077 ;;
10078 esac
10079
10080 if test x$host_vendor = xsni; then
10081 case $host in
10082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10083 export_dynamic_flag_spec='${wl}-Blargedynsym'
10084 ;;
10085 esac
10086 fi
10087 fi
10088
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10090$as_echo "$ld_shlibs" >&6; }
10091test "$ld_shlibs" = no && can_build_shared=no
10092
10093with_gnu_ld=$with_gnu_ld
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109#
10110# Do we need to explicitly link libc?
10111#
10112case "x$archive_cmds_need_lc" in
10113x|xyes)
10114 # Assume -lc should be added
10115 archive_cmds_need_lc=yes
10116
10117 if test "$enable_shared" = yes && test "$GCC" = yes; then
10118 case $archive_cmds in
10119 *'~'*)
10120 # FIXME: we may have to deal with multi-command sequences.
10121 ;;
10122 '$CC '*)
10123 # Test whether the compiler implicitly links with -lc since on some
10124 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10125 # to ld, don't add -lc before -lgcc.
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10127$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10128if ${lt_cv_archive_cmds_need_lc+:} false; then :
48310492
RH
10129 $as_echo_n "(cached) " >&6
10130else
10131 $RM conftest*
10132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10133
10134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10135 (eval $ac_compile) 2>&5
10136 ac_status=$?
10137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10138 test $ac_status = 0; } 2>conftest.err; then
10139 soname=conftest
10140 lib=conftest
10141 libobjs=conftest.$ac_objext
10142 deplibs=
10143 wl=$lt_prog_compiler_wl
10144 pic_flag=$lt_prog_compiler_pic
10145 compiler_flags=-v
10146 linker_flags=-v
10147 verstring=
10148 output_objdir=.
10149 libname=conftest
10150 lt_save_allow_undefined_flag=$allow_undefined_flag
10151 allow_undefined_flag=
10152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10153 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10154 ac_status=$?
10155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10156 test $ac_status = 0; }
10157 then
10158 lt_cv_archive_cmds_need_lc=no
10159 else
10160 lt_cv_archive_cmds_need_lc=yes
10161 fi
10162 allow_undefined_flag=$lt_save_allow_undefined_flag
10163 else
10164 cat conftest.err 1>&5
10165 fi
10166 $RM conftest*
10167
10168fi
10169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10170$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10171 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10172 ;;
10173 esac
10174 fi
10175 ;;
10176esac
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10335$as_echo_n "checking dynamic linker characteristics... " >&6; }
10336
10337if test "$GCC" = yes; then
10338 case $host_os in
10339 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10340 *) lt_awk_arg="/^libraries:/" ;;
10341 esac
10342 case $host_os in
10343 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10344 *) lt_sed_strip_eq="s,=/,/,g" ;;
10345 esac
10346 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10347 case $lt_search_path_spec in
10348 *\;*)
10349 # if the path contains ";" then we assume it to be the separator
10350 # otherwise default to the standard path separator (i.e. ":") - it is
10351 # assumed that no part of a normal pathname contains ";" but that should
10352 # okay in the real world where ";" in dirpaths is itself problematic.
10353 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10354 ;;
10355 *)
10356 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10357 ;;
10358 esac
10359 # Ok, now we have the path, separated by spaces, we can step through it
10360 # and add multilib dir if necessary.
10361 lt_tmp_lt_search_path_spec=
10362 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10363 for lt_sys_path in $lt_search_path_spec; do
10364 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10366 else
10367 test -d "$lt_sys_path" && \
10368 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10369 fi
10370 done
10371 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10372BEGIN {RS=" "; FS="/|\n";} {
10373 lt_foo="";
10374 lt_count=0;
10375 for (lt_i = NF; lt_i > 0; lt_i--) {
10376 if ($lt_i != "" && $lt_i != ".") {
10377 if ($lt_i == "..") {
10378 lt_count++;
10379 } else {
10380 if (lt_count == 0) {
10381 lt_foo="/" $lt_i lt_foo;
10382 } else {
10383 lt_count--;
10384 }
10385 }
10386 }
10387 }
10388 if (lt_foo != "") { lt_freq[lt_foo]++; }
10389 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10390}'`
10391 # AWK program above erroneously prepends '/' to C:/dos/paths
10392 # for these hosts.
10393 case $host_os in
10394 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10395 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10396 esac
10397 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10398else
10399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10400fi
10401library_names_spec=
10402libname_spec='lib$name'
10403soname_spec=
10404shrext_cmds=".so"
10405postinstall_cmds=
10406postuninstall_cmds=
10407finish_cmds=
10408finish_eval=
10409shlibpath_var=
10410shlibpath_overrides_runpath=unknown
10411version_type=none
10412dynamic_linker="$host_os ld.so"
10413sys_lib_dlsearch_path_spec="/lib /usr/lib"
10414need_lib_prefix=unknown
10415hardcode_into_libs=no
10416
10417# when you set need_version to no, make sure it does not cause -set_version
10418# flags to be left without arguments
10419need_version=unknown
10420
10421case $host_os in
10422aix3*)
10423 version_type=linux
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10425 shlibpath_var=LIBPATH
10426
10427 # AIX 3 has no versioning support, so we append a major version to the name.
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 ;;
10430
10431aix[4-9]*)
10432 version_type=linux
10433 need_lib_prefix=no
10434 need_version=no
10435 hardcode_into_libs=yes
10436 if test "$host_cpu" = ia64; then
10437 # AIX 5 supports IA64
10438 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 else
10441 # With GCC up to 2.95.x, collect2 would create an import file
10442 # for dependence libraries. The import file would start with
10443 # the line `#! .'. This would cause the generated library to
10444 # depend on `.', always an invalid library. This was fixed in
10445 # development snapshots of GCC prior to 3.0.
10446 case $host_os in
10447 aix4 | aix4.[01] | aix4.[01].*)
10448 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10449 echo ' yes '
10450 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10451 :
10452 else
10453 can_build_shared=no
10454 fi
10455 ;;
10456 esac
10457 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10458 # soname into executable. Probably we can add versioning support to
10459 # collect2, so additional links can be useful in future.
10460 if test "$aix_use_runtimelinking" = yes; then
10461 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10462 # instead of lib<name>.a to let people know that these are not
10463 # typical AIX shared libraries.
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 else
10466 # We preserve .a as extension for shared libraries through AIX4.2
10467 # and later when we are not doing run time linking.
10468 library_names_spec='${libname}${release}.a $libname.a'
10469 soname_spec='${libname}${release}${shared_ext}$major'
10470 fi
10471 shlibpath_var=LIBPATH
10472 fi
10473 ;;
10474
10475amigaos*)
10476 case $host_cpu in
10477 powerpc)
10478 # Since July 2007 AmigaOS4 officially supports .so libraries.
10479 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 ;;
10482 m68k)
10483 library_names_spec='$libname.ixlibrary $libname.a'
10484 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10485 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'
10486 ;;
10487 esac
10488 ;;
10489
10490beos*)
10491 library_names_spec='${libname}${shared_ext}'
10492 dynamic_linker="$host_os ld.so"
10493 shlibpath_var=LIBRARY_PATH
10494 ;;
10495
10496bsdi[45]*)
10497 version_type=linux
10498 need_version=no
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10505 # the default ld.so.conf also contains /usr/contrib/lib and
10506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10507 # libtool to hard-code these into programs
10508 ;;
10509
10510cygwin* | mingw* | pw32* | cegcc*)
10511 version_type=windows
10512 shrext_cmds=".dll"
10513 need_version=no
10514 need_lib_prefix=no
10515
10516 case $GCC,$host_os in
10517 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10518 library_names_spec='$libname.dll.a'
10519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10520 postinstall_cmds='base_file=`basename \${file}`~
10521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10522 dldir=$destdir/`dirname \$dlpath`~
10523 test -d \$dldir || mkdir -p \$dldir~
10524 $install_prog $dir/$dlname \$dldir/$dlname~
10525 chmod a+x \$dldir/$dlname~
10526 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10527 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10528 fi'
10529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10530 dlpath=$dir/\$dldll~
10531 $RM \$dlpath'
10532 shlibpath_overrides_runpath=yes
10533
10534 case $host_os in
10535 cygwin*)
10536 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10537 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10538
10539 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10540 ;;
10541 mingw* | cegcc*)
10542 # MinGW DLLs use traditional 'lib' prefix
10543 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10544 ;;
10545 pw32*)
10546 # pw32 DLLs use 'pw' prefix rather than 'lib'
10547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10548 ;;
10549 esac
10550 ;;
10551
10552 *)
10553 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10554 ;;
10555 esac
10556 dynamic_linker='Win32 ld.exe'
10557 # FIXME: first we should search . and the directory the executable is in
10558 shlibpath_var=PATH
10559 ;;
10560
10561darwin* | rhapsody*)
10562 dynamic_linker="$host_os dyld"
10563 version_type=darwin
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10567 soname_spec='${libname}${release}${major}$shared_ext'
10568 shlibpath_overrides_runpath=yes
10569 shlibpath_var=DYLD_LIBRARY_PATH
10570 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10571
10572 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10573 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10574 ;;
10575
10576dgux*)
10577 version_type=linux
10578 need_lib_prefix=no
10579 need_version=no
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 ;;
10584
10585freebsd* | dragonfly*)
10586 # DragonFly does not have aout. When/if they implement a new
10587 # versioning mechanism, adjust this.
10588 if test -x /usr/bin/objformat; then
10589 objformat=`/usr/bin/objformat`
10590 else
10591 case $host_os in
10592 freebsd[23].*) objformat=aout ;;
10593 *) objformat=elf ;;
10594 esac
10595 fi
10596 version_type=freebsd-$objformat
10597 case $version_type in
10598 freebsd-elf*)
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10600 need_version=no
10601 need_lib_prefix=no
10602 ;;
10603 freebsd-*)
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10605 need_version=yes
10606 ;;
10607 esac
10608 shlibpath_var=LD_LIBRARY_PATH
10609 case $host_os in
10610 freebsd2.*)
10611 shlibpath_overrides_runpath=yes
10612 ;;
10613 freebsd3.[01]* | freebsdelf3.[01]*)
10614 shlibpath_overrides_runpath=yes
10615 hardcode_into_libs=yes
10616 ;;
10617 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10618 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10619 shlibpath_overrides_runpath=no
10620 hardcode_into_libs=yes
10621 ;;
10622 *) # from 4.6 on, and DragonFly
10623 shlibpath_overrides_runpath=yes
10624 hardcode_into_libs=yes
10625 ;;
10626 esac
10627 ;;
10628
48310492
RH
10629haiku*)
10630 version_type=linux
10631 need_lib_prefix=no
10632 need_version=no
10633 dynamic_linker="$host_os runtime_loader"
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 shlibpath_var=LIBRARY_PATH
10637 shlibpath_overrides_runpath=yes
ead5103c 10638 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
48310492
RH
10639 hardcode_into_libs=yes
10640 ;;
10641
10642hpux9* | hpux10* | hpux11*)
10643 # Give a soname corresponding to the major version so that dld.sl refuses to
10644 # link against other versions.
10645 version_type=sunos
10646 need_lib_prefix=no
10647 need_version=no
10648 case $host_cpu in
10649 ia64*)
10650 shrext_cmds='.so'
10651 hardcode_into_libs=yes
10652 dynamic_linker="$host_os dld.so"
10653 shlibpath_var=LD_LIBRARY_PATH
10654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 if test "X$HPUX_IA64_MODE" = X32; then
10658 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10659 else
10660 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10661 fi
10662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10663 ;;
10664 hppa*64*)
10665 shrext_cmds='.sl'
10666 hardcode_into_libs=yes
10667 dynamic_linker="$host_os dld.sl"
10668 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10674 ;;
10675 *)
10676 shrext_cmds='.sl'
10677 dynamic_linker="$host_os dld.sl"
10678 shlibpath_var=SHLIB_PATH
10679 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 ;;
10683 esac
10684 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10685 postinstall_cmds='chmod 555 $lib'
10686 # or fails outright, so override atomically:
10687 install_override_mode=555
10688 ;;
10689
10690interix[3-9]*)
10691 version_type=linux
10692 need_lib_prefix=no
10693 need_version=no
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=no
10699 hardcode_into_libs=yes
10700 ;;
10701
10702irix5* | irix6* | nonstopux*)
10703 case $host_os in
10704 nonstopux*) version_type=nonstopux ;;
10705 *)
10706 if test "$lt_cv_prog_gnu_ld" = yes; then
10707 version_type=linux
10708 else
10709 version_type=irix
10710 fi ;;
10711 esac
10712 need_lib_prefix=no
10713 need_version=no
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10716 case $host_os in
10717 irix5* | nonstopux*)
10718 libsuff= shlibsuff=
10719 ;;
10720 *)
10721 case $LD in # libtool.m4 will add one of these switches to LD
10722 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10723 libsuff= shlibsuff= libmagic=32-bit;;
10724 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10725 libsuff=32 shlibsuff=N32 libmagic=N32;;
10726 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10727 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10728 *) libsuff= shlibsuff= libmagic=never-match;;
10729 esac
10730 ;;
10731 esac
10732 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10733 shlibpath_overrides_runpath=no
10734 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10735 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10736 hardcode_into_libs=yes
10737 ;;
10738
10739# No shared lib support for Linux oldld, aout, or coff.
10740linux*oldld* | linux*aout* | linux*coff*)
10741 dynamic_linker=no
10742 ;;
10743
10744# This must be Linux ELF.
b1e21e5a
CL
10745
10746# uclinux* changes (here and below) have been submitted to the libtool
10747# project, but have not yet been accepted: they are GCC-local changes
10748# for the time being. (See
10749# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 10750linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
48310492
RH
10751 version_type=linux
10752 need_lib_prefix=no
10753 need_version=no
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=no
10759
10760 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10761 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
48310492
RH
10762 $as_echo_n "(cached) " >&6
10763else
10764 lt_cv_shlibpath_overrides_runpath=no
10765 save_LDFLAGS=$LDFLAGS
10766 save_libdir=$libdir
10767 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10768 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770/* end confdefs.h. */
10771
10772int
10773main ()
10774{
10775
10776 ;
10777 return 0;
10778}
10779_ACEOF
10780if ac_fn_c_try_link "$LINENO"; then :
10781 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10782 lt_cv_shlibpath_overrides_runpath=yes
10783fi
10784fi
10785rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10787 LDFLAGS=$save_LDFLAGS
10788 libdir=$save_libdir
10789
10790fi
10791
10792 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10793
10794 # This implies no fast_install, which is unacceptable.
10795 # Some rework will be needed to allow for fast_install
10796 # before this can be enabled.
10797 hardcode_into_libs=yes
10798
10799 # Append ld.so.conf contents to the search path
10800 if test -f /etc/ld.so.conf; then
10801 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' ' '`
10802 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10803 fi
10804
10805 # We used to test for /lib/ld.so.1 and disable shared libraries on
10806 # powerpc, because MkLinux only supported shared libraries with the
10807 # GNU dynamic linker. Since this was broken with cross compilers,
10808 # most powerpc-linux boxes support dynamic linking these days and
10809 # people can always --disable-shared, the test was removed, and we
10810 # assume the GNU/Linux dynamic linker is in use.
10811 dynamic_linker='GNU/Linux ld.so'
10812 ;;
10813
10814netbsd*)
10815 version_type=sunos
10816 need_lib_prefix=no
10817 need_version=no
10818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10821 dynamic_linker='NetBSD (a.out) ld.so'
10822 else
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 dynamic_linker='NetBSD ld.elf_so'
10826 fi
10827 shlibpath_var=LD_LIBRARY_PATH
10828 shlibpath_overrides_runpath=yes
10829 hardcode_into_libs=yes
10830 ;;
10831
10832newsos6)
10833 version_type=linux
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 shlibpath_overrides_runpath=yes
10837 ;;
10838
10839*nto* | *qnx*)
10840 version_type=qnx
10841 need_lib_prefix=no
10842 need_version=no
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10848 dynamic_linker='ldqnx.so'
10849 ;;
10850
10851openbsd*)
10852 version_type=sunos
10853 sys_lib_dlsearch_path_spec="/usr/lib"
10854 need_lib_prefix=no
10855 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10856 case $host_os in
10857 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10858 *) need_version=no ;;
10859 esac
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10864 case $host_os in
10865 openbsd2.[89] | openbsd2.[89].*)
10866 shlibpath_overrides_runpath=no
10867 ;;
10868 *)
10869 shlibpath_overrides_runpath=yes
10870 ;;
10871 esac
10872 else
10873 shlibpath_overrides_runpath=yes
10874 fi
10875 ;;
10876
10877os2*)
10878 libname_spec='$name'
10879 shrext_cmds=".dll"
10880 need_lib_prefix=no
10881 library_names_spec='$libname${shared_ext} $libname.a'
10882 dynamic_linker='OS/2 ld.exe'
10883 shlibpath_var=LIBPATH
10884 ;;
10885
10886osf3* | osf4* | osf5*)
10887 version_type=osf
10888 need_lib_prefix=no
10889 need_version=no
10890 soname_spec='${libname}${release}${shared_ext}$major'
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10895 ;;
10896
10897rdos*)
10898 dynamic_linker=no
10899 ;;
10900
10901solaris*)
10902 version_type=linux
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=yes
10909 hardcode_into_libs=yes
10910 # ldd complains unless libraries are executable
10911 postinstall_cmds='chmod +x $lib'
10912 ;;
10913
10914sunos4*)
10915 version_type=sunos
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10917 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=yes
10920 if test "$with_gnu_ld" = yes; then
10921 need_lib_prefix=no
10922 fi
10923 need_version=yes
10924 ;;
10925
10926sysv4 | sysv4.3*)
10927 version_type=linux
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 case $host_vendor in
10932 sni)
10933 shlibpath_overrides_runpath=no
10934 need_lib_prefix=no
10935 runpath_var=LD_RUN_PATH
10936 ;;
10937 siemens)
10938 need_lib_prefix=no
10939 ;;
10940 motorola)
10941 need_lib_prefix=no
10942 need_version=no
10943 shlibpath_overrides_runpath=no
10944 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10945 ;;
10946 esac
10947 ;;
10948
10949sysv4*MP*)
10950 if test -d /usr/nec ;then
10951 version_type=linux
10952 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10953 soname_spec='$libname${shared_ext}.$major'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 fi
10956 ;;
10957
10958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10959 version_type=freebsd-elf
10960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10966 hardcode_into_libs=yes
10967 if test "$with_gnu_ld" = yes; then
10968 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10969 else
10970 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10971 case $host_os in
10972 sco3.2v5*)
10973 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10974 ;;
10975 esac
10976 fi
10977 sys_lib_dlsearch_path_spec='/usr/lib'
10978 ;;
10979
10980tpf*)
10981 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10982 version_type=linux
10983 need_lib_prefix=no
10984 need_version=no
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=no
10988 hardcode_into_libs=yes
10989 ;;
10990
10991uts4*)
10992 version_type=linux
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 shlibpath_var=LD_LIBRARY_PATH
10996 ;;
10997
0ecd0f1c
OH
10998# Shared libraries for VwWorks, >= 7 only at this stage
10999# and (fpic) still incompatible with "large" code models
11000# in a few configurations. Only for RTP mode in any case,
11001# and upon explicit request at configure time.
11002vxworks7*)
11003 dynamic_linker=no
11004 case ${with_multisubdir}-${enable_shared} in
11005 *large*)
11006 ;;
11007 *mrtp*-yes)
11008 version_type=linux
11009 need_lib_prefix=no
11010 need_version=no
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 dynamic_linker="$host_os module_loader"
11014 ;;
11015 esac
11016 ;;
48310492
RH
11017*)
11018 dynamic_linker=no
11019 ;;
11020esac
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11022$as_echo "$dynamic_linker" >&6; }
11023test "$dynamic_linker" = no && can_build_shared=no
11024
11025variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11026if test "$GCC" = yes; then
11027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11028fi
11029
11030if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11031 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11032fi
11033if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11034 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11035fi
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11129$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11130hardcode_action=
11131if test -n "$hardcode_libdir_flag_spec" ||
11132 test -n "$runpath_var" ||
11133 test "X$hardcode_automatic" = "Xyes" ; then
11134
11135 # We can hardcode non-existent directories.
11136 if test "$hardcode_direct" != no &&
11137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11138 # have to relink, otherwise we might link with an installed library
11139 # when we should be linking with a yet-to-be-installed one
11140 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11141 test "$hardcode_minus_L" != no; then
11142 # Linking always hardcodes the temporary library directory.
11143 hardcode_action=relink
11144 else
11145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11146 hardcode_action=immediate
11147 fi
11148else
11149 # We cannot hardcode anything, or else we can only hardcode existing
11150 # directories.
11151 hardcode_action=unsupported
11152fi
11153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11154$as_echo "$hardcode_action" >&6; }
11155
11156if test "$hardcode_action" = relink ||
11157 test "$inherit_rpath" = yes; then
11158 # Fast installation is not supported
11159 enable_fast_install=no
11160elif test "$shlibpath_overrides_runpath" = yes ||
11161 test "$enable_shared" = no; then
11162 # Fast installation is not necessary
11163 enable_fast_install=needless
11164fi
11165
11166
11167
11168
11169
11170
11171 if test "x$enable_dlopen" != xyes; then
11172 enable_dlopen=unknown
11173 enable_dlopen_self=unknown
11174 enable_dlopen_self_static=unknown
11175else
11176 lt_cv_dlopen=no
11177 lt_cv_dlopen_libs=
11178
11179 case $host_os in
11180 beos*)
11181 lt_cv_dlopen="load_add_on"
11182 lt_cv_dlopen_libs=
11183 lt_cv_dlopen_self=yes
11184 ;;
11185
11186 mingw* | pw32* | cegcc*)
11187 lt_cv_dlopen="LoadLibrary"
11188 lt_cv_dlopen_libs=
11189 ;;
11190
11191 cygwin*)
11192 lt_cv_dlopen="dlopen"
11193 lt_cv_dlopen_libs=
11194 ;;
11195
11196 darwin*)
11197 # if libdl is installed we need to link against it
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11199$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11200if ${ac_cv_lib_dl_dlopen+:} false; then :
48310492
RH
11201 $as_echo_n "(cached) " >&6
11202else
11203 ac_check_lib_save_LIBS=$LIBS
11204LIBS="-ldl $LIBS"
11205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206/* end confdefs.h. */
11207
11208/* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11211#ifdef __cplusplus
11212extern "C"
11213#endif
11214char dlopen ();
11215int
11216main ()
11217{
11218return dlopen ();
11219 ;
11220 return 0;
11221}
11222_ACEOF
11223if ac_fn_c_try_link "$LINENO"; then :
11224 ac_cv_lib_dl_dlopen=yes
11225else
11226 ac_cv_lib_dl_dlopen=no
11227fi
11228rm -f core conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
11230LIBS=$ac_check_lib_save_LIBS
11231fi
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11233$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11234if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
48310492
RH
11235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11236else
11237
11238 lt_cv_dlopen="dyld"
11239 lt_cv_dlopen_libs=
11240 lt_cv_dlopen_self=yes
11241
11242fi
11243
11244 ;;
11245
11246 *)
11247 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11248if test "x$ac_cv_func_shl_load" = xyes; then :
48310492
RH
11249 lt_cv_dlopen="shl_load"
11250else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11252$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11253if ${ac_cv_lib_dld_shl_load+:} false; then :
48310492
RH
11254 $as_echo_n "(cached) " >&6
11255else
11256 ac_check_lib_save_LIBS=$LIBS
11257LIBS="-ldld $LIBS"
11258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259/* end confdefs.h. */
11260
11261/* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
11264#ifdef __cplusplus
11265extern "C"
11266#endif
11267char shl_load ();
11268int
11269main ()
11270{
11271return shl_load ();
11272 ;
11273 return 0;
11274}
11275_ACEOF
11276if ac_fn_c_try_link "$LINENO"; then :
11277 ac_cv_lib_dld_shl_load=yes
11278else
11279 ac_cv_lib_dld_shl_load=no
11280fi
11281rm -f core conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext conftest.$ac_ext
11283LIBS=$ac_check_lib_save_LIBS
11284fi
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11286$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11287if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
48310492
RH
11288 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11289else
11290 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11291if test "x$ac_cv_func_dlopen" = xyes; then :
48310492
RH
11292 lt_cv_dlopen="dlopen"
11293else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11295$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11296if ${ac_cv_lib_dl_dlopen+:} false; then :
48310492
RH
11297 $as_echo_n "(cached) " >&6
11298else
11299 ac_check_lib_save_LIBS=$LIBS
11300LIBS="-ldl $LIBS"
11301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302/* end confdefs.h. */
11303
11304/* Override any GCC internal prototype to avoid an error.
11305 Use char because int might match the return type of a GCC
11306 builtin and then its argument prototype would still apply. */
11307#ifdef __cplusplus
11308extern "C"
11309#endif
11310char dlopen ();
11311int
11312main ()
11313{
11314return dlopen ();
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319if ac_fn_c_try_link "$LINENO"; then :
11320 ac_cv_lib_dl_dlopen=yes
11321else
11322 ac_cv_lib_dl_dlopen=no
11323fi
11324rm -f core conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326LIBS=$ac_check_lib_save_LIBS
11327fi
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11329$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11330if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
48310492
RH
11331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11332else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11334$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11335if ${ac_cv_lib_svld_dlopen+:} false; then :
48310492
RH
11336 $as_echo_n "(cached) " >&6
11337else
11338 ac_check_lib_save_LIBS=$LIBS
11339LIBS="-lsvld $LIBS"
11340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341/* end confdefs.h. */
11342
11343/* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11346#ifdef __cplusplus
11347extern "C"
11348#endif
11349char dlopen ();
11350int
11351main ()
11352{
11353return dlopen ();
11354 ;
11355 return 0;
11356}
11357_ACEOF
11358if ac_fn_c_try_link "$LINENO"; then :
11359 ac_cv_lib_svld_dlopen=yes
11360else
11361 ac_cv_lib_svld_dlopen=no
11362fi
11363rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365LIBS=$ac_check_lib_save_LIBS
11366fi
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11368$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11369if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
48310492
RH
11370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11371else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11373$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11374if ${ac_cv_lib_dld_dld_link+:} false; then :
48310492
RH
11375 $as_echo_n "(cached) " >&6
11376else
11377 ac_check_lib_save_LIBS=$LIBS
11378LIBS="-ldld $LIBS"
11379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380/* end confdefs.h. */
11381
11382/* Override any GCC internal prototype to avoid an error.
11383 Use char because int might match the return type of a GCC
11384 builtin and then its argument prototype would still apply. */
11385#ifdef __cplusplus
11386extern "C"
11387#endif
11388char dld_link ();
11389int
11390main ()
11391{
11392return dld_link ();
11393 ;
11394 return 0;
11395}
11396_ACEOF
11397if ac_fn_c_try_link "$LINENO"; then :
11398 ac_cv_lib_dld_dld_link=yes
11399else
11400 ac_cv_lib_dld_dld_link=no
11401fi
11402rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404LIBS=$ac_check_lib_save_LIBS
11405fi
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11407$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11408if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
48310492
RH
11409 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11410fi
11411
11412
11413fi
11414
11415
11416fi
11417
11418
11419fi
11420
11421
11422fi
11423
11424
11425fi
11426
11427 ;;
11428 esac
11429
11430 if test "x$lt_cv_dlopen" != xno; then
11431 enable_dlopen=yes
11432 else
11433 enable_dlopen=no
11434 fi
11435
11436 case $lt_cv_dlopen in
11437 dlopen)
11438 save_CPPFLAGS="$CPPFLAGS"
11439 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11440
11441 save_LDFLAGS="$LDFLAGS"
11442 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11443
11444 save_LIBS="$LIBS"
11445 LIBS="$lt_cv_dlopen_libs $LIBS"
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11448$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11449if ${lt_cv_dlopen_self+:} false; then :
48310492
RH
11450 $as_echo_n "(cached) " >&6
11451else
11452 if test "$cross_compiling" = yes; then :
11453 lt_cv_dlopen_self=cross
11454else
11455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11456 lt_status=$lt_dlunknown
11457 cat > conftest.$ac_ext <<_LT_EOF
6a6d3817 11458#line 11458 "configure"
48310492
RH
11459#include "confdefs.h"
11460
11461#if HAVE_DLFCN_H
11462#include <dlfcn.h>
11463#endif
11464
11465#include <stdio.h>
11466
11467#ifdef RTLD_GLOBAL
11468# define LT_DLGLOBAL RTLD_GLOBAL
11469#else
11470# ifdef DL_GLOBAL
11471# define LT_DLGLOBAL DL_GLOBAL
11472# else
11473# define LT_DLGLOBAL 0
11474# endif
11475#endif
11476
11477/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11478 find out it does not work in some platform. */
11479#ifndef LT_DLLAZY_OR_NOW
11480# ifdef RTLD_LAZY
11481# define LT_DLLAZY_OR_NOW RTLD_LAZY
11482# else
11483# ifdef DL_LAZY
11484# define LT_DLLAZY_OR_NOW DL_LAZY
11485# else
11486# ifdef RTLD_NOW
11487# define LT_DLLAZY_OR_NOW RTLD_NOW
11488# else
11489# ifdef DL_NOW
11490# define LT_DLLAZY_OR_NOW DL_NOW
11491# else
11492# define LT_DLLAZY_OR_NOW 0
11493# endif
11494# endif
11495# endif
11496# endif
11497#endif
11498
11499/* When -fvisbility=hidden is used, assume the code has been annotated
11500 correspondingly for the symbols needed. */
11501#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11502void fnord () __attribute__((visibility("default")));
11503#endif
11504
11505void fnord () { int i=42; }
11506int main ()
11507{
11508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11509 int status = $lt_dlunknown;
11510
11511 if (self)
11512 {
11513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11514 else
11515 {
11516 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11517 else puts (dlerror ());
11518 }
11519 /* dlclose (self); */
11520 }
11521 else
11522 puts (dlerror ());
11523
11524 return status;
11525}
11526_LT_EOF
11527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11528 (eval $ac_link) 2>&5
11529 ac_status=$?
11530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11531 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11532 (./conftest; exit; ) >&5 2>/dev/null
11533 lt_status=$?
11534 case x$lt_status in
11535 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11536 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11537 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11538 esac
11539 else :
11540 # compilation failed
11541 lt_cv_dlopen_self=no
11542 fi
11543fi
11544rm -fr conftest*
11545
11546
11547fi
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11549$as_echo "$lt_cv_dlopen_self" >&6; }
11550
11551 if test "x$lt_cv_dlopen_self" = xyes; then
11552 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11554$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11555if ${lt_cv_dlopen_self_static+:} false; then :
48310492
RH
11556 $as_echo_n "(cached) " >&6
11557else
11558 if test "$cross_compiling" = yes; then :
11559 lt_cv_dlopen_self_static=cross
11560else
11561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11562 lt_status=$lt_dlunknown
11563 cat > conftest.$ac_ext <<_LT_EOF
6a6d3817 11564#line 11564 "configure"
48310492
RH
11565#include "confdefs.h"
11566
11567#if HAVE_DLFCN_H
11568#include <dlfcn.h>
11569#endif
11570
11571#include <stdio.h>
11572
11573#ifdef RTLD_GLOBAL
11574# define LT_DLGLOBAL RTLD_GLOBAL
11575#else
11576# ifdef DL_GLOBAL
11577# define LT_DLGLOBAL DL_GLOBAL
11578# else
11579# define LT_DLGLOBAL 0
11580# endif
11581#endif
11582
11583/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11584 find out it does not work in some platform. */
11585#ifndef LT_DLLAZY_OR_NOW
11586# ifdef RTLD_LAZY
11587# define LT_DLLAZY_OR_NOW RTLD_LAZY
11588# else
11589# ifdef DL_LAZY
11590# define LT_DLLAZY_OR_NOW DL_LAZY
11591# else
11592# ifdef RTLD_NOW
11593# define LT_DLLAZY_OR_NOW RTLD_NOW
11594# else
11595# ifdef DL_NOW
11596# define LT_DLLAZY_OR_NOW DL_NOW
11597# else
11598# define LT_DLLAZY_OR_NOW 0
11599# endif
11600# endif
11601# endif
11602# endif
11603#endif
11604
11605/* When -fvisbility=hidden is used, assume the code has been annotated
11606 correspondingly for the symbols needed. */
11607#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11608void fnord () __attribute__((visibility("default")));
11609#endif
11610
11611void fnord () { int i=42; }
11612int main ()
11613{
11614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11615 int status = $lt_dlunknown;
11616
11617 if (self)
11618 {
11619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11620 else
11621 {
11622 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11623 else puts (dlerror ());
11624 }
11625 /* dlclose (self); */
11626 }
11627 else
11628 puts (dlerror ());
11629
11630 return status;
11631}
11632_LT_EOF
11633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11634 (eval $ac_link) 2>&5
11635 ac_status=$?
11636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11637 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11638 (./conftest; exit; ) >&5 2>/dev/null
11639 lt_status=$?
11640 case x$lt_status in
11641 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11642 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11643 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11644 esac
11645 else :
11646 # compilation failed
11647 lt_cv_dlopen_self_static=no
11648 fi
11649fi
11650rm -fr conftest*
11651
11652
11653fi
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11655$as_echo "$lt_cv_dlopen_self_static" >&6; }
11656 fi
11657
11658 CPPFLAGS="$save_CPPFLAGS"
11659 LDFLAGS="$save_LDFLAGS"
11660 LIBS="$save_LIBS"
11661 ;;
11662 esac
11663
11664 case $lt_cv_dlopen_self in
11665 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11666 *) enable_dlopen_self=unknown ;;
11667 esac
11668
11669 case $lt_cv_dlopen_self_static in
11670 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11671 *) enable_dlopen_self_static=unknown ;;
11672 esac
11673fi
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691striplib=
11692old_striplib=
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11694$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11695if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11696 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11697 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11699$as_echo "yes" >&6; }
11700else
11701# FIXME - insert some real tests, host_os isn't really good enough
11702 case $host_os in
11703 darwin*)
11704 if test -n "$STRIP" ; then
11705 striplib="$STRIP -x"
11706 old_striplib="$STRIP -S"
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11708$as_echo "yes" >&6; }
11709 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711$as_echo "no" >&6; }
11712 fi
11713 ;;
11714 *)
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716$as_echo "no" >&6; }
11717 ;;
11718 esac
11719fi
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732 # Report which library types will actually be built
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11734$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11736$as_echo "$can_build_shared" >&6; }
11737
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11739$as_echo_n "checking whether to build shared libraries... " >&6; }
11740 test "$can_build_shared" = "no" && enable_shared=no
11741
11742 # On AIX, shared libraries and static libraries use the same namespace, and
11743 # are all built from PIC.
11744 case $host_os in
11745 aix3*)
11746 test "$enable_shared" = yes && enable_static=no
11747 if test -n "$RANLIB"; then
11748 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11749 postinstall_cmds='$RANLIB $lib'
11750 fi
11751 ;;
11752
11753 aix[4-9]*)
11754 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11755 test "$enable_shared" = yes && enable_static=no
11756 fi
11757 ;;
11758 esac
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11760$as_echo "$enable_shared" >&6; }
11761
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11763$as_echo_n "checking whether to build static libraries... " >&6; }
11764 # Make sure either enable_shared or enable_static is yes.
11765 test "$enable_shared" = yes || enable_static=yes
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11767$as_echo "$enable_static" >&6; }
11768
11769
11770
11771
11772fi
11773ac_ext=c
11774ac_cpp='$CPP $CPPFLAGS'
11775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11777ac_compiler_gnu=$ac_cv_c_compiler_gnu
11778
11779CC="$lt_save_CC"
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793 ac_config_commands="$ac_config_commands libtool"
11794
11795
11796
11797
11798# Only expand once:
11799
11800
11801
11802
11803
dc3368d0
KT
11804case $host in
11805 *-cygwin* | *-mingw*)
11806 # 'host' will be top-level target in the case of a target lib,
11807 # we must compare to with_cross_host to decide if this is a native
11808 # or cross-compiler and select where to install dlls appropriately.
11809 if test -n "$with_cross_host" &&
11810 test x"$with_cross_host" != x"no"; then
11811 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11812 else
11813 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11814 fi
11815 ;;
11816 *)
11817 lt_host_flags=
11818 ;;
11819esac
11820
11821
11822
11823
11824
11825
fa3cd3c3
RH
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11827$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11828 # Check whether --enable-maintainer-mode was given.
11829if test "${enable_maintainer_mode+set}" = set; then :
11830 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11831else
11832 USE_MAINTAINER_MODE=no
11833fi
11834
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11836$as_echo "$USE_MAINTAINER_MODE" >&6; }
11837 if test $USE_MAINTAINER_MODE = yes; then
11838 MAINTAINER_MODE_TRUE=
11839 MAINTAINER_MODE_FALSE='#'
11840else
11841 MAINTAINER_MODE_TRUE='#'
11842 MAINTAINER_MODE_FALSE=
11843fi
11844
11845 MAINT=$MAINTAINER_MODE_TRUE
11846
11847
11848
6a6d3817
IS
11849 if test x$enable_darwin_at_rpath = xyes; then
11850 ENABLE_DARWIN_AT_RPATH_TRUE=
11851 ENABLE_DARWIN_AT_RPATH_FALSE='#'
11852else
11853 ENABLE_DARWIN_AT_RPATH_TRUE='#'
11854 ENABLE_DARWIN_AT_RPATH_FALSE=
11855fi
11856
11857
48310492 11858# For libtool versioning info, format is CURRENT:REVISION:AGE
c29c36ad 11859libtool_VERSION=3:0:2
48310492
RH
11860
11861
dc3368d0
KT
11862# Check for used threading-model
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
11864$as_echo_n "checking for thread model used by GCC... " >&6; }
11865target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
11867$as_echo "$target_thread_file" >&6; }
11868
9d0e85af
SE
11869case "$target" in
11870 *aarch64*)
11871 ac_ext=c
11872ac_cpp='$CPP $CPPFLAGS'
11873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875ac_compiler_gnu=$ac_cv_c_compiler_gnu
11876
11877enable_aarch64_lse=
11878save_CFLAGS="$CFLAGS"
11879for real_option in -march=armv8-a+lse; do
11880 # Do the check with the no- prefix removed since gcc silently
11881 # accepts any -Wno-* option on purpose
11882 case $real_option in
11883 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11884 *) option=$real_option ;;
11885 esac
11886 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11887
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11889$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 11890if eval \${$as_acx_Woption+:} false; then :
9d0e85af
SE
11891 $as_echo_n "(cached) " >&6
11892else
11893 CFLAGS="$option"
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895/* end confdefs.h. */
11896
11897int
11898main ()
11899{
11900
11901 ;
11902 return 0;
11903}
11904_ACEOF
11905if ac_fn_c_try_compile "$LINENO"; then :
11906 eval "$as_acx_Woption=yes"
11907else
11908 eval "$as_acx_Woption=no"
11909fi
11910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911
11912fi
11913eval ac_res=\$$as_acx_Woption
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11915$as_echo "$ac_res" >&6; }
11916 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11917 enable_aarch64_lse="$enable_aarch64_lse${enable_aarch64_lse:+ }$real_option"
11918fi
11919 done
11920CFLAGS="$save_CFLAGS"
11921ac_ext=c
11922ac_cpp='$CPP $CPPFLAGS'
11923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11925ac_compiler_gnu=$ac_cv_c_compiler_gnu
11926
11927
11928 ;;
11929esac
11930
48310492
RH
11931# Get target configury.
11932. ${srcdir}/configure.tgt
11933if test -n "$UNSUPPORTED"; then
22e05272 11934 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
48310492
RH
11935fi
11936
141abc6f
SE
11937# Write out the ifunc resolver arg type.
11938
11939cat >>confdefs.h <<_ACEOF
11940#define IFUNC_RESOLVER_ARGS $IFUNC_RESOLVER_ARGS
11941_ACEOF
11942
11943
48310492
RH
11944# Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11945# make silly decisions about what the cpu can do.
11946CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11947
11948# Check header files.
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11950$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 11951if ${ac_cv_header_stdc+:} false; then :
48310492
RH
11952 $as_echo_n "(cached) " >&6
11953else
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955/* end confdefs.h. */
11956#include <stdlib.h>
11957#include <stdarg.h>
11958#include <string.h>
11959#include <float.h>
11960
11961int
11962main ()
11963{
11964
11965 ;
11966 return 0;
11967}
11968_ACEOF
11969if ac_fn_c_try_compile "$LINENO"; then :
11970 ac_cv_header_stdc=yes
11971else
11972 ac_cv_header_stdc=no
11973fi
11974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11975
11976if test $ac_cv_header_stdc = yes; then
11977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h. */
11980#include <string.h>
11981
11982_ACEOF
11983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11984 $EGREP "memchr" >/dev/null 2>&1; then :
11985
11986else
11987 ac_cv_header_stdc=no
11988fi
11989rm -f conftest*
11990
11991fi
11992
11993if test $ac_cv_header_stdc = yes; then
11994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996/* end confdefs.h. */
11997#include <stdlib.h>
11998
11999_ACEOF
12000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12001 $EGREP "free" >/dev/null 2>&1; then :
12002
12003else
12004 ac_cv_header_stdc=no
12005fi
12006rm -f conftest*
12007
12008fi
12009
12010if test $ac_cv_header_stdc = yes; then
12011 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12012 if test "$cross_compiling" = yes; then :
12013 :
12014else
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016/* end confdefs.h. */
12017#include <ctype.h>
12018#include <stdlib.h>
12019#if ((' ' & 0x0FF) == 0x020)
12020# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12021# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12022#else
12023# define ISLOWER(c) \
12024 (('a' <= (c) && (c) <= 'i') \
12025 || ('j' <= (c) && (c) <= 'r') \
12026 || ('s' <= (c) && (c) <= 'z'))
12027# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12028#endif
12029
12030#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12031int
12032main ()
12033{
12034 int i;
12035 for (i = 0; i < 256; i++)
12036 if (XOR (islower (i), ISLOWER (i))
12037 || toupper (i) != TOUPPER (i))
12038 return 2;
12039 return 0;
12040}
12041_ACEOF
12042if ac_fn_c_try_run "$LINENO"; then :
12043
12044else
12045 ac_cv_header_stdc=no
12046fi
12047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12048 conftest.$ac_objext conftest.beam conftest.$ac_ext
12049fi
12050
12051fi
12052fi
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12054$as_echo "$ac_cv_header_stdc" >&6; }
12055if test $ac_cv_header_stdc = yes; then
12056
12057$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12058
12059fi
12060
12061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
12062$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
22e05272 12063if ${gcc_cv_header_string+:} false; then :
48310492
RH
12064 $as_echo_n "(cached) " >&6
12065else
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067/* end confdefs.h. */
12068#include <string.h>
12069#include <strings.h>
12070int
12071main ()
12072{
12073
12074 ;
12075 return 0;
12076}
12077_ACEOF
12078if ac_fn_c_try_compile "$LINENO"; then :
12079 gcc_cv_header_string=yes
12080else
12081 gcc_cv_header_string=no
12082fi
12083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084fi
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
12086$as_echo "$gcc_cv_header_string" >&6; }
12087if test $gcc_cv_header_string = yes; then
12088
12089$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
12090
12091fi
12092
12093
12094
12095inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12096
12097acx_cv_header_stdint=stddef.h
12098acx_cv_header_stdint_kind="(already complete)"
12099for i in stdint.h $inttype_headers; do
12100 unset ac_cv_type_uintptr_t
12101 unset ac_cv_type_uintmax_t
12102 unset ac_cv_type_int_least32_t
12103 unset ac_cv_type_int_fast32_t
12104 unset ac_cv_type_uint64_t
12105 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12106 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12107#include <$i>
12108"
22e05272 12109if test "x$ac_cv_type_uintmax_t" = xyes; then :
48310492
RH
12110 acx_cv_header_stdint=$i
12111else
12112 continue
12113fi
12114
12115 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12116#include <$i>
12117"
22e05272 12118if test "x$ac_cv_type_uintptr_t" = xyes; then :
48310492
RH
12119
12120else
12121 acx_cv_header_stdint_kind="(mostly complete)"
12122fi
12123
12124 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12125#include <$i>
12126"
22e05272 12127if test "x$ac_cv_type_int_least32_t" = xyes; then :
48310492
RH
12128
12129else
12130 acx_cv_header_stdint_kind="(mostly complete)"
12131fi
12132
12133 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12134#include <$i>
12135"
22e05272 12136if test "x$ac_cv_type_int_fast32_t" = xyes; then :
48310492
RH
12137
12138else
12139 acx_cv_header_stdint_kind="(mostly complete)"
12140fi
12141
12142 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12143#include <$i>
12144"
22e05272 12145if test "x$ac_cv_type_uint64_t" = xyes; then :
48310492
RH
12146
12147else
12148 acx_cv_header_stdint_kind="(lacks uint64_t)"
12149fi
12150
12151 break
12152done
12153if test "$acx_cv_header_stdint" = stddef.h; then
12154 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12155 for i in stdint.h $inttype_headers; do
12156 unset ac_cv_type_uintptr_t
12157 unset ac_cv_type_uint32_t
12158 unset ac_cv_type_uint64_t
12159 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12160 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12161#include <$i>
12162"
22e05272 12163if test "x$ac_cv_type_uint32_t" = xyes; then :
48310492
RH
12164 acx_cv_header_stdint=$i
12165else
12166 continue
12167fi
12168
12169 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12170#include <$i>
12171"
22e05272 12172if test "x$ac_cv_type_uint64_t" = xyes; then :
48310492
RH
12173
12174fi
12175
12176 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12177#include <$i>
12178"
22e05272 12179if test "x$ac_cv_type_uintptr_t" = xyes; then :
48310492
RH
12180
12181fi
12182
12183 break
12184 done
12185fi
12186if test "$acx_cv_header_stdint" = stddef.h; then
12187 acx_cv_header_stdint_kind="(u_intXX_t style)"
12188 for i in sys/types.h $inttype_headers; do
12189 unset ac_cv_type_u_int32_t
12190 unset ac_cv_type_u_int64_t
12191 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12192 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12193#include <$i>
12194"
22e05272 12195if test "x$ac_cv_type_u_int32_t" = xyes; then :
48310492
RH
12196 acx_cv_header_stdint=$i
12197else
12198 continue
12199fi
12200
12201 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12202#include <$i>
12203"
22e05272 12204if test "x$ac_cv_type_u_int64_t" = xyes; then :
48310492
RH
12205
12206fi
12207
12208 break
12209 done
12210fi
12211if test "$acx_cv_header_stdint" = stddef.h; then
12212 acx_cv_header_stdint_kind="(using manual detection)"
12213fi
12214
12215test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12216test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12217test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12218test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12219test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12220
12221# ----------------- Summarize what we found so far
12222
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12224$as_echo_n "checking what to include in gstdint.h... " >&6; }
12225
12226case `$as_basename -- gstdint.h ||
12227$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12228 Xgstdint.h : 'X\(//\)$' \| \
12229 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12230$as_echo X/gstdint.h |
12231 sed '/^.*\/\([^/][^/]*\)\/*$/{
12232 s//\1/
12233 q
12234 }
12235 /^X\/\(\/\/\)$/{
12236 s//\1/
12237 q
12238 }
12239 /^X\/\(\/\).*/{
12240 s//\1/
12241 q
12242 }
12243 s/.*/./; q'` in
12244 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12245$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12246 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12247$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12248 *) ;;
12249esac
12250
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12252$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12253
12254# ----------------- done included file, check C basic types --------
12255
12256# Lacking an uintptr_t? Test size of void *
12257case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12258 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12259# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12260# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12261# This bug is HP SR number 8606223364.
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12263$as_echo_n "checking size of void *... " >&6; }
22e05272 12264if ${ac_cv_sizeof_void_p+:} false; then :
48310492
RH
12265 $as_echo_n "(cached) " >&6
12266else
12267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12268
12269else
12270 if test "$ac_cv_type_void_p" = yes; then
12271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12273as_fn_error 77 "cannot compute sizeof (void *)
12274See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12275 else
12276 ac_cv_sizeof_void_p=0
12277 fi
12278fi
12279
12280fi
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12282$as_echo "$ac_cv_sizeof_void_p" >&6; }
12283
12284
12285
12286cat >>confdefs.h <<_ACEOF
12287#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12288_ACEOF
12289
12290 ;;
12291esac
12292
12293# Lacking an uint64_t? Test size of long
12294case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12295 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12296# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12297# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12298# This bug is HP SR number 8606223364.
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12300$as_echo_n "checking size of long... " >&6; }
22e05272 12301if ${ac_cv_sizeof_long+:} false; then :
48310492
RH
12302 $as_echo_n "(cached) " >&6
12303else
12304 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12305
12306else
12307 if test "$ac_cv_type_long" = yes; then
12308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12310as_fn_error 77 "cannot compute sizeof (long)
12311See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12312 else
12313 ac_cv_sizeof_long=0
12314 fi
12315fi
12316
12317fi
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12319$as_echo "$ac_cv_sizeof_long" >&6; }
12320
12321
12322
12323cat >>confdefs.h <<_ACEOF
12324#define SIZEOF_LONG $ac_cv_sizeof_long
12325_ACEOF
12326
12327 ;;
12328esac
12329
12330if test $acx_cv_header_stdint = stddef.h; then
12331 # Lacking a good header? Test size of everything and deduce all types.
12332 # The cast to long int works around a bug in the HP C Compiler
12333# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12334# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12335# This bug is HP SR number 8606223364.
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12337$as_echo_n "checking size of int... " >&6; }
22e05272 12338if ${ac_cv_sizeof_int+:} false; then :
48310492
RH
12339 $as_echo_n "(cached) " >&6
12340else
12341 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12342
12343else
12344 if test "$ac_cv_type_int" = yes; then
12345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12347as_fn_error 77 "cannot compute sizeof (int)
12348See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12349 else
12350 ac_cv_sizeof_int=0
12351 fi
12352fi
12353
12354fi
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12356$as_echo "$ac_cv_sizeof_int" >&6; }
12357
12358
12359
12360cat >>confdefs.h <<_ACEOF
12361#define SIZEOF_INT $ac_cv_sizeof_int
12362_ACEOF
12363
12364
12365 # The cast to long int works around a bug in the HP C Compiler
12366# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12367# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12368# This bug is HP SR number 8606223364.
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12370$as_echo_n "checking size of short... " >&6; }
22e05272 12371if ${ac_cv_sizeof_short+:} false; then :
48310492
RH
12372 $as_echo_n "(cached) " >&6
12373else
12374 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12375
12376else
12377 if test "$ac_cv_type_short" = yes; then
12378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12380as_fn_error 77 "cannot compute sizeof (short)
12381See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12382 else
12383 ac_cv_sizeof_short=0
12384 fi
12385fi
12386
12387fi
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12389$as_echo "$ac_cv_sizeof_short" >&6; }
12390
12391
12392
12393cat >>confdefs.h <<_ACEOF
12394#define SIZEOF_SHORT $ac_cv_sizeof_short
12395_ACEOF
12396
12397
12398 # The cast to long int works around a bug in the HP C Compiler
12399# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12400# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12401# This bug is HP SR number 8606223364.
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12403$as_echo_n "checking size of char... " >&6; }
22e05272 12404if ${ac_cv_sizeof_char+:} false; then :
48310492
RH
12405 $as_echo_n "(cached) " >&6
12406else
12407 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12408
12409else
12410 if test "$ac_cv_type_char" = yes; then
12411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12413as_fn_error 77 "cannot compute sizeof (char)
12414See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12415 else
12416 ac_cv_sizeof_char=0
12417 fi
12418fi
12419
12420fi
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12422$as_echo "$ac_cv_sizeof_char" >&6; }
12423
12424
12425
12426cat >>confdefs.h <<_ACEOF
12427#define SIZEOF_CHAR $ac_cv_sizeof_char
12428_ACEOF
12429
12430
12431
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12433$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12434 case "$ac_cv_sizeof_char" in
12435 1) acx_cv_type_int8_t=char ;;
22e05272 12436 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
48310492
RH
12437 esac
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12439$as_echo "$acx_cv_type_int8_t" >&6; }
12440
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12442$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12443 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12444 2:*) acx_cv_type_int16_t=int ;;
12445 *:2) acx_cv_type_int16_t=short ;;
22e05272 12446 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
48310492
RH
12447 esac
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12449$as_echo "$acx_cv_type_int16_t" >&6; }
12450
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12452$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12453 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12454 4:*) acx_cv_type_int32_t=int ;;
12455 *:4) acx_cv_type_int32_t=long ;;
22e05272 12456 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
48310492
RH
12457 esac
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12459$as_echo "$acx_cv_type_int32_t" >&6; }
12460fi
12461
12462# These tests are here to make the output prettier
12463
12464if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12465 case "$ac_cv_sizeof_long" in
12466 8) acx_cv_type_int64_t=long ;;
12467 esac
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12469$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12471$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12472fi
12473
12474# Now we can use the above types
12475
12476if test "$ac_cv_type_uintptr_t" != yes; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12478$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12479 case $ac_cv_sizeof_void_p in
12480 2) acx_cv_type_intptr_t=int16_t ;;
12481 4) acx_cv_type_intptr_t=int32_t ;;
12482 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 12483 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
48310492
RH
12484 esac
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12486$as_echo "$acx_cv_type_intptr_t" >&6; }
12487fi
12488
12489# ----------------- done all checks, emit header -------------
12490ac_config_commands="$ac_config_commands gstdint.h"
12491
12492
12493
267bac10
JM
12494for ac_header in fenv.h
12495do :
12496 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
22e05272 12497if test "x$ac_cv_header_fenv_h" = xyes; then :
267bac10
JM
12498 cat >>confdefs.h <<_ACEOF
12499#define HAVE_FENV_H 1
12500_ACEOF
12501
12502fi
12503
12504done
12505
48310492
RH
12506
12507# Check for common type sizes
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12510$as_echo_n "checking for 1 byte integer... " >&6; }
22e05272 12511if ${libat_cv_have_mode_QI+:} false; then :
48310492
RH
12512 $as_echo_n "(cached) " >&6
12513else
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515/* end confdefs.h. */
12516int x __attribute__((mode(QI)));
12517_ACEOF
12518if ac_fn_c_try_compile "$LINENO"; then :
12519 libat_cv_have_mode_QI=yes
12520else
12521 libat_cv_have_mode_QI=no
12522fi
12523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524fi
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12526$as_echo "$libat_cv_have_mode_QI" >&6; }
12527
12528 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12529
12530cat >>confdefs.h <<_ACEOF
12531#define HAVE_INT1 $yesno
12532_ACEOF
12533
12534
12535 if test x$libat_cv_have_mode_QI = xyes; then
12536 SIZES="$SIZES 1"
12537 fi
12538
12539
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12541$as_echo_n "checking for 2 byte integer... " >&6; }
22e05272 12542if ${libat_cv_have_mode_HI+:} false; then :
48310492
RH
12543 $as_echo_n "(cached) " >&6
12544else
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546/* end confdefs.h. */
12547int x __attribute__((mode(HI)));
12548_ACEOF
12549if ac_fn_c_try_compile "$LINENO"; then :
12550 libat_cv_have_mode_HI=yes
12551else
12552 libat_cv_have_mode_HI=no
12553fi
12554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555fi
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12557$as_echo "$libat_cv_have_mode_HI" >&6; }
12558
12559 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12560
12561cat >>confdefs.h <<_ACEOF
12562#define HAVE_INT2 $yesno
12563_ACEOF
12564
12565
12566 if test x$libat_cv_have_mode_HI = xyes; then
12567 SIZES="$SIZES 2"
12568 fi
12569
12570
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12572$as_echo_n "checking for 4 byte integer... " >&6; }
22e05272 12573if ${libat_cv_have_mode_SI+:} false; then :
48310492
RH
12574 $as_echo_n "(cached) " >&6
12575else
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577/* end confdefs.h. */
12578int x __attribute__((mode(SI)));
12579_ACEOF
12580if ac_fn_c_try_compile "$LINENO"; then :
12581 libat_cv_have_mode_SI=yes
12582else
12583 libat_cv_have_mode_SI=no
12584fi
12585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586fi
12587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12588$as_echo "$libat_cv_have_mode_SI" >&6; }
12589
12590 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12591
12592cat >>confdefs.h <<_ACEOF
12593#define HAVE_INT4 $yesno
12594_ACEOF
12595
12596
12597 if test x$libat_cv_have_mode_SI = xyes; then
12598 SIZES="$SIZES 4"
12599 fi
12600
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12603$as_echo_n "checking for 8 byte integer... " >&6; }
22e05272 12604if ${libat_cv_have_mode_DI+:} false; then :
48310492
RH
12605 $as_echo_n "(cached) " >&6
12606else
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608/* end confdefs.h. */
12609int x __attribute__((mode(DI)));
12610_ACEOF
12611if ac_fn_c_try_compile "$LINENO"; then :
12612 libat_cv_have_mode_DI=yes
12613else
12614 libat_cv_have_mode_DI=no
12615fi
12616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617fi
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12619$as_echo "$libat_cv_have_mode_DI" >&6; }
12620
12621 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12622
12623cat >>confdefs.h <<_ACEOF
12624#define HAVE_INT8 $yesno
12625_ACEOF
12626
12627
12628 if test x$libat_cv_have_mode_DI = xyes; then
12629 SIZES="$SIZES 8"
12630 fi
12631
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12634$as_echo_n "checking for 16 byte integer... " >&6; }
22e05272 12635if ${libat_cv_have_mode_TI+:} false; then :
48310492
RH
12636 $as_echo_n "(cached) " >&6
12637else
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639/* end confdefs.h. */
12640int x __attribute__((mode(TI)));
12641_ACEOF
12642if ac_fn_c_try_compile "$LINENO"; then :
12643 libat_cv_have_mode_TI=yes
12644else
12645 libat_cv_have_mode_TI=no
12646fi
12647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648fi
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12650$as_echo "$libat_cv_have_mode_TI" >&6; }
12651
12652 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12653
12654cat >>confdefs.h <<_ACEOF
12655#define HAVE_INT16 $yesno
12656_ACEOF
12657
12658
12659 if test x$libat_cv_have_mode_TI = xyes; then
12660 SIZES="$SIZES 16"
12661 fi
12662
12663
12664
12665# Check for compiler builtins of atomic operations.
12666
12667 # Do link tests if possible, instead asm tests, limited to some platforms
12668 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12669 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12670 atomic_builtins_link_tests=no
12671 if test x$gcc_no_link != xyes; then
12672 # Can do link tests. Limit to some tested platforms
12673 case "$host" in
12674 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
12675 atomic_builtins_link_tests=yes
12676 ;;
12677 esac
12678 fi
12679
12680
12681
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12683$as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
22e05272 12684if ${libat_cv_have_at_ldst_1+:} false; then :
48310492
RH
12685 $as_echo_n "(cached) " >&6
12686else
12687
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689/* end confdefs.h. */
12690
12691int
12692main ()
12693{
12694typedef int T __attribute__((mode(QI)));
12695 T *x; volatile T sink; asm("" : "=g"(x));
12696 sink = __atomic_load_n(x, 0);
12697 __atomic_store_n(x, sink, 0);
12698 ;
12699 return 0;
12700}
12701_ACEOF
12702 if test x$atomic_builtins_link_tests = xyes; then
12703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12704 (eval $ac_link) 2>&5
12705 ac_status=$?
12706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12707 test $ac_status = 0; }; then
12708 eval libat_cv_have_at_ldst_1=yes
12709 else
12710 eval libat_cv_have_at_ldst_1=no
12711 fi
12712 else
12713 old_CFLAGS="$CFLAGS"
12714 # Compile unoptimized.
aaea76b3 12715 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12717 (eval $ac_compile) 2>&5
12718 ac_status=$?
12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720 test $ac_status = 0; }; then
12721 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12722 eval libat_cv_have_at_ldst_1=no
12723 else
12724 eval libat_cv_have_at_ldst_1=yes
12725 fi
0fe5522f
RH
12726 else
12727 eval libat_cv_have_at_ldst_1=no
48310492
RH
12728 fi
12729 CFLAGS="$old_CFLAGS"
12730 fi
12731 rm -f conftest*
12732
12733fi
12734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12735$as_echo "$libat_cv_have_at_ldst_1" >&6; }
12736
12737
12738 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12739
12740cat >>confdefs.h <<_ACEOF
12741#define HAVE_ATOMIC_LDST_1 $yesno
12742_ACEOF
12743
12744
12745
12746
12747
12748
bc437a56 12749
48310492
RH
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12751$as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
22e05272 12752if ${libat_cv_have_at_ldst_2+:} false; then :
48310492
RH
12753 $as_echo_n "(cached) " >&6
12754else
12755
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757/* end confdefs.h. */
12758
12759int
12760main ()
12761{
12762typedef int T __attribute__((mode(HI)));
12763 T *x; volatile T sink; asm("" : "=g"(x));
12764 sink = __atomic_load_n(x, 0);
12765 __atomic_store_n(x, sink, 0);
12766 ;
12767 return 0;
12768}
12769_ACEOF
12770 if test x$atomic_builtins_link_tests = xyes; then
12771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12772 (eval $ac_link) 2>&5
12773 ac_status=$?
12774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12775 test $ac_status = 0; }; then
12776 eval libat_cv_have_at_ldst_2=yes
12777 else
12778 eval libat_cv_have_at_ldst_2=no
12779 fi
12780 else
12781 old_CFLAGS="$CFLAGS"
12782 # Compile unoptimized.
aaea76b3 12783 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12785 (eval $ac_compile) 2>&5
12786 ac_status=$?
12787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12788 test $ac_status = 0; }; then
12789 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12790 eval libat_cv_have_at_ldst_2=no
12791 else
12792 eval libat_cv_have_at_ldst_2=yes
12793 fi
0fe5522f
RH
12794 else
12795 eval libat_cv_have_at_ldst_2=no
48310492
RH
12796 fi
12797 CFLAGS="$old_CFLAGS"
12798 fi
12799 rm -f conftest*
12800
12801fi
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12803$as_echo "$libat_cv_have_at_ldst_2" >&6; }
12804
12805
12806 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12807
12808cat >>confdefs.h <<_ACEOF
12809#define HAVE_ATOMIC_LDST_2 $yesno
12810_ACEOF
12811
12812
12813
12814
12815
12816
bc437a56 12817
48310492
RH
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12819$as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
22e05272 12820if ${libat_cv_have_at_ldst_4+:} false; then :
48310492
RH
12821 $as_echo_n "(cached) " >&6
12822else
12823
12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825/* end confdefs.h. */
12826
12827int
12828main ()
12829{
12830typedef int T __attribute__((mode(SI)));
12831 T *x; volatile T sink; asm("" : "=g"(x));
12832 sink = __atomic_load_n(x, 0);
12833 __atomic_store_n(x, sink, 0);
12834 ;
12835 return 0;
12836}
12837_ACEOF
12838 if test x$atomic_builtins_link_tests = xyes; then
12839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12840 (eval $ac_link) 2>&5
12841 ac_status=$?
12842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12843 test $ac_status = 0; }; then
12844 eval libat_cv_have_at_ldst_4=yes
12845 else
12846 eval libat_cv_have_at_ldst_4=no
12847 fi
12848 else
12849 old_CFLAGS="$CFLAGS"
12850 # Compile unoptimized.
aaea76b3 12851 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12853 (eval $ac_compile) 2>&5
12854 ac_status=$?
12855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856 test $ac_status = 0; }; then
12857 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12858 eval libat_cv_have_at_ldst_4=no
12859 else
12860 eval libat_cv_have_at_ldst_4=yes
12861 fi
0fe5522f
RH
12862 else
12863 eval libat_cv_have_at_ldst_4=no
48310492
RH
12864 fi
12865 CFLAGS="$old_CFLAGS"
12866 fi
12867 rm -f conftest*
12868
12869fi
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12871$as_echo "$libat_cv_have_at_ldst_4" >&6; }
12872
12873
12874 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12875
12876cat >>confdefs.h <<_ACEOF
12877#define HAVE_ATOMIC_LDST_4 $yesno
12878_ACEOF
12879
12880
12881
12882
12883
12884
bc437a56 12885
48310492
RH
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12887$as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
22e05272 12888if ${libat_cv_have_at_ldst_8+:} false; then :
48310492
RH
12889 $as_echo_n "(cached) " >&6
12890else
12891
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893/* end confdefs.h. */
12894
12895int
12896main ()
12897{
12898typedef int T __attribute__((mode(DI)));
12899 T *x; volatile T sink; asm("" : "=g"(x));
12900 sink = __atomic_load_n(x, 0);
12901 __atomic_store_n(x, sink, 0);
12902 ;
12903 return 0;
12904}
12905_ACEOF
12906 if test x$atomic_builtins_link_tests = xyes; then
12907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12908 (eval $ac_link) 2>&5
12909 ac_status=$?
12910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911 test $ac_status = 0; }; then
12912 eval libat_cv_have_at_ldst_8=yes
12913 else
12914 eval libat_cv_have_at_ldst_8=no
12915 fi
12916 else
12917 old_CFLAGS="$CFLAGS"
12918 # Compile unoptimized.
aaea76b3 12919 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12921 (eval $ac_compile) 2>&5
12922 ac_status=$?
12923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12924 test $ac_status = 0; }; then
12925 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12926 eval libat_cv_have_at_ldst_8=no
12927 else
12928 eval libat_cv_have_at_ldst_8=yes
12929 fi
0fe5522f
RH
12930 else
12931 eval libat_cv_have_at_ldst_8=no
48310492
RH
12932 fi
12933 CFLAGS="$old_CFLAGS"
12934 fi
12935 rm -f conftest*
12936
12937fi
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12939$as_echo "$libat_cv_have_at_ldst_8" >&6; }
12940
12941
12942 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12943
12944cat >>confdefs.h <<_ACEOF
12945#define HAVE_ATOMIC_LDST_8 $yesno
12946_ACEOF
12947
12948
12949
12950
12951
12952
bc437a56 12953
48310492
RH
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12955$as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
22e05272 12956if ${libat_cv_have_at_ldst_16+:} false; then :
48310492
RH
12957 $as_echo_n "(cached) " >&6
12958else
12959
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961/* end confdefs.h. */
12962
12963int
12964main ()
12965{
12966typedef int T __attribute__((mode(TI)));
12967 T *x; volatile T sink; asm("" : "=g"(x));
12968 sink = __atomic_load_n(x, 0);
12969 __atomic_store_n(x, sink, 0);
12970 ;
12971 return 0;
12972}
12973_ACEOF
12974 if test x$atomic_builtins_link_tests = xyes; then
12975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12976 (eval $ac_link) 2>&5
12977 ac_status=$?
12978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12979 test $ac_status = 0; }; then
12980 eval libat_cv_have_at_ldst_16=yes
12981 else
12982 eval libat_cv_have_at_ldst_16=no
12983 fi
12984 else
12985 old_CFLAGS="$CFLAGS"
12986 # Compile unoptimized.
aaea76b3 12987 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12989 (eval $ac_compile) 2>&5
12990 ac_status=$?
12991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12992 test $ac_status = 0; }; then
12993 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12994 eval libat_cv_have_at_ldst_16=no
12995 else
12996 eval libat_cv_have_at_ldst_16=yes
12997 fi
0fe5522f
RH
12998 else
12999 eval libat_cv_have_at_ldst_16=no
48310492
RH
13000 fi
13001 CFLAGS="$old_CFLAGS"
13002 fi
13003 rm -f conftest*
13004
13005fi
13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
13007$as_echo "$libat_cv_have_at_ldst_16" >&6; }
13008
13009
13010 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
13011
13012cat >>confdefs.h <<_ACEOF
13013#define HAVE_ATOMIC_LDST_16 $yesno
13014_ACEOF
13015
13016
13017
13018
13019
13020
13021
bc437a56 13022
48310492
RH
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
13024$as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
22e05272 13025if ${libat_cv_have_at_tas_1+:} false; then :
48310492
RH
13026 $as_echo_n "(cached) " >&6
13027else
13028
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030/* end confdefs.h. */
13031
13032int
13033main ()
13034{
13035typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
13036 __atomic_test_and_set(x, 0);
13037 ;
13038 return 0;
13039}
13040_ACEOF
13041 if test x$atomic_builtins_link_tests = xyes; then
13042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13043 (eval $ac_link) 2>&5
13044 ac_status=$?
13045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13046 test $ac_status = 0; }; then
13047 eval libat_cv_have_at_tas_1=yes
13048 else
13049 eval libat_cv_have_at_tas_1=no
13050 fi
13051 else
13052 old_CFLAGS="$CFLAGS"
13053 # Compile unoptimized.
aaea76b3 13054 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13056 (eval $ac_compile) 2>&5
13057 ac_status=$?
13058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059 test $ac_status = 0; }; then
13060 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13061 eval libat_cv_have_at_tas_1=no
13062 else
13063 eval libat_cv_have_at_tas_1=yes
13064 fi
0fe5522f
RH
13065 else
13066 eval libat_cv_have_at_tas_1=no
48310492
RH
13067 fi
13068 CFLAGS="$old_CFLAGS"
13069 fi
13070 rm -f conftest*
13071
13072fi
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
13074$as_echo "$libat_cv_have_at_tas_1" >&6; }
13075
13076
13077 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
13078
13079cat >>confdefs.h <<_ACEOF
13080#define HAVE_ATOMIC_TAS_1 $yesno
13081_ACEOF
13082
13083
13084
13085
13086
13087
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
13089$as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
22e05272 13090if ${libat_cv_have_at_tas_2+:} false; then :
48310492
RH
13091 $as_echo_n "(cached) " >&6
13092else
13093
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095/* end confdefs.h. */
13096
13097int
13098main ()
13099{
13100typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13101 __atomic_test_and_set(x, 0);
13102 ;
13103 return 0;
13104}
13105_ACEOF
13106 if test x$atomic_builtins_link_tests = xyes; then
13107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13108 (eval $ac_link) 2>&5
13109 ac_status=$?
13110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13111 test $ac_status = 0; }; then
13112 eval libat_cv_have_at_tas_2=yes
13113 else
13114 eval libat_cv_have_at_tas_2=no
13115 fi
13116 else
13117 old_CFLAGS="$CFLAGS"
13118 # Compile unoptimized.
aaea76b3 13119 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13121 (eval $ac_compile) 2>&5
13122 ac_status=$?
13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124 test $ac_status = 0; }; then
13125 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13126 eval libat_cv_have_at_tas_2=no
13127 else
13128 eval libat_cv_have_at_tas_2=yes
13129 fi
0fe5522f
RH
13130 else
13131 eval libat_cv_have_at_tas_2=no
48310492
RH
13132 fi
13133 CFLAGS="$old_CFLAGS"
13134 fi
13135 rm -f conftest*
13136
13137fi
13138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
13139$as_echo "$libat_cv_have_at_tas_2" >&6; }
13140
13141
13142 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
13143
13144cat >>confdefs.h <<_ACEOF
13145#define HAVE_ATOMIC_TAS_2 $yesno
13146_ACEOF
13147
13148
13149
13150
13151
13152
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
13154$as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
22e05272 13155if ${libat_cv_have_at_tas_4+:} false; then :
48310492
RH
13156 $as_echo_n "(cached) " >&6
13157else
13158
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160/* end confdefs.h. */
13161
13162int
13163main ()
13164{
13165typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13166 __atomic_test_and_set(x, 0);
13167 ;
13168 return 0;
13169}
13170_ACEOF
13171 if test x$atomic_builtins_link_tests = xyes; then
13172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13173 (eval $ac_link) 2>&5
13174 ac_status=$?
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; }; then
13177 eval libat_cv_have_at_tas_4=yes
13178 else
13179 eval libat_cv_have_at_tas_4=no
13180 fi
13181 else
13182 old_CFLAGS="$CFLAGS"
13183 # Compile unoptimized.
aaea76b3 13184 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13186 (eval $ac_compile) 2>&5
13187 ac_status=$?
13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; }; then
13190 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13191 eval libat_cv_have_at_tas_4=no
13192 else
13193 eval libat_cv_have_at_tas_4=yes
13194 fi
0fe5522f
RH
13195 else
13196 eval libat_cv_have_at_tas_4=no
48310492
RH
13197 fi
13198 CFLAGS="$old_CFLAGS"
13199 fi
13200 rm -f conftest*
13201
13202fi
13203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
13204$as_echo "$libat_cv_have_at_tas_4" >&6; }
13205
13206
13207 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
13208
13209cat >>confdefs.h <<_ACEOF
13210#define HAVE_ATOMIC_TAS_4 $yesno
13211_ACEOF
13212
13213
13214
13215
13216
13217
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
13219$as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
22e05272 13220if ${libat_cv_have_at_tas_8+:} false; then :
48310492
RH
13221 $as_echo_n "(cached) " >&6
13222else
13223
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225/* end confdefs.h. */
13226
13227int
13228main ()
13229{
13230typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13231 __atomic_test_and_set(x, 0);
13232 ;
13233 return 0;
13234}
13235_ACEOF
13236 if test x$atomic_builtins_link_tests = xyes; then
13237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13238 (eval $ac_link) 2>&5
13239 ac_status=$?
13240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13241 test $ac_status = 0; }; then
13242 eval libat_cv_have_at_tas_8=yes
13243 else
13244 eval libat_cv_have_at_tas_8=no
13245 fi
13246 else
13247 old_CFLAGS="$CFLAGS"
13248 # Compile unoptimized.
aaea76b3 13249 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13251 (eval $ac_compile) 2>&5
13252 ac_status=$?
13253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13254 test $ac_status = 0; }; then
13255 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13256 eval libat_cv_have_at_tas_8=no
13257 else
13258 eval libat_cv_have_at_tas_8=yes
13259 fi
0fe5522f
RH
13260 else
13261 eval libat_cv_have_at_tas_8=no
48310492
RH
13262 fi
13263 CFLAGS="$old_CFLAGS"
13264 fi
13265 rm -f conftest*
13266
13267fi
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
13269$as_echo "$libat_cv_have_at_tas_8" >&6; }
13270
13271
13272 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
13273
13274cat >>confdefs.h <<_ACEOF
13275#define HAVE_ATOMIC_TAS_8 $yesno
13276_ACEOF
13277
13278
13279
13280
13281
13282
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
13284$as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
22e05272 13285if ${libat_cv_have_at_tas_16+:} false; then :
48310492
RH
13286 $as_echo_n "(cached) " >&6
13287else
13288
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290/* end confdefs.h. */
13291
13292int
13293main ()
13294{
13295typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13296 __atomic_test_and_set(x, 0);
13297 ;
13298 return 0;
13299}
13300_ACEOF
13301 if test x$atomic_builtins_link_tests = xyes; then
13302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13303 (eval $ac_link) 2>&5
13304 ac_status=$?
13305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13306 test $ac_status = 0; }; then
13307 eval libat_cv_have_at_tas_16=yes
13308 else
13309 eval libat_cv_have_at_tas_16=no
13310 fi
13311 else
13312 old_CFLAGS="$CFLAGS"
13313 # Compile unoptimized.
aaea76b3 13314 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13316 (eval $ac_compile) 2>&5
13317 ac_status=$?
13318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13319 test $ac_status = 0; }; then
13320 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13321 eval libat_cv_have_at_tas_16=no
13322 else
13323 eval libat_cv_have_at_tas_16=yes
13324 fi
0fe5522f
RH
13325 else
13326 eval libat_cv_have_at_tas_16=no
48310492
RH
13327 fi
13328 CFLAGS="$old_CFLAGS"
13329 fi
13330 rm -f conftest*
13331
13332fi
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
13334$as_echo "$libat_cv_have_at_tas_16" >&6; }
13335
13336
13337 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
13338
13339cat >>confdefs.h <<_ACEOF
13340#define HAVE_ATOMIC_TAS_16 $yesno
13341_ACEOF
13342
13343
13344
13345
13346
13347
13348
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
13350$as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
22e05272 13351if ${libat_cv_have_at_exch_1+:} false; then :
48310492
RH
13352 $as_echo_n "(cached) " >&6
13353else
13354
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356/* end confdefs.h. */
13357
13358int
13359main ()
13360{
13361typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
13362 __atomic_exchange_n(x, 0, 0);
13363 ;
13364 return 0;
13365}
13366_ACEOF
13367 if test x$atomic_builtins_link_tests = xyes; then
13368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13369 (eval $ac_link) 2>&5
13370 ac_status=$?
13371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13372 test $ac_status = 0; }; then
13373 eval libat_cv_have_at_exch_1=yes
13374 else
13375 eval libat_cv_have_at_exch_1=no
13376 fi
13377 else
13378 old_CFLAGS="$CFLAGS"
13379 # Compile unoptimized.
aaea76b3 13380 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13382 (eval $ac_compile) 2>&5
13383 ac_status=$?
13384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13385 test $ac_status = 0; }; then
13386 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13387 eval libat_cv_have_at_exch_1=no
13388 else
13389 eval libat_cv_have_at_exch_1=yes
13390 fi
0fe5522f
RH
13391 else
13392 eval libat_cv_have_at_exch_1=no
48310492
RH
13393 fi
13394 CFLAGS="$old_CFLAGS"
13395 fi
13396 rm -f conftest*
13397
13398fi
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
13400$as_echo "$libat_cv_have_at_exch_1" >&6; }
13401
13402
13403 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
13404
13405cat >>confdefs.h <<_ACEOF
13406#define HAVE_ATOMIC_EXCHANGE_1 $yesno
13407_ACEOF
13408
13409
13410
13411
13412
13413
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
13415$as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
22e05272 13416if ${libat_cv_have_at_exch_2+:} false; then :
48310492
RH
13417 $as_echo_n "(cached) " >&6
13418else
13419
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421/* end confdefs.h. */
13422
13423int
13424main ()
13425{
13426typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13427 __atomic_exchange_n(x, 0, 0);
13428 ;
13429 return 0;
13430}
13431_ACEOF
13432 if test x$atomic_builtins_link_tests = xyes; then
13433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13434 (eval $ac_link) 2>&5
13435 ac_status=$?
13436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13437 test $ac_status = 0; }; then
13438 eval libat_cv_have_at_exch_2=yes
13439 else
13440 eval libat_cv_have_at_exch_2=no
13441 fi
13442 else
13443 old_CFLAGS="$CFLAGS"
13444 # Compile unoptimized.
aaea76b3 13445 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13447 (eval $ac_compile) 2>&5
13448 ac_status=$?
13449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13450 test $ac_status = 0; }; then
13451 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13452 eval libat_cv_have_at_exch_2=no
13453 else
13454 eval libat_cv_have_at_exch_2=yes
13455 fi
0fe5522f
RH
13456 else
13457 eval libat_cv_have_at_exch_2=no
48310492
RH
13458 fi
13459 CFLAGS="$old_CFLAGS"
13460 fi
13461 rm -f conftest*
13462
13463fi
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13465$as_echo "$libat_cv_have_at_exch_2" >&6; }
13466
13467
13468 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13469
13470cat >>confdefs.h <<_ACEOF
13471#define HAVE_ATOMIC_EXCHANGE_2 $yesno
13472_ACEOF
13473
13474
13475
13476
13477
13478
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13480$as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
22e05272 13481if ${libat_cv_have_at_exch_4+:} false; then :
48310492
RH
13482 $as_echo_n "(cached) " >&6
13483else
13484
13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486/* end confdefs.h. */
13487
13488int
13489main ()
13490{
13491typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13492 __atomic_exchange_n(x, 0, 0);
13493 ;
13494 return 0;
13495}
13496_ACEOF
13497 if test x$atomic_builtins_link_tests = xyes; then
13498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13499 (eval $ac_link) 2>&5
13500 ac_status=$?
13501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13502 test $ac_status = 0; }; then
13503 eval libat_cv_have_at_exch_4=yes
13504 else
13505 eval libat_cv_have_at_exch_4=no
13506 fi
13507 else
13508 old_CFLAGS="$CFLAGS"
13509 # Compile unoptimized.
aaea76b3 13510 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13512 (eval $ac_compile) 2>&5
13513 ac_status=$?
13514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13515 test $ac_status = 0; }; then
13516 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13517 eval libat_cv_have_at_exch_4=no
13518 else
13519 eval libat_cv_have_at_exch_4=yes
13520 fi
0fe5522f
RH
13521 else
13522 eval libat_cv_have_at_exch_4=no
48310492
RH
13523 fi
13524 CFLAGS="$old_CFLAGS"
13525 fi
13526 rm -f conftest*
13527
13528fi
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13530$as_echo "$libat_cv_have_at_exch_4" >&6; }
13531
13532
13533 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13534
13535cat >>confdefs.h <<_ACEOF
13536#define HAVE_ATOMIC_EXCHANGE_4 $yesno
13537_ACEOF
13538
13539
13540
13541
13542
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13545$as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
22e05272 13546if ${libat_cv_have_at_exch_8+:} false; then :
48310492
RH
13547 $as_echo_n "(cached) " >&6
13548else
13549
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551/* end confdefs.h. */
13552
13553int
13554main ()
13555{
13556typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13557 __atomic_exchange_n(x, 0, 0);
13558 ;
13559 return 0;
13560}
13561_ACEOF
13562 if test x$atomic_builtins_link_tests = xyes; then
13563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13564 (eval $ac_link) 2>&5
13565 ac_status=$?
13566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13567 test $ac_status = 0; }; then
13568 eval libat_cv_have_at_exch_8=yes
13569 else
13570 eval libat_cv_have_at_exch_8=no
13571 fi
13572 else
13573 old_CFLAGS="$CFLAGS"
13574 # Compile unoptimized.
aaea76b3 13575 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13577 (eval $ac_compile) 2>&5
13578 ac_status=$?
13579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13580 test $ac_status = 0; }; then
13581 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13582 eval libat_cv_have_at_exch_8=no
13583 else
13584 eval libat_cv_have_at_exch_8=yes
13585 fi
0fe5522f
RH
13586 else
13587 eval libat_cv_have_at_exch_8=no
48310492
RH
13588 fi
13589 CFLAGS="$old_CFLAGS"
13590 fi
13591 rm -f conftest*
13592
13593fi
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13595$as_echo "$libat_cv_have_at_exch_8" >&6; }
13596
13597
13598 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13599
13600cat >>confdefs.h <<_ACEOF
13601#define HAVE_ATOMIC_EXCHANGE_8 $yesno
13602_ACEOF
13603
13604
13605
13606
13607
13608
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13610$as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
22e05272 13611if ${libat_cv_have_at_exch_16+:} false; then :
48310492
RH
13612 $as_echo_n "(cached) " >&6
13613else
13614
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616/* end confdefs.h. */
13617
13618int
13619main ()
13620{
13621typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13622 __atomic_exchange_n(x, 0, 0);
13623 ;
13624 return 0;
13625}
13626_ACEOF
13627 if test x$atomic_builtins_link_tests = xyes; then
13628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13629 (eval $ac_link) 2>&5
13630 ac_status=$?
13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13632 test $ac_status = 0; }; then
13633 eval libat_cv_have_at_exch_16=yes
13634 else
13635 eval libat_cv_have_at_exch_16=no
13636 fi
13637 else
13638 old_CFLAGS="$CFLAGS"
13639 # Compile unoptimized.
aaea76b3 13640 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13642 (eval $ac_compile) 2>&5
13643 ac_status=$?
13644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13645 test $ac_status = 0; }; then
13646 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13647 eval libat_cv_have_at_exch_16=no
13648 else
13649 eval libat_cv_have_at_exch_16=yes
13650 fi
0fe5522f
RH
13651 else
13652 eval libat_cv_have_at_exch_16=no
48310492
RH
13653 fi
13654 CFLAGS="$old_CFLAGS"
13655 fi
13656 rm -f conftest*
13657
13658fi
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13660$as_echo "$libat_cv_have_at_exch_16" >&6; }
13661
13662
13663 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13664
13665cat >>confdefs.h <<_ACEOF
13666#define HAVE_ATOMIC_EXCHANGE_16 $yesno
13667_ACEOF
13668
13669
13670
13671
13672
13673
13674
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13676$as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
22e05272 13677if ${libat_cv_have_at_cas_1+:} false; then :
48310492
RH
13678 $as_echo_n "(cached) " >&6
13679else
13680
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682/* end confdefs.h. */
13683
13684int
13685main ()
13686{
13687typedef int T __attribute__((mode(QI))); T *x, *y;
13688 asm("" : "=g"(x), "=g"(y));
13689 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13690 ;
13691 return 0;
13692}
13693_ACEOF
13694 if test x$atomic_builtins_link_tests = xyes; then
13695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13696 (eval $ac_link) 2>&5
13697 ac_status=$?
13698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13699 test $ac_status = 0; }; then
13700 eval libat_cv_have_at_cas_1=yes
13701 else
13702 eval libat_cv_have_at_cas_1=no
13703 fi
13704 else
13705 old_CFLAGS="$CFLAGS"
13706 # Compile unoptimized.
aaea76b3 13707 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13709 (eval $ac_compile) 2>&5
13710 ac_status=$?
13711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13712 test $ac_status = 0; }; then
13713 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13714 eval libat_cv_have_at_cas_1=no
13715 else
13716 eval libat_cv_have_at_cas_1=yes
13717 fi
0fe5522f
RH
13718 else
13719 eval libat_cv_have_at_cas_1=no
48310492
RH
13720 fi
13721 CFLAGS="$old_CFLAGS"
13722 fi
13723 rm -f conftest*
13724
13725fi
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13727$as_echo "$libat_cv_have_at_cas_1" >&6; }
13728
13729
13730 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13731
13732cat >>confdefs.h <<_ACEOF
13733#define HAVE_ATOMIC_CAS_1 $yesno
13734_ACEOF
13735
13736
13737
13738
13739
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13742$as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
22e05272 13743if ${libat_cv_have_at_cas_2+:} false; then :
48310492
RH
13744 $as_echo_n "(cached) " >&6
13745else
13746
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748/* end confdefs.h. */
13749
13750int
13751main ()
13752{
13753typedef int T __attribute__((mode(HI))); T *x, *y;
13754 asm("" : "=g"(x), "=g"(y));
13755 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13756 ;
13757 return 0;
13758}
13759_ACEOF
13760 if test x$atomic_builtins_link_tests = xyes; then
13761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13762 (eval $ac_link) 2>&5
13763 ac_status=$?
13764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13765 test $ac_status = 0; }; then
13766 eval libat_cv_have_at_cas_2=yes
13767 else
13768 eval libat_cv_have_at_cas_2=no
13769 fi
13770 else
13771 old_CFLAGS="$CFLAGS"
13772 # Compile unoptimized.
aaea76b3 13773 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13775 (eval $ac_compile) 2>&5
13776 ac_status=$?
13777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13778 test $ac_status = 0; }; then
13779 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13780 eval libat_cv_have_at_cas_2=no
13781 else
13782 eval libat_cv_have_at_cas_2=yes
13783 fi
0fe5522f
RH
13784 else
13785 eval libat_cv_have_at_cas_2=no
48310492
RH
13786 fi
13787 CFLAGS="$old_CFLAGS"
13788 fi
13789 rm -f conftest*
13790
13791fi
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13793$as_echo "$libat_cv_have_at_cas_2" >&6; }
13794
13795
13796 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13797
13798cat >>confdefs.h <<_ACEOF
13799#define HAVE_ATOMIC_CAS_2 $yesno
13800_ACEOF
13801
13802
13803
13804
13805
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13808$as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
22e05272 13809if ${libat_cv_have_at_cas_4+:} false; then :
48310492
RH
13810 $as_echo_n "(cached) " >&6
13811else
13812
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814/* end confdefs.h. */
13815
13816int
13817main ()
13818{
13819typedef int T __attribute__((mode(SI))); T *x, *y;
13820 asm("" : "=g"(x), "=g"(y));
13821 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13822 ;
13823 return 0;
13824}
13825_ACEOF
13826 if test x$atomic_builtins_link_tests = xyes; then
13827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13828 (eval $ac_link) 2>&5
13829 ac_status=$?
13830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13831 test $ac_status = 0; }; then
13832 eval libat_cv_have_at_cas_4=yes
13833 else
13834 eval libat_cv_have_at_cas_4=no
13835 fi
13836 else
13837 old_CFLAGS="$CFLAGS"
13838 # Compile unoptimized.
aaea76b3 13839 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13841 (eval $ac_compile) 2>&5
13842 ac_status=$?
13843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13844 test $ac_status = 0; }; then
13845 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13846 eval libat_cv_have_at_cas_4=no
13847 else
13848 eval libat_cv_have_at_cas_4=yes
13849 fi
0fe5522f
RH
13850 else
13851 eval libat_cv_have_at_cas_4=no
48310492
RH
13852 fi
13853 CFLAGS="$old_CFLAGS"
13854 fi
13855 rm -f conftest*
13856
13857fi
13858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13859$as_echo "$libat_cv_have_at_cas_4" >&6; }
13860
13861
13862 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13863
13864cat >>confdefs.h <<_ACEOF
13865#define HAVE_ATOMIC_CAS_4 $yesno
13866_ACEOF
13867
13868
13869
13870
13871
13872
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13874$as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
22e05272 13875if ${libat_cv_have_at_cas_8+:} false; then :
48310492
RH
13876 $as_echo_n "(cached) " >&6
13877else
13878
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880/* end confdefs.h. */
13881
13882int
13883main ()
13884{
13885typedef int T __attribute__((mode(DI))); T *x, *y;
13886 asm("" : "=g"(x), "=g"(y));
13887 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13888 ;
13889 return 0;
13890}
13891_ACEOF
13892 if test x$atomic_builtins_link_tests = xyes; then
13893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13894 (eval $ac_link) 2>&5
13895 ac_status=$?
13896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13897 test $ac_status = 0; }; then
13898 eval libat_cv_have_at_cas_8=yes
13899 else
13900 eval libat_cv_have_at_cas_8=no
13901 fi
13902 else
13903 old_CFLAGS="$CFLAGS"
13904 # Compile unoptimized.
aaea76b3 13905 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13907 (eval $ac_compile) 2>&5
13908 ac_status=$?
13909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13910 test $ac_status = 0; }; then
13911 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13912 eval libat_cv_have_at_cas_8=no
13913 else
13914 eval libat_cv_have_at_cas_8=yes
13915 fi
0fe5522f
RH
13916 else
13917 eval libat_cv_have_at_cas_8=no
48310492
RH
13918 fi
13919 CFLAGS="$old_CFLAGS"
13920 fi
13921 rm -f conftest*
13922
13923fi
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13925$as_echo "$libat_cv_have_at_cas_8" >&6; }
13926
13927
13928 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13929
13930cat >>confdefs.h <<_ACEOF
13931#define HAVE_ATOMIC_CAS_8 $yesno
13932_ACEOF
13933
13934
13935
13936
13937
13938
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13940$as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
22e05272 13941if ${libat_cv_have_at_cas_16+:} false; then :
48310492
RH
13942 $as_echo_n "(cached) " >&6
13943else
13944
13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946/* end confdefs.h. */
13947
13948int
13949main ()
13950{
13951typedef int T __attribute__((mode(TI))); T *x, *y;
13952 asm("" : "=g"(x), "=g"(y));
13953 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13954 ;
13955 return 0;
13956}
13957_ACEOF
13958 if test x$atomic_builtins_link_tests = xyes; then
13959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13960 (eval $ac_link) 2>&5
13961 ac_status=$?
13962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13963 test $ac_status = 0; }; then
13964 eval libat_cv_have_at_cas_16=yes
13965 else
13966 eval libat_cv_have_at_cas_16=no
13967 fi
13968 else
13969 old_CFLAGS="$CFLAGS"
13970 # Compile unoptimized.
aaea76b3 13971 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13973 (eval $ac_compile) 2>&5
13974 ac_status=$?
13975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13976 test $ac_status = 0; }; then
13977 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13978 eval libat_cv_have_at_cas_16=no
13979 else
13980 eval libat_cv_have_at_cas_16=yes
13981 fi
0fe5522f
RH
13982 else
13983 eval libat_cv_have_at_cas_16=no
48310492
RH
13984 fi
13985 CFLAGS="$old_CFLAGS"
13986 fi
13987 rm -f conftest*
13988
13989fi
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13991$as_echo "$libat_cv_have_at_cas_16" >&6; }
13992
13993
13994 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13995
13996cat >>confdefs.h <<_ACEOF
13997#define HAVE_ATOMIC_CAS_16 $yesno
13998_ACEOF
13999
14000
14001
14002
14003
14004
14005
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
14007$as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
22e05272 14008if ${libat_cv_have_at_fadd_1+:} false; then :
48310492
RH
14009 $as_echo_n "(cached) " >&6
14010else
14011
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013/* end confdefs.h. */
14014
14015int
14016main ()
14017{
14018typedef int T __attribute__((mode(QI))); T *x, y;
14019 asm("" : "=g"(x), "=g"(y));
14020 __atomic_fetch_add (x, y, 0);
14021 __atomic_add_fetch (x, y, 0);
14022 ;
14023 return 0;
14024}
14025_ACEOF
14026 if test x$atomic_builtins_link_tests = xyes; then
14027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14028 (eval $ac_link) 2>&5
14029 ac_status=$?
14030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14031 test $ac_status = 0; }; then
14032 eval libat_cv_have_at_fadd_1=yes
14033 else
14034 eval libat_cv_have_at_fadd_1=no
14035 fi
14036 else
14037 old_CFLAGS="$CFLAGS"
14038 # Compile unoptimized.
aaea76b3 14039 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14041 (eval $ac_compile) 2>&5
14042 ac_status=$?
14043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14044 test $ac_status = 0; }; then
14045 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14046 eval libat_cv_have_at_fadd_1=no
14047 else
14048 eval libat_cv_have_at_fadd_1=yes
14049 fi
0fe5522f
RH
14050 else
14051 eval libat_cv_have_at_fadd_1=no
48310492
RH
14052 fi
14053 CFLAGS="$old_CFLAGS"
14054 fi
14055 rm -f conftest*
14056
14057fi
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
14059$as_echo "$libat_cv_have_at_fadd_1" >&6; }
14060
14061
14062 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
14063
14064cat >>confdefs.h <<_ACEOF
14065#define HAVE_ATOMIC_FETCH_ADD_1 $yesno
14066_ACEOF
14067
14068
14069
14070
14071
14072
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
14074$as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
22e05272 14075if ${libat_cv_have_at_fadd_2+:} false; then :
48310492
RH
14076 $as_echo_n "(cached) " >&6
14077else
14078
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080/* end confdefs.h. */
14081
14082int
14083main ()
14084{
14085typedef int T __attribute__((mode(HI))); T *x, y;
14086 asm("" : "=g"(x), "=g"(y));
14087 __atomic_fetch_add (x, y, 0);
14088 __atomic_add_fetch (x, y, 0);
14089 ;
14090 return 0;
14091}
14092_ACEOF
14093 if test x$atomic_builtins_link_tests = xyes; then
14094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14095 (eval $ac_link) 2>&5
14096 ac_status=$?
14097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14098 test $ac_status = 0; }; then
14099 eval libat_cv_have_at_fadd_2=yes
14100 else
14101 eval libat_cv_have_at_fadd_2=no
14102 fi
14103 else
14104 old_CFLAGS="$CFLAGS"
14105 # Compile unoptimized.
aaea76b3 14106 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14108 (eval $ac_compile) 2>&5
14109 ac_status=$?
14110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14111 test $ac_status = 0; }; then
14112 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14113 eval libat_cv_have_at_fadd_2=no
14114 else
14115 eval libat_cv_have_at_fadd_2=yes
14116 fi
0fe5522f
RH
14117 else
14118 eval libat_cv_have_at_fadd_2=no
48310492
RH
14119 fi
14120 CFLAGS="$old_CFLAGS"
14121 fi
14122 rm -f conftest*
14123
14124fi
14125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
14126$as_echo "$libat_cv_have_at_fadd_2" >&6; }
14127
14128
14129 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
14130
14131cat >>confdefs.h <<_ACEOF
14132#define HAVE_ATOMIC_FETCH_ADD_2 $yesno
14133_ACEOF
14134
14135
14136
14137
14138
14139
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
14141$as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
22e05272 14142if ${libat_cv_have_at_fadd_4+:} false; then :
48310492
RH
14143 $as_echo_n "(cached) " >&6
14144else
14145
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147/* end confdefs.h. */
14148
14149int
14150main ()
14151{
14152typedef int T __attribute__((mode(SI))); T *x, y;
14153 asm("" : "=g"(x), "=g"(y));
14154 __atomic_fetch_add (x, y, 0);
14155 __atomic_add_fetch (x, y, 0);
14156 ;
14157 return 0;
14158}
14159_ACEOF
14160 if test x$atomic_builtins_link_tests = xyes; then
14161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14162 (eval $ac_link) 2>&5
14163 ac_status=$?
14164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14165 test $ac_status = 0; }; then
14166 eval libat_cv_have_at_fadd_4=yes
14167 else
14168 eval libat_cv_have_at_fadd_4=no
14169 fi
14170 else
14171 old_CFLAGS="$CFLAGS"
14172 # Compile unoptimized.
aaea76b3 14173 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14175 (eval $ac_compile) 2>&5
14176 ac_status=$?
14177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14178 test $ac_status = 0; }; then
14179 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14180 eval libat_cv_have_at_fadd_4=no
14181 else
14182 eval libat_cv_have_at_fadd_4=yes
14183 fi
0fe5522f
RH
14184 else
14185 eval libat_cv_have_at_fadd_4=no
48310492
RH
14186 fi
14187 CFLAGS="$old_CFLAGS"
14188 fi
14189 rm -f conftest*
14190
14191fi
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
14193$as_echo "$libat_cv_have_at_fadd_4" >&6; }
14194
14195
14196 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
14197
14198cat >>confdefs.h <<_ACEOF
14199#define HAVE_ATOMIC_FETCH_ADD_4 $yesno
14200_ACEOF
14201
14202
14203
14204
14205
14206
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
14208$as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
22e05272 14209if ${libat_cv_have_at_fadd_8+:} false; then :
48310492
RH
14210 $as_echo_n "(cached) " >&6
14211else
14212
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214/* end confdefs.h. */
14215
14216int
14217main ()
14218{
14219typedef int T __attribute__((mode(DI))); T *x, y;
14220 asm("" : "=g"(x), "=g"(y));
14221 __atomic_fetch_add (x, y, 0);
14222 __atomic_add_fetch (x, y, 0);
14223 ;
14224 return 0;
14225}
14226_ACEOF
14227 if test x$atomic_builtins_link_tests = xyes; then
14228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14229 (eval $ac_link) 2>&5
14230 ac_status=$?
14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; }; then
14233 eval libat_cv_have_at_fadd_8=yes
14234 else
14235 eval libat_cv_have_at_fadd_8=no
14236 fi
14237 else
14238 old_CFLAGS="$CFLAGS"
14239 # Compile unoptimized.
aaea76b3 14240 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14242 (eval $ac_compile) 2>&5
14243 ac_status=$?
14244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14245 test $ac_status = 0; }; then
14246 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14247 eval libat_cv_have_at_fadd_8=no
14248 else
14249 eval libat_cv_have_at_fadd_8=yes
14250 fi
0fe5522f
RH
14251 else
14252 eval libat_cv_have_at_fadd_8=no
48310492
RH
14253 fi
14254 CFLAGS="$old_CFLAGS"
14255 fi
14256 rm -f conftest*
14257
14258fi
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
14260$as_echo "$libat_cv_have_at_fadd_8" >&6; }
14261
14262
14263 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
14264
14265cat >>confdefs.h <<_ACEOF
14266#define HAVE_ATOMIC_FETCH_ADD_8 $yesno
14267_ACEOF
14268
14269
14270
14271
14272
14273
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
14275$as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
22e05272 14276if ${libat_cv_have_at_fadd_16+:} false; then :
48310492
RH
14277 $as_echo_n "(cached) " >&6
14278else
14279
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281/* end confdefs.h. */
14282
14283int
14284main ()
14285{
14286typedef int T __attribute__((mode(TI))); T *x, y;
14287 asm("" : "=g"(x), "=g"(y));
14288 __atomic_fetch_add (x, y, 0);
14289 __atomic_add_fetch (x, y, 0);
14290 ;
14291 return 0;
14292}
14293_ACEOF
14294 if test x$atomic_builtins_link_tests = xyes; then
14295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14296 (eval $ac_link) 2>&5
14297 ac_status=$?
14298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14299 test $ac_status = 0; }; then
14300 eval libat_cv_have_at_fadd_16=yes
14301 else
14302 eval libat_cv_have_at_fadd_16=no
14303 fi
14304 else
14305 old_CFLAGS="$CFLAGS"
14306 # Compile unoptimized.
aaea76b3 14307 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14309 (eval $ac_compile) 2>&5
14310 ac_status=$?
14311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14312 test $ac_status = 0; }; then
14313 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14314 eval libat_cv_have_at_fadd_16=no
14315 else
14316 eval libat_cv_have_at_fadd_16=yes
14317 fi
0fe5522f
RH
14318 else
14319 eval libat_cv_have_at_fadd_16=no
48310492
RH
14320 fi
14321 CFLAGS="$old_CFLAGS"
14322 fi
14323 rm -f conftest*
14324
14325fi
14326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
14327$as_echo "$libat_cv_have_at_fadd_16" >&6; }
14328
14329
14330 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
14331
14332cat >>confdefs.h <<_ACEOF
14333#define HAVE_ATOMIC_FETCH_ADD_16 $yesno
14334_ACEOF
14335
14336
14337
14338
14339
14340
14341
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
14343$as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
22e05272 14344if ${libat_cv_have_at_fop_1+:} false; then :
48310492
RH
14345 $as_echo_n "(cached) " >&6
14346else
14347
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349/* end confdefs.h. */
14350
14351int
14352main ()
14353{
14354typedef int T __attribute__((mode(QI))); T *x, y;
14355 asm("" : "=g"(x), "=g"(y));
14356 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14357 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14358 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14359 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14360 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14361 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14362 ;
14363 return 0;
14364}
14365_ACEOF
14366 if test x$atomic_builtins_link_tests = xyes; then
14367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14368 (eval $ac_link) 2>&5
14369 ac_status=$?
14370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14371 test $ac_status = 0; }; then
14372 eval libat_cv_have_at_fop_1=yes
14373 else
14374 eval libat_cv_have_at_fop_1=no
14375 fi
14376 else
14377 old_CFLAGS="$CFLAGS"
14378 # Compile unoptimized.
aaea76b3 14379 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14381 (eval $ac_compile) 2>&5
14382 ac_status=$?
14383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14384 test $ac_status = 0; }; then
14385 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14386 eval libat_cv_have_at_fop_1=no
14387 else
14388 eval libat_cv_have_at_fop_1=yes
14389 fi
0fe5522f
RH
14390 else
14391 eval libat_cv_have_at_fop_1=no
48310492
RH
14392 fi
14393 CFLAGS="$old_CFLAGS"
14394 fi
14395 rm -f conftest*
14396
14397fi
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
14399$as_echo "$libat_cv_have_at_fop_1" >&6; }
14400
14401
14402 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
14403
14404cat >>confdefs.h <<_ACEOF
14405#define HAVE_ATOMIC_FETCH_OP_1 $yesno
14406_ACEOF
14407
14408
14409
14410
14411
14412
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
14414$as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
22e05272 14415if ${libat_cv_have_at_fop_2+:} false; then :
48310492
RH
14416 $as_echo_n "(cached) " >&6
14417else
14418
14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420/* end confdefs.h. */
14421
14422int
14423main ()
14424{
14425typedef int T __attribute__((mode(HI))); T *x, y;
14426 asm("" : "=g"(x), "=g"(y));
14427 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14428 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14429 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14430 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14431 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14432 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14433 ;
14434 return 0;
14435}
14436_ACEOF
14437 if test x$atomic_builtins_link_tests = xyes; then
14438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14439 (eval $ac_link) 2>&5
14440 ac_status=$?
14441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14442 test $ac_status = 0; }; then
14443 eval libat_cv_have_at_fop_2=yes
14444 else
14445 eval libat_cv_have_at_fop_2=no
14446 fi
14447 else
14448 old_CFLAGS="$CFLAGS"
14449 # Compile unoptimized.
aaea76b3 14450 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14452 (eval $ac_compile) 2>&5
14453 ac_status=$?
14454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14455 test $ac_status = 0; }; then
14456 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14457 eval libat_cv_have_at_fop_2=no
14458 else
14459 eval libat_cv_have_at_fop_2=yes
14460 fi
0fe5522f
RH
14461 else
14462 eval libat_cv_have_at_fop_2=no
48310492
RH
14463 fi
14464 CFLAGS="$old_CFLAGS"
14465 fi
14466 rm -f conftest*
14467
14468fi
14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14470$as_echo "$libat_cv_have_at_fop_2" >&6; }
14471
14472
14473 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14474
14475cat >>confdefs.h <<_ACEOF
14476#define HAVE_ATOMIC_FETCH_OP_2 $yesno
14477_ACEOF
14478
14479
14480
14481
14482
14483
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14485$as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
22e05272 14486if ${libat_cv_have_at_fop_4+:} false; then :
48310492
RH
14487 $as_echo_n "(cached) " >&6
14488else
14489
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491/* end confdefs.h. */
14492
14493int
14494main ()
14495{
14496typedef int T __attribute__((mode(SI))); T *x, y;
14497 asm("" : "=g"(x), "=g"(y));
14498 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14499 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14500 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14501 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14502 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14503 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14504 ;
14505 return 0;
14506}
14507_ACEOF
14508 if test x$atomic_builtins_link_tests = xyes; then
14509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14510 (eval $ac_link) 2>&5
14511 ac_status=$?
14512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14513 test $ac_status = 0; }; then
14514 eval libat_cv_have_at_fop_4=yes
14515 else
14516 eval libat_cv_have_at_fop_4=no
14517 fi
14518 else
14519 old_CFLAGS="$CFLAGS"
14520 # Compile unoptimized.
aaea76b3 14521 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14523 (eval $ac_compile) 2>&5
14524 ac_status=$?
14525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14526 test $ac_status = 0; }; then
14527 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14528 eval libat_cv_have_at_fop_4=no
14529 else
14530 eval libat_cv_have_at_fop_4=yes
14531 fi
0fe5522f
RH
14532 else
14533 eval libat_cv_have_at_fop_4=no
48310492
RH
14534 fi
14535 CFLAGS="$old_CFLAGS"
14536 fi
14537 rm -f conftest*
14538
14539fi
14540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14541$as_echo "$libat_cv_have_at_fop_4" >&6; }
14542
14543
14544 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14545
14546cat >>confdefs.h <<_ACEOF
14547#define HAVE_ATOMIC_FETCH_OP_4 $yesno
14548_ACEOF
14549
14550
14551
14552
14553
14554
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14556$as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
22e05272 14557if ${libat_cv_have_at_fop_8+:} false; then :
48310492
RH
14558 $as_echo_n "(cached) " >&6
14559else
14560
14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562/* end confdefs.h. */
14563
14564int
14565main ()
14566{
14567typedef int T __attribute__((mode(DI))); T *x, y;
14568 asm("" : "=g"(x), "=g"(y));
14569 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14570 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14571 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14572 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14573 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14574 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14575 ;
14576 return 0;
14577}
14578_ACEOF
14579 if test x$atomic_builtins_link_tests = xyes; then
14580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14581 (eval $ac_link) 2>&5
14582 ac_status=$?
14583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14584 test $ac_status = 0; }; then
14585 eval libat_cv_have_at_fop_8=yes
14586 else
14587 eval libat_cv_have_at_fop_8=no
14588 fi
14589 else
14590 old_CFLAGS="$CFLAGS"
14591 # Compile unoptimized.
aaea76b3 14592 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14594 (eval $ac_compile) 2>&5
14595 ac_status=$?
14596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597 test $ac_status = 0; }; then
14598 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14599 eval libat_cv_have_at_fop_8=no
14600 else
14601 eval libat_cv_have_at_fop_8=yes
14602 fi
0fe5522f
RH
14603 else
14604 eval libat_cv_have_at_fop_8=no
48310492
RH
14605 fi
14606 CFLAGS="$old_CFLAGS"
14607 fi
14608 rm -f conftest*
14609
14610fi
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14612$as_echo "$libat_cv_have_at_fop_8" >&6; }
14613
14614
14615 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14616
14617cat >>confdefs.h <<_ACEOF
14618#define HAVE_ATOMIC_FETCH_OP_8 $yesno
14619_ACEOF
14620
14621
14622
14623
14624
14625
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14627$as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
22e05272 14628if ${libat_cv_have_at_fop_16+:} false; then :
48310492
RH
14629 $as_echo_n "(cached) " >&6
14630else
14631
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633/* end confdefs.h. */
14634
14635int
14636main ()
14637{
14638typedef int T __attribute__((mode(TI))); T *x, y;
14639 asm("" : "=g"(x), "=g"(y));
14640 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14641 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14642 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14643 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14644 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14645 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14646 ;
14647 return 0;
14648}
14649_ACEOF
14650 if test x$atomic_builtins_link_tests = xyes; then
14651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14652 (eval $ac_link) 2>&5
14653 ac_status=$?
14654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14655 test $ac_status = 0; }; then
14656 eval libat_cv_have_at_fop_16=yes
14657 else
14658 eval libat_cv_have_at_fop_16=no
14659 fi
14660 else
14661 old_CFLAGS="$CFLAGS"
14662 # Compile unoptimized.
aaea76b3 14663 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14665 (eval $ac_compile) 2>&5
14666 ac_status=$?
14667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14668 test $ac_status = 0; }; then
14669 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14670 eval libat_cv_have_at_fop_16=no
14671 else
14672 eval libat_cv_have_at_fop_16=yes
14673 fi
0fe5522f
RH
14674 else
14675 eval libat_cv_have_at_fop_16=no
48310492
RH
14676 fi
14677 CFLAGS="$old_CFLAGS"
14678 fi
14679 rm -f conftest*
14680
14681fi
14682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14683$as_echo "$libat_cv_have_at_fop_16" >&6; }
14684
14685
14686 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14687
14688cat >>confdefs.h <<_ACEOF
14689#define HAVE_ATOMIC_FETCH_OP_16 $yesno
14690_ACEOF
14691
14692
14693
14694
14695
14696
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14698$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22e05272 14699if ${ac_cv_c_bigendian+:} false; then :
48310492
RH
14700 $as_echo_n "(cached) " >&6
14701else
14702 ac_cv_c_bigendian=unknown
14703 # See if we're dealing with a universal compiler.
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705/* end confdefs.h. */
14706#ifndef __APPLE_CC__
14707 not a universal capable compiler
14708 #endif
14709 typedef int dummy;
14710
14711_ACEOF
14712if ac_fn_c_try_compile "$LINENO"; then :
14713
14714 # Check for potential -arch flags. It is not universal unless
14715 # there are at least two -arch flags with different values.
14716 ac_arch=
14717 ac_prev=
14718 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14719 if test -n "$ac_prev"; then
14720 case $ac_word in
14721 i?86 | x86_64 | ppc | ppc64)
14722 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14723 ac_arch=$ac_word
14724 else
14725 ac_cv_c_bigendian=universal
14726 break
14727 fi
14728 ;;
14729 esac
14730 ac_prev=
14731 elif test "x$ac_word" = "x-arch"; then
14732 ac_prev=arch
14733 fi
14734 done
14735fi
14736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14737 if test $ac_cv_c_bigendian = unknown; then
14738 # See if sys/param.h defines the BYTE_ORDER macro.
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740/* end confdefs.h. */
14741#include <sys/types.h>
14742 #include <sys/param.h>
14743
14744int
14745main ()
14746{
14747#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14748 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14749 && LITTLE_ENDIAN)
14750 bogus endian macros
14751 #endif
14752
14753 ;
14754 return 0;
14755}
14756_ACEOF
14757if ac_fn_c_try_compile "$LINENO"; then :
14758 # It does; now see whether it defined to BIG_ENDIAN or not.
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760/* end confdefs.h. */
14761#include <sys/types.h>
14762 #include <sys/param.h>
14763
14764int
14765main ()
14766{
14767#if BYTE_ORDER != BIG_ENDIAN
14768 not big endian
14769 #endif
14770
14771 ;
14772 return 0;
14773}
14774_ACEOF
14775if ac_fn_c_try_compile "$LINENO"; then :
14776 ac_cv_c_bigendian=yes
14777else
14778 ac_cv_c_bigendian=no
14779fi
14780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14781fi
14782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783 fi
14784 if test $ac_cv_c_bigendian = unknown; then
14785 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787/* end confdefs.h. */
14788#include <limits.h>
14789
14790int
14791main ()
14792{
14793#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14794 bogus endian macros
14795 #endif
14796
14797 ;
14798 return 0;
14799}
14800_ACEOF
14801if ac_fn_c_try_compile "$LINENO"; then :
14802 # It does; now see whether it defined to _BIG_ENDIAN or not.
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804/* end confdefs.h. */
14805#include <limits.h>
14806
14807int
14808main ()
14809{
14810#ifndef _BIG_ENDIAN
14811 not big endian
14812 #endif
14813
14814 ;
14815 return 0;
14816}
14817_ACEOF
14818if ac_fn_c_try_compile "$LINENO"; then :
14819 ac_cv_c_bigendian=yes
14820else
14821 ac_cv_c_bigendian=no
14822fi
14823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824fi
14825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 fi
14827 if test $ac_cv_c_bigendian = unknown; then
14828 # Compile a test program.
14829 if test "$cross_compiling" = yes; then :
14830 # Try to guess by grepping values from an object file.
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832/* end confdefs.h. */
14833short int ascii_mm[] =
14834 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14835 short int ascii_ii[] =
14836 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14837 int use_ascii (int i) {
14838 return ascii_mm[i] + ascii_ii[i];
14839 }
14840 short int ebcdic_ii[] =
14841 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14842 short int ebcdic_mm[] =
14843 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14844 int use_ebcdic (int i) {
14845 return ebcdic_mm[i] + ebcdic_ii[i];
14846 }
14847 extern int foo;
14848
14849int
14850main ()
14851{
14852return use_ascii (foo) == use_ebcdic (foo);
14853 ;
14854 return 0;
14855}
14856_ACEOF
14857if ac_fn_c_try_compile "$LINENO"; then :
14858 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14859 ac_cv_c_bigendian=yes
14860 fi
14861 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14862 if test "$ac_cv_c_bigendian" = unknown; then
14863 ac_cv_c_bigendian=no
14864 else
14865 # finding both strings is unlikely to happen, but who knows?
14866 ac_cv_c_bigendian=unknown
14867 fi
14868 fi
14869fi
14870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871else
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873/* end confdefs.h. */
14874$ac_includes_default
14875int
14876main ()
14877{
14878
14879 /* Are we little or big endian? From Harbison&Steele. */
14880 union
14881 {
14882 long int l;
14883 char c[sizeof (long int)];
14884 } u;
14885 u.l = 1;
14886 return u.c[sizeof (long int) - 1] == 1;
14887
14888 ;
14889 return 0;
14890}
14891_ACEOF
14892if ac_fn_c_try_run "$LINENO"; then :
14893 ac_cv_c_bigendian=no
14894else
14895 ac_cv_c_bigendian=yes
14896fi
14897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14898 conftest.$ac_objext conftest.beam conftest.$ac_ext
14899fi
14900
14901 fi
14902fi
14903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14904$as_echo "$ac_cv_c_bigendian" >&6; }
14905 case $ac_cv_c_bigendian in #(
14906 yes)
14907 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14908;; #(
14909 no)
14910 ;; #(
14911 universal)
14912
14913$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14914
14915 ;; #(
14916 *)
22e05272 14917 as_fn_error $? "unknown endianness
48310492
RH
14918 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14919 esac
14920
14921# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14922
14923
14924
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14926$as_echo_n "checking for the word size... " >&6; }
22e05272 14927if ${libat_cv_wordsize+:} false; then :
48310492
RH
14928 $as_echo_n "(cached) " >&6
14929else
14930 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14931
14932else
22e05272 14933 as_fn_error $? "Could not determine word size." "$LINENO" 5
48310492
RH
14934fi
14935
14936fi
14937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14938$as_echo "$libat_cv_wordsize" >&6; }
14939
14940cat >>confdefs.h <<_ACEOF
14941#define WORDSIZE $libat_cv_wordsize
14942_ACEOF
14943
14944
14945
14946# Check to see if -pthread or -lpthread is needed. Prefer the former.
14947# In case the pthread.h system header is not found, this test will fail.
14948case " $config_path " in
14949 *" posix "*)
14950 XPCFLAGS=""
14951 CFLAGS="$CFLAGS -pthread"
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953/* end confdefs.h. */
14954#include <pthread.h>
14955 void *g(void *d) { return NULL; }
14956int
14957main ()
14958{
14959pthread_t t; pthread_create(&t,NULL,g,NULL);
14960 ;
14961 return 0;
14962}
14963_ACEOF
14964if ac_fn_c_try_link "$LINENO"; then :
14965 XPCFLAGS=" -pthread"
14966else
14967 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969/* end confdefs.h. */
14970#include <pthread.h>
14971 void *g(void *d) { return NULL; }
14972int
14973main ()
14974{
14975pthread_t t; pthread_create(&t,NULL,g,NULL);
14976 ;
14977 return 0;
14978}
14979_ACEOF
14980if ac_fn_c_try_link "$LINENO"; then :
14981
14982else
22e05272 14983 as_fn_error $? "Pthreads are required to build libatomic" "$LINENO" 5
48310492
RH
14984fi
14985rm -f core conftest.err conftest.$ac_objext \
14986 conftest$ac_exeext conftest.$ac_ext
14987fi
14988rm -f core conftest.err conftest.$ac_objext \
14989 conftest$ac_exeext conftest.$ac_ext
e9885be5 14990 CFLAGS="$save_CFLAGS $XPCFLAGS"
48310492
RH
14991 ;;
14992esac
14993
14994# See what sort of export controls are available.
14995
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14997$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
22e05272 14998if ${libat_cv_have_attribute_visibility+:} false; then :
48310492
RH
14999 $as_echo_n "(cached) " >&6
15000else
15001
15002 save_CFLAGS="$CFLAGS"
15003 CFLAGS="$CFLAGS -Werror"
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005/* end confdefs.h. */
15006void __attribute__((visibility("hidden"))) foo(void) { }
15007int
15008main ()
15009{
15010
15011 ;
15012 return 0;
15013}
15014_ACEOF
15015if ac_fn_c_try_compile "$LINENO"; then :
15016 libat_cv_have_attribute_visibility=yes
15017else
15018 libat_cv_have_attribute_visibility=no
15019fi
15020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021 CFLAGS="$save_CFLAGS"
15022fi
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
15024$as_echo "$libat_cv_have_attribute_visibility" >&6; }
15025 if test $libat_cv_have_attribute_visibility = yes; then
15026
15027$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15028
15029 fi
15030
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15032$as_echo_n "checking whether the target supports dllexport... " >&6; }
22e05272 15033if ${libat_cv_have_attribute_dllexport+:} false; then :
48310492
RH
15034 $as_echo_n "(cached) " >&6
15035else
15036
15037 save_CFLAGS="$CFLAGS"
15038 CFLAGS="$CFLAGS -Werror"
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040/* end confdefs.h. */
15041void __attribute__((dllexport)) foo(void) { }
15042int
15043main ()
15044{
15045
15046 ;
15047 return 0;
15048}
15049_ACEOF
15050if ac_fn_c_try_compile "$LINENO"; then :
15051 libat_cv_have_attribute_dllexport=yes
15052else
15053 libat_cv_have_attribute_dllexport=no
15054fi
15055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 CFLAGS="$save_CFLAGS"
15057fi
15058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
15059$as_echo "$libat_cv_have_attribute_dllexport" >&6; }
15060 if test $libat_cv_have_attribute_dllexport = yes; then
15061
15062$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15063
15064 fi
15065
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15067$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
22e05272 15068if ${libat_cv_have_attribute_alias+:} false; then :
48310492
RH
15069 $as_echo_n "(cached) " >&6
15070else
15071
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h. */
15074
15075void foo(void) { }
15076extern void bar(void) __attribute__((alias("foo")));
15077int
15078main ()
15079{
15080bar();
15081 ;
15082 return 0;
15083}
15084_ACEOF
15085if ac_fn_c_try_link "$LINENO"; then :
15086 libat_cv_have_attribute_alias=yes
15087else
15088 libat_cv_have_attribute_alias=no
15089fi
15090rm -f core conftest.err conftest.$ac_objext \
15091 conftest$ac_exeext conftest.$ac_ext
15092fi
15093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
15094$as_echo "$libat_cv_have_attribute_alias" >&6; }
15095 if test $libat_cv_have_attribute_alias = yes; then
15096
15097$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15098
15099 fi
15100if test x$try_ifunc = xyes; then
15101
40448151
TS
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
15103$as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
22e05272 15104if ${libat_cv_have_ifunc+:} false; then :
48310492
RH
15105 $as_echo_n "(cached) " >&6
15106else
15107
15108 save_CFLAGS="$CFLAGS"
15109 CFLAGS="$CFLAGS -Werror"
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111/* end confdefs.h. */
15112
15113 int foo_alt(void) { return 0; }
bc437a56
MS
15114 typedef int F (void);
15115 F *foo_sel(void) { return foo_alt; }
48310492
RH
15116 int foo(void) __attribute__((ifunc("foo_sel")));
15117int
15118main ()
15119{
15120return foo();
15121 ;
15122 return 0;
15123}
15124_ACEOF
15125if ac_fn_c_try_link "$LINENO"; then :
15126 libat_cv_have_ifunc=yes
15127else
15128 libat_cv_have_ifunc=no
15129fi
15130rm -f core conftest.err conftest.$ac_objext \
15131 conftest$ac_exeext conftest.$ac_ext
15132fi
15133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
15134$as_echo "$libat_cv_have_ifunc" >&6; }
15135
15136 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
15137
15138cat >>confdefs.h <<_ACEOF
15139#define HAVE_IFUNC $yesno
15140_ACEOF
15141
15142
15143
15144fi
15145
15146# Check linker support.
15147
15148
15149# Check whether --with-gnu-ld was given.
15150if test "${with_gnu_ld+set}" = set; then :
15151 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15152else
15153 with_gnu_ld=no
15154fi
15155
15156ac_prog=ld
15157if test "$GCC" = yes; then
15158 # Check if gcc -print-prog-name=ld gives a path.
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15160$as_echo_n "checking for ld used by $CC... " >&6; }
15161 case $host in
15162 *-*-mingw*)
15163 # gcc leaves a trailing carriage return which upsets mingw
15164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15165 *)
15166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15167 esac
15168 case $ac_prog in
15169 # Accept absolute paths.
15170 [\\/]* | ?:[\\/]*)
15171 re_direlt='/[^/][^/]*/\.\./'
15172 # Canonicalize the pathname of ld
15173 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15174 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15175 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15176 done
15177 test -z "$LD" && LD="$ac_prog"
15178 ;;
15179 "")
15180 # If it fails, then pretend we aren't using GCC.
15181 ac_prog=ld
15182 ;;
15183 *)
15184 # If it is relative, then search for the first ld in PATH.
15185 with_gnu_ld=unknown
15186 ;;
15187 esac
15188elif test "$with_gnu_ld" = yes; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15190$as_echo_n "checking for GNU ld... " >&6; }
15191else
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15193$as_echo_n "checking for non-GNU ld... " >&6; }
15194fi
22e05272 15195if ${lt_cv_path_LD+:} false; then :
48310492
RH
15196 $as_echo_n "(cached) " >&6
15197else
15198 if test -z "$LD"; then
15199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15200 for ac_dir in $PATH; do
15201 IFS="$lt_save_ifs"
15202 test -z "$ac_dir" && ac_dir=.
15203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15204 lt_cv_path_LD="$ac_dir/$ac_prog"
15205 # Check to see if the program is GNU ld. I'd rather use --version,
15206 # but apparently some variants of GNU ld only accept -v.
15207 # Break only if it was the GNU/non-GNU ld that we prefer.
15208 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15209 *GNU* | *'with BFD'*)
15210 test "$with_gnu_ld" != no && break
15211 ;;
15212 *)
15213 test "$with_gnu_ld" != yes && break
15214 ;;
15215 esac
15216 fi
15217 done
15218 IFS="$lt_save_ifs"
15219else
15220 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15221fi
15222fi
15223
15224LD="$lt_cv_path_LD"
15225if test -n "$LD"; then
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15227$as_echo "$LD" >&6; }
15228else
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15230$as_echo "no" >&6; }
15231fi
22e05272 15232test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
48310492
RH
15233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15234$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 15235if ${lt_cv_prog_gnu_ld+:} false; then :
48310492
RH
15236 $as_echo_n "(cached) " >&6
15237else
15238 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15239case `$LD -v 2>&1 </dev/null` in
15240*GNU* | *'with BFD'*)
15241 lt_cv_prog_gnu_ld=yes
15242 ;;
15243*)
15244 lt_cv_prog_gnu_ld=no
15245 ;;
15246esac
15247fi
15248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15249$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15250with_gnu_ld=$lt_cv_prog_gnu_ld
15251
15252
15253
15254
15255
15256
15257
15258 # If we're not using GNU ld, then there's no point in even trying these
15259 # tests. Check for that first. We should have already tested for gld
15260 # by now (in libtool), but require it now just to be safe...
15261 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15262 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15263
15264
15265
15266 # The name set by libtool depends on the version of libtool. Shame on us
15267 # for depending on an impl detail, but c'est la vie. Older versions used
15268 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15269 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15270 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15271 # set (hence we're using an older libtool), then set it.
15272 if test x${with_gnu_ld+set} != xset; then
15273 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15274 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15275 with_gnu_ld=no
15276 else
15277 with_gnu_ld=$ac_cv_prog_gnu_ld
15278 fi
15279 fi
15280
15281 # Start by getting the version number. I think the libtool test already
15282 # does some of this, but throws away the result.
15283 libat_ld_is_gold=no
c99a6eb0 15284 libat_ld_is_mold=no
48310492
RH
15285 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15286 libat_ld_is_gold=yes
c99a6eb0
ML
15287 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
15288 libat_ld_is_mold=yes
48310492
RH
15289 fi
15290
15291 ldver=`$LD --version 2>/dev/null |
c6c2d1bc 15292 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
48310492
RH
15293
15294 libat_gnu_ld_version=`echo $ldver | \
15295 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15296
15297 # Set --gc-sections.
15298 if test "$with_gnu_ld" = "notbroken"; then
15299 # GNU ld it is! Joy and bunny rabbits!
15300
15301 # All these tests are for C++; save the language and the compiler flags.
15302 # Need to do this so that g++ won't try to link in libstdc++
15303 ac_test_CFLAGS="${CFLAGS+set}"
15304 ac_save_CFLAGS="$CFLAGS"
15305 CFLAGS='-x c++ -Wl,--gc-sections'
15306
15307 # Check for -Wl,--gc-sections
15308 # XXX This test is broken at the moment, as symbols required for linking
15309 # are now in libsupc++ (not built yet). In addition, this test has
15310 # cored on solaris in the past. In addition, --gc-sections doesn't
15311 # really work at the moment (keeps on discarding used sections, first
15312 # .eh_frame and now some of the glibc sections for iconv).
15313 # Bzzzzt. Thanks for playing, maybe next time.
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15315$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15316 if test "$cross_compiling" = yes; then :
15317 ac_sectionLDflags=yes
15318else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320/* end confdefs.h. */
15321
15322 int main(void)
15323 {
15324 try { throw 1; }
15325 catch (...) { };
15326 return 0;
15327 }
15328
15329_ACEOF
15330if ac_fn_c_try_run "$LINENO"; then :
15331 ac_sectionLDflags=yes
15332else
15333 ac_sectionLDflags=no
15334fi
15335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15336 conftest.$ac_objext conftest.beam conftest.$ac_ext
15337fi
15338
15339 if test "$ac_test_CFLAGS" = set; then
15340 CFLAGS="$ac_save_CFLAGS"
15341 else
15342 # this is the suspicious part
15343 CFLAGS=''
15344 fi
15345 if test "$ac_sectionLDflags" = "yes"; then
15346 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15347 fi
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15349$as_echo "$ac_sectionLDflags" >&6; }
15350 fi
15351
15352 # Set linker optimization flags.
15353 if test x"$with_gnu_ld" = x"yes"; then
15354 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15355 fi
15356
15357
15358
15359
15360
15361
15362 # Check whether --enable-symvers was given.
15363if test "${enable_symvers+set}" = set; then :
15364 enableval=$enable_symvers;
15365 case "$enableval" in
15366 yes|no|gnu*|sun) ;;
22e05272 15367 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
48310492
RH
15368 esac
15369
15370else
15371 enable_symvers=yes
15372fi
15373
15374
15375
15376# If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
15377# don't know enough about $LD to do tricks...
15378
15379
15380# Turn a 'yes' into a suitable default.
15381if test x$enable_symvers = xyes ; then
15382 # FIXME The following test is too strict, in theory.
15383 if test $enable_shared = no || test "x$LD" = x; then
15384 enable_symvers=no
15385 else
15386 if test $with_gnu_ld = yes ; then
15387 enable_symvers=gnu
15388 else
15389 case ${target_os} in
15390 # Sun symbol versioning exists since Solaris 2.5.
15391 solaris2.[5-9]* | solaris2.1[0-9]*)
15392 enable_symvers=sun ;;
15393 *)
15394 enable_symvers=no ;;
15395 esac
15396 fi
15397 fi
15398fi
15399
15400# Check if 'sun' was requested on non-Solaris 2 platforms.
15401if test x$enable_symvers = xsun ; then
15402 case ${target_os} in
15403 solaris2*)
15404 # All fine.
15405 ;;
15406 *)
15407 # Unlikely to work.
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15409$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15411$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15413$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15414 enable_symvers=no
15415 ;;
15416 esac
15417fi
15418
15419# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15420if test $enable_symvers != no; then
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15422$as_echo_n "checking for shared libgcc... " >&6; }
15423 ac_save_CFLAGS="$CFLAGS"
15424 CFLAGS=' -lgcc_s'
15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426/* end confdefs.h. */
15427
15428int
15429main ()
15430{
15431return 0;
15432 ;
15433 return 0;
15434}
15435_ACEOF
15436if ac_fn_c_try_link "$LINENO"; then :
15437 libat_shared_libgcc=yes
15438else
15439 libat_shared_libgcc=no
15440fi
15441rm -f core conftest.err conftest.$ac_objext \
15442 conftest$ac_exeext conftest.$ac_ext
15443 CFLAGS="$ac_save_CFLAGS"
15444 if test $libat_shared_libgcc = no; then
15445 cat > conftest.c <<EOF
15446int main (void) { return 0; }
15447EOF
15448 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15449 -shared -shared-libgcc -o conftest.so \
15450 conftest.c -v 2>&1 >/dev/null \
15451 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15452 rm -f conftest.c conftest.so
15453 if test x${libat_libgcc_s_suffix+set} = xset; then
15454 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456/* end confdefs.h. */
15457
15458int
15459main ()
15460{
15461return 0;
15462 ;
15463 return 0;
15464}
15465_ACEOF
15466if ac_fn_c_try_link "$LINENO"; then :
15467 libat_shared_libgcc=yes
15468fi
15469rm -f core conftest.err conftest.$ac_objext \
15470 conftest$ac_exeext conftest.$ac_ext
15471 CFLAGS="$ac_save_CFLAGS"
15472 fi
15473 fi
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15475$as_echo "$libat_shared_libgcc" >&6; }
15476fi
15477
15478# For GNU ld, we need at least this version. The format is described in
15479# LIBAT_CHECK_LINKER_FEATURES above.
15480libat_min_gnu_ld_version=21400
15481# XXXXXXXXXXX libat_gnu_ld_version=21390
15482
15483# Check to see if unspecified "yes" value can win, given results above.
15484# Change "yes" into either "no" or a style name.
15485if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
15486 if test $with_gnu_ld = yes; then
15487 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15488 enable_symvers=gnu
15489 elif test $libat_ld_is_gold = yes ; then
15490 enable_symvers=gnu
c99a6eb0
ML
15491 elif test $libat_ld_is_mold = yes ; then
15492 enable_symvers=gnu
48310492
RH
15493 else
15494 # The right tools, the right setup, but too old. Fallbacks?
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15496$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15498$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15500$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15502$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15503 if test $libat_gnu_ld_version -ge 21200 ; then
15504 # Globbing fix is present, proper block support is not.
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15506$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15507 enable_symvers=no
15508 else
15509 # 2.11 or older.
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15511$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15512 enable_symvers=no
15513 fi
15514 fi
15515 elif test $enable_symvers = sun; then
15516 : All interesting versions of Sun ld support sun style symbol versioning.
15517 else
15518 # just fail for now
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15520$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15522$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15524$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15526$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15527 enable_symvers=no
15528 fi
15529fi
15530if test $enable_symvers = gnu; then
15531
15532$as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15533
15534fi
15535
15536 if test $enable_symvers != no; then
15537 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
15538 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
15539else
15540 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
15541 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
15542fi
15543
15544 if test $enable_symvers = gnu; then
15545 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15546 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15547else
15548 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15549 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15550fi
15551
15552 if test $enable_symvers = sun; then
15553 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15554 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15555else
15556 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15557 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15558fi
15559
15560{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15561$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15562
15563
15564# Cleanup and exit.
15565CFLAGS="$save_CFLAGS"
15566cat >confcache <<\_ACEOF
15567# This file is a shell script that caches the results of configure
15568# tests run on this system so they can be shared between configure
15569# scripts and configure runs, see configure's option --config-cache.
15570# It is not useful on other systems. If it contains results you don't
15571# want to keep, you may remove or edit it.
15572#
15573# config.status only pays attention to the cache file if you give it
15574# the --recheck option to rerun configure.
15575#
15576# `ac_cv_env_foo' variables (set or unset) will be overridden when
15577# loading this file, other *unset* `ac_cv_foo' will be assigned the
15578# following values.
15579
15580_ACEOF
15581
15582# The following way of writing the cache mishandles newlines in values,
15583# but we know of no workaround that is simple, portable, and efficient.
15584# So, we kill variables containing newlines.
15585# Ultrix sh set writes to stderr and can't be redirected directly,
15586# and sets the high bit in the cache file unless we assign to the vars.
15587(
15588 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15589 eval ac_val=\$$ac_var
15590 case $ac_val in #(
15591 *${as_nl}*)
15592 case $ac_var in #(
15593 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15594$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15595 esac
15596 case $ac_var in #(
15597 _ | IFS | as_nl) ;; #(
15598 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15599 *) { eval $ac_var=; unset $ac_var;} ;;
15600 esac ;;
15601 esac
15602 done
15603
15604 (set) 2>&1 |
15605 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15606 *${as_nl}ac_space=\ *)
15607 # `set' does not quote correctly, so add quotes: double-quote
15608 # substitution turns \\\\ into \\, and sed turns \\ into \.
15609 sed -n \
15610 "s/'/'\\\\''/g;
15611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15612 ;; #(
15613 *)
15614 # `set' quotes correctly as required by POSIX, so do not add quotes.
15615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15616 ;;
15617 esac |
15618 sort
15619) |
15620 sed '
15621 /^ac_cv_env_/b end
15622 t clear
15623 :clear
15624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15625 t end
15626 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15627 :end' >>confcache
15628if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15629 if test -w "$cache_file"; then
22e05272 15630 if test "x$cache_file" != "x/dev/null"; then
48310492
RH
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15632$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15633 if test ! -f "$cache_file" || test -h "$cache_file"; then
15634 cat confcache >"$cache_file"
15635 else
15636 case $cache_file in #(
15637 */* | ?:*)
15638 mv -f confcache "$cache_file"$$ &&
15639 mv -f "$cache_file"$$ "$cache_file" ;; #(
15640 *)
15641 mv -f confcache "$cache_file" ;;
15642 esac
15643 fi
15644 fi
48310492
RH
15645 else
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15647$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15648 fi
15649fi
15650rm -f confcache
15651
45ba6bf2
DS
15652# Check whether --enable-werror was given.
15653if test "${enable_werror+set}" = set; then :
15654 enableval=$enable_werror;
15655fi
15656
48310492 15657# Add -Wall -Werror if we are using GCC.
45ba6bf2
DS
15658if test "x$GCC" = "xyes"; then :
15659 XCFLAGS="$XCFLAGS -Wall"
15660fi
15661if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
15662 XCFLAGS="$XCFLAGS -Werror"
48310492
RH
15663fi
15664
efc643e9
IT
15665# Add CET specific flags if CET is enabled
15666 # Check whether --enable-cet was given.
15667if test "${enable_cet+set}" = set; then :
15668 enableval=$enable_cet;
15669 case "$enableval" in
a0e1df88 15670 yes|no|auto) ;;
22e05272 15671 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
efc643e9
IT
15672 esac
15673
15674else
8d286dd1 15675 enable_cet=auto
efc643e9
IT
15676fi
15677
15678
14e335ed
IT
15679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15680$as_echo_n "checking for CET support... " >&6; }
15681
9051b548 15682# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
efc643e9
IT
15683case "$host" in
15684 i[34567]86-*-linux* | x86_64-*-linux*)
15685 case "$enable_cet" in
a0e1df88 15686 auto)
14e335ed 15687 # Check if target supports multi-byte NOPs
2755037e 15688 # and if compiler and assembler support CET insn.
9051b548 15689 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 15690 CFLAGS="$CFLAGS -fcf-protection"
efc643e9
IT
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692/* end confdefs.h. */
15693
15694int
15695main ()
15696{
14e335ed
IT
15697
15698#if !defined(__SSE2__)
15699#error target does not support multi-byte NOPs
15700#else
efc643e9 15701asm ("setssbsy");
14e335ed
IT
15702#endif
15703
efc643e9
IT
15704 ;
15705 return 0;
15706}
15707_ACEOF
15708if ac_fn_c_try_compile "$LINENO"; then :
15709 enable_cet=yes
15710else
15711 enable_cet=no
15712fi
15713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 15714 CFLAGS="$cet_save_CFLAGS"
efc643e9
IT
15715 ;;
15716 yes)
15717 # Check if assembler supports CET.
15718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719/* end confdefs.h. */
15720
15721int
15722main ()
15723{
15724asm ("setssbsy");
15725 ;
15726 return 0;
15727}
15728_ACEOF
15729if ac_fn_c_try_compile "$LINENO"; then :
15730
15731else
22e05272 15732 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
efc643e9
IT
15733fi
15734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15735 ;;
15736 esac
15737 ;;
15738 *)
15739 enable_cet=no
15740 ;;
15741esac
15742if test x$enable_cet = xyes; then
7b47ecf2 15743 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15745$as_echo "yes" >&6; }
15746else
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15748$as_echo "no" >&6; }
efc643e9
IT
15749fi
15750
15751XCFLAGS="$XCFLAGS $CET_FLAGS"
15752
48310492
RH
15753XCFLAGS="$XCFLAGS $XPCFLAGS"
15754
15755
15756
15757
15758
15759
15760
47ddb895
DE
15761# Conditionalize the makefile for this target machine.
15762tmake_file_=
15763for f in ${tmake_file}
15764do
15765 if test -f ${srcdir}/config/$f
15766 then
15767 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15768 fi
15769done
15770tmake_file="${tmake_file_}"
15771
15772
15773
48310492
RH
15774 if test x$libat_cv_have_ifunc = xyes; then
15775 HAVE_IFUNC_TRUE=
15776 HAVE_IFUNC_FALSE='#'
15777else
15778 HAVE_IFUNC_TRUE='#'
15779 HAVE_IFUNC_FALSE=
15780fi
15781
141abc6f
SE
15782 if expr "$config_path" : ".* linux/aarch64 .*" > /dev/null; then
15783 ARCH_AARCH64_LINUX_TRUE=
15784 ARCH_AARCH64_LINUX_FALSE='#'
15785else
15786 ARCH_AARCH64_LINUX_TRUE='#'
15787 ARCH_AARCH64_LINUX_FALSE=
15788fi
15789
48310492
RH
15790 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
15791 ARCH_ARM_LINUX_TRUE=
15792 ARCH_ARM_LINUX_FALSE='#'
15793else
15794 ARCH_ARM_LINUX_TRUE='#'
15795 ARCH_ARM_LINUX_FALSE=
15796fi
15797
15798 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
15799 ARCH_I386_TRUE=
15800 ARCH_I386_FALSE='#'
15801else
15802 ARCH_I386_TRUE='#'
15803 ARCH_I386_FALSE=
15804fi
15805
15806 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
15807 ARCH_X86_64_TRUE=
15808 ARCH_X86_64_FALSE='#'
15809else
15810 ARCH_X86_64_TRUE='#'
15811 ARCH_X86_64_FALSE=
15812fi
15813
15814
3c36aa6b
JJ
15815# Determine what GCC version number to use in filesystem paths.
15816
15817 get_gcc_base_ver="cat"
15818
15819# Check whether --with-gcc-major-version-only was given.
15820if test "${with_gcc_major_version_only+set}" = set; then :
15821 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 15822 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
15823 fi
15824
15825fi
15826
15827
15828
15829
48310492
RH
15830if test ${multilib} = yes; then
15831 multilib_arg="--enable-multilib"
15832else
15833 multilib_arg=
15834fi
15835
15836ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15837
5ff06d76
MR
15838ac_config_files="$ac_config_files testsuite/libatomic-site-extra.exp"
15839
48310492
RH
15840cat >confcache <<\_ACEOF
15841# This file is a shell script that caches the results of configure
15842# tests run on this system so they can be shared between configure
15843# scripts and configure runs, see configure's option --config-cache.
15844# It is not useful on other systems. If it contains results you don't
15845# want to keep, you may remove or edit it.
15846#
15847# config.status only pays attention to the cache file if you give it
15848# the --recheck option to rerun configure.
15849#
15850# `ac_cv_env_foo' variables (set or unset) will be overridden when
15851# loading this file, other *unset* `ac_cv_foo' will be assigned the
15852# following values.
15853
15854_ACEOF
15855
15856# The following way of writing the cache mishandles newlines in values,
15857# but we know of no workaround that is simple, portable, and efficient.
15858# So, we kill variables containing newlines.
15859# Ultrix sh set writes to stderr and can't be redirected directly,
15860# and sets the high bit in the cache file unless we assign to the vars.
15861(
15862 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15863 eval ac_val=\$$ac_var
15864 case $ac_val in #(
15865 *${as_nl}*)
15866 case $ac_var in #(
15867 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15868$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15869 esac
15870 case $ac_var in #(
15871 _ | IFS | as_nl) ;; #(
15872 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15873 *) { eval $ac_var=; unset $ac_var;} ;;
15874 esac ;;
15875 esac
15876 done
15877
15878 (set) 2>&1 |
15879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15880 *${as_nl}ac_space=\ *)
15881 # `set' does not quote correctly, so add quotes: double-quote
15882 # substitution turns \\\\ into \\, and sed turns \\ into \.
15883 sed -n \
15884 "s/'/'\\\\''/g;
15885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15886 ;; #(
15887 *)
15888 # `set' quotes correctly as required by POSIX, so do not add quotes.
15889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15890 ;;
15891 esac |
15892 sort
15893) |
15894 sed '
15895 /^ac_cv_env_/b end
15896 t clear
15897 :clear
15898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15899 t end
15900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15901 :end' >>confcache
15902if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15903 if test -w "$cache_file"; then
22e05272 15904 if test "x$cache_file" != "x/dev/null"; then
48310492
RH
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15906$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15907 if test ! -f "$cache_file" || test -h "$cache_file"; then
15908 cat confcache >"$cache_file"
15909 else
15910 case $cache_file in #(
15911 */* | ?:*)
15912 mv -f confcache "$cache_file"$$ &&
15913 mv -f "$cache_file"$$ "$cache_file" ;; #(
15914 *)
15915 mv -f confcache "$cache_file" ;;
15916 esac
15917 fi
15918 fi
48310492
RH
15919 else
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15921$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15922 fi
15923fi
15924rm -f confcache
15925
15926test "x$prefix" = xNONE && prefix=$ac_default_prefix
15927# Let make expand exec_prefix.
15928test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15929
15930DEFS=-DHAVE_CONFIG_H
15931
15932ac_libobjs=
15933ac_ltlibobjs=
22e05272 15934U=
48310492
RH
15935for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15936 # 1. Remove the extension, and $U if already installed.
15937 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15938 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15940 # will be set to the directory where LIBOBJS objects are built.
15941 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15942 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15943done
15944LIBOBJS=$ac_libobjs
15945
15946LTLIBOBJS=$ac_ltlibobjs
15947
15948
15949if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
22e05272 15950 as_fn_error $? "conditional \"GENINSRC\" was never defined.
48310492
RH
15951Usually this means the macro was only invoked conditionally." "$LINENO" 5
15952fi
22e05272
JM
15953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15954$as_echo_n "checking that generated files are newer than configure... " >&6; }
15955 if test -n "$am_sleep_pid"; then
15956 # Hide warnings about reused PIDs.
15957 wait $am_sleep_pid 2>/dev/null
15958 fi
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15960$as_echo "done" >&6; }
48310492
RH
15961 if test -n "$EXEEXT"; then
15962 am__EXEEXT_TRUE=
15963 am__EXEEXT_FALSE='#'
15964else
15965 am__EXEEXT_TRUE='#'
15966 am__EXEEXT_FALSE=
15967fi
15968
15969if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 15970 as_fn_error $? "conditional \"AMDEP\" was never defined.
48310492
RH
15971Usually this means the macro was only invoked conditionally." "$LINENO" 5
15972fi
15973if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 15974 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
48310492
RH
15975Usually this means the macro was only invoked conditionally." "$LINENO" 5
15976fi
15977if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22e05272 15978 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
48310492
RH
15979Usually this means the macro was only invoked conditionally." "$LINENO" 5
15980fi
fa3cd3c3 15981if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15982 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
fa3cd3c3
RH
15983Usually this means the macro was only invoked conditionally." "$LINENO" 5
15984fi
6a6d3817
IS
15985if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
15986 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
15987Usually this means the macro was only invoked conditionally." "$LINENO" 5
15988fi
48310492
RH
15989
15990if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
22e05272 15991 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
48310492
RH
15992Usually this means the macro was only invoked conditionally." "$LINENO" 5
15993fi
15994if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
22e05272 15995 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
48310492
RH
15996Usually this means the macro was only invoked conditionally." "$LINENO" 5
15997fi
15998if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
22e05272 15999 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
48310492
RH
16000Usually this means the macro was only invoked conditionally." "$LINENO" 5
16001fi
16002if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
22e05272 16003 as_fn_error $? "conditional \"HAVE_IFUNC\" was never defined.
48310492
RH
16004Usually this means the macro was only invoked conditionally." "$LINENO" 5
16005fi
141abc6f 16006if test -z "${ARCH_AARCH64_LINUX_TRUE}" && test -z "${ARCH_AARCH64_LINUX_FALSE}"; then
22e05272 16007 as_fn_error $? "conditional \"ARCH_AARCH64_LINUX\" was never defined.
141abc6f
SE
16008Usually this means the macro was only invoked conditionally." "$LINENO" 5
16009fi
48310492 16010if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
22e05272 16011 as_fn_error $? "conditional \"ARCH_ARM_LINUX\" was never defined.
48310492
RH
16012Usually this means the macro was only invoked conditionally." "$LINENO" 5
16013fi
16014if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
22e05272 16015 as_fn_error $? "conditional \"ARCH_I386\" was never defined.
48310492
RH
16016Usually this means the macro was only invoked conditionally." "$LINENO" 5
16017fi
16018if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
22e05272 16019 as_fn_error $? "conditional \"ARCH_X86_64\" was never defined.
48310492
RH
16020Usually this means the macro was only invoked conditionally." "$LINENO" 5
16021fi
16022
22e05272 16023: "${CONFIG_STATUS=./config.status}"
48310492
RH
16024ac_write_fail=0
16025ac_clean_files_save=$ac_clean_files
16026ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16027{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16028$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16029as_write_fail=0
16030cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16031#! $SHELL
16032# Generated by $as_me.
16033# Run this file to recreate the current configuration.
16034# Compiler output produced by configure, useful for debugging
16035# configure, is in config.log if it exists.
16036
16037debug=false
16038ac_cs_recheck=false
16039ac_cs_silent=false
16040
16041SHELL=\${CONFIG_SHELL-$SHELL}
16042export SHELL
16043_ASEOF
16044cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16045## -------------------- ##
16046## M4sh Initialization. ##
16047## -------------------- ##
16048
16049# Be more Bourne compatible
16050DUALCASE=1; export DUALCASE # for MKS sh
16051if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16052 emulate sh
16053 NULLCMD=:
16054 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16055 # is contrary to our usage. Disable this feature.
16056 alias -g '${1+"$@"}'='"$@"'
16057 setopt NO_GLOB_SUBST
16058else
16059 case `(set -o) 2>/dev/null` in #(
16060 *posix*) :
16061 set -o posix ;; #(
16062 *) :
16063 ;;
16064esac
16065fi
16066
16067
16068as_nl='
16069'
16070export as_nl
16071# Printing a long string crashes Solaris 7 /usr/bin/printf.
16072as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16073as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16074as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16075# Prefer a ksh shell builtin over an external printf program on Solaris,
16076# but without wasting forks for bash or zsh.
16077if test -z "$BASH_VERSION$ZSH_VERSION" \
16078 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16079 as_echo='print -r --'
16080 as_echo_n='print -rn --'
16081elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16082 as_echo='printf %s\n'
16083 as_echo_n='printf %s'
16084else
16085 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16086 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16087 as_echo_n='/usr/ucb/echo -n'
16088 else
16089 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16090 as_echo_n_body='eval
16091 arg=$1;
16092 case $arg in #(
16093 *"$as_nl"*)
16094 expr "X$arg" : "X\\(.*\\)$as_nl";
16095 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16096 esac;
16097 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16098 '
16099 export as_echo_n_body
16100 as_echo_n='sh -c $as_echo_n_body as_echo'
16101 fi
16102 export as_echo_body
16103 as_echo='sh -c $as_echo_body as_echo'
16104fi
16105
16106# The user is always right.
16107if test "${PATH_SEPARATOR+set}" != set; then
16108 PATH_SEPARATOR=:
16109 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16110 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16111 PATH_SEPARATOR=';'
16112 }
16113fi
16114
16115
16116# IFS
16117# We need space, tab and new line, in precisely that order. Quoting is
16118# there to prevent editors from complaining about space-tab.
16119# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16120# splitting by setting IFS to empty value.)
16121IFS=" "" $as_nl"
16122
16123# Find who we are. Look in the path if we contain no directory separator.
22e05272 16124as_myself=
48310492
RH
16125case $0 in #((
16126 *[\\/]* ) as_myself=$0 ;;
16127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16128for as_dir in $PATH
16129do
16130 IFS=$as_save_IFS
16131 test -z "$as_dir" && as_dir=.
16132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16133 done
16134IFS=$as_save_IFS
16135
16136 ;;
16137esac
16138# We did not find ourselves, most probably we were run as `sh COMMAND'
16139# in which case we are not to be found in the path.
16140if test "x$as_myself" = x; then
16141 as_myself=$0
16142fi
16143if test ! -f "$as_myself"; then
16144 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16145 exit 1
16146fi
16147
16148# Unset variables that we do not need and which cause bugs (e.g. in
16149# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16150# suppresses any "Segmentation fault" message there. '((' could
16151# trigger a bug in pdksh 5.2.14.
16152for as_var in BASH_ENV ENV MAIL MAILPATH
16153do eval test x\${$as_var+set} = xset \
16154 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16155done
16156PS1='$ '
16157PS2='> '
16158PS4='+ '
16159
16160# NLS nuisances.
16161LC_ALL=C
16162export LC_ALL
16163LANGUAGE=C
16164export LANGUAGE
16165
16166# CDPATH.
16167(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16168
16169
22e05272
JM
16170# as_fn_error STATUS ERROR [LINENO LOG_FD]
16171# ----------------------------------------
48310492
RH
16172# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16173# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 16174# script with STATUS, using 1 if that was 0.
48310492
RH
16175as_fn_error ()
16176{
22e05272
JM
16177 as_status=$1; test $as_status -eq 0 && as_status=1
16178 if test "$4"; then
16179 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16180 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
48310492 16181 fi
22e05272 16182 $as_echo "$as_me: error: $2" >&2
48310492
RH
16183 as_fn_exit $as_status
16184} # as_fn_error
16185
16186
16187# as_fn_set_status STATUS
16188# -----------------------
16189# Set $? to STATUS, without forking.
16190as_fn_set_status ()
16191{
16192 return $1
16193} # as_fn_set_status
16194
16195# as_fn_exit STATUS
16196# -----------------
16197# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16198as_fn_exit ()
16199{
16200 set +e
16201 as_fn_set_status $1
16202 exit $1
16203} # as_fn_exit
16204
16205# as_fn_unset VAR
16206# ---------------
16207# Portably unset VAR.
16208as_fn_unset ()
16209{
16210 { eval $1=; unset $1;}
16211}
16212as_unset=as_fn_unset
16213# as_fn_append VAR VALUE
16214# ----------------------
16215# Append the text in VALUE to the end of the definition contained in VAR. Take
16216# advantage of any shell optimizations that allow amortized linear growth over
16217# repeated appends, instead of the typical quadratic growth present in naive
16218# implementations.
16219if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16220 eval 'as_fn_append ()
16221 {
16222 eval $1+=\$2
16223 }'
16224else
16225 as_fn_append ()
16226 {
16227 eval $1=\$$1\$2
16228 }
16229fi # as_fn_append
16230
16231# as_fn_arith ARG...
16232# ------------------
16233# Perform arithmetic evaluation on the ARGs, and store the result in the
16234# global $as_val. Take advantage of shells that can avoid forks. The arguments
16235# must be portable across $(()) and expr.
16236if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16237 eval 'as_fn_arith ()
16238 {
16239 as_val=$(( $* ))
16240 }'
16241else
16242 as_fn_arith ()
16243 {
16244 as_val=`expr "$@" || test $? -eq 1`
16245 }
16246fi # as_fn_arith
16247
16248
16249if expr a : '\(a\)' >/dev/null 2>&1 &&
16250 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16251 as_expr=expr
16252else
16253 as_expr=false
16254fi
16255
16256if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16257 as_basename=basename
16258else
16259 as_basename=false
16260fi
16261
16262if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16263 as_dirname=dirname
16264else
16265 as_dirname=false
16266fi
16267
16268as_me=`$as_basename -- "$0" ||
16269$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16270 X"$0" : 'X\(//\)$' \| \
16271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16272$as_echo X/"$0" |
16273 sed '/^.*\/\([^/][^/]*\)\/*$/{
16274 s//\1/
16275 q
16276 }
16277 /^X\/\(\/\/\)$/{
16278 s//\1/
16279 q
16280 }
16281 /^X\/\(\/\).*/{
16282 s//\1/
16283 q
16284 }
16285 s/.*/./; q'`
16286
16287# Avoid depending upon Character Ranges.
16288as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16289as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16290as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16291as_cr_digits='0123456789'
16292as_cr_alnum=$as_cr_Letters$as_cr_digits
16293
16294ECHO_C= ECHO_N= ECHO_T=
16295case `echo -n x` in #(((((
16296-n*)
16297 case `echo 'xy\c'` in
16298 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16299 xy) ECHO_C='\c';;
16300 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16301 ECHO_T=' ';;
16302 esac;;
16303*)
16304 ECHO_N='-n';;
16305esac
16306
16307rm -f conf$$ conf$$.exe conf$$.file
16308if test -d conf$$.dir; then
16309 rm -f conf$$.dir/conf$$.file
16310else
16311 rm -f conf$$.dir
16312 mkdir conf$$.dir 2>/dev/null
16313fi
16314if (echo >conf$$.file) 2>/dev/null; then
16315 if ln -s conf$$.file conf$$ 2>/dev/null; then
16316 as_ln_s='ln -s'
16317 # ... but there are two gotchas:
16318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 16320 # In both cases, we have to default to `cp -pR'.
48310492 16321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 16322 as_ln_s='cp -pR'
48310492
RH
16323 elif ln conf$$.file conf$$ 2>/dev/null; then
16324 as_ln_s=ln
16325 else
22e05272 16326 as_ln_s='cp -pR'
48310492
RH
16327 fi
16328else
22e05272 16329 as_ln_s='cp -pR'
48310492
RH
16330fi
16331rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16332rmdir conf$$.dir 2>/dev/null
16333
16334
16335# as_fn_mkdir_p
16336# -------------
16337# Create "$as_dir" as a directory, including parents if necessary.
16338as_fn_mkdir_p ()
16339{
16340
16341 case $as_dir in #(
16342 -*) as_dir=./$as_dir;;
16343 esac
16344 test -d "$as_dir" || eval $as_mkdir_p || {
16345 as_dirs=
16346 while :; do
16347 case $as_dir in #(
16348 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16349 *) as_qdir=$as_dir;;
16350 esac
16351 as_dirs="'$as_qdir' $as_dirs"
16352 as_dir=`$as_dirname -- "$as_dir" ||
16353$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16354 X"$as_dir" : 'X\(//\)[^/]' \| \
16355 X"$as_dir" : 'X\(//\)$' \| \
16356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16357$as_echo X"$as_dir" |
16358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16359 s//\1/
16360 q
16361 }
16362 /^X\(\/\/\)[^/].*/{
16363 s//\1/
16364 q
16365 }
16366 /^X\(\/\/\)$/{
16367 s//\1/
16368 q
16369 }
16370 /^X\(\/\).*/{
16371 s//\1/
16372 q
16373 }
16374 s/.*/./; q'`
16375 test -d "$as_dir" && break
16376 done
16377 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 16378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
48310492
RH
16379
16380
16381} # as_fn_mkdir_p
16382if mkdir -p . 2>/dev/null; then
16383 as_mkdir_p='mkdir -p "$as_dir"'
16384else
16385 test -d ./-p && rmdir ./-p
16386 as_mkdir_p=false
16387fi
16388
22e05272
JM
16389
16390# as_fn_executable_p FILE
16391# -----------------------
16392# Test if FILE is an executable regular file.
16393as_fn_executable_p ()
16394{
16395 test -f "$1" && test -x "$1"
16396} # as_fn_executable_p
16397as_test_x='test -x'
16398as_executable_p=as_fn_executable_p
48310492
RH
16399
16400# Sed expression to map a string onto a valid CPP name.
16401as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16402
16403# Sed expression to map a string onto a valid variable name.
16404as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16405
16406
16407exec 6>&1
16408## ----------------------------------- ##
16409## Main body of $CONFIG_STATUS script. ##
16410## ----------------------------------- ##
16411_ASEOF
16412test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16413
16414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16415# Save the log message, to keep $0 and so on meaningful, and to
16416# report actual input values of CONFIG_FILES etc. instead of their
16417# values after options handling.
16418ac_log="
16419This file was extended by GNU Atomic Library $as_me 1.0, which was
22e05272 16420generated by GNU Autoconf 2.69. Invocation command line was
48310492
RH
16421
16422 CONFIG_FILES = $CONFIG_FILES
16423 CONFIG_HEADERS = $CONFIG_HEADERS
16424 CONFIG_LINKS = $CONFIG_LINKS
16425 CONFIG_COMMANDS = $CONFIG_COMMANDS
16426 $ $0 $@
16427
16428on `(hostname || uname -n) 2>/dev/null | sed 1q`
16429"
16430
16431_ACEOF
16432
16433case $ac_config_files in *"
16434"*) set x $ac_config_files; shift; ac_config_files=$*;;
16435esac
16436
16437case $ac_config_headers in *"
16438"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16439esac
16440
16441
16442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443# Files that config.status was made for.
16444config_files="$ac_config_files"
16445config_headers="$ac_config_headers"
16446config_commands="$ac_config_commands"
16447
16448_ACEOF
16449
16450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16451ac_cs_usage="\
16452\`$as_me' instantiates files and other configuration actions
16453from templates according to the current configuration. Unless the files
16454and actions are specified as TAGs, all are instantiated by default.
16455
16456Usage: $0 [OPTION]... [TAG]...
16457
16458 -h, --help print this help, then exit
16459 -V, --version print version number and configuration settings, then exit
22e05272 16460 --config print configuration, then exit
48310492
RH
16461 -q, --quiet, --silent
16462 do not print progress messages
16463 -d, --debug don't remove temporary files
16464 --recheck update $as_me by reconfiguring in the same conditions
16465 --file=FILE[:TEMPLATE]
16466 instantiate the configuration file FILE
16467 --header=FILE[:TEMPLATE]
16468 instantiate the configuration header FILE
16469
16470Configuration files:
16471$config_files
16472
16473Configuration headers:
16474$config_headers
16475
16476Configuration commands:
16477$config_commands
16478
16479Report bugs to the package provider.
16480GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
16481General help using GNU software: <http://www.gnu.org/gethelp/>."
16482
16483_ACEOF
16484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16485ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
48310492
RH
16486ac_cs_version="\\
16487GNU Atomic Library config.status 1.0
22e05272
JM
16488configured by $0, generated by GNU Autoconf 2.69,
16489 with options \\"\$ac_cs_config\\"
48310492 16490
22e05272 16491Copyright (C) 2012 Free Software Foundation, Inc.
48310492
RH
16492This config.status script is free software; the Free Software Foundation
16493gives unlimited permission to copy, distribute and modify it."
16494
16495ac_pwd='$ac_pwd'
16496srcdir='$srcdir'
16497INSTALL='$INSTALL'
16498MKDIR_P='$MKDIR_P'
16499AWK='$AWK'
16500test -n "\$AWK" || AWK=awk
16501_ACEOF
16502
16503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504# The default lists apply if the user does not specify any file.
16505ac_need_defaults=:
16506while test $# != 0
16507do
16508 case $1 in
22e05272 16509 --*=?*)
48310492
RH
16510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16511 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16512 ac_shift=:
16513 ;;
22e05272
JM
16514 --*=)
16515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16516 ac_optarg=
16517 ac_shift=:
16518 ;;
48310492
RH
16519 *)
16520 ac_option=$1
16521 ac_optarg=$2
16522 ac_shift=shift
16523 ;;
16524 esac
16525
16526 case $ac_option in
16527 # Handling of the options.
16528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16529 ac_cs_recheck=: ;;
16530 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16531 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16532 --config | --confi | --conf | --con | --co | --c )
16533 $as_echo "$ac_cs_config"; exit ;;
48310492
RH
16534 --debug | --debu | --deb | --de | --d | -d )
16535 debug=: ;;
16536 --file | --fil | --fi | --f )
16537 $ac_shift
16538 case $ac_optarg in
16539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16540 '') as_fn_error $? "missing file argument" ;;
48310492
RH
16541 esac
16542 as_fn_append CONFIG_FILES " '$ac_optarg'"
16543 ac_need_defaults=false;;
16544 --header | --heade | --head | --hea )
16545 $ac_shift
16546 case $ac_optarg in
16547 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16548 esac
16549 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16550 ac_need_defaults=false;;
16551 --he | --h)
16552 # Conflict between --help and --header
22e05272 16553 as_fn_error $? "ambiguous option: \`$1'
48310492
RH
16554Try \`$0 --help' for more information.";;
16555 --help | --hel | -h )
16556 $as_echo "$ac_cs_usage"; exit ;;
16557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16559 ac_cs_silent=: ;;
16560
16561 # This is an error.
22e05272 16562 -*) as_fn_error $? "unrecognized option: \`$1'
48310492
RH
16563Try \`$0 --help' for more information." ;;
16564
16565 *) as_fn_append ac_config_targets " $1"
16566 ac_need_defaults=false ;;
16567
16568 esac
16569 shift
16570done
16571
16572ac_configure_extra_args=
16573
16574if $ac_cs_silent; then
16575 exec 6>/dev/null
16576 ac_configure_extra_args="$ac_configure_extra_args --silent"
16577fi
16578
16579_ACEOF
16580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16581if \$ac_cs_recheck; then
22e05272 16582 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48310492
RH
16583 shift
16584 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16585 CONFIG_SHELL='$SHELL'
16586 export CONFIG_SHELL
16587 exec "\$@"
16588fi
16589
16590_ACEOF
16591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16592exec 5>>config.log
16593{
16594 echo
16595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16596## Running $as_me. ##
16597_ASBOX
16598 $as_echo "$ac_log"
16599} >&5
16600
16601_ACEOF
16602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16603#
16604# INIT-COMMANDS
16605#
16606
16607srcdir="$srcdir"
16608host="$host"
16609target="$target"
16610with_multisubdir="$with_multisubdir"
16611with_multisrctop="$with_multisrctop"
16612with_target_subdir="$with_target_subdir"
16613ac_configure_args="${multilib_arg} ${ac_configure_args}"
16614multi_basedir="$multi_basedir"
16615CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16616CC="$CC"
16617CXX="$CXX"
16618GFORTRAN="$GFORTRAN"
22e05272 16619GDC="$GDC"
48310492
RH
16620AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16621
16622
16623# The HP-UX ksh and POSIX shell print the target directory to stdout
16624# if CDPATH is set.
16625(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16626
16627sed_quote_subst='$sed_quote_subst'
16628double_quote_subst='$double_quote_subst'
16629delay_variable_subst='$delay_variable_subst'
16630macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16631macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16632enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16633enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16634pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16635enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16636SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16637ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16638host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16639host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16640host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16641build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16642build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16643build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16644SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16645Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16646GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16647EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16648FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16649LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16650NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16651LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16652max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16653ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16654exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16655lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16656lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16657lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16658reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16659reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16660OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16661deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16662file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16663AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16664AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16665STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16666RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16667old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16668old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16669old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16670lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16671CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16672CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16673compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16674GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16675lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16676lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16677lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16678lt_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"`'
16679objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16680MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16681lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16682lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16683lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16684lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16685lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16686need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16687DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16688NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16689LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16690OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16691OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16692libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16693shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16694extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16695archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16696enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16697export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16698whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16699compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16700old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16701old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16702archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16703archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16704module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16705module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16706with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16707allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16708no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16709hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16710hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16711hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16712hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16713hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16714hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16715hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16716hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16717inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16718link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16719fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16720always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16721export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16722exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16723include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16724prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16725file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16726variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16727need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16728need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16729version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16730runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16731shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16732shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16733libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16734library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16735soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16736install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16737postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16738postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16739finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16740finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16741hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16742sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16743sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16744hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16745enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16746enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16747enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16748old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16749striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16750
16751LTCC='$LTCC'
16752LTCFLAGS='$LTCFLAGS'
16753compiler='$compiler_DEFAULT'
16754
16755# A function that is used when there is no print builtin or printf.
16756func_fallback_echo ()
16757{
16758 eval 'cat <<_LTECHO_EOF
16759\$1
16760_LTECHO_EOF'
16761}
16762
16763# Quote evaled strings.
16764for var in SHELL \
16765ECHO \
16766SED \
16767GREP \
16768EGREP \
16769FGREP \
16770LD \
16771NM \
16772LN_S \
16773lt_SP2NL \
16774lt_NL2SP \
16775reload_flag \
16776OBJDUMP \
16777deplibs_check_method \
16778file_magic_cmd \
16779AR \
16780AR_FLAGS \
16781STRIP \
16782RANLIB \
16783CC \
16784CFLAGS \
16785compiler \
16786lt_cv_sys_global_symbol_pipe \
16787lt_cv_sys_global_symbol_to_cdecl \
16788lt_cv_sys_global_symbol_to_c_name_address \
16789lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16790lt_prog_compiler_no_builtin_flag \
16791lt_prog_compiler_wl \
16792lt_prog_compiler_pic \
16793lt_prog_compiler_static \
16794lt_cv_prog_compiler_c_o \
16795need_locks \
16796DSYMUTIL \
16797NMEDIT \
16798LIPO \
16799OTOOL \
16800OTOOL64 \
16801shrext_cmds \
16802export_dynamic_flag_spec \
16803whole_archive_flag_spec \
16804compiler_needs_object \
16805with_gnu_ld \
16806allow_undefined_flag \
16807no_undefined_flag \
16808hardcode_libdir_flag_spec \
16809hardcode_libdir_flag_spec_ld \
16810hardcode_libdir_separator \
16811fix_srcfile_path \
16812exclude_expsyms \
16813include_expsyms \
16814file_list_spec \
16815variables_saved_for_relink \
16816libname_spec \
16817library_names_spec \
16818soname_spec \
16819install_override_mode \
16820finish_eval \
16821old_striplib \
16822striplib; do
16823 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16824 *[\\\\\\\`\\"\\\$]*)
16825 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16826 ;;
16827 *)
16828 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16829 ;;
16830 esac
16831done
16832
16833# Double-quote double-evaled strings.
16834for var in reload_cmds \
16835old_postinstall_cmds \
16836old_postuninstall_cmds \
16837old_archive_cmds \
16838extract_expsyms_cmds \
16839old_archive_from_new_cmds \
16840old_archive_from_expsyms_cmds \
16841archive_cmds \
16842archive_expsym_cmds \
16843module_cmds \
16844module_expsym_cmds \
16845export_symbols_cmds \
16846prelink_cmds \
16847postinstall_cmds \
16848postuninstall_cmds \
16849finish_cmds \
16850sys_lib_search_path_spec \
16851sys_lib_dlsearch_path_spec; do
16852 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16853 *[\\\\\\\`\\"\\\$]*)
16854 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16855 ;;
16856 *)
16857 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16858 ;;
16859 esac
16860done
16861
16862ac_aux_dir='$ac_aux_dir'
16863xsi_shell='$xsi_shell'
16864lt_shell_append='$lt_shell_append'
16865
16866# See if we are running on zsh, and set the options which allow our
16867# commands through without removal of \ escapes INIT.
16868if test -n "\${ZSH_VERSION+set}" ; then
16869 setopt NO_GLOB_SUBST
16870fi
16871
16872
16873 PACKAGE='$PACKAGE'
16874 VERSION='$VERSION'
16875 TIMESTAMP='$TIMESTAMP'
16876 RM='$RM'
16877 ofile='$ofile'
16878
16879
16880
16881
16882GCC="$GCC"
16883CC="$CC"
16884acx_cv_header_stdint="$acx_cv_header_stdint"
16885acx_cv_type_int8_t="$acx_cv_type_int8_t"
16886acx_cv_type_int16_t="$acx_cv_type_int16_t"
16887acx_cv_type_int32_t="$acx_cv_type_int32_t"
16888acx_cv_type_int64_t="$acx_cv_type_int64_t"
16889acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16890ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16891ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16892ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16893ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16894ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16895ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16896ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16897ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16898
16899
16900_ACEOF
16901
16902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16903
16904# Handling of arguments.
16905for ac_config_target in $ac_config_targets
16906do
16907 case $ac_config_target in
16908 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
16909 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16910 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16911 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16912 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
16913 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16914 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
5ff06d76 16915 "testsuite/libatomic-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libatomic-site-extra.exp" ;;
48310492 16916
22e05272 16917 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
48310492
RH
16918 esac
16919done
16920
16921
16922# If the user did not use the arguments to specify the items to instantiate,
16923# then the envvar interface is used. Set only those that are not.
16924# We use the long form for the default assignment because of an extremely
16925# bizarre bug on SunOS 4.1.3.
16926if $ac_need_defaults; then
16927 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16928 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16929 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16930fi
16931
16932# Have a temporary directory for convenience. Make it in the build tree
16933# simply because there is no reason against having it here, and in addition,
16934# creating and moving files from /tmp can sometimes cause problems.
16935# Hook for its removal unless debugging.
16936# Note that there is a small window in which the directory will not be cleaned:
16937# after its creation but before its name has been assigned to `$tmp'.
16938$debug ||
16939{
22e05272 16940 tmp= ac_tmp=
48310492 16941 trap 'exit_status=$?
22e05272
JM
16942 : "${ac_tmp:=$tmp}"
16943 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
48310492
RH
16944' 0
16945 trap 'as_fn_exit 1' 1 2 13 15
16946}
16947# Create a (secure) tmp directory for tmp files.
16948
16949{
16950 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16951 test -d "$tmp"
48310492
RH
16952} ||
16953{
16954 tmp=./conf$$-$RANDOM
16955 (umask 077 && mkdir "$tmp")
22e05272
JM
16956} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16957ac_tmp=$tmp
48310492
RH
16958
16959# Set up the scripts for CONFIG_FILES section.
16960# No need to generate them if there are no CONFIG_FILES.
16961# This happens for instance with `./config.status config.h'.
16962if test -n "$CONFIG_FILES"; then
16963
16964
16965ac_cr=`echo X | tr X '\015'`
16966# On cygwin, bash can eat \r inside `` if the user requested igncr.
16967# But we know of no other shell where ac_cr would be empty at this
16968# point, so we can use a bashism as a fallback.
16969if test "x$ac_cr" = x; then
16970 eval ac_cr=\$\'\\r\'
16971fi
16972ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16973if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16974 ac_cs_awk_cr='\\r'
48310492
RH
16975else
16976 ac_cs_awk_cr=$ac_cr
16977fi
16978
22e05272 16979echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
48310492
RH
16980_ACEOF
16981
16982
16983{
16984 echo "cat >conf$$subs.awk <<_ACEOF" &&
16985 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16986 echo "_ACEOF"
16987} >conf$$subs.sh ||
22e05272
JM
16988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16989ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
48310492
RH
16990ac_delim='%!_!# '
16991for ac_last_try in false false false false false :; do
16992 . ./conf$$subs.sh ||
22e05272 16993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48310492
RH
16994
16995 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16996 if test $ac_delim_n = $ac_delim_num; then
16997 break
16998 elif $ac_last_try; then
22e05272 16999 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48310492
RH
17000 else
17001 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17002 fi
17003done
17004rm -f conf$$subs.sh
17005
17006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 17007cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
48310492
RH
17008_ACEOF
17009sed -n '
17010h
17011s/^/S["/; s/!.*/"]=/
17012p
17013g
17014s/^[^!]*!//
17015:repl
17016t repl
17017s/'"$ac_delim"'$//
17018t delim
17019:nl
17020h
22e05272 17021s/\(.\{148\}\)..*/\1/
48310492
RH
17022t more1
17023s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17024p
17025n
17026b repl
17027:more1
17028s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17029p
17030g
17031s/.\{148\}//
17032t nl
17033:delim
17034h
22e05272 17035s/\(.\{148\}\)..*/\1/
48310492
RH
17036t more2
17037s/["\\]/\\&/g; s/^/"/; s/$/"/
17038p
17039b
17040:more2
17041s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17042p
17043g
17044s/.\{148\}//
17045t delim
17046' <conf$$subs.awk | sed '
17047/^[^""]/{
17048 N
17049 s/\n//
17050}
17051' >>$CONFIG_STATUS || ac_write_fail=1
17052rm -f conf$$subs.awk
17053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17054_ACAWK
22e05272 17055cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
48310492
RH
17056 for (key in S) S_is_set[key] = 1
17057 FS = "\a"
17058
17059}
17060{
17061 line = $ 0
17062 nfields = split(line, field, "@")
17063 substed = 0
17064 len = length(field[1])
17065 for (i = 2; i < nfields; i++) {
17066 key = field[i]
17067 keylen = length(key)
17068 if (S_is_set[key]) {
17069 value = S[key]
17070 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17071 len += length(value) + length(field[++i])
17072 substed = 1
17073 } else
17074 len += 1 + keylen
17075 }
17076
17077 print line
17078}
17079
17080_ACAWK
17081_ACEOF
17082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17083if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17084 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17085else
17086 cat
22e05272
JM
17087fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17088 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
48310492
RH
17089_ACEOF
17090
22e05272
JM
17091# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17092# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
48310492
RH
17093# trailing colons and then remove the whole line if VPATH becomes empty
17094# (actually we leave an empty line to preserve line numbers).
17095if test "x$srcdir" = x.; then
22e05272
JM
17096 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17097h
17098s///
17099s/^/:/
17100s/[ ]*$/:/
17101s/:\$(srcdir):/:/g
17102s/:\${srcdir}:/:/g
17103s/:@srcdir@:/:/g
17104s/^:*//
48310492 17105s/:*$//
22e05272
JM
17106x
17107s/\(=[ ]*\).*/\1/
17108G
17109s/\n//
48310492
RH
17110s/^[^=]*=[ ]*$//
17111}'
17112fi
17113
17114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17115fi # test -n "$CONFIG_FILES"
17116
17117# Set up the scripts for CONFIG_HEADERS section.
17118# No need to generate them if there are no CONFIG_HEADERS.
17119# This happens for instance with `./config.status Makefile'.
17120if test -n "$CONFIG_HEADERS"; then
22e05272 17121cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
48310492
RH
17122BEGIN {
17123_ACEOF
17124
17125# Transform confdefs.h into an awk script `defines.awk', embedded as
17126# here-document in config.status, that substitutes the proper values into
17127# config.h.in to produce config.h.
17128
17129# Create a delimiter string that does not exist in confdefs.h, to ease
17130# handling of long lines.
17131ac_delim='%!_!# '
17132for ac_last_try in false false :; do
22e05272
JM
17133 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17134 if test -z "$ac_tt"; then
48310492
RH
17135 break
17136 elif $ac_last_try; then
22e05272 17137 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
48310492
RH
17138 else
17139 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17140 fi
17141done
17142
17143# For the awk script, D is an array of macro values keyed by name,
17144# likewise P contains macro parameters if any. Preserve backslash
17145# newline sequences.
17146
17147ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17148sed -n '
17149s/.\{148\}/&'"$ac_delim"'/g
17150t rset
17151:rset
17152s/^[ ]*#[ ]*define[ ][ ]*/ /
17153t def
17154d
17155:def
17156s/\\$//
17157t bsnl
17158s/["\\]/\\&/g
17159s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17160D["\1"]=" \3"/p
17161s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17162d
17163:bsnl
17164s/["\\]/\\&/g
17165s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17166D["\1"]=" \3\\\\\\n"\\/p
17167t cont
17168s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17169t cont
17170d
17171:cont
17172n
17173s/.\{148\}/&'"$ac_delim"'/g
17174t clear
17175:clear
17176s/\\$//
17177t bsnlc
17178s/["\\]/\\&/g; s/^/"/; s/$/"/p
17179d
17180:bsnlc
17181s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17182b cont
17183' <confdefs.h | sed '
17184s/'"$ac_delim"'/"\\\
17185"/g' >>$CONFIG_STATUS || ac_write_fail=1
17186
17187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17188 for (key in D) D_is_set[key] = 1
17189 FS = "\a"
17190}
17191/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17192 line = \$ 0
17193 split(line, arg, " ")
17194 if (arg[1] == "#") {
17195 defundef = arg[2]
17196 mac1 = arg[3]
17197 } else {
17198 defundef = substr(arg[1], 2)
17199 mac1 = arg[2]
17200 }
17201 split(mac1, mac2, "(") #)
17202 macro = mac2[1]
17203 prefix = substr(line, 1, index(line, defundef) - 1)
17204 if (D_is_set[macro]) {
17205 # Preserve the white space surrounding the "#".
17206 print prefix "define", macro P[macro] D[macro]
17207 next
17208 } else {
17209 # Replace #undef with comments. This is necessary, for example,
17210 # in the case of _POSIX_SOURCE, which is predefined and required
17211 # on some systems where configure will not decide to define it.
17212 if (defundef == "undef") {
17213 print "/*", prefix defundef, macro, "*/"
17214 next
17215 }
17216 }
17217}
17218{ print }
17219_ACAWK
17220_ACEOF
17221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 17222 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
48310492
RH
17223fi # test -n "$CONFIG_HEADERS"
17224
17225
17226eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17227shift
17228for ac_tag
17229do
17230 case $ac_tag in
17231 :[FHLC]) ac_mode=$ac_tag; continue;;
17232 esac
17233 case $ac_mode$ac_tag in
17234 :[FHL]*:*);;
22e05272 17235 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
48310492
RH
17236 :[FH]-) ac_tag=-:-;;
17237 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17238 esac
17239 ac_save_IFS=$IFS
17240 IFS=:
17241 set x $ac_tag
17242 IFS=$ac_save_IFS
17243 shift
17244 ac_file=$1
17245 shift
17246
17247 case $ac_mode in
17248 :L) ac_source=$1;;
17249 :[FH])
17250 ac_file_inputs=
17251 for ac_f
17252 do
17253 case $ac_f in
22e05272 17254 -) ac_f="$ac_tmp/stdin";;
48310492
RH
17255 *) # Look for the file first in the build tree, then in the source tree
17256 # (if the path is not absolute). The absolute path cannot be DOS-style,
17257 # because $ac_f cannot contain `:'.
17258 test -f "$ac_f" ||
17259 case $ac_f in
17260 [\\/$]*) false;;
17261 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17262 esac ||
22e05272 17263 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
48310492
RH
17264 esac
17265 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17266 as_fn_append ac_file_inputs " '$ac_f'"
17267 done
17268
17269 # Let's still pretend it is `configure' which instantiates (i.e., don't
17270 # use $as_me), people would be surprised to read:
17271 # /* config.h. Generated by config.status. */
17272 configure_input='Generated from '`
17273 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17274 `' by configure.'
17275 if test x"$ac_file" != x-; then
17276 configure_input="$ac_file. $configure_input"
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17278$as_echo "$as_me: creating $ac_file" >&6;}
17279 fi
17280 # Neutralize special characters interpreted by sed in replacement strings.
17281 case $configure_input in #(
17282 *\&* | *\|* | *\\* )
17283 ac_sed_conf_input=`$as_echo "$configure_input" |
17284 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17285 *) ac_sed_conf_input=$configure_input;;
17286 esac
17287
17288 case $ac_tag in
22e05272
JM
17289 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
48310492
RH
17291 esac
17292 ;;
17293 esac
17294
17295 ac_dir=`$as_dirname -- "$ac_file" ||
17296$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17297 X"$ac_file" : 'X\(//\)[^/]' \| \
17298 X"$ac_file" : 'X\(//\)$' \| \
17299 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17300$as_echo X"$ac_file" |
17301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17302 s//\1/
17303 q
17304 }
17305 /^X\(\/\/\)[^/].*/{
17306 s//\1/
17307 q
17308 }
17309 /^X\(\/\/\)$/{
17310 s//\1/
17311 q
17312 }
17313 /^X\(\/\).*/{
17314 s//\1/
17315 q
17316 }
17317 s/.*/./; q'`
17318 as_dir="$ac_dir"; as_fn_mkdir_p
17319 ac_builddir=.
17320
17321case "$ac_dir" in
17322.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17323*)
17324 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17325 # A ".." for each directory in $ac_dir_suffix.
17326 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17327 case $ac_top_builddir_sub in
17328 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17329 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17330 esac ;;
17331esac
17332ac_abs_top_builddir=$ac_pwd
17333ac_abs_builddir=$ac_pwd$ac_dir_suffix
17334# for backward compatibility:
17335ac_top_builddir=$ac_top_build_prefix
17336
17337case $srcdir in
17338 .) # We are building in place.
17339 ac_srcdir=.
17340 ac_top_srcdir=$ac_top_builddir_sub
17341 ac_abs_top_srcdir=$ac_pwd ;;
17342 [\\/]* | ?:[\\/]* ) # Absolute name.
17343 ac_srcdir=$srcdir$ac_dir_suffix;
17344 ac_top_srcdir=$srcdir
17345 ac_abs_top_srcdir=$srcdir ;;
17346 *) # Relative name.
17347 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17348 ac_top_srcdir=$ac_top_build_prefix$srcdir
17349 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17350esac
17351ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17352
17353
17354 case $ac_mode in
17355 :F)
17356 #
17357 # CONFIG_FILE
17358 #
17359
17360 case $INSTALL in
17361 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17362 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17363 esac
17364 ac_MKDIR_P=$MKDIR_P
17365 case $MKDIR_P in
17366 [\\/$]* | ?:[\\/]* ) ;;
17367 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17368 esac
17369_ACEOF
17370
17371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17372# If the template does not know about datarootdir, expand it.
17373# FIXME: This hack should be removed a few years after 2.60.
17374ac_datarootdir_hack=; ac_datarootdir_seen=
17375ac_sed_dataroot='
17376/datarootdir/ {
17377 p
17378 q
17379}
17380/@datadir@/p
17381/@docdir@/p
17382/@infodir@/p
17383/@localedir@/p
17384/@mandir@/p'
17385case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17386*datarootdir*) ac_datarootdir_seen=yes;;
17387*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17389$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17390_ACEOF
17391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17392 ac_datarootdir_hack='
17393 s&@datadir@&$datadir&g
17394 s&@docdir@&$docdir&g
17395 s&@infodir@&$infodir&g
17396 s&@localedir@&$localedir&g
17397 s&@mandir@&$mandir&g
17398 s&\\\${datarootdir}&$datarootdir&g' ;;
17399esac
17400_ACEOF
17401
17402# Neutralize VPATH when `$srcdir' = `.'.
17403# Shell code in configure.ac might set extrasub.
17404# FIXME: do we really want to maintain this feature?
17405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17406ac_sed_extra="$ac_vpsub
17407$extrasub
17408_ACEOF
17409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17410:t
17411/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17412s|@configure_input@|$ac_sed_conf_input|;t t
17413s&@top_builddir@&$ac_top_builddir_sub&;t t
17414s&@top_build_prefix@&$ac_top_build_prefix&;t t
17415s&@srcdir@&$ac_srcdir&;t t
17416s&@abs_srcdir@&$ac_abs_srcdir&;t t
17417s&@top_srcdir@&$ac_top_srcdir&;t t
17418s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17419s&@builddir@&$ac_builddir&;t t
17420s&@abs_builddir@&$ac_abs_builddir&;t t
17421s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17422s&@INSTALL@&$ac_INSTALL&;t t
17423s&@MKDIR_P@&$ac_MKDIR_P&;t t
17424$ac_datarootdir_hack
17425"
22e05272
JM
17426eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17427 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17428
17429test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
17430 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17431 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17432 "$ac_tmp/out"`; test -z "$ac_out"; } &&
48310492 17433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17434which seems to be undefined. Please make sure it is defined" >&5
48310492 17435$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17436which seems to be undefined. Please make sure it is defined" >&2;}
48310492 17437
22e05272 17438 rm -f "$ac_tmp/stdin"
48310492 17439 case $ac_file in
22e05272
JM
17440 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17441 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
48310492 17442 esac \
22e05272 17443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17444 ;;
17445 :H)
17446 #
17447 # CONFIG_HEADER
17448 #
17449 if test x"$ac_file" != x-; then
17450 {
17451 $as_echo "/* $configure_input */" \
22e05272
JM
17452 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17453 } >"$ac_tmp/config.h" \
17454 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17455 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48310492
RH
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17457$as_echo "$as_me: $ac_file is unchanged" >&6;}
17458 else
17459 rm -f "$ac_file"
22e05272
JM
17460 mv "$ac_tmp/config.h" "$ac_file" \
17461 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17462 fi
17463 else
17464 $as_echo "/* $configure_input */" \
22e05272
JM
17465 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17466 || as_fn_error $? "could not create -" "$LINENO" 5
48310492
RH
17467 fi
17468# Compute "$ac_file"'s index in $config_headers.
17469_am_arg="$ac_file"
17470_am_stamp_count=1
17471for _am_header in $config_headers :; do
17472 case $_am_header in
17473 $_am_arg | $_am_arg:* )
17474 break ;;
17475 * )
17476 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17477 esac
17478done
17479echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17480$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17481 X"$_am_arg" : 'X\(//\)[^/]' \| \
17482 X"$_am_arg" : 'X\(//\)$' \| \
17483 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17484$as_echo X"$_am_arg" |
17485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17486 s//\1/
17487 q
17488 }
17489 /^X\(\/\/\)[^/].*/{
17490 s//\1/
17491 q
17492 }
17493 /^X\(\/\/\)$/{
17494 s//\1/
17495 q
17496 }
17497 /^X\(\/\).*/{
17498 s//\1/
17499 q
17500 }
17501 s/.*/./; q'`/stamp-h$_am_stamp_count
17502 ;;
17503
17504 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17505$as_echo "$as_me: executing $ac_file commands" >&6;}
17506 ;;
17507 esac
17508
17509
17510 case $ac_file$ac_mode in
17511 "default-1":C)
17512# Only add multilib support code if we just rebuilt the top-level
17513# Makefile.
17514case " $CONFIG_FILES " in
17515 *" Makefile "*)
17516 ac_file=Makefile . ${multi_basedir}/config-ml.in
17517 ;;
17518esac ;;
17519 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 17520 # Older Autoconf quotes --file arguments for eval, but not when files
48310492
RH
17521 # are listed without --file. Let's play safe and only enable the eval
17522 # if we detect the quoting.
17523 case $CONFIG_FILES in
17524 *\'*) eval set x "$CONFIG_FILES" ;;
17525 *) set x $CONFIG_FILES ;;
17526 esac
17527 shift
17528 for mf
17529 do
17530 # Strip MF so we end up with the name of the file.
17531 mf=`echo "$mf" | sed -e 's/:.*$//'`
17532 # Check whether this is an Automake generated Makefile or not.
22e05272 17533 # We used to match only the files named 'Makefile.in', but
48310492
RH
17534 # some people rename them; so instead we look at the file content.
17535 # Grep'ing the first line is not enough: some people post-process
17536 # each Makefile.in and add a new line on top of each file to say so.
17537 # Grep'ing the whole file is not good either: AIX grep has a line
17538 # limit of 2048, but all sed's we know have understand at least 4000.
17539 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17540 dirpart=`$as_dirname -- "$mf" ||
17541$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17542 X"$mf" : 'X\(//\)[^/]' \| \
17543 X"$mf" : 'X\(//\)$' \| \
17544 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17545$as_echo X"$mf" |
17546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17547 s//\1/
17548 q
17549 }
17550 /^X\(\/\/\)[^/].*/{
17551 s//\1/
17552 q
17553 }
17554 /^X\(\/\/\)$/{
17555 s//\1/
17556 q
17557 }
17558 /^X\(\/\).*/{
17559 s//\1/
17560 q
17561 }
17562 s/.*/./; q'`
17563 else
17564 continue
17565 fi
17566 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 17567 # from the Makefile without running 'make'.
48310492
RH
17568 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17569 test -z "$DEPDIR" && continue
17570 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 17571 test -z "$am__include" && continue
48310492 17572 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48310492
RH
17573 # Find all dependency output files, they are included files with
17574 # $(DEPDIR) in their names. We invoke sed twice because it is the
17575 # simplest approach to changing $(DEPDIR) to its actual value in the
17576 # expansion.
17577 for file in `sed -n "
17578 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 17579 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
48310492
RH
17580 # Make sure the directory exists.
17581 test -f "$dirpart/$file" && continue
17582 fdir=`$as_dirname -- "$file" ||
17583$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17584 X"$file" : 'X\(//\)[^/]' \| \
17585 X"$file" : 'X\(//\)$' \| \
17586 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17587$as_echo X"$file" |
17588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17589 s//\1/
17590 q
17591 }
17592 /^X\(\/\/\)[^/].*/{
17593 s//\1/
17594 q
17595 }
17596 /^X\(\/\/\)$/{
17597 s//\1/
17598 q
17599 }
17600 /^X\(\/\).*/{
17601 s//\1/
17602 q
17603 }
17604 s/.*/./; q'`
17605 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17606 # echo "creating $dirpart/$file"
17607 echo '# dummy' > "$dirpart/$file"
17608 done
17609 done
17610}
17611 ;;
17612 "libtool":C)
17613
17614 # See if we are running on zsh, and set the options which allow our
17615 # commands through without removal of \ escapes.
17616 if test -n "${ZSH_VERSION+set}" ; then
17617 setopt NO_GLOB_SUBST
17618 fi
17619
17620 cfgfile="${ofile}T"
17621 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17622 $RM "$cfgfile"
17623
17624 cat <<_LT_EOF >> "$cfgfile"
17625#! $SHELL
17626
17627# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17628# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17629# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17630# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17631#
17632# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17633# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17634# Written by Gordon Matzigkeit, 1996
17635#
17636# This file is part of GNU Libtool.
17637#
17638# GNU Libtool is free software; you can redistribute it and/or
17639# modify it under the terms of the GNU General Public License as
17640# published by the Free Software Foundation; either version 2 of
17641# the License, or (at your option) any later version.
17642#
17643# As a special exception to the GNU General Public License,
17644# if you distribute this file as part of a program or library that
17645# is built using GNU Libtool, you may include this file under the
17646# same distribution terms that you use for the rest of that program.
17647#
17648# GNU Libtool is distributed in the hope that it will be useful,
17649# but WITHOUT ANY WARRANTY; without even the implied warranty of
17650# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17651# GNU General Public License for more details.
17652#
17653# You should have received a copy of the GNU General Public License
17654# along with GNU Libtool; see the file COPYING. If not, a copy
17655# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17656# obtained by writing to the Free Software Foundation, Inc.,
17657# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17658
17659
17660# The names of the tagged configurations supported by this script.
17661available_tags=""
17662
17663# ### BEGIN LIBTOOL CONFIG
17664
17665# Which release of libtool.m4 was used?
17666macro_version=$macro_version
17667macro_revision=$macro_revision
17668
17669# Whether or not to build shared libraries.
17670build_libtool_libs=$enable_shared
17671
17672# Whether or not to build static libraries.
17673build_old_libs=$enable_static
17674
17675# What type of objects to build.
17676pic_mode=$pic_mode
17677
17678# Whether or not to optimize for fast installation.
17679fast_install=$enable_fast_install
17680
17681# Shell to use when invoking shell scripts.
17682SHELL=$lt_SHELL
17683
17684# An echo program that protects backslashes.
17685ECHO=$lt_ECHO
17686
17687# The host system.
17688host_alias=$host_alias
17689host=$host
17690host_os=$host_os
17691
17692# The build system.
17693build_alias=$build_alias
17694build=$build
17695build_os=$build_os
17696
17697# A sed program that does not truncate output.
17698SED=$lt_SED
17699
17700# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17701Xsed="\$SED -e 1s/^X//"
17702
17703# A grep program that handles long lines.
17704GREP=$lt_GREP
17705
17706# An ERE matcher.
17707EGREP=$lt_EGREP
17708
17709# A literal string matcher.
17710FGREP=$lt_FGREP
17711
17712# A BSD- or MS-compatible name lister.
17713NM=$lt_NM
17714
17715# Whether we need soft or hard links.
17716LN_S=$lt_LN_S
17717
17718# What is the maximum length of a command?
17719max_cmd_len=$max_cmd_len
17720
17721# Object file suffix (normally "o").
17722objext=$ac_objext
17723
17724# Executable file suffix (normally "").
17725exeext=$exeext
17726
17727# whether the shell understands "unset".
17728lt_unset=$lt_unset
17729
17730# turn spaces into newlines.
17731SP2NL=$lt_lt_SP2NL
17732
17733# turn newlines into spaces.
17734NL2SP=$lt_lt_NL2SP
17735
17736# An object symbol dumper.
17737OBJDUMP=$lt_OBJDUMP
17738
17739# Method to check whether dependent libraries are shared objects.
17740deplibs_check_method=$lt_deplibs_check_method
17741
17742# Command to use when deplibs_check_method == "file_magic".
17743file_magic_cmd=$lt_file_magic_cmd
17744
17745# The archiver.
17746AR=$lt_AR
17747AR_FLAGS=$lt_AR_FLAGS
17748
17749# A symbol stripping program.
17750STRIP=$lt_STRIP
17751
17752# Commands used to install an old-style archive.
17753RANLIB=$lt_RANLIB
17754old_postinstall_cmds=$lt_old_postinstall_cmds
17755old_postuninstall_cmds=$lt_old_postuninstall_cmds
17756
17757# Whether to use a lock for old archive extraction.
17758lock_old_archive_extraction=$lock_old_archive_extraction
17759
17760# A C compiler.
17761LTCC=$lt_CC
17762
17763# LTCC compiler flags.
17764LTCFLAGS=$lt_CFLAGS
17765
17766# Take the output of nm and produce a listing of raw symbols and C names.
17767global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17768
17769# Transform the output of nm in a proper C declaration.
17770global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17771
17772# Transform the output of nm in a C name address pair.
17773global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17774
17775# Transform the output of nm in a C name address pair when lib prefix is needed.
17776global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17777
17778# The name of the directory that contains temporary libtool files.
17779objdir=$objdir
17780
17781# Used to examine libraries when file_magic_cmd begins with "file".
17782MAGIC_CMD=$MAGIC_CMD
17783
17784# Must we lock files when doing compilation?
17785need_locks=$lt_need_locks
17786
17787# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17788DSYMUTIL=$lt_DSYMUTIL
17789
17790# Tool to change global to local symbols on Mac OS X.
17791NMEDIT=$lt_NMEDIT
17792
17793# Tool to manipulate fat objects and archives on Mac OS X.
17794LIPO=$lt_LIPO
17795
17796# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17797OTOOL=$lt_OTOOL
17798
17799# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17800OTOOL64=$lt_OTOOL64
17801
17802# Old archive suffix (normally "a").
17803libext=$libext
17804
17805# Shared library suffix (normally ".so").
17806shrext_cmds=$lt_shrext_cmds
17807
17808# The commands to extract the exported symbol list from a shared archive.
17809extract_expsyms_cmds=$lt_extract_expsyms_cmds
17810
17811# Variables whose values should be saved in libtool wrapper scripts and
17812# restored at link time.
17813variables_saved_for_relink=$lt_variables_saved_for_relink
17814
17815# Do we need the "lib" prefix for modules?
17816need_lib_prefix=$need_lib_prefix
17817
17818# Do we need a version for libraries?
17819need_version=$need_version
17820
17821# Library versioning type.
17822version_type=$version_type
17823
17824# Shared library runtime path variable.
17825runpath_var=$runpath_var
17826
17827# Shared library path variable.
17828shlibpath_var=$shlibpath_var
17829
17830# Is shlibpath searched before the hard-coded library search path?
17831shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17832
17833# Format of library name prefix.
17834libname_spec=$lt_libname_spec
17835
17836# List of archive names. First name is the real one, the rest are links.
17837# The last name is the one that the linker finds with -lNAME
17838library_names_spec=$lt_library_names_spec
17839
17840# The coded name of the library, if different from the real name.
17841soname_spec=$lt_soname_spec
17842
17843# Permission mode override for installation of shared libraries.
17844install_override_mode=$lt_install_override_mode
17845
17846# Command to use after installation of a shared archive.
17847postinstall_cmds=$lt_postinstall_cmds
17848
17849# Command to use after uninstallation of a shared archive.
17850postuninstall_cmds=$lt_postuninstall_cmds
17851
17852# Commands used to finish a libtool library installation in a directory.
17853finish_cmds=$lt_finish_cmds
17854
17855# As "finish_cmds", except a single script fragment to be evaled but
17856# not shown.
17857finish_eval=$lt_finish_eval
17858
17859# Whether we should hardcode library paths into libraries.
17860hardcode_into_libs=$hardcode_into_libs
17861
17862# Compile-time system search path for libraries.
17863sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17864
17865# Run-time system search path for libraries.
17866sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17867
17868# Whether dlopen is supported.
17869dlopen_support=$enable_dlopen
17870
17871# Whether dlopen of programs is supported.
17872dlopen_self=$enable_dlopen_self
17873
17874# Whether dlopen of statically linked programs is supported.
17875dlopen_self_static=$enable_dlopen_self_static
17876
17877# Commands to strip libraries.
17878old_striplib=$lt_old_striplib
17879striplib=$lt_striplib
17880
17881
17882# The linker used to build libraries.
17883LD=$lt_LD
17884
17885# How to create reloadable object files.
17886reload_flag=$lt_reload_flag
17887reload_cmds=$lt_reload_cmds
17888
17889# Commands used to build an old-style archive.
17890old_archive_cmds=$lt_old_archive_cmds
17891
17892# A language specific compiler.
17893CC=$lt_compiler
17894
17895# Is the compiler the GNU compiler?
17896with_gcc=$GCC
17897
17898# Compiler flag to turn off builtin functions.
17899no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17900
17901# How to pass a linker flag through the compiler.
17902wl=$lt_lt_prog_compiler_wl
17903
17904# Additional compiler flags for building library objects.
17905pic_flag=$lt_lt_prog_compiler_pic
17906
17907# Compiler flag to prevent dynamic linking.
17908link_static_flag=$lt_lt_prog_compiler_static
17909
17910# Does compiler simultaneously support -c and -o options?
17911compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17912
17913# Whether or not to add -lc for building shared libraries.
17914build_libtool_need_lc=$archive_cmds_need_lc
17915
17916# Whether or not to disallow shared libs when runtime libs are static.
17917allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17918
17919# Compiler flag to allow reflexive dlopens.
17920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17921
17922# Compiler flag to generate shared objects directly from archives.
17923whole_archive_flag_spec=$lt_whole_archive_flag_spec
17924
17925# Whether the compiler copes with passing no objects directly.
17926compiler_needs_object=$lt_compiler_needs_object
17927
17928# Create an old-style archive from a shared archive.
17929old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17930
17931# Create a temporary old-style archive to link instead of a shared archive.
17932old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17933
17934# Commands used to build a shared archive.
17935archive_cmds=$lt_archive_cmds
17936archive_expsym_cmds=$lt_archive_expsym_cmds
17937
17938# Commands used to build a loadable module if different from building
17939# a shared archive.
17940module_cmds=$lt_module_cmds
17941module_expsym_cmds=$lt_module_expsym_cmds
17942
17943# Whether we are building with GNU ld or not.
17944with_gnu_ld=$lt_with_gnu_ld
17945
17946# Flag that allows shared libraries with undefined symbols to be built.
17947allow_undefined_flag=$lt_allow_undefined_flag
17948
17949# Flag that enforces no undefined symbols.
17950no_undefined_flag=$lt_no_undefined_flag
17951
17952# Flag to hardcode \$libdir into a binary during linking.
17953# This must work even if \$libdir does not exist
17954hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17955
17956# If ld is used when linking, flag to hardcode \$libdir into a binary
17957# during linking. This must work even if \$libdir does not exist.
17958hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17959
17960# Whether we need a single "-rpath" flag with a separated argument.
17961hardcode_libdir_separator=$lt_hardcode_libdir_separator
17962
17963# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17964# DIR into the resulting binary.
17965hardcode_direct=$hardcode_direct
17966
17967# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17968# DIR into the resulting binary and the resulting library dependency is
17969# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17970# library is relocated.
17971hardcode_direct_absolute=$hardcode_direct_absolute
17972
17973# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17974# into the resulting binary.
17975hardcode_minus_L=$hardcode_minus_L
17976
17977# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17978# into the resulting binary.
17979hardcode_shlibpath_var=$hardcode_shlibpath_var
17980
17981# Set to "yes" if building a shared library automatically hardcodes DIR
17982# into the library and all subsequent libraries and executables linked
17983# against it.
17984hardcode_automatic=$hardcode_automatic
17985
17986# Set to yes if linker adds runtime paths of dependent libraries
17987# to runtime path list.
17988inherit_rpath=$inherit_rpath
17989
17990# Whether libtool must link a program against all its dependency libraries.
17991link_all_deplibs=$link_all_deplibs
17992
17993# Fix the shell variable \$srcfile for the compiler.
17994fix_srcfile_path=$lt_fix_srcfile_path
17995
17996# Set to "yes" if exported symbols are required.
17997always_export_symbols=$always_export_symbols
17998
17999# The commands to list exported symbols.
18000export_symbols_cmds=$lt_export_symbols_cmds
18001
18002# Symbols that should not be listed in the preloaded symbols.
18003exclude_expsyms=$lt_exclude_expsyms
18004
18005# Symbols that must always be exported.
18006include_expsyms=$lt_include_expsyms
18007
18008# Commands necessary for linking programs (against libraries) with templates.
18009prelink_cmds=$lt_prelink_cmds
18010
18011# Specify filename containing input files.
18012file_list_spec=$lt_file_list_spec
18013
18014# How to hardcode a shared library path into an executable.
18015hardcode_action=$hardcode_action
18016
18017# ### END LIBTOOL CONFIG
18018
18019_LT_EOF
18020
18021 case $host_os in
18022 aix3*)
18023 cat <<\_LT_EOF >> "$cfgfile"
18024# AIX sometimes has problems with the GCC collect2 program. For some
18025# reason, if we set the COLLECT_NAMES environment variable, the problems
18026# vanish in a puff of smoke.
18027if test "X${COLLECT_NAMES+set}" != Xset; then
18028 COLLECT_NAMES=
18029 export COLLECT_NAMES
18030fi
18031_LT_EOF
18032 ;;
18033 esac
18034
18035
18036ltmain="$ac_aux_dir/ltmain.sh"
18037
18038
18039 # We use sed instead of cat because bash on DJGPP gets confused if
18040 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18041 # text mode, it properly converts lines to CR/LF. This bash problem
18042 # is reportedly fixed, but why not run on old versions too?
18043 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18044 || (rm -f "$cfgfile"; exit 1)
18045
18046 case $xsi_shell in
18047 yes)
18048 cat << \_LT_EOF >> "$cfgfile"
18049
18050# func_dirname file append nondir_replacement
18051# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18052# otherwise set result to NONDIR_REPLACEMENT.
18053func_dirname ()
18054{
18055 case ${1} in
18056 */*) func_dirname_result="${1%/*}${2}" ;;
18057 * ) func_dirname_result="${3}" ;;
18058 esac
18059}
18060
18061# func_basename file
18062func_basename ()
18063{
18064 func_basename_result="${1##*/}"
18065}
18066
18067# func_dirname_and_basename file append nondir_replacement
18068# perform func_basename and func_dirname in a single function
18069# call:
18070# dirname: Compute the dirname of FILE. If nonempty,
18071# add APPEND to the result, otherwise set result
18072# to NONDIR_REPLACEMENT.
18073# value returned in "$func_dirname_result"
18074# basename: Compute filename of FILE.
18075# value retuned in "$func_basename_result"
18076# Implementation must be kept synchronized with func_dirname
18077# and func_basename. For efficiency, we do not delegate to
18078# those functions but instead duplicate the functionality here.
18079func_dirname_and_basename ()
18080{
18081 case ${1} in
18082 */*) func_dirname_result="${1%/*}${2}" ;;
18083 * ) func_dirname_result="${3}" ;;
18084 esac
18085 func_basename_result="${1##*/}"
18086}
18087
18088# func_stripname prefix suffix name
18089# strip PREFIX and SUFFIX off of NAME.
18090# PREFIX and SUFFIX must not contain globbing or regex special
18091# characters, hashes, percent signs, but SUFFIX may contain a leading
18092# dot (in which case that matches only a dot).
18093func_stripname ()
18094{
18095 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18096 # positional parameters, so assign one to ordinary parameter first.
18097 func_stripname_result=${3}
18098 func_stripname_result=${func_stripname_result#"${1}"}
18099 func_stripname_result=${func_stripname_result%"${2}"}
18100}
18101
18102# func_opt_split
18103func_opt_split ()
18104{
18105 func_opt_split_opt=${1%%=*}
18106 func_opt_split_arg=${1#*=}
18107}
18108
18109# func_lo2o object
18110func_lo2o ()
18111{
18112 case ${1} in
18113 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18114 *) func_lo2o_result=${1} ;;
18115 esac
18116}
18117
18118# func_xform libobj-or-source
18119func_xform ()
18120{
18121 func_xform_result=${1%.*}.lo
18122}
18123
18124# func_arith arithmetic-term...
18125func_arith ()
18126{
18127 func_arith_result=$(( $* ))
18128}
18129
18130# func_len string
18131# STRING may not start with a hyphen.
18132func_len ()
18133{
18134 func_len_result=${#1}
18135}
18136
18137_LT_EOF
18138 ;;
18139 *) # Bourne compatible functions.
18140 cat << \_LT_EOF >> "$cfgfile"
18141
18142# func_dirname file append nondir_replacement
18143# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18144# otherwise set result to NONDIR_REPLACEMENT.
18145func_dirname ()
18146{
18147 # Extract subdirectory from the argument.
18148 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18149 if test "X$func_dirname_result" = "X${1}"; then
18150 func_dirname_result="${3}"
18151 else
18152 func_dirname_result="$func_dirname_result${2}"
18153 fi
18154}
18155
18156# func_basename file
18157func_basename ()
18158{
18159 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18160}
18161
18162
18163# func_stripname prefix suffix name
18164# strip PREFIX and SUFFIX off of NAME.
18165# PREFIX and SUFFIX must not contain globbing or regex special
18166# characters, hashes, percent signs, but SUFFIX may contain a leading
18167# dot (in which case that matches only a dot).
18168# func_strip_suffix prefix name
18169func_stripname ()
18170{
18171 case ${2} in
18172 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18173 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18174 esac
18175}
18176
18177# sed scripts:
18178my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18179my_sed_long_arg='1s/^-[^=]*=//'
18180
18181# func_opt_split
18182func_opt_split ()
18183{
18184 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18185 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18186}
18187
18188# func_lo2o object
18189func_lo2o ()
18190{
18191 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18192}
18193
18194# func_xform libobj-or-source
18195func_xform ()
18196{
18197 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18198}
18199
18200# func_arith arithmetic-term...
18201func_arith ()
18202{
18203 func_arith_result=`expr "$@"`
18204}
18205
18206# func_len string
18207# STRING may not start with a hyphen.
18208func_len ()
18209{
18210 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18211}
18212
18213_LT_EOF
18214esac
18215
18216case $lt_shell_append in
18217 yes)
18218 cat << \_LT_EOF >> "$cfgfile"
18219
18220# func_append var value
18221# Append VALUE to the end of shell variable VAR.
18222func_append ()
18223{
18224 eval "$1+=\$2"
18225}
18226_LT_EOF
18227 ;;
18228 *)
18229 cat << \_LT_EOF >> "$cfgfile"
18230
18231# func_append var value
18232# Append VALUE to the end of shell variable VAR.
18233func_append ()
18234{
18235 eval "$1=\$$1\$2"
18236}
18237
18238_LT_EOF
18239 ;;
18240 esac
18241
18242
18243 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18244 || (rm -f "$cfgfile"; exit 1)
18245
18246 mv -f "$cfgfile" "$ofile" ||
18247 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18248 chmod +x "$ofile"
18249
18250 ;;
18251 "gstdint.h":C)
18252if test "$GCC" = yes; then
18253 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18254else
18255 echo "/* generated for $CC */" > tmp-stdint.h
18256fi
18257
18258sed 's/^ *//' >> tmp-stdint.h <<EOF
18259
18260 #ifndef GCC_GENERATED_STDINT_H
18261 #define GCC_GENERATED_STDINT_H 1
18262
18263 #include <sys/types.h>
18264EOF
18265
18266if test "$acx_cv_header_stdint" != stdint.h; then
18267 echo "#include <stddef.h>" >> tmp-stdint.h
18268fi
18269if test "$acx_cv_header_stdint" != stddef.h; then
18270 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18271fi
18272
18273sed 's/^ *//' >> tmp-stdint.h <<EOF
18274 /* glibc uses these symbols as guards to prevent redefinitions. */
18275 #ifdef __int8_t_defined
18276 #define _INT8_T
18277 #define _INT16_T
18278 #define _INT32_T
18279 #endif
18280 #ifdef __uint32_t_defined
18281 #define _UINT32_T
18282 #endif
18283
18284EOF
18285
18286# ----------------- done header, emit basic int types -------------
18287if test "$acx_cv_header_stdint" = stddef.h; then
18288 sed 's/^ *//' >> tmp-stdint.h <<EOF
18289
18290 #ifndef _UINT8_T
18291 #define _UINT8_T
18292 #ifndef __uint8_t_defined
18293 #define __uint8_t_defined
18294 #ifndef uint8_t
18295 typedef unsigned $acx_cv_type_int8_t uint8_t;
18296 #endif
18297 #endif
18298 #endif
18299
18300 #ifndef _UINT16_T
18301 #define _UINT16_T
18302 #ifndef __uint16_t_defined
18303 #define __uint16_t_defined
18304 #ifndef uint16_t
18305 typedef unsigned $acx_cv_type_int16_t uint16_t;
18306 #endif
18307 #endif
18308 #endif
18309
18310 #ifndef _UINT32_T
18311 #define _UINT32_T
18312 #ifndef __uint32_t_defined
18313 #define __uint32_t_defined
18314 #ifndef uint32_t
18315 typedef unsigned $acx_cv_type_int32_t uint32_t;
18316 #endif
18317 #endif
18318 #endif
18319
18320 #ifndef _INT8_T
18321 #define _INT8_T
18322 #ifndef __int8_t_defined
18323 #define __int8_t_defined
18324 #ifndef int8_t
18325 typedef $acx_cv_type_int8_t int8_t;
18326 #endif
18327 #endif
18328 #endif
18329
18330 #ifndef _INT16_T
18331 #define _INT16_T
18332 #ifndef __int16_t_defined
18333 #define __int16_t_defined
18334 #ifndef int16_t
18335 typedef $acx_cv_type_int16_t int16_t;
18336 #endif
18337 #endif
18338 #endif
18339
18340 #ifndef _INT32_T
18341 #define _INT32_T
18342 #ifndef __int32_t_defined
18343 #define __int32_t_defined
18344 #ifndef int32_t
18345 typedef $acx_cv_type_int32_t int32_t;
18346 #endif
18347 #endif
18348 #endif
18349EOF
18350elif test "$ac_cv_type_u_int32_t" = yes; then
18351 sed 's/^ *//' >> tmp-stdint.h <<EOF
18352
18353 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18354 #ifndef _INT8_T
18355 #define _INT8_T
18356 #endif
18357 #ifndef _INT16_T
18358 #define _INT16_T
18359 #endif
18360 #ifndef _INT32_T
18361 #define _INT32_T
18362 #endif
18363
18364 #ifndef _UINT8_T
18365 #define _UINT8_T
18366 #ifndef __uint8_t_defined
18367 #define __uint8_t_defined
18368 #ifndef uint8_t
18369 typedef u_int8_t uint8_t;
18370 #endif
18371 #endif
18372 #endif
18373
18374 #ifndef _UINT16_T
18375 #define _UINT16_T
18376 #ifndef __uint16_t_defined
18377 #define __uint16_t_defined
18378 #ifndef uint16_t
18379 typedef u_int16_t uint16_t;
18380 #endif
18381 #endif
18382 #endif
18383
18384 #ifndef _UINT32_T
18385 #define _UINT32_T
18386 #ifndef __uint32_t_defined
18387 #define __uint32_t_defined
18388 #ifndef uint32_t
18389 typedef u_int32_t uint32_t;
18390 #endif
18391 #endif
18392 #endif
18393EOF
18394else
18395 sed 's/^ *//' >> tmp-stdint.h <<EOF
18396
18397 /* Some systems have guard macros to prevent redefinitions, define them. */
18398 #ifndef _INT8_T
18399 #define _INT8_T
18400 #endif
18401 #ifndef _INT16_T
18402 #define _INT16_T
18403 #endif
18404 #ifndef _INT32_T
18405 #define _INT32_T
18406 #endif
18407 #ifndef _UINT8_T
18408 #define _UINT8_T
18409 #endif
18410 #ifndef _UINT16_T
18411 #define _UINT16_T
18412 #endif
18413 #ifndef _UINT32_T
18414 #define _UINT32_T
18415 #endif
18416EOF
18417fi
18418
18419# ------------- done basic int types, emit int64_t types ------------
18420if test "$ac_cv_type_uint64_t" = yes; then
18421 sed 's/^ *//' >> tmp-stdint.h <<EOF
18422
18423 /* system headers have good uint64_t and int64_t */
18424 #ifndef _INT64_T
18425 #define _INT64_T
18426 #endif
18427 #ifndef _UINT64_T
18428 #define _UINT64_T
18429 #endif
18430EOF
18431elif test "$ac_cv_type_u_int64_t" = yes; then
18432 sed 's/^ *//' >> tmp-stdint.h <<EOF
18433
18434 /* system headers have an u_int64_t (and int64_t) */
18435 #ifndef _INT64_T
18436 #define _INT64_T
18437 #endif
18438 #ifndef _UINT64_T
18439 #define _UINT64_T
18440 #ifndef __uint64_t_defined
18441 #define __uint64_t_defined
18442 #ifndef uint64_t
18443 typedef u_int64_t uint64_t;
18444 #endif
18445 #endif
18446 #endif
18447EOF
18448elif test -n "$acx_cv_type_int64_t"; then
18449 sed 's/^ *//' >> tmp-stdint.h <<EOF
18450
18451 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18452 #ifndef _INT64_T
18453 #define _INT64_T
18454 #ifndef int64_t
18455 typedef $acx_cv_type_int64_t int64_t;
18456 #endif
18457 #endif
18458 #ifndef _UINT64_T
18459 #define _UINT64_T
18460 #ifndef __uint64_t_defined
18461 #define __uint64_t_defined
18462 #ifndef uint64_t
18463 typedef unsigned $acx_cv_type_int64_t uint64_t;
18464 #endif
18465 #endif
18466 #endif
18467EOF
18468else
18469 sed 's/^ *//' >> tmp-stdint.h <<EOF
18470
18471 /* some common heuristics for int64_t, using compiler-specific tests */
18472 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18473 #ifndef _INT64_T
18474 #define _INT64_T
18475 #ifndef __int64_t_defined
18476 #ifndef int64_t
18477 typedef long long int64_t;
18478 #endif
18479 #endif
18480 #endif
18481 #ifndef _UINT64_T
18482 #define _UINT64_T
18483 #ifndef uint64_t
18484 typedef unsigned long long uint64_t;
18485 #endif
18486 #endif
18487
18488 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18489 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18490 does not implement __extension__. But that compiler doesn't define
18491 __GNUC_MINOR__. */
18492 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18493 # define __extension__
18494 # endif
18495
18496 # ifndef _INT64_T
18497 # define _INT64_T
18498 # ifndef int64_t
18499 __extension__ typedef long long int64_t;
18500 # endif
18501 # endif
18502 # ifndef _UINT64_T
18503 # define _UINT64_T
18504 # ifndef uint64_t
18505 __extension__ typedef unsigned long long uint64_t;
18506 # endif
18507 # endif
18508
18509 #elif !defined __STRICT_ANSI__
18510 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18511
18512 # ifndef _INT64_T
18513 # define _INT64_T
18514 # ifndef int64_t
18515 typedef __int64 int64_t;
18516 # endif
18517 # endif
18518 # ifndef _UINT64_T
18519 # define _UINT64_T
18520 # ifndef uint64_t
18521 typedef unsigned __int64 uint64_t;
18522 # endif
18523 # endif
18524 # endif /* compiler */
18525
18526 #endif /* ANSI version */
18527EOF
18528fi
18529
18530# ------------- done int64_t types, emit intptr types ------------
18531if test "$ac_cv_type_uintptr_t" != yes; then
18532 sed 's/^ *//' >> tmp-stdint.h <<EOF
18533
18534 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18535 #ifndef __uintptr_t_defined
18536 #ifndef uintptr_t
18537 typedef u$acx_cv_type_intptr_t uintptr_t;
18538 #endif
18539 #endif
18540 #ifndef __intptr_t_defined
18541 #ifndef intptr_t
18542 typedef $acx_cv_type_intptr_t intptr_t;
18543 #endif
18544 #endif
18545EOF
18546fi
18547
18548# ------------- done intptr types, emit int_least types ------------
18549if test "$ac_cv_type_int_least32_t" != yes; then
18550 sed 's/^ *//' >> tmp-stdint.h <<EOF
18551
18552 /* Define int_least types */
18553 typedef int8_t int_least8_t;
18554 typedef int16_t int_least16_t;
18555 typedef int32_t int_least32_t;
18556 #ifdef _INT64_T
18557 typedef int64_t int_least64_t;
18558 #endif
18559
18560 typedef uint8_t uint_least8_t;
18561 typedef uint16_t uint_least16_t;
18562 typedef uint32_t uint_least32_t;
18563 #ifdef _UINT64_T
18564 typedef uint64_t uint_least64_t;
18565 #endif
18566EOF
18567fi
18568
18569# ------------- done intptr types, emit int_fast types ------------
18570if test "$ac_cv_type_int_fast32_t" != yes; then
18571 sed 's/^ *//' >> tmp-stdint.h <<EOF
18572
18573 /* Define int_fast types. short is often slow */
18574 typedef int8_t int_fast8_t;
18575 typedef int int_fast16_t;
18576 typedef int32_t int_fast32_t;
18577 #ifdef _INT64_T
18578 typedef int64_t int_fast64_t;
18579 #endif
18580
18581 typedef uint8_t uint_fast8_t;
18582 typedef unsigned int uint_fast16_t;
18583 typedef uint32_t uint_fast32_t;
18584 #ifdef _UINT64_T
18585 typedef uint64_t uint_fast64_t;
18586 #endif
18587EOF
18588fi
18589
18590if test "$ac_cv_type_uintmax_t" != yes; then
18591 sed 's/^ *//' >> tmp-stdint.h <<EOF
18592
18593 /* Define intmax based on what we found */
18594 #ifndef intmax_t
18595 #ifdef _INT64_T
18596 typedef int64_t intmax_t;
18597 #else
18598 typedef long intmax_t;
18599 #endif
18600 #endif
18601 #ifndef uintmax_t
18602 #ifdef _UINT64_T
18603 typedef uint64_t uintmax_t;
18604 #else
18605 typedef unsigned long uintmax_t;
18606 #endif
18607 #endif
18608EOF
18609fi
18610
18611sed 's/^ *//' >> tmp-stdint.h <<EOF
18612
18613 #endif /* GCC_GENERATED_STDINT_H */
18614EOF
18615
18616if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
18617 rm -f tmp-stdint.h
18618else
18619 mv -f tmp-stdint.h gstdint.h
18620fi
18621
18622 ;;
18623
18624 esac
18625done # for ac_tag
18626
18627
18628as_fn_exit 0
18629_ACEOF
18630ac_clean_files=$ac_clean_files_save
18631
18632test $ac_write_fail = 0 ||
22e05272 18633 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48310492
RH
18634
18635
18636# configure is writing to config.log, and then calls config.status.
18637# config.status does its own redirection, appending to config.log.
18638# Unfortunately, on DOS this fails, as config.log is still kept open
18639# by configure, so config.status won't be able to write to it; its
18640# output is simply discarded. So we exec the FD to /dev/null,
18641# effectively closing config.log, so it can be properly (re)opened and
18642# appended to by config.status. When coming back to configure, we
18643# need to make the FD available again.
18644if test "$no_create" != yes; then
18645 ac_cs_success=:
18646 ac_config_status_args=
18647 test "$silent" = yes &&
18648 ac_config_status_args="$ac_config_status_args --quiet"
18649 exec 5>/dev/null
18650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18651 exec 5>>config.log
18652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18653 # would make configure fail if this is the last instruction.
22e05272 18654 $ac_cs_success || as_fn_exit 1
48310492
RH
18655fi
18656if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18658$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18659fi
18660