]> git.ipfire.org Git - thirdparty/gcc.git/blame - libatomic/configure
GCC: Check if AR works with --plugin and rc
[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
fa3cd3c3
RH
661MAINT
662MAINTAINER_MODE_FALSE
663MAINTAINER_MODE_TRUE
48310492
RH
664enable_static
665enable_shared
dc3368d0 666lt_host_flags
48310492
RH
667CPP
668OTOOL64
669OTOOL
670LIPO
671NMEDIT
672DSYMUTIL
673OBJDUMP
674LN_S
675ac_ct_DUMPBIN
676DUMPBIN
677LD
678FGREP
679EGREP
680GREP
681SED
682LIBTOOL
48310492
RH
683RANLIB
684NM
685AR
686am__fastdepCCAS_FALSE
687am__fastdepCCAS_TRUE
688CCASDEPMODE
689CCASFLAGS
690CCAS
691am__fastdepCC_FALSE
692am__fastdepCC_TRUE
693CCDEPMODE
dc3368d0 694am__nodep
48310492
RH
695AMDEPBACKSLASH
696AMDEP_FALSE
697AMDEP_TRUE
698am__quote
699am__include
700DEPDIR
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
708toolexeclibdir
709toolexecdir
710multi_basedir
22e05272
JM
711AM_BACKSLASH
712AM_DEFAULT_VERBOSITY
713AM_DEFAULT_V
714AM_V
48310492
RH
715am__untar
716am__tar
717AMTAR
718am__leading_dot
719SET_MAKE
720AWK
721mkdir_p
722MKDIR_P
723INSTALL_STRIP_PROGRAM
724STRIP
725install_sh
726MAKEINFO
727AUTOHEADER
728AUTOMAKE
729AUTOCONF
730ACLOCAL
731VERSION
732PACKAGE
733CYGPATH_W
734am__isrc
735INSTALL_DATA
736INSTALL_SCRIPT
737INSTALL_PROGRAM
738target_os
739target_vendor
740target_cpu
741target
742host_os
743host_vendor
744host_cpu
745host
746build_os
747build_vendor
748build_cpu
749build
750GENINSRC_FALSE
751GENINSRC_TRUE
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793enable_version_specific_runtime_libs
794enable_generated_files_in_srcdir
22e05272 795enable_silent_rules
48310492 796enable_multilib
e8e66971 797with_toolexeclibdir
48310492
RH
798enable_dependency_tracking
799enable_shared
800enable_static
801with_pic
802enable_fast_install
803with_gnu_ld
804enable_libtool_lock
fa3cd3c3 805enable_maintainer_mode
48310492 806enable_symvers
45ba6bf2 807enable_werror
efc643e9 808enable_cet
3c36aa6b 809with_gcc_major_version_only
48310492
RH
810'
811 ac_precious_vars='build_alias
812host_alias
813target_alias
814CPP
815CPPFLAGS'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
22e05272
JM
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *=) ac_optarg= ;;
880 *) ac_optarg=yes ;;
48310492
RH
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 925 as_fn_error $? "invalid feature name: $ac_useropt"
48310492
RH
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 951 as_fn_error $? "invalid feature name: $ac_useropt"
48310492
RH
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1155 as_fn_error $? "invalid package name: $ac_useropt"
48310492
RH
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1171 as_fn_error $? "invalid package name: $ac_useropt"
48310492
RH
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176"with_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
22e05272
JM
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information"
48310492
RH
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
48310492
RH
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
48310492
RH
1221 ;;
1222
1223 esac
1224done
1225
1226if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1228 as_fn_error $? "missing argument to $ac_option"
48310492
RH
1229fi
1230
1231if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
22e05272 1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
48310492
RH
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237fi
1238
1239# Check all directory arguments for consistency.
1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
22e05272 1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
48310492
RH
1258done
1259
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
48310492
RH
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1285 as_fn_error $? "working directory cannot be determined"
48310492 1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1287 as_fn_error $? "pwd does not report name of working directory"
48310492
RH
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321else
1322 ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
48310492
RH
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
22e05272 1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
48310492
RH
1331 pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356\`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
22e05272 1370 -q, --quiet, --silent do not print \`checking ...' messages
48310492
RH
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409_ACEOF
1410
1411 cat <<\_ACEOF
1412
1413Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1422_ACEOF
1423fi
1424
1425if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
1428 esac
1429 cat <<\_ACEOF
1430
1431Optional Features:
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-version-specific-runtime-libs
1436 Specify that runtime libraries should be installed
1437 in a compiler-specific directory [default=no]
1438 --enable-generated-files-in-srcdir
1439 put copies of generated files in source dir intended
1440 for creating source tarballs for users without
1441 texinfo bison or flex. [default=no]
22e05272
JM
1442 --enable-silent-rules less verbose build output (undo: "make V=1")
1443 --disable-silent-rules verbose build output (undo: "make V=0")
48310492 1444 --enable-multilib build many library versions (default)
22e05272
JM
1445 --enable-dependency-tracking
1446 do not reject slow dependency extractors
1447 --disable-dependency-tracking
1448 speeds up one-time build
48310492
RH
1449 --enable-shared[=PKGS] build shared libraries [default=yes]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
22e05272
JM
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
48310492
RH
1457 --enable-symvers=STYLE enables symbol versioning of the shared library
1458 [default=yes]
45ba6bf2 1459 --disable-werror disable building with -Werror
8d286dd1 1460 --enable-cet enable Intel CET in target libraries [default=auto]
48310492
RH
1461
1462Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
e8e66971
MR
1465 --with-toolexeclibdir=DIR
1466 install libraries built with a cross compiler within
1467 DIR
48310492
RH
1468 --with-pic try to use only PIC/non-PIC objects [default=use
1469 both]
1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1471 --with-gcc-major-version-only
1472 use only GCC major number in filesystem paths
48310492
RH
1473
1474Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
48310492
RH
1481 you have headers in a nonstandard directory <include dir>
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1484 CPP C preprocessor
1485
1486Use these variables to override the choices made by `configure' or to help
1487it to find libraries and programs with nonstandard names/locations.
1488
1489Report bugs to the package provider.
1490GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1491General help using GNU software: <http://www.gnu.org/gethelp/>.
1492_ACEOF
1493ac_status=$?
1494fi
1495
1496if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 continue
1502 ac_builddir=.
1503
1504case "$ac_dir" in
1505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506*)
1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514esac
1515ac_abs_top_builddir=$ac_pwd
1516ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517# for backward compatibility:
1518ac_top_builddir=$ac_top_build_prefix
1519
1520case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533esac
1534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1549fi
1550
1551test -n "$ac_init_help" && exit $ac_status
1552if $ac_init_version; then
1553 cat <<\_ACEOF
1554GNU Atomic Library configure 1.0
22e05272 1555generated by GNU Autoconf 2.69
48310492 1556
22e05272 1557Copyright (C) 2012 Free Software Foundation, Inc.
48310492
RH
1558This configure script is free software; the Free Software Foundation
1559gives unlimited permission to copy, distribute and modify it.
1560_ACEOF
1561 exit
1562fi
1563
1564## ------------------------ ##
1565## Autoconf initialization. ##
1566## ------------------------ ##
1567
1568# ac_fn_c_try_compile LINENO
1569# --------------------------
1570# Try to compile conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_compile ()
1572{
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
1576case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_compile") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest.$ac_objext; then :
1594 ac_retval=0
1595else
1596 $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600fi
22e05272
JM
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
48310492
RH
1603
1604} # ac_fn_c_try_compile
1605
1606# ac_fn_c_try_link LINENO
1607# -----------------------
1608# Try to link conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_link ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest$ac_exeext
1613 if { { ac_try="$ac_link"
1614case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest$ac_exeext && {
1632 test "$cross_compiling" = yes ||
22e05272 1633 test -x conftest$ac_exeext
48310492
RH
1634 }; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641fi
1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644 # interfere with the next link command; also delete a directory that is
1645 # left behind by Apple's compiler. We do this before executing the actions.
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
48310492
RH
1649
1650} # ac_fn_c_try_link
1651
1652# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653# -------------------------------------------------------
1654# Tests whether HEADER exists and can be compiled using the include files in
1655# INCLUDES, setting the cache variable VAR accordingly.
1656ac_fn_c_check_header_compile ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660$as_echo_n "checking for $2... " >&6; }
22e05272 1661if eval \${$3+:} false; then :
48310492
RH
1662 $as_echo_n "(cached) " >&6
1663else
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665/* end confdefs.h. */
1666$4
1667#include <$2>
1668_ACEOF
1669if ac_fn_c_try_compile "$LINENO"; then :
1670 eval "$3=yes"
1671else
1672 eval "$3=no"
1673fi
1674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675fi
1676eval ac_res=\$$3
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678$as_echo "$ac_res" >&6; }
22e05272 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1680
1681} # ac_fn_c_check_header_compile
1682
1683# ac_fn_c_try_cpp LINENO
1684# ----------------------
1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_cpp ()
1687{
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_cpp conftest.$ac_ext"
1690case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1704 test $ac_status = 0; } > conftest.i && {
48310492
RH
1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 }; then :
1708 ac_retval=0
1709else
1710 $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714fi
22e05272
JM
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
48310492
RH
1717
1718} # ac_fn_c_try_cpp
1719
1720# ac_fn_c_try_run LINENO
1721# ----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723# that executables *can* be run.
1724ac_fn_c_try_run ()
1725{
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=$ac_status
1755fi
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
48310492
RH
1759
1760} # ac_fn_c_try_run
1761
1762# ac_fn_c_check_func LINENO FUNC VAR
1763# ----------------------------------
1764# Tests whether FUNC exists, setting the cache variable VAR accordingly
1765ac_fn_c_check_func ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769$as_echo_n "checking for $2... " >&6; }
22e05272 1770if eval \${$3+:} false; then :
48310492
RH
1771 $as_echo_n "(cached) " >&6
1772else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1777#define $2 innocuous_$2
1778
1779/* System header to define __stub macros and hopefully few prototypes,
1780 which can conflict with char $2 (); below.
1781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1782 <limits.h> exists even on freestanding compilers. */
1783
1784#ifdef __STDC__
1785# include <limits.h>
1786#else
1787# include <assert.h>
1788#endif
1789
1790#undef $2
1791
1792/* Override any GCC internal prototype to avoid an error.
1793 Use char because int might match the return type of a GCC
1794 builtin and then its argument prototype would still apply. */
1795#ifdef __cplusplus
1796extern "C"
1797#endif
1798char $2 ();
1799/* The GNU C library defines this for functions which it implements
1800 to always fail with ENOSYS. Some functions are actually named
1801 something starting with __ and the normal name is an alias. */
1802#if defined __stub_$2 || defined __stub___$2
1803choke me
1804#endif
1805
1806int
1807main ()
1808{
1809return $2 ();
1810 ;
1811 return 0;
1812}
1813_ACEOF
1814if ac_fn_c_try_link "$LINENO"; then :
1815 eval "$3=yes"
1816else
1817 eval "$3=no"
1818fi
1819rm -f core conftest.err conftest.$ac_objext \
1820 conftest$ac_exeext conftest.$ac_ext
1821fi
1822eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
22e05272 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1826
1827} # ac_fn_c_check_func
1828
1829# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1830# -------------------------------------------
1831# Tests whether TYPE exists after having included INCLUDES, setting cache
1832# variable VAR accordingly.
1833ac_fn_c_check_type ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
22e05272 1838if eval \${$3+:} false; then :
48310492
RH
1839 $as_echo_n "(cached) " >&6
1840else
1841 eval "$3=no"
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h. */
1844$4
1845int
1846main ()
1847{
1848if (sizeof ($2))
1849 return 0;
1850 ;
1851 return 0;
1852}
1853_ACEOF
1854if ac_fn_c_try_compile "$LINENO"; then :
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h. */
1857$4
1858int
1859main ()
1860{
1861if (sizeof (($2)))
1862 return 0;
1863 ;
1864 return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_compile "$LINENO"; then :
1868
1869else
1870 eval "$3=yes"
1871fi
1872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873fi
1874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
22e05272 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1880
1881} # ac_fn_c_check_type
1882
1883# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1884# --------------------------------------------
1885# Tries to find the compile-time value of EXPR in a program that includes
1886# INCLUDES, setting VAR accordingly. Returns whether the value could be
1887# computed
1888ac_fn_c_compute_int ()
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if test "$cross_compiling" = yes; then
1892 # Depending upon the size, compute the lo and hi bounds.
1893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895$4
1896int
1897main ()
1898{
1899static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
1900test_array [0] = 0;
1901return test_array [0];
48310492
RH
1902
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_compile "$LINENO"; then :
1908 ac_lo=0 ac_mid=0
1909 while :; do
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912$4
1913int
1914main ()
1915{
1916static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1917test_array [0] = 0;
1918return test_array [0];
48310492
RH
1919
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925 ac_hi=$ac_mid; break
1926else
1927 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1928 if test $ac_lo -le $ac_mid; then
1929 ac_lo= ac_hi=
1930 break
1931 fi
1932 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1933fi
1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 done
1936else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h. */
1939$4
1940int
1941main ()
1942{
1943static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
1944test_array [0] = 0;
1945return test_array [0];
48310492
RH
1946
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_hi=-1 ac_mid=-1
1953 while :; do
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956$4
1957int
1958main ()
1959{
1960static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
1961test_array [0] = 0;
1962return test_array [0];
48310492
RH
1963
1964 ;
1965 return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_lo=$ac_mid; break
1970else
1971 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1972 if test $ac_mid -le $ac_hi; then
1973 ac_lo= ac_hi=
1974 break
1975 fi
1976 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 done
1980else
1981 ac_lo= ac_hi=
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986# Binary search between lo and hi bounds.
1987while test "x$ac_lo" != "x$ac_hi"; do
1988 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h. */
1991$4
1992int
1993main ()
1994{
1995static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1996test_array [0] = 0;
1997return test_array [0];
48310492
RH
1998
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_hi=$ac_mid
2005else
2006 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009done
2010case $ac_lo in #((
2011?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2012'') ac_retval=1 ;;
2013esac
2014 else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$4
2018static long int longval () { return $2; }
2019static unsigned long int ulongval () { return $2; }
2020#include <stdio.h>
2021#include <stdlib.h>
2022int
2023main ()
2024{
2025
2026 FILE *f = fopen ("conftest.val", "w");
2027 if (! f)
2028 return 1;
2029 if (($2) < 0)
2030 {
2031 long int i = longval ();
2032 if (i != ($2))
2033 return 1;
2034 fprintf (f, "%ld", i);
2035 }
2036 else
2037 {
2038 unsigned long int i = ulongval ();
2039 if (i != ($2))
2040 return 1;
2041 fprintf (f, "%lu", i);
2042 }
2043 /* Do not output a trailing newline, as this causes \r\n confusion
2044 on some platforms. */
2045 return ferror (f) || fclose (f) != 0;
2046
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_run "$LINENO"; then :
2052 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2053else
2054 ac_retval=1
2055fi
2056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2057 conftest.$ac_objext conftest.beam conftest.$ac_ext
2058rm -f conftest.val
2059
2060 fi
22e05272
JM
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status $ac_retval
48310492
RH
2063
2064} # ac_fn_c_compute_int
267bac10
JM
2065
2066# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2067# -------------------------------------------------------
2068# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2069# the include files in INCLUDES and setting the cache variable VAR
2070# accordingly.
2071ac_fn_c_check_header_mongrel ()
2072{
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 2074 if eval \${$3+:} false; then :
267bac10
JM
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076$as_echo_n "checking for $2... " >&6; }
22e05272 2077if eval \${$3+:} false; then :
267bac10
JM
2078 $as_echo_n "(cached) " >&6
2079fi
2080eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082$as_echo "$ac_res" >&6; }
2083else
2084 # Is the header compilable?
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2086$as_echo_n "checking $2 usability... " >&6; }
2087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089$4
2090#include <$2>
2091_ACEOF
2092if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_header_compiler=yes
2094else
2095 ac_header_compiler=no
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2099$as_echo "$ac_header_compiler" >&6; }
2100
2101# Is the header present?
2102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2103$as_echo_n "checking $2 presence... " >&6; }
2104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h. */
2106#include <$2>
2107_ACEOF
2108if ac_fn_c_try_cpp "$LINENO"; then :
2109 ac_header_preproc=yes
2110else
2111 ac_header_preproc=no
2112fi
22e05272 2113rm -f conftest.err conftest.i conftest.$ac_ext
267bac10
JM
2114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2115$as_echo "$ac_header_preproc" >&6; }
2116
2117# So? What about this header?
2118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2119 yes:no: )
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2121$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2123$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2124 ;;
2125 no:yes:* )
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2127$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2129$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2131$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2133$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2135$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2136 ;;
2137esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
22e05272 2140if eval \${$3+:} false; then :
267bac10
JM
2141 $as_echo_n "(cached) " >&6
2142else
2143 eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
22e05272 2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
267bac10
JM
2150
2151} # ac_fn_c_check_header_mongrel
48310492
RH
2152cat >config.log <<_ACEOF
2153This file contains any messages produced by compilers while
2154running configure, to aid debugging if configure makes a mistake.
2155
2156It was created by GNU Atomic Library $as_me 1.0, which was
22e05272 2157generated by GNU Autoconf 2.69. Invocation command line was
48310492
RH
2158
2159 $ $0 $@
2160
2161_ACEOF
2162exec 5>>config.log
2163{
2164cat <<_ASUNAME
2165## --------- ##
2166## Platform. ##
2167## --------- ##
2168
2169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173uname -v = `(uname -v) 2>/dev/null || echo unknown`
2174
2175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2177
2178/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2179/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2182/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2183/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2184/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2185
2186_ASUNAME
2187
2188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189for as_dir in $PATH
2190do
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 $as_echo "PATH: $as_dir"
2194 done
2195IFS=$as_save_IFS
2196
2197} >&5
2198
2199cat >&5 <<_ACEOF
2200
2201
2202## ----------- ##
2203## Core tests. ##
2204## ----------- ##
2205
2206_ACEOF
2207
2208
2209# Keep a trace of the command line.
2210# Strip out --no-create and --no-recursion so they do not pile up.
2211# Strip out --silent because we don't want to record it for future runs.
2212# Also quote any args containing shell meta-characters.
2213# Make two passes to allow for proper duplicate-argument suppression.
2214ac_configure_args=
2215ac_configure_args0=
2216ac_configure_args1=
2217ac_must_keep_next=false
2218for ac_pass in 1 2
2219do
2220 for ac_arg
2221 do
2222 case $ac_arg in
2223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225 | -silent | --silent | --silen | --sile | --sil)
2226 continue ;;
2227 *\'*)
2228 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2229 esac
2230 case $ac_pass in
2231 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2232 2)
2233 as_fn_append ac_configure_args1 " '$ac_arg'"
2234 if test $ac_must_keep_next = true; then
2235 ac_must_keep_next=false # Got value, back to normal.
2236 else
2237 case $ac_arg in
2238 *=* | --config-cache | -C | -disable-* | --disable-* \
2239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241 | -with-* | --with-* | -without-* | --without-* | --x)
2242 case "$ac_configure_args0 " in
2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2244 esac
2245 ;;
2246 -* ) ac_must_keep_next=true ;;
2247 esac
2248 fi
2249 as_fn_append ac_configure_args " '$ac_arg'"
2250 ;;
2251 esac
2252 done
2253done
2254{ ac_configure_args0=; unset ac_configure_args0;}
2255{ ac_configure_args1=; unset ac_configure_args1;}
2256
2257# When interrupted or exit'd, cleanup temporary files, and complete
2258# config.log. We remove comments because anyway the quotes in there
2259# would cause problems or look ugly.
2260# WARNING: Use '\'' to represent an apostrophe within the trap.
2261# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262trap 'exit_status=$?
2263 # Save into config.log some information that might help in debugging.
2264 {
2265 echo
2266
22e05272 2267 $as_echo "## ---------------- ##
48310492 2268## Cache variables. ##
22e05272 2269## ---------------- ##"
48310492
RH
2270 echo
2271 # The following way of writing the cache mishandles newlines in values,
2272(
2273 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2274 eval ac_val=\$$ac_var
2275 case $ac_val in #(
2276 *${as_nl}*)
2277 case $ac_var in #(
2278 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2279$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2280 esac
2281 case $ac_var in #(
2282 _ | IFS | as_nl) ;; #(
2283 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2284 *) { eval $ac_var=; unset $ac_var;} ;;
2285 esac ;;
2286 esac
2287 done
2288 (set) 2>&1 |
2289 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2290 *${as_nl}ac_space=\ *)
2291 sed -n \
2292 "s/'\''/'\''\\\\'\'''\''/g;
2293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2294 ;; #(
2295 *)
2296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2297 ;;
2298 esac |
2299 sort
2300)
2301 echo
2302
22e05272 2303 $as_echo "## ----------------- ##
48310492 2304## Output variables. ##
22e05272 2305## ----------------- ##"
48310492
RH
2306 echo
2307 for ac_var in $ac_subst_vars
2308 do
2309 eval ac_val=\$$ac_var
2310 case $ac_val in
2311 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2312 esac
2313 $as_echo "$ac_var='\''$ac_val'\''"
2314 done | sort
2315 echo
2316
2317 if test -n "$ac_subst_files"; then
22e05272 2318 $as_echo "## ------------------- ##
48310492 2319## File substitutions. ##
22e05272 2320## ------------------- ##"
48310492
RH
2321 echo
2322 for ac_var in $ac_subst_files
2323 do
2324 eval ac_val=\$$ac_var
2325 case $ac_val in
2326 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327 esac
2328 $as_echo "$ac_var='\''$ac_val'\''"
2329 done | sort
2330 echo
2331 fi
2332
2333 if test -s confdefs.h; then
22e05272 2334 $as_echo "## ----------- ##
48310492 2335## confdefs.h. ##
22e05272 2336## ----------- ##"
48310492
RH
2337 echo
2338 cat confdefs.h
2339 echo
2340 fi
2341 test "$ac_signal" != 0 &&
2342 $as_echo "$as_me: caught signal $ac_signal"
2343 $as_echo "$as_me: exit $exit_status"
2344 } >&5
2345 rm -f core *.core core.conftest.* &&
2346 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2347 exit $exit_status
2348' 0
2349for ac_signal in 1 2 13 15; do
2350 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2351done
2352ac_signal=0
2353
2354# confdefs.h avoids OS command line length limits that DEFS can exceed.
2355rm -f -r conftest* confdefs.h
2356
2357$as_echo "/* confdefs.h */" > confdefs.h
2358
2359# Predefined preprocessor variables.
2360
2361cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_NAME "$PACKAGE_NAME"
2363_ACEOF
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2367_ACEOF
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_VERSION "$PACKAGE_VERSION"
2371_ACEOF
2372
2373cat >>confdefs.h <<_ACEOF
2374#define PACKAGE_STRING "$PACKAGE_STRING"
2375_ACEOF
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_URL "$PACKAGE_URL"
2383_ACEOF
2384
2385
2386# Let the site file select an alternate cache file if it wants to.
2387# Prefer an explicitly selected file to automatically selected ones.
2388ac_site_file1=NONE
2389ac_site_file2=NONE
2390if test -n "$CONFIG_SITE"; then
22e05272
JM
2391 # We do not want a PATH search for config.site.
2392 case $CONFIG_SITE in #((
2393 -*) ac_site_file1=./$CONFIG_SITE;;
2394 */*) ac_site_file1=$CONFIG_SITE;;
2395 *) ac_site_file1=./$CONFIG_SITE;;
2396 esac
48310492
RH
2397elif test "x$prefix" != xNONE; then
2398 ac_site_file1=$prefix/share/config.site
2399 ac_site_file2=$prefix/etc/config.site
2400else
2401 ac_site_file1=$ac_default_prefix/share/config.site
2402 ac_site_file2=$ac_default_prefix/etc/config.site
2403fi
2404for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2405do
2406 test "x$ac_site_file" = xNONE && continue
22e05272 2407 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
48310492
RH
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2409$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2410 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2411 . "$ac_site_file" \
2412 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414as_fn_error $? "failed to load site script $ac_site_file
2415See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
2416 fi
2417done
2418
2419if test -r "$cache_file"; then
22e05272
JM
2420 # Some versions of bash will fail to source /dev/null (special files
2421 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2422 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
48310492
RH
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424$as_echo "$as_me: loading cache $cache_file" >&6;}
2425 case $cache_file in
2426 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427 *) . "./$cache_file";;
2428 esac
2429 fi
2430else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432$as_echo "$as_me: creating cache $cache_file" >&6;}
2433 >$cache_file
2434fi
2435
2436# Check that the precious variables saved in the cache have kept the same
2437# value.
2438ac_cache_corrupted=false
2439for ac_var in $ac_precious_vars; do
2440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441 eval ac_new_set=\$ac_env_${ac_var}_set
2442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443 eval ac_new_val=\$ac_env_${ac_var}_value
2444 case $ac_old_set,$ac_new_set in
2445 set,)
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448 ac_cache_corrupted=: ;;
2449 ,set)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,);;
2454 *)
2455 if test "x$ac_old_val" != "x$ac_new_val"; then
2456 # differences in whitespace do not lead to failure.
2457 ac_old_val_w=`echo x $ac_old_val`
2458 ac_new_val_w=`echo x $ac_new_val`
2459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462 ac_cache_corrupted=:
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466 eval $ac_var=\$ac_old_val
2467 fi
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2469$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2471$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2472 fi;;
2473 esac
2474 # Pass precious variables to config.status.
2475 if test "$ac_new_set" = set; then
2476 case $ac_new_val in
2477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 *) ac_arg=$ac_var=$ac_new_val ;;
2479 esac
2480 case " $ac_configure_args " in
2481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2483 esac
2484 fi
2485done
2486if $ac_cache_corrupted; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2491 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
48310492
RH
2492fi
2493## -------------------- ##
2494## Main body of script. ##
2495## -------------------- ##
2496
2497ac_ext=c
2498ac_cpp='$CPP $CPPFLAGS'
2499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503
2504
2505
2506
2507ac_config_headers="$ac_config_headers auto-config.h"
2508
2509
2510# -------
2511# Options
2512# -------
2513
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2515$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2516 # Check whether --enable-version-specific-runtime-libs was given.
2517if test "${enable_version_specific_runtime_libs+set}" = set; then :
2518 enableval=$enable_version_specific_runtime_libs;
2519 case "$enableval" in
2520 yes|no) ;;
22e05272 2521 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
48310492
RH
2522 esac
2523
2524else
2525 enable_version_specific_runtime_libs=no
2526fi
2527
2528
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2530$as_echo "$enable_version_specific_runtime_libs" >&6; }
2531
2532# We would like our source tree to be readonly. However when releases or
2533# pre-releases are generated, the flex/bison generated files as well as the
2534# various formats of manuals need to be included along with the rest of the
2535# sources. Therefore we have --enable-generated-files-in-srcdir to do
2536# just that.
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2538$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2539 # Check whether --enable-generated-files-in-srcdir was given.
2540if test "${enable_generated_files_in_srcdir+set}" = set; then :
2541 enableval=$enable_generated_files_in_srcdir;
2542 case "$enableval" in
2543 yes|no) ;;
22e05272 2544 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
48310492
RH
2545 esac
2546
2547else
2548 enable_generated_files_in_srcdir=no
2549fi
2550
2551
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2553$as_echo "$enable_generated_files_in_srcdir" >&6; }
2554 if test "$enable_generated_files_in_srcdir" = yes; then
2555 GENINSRC_TRUE=
2556 GENINSRC_FALSE='#'
2557else
2558 GENINSRC_TRUE='#'
2559 GENINSRC_FALSE=
2560fi
2561
2562
2563
2564# -------
2565
2566# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2567#
2568# You will slowly go insane if you do not grok the following fact: when
2569# building this library, the top-level /target/ becomes the library's /host/.
2570#
2571# configure then causes --target to default to --host, exactly like any
2572# other package using autoconf. Therefore, 'target' and 'host' will
2573# always be the same. This makes sense both for native and cross compilers
2574# just think about it for a little while. :-)
2575#
2576# Also, if this library is being configured as part of a cross compiler, the
2577# top-level configure script will pass the "real" host as $with_cross_host.
2578#
2579# Do not delete or change the following two lines. For why, see
2580# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2581ac_aux_dir=
2582for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2583 if test -f "$ac_dir/install-sh"; then
2584 ac_aux_dir=$ac_dir
2585 ac_install_sh="$ac_aux_dir/install-sh -c"
2586 break
2587 elif test -f "$ac_dir/install.sh"; then
2588 ac_aux_dir=$ac_dir
2589 ac_install_sh="$ac_aux_dir/install.sh -c"
2590 break
2591 elif test -f "$ac_dir/shtool"; then
2592 ac_aux_dir=$ac_dir
2593 ac_install_sh="$ac_aux_dir/shtool install -c"
2594 break
2595 fi
48310492
RH
2596done
2597if test -z "$ac_aux_dir"; then
22e05272 2598 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
48310492
RH
2599fi
2600
2601# These three variables are undocumented and unsupported,
2602# and are intended to be withdrawn in a future Autoconf release.
2603# They can cause serious problems if a builder's source tree is in a directory
2604# whose full name contains unusual characters.
2605ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2606ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2607ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2608
2609
2610# Make sure we can run config.sub.
2611$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2612 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
48310492
RH
2613
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2615$as_echo_n "checking build system type... " >&6; }
22e05272 2616if ${ac_cv_build+:} false; then :
48310492
RH
2617 $as_echo_n "(cached) " >&6
2618else
2619 ac_build_alias=$build_alias
2620test "x$ac_build_alias" = x &&
2621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2622test "x$ac_build_alias" = x &&
22e05272 2623 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
48310492 2624ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
48310492
RH
2626
2627fi
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2629$as_echo "$ac_cv_build" >&6; }
2630case $ac_cv_build in
2631*-*-*) ;;
22e05272 2632*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
48310492
RH
2633esac
2634build=$ac_cv_build
2635ac_save_IFS=$IFS; IFS='-'
2636set x $ac_cv_build
2637shift
2638build_cpu=$1
2639build_vendor=$2
2640shift; shift
2641# Remember, the first character of IFS is used to create $*,
2642# except with old shells:
2643build_os=$*
2644IFS=$ac_save_IFS
2645case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2646
2647
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2649$as_echo_n "checking host system type... " >&6; }
22e05272 2650if ${ac_cv_host+:} false; then :
48310492
RH
2651 $as_echo_n "(cached) " >&6
2652else
2653 if test "x$host_alias" = x; then
2654 ac_cv_host=$ac_cv_build
2655else
2656 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2657 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
48310492
RH
2658fi
2659
2660fi
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2662$as_echo "$ac_cv_host" >&6; }
2663case $ac_cv_host in
2664*-*-*) ;;
22e05272 2665*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
48310492
RH
2666esac
2667host=$ac_cv_host
2668ac_save_IFS=$IFS; IFS='-'
2669set x $ac_cv_host
2670shift
2671host_cpu=$1
2672host_vendor=$2
2673shift; shift
2674# Remember, the first character of IFS is used to create $*,
2675# except with old shells:
2676host_os=$*
2677IFS=$ac_save_IFS
2678case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2679
2680
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2682$as_echo_n "checking target system type... " >&6; }
22e05272 2683if ${ac_cv_target+:} false; then :
48310492
RH
2684 $as_echo_n "(cached) " >&6
2685else
2686 if test "x$target_alias" = x; then
2687 ac_cv_target=$ac_cv_host
2688else
2689 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
48310492
RH
2691fi
2692
2693fi
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2695$as_echo "$ac_cv_target" >&6; }
2696case $ac_cv_target in
2697*-*-*) ;;
22e05272 2698*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
48310492
RH
2699esac
2700target=$ac_cv_target
2701ac_save_IFS=$IFS; IFS='-'
2702set x $ac_cv_target
2703shift
2704target_cpu=$1
2705target_vendor=$2
2706shift; shift
2707# Remember, the first character of IFS is used to create $*,
2708# except with old shells:
2709target_os=$*
2710IFS=$ac_save_IFS
2711case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2712
2713
2714# The aliases save the names the user supplied, while $host etc.
2715# will get canonicalized.
2716test -n "$target_alias" &&
2717 test "$program_prefix$program_suffix$program_transform_name" = \
2718 NONENONEs,x,x, &&
2719 program_prefix=${target_alias}-
2720
2721target_alias=${target_alias-$host_alias}
2722
2723# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2724# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2725# 1.9.0: minimum required version
2726# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2727# of other PACKAGE_* variables will, however, and there's nothing
2728# we can do about that; they come from AC_INIT).
c0758df9 2729# no-dist: we don't want 'dist' and related rules.
48310492
RH
2730# foreign: we don't follow the normal rules for GNU packages (no COPYING
2731# file in the top srcdir, etc, etc), so stop complaining.
2732# -Wall: turns on all automake warnings...
2733# -Wno-portability: ...except this one, since GNU make is required.
2734# -Wno-override: ... and this one, since we do want this in testsuite.
22e05272 2735am__api_version='1.15'
48310492
RH
2736
2737# Find a good install program. We prefer a C program (faster),
2738# so one script is as good as another. But avoid the broken or
2739# incompatible versions:
2740# SysV /etc/install, /usr/sbin/install
2741# SunOS /usr/etc/install
2742# IRIX /sbin/install
2743# AIX /bin/install
2744# AmigaOS /C/install, which installs bootblocks on floppy discs
2745# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2746# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2747# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2748# OS/2's system install, which has a completely different semantic
2749# ./install, which can be erroneously created by make from ./install.sh.
2750# Reject install programs that cannot install multiple files.
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2752$as_echo_n "checking for a BSD-compatible install... " >&6; }
2753if test -z "$INSTALL"; then
22e05272 2754if ${ac_cv_path_install+:} false; then :
48310492
RH
2755 $as_echo_n "(cached) " >&6
2756else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 # Account for people who put trailing slashes in PATH elements.
2763case $as_dir/ in #((
2764 ./ | .// | /[cC]/* | \
2765 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2766 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2767 /usr/ucb/* ) ;;
2768 *)
2769 # OSF1 and SCO ODT 3.0 have their own names for install.
2770 # Don't use installbsd from OSF since it installs stuff as root
2771 # by default.
2772 for ac_prog in ginstall scoinst install; do
2773 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2774 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
48310492
RH
2775 if test $ac_prog = install &&
2776 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777 # AIX install. It has an incompatible calling convention.
2778 :
2779 elif test $ac_prog = install &&
2780 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781 # program-specific install script used by HP pwplus--don't use.
2782 :
2783 else
2784 rm -rf conftest.one conftest.two conftest.dir
2785 echo one > conftest.one
2786 echo two > conftest.two
2787 mkdir conftest.dir
2788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2789 test -s conftest.one && test -s conftest.two &&
2790 test -s conftest.dir/conftest.one &&
2791 test -s conftest.dir/conftest.two
2792 then
2793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2794 break 3
2795 fi
2796 fi
2797 fi
2798 done
2799 done
2800 ;;
2801esac
2802
2803 done
2804IFS=$as_save_IFS
2805
2806rm -rf conftest.one conftest.two conftest.dir
2807
2808fi
2809 if test "${ac_cv_path_install+set}" = set; then
2810 INSTALL=$ac_cv_path_install
2811 else
2812 # As a last resort, use the slow shell script. Don't cache a
2813 # value for INSTALL within a source directory, because that will
2814 # break other packages using the cache if that directory is
2815 # removed, or if the value is a relative name.
2816 INSTALL=$ac_install_sh
2817 fi
2818fi
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2820$as_echo "$INSTALL" >&6; }
2821
2822# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2823# It thinks the first close brace ends the variable substitution.
2824test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2825
2826test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2827
2828test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2829
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2831$as_echo_n "checking whether build environment is sane... " >&6; }
48310492
RH
2832# Reject unsafe characters in $srcdir or the absolute working directory
2833# name. Accept space and tab only in the latter.
2834am_lf='
2835'
2836case `pwd` in
2837 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2838 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
48310492
RH
2839esac
2840case $srcdir in
2841 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2842 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
48310492
RH
2843esac
2844
22e05272 2845# Do 'set' in a subshell so we don't clobber the current shell's
48310492
RH
2846# arguments. Must try -L first in case configure is actually a
2847# symlink; some systems play weird games with the mod time of symlinks
2848# (eg FreeBSD returns the mod time of the symlink's containing
2849# directory).
2850if (
22e05272
JM
2851 am_has_slept=no
2852 for am_try in 1 2; do
2853 echo "timestamp, slept: $am_has_slept" > conftest.file
2854 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2855 if test "$*" = "X"; then
2856 # -L didn't work.
2857 set X `ls -t "$srcdir/configure" conftest.file`
2858 fi
2859 if test "$*" != "X $srcdir/configure conftest.file" \
2860 && test "$*" != "X conftest.file $srcdir/configure"; then
2861
2862 # If neither matched, then we have a broken ls. This can happen
2863 # if, for instance, CONFIG_SHELL is bash and it inherits a
2864 # broken ls alias from the environment. This has actually
2865 # happened. Such a system could not be considered "sane".
2866 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2867 alias in your environment" "$LINENO" 5
2868 fi
2869 if test "$2" = conftest.file || test $am_try -eq 2; then
2870 break
2871 fi
2872 # Just in case.
2873 sleep 1
2874 am_has_slept=yes
2875 done
48310492
RH
2876 test "$2" = conftest.file
2877 )
2878then
2879 # Ok.
2880 :
2881else
22e05272 2882 as_fn_error $? "newly created file is older than distributed files!
48310492
RH
2883Check your system clock" "$LINENO" 5
2884fi
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2886$as_echo "yes" >&6; }
22e05272
JM
2887# If we didn't sleep, we still need to ensure time stamps of config.status and
2888# generated files are strictly newer.
2889am_sleep_pid=
2890if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2891 ( sleep 1 ) &
2892 am_sleep_pid=$!
2893fi
2894
2895rm -f conftest.file
2896
48310492
RH
2897test "$program_prefix" != NONE &&
2898 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2899# Use a double $ so make ignores it.
2900test "$program_suffix" != NONE &&
2901 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2902# Double any \ or $.
2903# By default was `s,x,x', remove it if useless.
2904ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2905program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2906
22e05272
JM
2907# Expand $ac_aux_dir to an absolute path.
2908am_aux_dir=`cd "$ac_aux_dir" && pwd`
48310492
RH
2909
2910if test x"${MISSING+set}" != xset; then
2911 case $am_aux_dir in
2912 *\ * | *\ *)
2913 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2914 *)
2915 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2916 esac
2917fi
2918# Use eval to expand $SHELL
22e05272
JM
2919if eval "$MISSING --is-lightweight"; then
2920 am_missing_run="$MISSING "
48310492
RH
2921else
2922 am_missing_run=
22e05272
JM
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2924$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
48310492
RH
2925fi
2926
22e05272 2927if test x"${install_sh+set}" != xset; then
48310492
RH
2928 case $am_aux_dir in
2929 *\ * | *\ *)
2930 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2931 *)
2932 install_sh="\${SHELL} $am_aux_dir/install-sh"
2933 esac
2934fi
2935
22e05272
JM
2936# Installed binaries are usually stripped using 'strip' when the user
2937# run "make install-strip". However 'strip' might not be the right
48310492 2938# tool to use in cross-compilation environments, therefore Automake
22e05272 2939# will honor the 'STRIP' environment variable to overrule this program.
48310492
RH
2940if test "$cross_compiling" != no; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}strip; ac_word=$2
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2946if ${ac_cv_prog_STRIP+:} false; then :
48310492
RH
2947 $as_echo_n "(cached) " >&6
2948else
2949 if test -n "$STRIP"; then
2950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
2959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963done
2964 done
2965IFS=$as_save_IFS
2966
2967fi
2968fi
2969STRIP=$ac_cv_prog_STRIP
2970if test -n "$STRIP"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2972$as_echo "$STRIP" >&6; }
2973else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976fi
2977
2978
2979fi
2980if test -z "$ac_cv_prog_STRIP"; then
2981 ac_ct_STRIP=$STRIP
2982 # Extract the first word of "strip", so it can be a program name with args.
2983set dummy strip; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2986if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
48310492
RH
2987 $as_echo_n "(cached) " >&6
2988else
2989 if test -n "$ac_ct_STRIP"; then
2990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
2999 ac_cv_prog_ac_ct_STRIP="strip"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003done
3004 done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3010if test -n "$ac_ct_STRIP"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3012$as_echo "$ac_ct_STRIP" >&6; }
3013else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018 if test "x$ac_ct_STRIP" = x; then
3019 STRIP=":"
3020 else
3021 case $cross_compiling:$ac_tool_warned in
3022yes:)
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025ac_tool_warned=yes ;;
3026esac
3027 STRIP=$ac_ct_STRIP
3028 fi
3029else
3030 STRIP="$ac_cv_prog_STRIP"
3031fi
3032
3033fi
3034INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3035
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3037$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3038if test -z "$MKDIR_P"; then
22e05272 3039 if ${ac_cv_path_mkdir+:} false; then :
48310492
RH
3040 $as_echo_n "(cached) " >&6
3041else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_prog in mkdir gmkdir; do
3048 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3049 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
48310492
RH
3050 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3051 'mkdir (GNU coreutils) '* | \
3052 'mkdir (coreutils) '* | \
3053 'mkdir (fileutils) '4.1*)
3054 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3055 break 3;;
3056 esac
3057 done
3058 done
3059 done
3060IFS=$as_save_IFS
3061
3062fi
3063
22e05272 3064 test -d ./--version && rmdir ./--version
48310492
RH
3065 if test "${ac_cv_path_mkdir+set}" = set; then
3066 MKDIR_P="$ac_cv_path_mkdir -p"
3067 else
3068 # As a last resort, use the slow shell script. Don't cache a
3069 # value for MKDIR_P within a source directory, because that will
3070 # break other packages using the cache if that directory is
3071 # removed, or if the value is a relative name.
48310492
RH
3072 MKDIR_P="$ac_install_sh -d"
3073 fi
3074fi
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3076$as_echo "$MKDIR_P" >&6; }
3077
48310492
RH
3078for ac_prog in gawk mawk nawk awk
3079do
3080 # Extract the first word of "$ac_prog", so it can be a program name with args.
3081set dummy $ac_prog; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3084if ${ac_cv_prog_AWK+:} false; then :
48310492
RH
3085 $as_echo_n "(cached) " >&6
3086else
3087 if test -n "$AWK"; then
3088 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3097 ac_cv_prog_AWK="$ac_prog"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101done
3102 done
3103IFS=$as_save_IFS
3104
3105fi
3106fi
3107AWK=$ac_cv_prog_AWK
3108if test -n "$AWK"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3110$as_echo "$AWK" >&6; }
3111else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
3114fi
3115
3116
3117 test -n "$AWK" && break
3118done
3119
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3121$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3122set x ${MAKE-make}
3123ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 3124if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
48310492
RH
3125 $as_echo_n "(cached) " >&6
3126else
3127 cat >conftest.make <<\_ACEOF
3128SHELL = /bin/sh
3129all:
3130 @echo '@@@%%%=$(MAKE)=@@@%%%'
3131_ACEOF
22e05272 3132# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
48310492
RH
3133case `${MAKE-make} -f conftest.make 2>/dev/null` in
3134 *@@@%%%=?*=@@@%%%*)
3135 eval ac_cv_prog_make_${ac_make}_set=yes;;
3136 *)
3137 eval ac_cv_prog_make_${ac_make}_set=no;;
3138esac
3139rm -f conftest.make
3140fi
3141if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3143$as_echo "yes" >&6; }
3144 SET_MAKE=
3145else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147$as_echo "no" >&6; }
3148 SET_MAKE="MAKE=${MAKE-make}"
3149fi
3150
3151rm -rf .tst 2>/dev/null
3152mkdir .tst 2>/dev/null
3153if test -d .tst; then
3154 am__leading_dot=.
3155else
3156 am__leading_dot=_
3157fi
3158rmdir .tst 2>/dev/null
3159
22e05272
JM
3160# Check whether --enable-silent-rules was given.
3161if test "${enable_silent_rules+set}" = set; then :
3162 enableval=$enable_silent_rules;
3163fi
3164
3165case $enable_silent_rules in # (((
3166 yes) AM_DEFAULT_VERBOSITY=0;;
3167 no) AM_DEFAULT_VERBOSITY=1;;
3168 *) AM_DEFAULT_VERBOSITY=1;;
3169esac
3170am_make=${MAKE-make}
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3172$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3173if ${am_cv_make_support_nested_variables+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175else
3176 if $as_echo 'TRUE=$(BAR$(V))
3177BAR0=false
3178BAR1=true
3179V=1
3180am__doit:
3181 @$(TRUE)
3182.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3183 am_cv_make_support_nested_variables=yes
3184else
3185 am_cv_make_support_nested_variables=no
3186fi
3187fi
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3189$as_echo "$am_cv_make_support_nested_variables" >&6; }
3190if test $am_cv_make_support_nested_variables = yes; then
3191 AM_V='$(V)'
3192 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3193else
3194 AM_V=$AM_DEFAULT_VERBOSITY
3195 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3196fi
3197AM_BACKSLASH='\'
3198
48310492
RH
3199if test "`cd $srcdir && pwd`" != "`pwd`"; then
3200 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3201 # is not polluted with repeated "-I."
3202 am__isrc=' -I$(srcdir)'
3203 # test to see if srcdir already configured
3204 if test -f $srcdir/config.status; then
22e05272 3205 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
48310492
RH
3206 fi
3207fi
3208
3209# test whether we have cygpath
3210if test -z "$CYGPATH_W"; then
3211 if (cygpath --version) >/dev/null 2>/dev/null; then
3212 CYGPATH_W='cygpath -w'
3213 else
3214 CYGPATH_W=echo
3215 fi
3216fi
3217
3218
3219# Define the identity of the package.
3220 PACKAGE='libatomic'
3221 VERSION='1.0'
3222
3223
3224cat >>confdefs.h <<_ACEOF
3225#define PACKAGE "$PACKAGE"
3226_ACEOF
3227
3228
3229cat >>confdefs.h <<_ACEOF
3230#define VERSION "$VERSION"
3231_ACEOF
3232
3233# Some tools Automake needs.
3234
3235ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3236
3237
3238AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3239
3240
3241AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3242
3243
3244AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3245
3246
3247MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3248
22e05272
JM
3249# For better backward compatibility. To be removed once Automake 1.9.x
3250# dies out for good. For more background, see:
3251# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3252# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3253mkdir_p='$(MKDIR_P)'
3254
3255# We need awk for the "check" target (and possibly the TAP driver). The
3256# system "awk" is bad on some platforms.
dc3368d0
KT
3257# Always define AMTAR for backward compatibility. Yes, it's still used
3258# in the wild :-( We should find a proper way to deprecate it ...
3259AMTAR='$${TAR-tar}'
48310492 3260
22e05272
JM
3261
3262# We'll loop over all known methods to create a tar archive until one works.
3263_am_tools='gnutar pax cpio none'
3264
dc3368d0 3265am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
48310492
RH
3266
3267
3268
3269
3270
22e05272
JM
3271
3272# POSIX will say in a future version that running "rm -f" with no argument
3273# is OK; and we want to be able to make that assumption in our Makefile
3274# recipes. So use an aggressive probe to check that the usage we want is
3275# actually supported "in the wild" to an acceptable degree.
3276# See automake bug#10828.
3277# To make any issue more visible, cause the running configure to be aborted
3278# by default if the 'rm' program in use doesn't match our expectations; the
3279# user can still override this though.
3280if rm -f && rm -fr && rm -rf; then : OK; else
3281 cat >&2 <<'END'
3282Oops!
3283
3284Your 'rm' program seems unable to run without file operands specified
3285on the command line, even when the '-f' option is present. This is contrary
3286to the behaviour of most rm programs out there, and not conforming with
3287the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3288
3289Please tell bug-automake@gnu.org about your system, including the value
3290of your $PATH and any error possibly output before this message. This
3291can help us improve future automake versions.
3292
3293END
3294 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3295 echo 'Configuration will proceed anyway, since you have set the' >&2
3296 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3297 echo >&2
3298 else
3299 cat >&2 <<'END'
3300Aborting the configuration process, to ensure you take notice of the issue.
3301
3302You can download and install GNU coreutils to get an 'rm' implementation
3303that behaves properly: <http://www.gnu.org/software/coreutils/>.
3304
3305If you want to complete the configuration process using your problematic
3306'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3307to "yes", and re-run configure.
3308
3309END
3310 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3311 fi
3312fi
3313
48310492
RH
3314# Default to --enable-multilib
3315# Check whether --enable-multilib was given.
3316if test "${enable_multilib+set}" = set; then :
3317 enableval=$enable_multilib; case "$enableval" in
3318 yes) multilib=yes ;;
3319 no) multilib=no ;;
22e05272 3320 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
48310492
RH
3321 esac
3322else
3323 multilib=yes
3324fi
3325
3326
3327# We may get other options which we leave undocumented:
3328# --with-target-subdir, --with-multisrctop, --with-multisubdir
3329# See config-ml.in if you want the gory details.
3330
3331if test "$srcdir" = "."; then
3332 if test "$with_target_subdir" != "."; then
3333 multi_basedir="$srcdir/$with_multisrctop../.."
3334 else
3335 multi_basedir="$srcdir/$with_multisrctop.."
3336 fi
3337else
3338 multi_basedir="$srcdir/.."
3339fi
3340
3341
3342# Even if the default multilib is not a cross compilation,
3343# it may be that some of the other multilibs are.
3344if test $cross_compiling = no && test $multilib = yes \
3345 && test "x${with_multisubdir}" != x ; then
3346 cross_compiling=maybe
3347fi
3348
3349ac_config_commands="$ac_config_commands default-1"
3350
3351
e8e66971
MR
3352
3353# Check whether --with-toolexeclibdir was given.
3354if test "${with_toolexeclibdir+set}" = set; then :
3355 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3356 /)
3357 ;;
3358 */)
3359 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3360 ;;
3361esac
3362else
3363 with_toolexeclibdir=no
3364fi
3365
3366
3367
48310492
RH
3368# Calculate toolexeclibdir
3369# Also toolexecdir, though it's only used in toolexeclibdir
3370case ${enable_version_specific_runtime_libs} in
3371 yes)
3372 # Need the gcc compiler version to know where to install libraries
3373 # and header files if --enable-version-specific-runtime-libs option
3374 # is selected.
3375 toolexecdir='$(libdir)/gcc/$(target_alias)'
3376 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3377 ;;
3378 no)
3379 if test -n "$with_cross_host" &&
3380 test x"$with_cross_host" != x"no"; then
3381 # Install a library built with a cross compiler in tooldir, not libdir.
3382 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
3383 case ${with_toolexeclibdir} in
3384 no)
3385 toolexeclibdir='$(toolexecdir)/lib'
3386 ;;
3387 *)
3388 toolexeclibdir=${with_toolexeclibdir}
3389 ;;
3390 esac
48310492
RH
3391 else
3392 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3393 toolexeclibdir='$(libdir)'
3394 fi
3395 multi_os_directory=`$CC -print-multi-os-directory`
3396 case $multi_os_directory in
3397 .) ;; # Avoid trailing /.
3398 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3399 esac
3400 ;;
3401esac
3402
3403
3404
3405# Check the compiler.
3406# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3407# We must force CC to /not/ be precious variables; otherwise
3408# the wrong, non-multilib-adjusted value will be used in multilibs.
3409# As a side effect, we have to subst CFLAGS ourselves.
3410
3411
3412
3413ac_ext=c
3414ac_cpp='$CPP $CPPFLAGS'
3415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3420set dummy ${ac_tool_prefix}gcc; ac_word=$2
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3423if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3424 $as_echo_n "(cached) " >&6
3425else
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3428else
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3436 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440done
3441 done
3442IFS=$as_save_IFS
3443
3444fi
3445fi
3446CC=$ac_cv_prog_CC
3447if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449$as_echo "$CC" >&6; }
3450else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452$as_echo "no" >&6; }
3453fi
3454
3455
3456fi
3457if test -z "$ac_cv_prog_CC"; then
3458 ac_ct_CC=$CC
3459 # Extract the first word of "gcc", so it can be a program name with args.
3460set dummy gcc; ac_word=$2
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3463if ${ac_cv_prog_ac_ct_CC+:} false; then :
48310492
RH
3464 $as_echo_n "(cached) " >&6
3465else
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3476 ac_cv_prog_ac_ct_CC="gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480done
3481 done
3482IFS=$as_save_IFS
3483
3484fi
3485fi
3486ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487if test -n "$ac_ct_CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489$as_echo "$ac_ct_CC" >&6; }
3490else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492$as_echo "no" >&6; }
3493fi
3494
3495 if test "x$ac_ct_CC" = x; then
3496 CC=""
3497 else
3498 case $cross_compiling:$ac_tool_warned in
3499yes:)
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502ac_tool_warned=yes ;;
3503esac
3504 CC=$ac_ct_CC
3505 fi
3506else
3507 CC="$ac_cv_prog_CC"
3508fi
3509
3510if test -z "$CC"; then
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3513set dummy ${ac_tool_prefix}cc; ac_word=$2
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3516if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3517 $as_echo_n "(cached) " >&6
3518else
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3521else
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3529 ac_cv_prog_CC="${ac_tool_prefix}cc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534 done
3535IFS=$as_save_IFS
3536
3537fi
3538fi
3539CC=$ac_cv_prog_CC
3540if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542$as_echo "$CC" >&6; }
3543else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545$as_echo "no" >&6; }
3546fi
3547
3548
3549 fi
3550fi
3551if test -z "$CC"; then
3552 # Extract the first word of "cc", so it can be a program name with args.
3553set dummy cc; ac_word=$2
3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3556if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3557 $as_echo_n "(cached) " >&6
3558else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561else
3562 ac_prog_rejected=no
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3571 ac_prog_rejected=yes
3572 continue
3573 fi
3574 ac_cv_prog_CC="cc"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3577 fi
3578done
3579 done
3580IFS=$as_save_IFS
3581
3582if test $ac_prog_rejected = yes; then
3583 # We found a bogon in the path, so make sure we never use it.
3584 set dummy $ac_cv_prog_CC
3585 shift
3586 if test $# != 0; then
3587 # We chose a different compiler from the bogus one.
3588 # However, it has the same basename, so the bogon will be chosen
3589 # first if we set CC to just the basename; use the full file name.
3590 shift
3591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3592 fi
3593fi
3594fi
3595fi
3596CC=$ac_cv_prog_CC
3597if test -n "$CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599$as_echo "$CC" >&6; }
3600else
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602$as_echo "no" >&6; }
3603fi
3604
3605
3606fi
3607if test -z "$CC"; then
3608 if test -n "$ac_tool_prefix"; then
3609 for ac_prog in cl.exe
3610 do
3611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3615if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3616 $as_echo_n "(cached) " >&6
3617else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620else
3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH
3623do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632done
3633 done
3634IFS=$as_save_IFS
3635
3636fi
3637fi
3638CC=$ac_cv_prog_CC
3639if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641$as_echo "$CC" >&6; }
3642else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644$as_echo "no" >&6; }
3645fi
3646
3647
3648 test -n "$CC" && break
3649 done
3650fi
3651if test -z "$CC"; then
3652 ac_ct_CC=$CC
3653 for ac_prog in cl.exe
3654do
3655 # Extract the first word of "$ac_prog", so it can be a program name with args.
3656set dummy $ac_prog; ac_word=$2
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3659if ${ac_cv_prog_ac_ct_CC+:} false; then :
48310492
RH
3660 $as_echo_n "(cached) " >&6
3661else
3662 if test -n "$ac_ct_CC"; then
3663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3664else
3665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666for as_dir in $PATH
3667do
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3672 ac_cv_prog_ac_ct_CC="$ac_prog"
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676done
3677 done
3678IFS=$as_save_IFS
3679
3680fi
3681fi
3682ac_ct_CC=$ac_cv_prog_ac_ct_CC
3683if test -n "$ac_ct_CC"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3685$as_echo "$ac_ct_CC" >&6; }
3686else
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688$as_echo "no" >&6; }
3689fi
3690
3691
3692 test -n "$ac_ct_CC" && break
3693done
3694
3695 if test "x$ac_ct_CC" = x; then
3696 CC=""
3697 else
3698 case $cross_compiling:$ac_tool_warned in
3699yes:)
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3702ac_tool_warned=yes ;;
3703esac
3704 CC=$ac_ct_CC
3705 fi
3706fi
3707
3708fi
3709
3710
3711test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3713as_fn_error $? "no acceptable C compiler found in \$PATH
3714See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
3715
3716# Provide some information about the compiler.
3717$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3718set X $ac_compile
3719ac_compiler=$2
3720for ac_option in --version -v -V -qversion; do
3721 { { ac_try="$ac_compiler $ac_option >&5"
3722case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725esac
3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727$as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3729 ac_status=$?
3730 if test -s conftest.err; then
3731 sed '10a\
3732... rest of stderr output deleted ...
3733 10q' conftest.err >conftest.er1
3734 cat conftest.er1 >&5
48310492 3735 fi
22e05272 3736 rm -f conftest.er1 conftest.err
48310492
RH
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }
3739done
3740
3741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742/* end confdefs.h. */
3743
3744int
3745main ()
3746{
3747
3748 ;
3749 return 0;
3750}
3751_ACEOF
3752ac_clean_files_save=$ac_clean_files
22e05272 3753ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
48310492
RH
3754# Try to create an executable without -o first, disregard a.out.
3755# It will help us diagnose broken compilers, and finding out an intuition
3756# of exeext.
22e05272
JM
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3758$as_echo_n "checking whether the C compiler works... " >&6; }
48310492
RH
3759ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3760
3761# The possible output files:
3762ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3763
3764ac_rmfiles=
3765for ac_file in $ac_files
3766do
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3770 esac
3771done
3772rm -f $ac_rmfiles
3773
3774if { { ac_try="$ac_link_default"
3775case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778esac
3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780$as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_link_default") 2>&5
3782 ac_status=$?
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3786# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3787# in a Makefile. We should not override ac_cv_exeext if it was cached,
3788# so that the user can short-circuit this test for compilers unknown to
3789# Autoconf.
3790for ac_file in $ac_files ''
3791do
3792 test -f "$ac_file" || continue
3793 case $ac_file in
3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3795 ;;
3796 [ab].out )
3797 # We found the default executable, but exeext='' is most
3798 # certainly right.
3799 break;;
3800 *.* )
3801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3802 then :; else
3803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3804 fi
3805 # We set ac_cv_exeext here because the later test for it is not
3806 # safe: cross compilers may not add the suffix if given an `-o'
3807 # argument, so we may need to know it at that point already.
3808 # Even if this section looks crufty: it has the advantage of
3809 # actually working.
3810 break;;
3811 * )
3812 break;;
3813 esac
3814done
3815test "$ac_cv_exeext" = no && ac_cv_exeext=
3816
3817else
3818 ac_file=''
3819fi
48310492 3820if test -z "$ac_file"; then :
22e05272
JM
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822$as_echo "no" >&6; }
3823$as_echo "$as_me: failed program was:" >&5
48310492
RH
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3828as_fn_error 77 "C compiler cannot create executables
3829See \`config.log' for more details" "$LINENO" 5; }
3830else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3832$as_echo "yes" >&6; }
48310492 3833fi
22e05272
JM
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3835$as_echo_n "checking for C compiler default output file name... " >&6; }
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3837$as_echo "$ac_file" >&6; }
48310492
RH
3838ac_exeext=$ac_cv_exeext
3839
22e05272 3840rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
48310492 3841ac_clean_files=$ac_clean_files_save
48310492
RH
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3843$as_echo_n "checking for suffix of executables... " >&6; }
3844if { { ac_try="$ac_link"
3845case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850$as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_link") 2>&5
3852 ac_status=$?
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }; then :
3855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3856# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3857# work properly (i.e., refer to `conftest.exe'), while it won't with
3858# `rm'.
3859for ac_file in conftest.exe conftest conftest.*; do
3860 test -f "$ac_file" || continue
3861 case $ac_file in
3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3864 break;;
3865 * ) break;;
3866 esac
3867done
3868else
3869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3871as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3872See \`config.log' for more details" "$LINENO" 5; }
48310492 3873fi
22e05272 3874rm -f conftest conftest$ac_cv_exeext
48310492
RH
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3876$as_echo "$ac_cv_exeext" >&6; }
3877
3878rm -f conftest.$ac_ext
3879EXEEXT=$ac_cv_exeext
3880ac_exeext=$EXEEXT
22e05272
JM
3881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h. */
3883#include <stdio.h>
3884int
3885main ()
3886{
3887FILE *f = fopen ("conftest.out", "w");
3888 return ferror (f) || fclose (f) != 0;
3889
3890 ;
3891 return 0;
3892}
3893_ACEOF
3894ac_clean_files="$ac_clean_files conftest.out"
3895# Check that the compiler produces executables we can run. If not, either
3896# the compiler is broken, or we cross compile.
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3898$as_echo_n "checking whether we are cross compiling... " >&6; }
3899if test "$cross_compiling" != yes; then
3900 { { ac_try="$ac_link"
3901case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
3905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906$as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_link") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }
3911 if { ac_try='./conftest$ac_cv_exeext'
3912 { { case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915esac
3916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917$as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_try") 2>&5
3919 ac_status=$?
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; }; then
3922 cross_compiling=no
3923 else
3924 if test "$cross_compiling" = maybe; then
3925 cross_compiling=yes
3926 else
3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929as_fn_error $? "cannot run C compiled programs.
3930If you meant to cross compile, use \`--host'.
3931See \`config.log' for more details" "$LINENO" 5; }
3932 fi
3933 fi
3934fi
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3936$as_echo "$cross_compiling" >&6; }
3937
3938rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3939ac_clean_files=$ac_clean_files_save
48310492
RH
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3941$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3942if ${ac_cv_objext+:} false; then :
48310492
RH
3943 $as_echo_n "(cached) " >&6
3944else
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946/* end confdefs.h. */
3947
3948int
3949main ()
3950{
3951
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956rm -f conftest.o conftest.obj
3957if { { ac_try="$ac_compile"
3958case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961esac
3962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963$as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_compile") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 for ac_file in conftest.o conftest.obj conftest.*; do
3969 test -f "$ac_file" || continue;
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3972 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3973 break;;
3974 esac
3975done
3976else
3977 $as_echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3982as_fn_error $? "cannot compute suffix of object files: cannot compile
3983See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
3984fi
3985rm -f conftest.$ac_cv_objext conftest.$ac_ext
3986fi
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3988$as_echo "$ac_cv_objext" >&6; }
3989OBJEXT=$ac_cv_objext
3990ac_objext=$OBJEXT
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3992$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3993if ${ac_cv_c_compiler_gnu+:} false; then :
48310492
RH
3994 $as_echo_n "(cached) " >&6
3995else
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997/* end confdefs.h. */
3998
3999int
4000main ()
4001{
4002#ifndef __GNUC__
4003 choke me
4004#endif
4005
4006 ;
4007 return 0;
4008}
4009_ACEOF
4010if ac_fn_c_try_compile "$LINENO"; then :
4011 ac_compiler_gnu=yes
4012else
4013 ac_compiler_gnu=no
4014fi
4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016ac_cv_c_compiler_gnu=$ac_compiler_gnu
4017
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4020$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4021if test $ac_compiler_gnu = yes; then
4022 GCC=yes
4023else
4024 GCC=
4025fi
4026ac_test_CFLAGS=${CFLAGS+set}
4027ac_save_CFLAGS=$CFLAGS
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4029$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4030if ${ac_cv_prog_cc_g+:} false; then :
48310492
RH
4031 $as_echo_n "(cached) " >&6
4032else
4033 ac_save_c_werror_flag=$ac_c_werror_flag
4034 ac_c_werror_flag=yes
4035 ac_cv_prog_cc_g=no
4036 CFLAGS="-g"
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h. */
4039
4040int
4041main ()
4042{
4043
4044 ;
4045 return 0;
4046}
4047_ACEOF
4048if ac_fn_c_try_compile "$LINENO"; then :
4049 ac_cv_prog_cc_g=yes
4050else
4051 CFLAGS=""
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h. */
4054
4055int
4056main ()
4057{
4058
4059 ;
4060 return 0;
4061}
4062_ACEOF
4063if ac_fn_c_try_compile "$LINENO"; then :
4064
4065else
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4067 CFLAGS="-g"
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h. */
4070
4071int
4072main ()
4073{
4074
4075 ;
4076 return 0;
4077}
4078_ACEOF
4079if ac_fn_c_try_compile "$LINENO"; then :
4080 ac_cv_prog_cc_g=yes
4081fi
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083fi
4084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085fi
4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 ac_c_werror_flag=$ac_save_c_werror_flag
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4090$as_echo "$ac_cv_prog_cc_g" >&6; }
4091if test "$ac_test_CFLAGS" = set; then
4092 CFLAGS=$ac_save_CFLAGS
4093elif test $ac_cv_prog_cc_g = yes; then
4094 if test "$GCC" = yes; then
4095 CFLAGS="-g -O2"
4096 else
4097 CFLAGS="-g"
4098 fi
4099else
4100 if test "$GCC" = yes; then
4101 CFLAGS="-O2"
4102 else
4103 CFLAGS=
4104 fi
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4107$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4108if ${ac_cv_prog_cc_c89+:} false; then :
48310492
RH
4109 $as_echo_n "(cached) " >&6
4110else
4111 ac_cv_prog_cc_c89=no
4112ac_save_CC=$CC
4113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h. */
4115#include <stdarg.h>
4116#include <stdio.h>
22e05272 4117struct stat;
48310492
RH
4118/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4119struct buf { int x; };
4120FILE * (*rcsopen) (struct buf *, struct stat *, int);
4121static char *e (p, i)
4122 char **p;
4123 int i;
4124{
4125 return p[i];
4126}
4127static char *f (char * (*g) (char **, int), char **p, ...)
4128{
4129 char *s;
4130 va_list v;
4131 va_start (v,p);
4132 s = g (p, va_arg (v,int));
4133 va_end (v);
4134 return s;
4135}
4136
4137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4138 function prototypes and stuff, but not '\xHH' hex character constants.
4139 These don't provoke an error unfortunately, instead are silently treated
4140 as 'x'. The following induces an error, until -std is added to get
4141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4142 array size at least. It's necessary to write '\x00'==0 to get something
4143 that's true only with -std. */
4144int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4145
4146/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4147 inside strings and character constants. */
4148#define FOO(x) 'x'
4149int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4150
4151int test (int i, double x);
4152struct s1 {int (*f) (int a);};
4153struct s2 {int (*f) (double a);};
4154int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4155int argc;
4156char **argv;
4157int
4158main ()
4159{
4160return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4161 ;
4162 return 0;
4163}
4164_ACEOF
4165for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4166 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4167do
4168 CC="$ac_save_CC $ac_arg"
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_prog_cc_c89=$ac_arg
4171fi
4172rm -f core conftest.err conftest.$ac_objext
4173 test "x$ac_cv_prog_cc_c89" != "xno" && break
4174done
4175rm -f conftest.$ac_ext
4176CC=$ac_save_CC
4177
4178fi
4179# AC_CACHE_VAL
4180case "x$ac_cv_prog_cc_c89" in
4181 x)
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183$as_echo "none needed" >&6; } ;;
4184 xno)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4186$as_echo "unsupported" >&6; } ;;
4187 *)
4188 CC="$CC $ac_cv_prog_cc_c89"
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4190$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4191esac
4192if test "x$ac_cv_prog_cc_c89" != xno; then :
4193
4194fi
4195
4196ac_ext=c
4197ac_cpp='$CPP $CPPFLAGS'
4198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_c_compiler_gnu
22e05272
JM
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
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4208$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4209if ${am_cv_prog_cc_c_o+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211else
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h. */
4214
4215int
4216main ()
4217{
4218
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223 # Make sure it works both with $CC and with simple cc.
4224 # Following AC_PROG_CC_C_O, we do the test twice because some
4225 # compilers refuse to overwrite an existing .o file with -o,
4226 # though they will create one.
4227 am_cv_prog_cc_c_o=yes
4228 for am_i in 1 2; do
4229 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4230 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } \
4234 && test -f conftest2.$ac_objext; then
4235 : OK
4236 else
4237 am_cv_prog_cc_c_o=no
4238 break
4239 fi
4240 done
4241 rm -f core conftest*
4242 unset am_i
4243fi
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4245$as_echo "$am_cv_prog_cc_c_o" >&6; }
4246if test "$am_cv_prog_cc_c_o" != yes; then
4247 # Losing compiler, so override with the script.
4248 # FIXME: It is wrong to rewrite CC.
4249 # But if we don't then we get into trouble of one sort or another.
4250 # A longer-term fix would be to have automake use am__CC in this case,
4251 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4252 CC="$am_aux_dir/compile $CC"
4253fi
4254ac_ext=c
4255ac_cpp='$CPP $CPPFLAGS'
4256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259
48310492
RH
4260DEPDIR="${am__leading_dot}deps"
4261
4262ac_config_commands="$ac_config_commands depfiles"
4263
4264
4265am_make=${MAKE-make}
4266cat > confinc << 'END'
4267am__doit:
4268 @echo this is the am__doit target
4269.PHONY: am__doit
4270END
4271# If we don't find an include directive, just comment out the code.
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4273$as_echo_n "checking for style of include used by $am_make... " >&6; }
4274am__include="#"
4275am__quote=
4276_am_result=none
4277# First try GNU make style include.
4278echo "include confinc" > confmf
22e05272 4279# Ignore all kinds of additional output from 'make'.
48310492
RH
4280case `$am_make -s -f confmf 2> /dev/null` in #(
4281*the\ am__doit\ target*)
4282 am__include=include
4283 am__quote=
4284 _am_result=GNU
4285 ;;
4286esac
4287# Now try BSD make style include.
4288if test "$am__include" = "#"; then
4289 echo '.include "confinc"' > confmf
4290 case `$am_make -s -f confmf 2> /dev/null` in #(
4291 *the\ am__doit\ target*)
4292 am__include=.include
4293 am__quote="\""
4294 _am_result=BSD
4295 ;;
4296 esac
4297fi
4298
4299
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4301$as_echo "$_am_result" >&6; }
4302rm -f confinc confmf
4303
4304# Check whether --enable-dependency-tracking was given.
4305if test "${enable_dependency_tracking+set}" = set; then :
4306 enableval=$enable_dependency_tracking;
4307fi
4308
4309if test "x$enable_dependency_tracking" != xno; then
4310 am_depcomp="$ac_aux_dir/depcomp"
4311 AMDEPBACKSLASH='\'
dc3368d0 4312 am__nodep='_no'
48310492
RH
4313fi
4314 if test "x$enable_dependency_tracking" != xno; then
4315 AMDEP_TRUE=
4316 AMDEP_FALSE='#'
4317else
4318 AMDEP_TRUE='#'
4319 AMDEP_FALSE=
4320fi
4321
4322
4323
4324depcc="$CC" am_compiler_list=
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4327$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4328if ${am_cv_CC_dependencies_compiler_type+:} false; then :
48310492
RH
4329 $as_echo_n "(cached) " >&6
4330else
4331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332 # We make a subdir and do the tests there. Otherwise we can end up
4333 # making bogus files that we don't know about and never remove. For
4334 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4335 # making a dummy file named 'D' -- because '-MD' means "put the output
4336 # in D".
dc3368d0 4337 rm -rf conftest.dir
48310492
RH
4338 mkdir conftest.dir
4339 # Copy depcomp to subdir because otherwise we won't find it if we're
4340 # using a relative directory.
4341 cp "$am_depcomp" conftest.dir
4342 cd conftest.dir
4343 # We will build objects and dependencies in a subdirectory because
4344 # it helps to detect inapplicable dependency modes. For instance
4345 # both Tru64's cc and ICC support -MD to output dependencies as a
4346 # side effect of compilation, but ICC will put the dependencies in
4347 # the current directory while Tru64 will put them in the object
4348 # directory.
4349 mkdir sub
4350
4351 am_cv_CC_dependencies_compiler_type=none
4352 if test "$am_compiler_list" = ""; then
4353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4354 fi
4355 am__universal=false
4356 case " $depcc " in #(
4357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4358 esac
4359
4360 for depmode in $am_compiler_list; do
4361 # Setup a source with many dependencies, because some compilers
4362 # like to wrap large dependency lists on column 80 (with \), and
4363 # we should not choose a depcomp mode which is confused by this.
4364 #
4365 # We need to recreate these files for each test, as the compiler may
4366 # overwrite some of them when testing with obscure command lines.
4367 # This happens at least with the AIX C compiler.
4368 : > sub/conftest.c
4369 for i in 1 2 3 4 5 6; do
4370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4371 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4372 # Solaris 10 /bin/sh.
4373 echo '/* dummy */' > sub/conftst$i.h
48310492
RH
4374 done
4375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4376
22e05272 4377 # We check with '-c' and '-o' for the sake of the "dashmstdout"
48310492 4378 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4379 # handle '-M -o', and we need to detect this. Also, some Intel
4380 # versions had trouble with output in subdirs.
48310492
RH
4381 am__obj=sub/conftest.${OBJEXT-o}
4382 am__minus_obj="-o $am__obj"
4383 case $depmode in
4384 gcc)
4385 # This depmode causes a compiler race in universal mode.
4386 test "$am__universal" = false || continue
4387 ;;
4388 nosideeffect)
22e05272
JM
4389 # After this tag, mechanisms are not by side-effect, so they'll
4390 # only be used when explicitly requested.
48310492
RH
4391 if test "x$enable_dependency_tracking" = xyes; then
4392 continue
4393 else
4394 break
4395 fi
4396 ;;
dc3368d0 4397 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4398 # This compiler won't grok '-c -o', but also, the minuso test has
48310492
RH
4399 # not run yet. These depmodes are late enough in the game, and
4400 # so weak that their functioning should not be impacted.
4401 am__obj=conftest.${OBJEXT-o}
4402 am__minus_obj=
4403 ;;
4404 none) break ;;
4405 esac
4406 if depmode=$depmode \
4407 source=sub/conftest.c object=$am__obj \
4408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4410 >/dev/null 2>conftest.err &&
4411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4415 # icc doesn't choke on unknown options, it will just issue warnings
4416 # or remarks (even with -Werror). So we grep stderr for any message
4417 # that says an option was ignored or not supported.
4418 # When given -MP, icc 7.0 and 7.1 complain thusly:
4419 # icc: Command line warning: ignoring option '-M'; no argument required
4420 # The diagnosis changed in icc 8.0:
4421 # icc: Command line remark: option '-MP' not supported
4422 if (grep 'ignoring option' conftest.err ||
4423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4424 am_cv_CC_dependencies_compiler_type=$depmode
4425 break
4426 fi
4427 fi
4428 done
4429
4430 cd ..
4431 rm -rf conftest.dir
4432else
4433 am_cv_CC_dependencies_compiler_type=none
4434fi
4435
4436fi
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4438$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4439CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4440
4441 if
4442 test "x$enable_dependency_tracking" != xno \
4443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4444 am__fastdepCC_TRUE=
4445 am__fastdepCC_FALSE='#'
4446else
4447 am__fastdepCC_TRUE='#'
4448 am__fastdepCC_FALSE=
4449fi
4450
4451
4452# By default we simply use the C compiler to build assembly code.
4453
4454test "${CCAS+set}" = set || CCAS=$CC
4455test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4456
4457
4458
4459depcc="$CCAS" am_compiler_list=
4460
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4462$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4463if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
48310492
RH
4464 $as_echo_n "(cached) " >&6
4465else
4466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4467 # We make a subdir and do the tests there. Otherwise we can end up
4468 # making bogus files that we don't know about and never remove. For
4469 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4470 # making a dummy file named 'D' -- because '-MD' means "put the output
4471 # in D".
dc3368d0 4472 rm -rf conftest.dir
48310492
RH
4473 mkdir conftest.dir
4474 # Copy depcomp to subdir because otherwise we won't find it if we're
4475 # using a relative directory.
4476 cp "$am_depcomp" conftest.dir
4477 cd conftest.dir
4478 # We will build objects and dependencies in a subdirectory because
4479 # it helps to detect inapplicable dependency modes. For instance
4480 # both Tru64's cc and ICC support -MD to output dependencies as a
4481 # side effect of compilation, but ICC will put the dependencies in
4482 # the current directory while Tru64 will put them in the object
4483 # directory.
4484 mkdir sub
4485
4486 am_cv_CCAS_dependencies_compiler_type=none
4487 if test "$am_compiler_list" = ""; then
4488 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4489 fi
4490 am__universal=false
4491
4492
4493 for depmode in $am_compiler_list; do
4494 # Setup a source with many dependencies, because some compilers
4495 # like to wrap large dependency lists on column 80 (with \), and
4496 # we should not choose a depcomp mode which is confused by this.
4497 #
4498 # We need to recreate these files for each test, as the compiler may
4499 # overwrite some of them when testing with obscure command lines.
4500 # This happens at least with the AIX C compiler.
4501 : > sub/conftest.c
4502 for i in 1 2 3 4 5 6; do
4503 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4504 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4505 # Solaris 10 /bin/sh.
4506 echo '/* dummy */' > sub/conftst$i.h
48310492
RH
4507 done
4508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509
22e05272 4510 # We check with '-c' and '-o' for the sake of the "dashmstdout"
48310492 4511 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4512 # handle '-M -o', and we need to detect this. Also, some Intel
4513 # versions had trouble with output in subdirs.
48310492
RH
4514 am__obj=sub/conftest.${OBJEXT-o}
4515 am__minus_obj="-o $am__obj"
4516 case $depmode in
4517 gcc)
4518 # This depmode causes a compiler race in universal mode.
4519 test "$am__universal" = false || continue
4520 ;;
4521 nosideeffect)
22e05272
JM
4522 # After this tag, mechanisms are not by side-effect, so they'll
4523 # only be used when explicitly requested.
48310492
RH
4524 if test "x$enable_dependency_tracking" = xyes; then
4525 continue
4526 else
4527 break
4528 fi
4529 ;;
dc3368d0 4530 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4531 # This compiler won't grok '-c -o', but also, the minuso test has
48310492
RH
4532 # not run yet. These depmodes are late enough in the game, and
4533 # so weak that their functioning should not be impacted.
4534 am__obj=conftest.${OBJEXT-o}
4535 am__minus_obj=
4536 ;;
4537 none) break ;;
4538 esac
4539 if depmode=$depmode \
4540 source=sub/conftest.c object=$am__obj \
4541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4542 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4543 >/dev/null 2>conftest.err &&
4544 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4548 # icc doesn't choke on unknown options, it will just issue warnings
4549 # or remarks (even with -Werror). So we grep stderr for any message
4550 # that says an option was ignored or not supported.
4551 # When given -MP, icc 7.0 and 7.1 complain thusly:
4552 # icc: Command line warning: ignoring option '-M'; no argument required
4553 # The diagnosis changed in icc 8.0:
4554 # icc: Command line remark: option '-MP' not supported
4555 if (grep 'ignoring option' conftest.err ||
4556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4557 am_cv_CCAS_dependencies_compiler_type=$depmode
4558 break
4559 fi
4560 fi
4561 done
4562
4563 cd ..
4564 rm -rf conftest.dir
4565else
4566 am_cv_CCAS_dependencies_compiler_type=none
4567fi
4568
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4571$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4572CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4573
4574 if
4575 test "x$enable_dependency_tracking" != xno \
4576 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4577 am__fastdepCCAS_TRUE=
4578 am__fastdepCCAS_FALSE='#'
4579else
4580 am__fastdepCCAS_TRUE='#'
4581 am__fastdepCCAS_FALSE=
4582fi
4583
4584
4585
4586
4587
4588
4589# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4590# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4591# in both places for now and restore CFLAGS at the end of config.
4592save_CFLAGS="$CFLAGS"
4593
4594# Find other programs we need.
4595if test -n "$ac_tool_prefix"; then
4596 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4597set dummy ${ac_tool_prefix}ar; ac_word=$2
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4600if ${ac_cv_prog_AR+:} false; then :
48310492
RH
4601 $as_echo_n "(cached) " >&6
4602else
4603 if test -n "$AR"; then
4604 ac_cv_prog_AR="$AR" # Let the user override the test.
4605else
4606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4613 ac_cv_prog_AR="${ac_tool_prefix}ar"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617done
4618 done
4619IFS=$as_save_IFS
4620
4621fi
4622fi
4623AR=$ac_cv_prog_AR
4624if test -n "$AR"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4626$as_echo "$AR" >&6; }
4627else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629$as_echo "no" >&6; }
4630fi
4631
4632
4633fi
4634if test -z "$ac_cv_prog_AR"; then
4635 ac_ct_AR=$AR
4636 # Extract the first word of "ar", so it can be a program name with args.
4637set dummy ar; ac_word=$2
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4640if ${ac_cv_prog_ac_ct_AR+:} false; then :
48310492
RH
4641 $as_echo_n "(cached) " >&6
4642else
4643 if test -n "$ac_ct_AR"; then
4644 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4653 ac_cv_prog_ac_ct_AR="ar"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657done
4658 done
4659IFS=$as_save_IFS
4660
4661fi
4662fi
4663ac_ct_AR=$ac_cv_prog_ac_ct_AR
4664if test -n "$ac_ct_AR"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4666$as_echo "$ac_ct_AR" >&6; }
4667else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669$as_echo "no" >&6; }
4670fi
4671
4672 if test "x$ac_ct_AR" = x; then
4673 AR=""
4674 else
4675 case $cross_compiling:$ac_tool_warned in
4676yes:)
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4679ac_tool_warned=yes ;;
4680esac
4681 AR=$ac_ct_AR
4682 fi
4683else
4684 AR="$ac_cv_prog_AR"
4685fi
4686
4687if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4689set dummy ${ac_tool_prefix}nm; ac_word=$2
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4692if ${ac_cv_prog_NM+:} false; then :
48310492
RH
4693 $as_echo_n "(cached) " >&6
4694else
4695 if test -n "$NM"; then
4696 ac_cv_prog_NM="$NM" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4705 ac_cv_prog_NM="${ac_tool_prefix}nm"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710 done
4711IFS=$as_save_IFS
4712
4713fi
4714fi
4715NM=$ac_cv_prog_NM
4716if test -n "$NM"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4718$as_echo "$NM" >&6; }
4719else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721$as_echo "no" >&6; }
4722fi
4723
4724
4725fi
4726if test -z "$ac_cv_prog_NM"; then
4727 ac_ct_NM=$NM
4728 # Extract the first word of "nm", so it can be a program name with args.
4729set dummy nm; ac_word=$2
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4732if ${ac_cv_prog_ac_ct_NM+:} false; then :
48310492
RH
4733 $as_echo_n "(cached) " >&6
4734else
4735 if test -n "$ac_ct_NM"; then
4736 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4745 ac_cv_prog_ac_ct_NM="nm"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749done
4750 done
4751IFS=$as_save_IFS
4752
4753fi
4754fi
4755ac_ct_NM=$ac_cv_prog_ac_ct_NM
4756if test -n "$ac_ct_NM"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4758$as_echo "$ac_ct_NM" >&6; }
4759else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761$as_echo "no" >&6; }
4762fi
4763
4764 if test "x$ac_ct_NM" = x; then
4765 NM=""
4766 else
4767 case $cross_compiling:$ac_tool_warned in
4768yes:)
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771ac_tool_warned=yes ;;
4772esac
4773 NM=$ac_ct_NM
4774 fi
4775else
4776 NM="$ac_cv_prog_NM"
4777fi
4778
4779if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4781set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4784if ${ac_cv_prog_RANLIB+:} false; then :
48310492
RH
4785 $as_echo_n "(cached) " >&6
4786else
4787 if test -n "$RANLIB"; then
4788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801done
4802 done
4803IFS=$as_save_IFS
4804
4805fi
4806fi
4807RANLIB=$ac_cv_prog_RANLIB
4808if test -n "$RANLIB"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4810$as_echo "$RANLIB" >&6; }
4811else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813$as_echo "no" >&6; }
4814fi
4815
4816
4817fi
4818if test -z "$ac_cv_prog_RANLIB"; then
4819 ac_ct_RANLIB=$RANLIB
4820 # Extract the first word of "ranlib", so it can be a program name with args.
4821set dummy ranlib; ac_word=$2
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4824if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
48310492
RH
4825 $as_echo_n "(cached) " >&6
4826else
4827 if test -n "$ac_ct_RANLIB"; then
4828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4829else
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4837 ac_cv_prog_ac_ct_RANLIB="ranlib"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841done
4842 done
4843IFS=$as_save_IFS
4844
4845fi
4846fi
4847ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4848if test -n "$ac_ct_RANLIB"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4850$as_echo "$ac_ct_RANLIB" >&6; }
4851else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853$as_echo "no" >&6; }
4854fi
4855
4856 if test "x$ac_ct_RANLIB" = x; then
4857 RANLIB="ranlib-not-found-in-path-error"
4858 else
4859 case $cross_compiling:$ac_tool_warned in
4860yes:)
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4863ac_tool_warned=yes ;;
4864esac
4865 RANLIB=$ac_ct_RANLIB
4866 fi
4867else
4868 RANLIB="$ac_cv_prog_RANLIB"
4869fi
4870
48310492
RH
4871
4872
4873# Configure libtool
4874case `pwd` in
4875 *\ * | *\ *)
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4877$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4878esac
4879
4880
4881
4882macro_version='2.2.7a'
4883macro_revision='1.3134'
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897ltmain="$ac_aux_dir/ltmain.sh"
4898
4899# Backslashify metacharacters that are still active within
4900# double-quoted strings.
4901sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4902
4903# Same as above, but do not quote variable references.
4904double_quote_subst='s/\(["`\\]\)/\\\1/g'
4905
4906# Sed substitution to delay expansion of an escaped shell variable in a
4907# double_quote_subst'ed string.
4908delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4909
4910# Sed substitution to delay expansion of an escaped single quote.
4911delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4912
4913# Sed substitution to avoid accidental globbing in evaled expressions
4914no_glob_subst='s/\*/\\\*/g'
4915
4916ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4917ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4918ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4919
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4921$as_echo_n "checking how to print strings... " >&6; }
4922# Test print first, because it will be a builtin if present.
4923if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4924 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4925 ECHO='print -r --'
4926elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4927 ECHO='printf %s\n'
4928else
4929 # Use this function as a fallback that always works.
4930 func_fallback_echo ()
4931 {
4932 eval 'cat <<_LTECHO_EOF
4933$1
4934_LTECHO_EOF'
4935 }
4936 ECHO='func_fallback_echo'
4937fi
4938
4939# func_echo_all arg...
4940# Invoke $ECHO with all args, space-separated.
4941func_echo_all ()
4942{
4943 $ECHO ""
4944}
4945
4946case "$ECHO" in
4947 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4948$as_echo "printf" >&6; } ;;
4949 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4950$as_echo "print -r" >&6; } ;;
4951 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4952$as_echo "cat" >&6; } ;;
4953esac
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4969$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 4970if ${ac_cv_path_SED+:} false; then :
48310492
RH
4971 $as_echo_n "(cached) " >&6
4972else
4973 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4974 for ac_i in 1 2 3 4 5 6 7; do
4975 ac_script="$ac_script$as_nl$ac_script"
4976 done
4977 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4978 { ac_script=; unset ac_script;}
4979 if test -z "$SED"; then
4980 ac_path_SED_found=false
4981 # Loop through the user's path and test for each of PROGNAME-LIST
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983for as_dir in $PATH
4984do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_prog in sed gsed; do
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4990 as_fn_executable_p "$ac_path_SED" || continue
48310492
RH
4991# Check for GNU ac_path_SED and select it if it is found.
4992 # Check for GNU $ac_path_SED
4993case `"$ac_path_SED" --version 2>&1` in
4994*GNU*)
4995 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4996*)
4997 ac_count=0
4998 $as_echo_n 0123456789 >"conftest.in"
4999 while :
5000 do
5001 cat "conftest.in" "conftest.in" >"conftest.tmp"
5002 mv "conftest.tmp" "conftest.in"
5003 cp "conftest.in" "conftest.nl"
5004 $as_echo '' >> "conftest.nl"
5005 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007 as_fn_arith $ac_count + 1 && ac_count=$as_val
5008 if test $ac_count -gt ${ac_path_SED_max-0}; then
5009 # Best one so far, save it but keep looking for a better one
5010 ac_cv_path_SED="$ac_path_SED"
5011 ac_path_SED_max=$ac_count
5012 fi
5013 # 10*(2^10) chars as input seems more than enough
5014 test $ac_count -gt 10 && break
5015 done
5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017esac
5018
5019 $ac_path_SED_found && break 3
5020 done
5021 done
5022 done
5023IFS=$as_save_IFS
5024 if test -z "$ac_cv_path_SED"; then
22e05272 5025 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
48310492
RH
5026 fi
5027else
5028 ac_cv_path_SED=$SED
5029fi
5030
5031fi
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5033$as_echo "$ac_cv_path_SED" >&6; }
5034 SED="$ac_cv_path_SED"
5035 rm -f conftest.sed
5036
5037test -z "$SED" && SED=sed
5038Xsed="$SED -e 1s/^X//"
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5051$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 5052if ${ac_cv_path_GREP+:} false; then :
48310492
RH
5053 $as_echo_n "(cached) " >&6
5054else
5055 if test -z "$GREP"; then
5056 ac_path_GREP_found=false
5057 # Loop through the user's path and test for each of PROGNAME-LIST
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5060do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_prog in grep ggrep; do
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5066 as_fn_executable_p "$ac_path_GREP" || continue
48310492
RH
5067# Check for GNU ac_path_GREP and select it if it is found.
5068 # Check for GNU $ac_path_GREP
5069case `"$ac_path_GREP" --version 2>&1` in
5070*GNU*)
5071 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5072*)
5073 ac_count=0
5074 $as_echo_n 0123456789 >"conftest.in"
5075 while :
5076 do
5077 cat "conftest.in" "conftest.in" >"conftest.tmp"
5078 mv "conftest.tmp" "conftest.in"
5079 cp "conftest.in" "conftest.nl"
5080 $as_echo 'GREP' >> "conftest.nl"
5081 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5083 as_fn_arith $ac_count + 1 && ac_count=$as_val
5084 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5085 # Best one so far, save it but keep looking for a better one
5086 ac_cv_path_GREP="$ac_path_GREP"
5087 ac_path_GREP_max=$ac_count
5088 fi
5089 # 10*(2^10) chars as input seems more than enough
5090 test $ac_count -gt 10 && break
5091 done
5092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5093esac
5094
5095 $ac_path_GREP_found && break 3
5096 done
5097 done
5098 done
5099IFS=$as_save_IFS
5100 if test -z "$ac_cv_path_GREP"; then
22e05272 5101 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5102 fi
5103else
5104 ac_cv_path_GREP=$GREP
5105fi
5106
5107fi
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5109$as_echo "$ac_cv_path_GREP" >&6; }
5110 GREP="$ac_cv_path_GREP"
5111
5112
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5114$as_echo_n "checking for egrep... " >&6; }
22e05272 5115if ${ac_cv_path_EGREP+:} false; then :
48310492
RH
5116 $as_echo_n "(cached) " >&6
5117else
5118 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5119 then ac_cv_path_EGREP="$GREP -E"
5120 else
5121 if test -z "$EGREP"; then
5122 ac_path_EGREP_found=false
5123 # Loop through the user's path and test for each of PROGNAME-LIST
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5126do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_prog in egrep; do
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5132 as_fn_executable_p "$ac_path_EGREP" || continue
48310492
RH
5133# Check for GNU ac_path_EGREP and select it if it is found.
5134 # Check for GNU $ac_path_EGREP
5135case `"$ac_path_EGREP" --version 2>&1` in
5136*GNU*)
5137 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5138*)
5139 ac_count=0
5140 $as_echo_n 0123456789 >"conftest.in"
5141 while :
5142 do
5143 cat "conftest.in" "conftest.in" >"conftest.tmp"
5144 mv "conftest.tmp" "conftest.in"
5145 cp "conftest.in" "conftest.nl"
5146 $as_echo 'EGREP' >> "conftest.nl"
5147 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5149 as_fn_arith $ac_count + 1 && ac_count=$as_val
5150 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5151 # Best one so far, save it but keep looking for a better one
5152 ac_cv_path_EGREP="$ac_path_EGREP"
5153 ac_path_EGREP_max=$ac_count
5154 fi
5155 # 10*(2^10) chars as input seems more than enough
5156 test $ac_count -gt 10 && break
5157 done
5158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5159esac
5160
5161 $ac_path_EGREP_found && break 3
5162 done
5163 done
5164 done
5165IFS=$as_save_IFS
5166 if test -z "$ac_cv_path_EGREP"; then
22e05272 5167 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5168 fi
5169else
5170 ac_cv_path_EGREP=$EGREP
5171fi
5172
5173 fi
5174fi
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5176$as_echo "$ac_cv_path_EGREP" >&6; }
5177 EGREP="$ac_cv_path_EGREP"
5178
5179
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5181$as_echo_n "checking for fgrep... " >&6; }
22e05272 5182if ${ac_cv_path_FGREP+:} false; then :
48310492
RH
5183 $as_echo_n "(cached) " >&6
5184else
5185 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5186 then ac_cv_path_FGREP="$GREP -F"
5187 else
5188 if test -z "$FGREP"; then
5189 ac_path_FGREP_found=false
5190 # Loop through the user's path and test for each of PROGNAME-LIST
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_prog in fgrep; do
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5199 as_fn_executable_p "$ac_path_FGREP" || continue
48310492
RH
5200# Check for GNU ac_path_FGREP and select it if it is found.
5201 # Check for GNU $ac_path_FGREP
5202case `"$ac_path_FGREP" --version 2>&1` in
5203*GNU*)
5204 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5205*)
5206 ac_count=0
5207 $as_echo_n 0123456789 >"conftest.in"
5208 while :
5209 do
5210 cat "conftest.in" "conftest.in" >"conftest.tmp"
5211 mv "conftest.tmp" "conftest.in"
5212 cp "conftest.in" "conftest.nl"
5213 $as_echo 'FGREP' >> "conftest.nl"
5214 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5216 as_fn_arith $ac_count + 1 && ac_count=$as_val
5217 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5218 # Best one so far, save it but keep looking for a better one
5219 ac_cv_path_FGREP="$ac_path_FGREP"
5220 ac_path_FGREP_max=$ac_count
5221 fi
5222 # 10*(2^10) chars as input seems more than enough
5223 test $ac_count -gt 10 && break
5224 done
5225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5226esac
5227
5228 $ac_path_FGREP_found && break 3
5229 done
5230 done
5231 done
5232IFS=$as_save_IFS
5233 if test -z "$ac_cv_path_FGREP"; then
22e05272 5234 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5235 fi
5236else
5237 ac_cv_path_FGREP=$FGREP
5238fi
5239
5240 fi
5241fi
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5243$as_echo "$ac_cv_path_FGREP" >&6; }
5244 FGREP="$ac_cv_path_FGREP"
5245
5246
5247test -z "$GREP" && GREP=grep
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267# Check whether --with-gnu-ld was given.
5268if test "${with_gnu_ld+set}" = set; then :
5269 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5270else
5271 with_gnu_ld=no
5272fi
5273
5274ac_prog=ld
5275if test "$GCC" = yes; then
5276 # Check if gcc -print-prog-name=ld gives a path.
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5278$as_echo_n "checking for ld used by $CC... " >&6; }
5279 case $host in
5280 *-*-mingw*)
5281 # gcc leaves a trailing carriage return which upsets mingw
5282 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5283 *)
5284 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5285 esac
5286 case $ac_prog in
5287 # Accept absolute paths.
5288 [\\/]* | ?:[\\/]*)
5289 re_direlt='/[^/][^/]*/\.\./'
5290 # Canonicalize the pathname of ld
5291 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5292 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5293 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5294 done
5295 test -z "$LD" && LD="$ac_prog"
5296 ;;
5297 "")
5298 # If it fails, then pretend we aren't using GCC.
5299 ac_prog=ld
5300 ;;
5301 *)
5302 # If it is relative, then search for the first ld in PATH.
5303 with_gnu_ld=unknown
5304 ;;
5305 esac
5306elif test "$with_gnu_ld" = yes; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5308$as_echo_n "checking for GNU ld... " >&6; }
5309else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5311$as_echo_n "checking for non-GNU ld... " >&6; }
5312fi
22e05272 5313if ${lt_cv_path_LD+:} false; then :
48310492
RH
5314 $as_echo_n "(cached) " >&6
5315else
5316 if test -z "$LD"; then
5317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5318 for ac_dir in $PATH; do
5319 IFS="$lt_save_ifs"
5320 test -z "$ac_dir" && ac_dir=.
5321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5322 lt_cv_path_LD="$ac_dir/$ac_prog"
5323 # Check to see if the program is GNU ld. I'd rather use --version,
5324 # but apparently some variants of GNU ld only accept -v.
5325 # Break only if it was the GNU/non-GNU ld that we prefer.
5326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5327 *GNU* | *'with BFD'*)
5328 test "$with_gnu_ld" != no && break
5329 ;;
5330 *)
5331 test "$with_gnu_ld" != yes && break
5332 ;;
5333 esac
5334 fi
5335 done
5336 IFS="$lt_save_ifs"
5337else
5338 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5339fi
5340fi
5341
5342LD="$lt_cv_path_LD"
5343if test -n "$LD"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5345$as_echo "$LD" >&6; }
5346else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348$as_echo "no" >&6; }
5349fi
22e05272 5350test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
48310492
RH
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5352$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5353if ${lt_cv_prog_gnu_ld+:} false; then :
48310492
RH
5354 $as_echo_n "(cached) " >&6
5355else
5356 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5357case `$LD -v 2>&1 </dev/null` in
5358*GNU* | *'with BFD'*)
5359 lt_cv_prog_gnu_ld=yes
5360 ;;
5361*)
5362 lt_cv_prog_gnu_ld=no
5363 ;;
5364esac
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5367$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5368with_gnu_ld=$lt_cv_prog_gnu_ld
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5379$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5380if ${lt_cv_path_NM+:} false; then :
48310492
RH
5381 $as_echo_n "(cached) " >&6
5382else
5383 if test -n "$NM"; then
5384 # Let the user override the test.
5385 lt_cv_path_NM="$NM"
5386else
5387 lt_nm_to_check="${ac_tool_prefix}nm"
5388 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5389 lt_nm_to_check="$lt_nm_to_check nm"
5390 fi
5391 for lt_tmp_nm in $lt_nm_to_check; do
5392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5393 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5394 IFS="$lt_save_ifs"
5395 test -z "$ac_dir" && ac_dir=.
5396 tmp_nm="$ac_dir/$lt_tmp_nm"
5397 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5398 # Check to see if the nm accepts a BSD-compat flag.
5399 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5400 # nm: unknown option "B" ignored
5401 # Tru64's nm complains that /dev/null is an invalid object file
5402 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5403 */dev/null* | *'Invalid file or object type'*)
5404 lt_cv_path_NM="$tmp_nm -B"
5405 break
5406 ;;
5407 *)
5408 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5409 */dev/null*)
5410 lt_cv_path_NM="$tmp_nm -p"
5411 break
5412 ;;
5413 *)
5414 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5415 continue # so that we can try to find one that supports BSD flags
5416 ;;
5417 esac
5418 ;;
5419 esac
5420 fi
5421 done
5422 IFS="$lt_save_ifs"
5423 done
5424 : ${lt_cv_path_NM=no}
5425fi
5426fi
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5428$as_echo "$lt_cv_path_NM" >&6; }
5429if test "$lt_cv_path_NM" != "no"; then
5430 NM="$lt_cv_path_NM"
5431else
5432 # Didn't find any BSD compatible name lister, look for dumpbin.
5433 if test -n "$DUMPBIN"; then :
5434 # Let the user override the test.
5435 else
5436 if test -n "$ac_tool_prefix"; then
5437 for ac_prog in dumpbin "link -dump"
5438 do
5439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5443if ${ac_cv_prog_DUMPBIN+:} false; then :
48310492
RH
5444 $as_echo_n "(cached) " >&6
5445else
5446 if test -n "$DUMPBIN"; then
5447 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5456 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
5460done
5461 done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466DUMPBIN=$ac_cv_prog_DUMPBIN
5467if test -n "$DUMPBIN"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5469$as_echo "$DUMPBIN" >&6; }
5470else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
5473fi
5474
5475
5476 test -n "$DUMPBIN" && break
5477 done
5478fi
5479if test -z "$DUMPBIN"; then
5480 ac_ct_DUMPBIN=$DUMPBIN
5481 for ac_prog in dumpbin "link -dump"
5482do
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484set dummy $ac_prog; ac_word=$2
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5487if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
48310492
RH
5488 $as_echo_n "(cached) " >&6
5489else
5490 if test -n "$ac_ct_DUMPBIN"; then
5491 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5500 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504done
5505 done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5511if test -n "$ac_ct_DUMPBIN"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5513$as_echo "$ac_ct_DUMPBIN" >&6; }
5514else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516$as_echo "no" >&6; }
5517fi
5518
5519
5520 test -n "$ac_ct_DUMPBIN" && break
5521done
5522
5523 if test "x$ac_ct_DUMPBIN" = x; then
5524 DUMPBIN=":"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527yes:)
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530ac_tool_warned=yes ;;
5531esac
5532 DUMPBIN=$ac_ct_DUMPBIN
5533 fi
5534fi
5535
5536 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5537 *COFF*)
5538 DUMPBIN="$DUMPBIN -symbols"
5539 ;;
5540 *)
5541 DUMPBIN=:
5542 ;;
5543 esac
5544 fi
5545
5546 if test "$DUMPBIN" != ":"; then
5547 NM="$DUMPBIN"
5548 fi
5549fi
5550test -z "$NM" && NM=nm
5551
5552
5553
5554
5555
5556
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5558$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5559if ${lt_cv_nm_interface+:} false; then :
48310492
RH
5560 $as_echo_n "(cached) " >&6
5561else
5562 lt_cv_nm_interface="BSD nm"
5563 echo "int some_variable = 0;" > conftest.$ac_ext
5564 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5565 (eval "$ac_compile" 2>conftest.err)
5566 cat conftest.err >&5
5567 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5568 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5569 cat conftest.err >&5
5570 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5571 cat conftest.out >&5
5572 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5573 lt_cv_nm_interface="MS dumpbin"
5574 fi
5575 rm -f conftest*
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5578$as_echo "$lt_cv_nm_interface" >&6; }
5579
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5581$as_echo_n "checking whether ln -s works... " >&6; }
5582LN_S=$as_ln_s
5583if test "$LN_S" = "ln -s"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5585$as_echo "yes" >&6; }
5586else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5588$as_echo "no, using $LN_S" >&6; }
5589fi
5590
5591# find the maximum length of command line arguments
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5593$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5594if ${lt_cv_sys_max_cmd_len+:} false; then :
48310492
RH
5595 $as_echo_n "(cached) " >&6
5596else
5597 i=0
5598 teststring="ABCD"
5599
5600 case $build_os in
5601 msdosdjgpp*)
5602 # On DJGPP, this test can blow up pretty badly due to problems in libc
5603 # (any single argument exceeding 2000 bytes causes a buffer overrun
5604 # during glob expansion). Even if it were fixed, the result of this
5605 # check would be larger than it should be.
5606 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5607 ;;
5608
5609 gnu*)
5610 # Under GNU Hurd, this test is not required because there is
5611 # no limit to the length of command line arguments.
5612 # Libtool will interpret -1 as no limit whatsoever
5613 lt_cv_sys_max_cmd_len=-1;
5614 ;;
5615
5616 cygwin* | mingw* | cegcc*)
5617 # On Win9x/ME, this test blows up -- it succeeds, but takes
5618 # about 5 minutes as the teststring grows exponentially.
5619 # Worse, since 9x/ME are not pre-emptively multitasking,
5620 # you end up with a "frozen" computer, even though with patience
5621 # the test eventually succeeds (with a max line length of 256k).
5622 # Instead, let's just punt: use the minimum linelength reported by
5623 # all of the supported platforms: 8192 (on NT/2K/XP).
5624 lt_cv_sys_max_cmd_len=8192;
5625 ;;
5626
5627 mint*)
5628 # On MiNT this can take a long time and run out of memory.
5629 lt_cv_sys_max_cmd_len=8192;
5630 ;;
5631
5632 amigaos*)
5633 # On AmigaOS with pdksh, this test takes hours, literally.
5634 # So we just punt and use a minimum line length of 8192.
5635 lt_cv_sys_max_cmd_len=8192;
5636 ;;
5637
5638 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5639 # This has been around since 386BSD, at least. Likely further.
5640 if test -x /sbin/sysctl; then
5641 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5642 elif test -x /usr/sbin/sysctl; then
5643 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5644 else
5645 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5646 fi
5647 # And add a safety zone
5648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5650 ;;
5651
5652 interix*)
5653 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5654 lt_cv_sys_max_cmd_len=196608
5655 ;;
5656
5657 osf*)
5658 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5659 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5660 # nice to cause kernel panics so lets avoid the loop below.
5661 # First set a reasonable default.
5662 lt_cv_sys_max_cmd_len=16384
5663 #
5664 if test -x /sbin/sysconfig; then
5665 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5666 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5667 esac
5668 fi
5669 ;;
5670 sco3.2v5*)
5671 lt_cv_sys_max_cmd_len=102400
5672 ;;
5673 sysv5* | sco5v6* | sysv4.2uw2*)
5674 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5675 if test -n "$kargmax"; then
5676 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5677 else
5678 lt_cv_sys_max_cmd_len=32768
5679 fi
5680 ;;
5681 *)
5682 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5683 if test -n "$lt_cv_sys_max_cmd_len"; then
5684 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5686 else
5687 # Make teststring a little bigger before we do anything with it.
5688 # a 1K string should be a reasonable start.
5689 for i in 1 2 3 4 5 6 7 8 ; do
5690 teststring=$teststring$teststring
5691 done
5692 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5693 # If test is not a shell built-in, we'll probably end up computing a
5694 # maximum length that is only half of the actual maximum length, but
5695 # we can't tell.
5696 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5697 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5698 test $i != 17 # 1/2 MB should be enough
5699 do
5700 i=`expr $i + 1`
5701 teststring=$teststring$teststring
5702 done
5703 # Only check the string length outside the loop.
5704 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5705 teststring=
5706 # Add a significant safety factor because C++ compilers can tack on
5707 # massive amounts of additional arguments before passing them to the
5708 # linker. It appears as though 1/2 is a usable value.
5709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5710 fi
5711 ;;
5712 esac
5713
5714fi
5715
5716if test -n $lt_cv_sys_max_cmd_len ; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5718$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5719else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5721$as_echo "none" >&6; }
5722fi
5723max_cmd_len=$lt_cv_sys_max_cmd_len
5724
5725
5726
5727
5728
5729
5730: ${CP="cp -f"}
5731: ${MV="mv -f"}
5732: ${RM="rm -f"}
5733
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5735$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5736# Try some XSI features
5737xsi_shell=no
5738( _lt_dummy="a/b/c"
5739 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5740 = c,a/b,, \
5741 && eval 'test $(( 1 + 1 )) -eq 2 \
5742 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5743 && xsi_shell=yes
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5745$as_echo "$xsi_shell" >&6; }
5746
5747
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5749$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5750lt_shell_append=no
5751( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5752 >/dev/null 2>&1 \
5753 && lt_shell_append=yes
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5755$as_echo "$lt_shell_append" >&6; }
5756
5757
5758if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5759 lt_unset=unset
5760else
5761 lt_unset=false
5762fi
5763
5764
5765
5766
5767
5768# test EBCDIC or ASCII
5769case `echo X|tr X '\101'` in
5770 A) # ASCII based system
5771 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5772 lt_SP2NL='tr \040 \012'
5773 lt_NL2SP='tr \015\012 \040\040'
5774 ;;
5775 *) # EBCDIC based system
5776 lt_SP2NL='tr \100 \n'
5777 lt_NL2SP='tr \r\n \100\100'
5778 ;;
5779esac
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5790$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5791if ${lt_cv_ld_reload_flag+:} false; then :
48310492
RH
5792 $as_echo_n "(cached) " >&6
5793else
5794 lt_cv_ld_reload_flag='-r'
5795fi
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5797$as_echo "$lt_cv_ld_reload_flag" >&6; }
5798reload_flag=$lt_cv_ld_reload_flag
5799case $reload_flag in
5800"" | " "*) ;;
5801*) reload_flag=" $reload_flag" ;;
5802esac
5803reload_cmds='$LD$reload_flag -o $output$reload_objs'
5804case $host_os in
5805 darwin*)
5806 if test "$GCC" = yes; then
5807 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5808 else
5809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5810 fi
5811 ;;
5812esac
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5824set dummy ${ac_tool_prefix}objdump; ac_word=$2
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5827if ${ac_cv_prog_OBJDUMP+:} false; then :
48310492
RH
5828 $as_echo_n "(cached) " >&6
5829else
5830 if test -n "$OBJDUMP"; then
5831 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5840 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844done
5845 done
5846IFS=$as_save_IFS
5847
5848fi
5849fi
5850OBJDUMP=$ac_cv_prog_OBJDUMP
5851if test -n "$OBJDUMP"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5853$as_echo "$OBJDUMP" >&6; }
5854else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856$as_echo "no" >&6; }
5857fi
5858
5859
5860fi
5861if test -z "$ac_cv_prog_OBJDUMP"; then
5862 ac_ct_OBJDUMP=$OBJDUMP
5863 # Extract the first word of "objdump", so it can be a program name with args.
5864set dummy objdump; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5867if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
48310492
RH
5868 $as_echo_n "(cached) " >&6
5869else
5870 if test -n "$ac_ct_OBJDUMP"; then
5871 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5880 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884done
5885 done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5891if test -n "$ac_ct_OBJDUMP"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5893$as_echo "$ac_ct_OBJDUMP" >&6; }
5894else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899 if test "x$ac_ct_OBJDUMP" = x; then
5900 OBJDUMP="false"
5901 else
5902 case $cross_compiling:$ac_tool_warned in
5903yes:)
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906ac_tool_warned=yes ;;
5907esac
5908 OBJDUMP=$ac_ct_OBJDUMP
5909 fi
5910else
5911 OBJDUMP="$ac_cv_prog_OBJDUMP"
5912fi
5913
5914test -z "$OBJDUMP" && OBJDUMP=objdump
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5925$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 5926if ${lt_cv_deplibs_check_method+:} false; then :
48310492
RH
5927 $as_echo_n "(cached) " >&6
5928else
5929 lt_cv_file_magic_cmd='$MAGIC_CMD'
5930lt_cv_file_magic_test_file=
5931lt_cv_deplibs_check_method='unknown'
5932# Need to set the preceding variable on all platforms that support
5933# interlibrary dependencies.
5934# 'none' -- dependencies not supported.
5935# `unknown' -- same as none, but documents that we really don't know.
5936# 'pass_all' -- all dependencies passed with no checks.
5937# 'test_compile' -- check by making test program.
5938# 'file_magic [[regex]]' -- check by looking for files in library path
5939# which responds to the $file_magic_cmd with a given extended regex.
5940# If you have `file' or equivalent on your system and you're not sure
5941# whether `pass_all' will *always* work, you probably want this one.
5942
5943case $host_os in
5944aix[4-9]*)
5945 lt_cv_deplibs_check_method=pass_all
5946 ;;
5947
5948beos*)
5949 lt_cv_deplibs_check_method=pass_all
5950 ;;
5951
5952bsdi[45]*)
5953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5954 lt_cv_file_magic_cmd='/usr/bin/file -L'
5955 lt_cv_file_magic_test_file=/shlib/libc.so
5956 ;;
5957
5958cygwin*)
5959 # func_win32_libid is a shell function defined in ltmain.sh
5960 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5961 lt_cv_file_magic_cmd='func_win32_libid'
5962 ;;
5963
5964mingw* | pw32*)
5965 # Base MSYS/MinGW do not provide the 'file' command needed by
5966 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5967 # unless we find 'file', for example because we are cross-compiling.
5968 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5969 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5970 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5971 lt_cv_file_magic_cmd='func_win32_libid'
5972 else
5973 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5974 lt_cv_file_magic_cmd='$OBJDUMP -f'
5975 fi
5976 ;;
5977
5978cegcc*)
5979 # use the weaker test based on 'objdump'. See mingw*.
5980 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5981 lt_cv_file_magic_cmd='$OBJDUMP -f'
5982 ;;
5983
5984darwin* | rhapsody*)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987
5988freebsd* | dragonfly*)
5989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5990 case $host_cpu in
5991 i*86 )
5992 # Not sure whether the presence of OpenBSD here was a mistake.
5993 # Let's accept both of them until this is cleared up.
5994 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5995 lt_cv_file_magic_cmd=/usr/bin/file
5996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5997 ;;
5998 esac
5999 else
6000 lt_cv_deplibs_check_method=pass_all
6001 fi
6002 ;;
6003
6004gnu*)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007
6008haiku*)
6009 lt_cv_deplibs_check_method=pass_all
6010 ;;
6011
6012hpux10.20* | hpux11*)
6013 lt_cv_file_magic_cmd=/usr/bin/file
6014 case $host_cpu in
6015 ia64*)
6016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6018 ;;
6019 hppa*64*)
6020 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]'
6021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6022 ;;
6023 *)
6024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6026 ;;
6027 esac
6028 ;;
6029
6030interix[3-9]*)
6031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6033 ;;
6034
6035irix5* | irix6* | nonstopux*)
6036 case $LD in
6037 *-32|*"-32 ") libmagic=32-bit;;
6038 *-n32|*"-n32 ") libmagic=N32;;
6039 *-64|*"-64 ") libmagic=64-bit;;
6040 *) libmagic=never-match;;
6041 esac
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044
6045# This must be Linux ELF.
b1e21e5a 6046linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
48310492
RH
6047 lt_cv_deplibs_check_method=pass_all
6048 ;;
6049
6050netbsd*)
6051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6053 else
6054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6055 fi
6056 ;;
6057
6058newos6*)
6059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6060 lt_cv_file_magic_cmd=/usr/bin/file
6061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6062 ;;
6063
6064*nto* | *qnx*)
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067
6068openbsd*)
6069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6071 else
6072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6073 fi
6074 ;;
6075
6076osf3* | osf4* | osf5*)
6077 lt_cv_deplibs_check_method=pass_all
6078 ;;
6079
6080rdos*)
6081 lt_cv_deplibs_check_method=pass_all
6082 ;;
6083
6084solaris*)
6085 lt_cv_deplibs_check_method=pass_all
6086 ;;
6087
6088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
6092sysv4 | sysv4.3*)
6093 case $host_vendor in
6094 motorola)
6095 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]'
6096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6097 ;;
6098 ncr)
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
6101 sequent)
6102 lt_cv_file_magic_cmd='/bin/file'
6103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6104 ;;
6105 sni)
6106 lt_cv_file_magic_cmd='/bin/file'
6107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6108 lt_cv_file_magic_test_file=/lib/libc.so
6109 ;;
6110 siemens)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113 pc)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116 esac
6117 ;;
6118
6119tpf*)
6120 lt_cv_deplibs_check_method=pass_all
6121 ;;
0ecd0f1c
OH
6122vxworks*)
6123 # Assume VxWorks cross toolchains are built on Linux, possibly
6124 # as canadian for Windows hosts.
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
48310492
RH
6127esac
6128
6129fi
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6131$as_echo "$lt_cv_deplibs_check_method" >&6; }
6132file_magic_cmd=$lt_cv_file_magic_cmd
6133deplibs_check_method=$lt_cv_deplibs_check_method
6134test -z "$deplibs_check_method" && deplibs_check_method=unknown
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
126f707e
L
6147plugin_option=
6148plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6149for plugin in $plugin_names; do
6150 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6151 if test x$plugin_so = x$plugin; then
6152 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6153 fi
6154 if test x$plugin_so != x$plugin; then
6155 plugin_option="--plugin $plugin_so"
6156 break
6157 fi
6158done
6159
48310492
RH
6160if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6162set dummy ${ac_tool_prefix}ar; ac_word=$2
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6165if ${ac_cv_prog_AR+:} false; then :
48310492
RH
6166 $as_echo_n "(cached) " >&6
6167else
6168 if test -n "$AR"; then
6169 ac_cv_prog_AR="$AR" # Let the user override the test.
6170else
6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172for as_dir in $PATH
6173do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6178 ac_cv_prog_AR="${ac_tool_prefix}ar"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6181 fi
6182done
6183 done
6184IFS=$as_save_IFS
6185
6186fi
6187fi
6188AR=$ac_cv_prog_AR
6189if test -n "$AR"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6191$as_echo "$AR" >&6; }
6192else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194$as_echo "no" >&6; }
6195fi
6196
6197
6198fi
6199if test -z "$ac_cv_prog_AR"; then
6200 ac_ct_AR=$AR
6201 # Extract the first word of "ar", so it can be a program name with args.
6202set dummy ar; ac_word=$2
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6205if ${ac_cv_prog_ac_ct_AR+:} false; then :
48310492
RH
6206 $as_echo_n "(cached) " >&6
6207else
6208 if test -n "$ac_ct_AR"; then
6209 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6210else
6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212for as_dir in $PATH
6213do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6218 ac_cv_prog_ac_ct_AR="ar"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222done
6223 done
6224IFS=$as_save_IFS
6225
6226fi
6227fi
6228ac_ct_AR=$ac_cv_prog_ac_ct_AR
6229if test -n "$ac_ct_AR"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6231$as_echo "$ac_ct_AR" >&6; }
6232else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234$as_echo "no" >&6; }
6235fi
6236
6237 if test "x$ac_ct_AR" = x; then
6238 AR="false"
6239 else
6240 case $cross_compiling:$ac_tool_warned in
6241yes:)
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244ac_tool_warned=yes ;;
6245esac
6246 AR=$ac_ct_AR
6247 fi
6248else
6249 AR="$ac_cv_prog_AR"
6250fi
6251
6252test -z "$AR" && AR=ar
126f707e
L
6253if test -n "$plugin_option"; then
6254 if $AR --help 2>&1 | grep -q "\--plugin"; then
9c7797a8
L
6255 touch conftest.c
6256 $AR $plugin_option rc conftest.a conftest.c
6257 if test "$?" != 0; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6259$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6260 else
6261 AR="$AR $plugin_option"
6262 fi
6263 rm -f conftest.*
126f707e
L
6264 fi
6265fi
48310492
RH
6266test -z "$AR_FLAGS" && AR_FLAGS=cru
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6280set dummy ${ac_tool_prefix}strip; ac_word=$2
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6283if ${ac_cv_prog_STRIP+:} false; then :
48310492
RH
6284 $as_echo_n "(cached) " >&6
6285else
6286 if test -n "$STRIP"; then
6287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300done
6301 done
6302IFS=$as_save_IFS
6303
6304fi
6305fi
6306STRIP=$ac_cv_prog_STRIP
6307if test -n "$STRIP"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6309$as_echo "$STRIP" >&6; }
6310else
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312$as_echo "no" >&6; }
6313fi
6314
6315
6316fi
6317if test -z "$ac_cv_prog_STRIP"; then
6318 ac_ct_STRIP=$STRIP
6319 # Extract the first word of "strip", so it can be a program name with args.
6320set dummy strip; ac_word=$2
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6323if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
48310492
RH
6324 $as_echo_n "(cached) " >&6
6325else
6326 if test -n "$ac_ct_STRIP"; then
6327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6336 ac_cv_prog_ac_ct_STRIP="strip"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340done
6341 done
6342IFS=$as_save_IFS
6343
6344fi
6345fi
6346ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6347if test -n "$ac_ct_STRIP"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6349$as_echo "$ac_ct_STRIP" >&6; }
6350else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352$as_echo "no" >&6; }
6353fi
6354
6355 if test "x$ac_ct_STRIP" = x; then
6356 STRIP=":"
6357 else
6358 case $cross_compiling:$ac_tool_warned in
6359yes:)
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6362ac_tool_warned=yes ;;
6363esac
6364 STRIP=$ac_ct_STRIP
6365 fi
6366else
6367 STRIP="$ac_cv_prog_STRIP"
6368fi
6369
6370test -z "$STRIP" && STRIP=:
6371
6372
6373
6374
6375
6376
6377if test -n "$ac_tool_prefix"; then
6378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6379set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6382if ${ac_cv_prog_RANLIB+:} false; then :
48310492
RH
6383 $as_echo_n "(cached) " >&6
6384else
6385 if test -n "$RANLIB"; then
6386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6387else
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6398 fi
6399done
6400 done
6401IFS=$as_save_IFS
6402
6403fi
6404fi
6405RANLIB=$ac_cv_prog_RANLIB
6406if test -n "$RANLIB"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6408$as_echo "$RANLIB" >&6; }
6409else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411$as_echo "no" >&6; }
6412fi
6413
6414
6415fi
6416if test -z "$ac_cv_prog_RANLIB"; then
6417 ac_ct_RANLIB=$RANLIB
6418 # Extract the first word of "ranlib", so it can be a program name with args.
6419set dummy ranlib; ac_word=$2
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6422if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
48310492
RH
6423 $as_echo_n "(cached) " >&6
6424else
6425 if test -n "$ac_ct_RANLIB"; then
6426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6427else
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6435 ac_cv_prog_ac_ct_RANLIB="ranlib"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6438 fi
6439done
6440 done
6441IFS=$as_save_IFS
6442
6443fi
6444fi
6445ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6446if test -n "$ac_ct_RANLIB"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6448$as_echo "$ac_ct_RANLIB" >&6; }
6449else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451$as_echo "no" >&6; }
6452fi
6453
6454 if test "x$ac_ct_RANLIB" = x; then
6455 RANLIB=":"
6456 else
6457 case $cross_compiling:$ac_tool_warned in
6458yes:)
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461ac_tool_warned=yes ;;
6462esac
6463 RANLIB=$ac_ct_RANLIB
6464 fi
6465else
6466 RANLIB="$ac_cv_prog_RANLIB"
6467fi
6468
6469test -z "$RANLIB" && RANLIB=:
126f707e
L
6470if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6471 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6472 RANLIB="$RANLIB $plugin_option"
6473 fi
6474fi
48310492
RH
6475
6476
6477
6478
6479
6480
6481# Determine commands to create old-style static archives.
6482old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6483old_postinstall_cmds='chmod 644 $oldlib'
6484old_postuninstall_cmds=
6485
6486if test -n "$RANLIB"; then
6487 case $host_os in
6488 openbsd*)
6489 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6490 ;;
6491 *)
6492 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6493 ;;
6494 esac
6495 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6496fi
6497
6498case $host_os in
6499 darwin*)
6500 lock_old_archive_extraction=yes ;;
6501 *)
6502 lock_old_archive_extraction=no ;;
6503esac
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
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# If no C compiler was specified, use CC.
6544LTCC=${LTCC-"$CC"}
6545
6546# If no C compiler flags were specified, use CFLAGS.
6547LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6548
6549# Allow CC to be a program name with arguments.
6550compiler=$CC
6551
6552
6553# Check for command to grab the raw symbol name followed by C symbol from nm.
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6555$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6556if ${lt_cv_sys_global_symbol_pipe+:} false; then :
48310492
RH
6557 $as_echo_n "(cached) " >&6
6558else
6559
6560# These are sane defaults that work on at least a few old systems.
6561# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6562
6563# Character class describing NM global symbol codes.
6564symcode='[BCDEGRST]'
6565
6566# Regexp to match symbols that can be accessed directly from C.
6567sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6568
6569# Define system-specific variables.
6570case $host_os in
6571aix*)
6572 symcode='[BCDT]'
6573 ;;
6574cygwin* | mingw* | pw32* | cegcc*)
6575 symcode='[ABCDGISTW]'
6576 ;;
6577hpux*)
6578 if test "$host_cpu" = ia64; then
6579 symcode='[ABCDEGRST]'
6580 fi
6581 ;;
6582irix* | nonstopux*)
6583 symcode='[BCDEGRST]'
6584 ;;
6585osf*)
6586 symcode='[BCDEGQRST]'
6587 ;;
6588solaris*)
6589 symcode='[BDRT]'
6590 ;;
6591sco3.2v5*)
6592 symcode='[DT]'
6593 ;;
6594sysv4.2uw2*)
6595 symcode='[DT]'
6596 ;;
6597sysv5* | sco5v6* | unixware* | OpenUNIX*)
6598 symcode='[ABDT]'
6599 ;;
6600sysv4)
6601 symcode='[DFNSTU]'
6602 ;;
6603esac
6604
6605# If we're using GNU nm, then use its standard symbol codes.
6606case `$NM -V 2>&1` in
6607*GNU* | *'with BFD'*)
6608 symcode='[ABCDGIRSTW]' ;;
6609esac
6610
6611# Transform an extracted symbol line into a proper C declaration.
6612# Some systems (esp. on ia64) link data and code symbols differently,
6613# so use this general approach.
6614lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6615
6616# Transform an extracted symbol line into symbol name and symbol address
6617lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6618lt_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'"
6619
6620# Handle CRLF in mingw tool chain
6621opt_cr=
6622case $build_os in
6623mingw*)
6624 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6625 ;;
6626esac
6627
6628# Try without a prefix underscore, then with it.
6629for ac_symprfx in "" "_"; do
6630
6631 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6632 symxfrm="\\1 $ac_symprfx\\2 \\2"
6633
6634 # Write the raw and C identifiers.
6635 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6636 # Fake it for dumpbin and say T for any non-static function
6637 # and D for any global variable.
6638 # Also find C++ and __fastcall symbols from MSVC++,
6639 # which start with @ or ?.
6640 lt_cv_sys_global_symbol_pipe="$AWK '"\
6641" {last_section=section; section=\$ 3};"\
6642" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6643" \$ 0!~/External *\|/{next};"\
6644" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6645" {if(hide[section]) next};"\
6646" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6647" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6648" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6649" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6650" ' prfx=^$ac_symprfx"
6651 else
6652 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6653 fi
6654
6655 # Check to see that the pipe works correctly.
6656 pipe_works=no
6657
6658 rm -f conftest*
6659 cat > conftest.$ac_ext <<_LT_EOF
6660#ifdef __cplusplus
6661extern "C" {
6662#endif
6663char nm_test_var;
6664void nm_test_func(void);
6665void nm_test_func(void){}
6666#ifdef __cplusplus
6667}
6668#endif
6669int main(){nm_test_var='a';nm_test_func();return(0);}
6670_LT_EOF
6671
6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; }; then
6677 # Now try to grab the symbols.
6678 nlist=conftest.nm
6679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6680 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6681 ac_status=$?
6682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6683 test $ac_status = 0; } && test -s "$nlist"; then
6684 # Try sorting and uniquifying the output.
6685 if sort "$nlist" | uniq > "$nlist"T; then
6686 mv -f "$nlist"T "$nlist"
6687 else
6688 rm -f "$nlist"T
6689 fi
6690
6691 # Make sure that we snagged all the symbols we need.
6692 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6693 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6694 cat <<_LT_EOF > conftest.$ac_ext
6695#ifdef __cplusplus
6696extern "C" {
6697#endif
6698
6699_LT_EOF
6700 # Now generate the symbol file.
6701 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6702
6703 cat <<_LT_EOF >> conftest.$ac_ext
6704
6705/* The mapping between symbol names and symbols. */
6706const struct {
6707 const char *name;
6708 void *address;
6709}
6710lt__PROGRAM__LTX_preloaded_symbols[] =
6711{
6712 { "@PROGRAM@", (void *) 0 },
6713_LT_EOF
6714 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6715 cat <<\_LT_EOF >> conftest.$ac_ext
6716 {0, (void *) 0}
6717};
6718
6719/* This works around a problem in FreeBSD linker */
6720#ifdef FREEBSD_WORKAROUND
6721static const void *lt_preloaded_setup() {
6722 return lt__PROGRAM__LTX_preloaded_symbols;
6723}
6724#endif
6725
6726#ifdef __cplusplus
6727}
6728#endif
6729_LT_EOF
6730 # Now try linking the two files.
6731 mv conftest.$ac_objext conftstm.$ac_objext
6732 lt_save_LIBS="$LIBS"
6733 lt_save_CFLAGS="$CFLAGS"
6734 LIBS="conftstm.$ac_objext"
6735 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6737 (eval $ac_link) 2>&5
6738 ac_status=$?
6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6741 pipe_works=yes
6742 fi
6743 LIBS="$lt_save_LIBS"
6744 CFLAGS="$lt_save_CFLAGS"
6745 else
6746 echo "cannot find nm_test_func in $nlist" >&5
6747 fi
6748 else
6749 echo "cannot find nm_test_var in $nlist" >&5
6750 fi
6751 else
6752 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6753 fi
6754 else
6755 echo "$progname: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6757 fi
6758 rm -rf conftest* conftst*
6759
6760 # Do not use the global_symbol_pipe unless it works.
6761 if test "$pipe_works" = yes; then
6762 break
6763 else
6764 lt_cv_sys_global_symbol_pipe=
6765 fi
6766done
6767
6768fi
6769
6770if test -z "$lt_cv_sys_global_symbol_pipe"; then
6771 lt_cv_sys_global_symbol_to_cdecl=
6772fi
6773if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6775$as_echo "failed" >&6; }
6776else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6778$as_echo "ok" >&6; }
6779fi
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803# Check whether --enable-libtool-lock was given.
6804if test "${enable_libtool_lock+set}" = set; then :
6805 enableval=$enable_libtool_lock;
6806fi
6807
6808test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6809
6810# Some flags need to be propagated to the compiler or linker for good
6811# libtool support.
6812case $host in
6813ia64-*-hpux*)
6814 # Find out which ABI we are using.
6815 echo 'int i;' > conftest.$ac_ext
6816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6817 (eval $ac_compile) 2>&5
6818 ac_status=$?
6819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820 test $ac_status = 0; }; then
6821 case `/usr/bin/file conftest.$ac_objext` in
6822 *ELF-32*)
6823 HPUX_IA64_MODE="32"
6824 ;;
6825 *ELF-64*)
6826 HPUX_IA64_MODE="64"
6827 ;;
6828 esac
6829 fi
6830 rm -rf conftest*
6831 ;;
6832*-*-irix6*)
6833 # Find out which ABI we are using.
6834 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6836 (eval $ac_compile) 2>&5
6837 ac_status=$?
6838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839 test $ac_status = 0; }; then
6840 if test "$lt_cv_prog_gnu_ld" = yes; then
6841 case `/usr/bin/file conftest.$ac_objext` in
6842 *32-bit*)
6843 LD="${LD-ld} -melf32bsmip"
6844 ;;
6845 *N32*)
6846 LD="${LD-ld} -melf32bmipn32"
6847 ;;
6848 *64-bit*)
6849 LD="${LD-ld} -melf64bmip"
6850 ;;
6851 esac
6852 else
6853 case `/usr/bin/file conftest.$ac_objext` in
6854 *32-bit*)
6855 LD="${LD-ld} -32"
6856 ;;
6857 *N32*)
6858 LD="${LD-ld} -n32"
6859 ;;
6860 *64-bit*)
6861 LD="${LD-ld} -64"
6862 ;;
6863 esac
6864 fi
6865 fi
6866 rm -rf conftest*
6867 ;;
6868
3cbe17f7 6869x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
48310492
RH
6870s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6871 # Find out which ABI we are using.
6872 echo 'int i;' > conftest.$ac_ext
6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6874 (eval $ac_compile) 2>&5
6875 ac_status=$?
6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877 test $ac_status = 0; }; then
6878 case `/usr/bin/file conftest.o` in
6879 *32-bit*)
6880 case $host in
6881 x86_64-*kfreebsd*-gnu)
6882 LD="${LD-ld} -m elf_i386_fbsd"
6883 ;;
6884 x86_64-*linux*)
e6d5f8c9
L
6885 case `/usr/bin/file conftest.o` in
6886 *x86-64*)
6887 LD="${LD-ld} -m elf32_x86_64"
6888 ;;
6889 *)
6890 LD="${LD-ld} -m elf_i386"
6891 ;;
6892 esac
48310492 6893 ;;
3cbe17f7
AM
6894 powerpc64le-*linux*)
6895 LD="${LD-ld} -m elf32lppclinux"
6896 ;;
6897 powerpc64-*linux*)
48310492
RH
6898 LD="${LD-ld} -m elf32ppclinux"
6899 ;;
6900 s390x-*linux*)
6901 LD="${LD-ld} -m elf_s390"
6902 ;;
6903 sparc64-*linux*)
6904 LD="${LD-ld} -m elf32_sparc"
6905 ;;
6906 esac
6907 ;;
6908 *64-bit*)
6909 case $host in
6910 x86_64-*kfreebsd*-gnu)
6911 LD="${LD-ld} -m elf_x86_64_fbsd"
6912 ;;
6913 x86_64-*linux*)
6914 LD="${LD-ld} -m elf_x86_64"
6915 ;;
3cbe17f7
AM
6916 powerpcle-*linux*)
6917 LD="${LD-ld} -m elf64lppc"
6918 ;;
6919 powerpc-*linux*)
48310492
RH
6920 LD="${LD-ld} -m elf64ppc"
6921 ;;
6922 s390*-*linux*|s390*-*tpf*)
6923 LD="${LD-ld} -m elf64_s390"
6924 ;;
6925 sparc*-*linux*)
6926 LD="${LD-ld} -m elf64_sparc"
6927 ;;
6928 esac
6929 ;;
6930 esac
6931 fi
6932 rm -rf conftest*
6933 ;;
6934
6935*-*-sco3.2v5*)
6936 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6937 SAVE_CFLAGS="$CFLAGS"
6938 CFLAGS="$CFLAGS -belf"
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6940$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 6941if ${lt_cv_cc_needs_belf+:} false; then :
48310492
RH
6942 $as_echo_n "(cached) " >&6
6943else
6944 ac_ext=c
6945ac_cpp='$CPP $CPPFLAGS'
6946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h. */
6952
6953int
6954main ()
6955{
6956
6957 ;
6958 return 0;
6959}
6960_ACEOF
6961if ac_fn_c_try_link "$LINENO"; then :
6962 lt_cv_cc_needs_belf=yes
6963else
6964 lt_cv_cc_needs_belf=no
6965fi
6966rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6968 ac_ext=c
6969ac_cpp='$CPP $CPPFLAGS'
6970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972ac_compiler_gnu=$ac_cv_c_compiler_gnu
6973
6974fi
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6976$as_echo "$lt_cv_cc_needs_belf" >&6; }
6977 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6978 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6979 CFLAGS="$SAVE_CFLAGS"
6980 fi
6981 ;;
6982sparc*-*solaris*)
6983 # Find out which ABI we are using.
6984 echo 'int i;' > conftest.$ac_ext
6985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6986 (eval $ac_compile) 2>&5
6987 ac_status=$?
6988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6989 test $ac_status = 0; }; then
6990 case `/usr/bin/file conftest.o` in
6991 *64-bit*)
6992 case $lt_cv_prog_gnu_ld in
6993 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6994 *)
6995 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6996 LD="${LD-ld} -64"
6997 fi
6998 ;;
6999 esac
7000 ;;
7001 esac
7002 fi
7003 rm -rf conftest*
7004 ;;
7005esac
7006
7007need_locks="$enable_libtool_lock"
7008
7009
7010 case $host_os in
7011 rhapsody* | darwin*)
7012 if test -n "$ac_tool_prefix"; then
7013 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7014set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7017if ${ac_cv_prog_DSYMUTIL+:} false; then :
48310492
RH
7018 $as_echo_n "(cached) " >&6
7019else
7020 if test -n "$DSYMUTIL"; then
7021 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7022else
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7030 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034done
7035 done
7036IFS=$as_save_IFS
7037
7038fi
7039fi
7040DSYMUTIL=$ac_cv_prog_DSYMUTIL
7041if test -n "$DSYMUTIL"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7043$as_echo "$DSYMUTIL" >&6; }
7044else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046$as_echo "no" >&6; }
7047fi
7048
7049
7050fi
7051if test -z "$ac_cv_prog_DSYMUTIL"; then
7052 ac_ct_DSYMUTIL=$DSYMUTIL
7053 # Extract the first word of "dsymutil", so it can be a program name with args.
7054set dummy dsymutil; ac_word=$2
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7057if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
48310492
RH
7058 $as_echo_n "(cached) " >&6
7059else
7060 if test -n "$ac_ct_DSYMUTIL"; then
7061 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7062else
7063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7070 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074done
7075 done
7076IFS=$as_save_IFS
7077
7078fi
7079fi
7080ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7081if test -n "$ac_ct_DSYMUTIL"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7083$as_echo "$ac_ct_DSYMUTIL" >&6; }
7084else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086$as_echo "no" >&6; }
7087fi
7088
7089 if test "x$ac_ct_DSYMUTIL" = x; then
7090 DSYMUTIL=":"
7091 else
7092 case $cross_compiling:$ac_tool_warned in
7093yes:)
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7096ac_tool_warned=yes ;;
7097esac
7098 DSYMUTIL=$ac_ct_DSYMUTIL
7099 fi
7100else
7101 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7102fi
7103
7104 if test -n "$ac_tool_prefix"; then
7105 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7106set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7109if ${ac_cv_prog_NMEDIT+:} false; then :
48310492
RH
7110 $as_echo_n "(cached) " >&6
7111else
7112 if test -n "$NMEDIT"; then
7113 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7114else
7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7122 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126done
7127 done
7128IFS=$as_save_IFS
7129
7130fi
7131fi
7132NMEDIT=$ac_cv_prog_NMEDIT
7133if test -n "$NMEDIT"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7135$as_echo "$NMEDIT" >&6; }
7136else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138$as_echo "no" >&6; }
7139fi
7140
7141
7142fi
7143if test -z "$ac_cv_prog_NMEDIT"; then
7144 ac_ct_NMEDIT=$NMEDIT
7145 # Extract the first word of "nmedit", so it can be a program name with args.
7146set dummy nmedit; ac_word=$2
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7149if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
48310492
RH
7150 $as_echo_n "(cached) " >&6
7151else
7152 if test -n "$ac_ct_NMEDIT"; then
7153 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7162 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167 done
7168IFS=$as_save_IFS
7169
7170fi
7171fi
7172ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7173if test -n "$ac_ct_NMEDIT"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7175$as_echo "$ac_ct_NMEDIT" >&6; }
7176else
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178$as_echo "no" >&6; }
7179fi
7180
7181 if test "x$ac_ct_NMEDIT" = x; then
7182 NMEDIT=":"
7183 else
7184 case $cross_compiling:$ac_tool_warned in
7185yes:)
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7188ac_tool_warned=yes ;;
7189esac
7190 NMEDIT=$ac_ct_NMEDIT
7191 fi
7192else
7193 NMEDIT="$ac_cv_prog_NMEDIT"
7194fi
7195
7196 if test -n "$ac_tool_prefix"; then
7197 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7198set dummy ${ac_tool_prefix}lipo; ac_word=$2
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7201if ${ac_cv_prog_LIPO+:} false; then :
48310492
RH
7202 $as_echo_n "(cached) " >&6
7203else
7204 if test -n "$LIPO"; then
7205 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7206else
7207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7214 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218done
7219 done
7220IFS=$as_save_IFS
7221
7222fi
7223fi
7224LIPO=$ac_cv_prog_LIPO
7225if test -n "$LIPO"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7227$as_echo "$LIPO" >&6; }
7228else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230$as_echo "no" >&6; }
7231fi
7232
7233
7234fi
7235if test -z "$ac_cv_prog_LIPO"; then
7236 ac_ct_LIPO=$LIPO
7237 # Extract the first word of "lipo", so it can be a program name with args.
7238set dummy lipo; ac_word=$2
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7241if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
48310492
RH
7242 $as_echo_n "(cached) " >&6
7243else
7244 if test -n "$ac_ct_LIPO"; then
7245 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7246else
7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7254 ac_cv_prog_ac_ct_LIPO="lipo"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258done
7259 done
7260IFS=$as_save_IFS
7261
7262fi
7263fi
7264ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7265if test -n "$ac_ct_LIPO"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7267$as_echo "$ac_ct_LIPO" >&6; }
7268else
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270$as_echo "no" >&6; }
7271fi
7272
7273 if test "x$ac_ct_LIPO" = x; then
7274 LIPO=":"
7275 else
7276 case $cross_compiling:$ac_tool_warned in
7277yes:)
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280ac_tool_warned=yes ;;
7281esac
7282 LIPO=$ac_ct_LIPO
7283 fi
7284else
7285 LIPO="$ac_cv_prog_LIPO"
7286fi
7287
7288 if test -n "$ac_tool_prefix"; then
7289 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7290set dummy ${ac_tool_prefix}otool; ac_word=$2
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7293if ${ac_cv_prog_OTOOL+:} false; then :
48310492
RH
7294 $as_echo_n "(cached) " >&6
7295else
7296 if test -n "$OTOOL"; then
7297 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7298else
7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7306 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310done
7311 done
7312IFS=$as_save_IFS
7313
7314fi
7315fi
7316OTOOL=$ac_cv_prog_OTOOL
7317if test -n "$OTOOL"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7319$as_echo "$OTOOL" >&6; }
7320else
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322$as_echo "no" >&6; }
7323fi
7324
7325
7326fi
7327if test -z "$ac_cv_prog_OTOOL"; then
7328 ac_ct_OTOOL=$OTOOL
7329 # Extract the first word of "otool", so it can be a program name with args.
7330set dummy otool; ac_word=$2
7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7333if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
48310492
RH
7334 $as_echo_n "(cached) " >&6
7335else
7336 if test -n "$ac_ct_OTOOL"; then
7337 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7338else
7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7346 ac_cv_prog_ac_ct_OTOOL="otool"
7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350done
7351 done
7352IFS=$as_save_IFS
7353
7354fi
7355fi
7356ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7357if test -n "$ac_ct_OTOOL"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7359$as_echo "$ac_ct_OTOOL" >&6; }
7360else
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362$as_echo "no" >&6; }
7363fi
7364
7365 if test "x$ac_ct_OTOOL" = x; then
7366 OTOOL=":"
7367 else
7368 case $cross_compiling:$ac_tool_warned in
7369yes:)
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372ac_tool_warned=yes ;;
7373esac
7374 OTOOL=$ac_ct_OTOOL
7375 fi
7376else
7377 OTOOL="$ac_cv_prog_OTOOL"
7378fi
7379
7380 if test -n "$ac_tool_prefix"; then
7381 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7382set dummy ${ac_tool_prefix}otool64; ac_word=$2
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7385if ${ac_cv_prog_OTOOL64+:} false; then :
48310492
RH
7386 $as_echo_n "(cached) " >&6
7387else
7388 if test -n "$OTOOL64"; then
7389 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7390else
7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7398 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402done
7403 done
7404IFS=$as_save_IFS
7405
7406fi
7407fi
7408OTOOL64=$ac_cv_prog_OTOOL64
7409if test -n "$OTOOL64"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7411$as_echo "$OTOOL64" >&6; }
7412else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414$as_echo "no" >&6; }
7415fi
7416
7417
7418fi
7419if test -z "$ac_cv_prog_OTOOL64"; then
7420 ac_ct_OTOOL64=$OTOOL64
7421 # Extract the first word of "otool64", so it can be a program name with args.
7422set dummy otool64; ac_word=$2
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7425if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
48310492
RH
7426 $as_echo_n "(cached) " >&6
7427else
7428 if test -n "$ac_ct_OTOOL64"; then
7429 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7438 ac_cv_prog_ac_ct_OTOOL64="otool64"
7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7441 fi
7442done
7443 done
7444IFS=$as_save_IFS
7445
7446fi
7447fi
7448ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7449if test -n "$ac_ct_OTOOL64"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7451$as_echo "$ac_ct_OTOOL64" >&6; }
7452else
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454$as_echo "no" >&6; }
7455fi
7456
7457 if test "x$ac_ct_OTOOL64" = x; then
7458 OTOOL64=":"
7459 else
7460 case $cross_compiling:$ac_tool_warned in
7461yes:)
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7464ac_tool_warned=yes ;;
7465esac
7466 OTOOL64=$ac_ct_OTOOL64
7467 fi
7468else
7469 OTOOL64="$ac_cv_prog_OTOOL64"
7470fi
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7499$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7500if ${lt_cv_apple_cc_single_mod+:} false; then :
48310492
RH
7501 $as_echo_n "(cached) " >&6
7502else
7503 lt_cv_apple_cc_single_mod=no
7504 if test -z "${LT_MULTI_MODULE}"; then
7505 # By default we will add the -single_module flag. You can override
7506 # by either setting the environment variable LT_MULTI_MODULE
7507 # non-empty at configure time, or by adding -multi_module to the
7508 # link flags.
7509 rm -rf libconftest.dylib*
7510 echo "int foo(void){return 1;}" > conftest.c
7511 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7512-dynamiclib -Wl,-single_module conftest.c" >&5
7513 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7514 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7515 _lt_result=$?
7516 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7517 lt_cv_apple_cc_single_mod=yes
7518 else
7519 cat conftest.err >&5
7520 fi
7521 rm -rf libconftest.dylib*
7522 rm -f conftest.*
7523 fi
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7526$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7528$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7529if ${lt_cv_ld_exported_symbols_list+:} false; then :
48310492
RH
7530 $as_echo_n "(cached) " >&6
7531else
7532 lt_cv_ld_exported_symbols_list=no
7533 save_LDFLAGS=$LDFLAGS
7534 echo "_main" > conftest.sym
7535 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537/* end confdefs.h. */
7538
7539int
7540main ()
7541{
7542
7543 ;
7544 return 0;
7545}
7546_ACEOF
7547if ac_fn_c_try_link "$LINENO"; then :
7548 lt_cv_ld_exported_symbols_list=yes
7549else
7550 lt_cv_ld_exported_symbols_list=no
7551fi
7552rm -f core conftest.err conftest.$ac_objext \
7553 conftest$ac_exeext conftest.$ac_ext
7554 LDFLAGS="$save_LDFLAGS"
7555
7556fi
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7558$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7560$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7561if ${lt_cv_ld_force_load+:} false; then :
48310492
RH
7562 $as_echo_n "(cached) " >&6
7563else
7564 lt_cv_ld_force_load=no
7565 cat > conftest.c << _LT_EOF
7566int forced_loaded() { return 2;}
7567_LT_EOF
7568 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7569 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7570 echo "$AR cru libconftest.a conftest.o" >&5
7571 $AR cru libconftest.a conftest.o 2>&5
7572 cat > conftest.c << _LT_EOF
7573int main() { return 0;}
7574_LT_EOF
7575 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7576 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7577 _lt_result=$?
7578 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7579 lt_cv_ld_force_load=yes
7580 else
7581 cat conftest.err >&5
7582 fi
7583 rm -f conftest.err libconftest.a conftest conftest.c
7584 rm -rf conftest.dSYM
7585
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7588$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
7589 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7590 # build without first building modern cctools / linker.
7591 case $host_cpu-$host_os in
7592 *-rhapsody* | *-darwin1.[012])
48310492 7593 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 7594 *-darwin1.*)
48310492 7595 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
7596 *-darwin*)
7597 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7598 # deployment target is forced to an earlier version.
7599 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7600 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7601 ;;
ebf6d33b 7602 10.[012][,.]*)
1352bc88
IS
7603 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7604 ;;
7605 *)
7606 ;;
7607 esac
48310492
RH
7608 ;;
7609 esac
7610 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7611 _lt_dar_single_mod='$single_module'
7612 fi
7613 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7614 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7615 else
7616 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7617 fi
7618 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7619 _lt_dsymutil='~$DSYMUTIL $lib || :'
7620 else
7621 _lt_dsymutil=
7622 fi
7623 ;;
7624 esac
7625
7626ac_ext=c
7627ac_cpp='$CPP $CPPFLAGS'
7628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7632$as_echo_n "checking how to run the C preprocessor... " >&6; }
7633# On Suns, sometimes $CPP names a directory.
7634if test -n "$CPP" && test -d "$CPP"; then
7635 CPP=
7636fi
7637if test -z "$CPP"; then
22e05272 7638 if ${ac_cv_prog_CPP+:} false; then :
48310492
RH
7639 $as_echo_n "(cached) " >&6
7640else
7641 # Double quotes because CPP needs to be expanded
7642 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7643 do
7644 ac_preproc_ok=false
7645for ac_c_preproc_warn_flag in '' yes
7646do
7647 # Use a header file that comes with gcc, so configuring glibc
7648 # with a fresh cross-compiler works.
7649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7650 # <limits.h> exists even on freestanding compilers.
7651 # On the NeXT, cc -E runs the code through the compiler's parser,
7652 # not just through cpp. "Syntax error" is here to catch this case.
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654/* end confdefs.h. */
7655#ifdef __STDC__
7656# include <limits.h>
7657#else
7658# include <assert.h>
7659#endif
7660 Syntax error
7661_ACEOF
7662if ac_fn_c_try_cpp "$LINENO"; then :
7663
7664else
7665 # Broken: fails on valid input.
7666continue
7667fi
22e05272 7668rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7669
7670 # OK, works on sane cases. Now check whether nonexistent headers
7671 # can be detected and how.
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673/* end confdefs.h. */
7674#include <ac_nonexistent.h>
7675_ACEOF
7676if ac_fn_c_try_cpp "$LINENO"; then :
7677 # Broken: success on invalid input.
7678continue
7679else
7680 # Passes both tests.
7681ac_preproc_ok=:
7682break
7683fi
22e05272 7684rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7685
7686done
7687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7688rm -f conftest.i conftest.err conftest.$ac_ext
48310492
RH
7689if $ac_preproc_ok; then :
7690 break
7691fi
7692
7693 done
7694 ac_cv_prog_CPP=$CPP
7695
7696fi
7697 CPP=$ac_cv_prog_CPP
7698else
7699 ac_cv_prog_CPP=$CPP
7700fi
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7702$as_echo "$CPP" >&6; }
7703ac_preproc_ok=false
7704for ac_c_preproc_warn_flag in '' yes
7705do
7706 # Use a header file that comes with gcc, so configuring glibc
7707 # with a fresh cross-compiler works.
7708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7709 # <limits.h> exists even on freestanding compilers.
7710 # On the NeXT, cc -E runs the code through the compiler's parser,
7711 # not just through cpp. "Syntax error" is here to catch this case.
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h. */
7714#ifdef __STDC__
7715# include <limits.h>
7716#else
7717# include <assert.h>
7718#endif
7719 Syntax error
7720_ACEOF
7721if ac_fn_c_try_cpp "$LINENO"; then :
7722
7723else
7724 # Broken: fails on valid input.
7725continue
7726fi
22e05272 7727rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7728
7729 # OK, works on sane cases. Now check whether nonexistent headers
7730 # can be detected and how.
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732/* end confdefs.h. */
7733#include <ac_nonexistent.h>
7734_ACEOF
7735if ac_fn_c_try_cpp "$LINENO"; then :
7736 # Broken: success on invalid input.
7737continue
7738else
7739 # Passes both tests.
7740ac_preproc_ok=:
7741break
7742fi
22e05272 7743rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7744
7745done
7746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7747rm -f conftest.i conftest.err conftest.$ac_ext
48310492
RH
7748if $ac_preproc_ok; then :
7749
7750else
7751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
7753as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7754See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
7755fi
7756
7757ac_ext=c
7758ac_cpp='$CPP $CPPFLAGS'
7759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7765$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 7766if ${ac_cv_header_stdc+:} false; then :
48310492
RH
7767 $as_echo_n "(cached) " >&6
7768else
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770/* end confdefs.h. */
7771#include <stdlib.h>
7772#include <stdarg.h>
7773#include <string.h>
7774#include <float.h>
7775
7776int
7777main ()
7778{
7779
7780 ;
7781 return 0;
7782}
7783_ACEOF
7784if ac_fn_c_try_compile "$LINENO"; then :
7785 ac_cv_header_stdc=yes
7786else
7787 ac_cv_header_stdc=no
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790
7791if test $ac_cv_header_stdc = yes; then
7792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h. */
7795#include <string.h>
7796
7797_ACEOF
7798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7799 $EGREP "memchr" >/dev/null 2>&1; then :
7800
7801else
7802 ac_cv_header_stdc=no
7803fi
7804rm -f conftest*
7805
7806fi
7807
7808if test $ac_cv_header_stdc = yes; then
7809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h. */
7812#include <stdlib.h>
7813
7814_ACEOF
7815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7816 $EGREP "free" >/dev/null 2>&1; then :
7817
7818else
7819 ac_cv_header_stdc=no
7820fi
7821rm -f conftest*
7822
7823fi
7824
7825if test $ac_cv_header_stdc = yes; then
7826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7827 if test "$cross_compiling" = yes; then :
7828 :
7829else
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831/* end confdefs.h. */
7832#include <ctype.h>
7833#include <stdlib.h>
7834#if ((' ' & 0x0FF) == 0x020)
7835# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7836# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7837#else
7838# define ISLOWER(c) \
7839 (('a' <= (c) && (c) <= 'i') \
7840 || ('j' <= (c) && (c) <= 'r') \
7841 || ('s' <= (c) && (c) <= 'z'))
7842# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7843#endif
7844
7845#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7846int
7847main ()
7848{
7849 int i;
7850 for (i = 0; i < 256; i++)
7851 if (XOR (islower (i), ISLOWER (i))
7852 || toupper (i) != TOUPPER (i))
7853 return 2;
7854 return 0;
7855}
7856_ACEOF
7857if ac_fn_c_try_run "$LINENO"; then :
7858
7859else
7860 ac_cv_header_stdc=no
7861fi
7862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7863 conftest.$ac_objext conftest.beam conftest.$ac_ext
7864fi
7865
7866fi
7867fi
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7869$as_echo "$ac_cv_header_stdc" >&6; }
7870if test $ac_cv_header_stdc = yes; then
7871
7872$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7873
7874fi
7875
7876# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7877for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7878 inttypes.h stdint.h unistd.h
7879do :
7880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7881ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7882"
22e05272 7883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
48310492
RH
7884 cat >>confdefs.h <<_ACEOF
7885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7886_ACEOF
7887
7888fi
7889
7890done
7891
7892
7893for ac_header in dlfcn.h
7894do :
7895 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7896"
22e05272 7897if test "x$ac_cv_header_dlfcn_h" = xyes; then :
48310492
RH
7898 cat >>confdefs.h <<_ACEOF
7899#define HAVE_DLFCN_H 1
7900_ACEOF
7901
7902fi
7903
7904done
7905
7906
7907
7908
7909
7910# Set options
7911
7912
7913
7914 enable_dlopen=no
7915
7916
7917 enable_win32_dll=no
7918
7919
7920 # Check whether --enable-shared was given.
7921if test "${enable_shared+set}" = set; then :
7922 enableval=$enable_shared; p=${PACKAGE-default}
7923 case $enableval in
7924 yes) enable_shared=yes ;;
7925 no) enable_shared=no ;;
7926 *)
7927 enable_shared=no
7928 # Look at the argument we got. We use all the common list separators.
7929 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7930 for pkg in $enableval; do
7931 IFS="$lt_save_ifs"
7932 if test "X$pkg" = "X$p"; then
7933 enable_shared=yes
7934 fi
7935 done
7936 IFS="$lt_save_ifs"
7937 ;;
7938 esac
7939else
7940 enable_shared=yes
7941fi
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951 # Check whether --enable-static was given.
7952if test "${enable_static+set}" = set; then :
7953 enableval=$enable_static; p=${PACKAGE-default}
7954 case $enableval in
7955 yes) enable_static=yes ;;
7956 no) enable_static=no ;;
7957 *)
7958 enable_static=no
7959 # Look at the argument we got. We use all the common list separators.
7960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7961 for pkg in $enableval; do
7962 IFS="$lt_save_ifs"
7963 if test "X$pkg" = "X$p"; then
7964 enable_static=yes
7965 fi
7966 done
7967 IFS="$lt_save_ifs"
7968 ;;
7969 esac
7970else
7971 enable_static=yes
7972fi
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983# Check whether --with-pic was given.
7984if test "${with_pic+set}" = set; then :
7985 withval=$with_pic; pic_mode="$withval"
7986else
7987 pic_mode=default
7988fi
7989
7990
7991test -z "$pic_mode" && pic_mode=default
7992
7993
7994
7995
7996
7997
7998
7999 # Check whether --enable-fast-install was given.
8000if test "${enable_fast_install+set}" = set; then :
8001 enableval=$enable_fast_install; p=${PACKAGE-default}
8002 case $enableval in
8003 yes) enable_fast_install=yes ;;
8004 no) enable_fast_install=no ;;
8005 *)
8006 enable_fast_install=no
8007 # Look at the argument we got. We use all the common list separators.
8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009 for pkg in $enableval; do
8010 IFS="$lt_save_ifs"
8011 if test "X$pkg" = "X$p"; then
8012 enable_fast_install=yes
8013 fi
8014 done
8015 IFS="$lt_save_ifs"
8016 ;;
8017 esac
8018else
8019 enable_fast_install=yes
8020fi
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032# This can be used to rebuild libtool when needed
8033LIBTOOL_DEPS="$ltmain"
8034
8035# Always use our own libtool.
8036LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063test -z "$LN_S" && LN_S="ln -s"
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078if test -n "${ZSH_VERSION+set}" ; then
8079 setopt NO_GLOB_SUBST
8080fi
8081
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8083$as_echo_n "checking for objdir... " >&6; }
22e05272 8084if ${lt_cv_objdir+:} false; then :
48310492
RH
8085 $as_echo_n "(cached) " >&6
8086else
8087 rm -f .libs 2>/dev/null
8088mkdir .libs 2>/dev/null
8089if test -d .libs; then
8090 lt_cv_objdir=.libs
8091else
8092 # MS-DOS does not allow filenames that begin with a dot.
8093 lt_cv_objdir=_libs
8094fi
8095rmdir .libs 2>/dev/null
8096fi
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8098$as_echo "$lt_cv_objdir" >&6; }
8099objdir=$lt_cv_objdir
8100
8101
8102
8103
8104
8105cat >>confdefs.h <<_ACEOF
8106#define LT_OBJDIR "$lt_cv_objdir/"
8107_ACEOF
8108
8109
8110
8111
8112case $host_os in
8113aix3*)
8114 # AIX sometimes has problems with the GCC collect2 program. For some
8115 # reason, if we set the COLLECT_NAMES environment variable, the problems
8116 # vanish in a puff of smoke.
8117 if test "X${COLLECT_NAMES+set}" != Xset; then
8118 COLLECT_NAMES=
8119 export COLLECT_NAMES
8120 fi
8121 ;;
8122esac
8123
8124# Global variables:
8125ofile=libtool
8126can_build_shared=yes
8127
8128# All known linkers require a `.a' archive for static linking (except MSVC,
8129# which needs '.lib').
8130libext=a
8131
8132with_gnu_ld="$lt_cv_prog_gnu_ld"
8133
8134old_CC="$CC"
8135old_CFLAGS="$CFLAGS"
8136
8137# Set sane defaults for various variables
8138test -z "$CC" && CC=cc
8139test -z "$LTCC" && LTCC=$CC
8140test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8141test -z "$LD" && LD=ld
8142test -z "$ac_objext" && ac_objext=o
8143
8144for cc_temp in $compiler""; do
8145 case $cc_temp in
8146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8148 \-*) ;;
8149 *) break;;
8150 esac
8151done
8152cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8153
8154
8155# Only perform the check for file, if the check method requires it
8156test -z "$MAGIC_CMD" && MAGIC_CMD=file
8157case $deplibs_check_method in
8158file_magic*)
8159 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8161$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8162if ${lt_cv_path_MAGIC_CMD+:} false; then :
48310492
RH
8163 $as_echo_n "(cached) " >&6
8164else
8165 case $MAGIC_CMD in
8166[\\/*] | ?:[\\/]*)
8167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8168 ;;
8169*)
8170 lt_save_MAGIC_CMD="$MAGIC_CMD"
8171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8173 for ac_dir in $ac_dummy; do
8174 IFS="$lt_save_ifs"
8175 test -z "$ac_dir" && ac_dir=.
8176 if test -f $ac_dir/${ac_tool_prefix}file; then
8177 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8178 if test -n "$file_magic_test_file"; then
8179 case $deplibs_check_method in
8180 "file_magic "*)
8181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8184 $EGREP "$file_magic_regex" > /dev/null; then
8185 :
8186 else
8187 cat <<_LT_EOF 1>&2
8188
8189*** Warning: the command libtool uses to detect shared libraries,
8190*** $file_magic_cmd, produces output that libtool cannot recognize.
8191*** The result is that libtool may fail to recognize shared libraries
8192*** as such. This will affect the creation of libtool libraries that
8193*** depend on shared libraries, but programs linked with such libtool
8194*** libraries will work regardless of this problem. Nevertheless, you
8195*** may want to report the problem to your system manager and/or to
8196*** bug-libtool@gnu.org
8197
8198_LT_EOF
8199 fi ;;
8200 esac
8201 fi
8202 break
8203 fi
8204 done
8205 IFS="$lt_save_ifs"
8206 MAGIC_CMD="$lt_save_MAGIC_CMD"
8207 ;;
8208esac
8209fi
8210
8211MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8212if test -n "$MAGIC_CMD"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8214$as_echo "$MAGIC_CMD" >&6; }
8215else
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217$as_echo "no" >&6; }
8218fi
8219
8220
8221
8222
8223
8224if test -z "$lt_cv_path_MAGIC_CMD"; then
8225 if test -n "$ac_tool_prefix"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8227$as_echo_n "checking for file... " >&6; }
22e05272 8228if ${lt_cv_path_MAGIC_CMD+:} false; then :
48310492
RH
8229 $as_echo_n "(cached) " >&6
8230else
8231 case $MAGIC_CMD in
8232[\\/*] | ?:[\\/]*)
8233 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8234 ;;
8235*)
8236 lt_save_MAGIC_CMD="$MAGIC_CMD"
8237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8238 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8239 for ac_dir in $ac_dummy; do
8240 IFS="$lt_save_ifs"
8241 test -z "$ac_dir" && ac_dir=.
8242 if test -f $ac_dir/file; then
8243 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8244 if test -n "$file_magic_test_file"; then
8245 case $deplibs_check_method in
8246 "file_magic "*)
8247 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8249 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8250 $EGREP "$file_magic_regex" > /dev/null; then
8251 :
8252 else
8253 cat <<_LT_EOF 1>&2
8254
8255*** Warning: the command libtool uses to detect shared libraries,
8256*** $file_magic_cmd, produces output that libtool cannot recognize.
8257*** The result is that libtool may fail to recognize shared libraries
8258*** as such. This will affect the creation of libtool libraries that
8259*** depend on shared libraries, but programs linked with such libtool
8260*** libraries will work regardless of this problem. Nevertheless, you
8261*** may want to report the problem to your system manager and/or to
8262*** bug-libtool@gnu.org
8263
8264_LT_EOF
8265 fi ;;
8266 esac
8267 fi
8268 break
8269 fi
8270 done
8271 IFS="$lt_save_ifs"
8272 MAGIC_CMD="$lt_save_MAGIC_CMD"
8273 ;;
8274esac
8275fi
8276
8277MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8278if test -n "$MAGIC_CMD"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8280$as_echo "$MAGIC_CMD" >&6; }
8281else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284fi
8285
8286
8287 else
8288 MAGIC_CMD=:
8289 fi
8290fi
8291
8292 fi
8293 ;;
8294esac
8295
8296# Use C for the default configuration in the libtool script
8297
8298lt_save_CC="$CC"
8299ac_ext=c
8300ac_cpp='$CPP $CPPFLAGS'
8301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8303ac_compiler_gnu=$ac_cv_c_compiler_gnu
8304
8305
8306# Source file extension for C test sources.
8307ac_ext=c
8308
8309# Object file extension for compiled C test sources.
8310objext=o
8311objext=$objext
8312
8313# Code to be used in simple compile tests
8314lt_simple_compile_test_code="int some_variable = 0;"
8315
8316# Code to be used in simple link tests
8317lt_simple_link_test_code='int main(){return(0);}'
8318
8319
8320
8321
8322
8323
8324
8325# If no C compiler was specified, use CC.
8326LTCC=${LTCC-"$CC"}
8327
8328# If no C compiler flags were specified, use CFLAGS.
8329LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8330
8331# Allow CC to be a program name with arguments.
8332compiler=$CC
8333
8334# Save the default compiler, since it gets overwritten when the other
8335# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8336compiler_DEFAULT=$CC
8337
8338# save warnings/boilerplate of simple test code
8339ac_outfile=conftest.$ac_objext
8340echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8341eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8342_lt_compiler_boilerplate=`cat conftest.err`
8343$RM conftest*
8344
8345ac_outfile=conftest.$ac_objext
8346echo "$lt_simple_link_test_code" >conftest.$ac_ext
8347eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8348_lt_linker_boilerplate=`cat conftest.err`
8349$RM -r conftest*
8350
8351
8352## CAVEAT EMPTOR:
8353## There is no encapsulation within the following macros, do not change
8354## the running order or otherwise move them around unless you know exactly
8355## what you are doing...
8356if test -n "$compiler"; then
8357
8358lt_prog_compiler_no_builtin_flag=
8359
8360if test "$GCC" = yes; then
8361 case $cc_basename in
8362 nvcc*)
8363 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8364 *)
8365 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8366 esac
8367
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8369$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8370if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
48310492
RH
8371 $as_echo_n "(cached) " >&6
8372else
8373 lt_cv_prog_compiler_rtti_exceptions=no
8374 ac_outfile=conftest.$ac_objext
8375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8376 lt_compiler_flag="-fno-rtti -fno-exceptions"
8377 # Insert the option either (1) after the last *FLAGS variable, or
8378 # (2) before a word containing "conftest.", or (3) at the end.
8379 # Note that $ac_compile itself does not contain backslashes and begins
8380 # with a dollar sign (not a hyphen), so the echo should work correctly.
8381 # The option is referenced via a variable to avoid confusing sed.
8382 lt_compile=`echo "$ac_compile" | $SED \
8383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8385 -e 's:$: $lt_compiler_flag:'`
8386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8387 (eval "$lt_compile" 2>conftest.err)
8388 ac_status=$?
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 if (exit $ac_status) && test -s "$ac_outfile"; then
8392 # The compiler can only warn and ignore the option if not recognized
8393 # So say no if there are warnings other than the usual output.
8394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8397 lt_cv_prog_compiler_rtti_exceptions=yes
8398 fi
8399 fi
8400 $RM conftest*
8401
8402fi
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8404$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8405
8406if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8407 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8408else
8409 :
8410fi
8411
8412fi
8413
8414
8415
8416
8417
8418
8419 lt_prog_compiler_wl=
8420lt_prog_compiler_pic=
8421lt_prog_compiler_static=
8422
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8424$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8425
8426 if test "$GCC" = yes; then
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_static='-static'
8429
8430 case $host_os in
8431 aix*)
8432 # All AIX code is PIC.
8433 if test "$host_cpu" = ia64; then
8434 # AIX 5 now supports IA64 processor
8435 lt_prog_compiler_static='-Bstatic'
8436 fi
00c2f0ef 8437 lt_prog_compiler_pic='-fPIC'
48310492
RH
8438 ;;
8439
8440 amigaos*)
8441 case $host_cpu in
8442 powerpc)
8443 # see comment about AmigaOS4 .so support
8444 lt_prog_compiler_pic='-fPIC'
8445 ;;
8446 m68k)
8447 # FIXME: we need at least 68020 code to build shared libraries, but
8448 # adding the `-m68020' flag to GCC prevents building anything better,
8449 # like `-m68040'.
8450 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8451 ;;
8452 esac
8453 ;;
8454
8455 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8456 # PIC is the default for these OSes.
8457 ;;
8458
8459 mingw* | cygwin* | pw32* | os2* | cegcc*)
8460 # This hack is so that the source file can tell whether it is being
8461 # built for inclusion in a dll (and should export symbols for example).
8462 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8463 # (--disable-auto-import) libraries
8464 lt_prog_compiler_pic='-DDLL_EXPORT'
8465 ;;
8466
8467 darwin* | rhapsody*)
8468 # PIC is the default on this platform
8469 # Common symbols not allowed in MH_DYLIB files
8470 lt_prog_compiler_pic='-fno-common'
8471 ;;
8472
8473 haiku*)
8474 # PIC is the default for Haiku.
8475 # The "-static" flag exists, but is broken.
8476 lt_prog_compiler_static=
8477 ;;
8478
8479 hpux*)
8480 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8481 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8482 # sets the default TLS model and affects inlining.
8483 case $host_cpu in
8484 hppa*64*)
8485 # +Z the default
8486 ;;
8487 *)
8488 lt_prog_compiler_pic='-fPIC'
8489 ;;
8490 esac
8491 ;;
8492
8493 interix[3-9]*)
8494 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8495 # Instead, we relocate shared libraries at runtime.
8496 ;;
8497
8498 msdosdjgpp*)
8499 # Just because we use GCC doesn't mean we suddenly get shared libraries
8500 # on systems that don't support them.
8501 lt_prog_compiler_can_build_shared=no
8502 enable_shared=no
8503 ;;
8504
8505 *nto* | *qnx*)
8506 # QNX uses GNU C++, but need to define -shared option too, otherwise
8507 # it will coredump.
8508 lt_prog_compiler_pic='-fPIC -shared'
8509 ;;
8510
8511 sysv4*MP*)
8512 if test -d /usr/nec; then
8513 lt_prog_compiler_pic=-Kconform_pic
8514 fi
8515 ;;
8516
8517 *)
8518 lt_prog_compiler_pic='-fPIC'
8519 ;;
8520 esac
8521
8522 case $cc_basename in
8523 nvcc*) # Cuda Compiler Driver 2.2
8524 lt_prog_compiler_wl='-Xlinker '
8525 lt_prog_compiler_pic='-Xcompiler -fPIC'
8526 ;;
8527 esac
8528 else
8529 # PORTME Check for flag to pass linker flags through the system compiler.
8530 case $host_os in
8531 aix*)
8532 lt_prog_compiler_wl='-Wl,'
8533 if test "$host_cpu" = ia64; then
8534 # AIX 5 now supports IA64 processor
8535 lt_prog_compiler_static='-Bstatic'
8536 else
8537 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8538 fi
8539 ;;
8540
8541 mingw* | cygwin* | pw32* | os2* | cegcc*)
8542 # This hack is so that the source file can tell whether it is being
8543 # built for inclusion in a dll (and should export symbols for example).
8544 lt_prog_compiler_pic='-DDLL_EXPORT'
8545 ;;
8546
8547 hpux9* | hpux10* | hpux11*)
8548 lt_prog_compiler_wl='-Wl,'
8549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8550 # not for PA HP-UX.
8551 case $host_cpu in
8552 hppa*64*|ia64*)
8553 # +Z the default
8554 ;;
8555 *)
8556 lt_prog_compiler_pic='+Z'
8557 ;;
8558 esac
8559 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8560 lt_prog_compiler_static='${wl}-a ${wl}archive'
8561 ;;
8562
8563 irix5* | irix6* | nonstopux*)
8564 lt_prog_compiler_wl='-Wl,'
8565 # PIC (with -KPIC) is the default.
8566 lt_prog_compiler_static='-non_shared'
8567 ;;
8568
8569 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8570 case $cc_basename in
8571 # old Intel for x86_64 which still supported -KPIC.
8572 ecc*)
8573 lt_prog_compiler_wl='-Wl,'
8574 lt_prog_compiler_pic='-KPIC'
8575 lt_prog_compiler_static='-static'
8576 ;;
8577 # icc used to be incompatible with GCC.
8578 # ICC 10 doesn't accept -KPIC any more.
8579 icc* | ifort*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-fPIC'
8582 lt_prog_compiler_static='-static'
8583 ;;
8584 # Lahey Fortran 8.1.
8585 lf95*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='--shared'
8588 lt_prog_compiler_static='--static'
8589 ;;
8590 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8591 # Portland Group compilers (*not* the Pentium gcc compiler,
8592 # which looks to be a dead project)
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-fpic'
8595 lt_prog_compiler_static='-Bstatic'
8596 ;;
8597 ccc*)
8598 lt_prog_compiler_wl='-Wl,'
8599 # All Alpha code is PIC.
8600 lt_prog_compiler_static='-non_shared'
8601 ;;
8602 xl* | bgxl* | bgf* | mpixl*)
8603 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-qpic'
8606 lt_prog_compiler_static='-qstaticlink'
8607 ;;
8608 *)
8609 case `$CC -V 2>&1 | sed 5q` in
8610 *Sun\ F* | *Sun*Fortran*)
8611 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8612 lt_prog_compiler_pic='-KPIC'
8613 lt_prog_compiler_static='-Bstatic'
8614 lt_prog_compiler_wl=''
8615 ;;
8616 *Sun\ C*)
8617 # Sun C 5.9
8618 lt_prog_compiler_pic='-KPIC'
8619 lt_prog_compiler_static='-Bstatic'
8620 lt_prog_compiler_wl='-Wl,'
8621 ;;
8622 esac
8623 ;;
8624 esac
8625 ;;
8626
8627 newsos6)
8628 lt_prog_compiler_pic='-KPIC'
8629 lt_prog_compiler_static='-Bstatic'
8630 ;;
8631
8632 *nto* | *qnx*)
8633 # QNX uses GNU C++, but need to define -shared option too, otherwise
8634 # it will coredump.
8635 lt_prog_compiler_pic='-fPIC -shared'
8636 ;;
8637
8638 osf3* | osf4* | osf5*)
8639 lt_prog_compiler_wl='-Wl,'
8640 # All OSF/1 code is PIC.
8641 lt_prog_compiler_static='-non_shared'
8642 ;;
8643
8644 rdos*)
8645 lt_prog_compiler_static='-non_shared'
8646 ;;
8647
8648 solaris*)
8649 lt_prog_compiler_pic='-KPIC'
8650 lt_prog_compiler_static='-Bstatic'
8651 case $cc_basename in
8652 f77* | f90* | f95*)
8653 lt_prog_compiler_wl='-Qoption ld ';;
8654 *)
8655 lt_prog_compiler_wl='-Wl,';;
8656 esac
8657 ;;
8658
8659 sunos4*)
8660 lt_prog_compiler_wl='-Qoption ld '
8661 lt_prog_compiler_pic='-PIC'
8662 lt_prog_compiler_static='-Bstatic'
8663 ;;
8664
8665 sysv4 | sysv4.2uw2* | sysv4.3*)
8666 lt_prog_compiler_wl='-Wl,'
8667 lt_prog_compiler_pic='-KPIC'
8668 lt_prog_compiler_static='-Bstatic'
8669 ;;
8670
8671 sysv4*MP*)
8672 if test -d /usr/nec ;then
8673 lt_prog_compiler_pic='-Kconform_pic'
8674 lt_prog_compiler_static='-Bstatic'
8675 fi
8676 ;;
8677
8678 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8679 lt_prog_compiler_wl='-Wl,'
8680 lt_prog_compiler_pic='-KPIC'
8681 lt_prog_compiler_static='-Bstatic'
8682 ;;
8683
8684 unicos*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_can_build_shared=no
8687 ;;
8688
8689 uts4*)
8690 lt_prog_compiler_pic='-pic'
8691 lt_prog_compiler_static='-Bstatic'
8692 ;;
8693
8694 *)
8695 lt_prog_compiler_can_build_shared=no
8696 ;;
8697 esac
8698 fi
8699
8700case $host_os in
8701 # For platforms which do not support PIC, -DPIC is meaningless:
8702 *djgpp*)
8703 lt_prog_compiler_pic=
8704 ;;
8705 *)
8706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8707 ;;
8708esac
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8710$as_echo "$lt_prog_compiler_pic" >&6; }
8711
8712
8713
8714
8715
8716
8717#
8718# Check to make sure the PIC flag actually works.
8719#
8720if test -n "$lt_prog_compiler_pic"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8722$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8723if ${lt_cv_prog_compiler_pic_works+:} false; then :
48310492
RH
8724 $as_echo_n "(cached) " >&6
8725else
8726 lt_cv_prog_compiler_pic_works=no
8727 ac_outfile=conftest.$ac_objext
8728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8729 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8730 # Insert the option either (1) after the last *FLAGS variable, or
8731 # (2) before a word containing "conftest.", or (3) at the end.
8732 # Note that $ac_compile itself does not contain backslashes and begins
8733 # with a dollar sign (not a hyphen), so the echo should work correctly.
8734 # The option is referenced via a variable to avoid confusing sed.
8735 lt_compile=`echo "$ac_compile" | $SED \
8736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8738 -e 's:$: $lt_compiler_flag:'`
8739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8740 (eval "$lt_compile" 2>conftest.err)
8741 ac_status=$?
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 if (exit $ac_status) && test -s "$ac_outfile"; then
8745 # The compiler can only warn and ignore the option if not recognized
8746 # So say no if there are warnings other than the usual output.
8747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8749 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8750 lt_cv_prog_compiler_pic_works=yes
8751 fi
8752 fi
8753 $RM conftest*
8754
8755fi
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8757$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8758
8759if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8760 case $lt_prog_compiler_pic in
8761 "" | " "*) ;;
8762 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8763 esac
8764else
8765 lt_prog_compiler_pic=
8766 lt_prog_compiler_can_build_shared=no
8767fi
8768
8769fi
8770
8771
8772
8773
8774
8775
8776#
8777# Check to make sure the static flag actually works.
8778#
8779wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8781$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8782if ${lt_cv_prog_compiler_static_works+:} false; then :
48310492
RH
8783 $as_echo_n "(cached) " >&6
8784else
8785 lt_cv_prog_compiler_static_works=no
8786 save_LDFLAGS="$LDFLAGS"
8787 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8788 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8790 # The linker can only warn and ignore the option if not recognized
8791 # So say no if there are warnings
8792 if test -s conftest.err; then
8793 # Append any errors to the config.log.
8794 cat conftest.err 1>&5
8795 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8797 if diff conftest.exp conftest.er2 >/dev/null; then
8798 lt_cv_prog_compiler_static_works=yes
8799 fi
8800 else
8801 lt_cv_prog_compiler_static_works=yes
8802 fi
8803 fi
8804 $RM -r conftest*
8805 LDFLAGS="$save_LDFLAGS"
8806
8807fi
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8809$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8810
8811if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8812 :
8813else
8814 lt_prog_compiler_static=
8815fi
8816
8817
8818
8819
8820
8821
8822
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8824$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8825if ${lt_cv_prog_compiler_c_o+:} false; then :
48310492
RH
8826 $as_echo_n "(cached) " >&6
8827else
8828 lt_cv_prog_compiler_c_o=no
8829 $RM -r conftest 2>/dev/null
8830 mkdir conftest
8831 cd conftest
8832 mkdir out
8833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834
8835 lt_compiler_flag="-o out/conftest2.$ac_objext"
8836 # Insert the option either (1) after the last *FLAGS variable, or
8837 # (2) before a word containing "conftest.", or (3) at the end.
8838 # Note that $ac_compile itself does not contain backslashes and begins
8839 # with a dollar sign (not a hyphen), so the echo should work correctly.
8840 lt_compile=`echo "$ac_compile" | $SED \
8841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8843 -e 's:$: $lt_compiler_flag:'`
8844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8845 (eval "$lt_compile" 2>out/conftest.err)
8846 ac_status=$?
8847 cat out/conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8850 then
8851 # The compiler can only warn and ignore the option if not recognized
8852 # So say no if there are warnings
8853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8856 lt_cv_prog_compiler_c_o=yes
8857 fi
8858 fi
8859 chmod u+w . 2>&5
8860 $RM conftest*
8861 # SGI C++ compiler will create directory out/ii_files/ for
8862 # template instantiation
8863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8864 $RM out/* && rmdir out
8865 cd ..
8866 $RM -r conftest
8867 $RM conftest*
8868
8869fi
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8871$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8872
8873
8874
8875
8876
8877
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8879$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8880if ${lt_cv_prog_compiler_c_o+:} false; then :
48310492
RH
8881 $as_echo_n "(cached) " >&6
8882else
8883 lt_cv_prog_compiler_c_o=no
8884 $RM -r conftest 2>/dev/null
8885 mkdir conftest
8886 cd conftest
8887 mkdir out
8888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8889
8890 lt_compiler_flag="-o out/conftest2.$ac_objext"
8891 # Insert the option either (1) after the last *FLAGS variable, or
8892 # (2) before a word containing "conftest.", or (3) at the end.
8893 # Note that $ac_compile itself does not contain backslashes and begins
8894 # with a dollar sign (not a hyphen), so the echo should work correctly.
8895 lt_compile=`echo "$ac_compile" | $SED \
8896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8898 -e 's:$: $lt_compiler_flag:'`
8899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8900 (eval "$lt_compile" 2>out/conftest.err)
8901 ac_status=$?
8902 cat out/conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8905 then
8906 # The compiler can only warn and ignore the option if not recognized
8907 # So say no if there are warnings
8908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8911 lt_cv_prog_compiler_c_o=yes
8912 fi
8913 fi
8914 chmod u+w . 2>&5
8915 $RM conftest*
8916 # SGI C++ compiler will create directory out/ii_files/ for
8917 # template instantiation
8918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8919 $RM out/* && rmdir out
8920 cd ..
8921 $RM -r conftest
8922 $RM conftest*
8923
8924fi
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8926$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8927
8928
8929
8930
8931hard_links="nottested"
8932if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8933 # do not overwrite the value of need_locks provided by the user
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8935$as_echo_n "checking if we can lock with hard links... " >&6; }
8936 hard_links=yes
8937 $RM conftest*
8938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8939 touch conftest.a
8940 ln conftest.a conftest.b 2>&5 || hard_links=no
8941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8943$as_echo "$hard_links" >&6; }
8944 if test "$hard_links" = no; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8946$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8947 need_locks=warn
8948 fi
8949else
8950 need_locks=no
8951fi
8952
8953
8954
8955
8956
8957
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8959$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8960
8961 runpath_var=
8962 allow_undefined_flag=
8963 always_export_symbols=no
8964 archive_cmds=
8965 archive_expsym_cmds=
8966 compiler_needs_object=no
8967 enable_shared_with_static_runtimes=no
8968 export_dynamic_flag_spec=
8969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8970 hardcode_automatic=no
8971 hardcode_direct=no
8972 hardcode_direct_absolute=no
8973 hardcode_libdir_flag_spec=
8974 hardcode_libdir_flag_spec_ld=
8975 hardcode_libdir_separator=
8976 hardcode_minus_L=no
8977 hardcode_shlibpath_var=unsupported
8978 inherit_rpath=no
8979 link_all_deplibs=unknown
8980 module_cmds=
8981 module_expsym_cmds=
8982 old_archive_from_new_cmds=
8983 old_archive_from_expsyms_cmds=
8984 thread_safe_flag_spec=
8985 whole_archive_flag_spec=
8986 # include_expsyms should be a list of space-separated symbols to be *always*
8987 # included in the symbol list
8988 include_expsyms=
8989 # exclude_expsyms can be an extended regexp of symbols to exclude
8990 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8991 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8992 # as well as any symbol that contains `d'.
8993 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8994 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8995 # platforms (ab)use it in PIC code, but their linkers get confused if
8996 # the symbol is explicitly referenced. Since portable code cannot
8997 # rely on this symbol name, it's probably fine to never include it in
8998 # preloaded symbol tables.
8999 # Exclude shared library initialization/finalization symbols.
9000 extract_expsyms_cmds=
9001
9002 case $host_os in
9003 cygwin* | mingw* | pw32* | cegcc*)
9004 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9005 # When not using gcc, we currently assume that we are using
9006 # Microsoft Visual C++.
9007 if test "$GCC" != yes; then
9008 with_gnu_ld=no
9009 fi
9010 ;;
9011 interix*)
9012 # we just hope/assume this is gcc and not c89 (= MSVC++)
9013 with_gnu_ld=yes
9014 ;;
9015 openbsd*)
9016 with_gnu_ld=no
9017 ;;
9018 esac
9019
9020 ld_shlibs=yes
9021
9022 # On some targets, GNU ld is compatible enough with the native linker
9023 # that we're better off using the native interface for both.
9024 lt_use_gnu_ld_interface=no
9025 if test "$with_gnu_ld" = yes; then
9026 case $host_os in
9027 aix*)
9028 # The AIX port of GNU ld has always aspired to compatibility
9029 # with the native linker. However, as the warning in the GNU ld
9030 # block says, versions before 2.19.5* couldn't really create working
9031 # shared libraries, regardless of the interface used.
9032 case `$LD -v 2>&1` in
9033 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9034 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9035 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9036 *)
9037 lt_use_gnu_ld_interface=yes
9038 ;;
9039 esac
9040 ;;
9041 *)
9042 lt_use_gnu_ld_interface=yes
9043 ;;
9044 esac
9045 fi
9046
9047 if test "$lt_use_gnu_ld_interface" = yes; then
9048 # If archive_cmds runs LD, not CC, wlarc should be empty
9049 wlarc='${wl}'
9050
9051 # Set some defaults for GNU ld with shared library support. These
9052 # are reset later if shared libraries are not supported. Putting them
9053 # here allows them to be overridden if necessary.
9054 runpath_var=LD_RUN_PATH
9055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056 export_dynamic_flag_spec='${wl}--export-dynamic'
9057 # ancient GNU ld didn't support --whole-archive et. al.
9058 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9059 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9060 else
9061 whole_archive_flag_spec=
9062 fi
9063 supports_anon_versioning=no
9064 case `$LD -v 2>&1` in
9065 *GNU\ gold*) supports_anon_versioning=yes ;;
9066 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9068 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9069 *\ 2.11.*) ;; # other 2.11 versions
9070 *) supports_anon_versioning=yes ;;
9071 esac
9072
9073 # See if GNU ld supports shared libraries.
9074 case $host_os in
9075 aix[3-9]*)
9076 # On AIX/PPC, the GNU linker is very broken
9077 if test "$host_cpu" != ia64; then
9078 ld_shlibs=no
9079 cat <<_LT_EOF 1>&2
9080
9081*** Warning: the GNU linker, at least up to release 2.19, is reported
9082*** to be unable to reliably create shared libraries on AIX.
9083*** Therefore, libtool is disabling shared libraries support. If you
9084*** really care for shared libraries, you may want to install binutils
9085*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9086*** You will then need to restart the configuration process.
9087
9088_LT_EOF
9089 fi
9090 ;;
9091
9092 amigaos*)
9093 case $host_cpu in
9094 powerpc)
9095 # see comment about AmigaOS4 .so support
9096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9097 archive_expsym_cmds=''
9098 ;;
9099 m68k)
9100 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)'
9101 hardcode_libdir_flag_spec='-L$libdir'
9102 hardcode_minus_L=yes
9103 ;;
9104 esac
9105 ;;
9106
9107 beos*)
9108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9109 allow_undefined_flag=unsupported
9110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9111 # support --undefined. This deserves some investigation. FIXME
9112 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9113 else
9114 ld_shlibs=no
9115 fi
9116 ;;
9117
9118 cygwin* | mingw* | pw32* | cegcc*)
9119 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9120 # as there is no search path for DLLs.
9121 hardcode_libdir_flag_spec='-L$libdir'
9122 export_dynamic_flag_spec='${wl}--export-all-symbols'
9123 allow_undefined_flag=unsupported
9124 always_export_symbols=no
9125 enable_shared_with_static_runtimes=yes
9126 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9127
9128 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9130 # If the export-symbols file already is a .def file (1st line
9131 # is EXPORTS), use it as is; otherwise, prepend...
9132 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9133 cp $export_symbols $output_objdir/$soname.def;
9134 else
9135 echo EXPORTS > $output_objdir/$soname.def;
9136 cat $export_symbols >> $output_objdir/$soname.def;
9137 fi~
9138 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9139 else
9140 ld_shlibs=no
9141 fi
9142 ;;
9143
9144 haiku*)
9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146 link_all_deplibs=yes
9147 ;;
9148
9149 interix[3-9]*)
9150 hardcode_direct=no
9151 hardcode_shlibpath_var=no
9152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9153 export_dynamic_flag_spec='${wl}-E'
9154 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9155 # Instead, shared libraries are loaded at an image base (0x10000000 by
9156 # default) and relocated if they conflict, which is a slow very memory
9157 # consuming and fragmenting process. To avoid this, we pick a random,
9158 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9159 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9160 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9161 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'
9162 ;;
9163
b1e21e5a 9164 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
48310492
RH
9165 tmp_diet=no
9166 if test "$host_os" = linux-dietlibc; then
9167 case $cc_basename in
9168 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9169 esac
9170 fi
9171 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9172 && test "$tmp_diet" = no
9173 then
a699d672 9174 tmp_addflag=' $pic_flag'
48310492
RH
9175 tmp_sharedflag='-shared'
9176 case $cc_basename,$host_cpu in
9177 pgcc*) # Portland Group C compiler
9178 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'
9179 tmp_addflag=' $pic_flag'
9180 ;;
9181 pgf77* | pgf90* | pgf95* | pgfortran*)
9182 # Portland Group f77 and f90 compilers
9183 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'
9184 tmp_addflag=' $pic_flag -Mnomain' ;;
9185 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9186 tmp_addflag=' -i_dynamic' ;;
9187 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9188 tmp_addflag=' -i_dynamic -nofor_main' ;;
9189 ifc* | ifort*) # Intel Fortran compiler
9190 tmp_addflag=' -nofor_main' ;;
9191 lf95*) # Lahey Fortran 8.1
9192 whole_archive_flag_spec=
9193 tmp_sharedflag='--shared' ;;
9194 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9195 tmp_sharedflag='-qmkshrobj'
9196 tmp_addflag= ;;
9197 nvcc*) # Cuda Compiler Driver 2.2
9198 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'
9199 compiler_needs_object=yes
9200 ;;
9201 esac
9202 case `$CC -V 2>&1 | sed 5q` in
9203 *Sun\ C*) # Sun C 5.9
9204 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'
9205 compiler_needs_object=yes
9206 tmp_sharedflag='-G' ;;
9207 *Sun\ F*) # Sun Fortran 8.3
9208 tmp_sharedflag='-G' ;;
9209 esac
9210 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211
9212 if test "x$supports_anon_versioning" = xyes; then
9213 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9215 echo "local: *; };" >> $output_objdir/$libname.ver~
9216 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9217 fi
9218
9219 case $cc_basename in
9220 xlf* | bgf* | bgxlf* | mpixlf*)
9221 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9222 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9223 hardcode_libdir_flag_spec=
9224 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9225 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9226 if test "x$supports_anon_versioning" = xyes; then
9227 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9229 echo "local: *; };" >> $output_objdir/$libname.ver~
9230 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9231 fi
9232 ;;
9233 esac
9234 else
9235 ld_shlibs=no
9236 fi
9237 ;;
9238
9239 netbsd*)
9240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9241 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9242 wlarc=
9243 else
9244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9246 fi
9247 ;;
9248
9249 solaris*)
9250 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9251 ld_shlibs=no
9252 cat <<_LT_EOF 1>&2
9253
9254*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9255*** create shared libraries on Solaris systems. Therefore, libtool
9256*** is disabling shared libraries support. We urge you to upgrade GNU
9257*** binutils to release 2.9.1 or newer. Another option is to modify
9258*** your PATH or compiler configuration so that the native linker is
9259*** used, and then restart.
9260
9261_LT_EOF
9262 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9265 else
9266 ld_shlibs=no
9267 fi
9268 ;;
9269
9270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9271 case `$LD -v 2>&1` in
9272 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9273 ld_shlibs=no
9274 cat <<_LT_EOF 1>&2
9275
9276*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9277*** reliably create shared libraries on SCO systems. Therefore, libtool
9278*** is disabling shared libraries support. We urge you to upgrade GNU
9279*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9280*** your PATH or compiler configuration so that the native linker is
9281*** used, and then restart.
9282
9283_LT_EOF
9284 ;;
9285 *)
9286 # For security reasons, it is highly recommended that you always
9287 # use absolute paths for naming shared libraries, and exclude the
9288 # DT_RUNPATH tag from executables and libraries. But doing so
9289 # requires that you compile everything twice, which is a pain.
9290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9294 else
9295 ld_shlibs=no
9296 fi
9297 ;;
9298 esac
9299 ;;
9300
9301 sunos4*)
9302 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9303 wlarc=
9304 hardcode_direct=yes
9305 hardcode_shlibpath_var=no
9306 ;;
9307
9308 *)
9309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9312 else
9313 ld_shlibs=no
9314 fi
9315 ;;
9316 esac
9317
9318 if test "$ld_shlibs" = no; then
9319 runpath_var=
9320 hardcode_libdir_flag_spec=
9321 export_dynamic_flag_spec=
9322 whole_archive_flag_spec=
9323 fi
9324 else
9325 # PORTME fill in a description of your system's linker (not GNU ld)
9326 case $host_os in
9327 aix3*)
9328 allow_undefined_flag=unsupported
9329 always_export_symbols=yes
9330 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'
9331 # Note: this linker hardcodes the directories in LIBPATH if there
9332 # are no directories specified by -L.
9333 hardcode_minus_L=yes
9334 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9335 # Neither direct hardcoding nor static linking is supported with a
9336 # broken collect2.
9337 hardcode_direct=unsupported
9338 fi
9339 ;;
9340
9341 aix[4-9]*)
9342 if test "$host_cpu" = ia64; then
9343 # On IA64, the linker does run time linking by default, so we don't
9344 # have to do anything special.
9345 aix_use_runtimelinking=no
9346 exp_sym_flag='-Bexport'
9347 no_entry_flag=""
9348 else
9349 # If we're using GNU nm, then we don't want the "-C" option.
9350 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9351 # Also, AIX nm treats weak defined symbols like other global
9352 # defined symbols, whereas GNU nm marks them as "W".
9353 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9354 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'
9355 else
84c1b9d3 9356 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
9357 fi
9358 aix_use_runtimelinking=no
9359
9360 # Test if we are trying to use run time linking or normal
9361 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9362 # need to do runtime linking.
9363 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9364 for ld_flag in $LDFLAGS; do
9365 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9366 aix_use_runtimelinking=yes
9367 break
9368 fi
9369 done
9370 ;;
9371 esac
9372
9373 exp_sym_flag='-bexport'
9374 no_entry_flag='-bnoentry'
9375 fi
9376
9377 # When large executables or shared objects are built, AIX ld can
9378 # have problems creating the table of contents. If linking a library
9379 # or program results in "error TOC overflow" add -mminimal-toc to
9380 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9381 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9382
9383 archive_cmds=''
9384 hardcode_direct=yes
9385 hardcode_direct_absolute=yes
9386 hardcode_libdir_separator=':'
9387 link_all_deplibs=yes
9388 file_list_spec='${wl}-f,'
9389
9390 if test "$GCC" = yes; then
9391 case $host_os in aix4.[012]|aix4.[012].*)
9392 # We only want to do this on AIX 4.2 and lower, the check
9393 # below for broken collect2 doesn't work under 4.3+
9394 collect2name=`${CC} -print-prog-name=collect2`
9395 if test -f "$collect2name" &&
9396 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9397 then
9398 # We have reworked collect2
9399 :
9400 else
9401 # We have old collect2
9402 hardcode_direct=unsupported
9403 # It fails to find uninstalled libraries when the uninstalled
9404 # path is not listed in the libpath. Setting hardcode_minus_L
9405 # to unsupported forces relinking
9406 hardcode_minus_L=yes
9407 hardcode_libdir_flag_spec='-L$libdir'
9408 hardcode_libdir_separator=
9409 fi
9410 ;;
9411 esac
9412 shared_flag='-shared'
9413 if test "$aix_use_runtimelinking" = yes; then
9414 shared_flag="$shared_flag "'${wl}-G'
9415 fi
9416 else
9417 # not using gcc
9418 if test "$host_cpu" = ia64; then
9419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9420 # chokes on -Wl,-G. The following line is correct:
9421 shared_flag='-G'
9422 else
9423 if test "$aix_use_runtimelinking" = yes; then
9424 shared_flag='${wl}-G'
9425 else
9426 shared_flag='${wl}-bM:SRE'
9427 fi
9428 fi
9429 fi
9430
9431 export_dynamic_flag_spec='${wl}-bexpall'
9432 # It seems that -bexpall does not export symbols beginning with
9433 # underscore (_), so it is better to generate a list of symbols to export.
9434 always_export_symbols=yes
9435 if test "$aix_use_runtimelinking" = yes; then
9436 # Warning - without using the other runtime loading flags (-brtl),
9437 # -berok will link without error, but may produce a broken library.
9438 allow_undefined_flag='-berok'
9439 # Determine the default libpath from the value encoded in an
9440 # empty executable.
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442/* end confdefs.h. */
9443
9444int
9445main ()
9446{
9447
9448 ;
9449 return 0;
9450}
9451_ACEOF
9452if ac_fn_c_try_link "$LINENO"; then :
9453
9454lt_aix_libpath_sed='
9455 /Import File Strings/,/^$/ {
9456 /^0/ {
9457 s/^0 *\(.*\)$/\1/
9458 p
9459 }
9460 }'
9461aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9462# Check for a 64-bit object if we didn't find anything.
9463if test -z "$aix_libpath"; then
9464 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9465fi
9466fi
9467rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9470
9471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9472 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"
9473 else
9474 if test "$host_cpu" = ia64; then
9475 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9476 allow_undefined_flag="-z nodefs"
9477 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"
9478 else
9479 # Determine the default libpath from the value encoded in an
9480 # empty executable.
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482/* end confdefs.h. */
9483
9484int
9485main ()
9486{
9487
9488 ;
9489 return 0;
9490}
9491_ACEOF
9492if ac_fn_c_try_link "$LINENO"; then :
9493
9494lt_aix_libpath_sed='
9495 /Import File Strings/,/^$/ {
9496 /^0/ {
9497 s/^0 *\(.*\)$/\1/
9498 p
9499 }
9500 }'
9501aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9502# Check for a 64-bit object if we didn't find anything.
9503if test -z "$aix_libpath"; then
9504 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9505fi
9506fi
9507rm -f core conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9509if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9510
9511 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9512 # Warning - without using the other run time loading flags,
9513 # -berok will link without error, but may produce a broken library.
9514 no_undefined_flag=' ${wl}-bernotok'
9515 allow_undefined_flag=' ${wl}-berok'
9516 if test "$with_gnu_ld" = yes; then
9517 # We only use this code for GNU lds that support --whole-archive.
9518 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9519 else
9520 # Exported symbols can be pulled into shared objects from archives
9521 whole_archive_flag_spec='$convenience'
9522 fi
9523 archive_cmds_need_lc=yes
9524 # This is similar to how AIX traditionally builds its shared libraries.
9525 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'
9526 fi
9527 fi
9528 ;;
9529
9530 amigaos*)
9531 case $host_cpu in
9532 powerpc)
9533 # see comment about AmigaOS4 .so support
9534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535 archive_expsym_cmds=''
9536 ;;
9537 m68k)
9538 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)'
9539 hardcode_libdir_flag_spec='-L$libdir'
9540 hardcode_minus_L=yes
9541 ;;
9542 esac
9543 ;;
9544
9545 bsdi[45]*)
9546 export_dynamic_flag_spec=-rdynamic
9547 ;;
9548
9549 cygwin* | mingw* | pw32* | cegcc*)
9550 # When not using gcc, we currently assume that we are using
9551 # Microsoft Visual C++.
9552 # hardcode_libdir_flag_spec is actually meaningless, as there is
9553 # no search path for DLLs.
9554 hardcode_libdir_flag_spec=' '
9555 allow_undefined_flag=unsupported
9556 # Tell ltmain to make .lib files, not .a files.
9557 libext=lib
9558 # Tell ltmain to make .dll files, not .so files.
9559 shrext_cmds=".dll"
9560 # FIXME: Setting linknames here is a bad hack.
9561 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9562 # The linker will automatically build a .lib file if we build a DLL.
9563 old_archive_from_new_cmds='true'
9564 # FIXME: Should let the user specify the lib program.
9565 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9566 fix_srcfile_path='`cygpath -w "$srcfile"`'
9567 enable_shared_with_static_runtimes=yes
9568 ;;
9569
9570 darwin* | rhapsody*)
9571
9572
9573 archive_cmds_need_lc=no
9574 hardcode_direct=no
9575 hardcode_automatic=yes
9576 hardcode_shlibpath_var=unsupported
9577 if test "$lt_cv_ld_force_load" = "yes"; then
9578 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\"`'
9579 else
9580 whole_archive_flag_spec=''
9581 fi
9582 link_all_deplibs=yes
9583 allow_undefined_flag="$_lt_dar_allow_undefined"
9584 case $cc_basename in
9585 ifort*) _lt_dar_can_shared=yes ;;
9586 *) _lt_dar_can_shared=$GCC ;;
9587 esac
9588 if test "$_lt_dar_can_shared" = "yes"; then
9589 output_verbose_link_cmd=func_echo_all
9590 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9591 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9592 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9593 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}"
9594
9595 else
9596 ld_shlibs=no
9597 fi
9598
9599 ;;
9600
9601 dgux*)
9602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9603 hardcode_libdir_flag_spec='-L$libdir'
9604 hardcode_shlibpath_var=no
9605 ;;
9606
9607 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9608 # support. Future versions do this automatically, but an explicit c++rt0.o
9609 # does not break anything, and helps significantly (at the cost of a little
9610 # extra space).
9611 freebsd2.2*)
9612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9613 hardcode_libdir_flag_spec='-R$libdir'
9614 hardcode_direct=yes
9615 hardcode_shlibpath_var=no
9616 ;;
9617
9618 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9619 freebsd2.*)
9620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_direct=yes
9622 hardcode_minus_L=yes
9623 hardcode_shlibpath_var=no
9624 ;;
9625
9626 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9627 freebsd* | dragonfly*)
9628 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9629 hardcode_libdir_flag_spec='-R$libdir'
9630 hardcode_direct=yes
9631 hardcode_shlibpath_var=no
9632 ;;
9633
9634 hpux9*)
9635 if test "$GCC" = yes; then
9636 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'
9637 else
9638 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'
9639 fi
9640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9641 hardcode_libdir_separator=:
9642 hardcode_direct=yes
9643
9644 # hardcode_minus_L: Not really in the search PATH,
9645 # but as the default location of the library.
9646 hardcode_minus_L=yes
9647 export_dynamic_flag_spec='${wl}-E'
9648 ;;
9649
9650 hpux10*)
9651 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9652 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9653 else
9654 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9655 fi
9656 if test "$with_gnu_ld" = no; then
9657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9658 hardcode_libdir_flag_spec_ld='+b $libdir'
9659 hardcode_libdir_separator=:
9660 hardcode_direct=yes
9661 hardcode_direct_absolute=yes
9662 export_dynamic_flag_spec='${wl}-E'
9663 # hardcode_minus_L: Not really in the search PATH,
9664 # but as the default location of the library.
9665 hardcode_minus_L=yes
9666 fi
9667 ;;
9668
9669 hpux11*)
9670 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9671 case $host_cpu in
9672 hppa*64*)
4e4ba647 9673 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48310492
RH
9674 ;;
9675 ia64*)
9676 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9677 ;;
9678 *)
9679 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9680 ;;
9681 esac
9682 else
9683 case $host_cpu in
9684 hppa*64*)
4e4ba647 9685 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48310492
RH
9686 ;;
9687 ia64*)
9688 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9689 ;;
9690 *)
9691
9692 # Older versions of the 11.00 compiler do not understand -b yet
9693 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9695$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9696if ${lt_cv_prog_compiler__b+:} false; then :
48310492
RH
9697 $as_echo_n "(cached) " >&6
9698else
9699 lt_cv_prog_compiler__b=no
9700 save_LDFLAGS="$LDFLAGS"
9701 LDFLAGS="$LDFLAGS -b"
9702 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9703 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9704 # The linker can only warn and ignore the option if not recognized
9705 # So say no if there are warnings
9706 if test -s conftest.err; then
9707 # Append any errors to the config.log.
9708 cat conftest.err 1>&5
9709 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9711 if diff conftest.exp conftest.er2 >/dev/null; then
9712 lt_cv_prog_compiler__b=yes
9713 fi
9714 else
9715 lt_cv_prog_compiler__b=yes
9716 fi
9717 fi
9718 $RM -r conftest*
9719 LDFLAGS="$save_LDFLAGS"
9720
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9723$as_echo "$lt_cv_prog_compiler__b" >&6; }
9724
9725if test x"$lt_cv_prog_compiler__b" = xyes; then
9726 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9727else
9728 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9729fi
9730
9731 ;;
9732 esac
9733 fi
9734 if test "$with_gnu_ld" = no; then
9735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9736 hardcode_libdir_separator=:
9737
9738 case $host_cpu in
9739 hppa*64*|ia64*)
9740 hardcode_direct=no
9741 hardcode_shlibpath_var=no
9742 ;;
9743 *)
9744 hardcode_direct=yes
9745 hardcode_direct_absolute=yes
9746 export_dynamic_flag_spec='${wl}-E'
9747
9748 # hardcode_minus_L: Not really in the search PATH,
9749 # but as the default location of the library.
9750 hardcode_minus_L=yes
9751 ;;
9752 esac
9753 fi
9754 ;;
9755
9756 irix5* | irix6* | nonstopux*)
9757 if test "$GCC" = yes; then
9758 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'
9759 # Try to use the -exported_symbol ld option, if it does not
9760 # work, assume that -exports_file does not work either and
9761 # implicitly export all symbols.
9762 save_LDFLAGS="$LDFLAGS"
9763 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765/* end confdefs.h. */
9766int foo(void) {}
9767_ACEOF
9768if ac_fn_c_try_link "$LINENO"; then :
9769 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'
9770
9771fi
9772rm -f core conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9774 LDFLAGS="$save_LDFLAGS"
9775 else
9776 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'
9777 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'
9778 fi
9779 archive_cmds_need_lc='no'
9780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9781 hardcode_libdir_separator=:
9782 inherit_rpath=yes
9783 link_all_deplibs=yes
9784 ;;
9785
9786 netbsd*)
9787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9789 else
9790 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9791 fi
9792 hardcode_libdir_flag_spec='-R$libdir'
9793 hardcode_direct=yes
9794 hardcode_shlibpath_var=no
9795 ;;
9796
9797 newsos6)
9798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_direct=yes
9800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9801 hardcode_libdir_separator=:
9802 hardcode_shlibpath_var=no
9803 ;;
9804
9805 *nto* | *qnx*)
9806 ;;
9807
9808 openbsd*)
9809 if test -f /usr/libexec/ld.so; then
9810 hardcode_direct=yes
9811 hardcode_shlibpath_var=no
9812 hardcode_direct_absolute=yes
9813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9817 export_dynamic_flag_spec='${wl}-E'
9818 else
9819 case $host_os in
9820 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_libdir_flag_spec='-R$libdir'
9823 ;;
9824 *)
9825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9826 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9827 ;;
9828 esac
9829 fi
9830 else
9831 ld_shlibs=no
9832 fi
9833 ;;
9834
9835 os2*)
9836 hardcode_libdir_flag_spec='-L$libdir'
9837 hardcode_minus_L=yes
9838 allow_undefined_flag=unsupported
9839 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'
9840 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9841 ;;
9842
9843 osf3*)
9844 if test "$GCC" = yes; then
9845 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9846 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'
9847 else
9848 allow_undefined_flag=' -expect_unresolved \*'
9849 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'
9850 fi
9851 archive_cmds_need_lc='no'
9852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9853 hardcode_libdir_separator=:
9854 ;;
9855
9856 osf4* | osf5*) # as osf3* with the addition of -msym flag
9857 if test "$GCC" = yes; then
9858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9859 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'
9860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9861 else
9862 allow_undefined_flag=' -expect_unresolved \*'
9863 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'
9864 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~
9865 $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'
9866
9867 # Both c and cxx compiler support -rpath directly
9868 hardcode_libdir_flag_spec='-rpath $libdir'
9869 fi
9870 archive_cmds_need_lc='no'
9871 hardcode_libdir_separator=:
9872 ;;
9873
9874 solaris*)
9875 no_undefined_flag=' -z defs'
9876 if test "$GCC" = yes; then
9877 wlarc='${wl}'
9878 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9880 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9881 else
9882 case `$CC -V 2>&1` in
9883 *"Compilers 5.0"*)
9884 wlarc=''
9885 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9887 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9888 ;;
9889 *)
9890 wlarc='${wl}'
9891 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9893 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9894 ;;
9895 esac
9896 fi
9897 hardcode_libdir_flag_spec='-R$libdir'
9898 hardcode_shlibpath_var=no
9899 case $host_os in
9900 solaris2.[0-5] | solaris2.[0-5].*) ;;
9901 *)
9902 # The compiler driver will combine and reorder linker options,
9903 # but understands `-z linker_flag'. GCC discards it without `$wl',
9904 # but is careful enough not to reorder.
9905 # Supported since Solaris 2.6 (maybe 2.5.1?)
9906 if test "$GCC" = yes; then
9907 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9908 else
9909 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9910 fi
9911 ;;
9912 esac
9913 link_all_deplibs=yes
9914 ;;
9915
9916 sunos4*)
9917 if test "x$host_vendor" = xsequent; then
9918 # Use $CC to link under sequent, because it throws in some extra .o
9919 # files that make .init and .fini sections work.
9920 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9921 else
9922 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9923 fi
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_direct=yes
9926 hardcode_minus_L=yes
9927 hardcode_shlibpath_var=no
9928 ;;
9929
9930 sysv4)
9931 case $host_vendor in
9932 sni)
9933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_direct=yes # is this really true???
9935 ;;
9936 siemens)
9937 ## LD is ld it makes a PLAMLIB
9938 ## CC just makes a GrossModule.
9939 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9940 reload_cmds='$CC -r -o $output$reload_objs'
9941 hardcode_direct=no
9942 ;;
9943 motorola)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9946 ;;
9947 esac
9948 runpath_var='LD_RUN_PATH'
9949 hardcode_shlibpath_var=no
9950 ;;
9951
9952 sysv4.3*)
9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_shlibpath_var=no
9955 export_dynamic_flag_spec='-Bexport'
9956 ;;
9957
9958 sysv4*MP*)
9959 if test -d /usr/nec; then
9960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961 hardcode_shlibpath_var=no
9962 runpath_var=LD_RUN_PATH
9963 hardcode_runpath_var=yes
9964 ld_shlibs=yes
9965 fi
9966 ;;
9967
9968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9969 no_undefined_flag='${wl}-z,text'
9970 archive_cmds_need_lc=no
9971 hardcode_shlibpath_var=no
9972 runpath_var='LD_RUN_PATH'
9973
9974 if test "$GCC" = yes; then
9975 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9976 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9977 else
9978 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9979 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9980 fi
9981 ;;
9982
9983 sysv5* | sco3.2v5* | sco5v6*)
9984 # Note: We can NOT use -z defs as we might desire, because we do not
9985 # link with -lc, and that would cause any symbols used from libc to
9986 # always be unresolved, which means just about no library would
9987 # ever link correctly. If we're not using GNU ld we use -z text
9988 # though, which does catch some bad symbols but isn't as heavy-handed
9989 # as -z defs.
9990 no_undefined_flag='${wl}-z,text'
9991 allow_undefined_flag='${wl}-z,nodefs'
9992 archive_cmds_need_lc=no
9993 hardcode_shlibpath_var=no
9994 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9995 hardcode_libdir_separator=':'
9996 link_all_deplibs=yes
9997 export_dynamic_flag_spec='${wl}-Bexport'
9998 runpath_var='LD_RUN_PATH'
9999
10000 if test "$GCC" = yes; then
10001 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10002 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10003 else
10004 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10005 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10006 fi
10007 ;;
10008
10009 uts4*)
10010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011 hardcode_libdir_flag_spec='-L$libdir'
10012 hardcode_shlibpath_var=no
10013 ;;
10014
10015 *)
10016 ld_shlibs=no
10017 ;;
10018 esac
10019
10020 if test x$host_vendor = xsni; then
10021 case $host in
10022 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10023 export_dynamic_flag_spec='${wl}-Blargedynsym'
10024 ;;
10025 esac
10026 fi
10027 fi
10028
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10030$as_echo "$ld_shlibs" >&6; }
10031test "$ld_shlibs" = no && can_build_shared=no
10032
10033with_gnu_ld=$with_gnu_ld
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049#
10050# Do we need to explicitly link libc?
10051#
10052case "x$archive_cmds_need_lc" in
10053x|xyes)
10054 # Assume -lc should be added
10055 archive_cmds_need_lc=yes
10056
10057 if test "$enable_shared" = yes && test "$GCC" = yes; then
10058 case $archive_cmds in
10059 *'~'*)
10060 # FIXME: we may have to deal with multi-command sequences.
10061 ;;
10062 '$CC '*)
10063 # Test whether the compiler implicitly links with -lc since on some
10064 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10065 # to ld, don't add -lc before -lgcc.
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10067$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10068if ${lt_cv_archive_cmds_need_lc+:} false; then :
48310492
RH
10069 $as_echo_n "(cached) " >&6
10070else
10071 $RM conftest*
10072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10073
10074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10075 (eval $ac_compile) 2>&5
10076 ac_status=$?
10077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10078 test $ac_status = 0; } 2>conftest.err; then
10079 soname=conftest
10080 lib=conftest
10081 libobjs=conftest.$ac_objext
10082 deplibs=
10083 wl=$lt_prog_compiler_wl
10084 pic_flag=$lt_prog_compiler_pic
10085 compiler_flags=-v
10086 linker_flags=-v
10087 verstring=
10088 output_objdir=.
10089 libname=conftest
10090 lt_save_allow_undefined_flag=$allow_undefined_flag
10091 allow_undefined_flag=
10092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10093 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10094 ac_status=$?
10095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10096 test $ac_status = 0; }
10097 then
10098 lt_cv_archive_cmds_need_lc=no
10099 else
10100 lt_cv_archive_cmds_need_lc=yes
10101 fi
10102 allow_undefined_flag=$lt_save_allow_undefined_flag
10103 else
10104 cat conftest.err 1>&5
10105 fi
10106 $RM conftest*
10107
10108fi
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10110$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10111 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10112 ;;
10113 esac
10114 fi
10115 ;;
10116esac
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10275$as_echo_n "checking dynamic linker characteristics... " >&6; }
10276
10277if test "$GCC" = yes; then
10278 case $host_os in
10279 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10280 *) lt_awk_arg="/^libraries:/" ;;
10281 esac
10282 case $host_os in
10283 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10284 *) lt_sed_strip_eq="s,=/,/,g" ;;
10285 esac
10286 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10287 case $lt_search_path_spec in
10288 *\;*)
10289 # if the path contains ";" then we assume it to be the separator
10290 # otherwise default to the standard path separator (i.e. ":") - it is
10291 # assumed that no part of a normal pathname contains ";" but that should
10292 # okay in the real world where ";" in dirpaths is itself problematic.
10293 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10294 ;;
10295 *)
10296 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10297 ;;
10298 esac
10299 # Ok, now we have the path, separated by spaces, we can step through it
10300 # and add multilib dir if necessary.
10301 lt_tmp_lt_search_path_spec=
10302 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10303 for lt_sys_path in $lt_search_path_spec; do
10304 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10305 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10306 else
10307 test -d "$lt_sys_path" && \
10308 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10309 fi
10310 done
10311 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10312BEGIN {RS=" "; FS="/|\n";} {
10313 lt_foo="";
10314 lt_count=0;
10315 for (lt_i = NF; lt_i > 0; lt_i--) {
10316 if ($lt_i != "" && $lt_i != ".") {
10317 if ($lt_i == "..") {
10318 lt_count++;
10319 } else {
10320 if (lt_count == 0) {
10321 lt_foo="/" $lt_i lt_foo;
10322 } else {
10323 lt_count--;
10324 }
10325 }
10326 }
10327 }
10328 if (lt_foo != "") { lt_freq[lt_foo]++; }
10329 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10330}'`
10331 # AWK program above erroneously prepends '/' to C:/dos/paths
10332 # for these hosts.
10333 case $host_os in
10334 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10335 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10336 esac
10337 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10338else
10339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10340fi
10341library_names_spec=
10342libname_spec='lib$name'
10343soname_spec=
10344shrext_cmds=".so"
10345postinstall_cmds=
10346postuninstall_cmds=
10347finish_cmds=
10348finish_eval=
10349shlibpath_var=
10350shlibpath_overrides_runpath=unknown
10351version_type=none
10352dynamic_linker="$host_os ld.so"
10353sys_lib_dlsearch_path_spec="/lib /usr/lib"
10354need_lib_prefix=unknown
10355hardcode_into_libs=no
10356
10357# when you set need_version to no, make sure it does not cause -set_version
10358# flags to be left without arguments
10359need_version=unknown
10360
10361case $host_os in
10362aix3*)
10363 version_type=linux
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10365 shlibpath_var=LIBPATH
10366
10367 # AIX 3 has no versioning support, so we append a major version to the name.
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 ;;
10370
10371aix[4-9]*)
10372 version_type=linux
10373 need_lib_prefix=no
10374 need_version=no
10375 hardcode_into_libs=yes
10376 if test "$host_cpu" = ia64; then
10377 # AIX 5 supports IA64
10378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 else
10381 # With GCC up to 2.95.x, collect2 would create an import file
10382 # for dependence libraries. The import file would start with
10383 # the line `#! .'. This would cause the generated library to
10384 # depend on `.', always an invalid library. This was fixed in
10385 # development snapshots of GCC prior to 3.0.
10386 case $host_os in
10387 aix4 | aix4.[01] | aix4.[01].*)
10388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10389 echo ' yes '
10390 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10391 :
10392 else
10393 can_build_shared=no
10394 fi
10395 ;;
10396 esac
10397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10398 # soname into executable. Probably we can add versioning support to
10399 # collect2, so additional links can be useful in future.
10400 if test "$aix_use_runtimelinking" = yes; then
10401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10402 # instead of lib<name>.a to let people know that these are not
10403 # typical AIX shared libraries.
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 else
10406 # We preserve .a as extension for shared libraries through AIX4.2
10407 # and later when we are not doing run time linking.
10408 library_names_spec='${libname}${release}.a $libname.a'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 fi
10411 shlibpath_var=LIBPATH
10412 fi
10413 ;;
10414
10415amigaos*)
10416 case $host_cpu in
10417 powerpc)
10418 # Since July 2007 AmigaOS4 officially supports .so libraries.
10419 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 ;;
10422 m68k)
10423 library_names_spec='$libname.ixlibrary $libname.a'
10424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10425 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'
10426 ;;
10427 esac
10428 ;;
10429
10430beos*)
10431 library_names_spec='${libname}${shared_ext}'
10432 dynamic_linker="$host_os ld.so"
10433 shlibpath_var=LIBRARY_PATH
10434 ;;
10435
10436bsdi[45]*)
10437 version_type=linux
10438 need_version=no
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10445 # the default ld.so.conf also contains /usr/contrib/lib and
10446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10447 # libtool to hard-code these into programs
10448 ;;
10449
10450cygwin* | mingw* | pw32* | cegcc*)
10451 version_type=windows
10452 shrext_cmds=".dll"
10453 need_version=no
10454 need_lib_prefix=no
10455
10456 case $GCC,$host_os in
10457 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10458 library_names_spec='$libname.dll.a'
10459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10460 postinstall_cmds='base_file=`basename \${file}`~
10461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10462 dldir=$destdir/`dirname \$dlpath`~
10463 test -d \$dldir || mkdir -p \$dldir~
10464 $install_prog $dir/$dlname \$dldir/$dlname~
10465 chmod a+x \$dldir/$dlname~
10466 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10467 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10468 fi'
10469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10470 dlpath=$dir/\$dldll~
10471 $RM \$dlpath'
10472 shlibpath_overrides_runpath=yes
10473
10474 case $host_os in
10475 cygwin*)
10476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10478
10479 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10480 ;;
10481 mingw* | cegcc*)
10482 # MinGW DLLs use traditional 'lib' prefix
10483 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10484 ;;
10485 pw32*)
10486 # pw32 DLLs use 'pw' prefix rather than 'lib'
10487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10488 ;;
10489 esac
10490 ;;
10491
10492 *)
10493 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10494 ;;
10495 esac
10496 dynamic_linker='Win32 ld.exe'
10497 # FIXME: first we should search . and the directory the executable is in
10498 shlibpath_var=PATH
10499 ;;
10500
10501darwin* | rhapsody*)
10502 dynamic_linker="$host_os dyld"
10503 version_type=darwin
10504 need_lib_prefix=no
10505 need_version=no
10506 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10507 soname_spec='${libname}${release}${major}$shared_ext'
10508 shlibpath_overrides_runpath=yes
10509 shlibpath_var=DYLD_LIBRARY_PATH
10510 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10511
10512 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10513 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10514 ;;
10515
10516dgux*)
10517 version_type=linux
10518 need_lib_prefix=no
10519 need_version=no
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10521 soname_spec='${libname}${release}${shared_ext}$major'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 ;;
10524
10525freebsd* | dragonfly*)
10526 # DragonFly does not have aout. When/if they implement a new
10527 # versioning mechanism, adjust this.
10528 if test -x /usr/bin/objformat; then
10529 objformat=`/usr/bin/objformat`
10530 else
10531 case $host_os in
10532 freebsd[23].*) objformat=aout ;;
10533 *) objformat=elf ;;
10534 esac
10535 fi
10536 version_type=freebsd-$objformat
10537 case $version_type in
10538 freebsd-elf*)
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10540 need_version=no
10541 need_lib_prefix=no
10542 ;;
10543 freebsd-*)
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10545 need_version=yes
10546 ;;
10547 esac
10548 shlibpath_var=LD_LIBRARY_PATH
10549 case $host_os in
10550 freebsd2.*)
10551 shlibpath_overrides_runpath=yes
10552 ;;
10553 freebsd3.[01]* | freebsdelf3.[01]*)
10554 shlibpath_overrides_runpath=yes
10555 hardcode_into_libs=yes
10556 ;;
10557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10559 shlibpath_overrides_runpath=no
10560 hardcode_into_libs=yes
10561 ;;
10562 *) # from 4.6 on, and DragonFly
10563 shlibpath_overrides_runpath=yes
10564 hardcode_into_libs=yes
10565 ;;
10566 esac
10567 ;;
10568
48310492
RH
10569haiku*)
10570 version_type=linux
10571 need_lib_prefix=no
10572 need_version=no
10573 dynamic_linker="$host_os runtime_loader"
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10579 hardcode_into_libs=yes
10580 ;;
10581
10582hpux9* | hpux10* | hpux11*)
10583 # Give a soname corresponding to the major version so that dld.sl refuses to
10584 # link against other versions.
10585 version_type=sunos
10586 need_lib_prefix=no
10587 need_version=no
10588 case $host_cpu in
10589 ia64*)
10590 shrext_cmds='.so'
10591 hardcode_into_libs=yes
10592 dynamic_linker="$host_os dld.so"
10593 shlibpath_var=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 if test "X$HPUX_IA64_MODE" = X32; then
10598 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10599 else
10600 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10601 fi
10602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10603 ;;
10604 hppa*64*)
10605 shrext_cmds='.sl'
10606 hardcode_into_libs=yes
10607 dynamic_linker="$host_os dld.sl"
10608 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10614 ;;
10615 *)
10616 shrext_cmds='.sl'
10617 dynamic_linker="$host_os dld.sl"
10618 shlibpath_var=SHLIB_PATH
10619 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 ;;
10623 esac
10624 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10625 postinstall_cmds='chmod 555 $lib'
10626 # or fails outright, so override atomically:
10627 install_override_mode=555
10628 ;;
10629
10630interix[3-9]*)
10631 version_type=linux
10632 need_lib_prefix=no
10633 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 shlibpath_overrides_runpath=no
10639 hardcode_into_libs=yes
10640 ;;
10641
10642irix5* | irix6* | nonstopux*)
10643 case $host_os in
10644 nonstopux*) version_type=nonstopux ;;
10645 *)
10646 if test "$lt_cv_prog_gnu_ld" = yes; then
10647 version_type=linux
10648 else
10649 version_type=irix
10650 fi ;;
10651 esac
10652 need_lib_prefix=no
10653 need_version=no
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10656 case $host_os in
10657 irix5* | nonstopux*)
10658 libsuff= shlibsuff=
10659 ;;
10660 *)
10661 case $LD in # libtool.m4 will add one of these switches to LD
10662 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10663 libsuff= shlibsuff= libmagic=32-bit;;
10664 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10665 libsuff=32 shlibsuff=N32 libmagic=N32;;
10666 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10667 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10668 *) libsuff= shlibsuff= libmagic=never-match;;
10669 esac
10670 ;;
10671 esac
10672 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10673 shlibpath_overrides_runpath=no
10674 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10675 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10676 hardcode_into_libs=yes
10677 ;;
10678
10679# No shared lib support for Linux oldld, aout, or coff.
10680linux*oldld* | linux*aout* | linux*coff*)
10681 dynamic_linker=no
10682 ;;
10683
10684# This must be Linux ELF.
b1e21e5a
CL
10685
10686# uclinux* changes (here and below) have been submitted to the libtool
10687# project, but have not yet been accepted: they are GCC-local changes
10688# for the time being. (See
10689# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 10690linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
48310492
RH
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=no
10699
10700 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10701 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
48310492
RH
10702 $as_echo_n "(cached) " >&6
10703else
10704 lt_cv_shlibpath_overrides_runpath=no
10705 save_LDFLAGS=$LDFLAGS
10706 save_libdir=$libdir
10707 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10708 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710/* end confdefs.h. */
10711
10712int
10713main ()
10714{
10715
10716 ;
10717 return 0;
10718}
10719_ACEOF
10720if ac_fn_c_try_link "$LINENO"; then :
10721 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10722 lt_cv_shlibpath_overrides_runpath=yes
10723fi
10724fi
10725rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 LDFLAGS=$save_LDFLAGS
10728 libdir=$save_libdir
10729
10730fi
10731
10732 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10733
10734 # This implies no fast_install, which is unacceptable.
10735 # Some rework will be needed to allow for fast_install
10736 # before this can be enabled.
10737 hardcode_into_libs=yes
10738
10739 # Append ld.so.conf contents to the search path
10740 if test -f /etc/ld.so.conf; then
10741 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' ' '`
10742 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10743 fi
10744
10745 # We used to test for /lib/ld.so.1 and disable shared libraries on
10746 # powerpc, because MkLinux only supported shared libraries with the
10747 # GNU dynamic linker. Since this was broken with cross compilers,
10748 # most powerpc-linux boxes support dynamic linking these days and
10749 # people can always --disable-shared, the test was removed, and we
10750 # assume the GNU/Linux dynamic linker is in use.
10751 dynamic_linker='GNU/Linux ld.so'
10752 ;;
10753
10754netbsd*)
10755 version_type=sunos
10756 need_lib_prefix=no
10757 need_version=no
10758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10761 dynamic_linker='NetBSD (a.out) ld.so'
10762 else
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 dynamic_linker='NetBSD ld.elf_so'
10766 fi
10767 shlibpath_var=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath=yes
10769 hardcode_into_libs=yes
10770 ;;
10771
10772newsos6)
10773 version_type=linux
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 shlibpath_overrides_runpath=yes
10777 ;;
10778
10779*nto* | *qnx*)
10780 version_type=qnx
10781 need_lib_prefix=no
10782 need_version=no
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath=no
10787 hardcode_into_libs=yes
10788 dynamic_linker='ldqnx.so'
10789 ;;
10790
10791openbsd*)
10792 version_type=sunos
10793 sys_lib_dlsearch_path_spec="/usr/lib"
10794 need_lib_prefix=no
10795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10796 case $host_os in
10797 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10798 *) need_version=no ;;
10799 esac
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10804 case $host_os in
10805 openbsd2.[89] | openbsd2.[89].*)
10806 shlibpath_overrides_runpath=no
10807 ;;
10808 *)
10809 shlibpath_overrides_runpath=yes
10810 ;;
10811 esac
10812 else
10813 shlibpath_overrides_runpath=yes
10814 fi
10815 ;;
10816
10817os2*)
10818 libname_spec='$name'
10819 shrext_cmds=".dll"
10820 need_lib_prefix=no
10821 library_names_spec='$libname${shared_ext} $libname.a'
10822 dynamic_linker='OS/2 ld.exe'
10823 shlibpath_var=LIBPATH
10824 ;;
10825
10826osf3* | osf4* | osf5*)
10827 version_type=osf
10828 need_lib_prefix=no
10829 need_version=no
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10834 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10835 ;;
10836
10837rdos*)
10838 dynamic_linker=no
10839 ;;
10840
10841solaris*)
10842 version_type=linux
10843 need_lib_prefix=no
10844 need_version=no
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 shlibpath_var=LD_LIBRARY_PATH
10848 shlibpath_overrides_runpath=yes
10849 hardcode_into_libs=yes
10850 # ldd complains unless libraries are executable
10851 postinstall_cmds='chmod +x $lib'
10852 ;;
10853
10854sunos4*)
10855 version_type=sunos
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10857 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 shlibpath_overrides_runpath=yes
10860 if test "$with_gnu_ld" = yes; then
10861 need_lib_prefix=no
10862 fi
10863 need_version=yes
10864 ;;
10865
10866sysv4 | sysv4.3*)
10867 version_type=linux
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 case $host_vendor in
10872 sni)
10873 shlibpath_overrides_runpath=no
10874 need_lib_prefix=no
10875 runpath_var=LD_RUN_PATH
10876 ;;
10877 siemens)
10878 need_lib_prefix=no
10879 ;;
10880 motorola)
10881 need_lib_prefix=no
10882 need_version=no
10883 shlibpath_overrides_runpath=no
10884 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10885 ;;
10886 esac
10887 ;;
10888
10889sysv4*MP*)
10890 if test -d /usr/nec ;then
10891 version_type=linux
10892 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10893 soname_spec='$libname${shared_ext}.$major'
10894 shlibpath_var=LD_LIBRARY_PATH
10895 fi
10896 ;;
10897
10898sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10899 version_type=freebsd-elf
10900 need_lib_prefix=no
10901 need_version=no
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes
10906 hardcode_into_libs=yes
10907 if test "$with_gnu_ld" = yes; then
10908 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10909 else
10910 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10911 case $host_os in
10912 sco3.2v5*)
10913 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10914 ;;
10915 esac
10916 fi
10917 sys_lib_dlsearch_path_spec='/usr/lib'
10918 ;;
10919
10920tpf*)
10921 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10922 version_type=linux
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=no
10928 hardcode_into_libs=yes
10929 ;;
10930
10931uts4*)
10932 version_type=linux
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 shlibpath_var=LD_LIBRARY_PATH
10936 ;;
10937
0ecd0f1c
OH
10938# Shared libraries for VwWorks, >= 7 only at this stage
10939# and (fpic) still incompatible with "large" code models
10940# in a few configurations. Only for RTP mode in any case,
10941# and upon explicit request at configure time.
10942vxworks7*)
10943 dynamic_linker=no
10944 case ${with_multisubdir}-${enable_shared} in
10945 *large*)
10946 ;;
10947 *mrtp*-yes)
10948 version_type=linux
10949 need_lib_prefix=no
10950 need_version=no
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 dynamic_linker="$host_os module_loader"
10954 ;;
10955 esac
10956 ;;
48310492
RH
10957*)
10958 dynamic_linker=no
10959 ;;
10960esac
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10962$as_echo "$dynamic_linker" >&6; }
10963test "$dynamic_linker" = no && can_build_shared=no
10964
10965variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10966if test "$GCC" = yes; then
10967 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10968fi
10969
10970if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10971 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10972fi
10973if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10974 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10975fi
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11069$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11070hardcode_action=
11071if test -n "$hardcode_libdir_flag_spec" ||
11072 test -n "$runpath_var" ||
11073 test "X$hardcode_automatic" = "Xyes" ; then
11074
11075 # We can hardcode non-existent directories.
11076 if test "$hardcode_direct" != no &&
11077 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11078 # have to relink, otherwise we might link with an installed library
11079 # when we should be linking with a yet-to-be-installed one
11080 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11081 test "$hardcode_minus_L" != no; then
11082 # Linking always hardcodes the temporary library directory.
11083 hardcode_action=relink
11084 else
11085 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11086 hardcode_action=immediate
11087 fi
11088else
11089 # We cannot hardcode anything, or else we can only hardcode existing
11090 # directories.
11091 hardcode_action=unsupported
11092fi
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11094$as_echo "$hardcode_action" >&6; }
11095
11096if test "$hardcode_action" = relink ||
11097 test "$inherit_rpath" = yes; then
11098 # Fast installation is not supported
11099 enable_fast_install=no
11100elif test "$shlibpath_overrides_runpath" = yes ||
11101 test "$enable_shared" = no; then
11102 # Fast installation is not necessary
11103 enable_fast_install=needless
11104fi
11105
11106
11107
11108
11109
11110
11111 if test "x$enable_dlopen" != xyes; then
11112 enable_dlopen=unknown
11113 enable_dlopen_self=unknown
11114 enable_dlopen_self_static=unknown
11115else
11116 lt_cv_dlopen=no
11117 lt_cv_dlopen_libs=
11118
11119 case $host_os in
11120 beos*)
11121 lt_cv_dlopen="load_add_on"
11122 lt_cv_dlopen_libs=
11123 lt_cv_dlopen_self=yes
11124 ;;
11125
11126 mingw* | pw32* | cegcc*)
11127 lt_cv_dlopen="LoadLibrary"
11128 lt_cv_dlopen_libs=
11129 ;;
11130
11131 cygwin*)
11132 lt_cv_dlopen="dlopen"
11133 lt_cv_dlopen_libs=
11134 ;;
11135
11136 darwin*)
11137 # if libdl is installed we need to link against it
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11139$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11140if ${ac_cv_lib_dl_dlopen+:} false; then :
48310492
RH
11141 $as_echo_n "(cached) " >&6
11142else
11143 ac_check_lib_save_LIBS=$LIBS
11144LIBS="-ldl $LIBS"
11145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146/* end confdefs.h. */
11147
11148/* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151#ifdef __cplusplus
11152extern "C"
11153#endif
11154char dlopen ();
11155int
11156main ()
11157{
11158return dlopen ();
11159 ;
11160 return 0;
11161}
11162_ACEOF
11163if ac_fn_c_try_link "$LINENO"; then :
11164 ac_cv_lib_dl_dlopen=yes
11165else
11166 ac_cv_lib_dl_dlopen=no
11167fi
11168rm -f core conftest.err conftest.$ac_objext \
11169 conftest$ac_exeext conftest.$ac_ext
11170LIBS=$ac_check_lib_save_LIBS
11171fi
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11173$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11174if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
48310492
RH
11175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11176else
11177
11178 lt_cv_dlopen="dyld"
11179 lt_cv_dlopen_libs=
11180 lt_cv_dlopen_self=yes
11181
11182fi
11183
11184 ;;
11185
11186 *)
11187 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11188if test "x$ac_cv_func_shl_load" = xyes; then :
48310492
RH
11189 lt_cv_dlopen="shl_load"
11190else
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11192$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11193if ${ac_cv_lib_dld_shl_load+:} false; then :
48310492
RH
11194 $as_echo_n "(cached) " >&6
11195else
11196 ac_check_lib_save_LIBS=$LIBS
11197LIBS="-ldld $LIBS"
11198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199/* end confdefs.h. */
11200
11201/* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11204#ifdef __cplusplus
11205extern "C"
11206#endif
11207char shl_load ();
11208int
11209main ()
11210{
11211return shl_load ();
11212 ;
11213 return 0;
11214}
11215_ACEOF
11216if ac_fn_c_try_link "$LINENO"; then :
11217 ac_cv_lib_dld_shl_load=yes
11218else
11219 ac_cv_lib_dld_shl_load=no
11220fi
11221rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11223LIBS=$ac_check_lib_save_LIBS
11224fi
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11226$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11227if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
48310492
RH
11228 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11229else
11230 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11231if test "x$ac_cv_func_dlopen" = xyes; then :
48310492
RH
11232 lt_cv_dlopen="dlopen"
11233else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11235$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11236if ${ac_cv_lib_dl_dlopen+:} false; then :
48310492
RH
11237 $as_echo_n "(cached) " >&6
11238else
11239 ac_check_lib_save_LIBS=$LIBS
11240LIBS="-ldl $LIBS"
11241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242/* end confdefs.h. */
11243
11244/* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11247#ifdef __cplusplus
11248extern "C"
11249#endif
11250char dlopen ();
11251int
11252main ()
11253{
11254return dlopen ();
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259if ac_fn_c_try_link "$LINENO"; then :
11260 ac_cv_lib_dl_dlopen=yes
11261else
11262 ac_cv_lib_dl_dlopen=no
11263fi
11264rm -f core conftest.err conftest.$ac_objext \
11265 conftest$ac_exeext conftest.$ac_ext
11266LIBS=$ac_check_lib_save_LIBS
11267fi
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11269$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11270if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
48310492
RH
11271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11272else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11274$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11275if ${ac_cv_lib_svld_dlopen+:} false; then :
48310492
RH
11276 $as_echo_n "(cached) " >&6
11277else
11278 ac_check_lib_save_LIBS=$LIBS
11279LIBS="-lsvld $LIBS"
11280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281/* end confdefs.h. */
11282
11283/* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11286#ifdef __cplusplus
11287extern "C"
11288#endif
11289char dlopen ();
11290int
11291main ()
11292{
11293return dlopen ();
11294 ;
11295 return 0;
11296}
11297_ACEOF
11298if ac_fn_c_try_link "$LINENO"; then :
11299 ac_cv_lib_svld_dlopen=yes
11300else
11301 ac_cv_lib_svld_dlopen=no
11302fi
11303rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305LIBS=$ac_check_lib_save_LIBS
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11308$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11309if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
48310492
RH
11310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11311else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11313$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11314if ${ac_cv_lib_dld_dld_link+:} false; then :
48310492
RH
11315 $as_echo_n "(cached) " >&6
11316else
11317 ac_check_lib_save_LIBS=$LIBS
11318LIBS="-ldld $LIBS"
11319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320/* end confdefs.h. */
11321
11322/* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11325#ifdef __cplusplus
11326extern "C"
11327#endif
11328char dld_link ();
11329int
11330main ()
11331{
11332return dld_link ();
11333 ;
11334 return 0;
11335}
11336_ACEOF
11337if ac_fn_c_try_link "$LINENO"; then :
11338 ac_cv_lib_dld_dld_link=yes
11339else
11340 ac_cv_lib_dld_dld_link=no
11341fi
11342rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344LIBS=$ac_check_lib_save_LIBS
11345fi
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11347$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11348if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
48310492
RH
11349 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11350fi
11351
11352
11353fi
11354
11355
11356fi
11357
11358
11359fi
11360
11361
11362fi
11363
11364
11365fi
11366
11367 ;;
11368 esac
11369
11370 if test "x$lt_cv_dlopen" != xno; then
11371 enable_dlopen=yes
11372 else
11373 enable_dlopen=no
11374 fi
11375
11376 case $lt_cv_dlopen in
11377 dlopen)
11378 save_CPPFLAGS="$CPPFLAGS"
11379 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11380
11381 save_LDFLAGS="$LDFLAGS"
11382 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11383
11384 save_LIBS="$LIBS"
11385 LIBS="$lt_cv_dlopen_libs $LIBS"
11386
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11388$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11389if ${lt_cv_dlopen_self+:} false; then :
48310492
RH
11390 $as_echo_n "(cached) " >&6
11391else
11392 if test "$cross_compiling" = yes; then :
11393 lt_cv_dlopen_self=cross
11394else
11395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11396 lt_status=$lt_dlunknown
11397 cat > conftest.$ac_ext <<_LT_EOF
9c7797a8 11398#line 11398 "configure"
48310492
RH
11399#include "confdefs.h"
11400
11401#if HAVE_DLFCN_H
11402#include <dlfcn.h>
11403#endif
11404
11405#include <stdio.h>
11406
11407#ifdef RTLD_GLOBAL
11408# define LT_DLGLOBAL RTLD_GLOBAL
11409#else
11410# ifdef DL_GLOBAL
11411# define LT_DLGLOBAL DL_GLOBAL
11412# else
11413# define LT_DLGLOBAL 0
11414# endif
11415#endif
11416
11417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11418 find out it does not work in some platform. */
11419#ifndef LT_DLLAZY_OR_NOW
11420# ifdef RTLD_LAZY
11421# define LT_DLLAZY_OR_NOW RTLD_LAZY
11422# else
11423# ifdef DL_LAZY
11424# define LT_DLLAZY_OR_NOW DL_LAZY
11425# else
11426# ifdef RTLD_NOW
11427# define LT_DLLAZY_OR_NOW RTLD_NOW
11428# else
11429# ifdef DL_NOW
11430# define LT_DLLAZY_OR_NOW DL_NOW
11431# else
11432# define LT_DLLAZY_OR_NOW 0
11433# endif
11434# endif
11435# endif
11436# endif
11437#endif
11438
11439/* When -fvisbility=hidden is used, assume the code has been annotated
11440 correspondingly for the symbols needed. */
11441#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11442void fnord () __attribute__((visibility("default")));
11443#endif
11444
11445void fnord () { int i=42; }
11446int main ()
11447{
11448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11449 int status = $lt_dlunknown;
11450
11451 if (self)
11452 {
11453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11454 else
11455 {
11456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11457 else puts (dlerror ());
11458 }
11459 /* dlclose (self); */
11460 }
11461 else
11462 puts (dlerror ());
11463
11464 return status;
11465}
11466_LT_EOF
11467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11468 (eval $ac_link) 2>&5
11469 ac_status=$?
11470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11472 (./conftest; exit; ) >&5 2>/dev/null
11473 lt_status=$?
11474 case x$lt_status in
11475 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11476 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11477 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11478 esac
11479 else :
11480 # compilation failed
11481 lt_cv_dlopen_self=no
11482 fi
11483fi
11484rm -fr conftest*
11485
11486
11487fi
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11489$as_echo "$lt_cv_dlopen_self" >&6; }
11490
11491 if test "x$lt_cv_dlopen_self" = xyes; then
11492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11494$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11495if ${lt_cv_dlopen_self_static+:} false; then :
48310492
RH
11496 $as_echo_n "(cached) " >&6
11497else
11498 if test "$cross_compiling" = yes; then :
11499 lt_cv_dlopen_self_static=cross
11500else
11501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11502 lt_status=$lt_dlunknown
11503 cat > conftest.$ac_ext <<_LT_EOF
9c7797a8 11504#line 11504 "configure"
48310492
RH
11505#include "confdefs.h"
11506
11507#if HAVE_DLFCN_H
11508#include <dlfcn.h>
11509#endif
11510
11511#include <stdio.h>
11512
11513#ifdef RTLD_GLOBAL
11514# define LT_DLGLOBAL RTLD_GLOBAL
11515#else
11516# ifdef DL_GLOBAL
11517# define LT_DLGLOBAL DL_GLOBAL
11518# else
11519# define LT_DLGLOBAL 0
11520# endif
11521#endif
11522
11523/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11524 find out it does not work in some platform. */
11525#ifndef LT_DLLAZY_OR_NOW
11526# ifdef RTLD_LAZY
11527# define LT_DLLAZY_OR_NOW RTLD_LAZY
11528# else
11529# ifdef DL_LAZY
11530# define LT_DLLAZY_OR_NOW DL_LAZY
11531# else
11532# ifdef RTLD_NOW
11533# define LT_DLLAZY_OR_NOW RTLD_NOW
11534# else
11535# ifdef DL_NOW
11536# define LT_DLLAZY_OR_NOW DL_NOW
11537# else
11538# define LT_DLLAZY_OR_NOW 0
11539# endif
11540# endif
11541# endif
11542# endif
11543#endif
11544
11545/* When -fvisbility=hidden is used, assume the code has been annotated
11546 correspondingly for the symbols needed. */
11547#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11548void fnord () __attribute__((visibility("default")));
11549#endif
11550
11551void fnord () { int i=42; }
11552int main ()
11553{
11554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11555 int status = $lt_dlunknown;
11556
11557 if (self)
11558 {
11559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11560 else
11561 {
11562 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11563 else puts (dlerror ());
11564 }
11565 /* dlclose (self); */
11566 }
11567 else
11568 puts (dlerror ());
11569
11570 return status;
11571}
11572_LT_EOF
11573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11574 (eval $ac_link) 2>&5
11575 ac_status=$?
11576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11577 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11578 (./conftest; exit; ) >&5 2>/dev/null
11579 lt_status=$?
11580 case x$lt_status in
11581 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11582 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11583 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11584 esac
11585 else :
11586 # compilation failed
11587 lt_cv_dlopen_self_static=no
11588 fi
11589fi
11590rm -fr conftest*
11591
11592
11593fi
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11595$as_echo "$lt_cv_dlopen_self_static" >&6; }
11596 fi
11597
11598 CPPFLAGS="$save_CPPFLAGS"
11599 LDFLAGS="$save_LDFLAGS"
11600 LIBS="$save_LIBS"
11601 ;;
11602 esac
11603
11604 case $lt_cv_dlopen_self in
11605 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11606 *) enable_dlopen_self=unknown ;;
11607 esac
11608
11609 case $lt_cv_dlopen_self_static in
11610 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11611 *) enable_dlopen_self_static=unknown ;;
11612 esac
11613fi
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631striplib=
11632old_striplib=
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11634$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11635if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11636 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11637 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11639$as_echo "yes" >&6; }
11640else
11641# FIXME - insert some real tests, host_os isn't really good enough
11642 case $host_os in
11643 darwin*)
11644 if test -n "$STRIP" ; then
11645 striplib="$STRIP -x"
11646 old_striplib="$STRIP -S"
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648$as_echo "yes" >&6; }
11649 else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
11652 fi
11653 ;;
11654 *)
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656$as_echo "no" >&6; }
11657 ;;
11658 esac
11659fi
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672 # Report which library types will actually be built
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11674$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11676$as_echo "$can_build_shared" >&6; }
11677
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11679$as_echo_n "checking whether to build shared libraries... " >&6; }
11680 test "$can_build_shared" = "no" && enable_shared=no
11681
11682 # On AIX, shared libraries and static libraries use the same namespace, and
11683 # are all built from PIC.
11684 case $host_os in
11685 aix3*)
11686 test "$enable_shared" = yes && enable_static=no
11687 if test -n "$RANLIB"; then
11688 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11689 postinstall_cmds='$RANLIB $lib'
11690 fi
11691 ;;
11692
11693 aix[4-9]*)
11694 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11695 test "$enable_shared" = yes && enable_static=no
11696 fi
11697 ;;
11698 esac
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11700$as_echo "$enable_shared" >&6; }
11701
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11703$as_echo_n "checking whether to build static libraries... " >&6; }
11704 # Make sure either enable_shared or enable_static is yes.
11705 test "$enable_shared" = yes || enable_static=yes
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11707$as_echo "$enable_static" >&6; }
11708
11709
11710
11711
11712fi
11713ac_ext=c
11714ac_cpp='$CPP $CPPFLAGS'
11715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11717ac_compiler_gnu=$ac_cv_c_compiler_gnu
11718
11719CC="$lt_save_CC"
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733 ac_config_commands="$ac_config_commands libtool"
11734
11735
11736
11737
11738# Only expand once:
11739
11740
11741
11742
11743
dc3368d0
KT
11744case $host in
11745 *-cygwin* | *-mingw*)
11746 # 'host' will be top-level target in the case of a target lib,
11747 # we must compare to with_cross_host to decide if this is a native
11748 # or cross-compiler and select where to install dlls appropriately.
11749 if test -n "$with_cross_host" &&
11750 test x"$with_cross_host" != x"no"; then
11751 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11752 else
11753 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11754 fi
11755 ;;
11756 *)
11757 lt_host_flags=
11758 ;;
11759esac
11760
11761
11762
11763
11764
11765
fa3cd3c3
RH
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11767$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11768 # Check whether --enable-maintainer-mode was given.
11769if test "${enable_maintainer_mode+set}" = set; then :
11770 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11771else
11772 USE_MAINTAINER_MODE=no
11773fi
11774
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11776$as_echo "$USE_MAINTAINER_MODE" >&6; }
11777 if test $USE_MAINTAINER_MODE = yes; then
11778 MAINTAINER_MODE_TRUE=
11779 MAINTAINER_MODE_FALSE='#'
11780else
11781 MAINTAINER_MODE_TRUE='#'
11782 MAINTAINER_MODE_FALSE=
11783fi
11784
11785 MAINT=$MAINTAINER_MODE_TRUE
11786
11787
11788
48310492 11789# For libtool versioning info, format is CURRENT:REVISION:AGE
c29c36ad 11790libtool_VERSION=3:0:2
48310492
RH
11791
11792
dc3368d0
KT
11793# Check for used threading-model
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
11795$as_echo_n "checking for thread model used by GCC... " >&6; }
11796target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
11798$as_echo "$target_thread_file" >&6; }
11799
9d0e85af
SE
11800case "$target" in
11801 *aarch64*)
11802 ac_ext=c
11803ac_cpp='$CPP $CPPFLAGS'
11804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11806ac_compiler_gnu=$ac_cv_c_compiler_gnu
11807
11808enable_aarch64_lse=
11809save_CFLAGS="$CFLAGS"
11810for real_option in -march=armv8-a+lse; do
11811 # Do the check with the no- prefix removed since gcc silently
11812 # accepts any -Wno-* option on purpose
11813 case $real_option in
11814 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11815 *) option=$real_option ;;
11816 esac
11817 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11820$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 11821if eval \${$as_acx_Woption+:} false; then :
9d0e85af
SE
11822 $as_echo_n "(cached) " >&6
11823else
11824 CFLAGS="$option"
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826/* end confdefs.h. */
11827
11828int
11829main ()
11830{
11831
11832 ;
11833 return 0;
11834}
11835_ACEOF
11836if ac_fn_c_try_compile "$LINENO"; then :
11837 eval "$as_acx_Woption=yes"
11838else
11839 eval "$as_acx_Woption=no"
11840fi
11841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11842
11843fi
11844eval ac_res=\$$as_acx_Woption
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11846$as_echo "$ac_res" >&6; }
11847 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11848 enable_aarch64_lse="$enable_aarch64_lse${enable_aarch64_lse:+ }$real_option"
11849fi
11850 done
11851CFLAGS="$save_CFLAGS"
11852ac_ext=c
11853ac_cpp='$CPP $CPPFLAGS'
11854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11856ac_compiler_gnu=$ac_cv_c_compiler_gnu
11857
11858
11859 ;;
11860esac
11861
48310492
RH
11862# Get target configury.
11863. ${srcdir}/configure.tgt
11864if test -n "$UNSUPPORTED"; then
22e05272 11865 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
48310492
RH
11866fi
11867
141abc6f
SE
11868# Write out the ifunc resolver arg type.
11869
11870cat >>confdefs.h <<_ACEOF
11871#define IFUNC_RESOLVER_ARGS $IFUNC_RESOLVER_ARGS
11872_ACEOF
11873
11874
48310492
RH
11875# Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11876# make silly decisions about what the cpu can do.
11877CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11878
11879# Check header files.
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11881$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 11882if ${ac_cv_header_stdc+:} false; then :
48310492
RH
11883 $as_echo_n "(cached) " >&6
11884else
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886/* end confdefs.h. */
11887#include <stdlib.h>
11888#include <stdarg.h>
11889#include <string.h>
11890#include <float.h>
11891
11892int
11893main ()
11894{
11895
11896 ;
11897 return 0;
11898}
11899_ACEOF
11900if ac_fn_c_try_compile "$LINENO"; then :
11901 ac_cv_header_stdc=yes
11902else
11903 ac_cv_header_stdc=no
11904fi
11905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906
11907if test $ac_cv_header_stdc = yes; then
11908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910/* end confdefs.h. */
11911#include <string.h>
11912
11913_ACEOF
11914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11915 $EGREP "memchr" >/dev/null 2>&1; then :
11916
11917else
11918 ac_cv_header_stdc=no
11919fi
11920rm -f conftest*
11921
11922fi
11923
11924if test $ac_cv_header_stdc = yes; then
11925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927/* end confdefs.h. */
11928#include <stdlib.h>
11929
11930_ACEOF
11931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11932 $EGREP "free" >/dev/null 2>&1; then :
11933
11934else
11935 ac_cv_header_stdc=no
11936fi
11937rm -f conftest*
11938
11939fi
11940
11941if test $ac_cv_header_stdc = yes; then
11942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11943 if test "$cross_compiling" = yes; then :
11944 :
11945else
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947/* end confdefs.h. */
11948#include <ctype.h>
11949#include <stdlib.h>
11950#if ((' ' & 0x0FF) == 0x020)
11951# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11952# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11953#else
11954# define ISLOWER(c) \
11955 (('a' <= (c) && (c) <= 'i') \
11956 || ('j' <= (c) && (c) <= 'r') \
11957 || ('s' <= (c) && (c) <= 'z'))
11958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11959#endif
11960
11961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11962int
11963main ()
11964{
11965 int i;
11966 for (i = 0; i < 256; i++)
11967 if (XOR (islower (i), ISLOWER (i))
11968 || toupper (i) != TOUPPER (i))
11969 return 2;
11970 return 0;
11971}
11972_ACEOF
11973if ac_fn_c_try_run "$LINENO"; then :
11974
11975else
11976 ac_cv_header_stdc=no
11977fi
11978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11979 conftest.$ac_objext conftest.beam conftest.$ac_ext
11980fi
11981
11982fi
11983fi
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11985$as_echo "$ac_cv_header_stdc" >&6; }
11986if test $ac_cv_header_stdc = yes; then
11987
11988$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11989
11990fi
11991
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
11993$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
22e05272 11994if ${gcc_cv_header_string+:} false; then :
48310492
RH
11995 $as_echo_n "(cached) " >&6
11996else
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998/* end confdefs.h. */
11999#include <string.h>
12000#include <strings.h>
12001int
12002main ()
12003{
12004
12005 ;
12006 return 0;
12007}
12008_ACEOF
12009if ac_fn_c_try_compile "$LINENO"; then :
12010 gcc_cv_header_string=yes
12011else
12012 gcc_cv_header_string=no
12013fi
12014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015fi
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
12017$as_echo "$gcc_cv_header_string" >&6; }
12018if test $gcc_cv_header_string = yes; then
12019
12020$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
12021
12022fi
12023
12024
12025
12026inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12027
12028acx_cv_header_stdint=stddef.h
12029acx_cv_header_stdint_kind="(already complete)"
12030for i in stdint.h $inttype_headers; do
12031 unset ac_cv_type_uintptr_t
12032 unset ac_cv_type_uintmax_t
12033 unset ac_cv_type_int_least32_t
12034 unset ac_cv_type_int_fast32_t
12035 unset ac_cv_type_uint64_t
12036 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12037 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12038#include <$i>
12039"
22e05272 12040if test "x$ac_cv_type_uintmax_t" = xyes; then :
48310492
RH
12041 acx_cv_header_stdint=$i
12042else
12043 continue
12044fi
12045
12046 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12047#include <$i>
12048"
22e05272 12049if test "x$ac_cv_type_uintptr_t" = xyes; then :
48310492
RH
12050
12051else
12052 acx_cv_header_stdint_kind="(mostly complete)"
12053fi
12054
12055 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12056#include <$i>
12057"
22e05272 12058if test "x$ac_cv_type_int_least32_t" = xyes; then :
48310492
RH
12059
12060else
12061 acx_cv_header_stdint_kind="(mostly complete)"
12062fi
12063
12064 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12065#include <$i>
12066"
22e05272 12067if test "x$ac_cv_type_int_fast32_t" = xyes; then :
48310492
RH
12068
12069else
12070 acx_cv_header_stdint_kind="(mostly complete)"
12071fi
12072
12073 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12074#include <$i>
12075"
22e05272 12076if test "x$ac_cv_type_uint64_t" = xyes; then :
48310492
RH
12077
12078else
12079 acx_cv_header_stdint_kind="(lacks uint64_t)"
12080fi
12081
12082 break
12083done
12084if test "$acx_cv_header_stdint" = stddef.h; then
12085 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12086 for i in stdint.h $inttype_headers; do
12087 unset ac_cv_type_uintptr_t
12088 unset ac_cv_type_uint32_t
12089 unset ac_cv_type_uint64_t
12090 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12091 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12092#include <$i>
12093"
22e05272 12094if test "x$ac_cv_type_uint32_t" = xyes; then :
48310492
RH
12095 acx_cv_header_stdint=$i
12096else
12097 continue
12098fi
12099
12100 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12101#include <$i>
12102"
22e05272 12103if test "x$ac_cv_type_uint64_t" = xyes; then :
48310492
RH
12104
12105fi
12106
12107 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12108#include <$i>
12109"
22e05272 12110if test "x$ac_cv_type_uintptr_t" = xyes; then :
48310492
RH
12111
12112fi
12113
12114 break
12115 done
12116fi
12117if test "$acx_cv_header_stdint" = stddef.h; then
12118 acx_cv_header_stdint_kind="(u_intXX_t style)"
12119 for i in sys/types.h $inttype_headers; do
12120 unset ac_cv_type_u_int32_t
12121 unset ac_cv_type_u_int64_t
12122 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12123 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12124#include <$i>
12125"
22e05272 12126if test "x$ac_cv_type_u_int32_t" = xyes; then :
48310492
RH
12127 acx_cv_header_stdint=$i
12128else
12129 continue
12130fi
12131
12132 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12133#include <$i>
12134"
22e05272 12135if test "x$ac_cv_type_u_int64_t" = xyes; then :
48310492
RH
12136
12137fi
12138
12139 break
12140 done
12141fi
12142if test "$acx_cv_header_stdint" = stddef.h; then
12143 acx_cv_header_stdint_kind="(using manual detection)"
12144fi
12145
12146test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12147test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12148test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12149test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12150test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12151
12152# ----------------- Summarize what we found so far
12153
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12155$as_echo_n "checking what to include in gstdint.h... " >&6; }
12156
12157case `$as_basename -- gstdint.h ||
12158$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12159 Xgstdint.h : 'X\(//\)$' \| \
12160 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12161$as_echo X/gstdint.h |
12162 sed '/^.*\/\([^/][^/]*\)\/*$/{
12163 s//\1/
12164 q
12165 }
12166 /^X\/\(\/\/\)$/{
12167 s//\1/
12168 q
12169 }
12170 /^X\/\(\/\).*/{
12171 s//\1/
12172 q
12173 }
12174 s/.*/./; q'` in
12175 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12176$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12177 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12178$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12179 *) ;;
12180esac
12181
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12183$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12184
12185# ----------------- done included file, check C basic types --------
12186
12187# Lacking an uintptr_t? Test size of void *
12188case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12189 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12190# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12191# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12192# This bug is HP SR number 8606223364.
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12194$as_echo_n "checking size of void *... " >&6; }
22e05272 12195if ${ac_cv_sizeof_void_p+:} false; then :
48310492
RH
12196 $as_echo_n "(cached) " >&6
12197else
12198 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12199
12200else
12201 if test "$ac_cv_type_void_p" = yes; then
12202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12204as_fn_error 77 "cannot compute sizeof (void *)
12205See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12206 else
12207 ac_cv_sizeof_void_p=0
12208 fi
12209fi
12210
12211fi
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12213$as_echo "$ac_cv_sizeof_void_p" >&6; }
12214
12215
12216
12217cat >>confdefs.h <<_ACEOF
12218#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12219_ACEOF
12220
12221 ;;
12222esac
12223
12224# Lacking an uint64_t? Test size of long
12225case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12226 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12227# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12228# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12229# This bug is HP SR number 8606223364.
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12231$as_echo_n "checking size of long... " >&6; }
22e05272 12232if ${ac_cv_sizeof_long+:} false; then :
48310492
RH
12233 $as_echo_n "(cached) " >&6
12234else
12235 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12236
12237else
12238 if test "$ac_cv_type_long" = yes; then
12239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12241as_fn_error 77 "cannot compute sizeof (long)
12242See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12243 else
12244 ac_cv_sizeof_long=0
12245 fi
12246fi
12247
12248fi
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12250$as_echo "$ac_cv_sizeof_long" >&6; }
12251
12252
12253
12254cat >>confdefs.h <<_ACEOF
12255#define SIZEOF_LONG $ac_cv_sizeof_long
12256_ACEOF
12257
12258 ;;
12259esac
12260
12261if test $acx_cv_header_stdint = stddef.h; then
12262 # Lacking a good header? Test size of everything and deduce all types.
12263 # The cast to long int works around a bug in the HP C Compiler
12264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12266# This bug is HP SR number 8606223364.
12267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12268$as_echo_n "checking size of int... " >&6; }
22e05272 12269if ${ac_cv_sizeof_int+:} false; then :
48310492
RH
12270 $as_echo_n "(cached) " >&6
12271else
12272 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12273
12274else
12275 if test "$ac_cv_type_int" = yes; then
12276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12278as_fn_error 77 "cannot compute sizeof (int)
12279See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12280 else
12281 ac_cv_sizeof_int=0
12282 fi
12283fi
12284
12285fi
12286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12287$as_echo "$ac_cv_sizeof_int" >&6; }
12288
12289
12290
12291cat >>confdefs.h <<_ACEOF
12292#define SIZEOF_INT $ac_cv_sizeof_int
12293_ACEOF
12294
12295
12296 # The cast to long int works around a bug in the HP C Compiler
12297# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12298# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12299# This bug is HP SR number 8606223364.
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12301$as_echo_n "checking size of short... " >&6; }
22e05272 12302if ${ac_cv_sizeof_short+:} false; then :
48310492
RH
12303 $as_echo_n "(cached) " >&6
12304else
12305 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12306
12307else
12308 if test "$ac_cv_type_short" = yes; then
12309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12311as_fn_error 77 "cannot compute sizeof (short)
12312See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12313 else
12314 ac_cv_sizeof_short=0
12315 fi
12316fi
12317
12318fi
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12320$as_echo "$ac_cv_sizeof_short" >&6; }
12321
12322
12323
12324cat >>confdefs.h <<_ACEOF
12325#define SIZEOF_SHORT $ac_cv_sizeof_short
12326_ACEOF
12327
12328
12329 # The cast to long int works around a bug in the HP C Compiler
12330# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12331# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12332# This bug is HP SR number 8606223364.
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12334$as_echo_n "checking size of char... " >&6; }
22e05272 12335if ${ac_cv_sizeof_char+:} false; then :
48310492
RH
12336 $as_echo_n "(cached) " >&6
12337else
12338 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12339
12340else
12341 if test "$ac_cv_type_char" = yes; then
12342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12344as_fn_error 77 "cannot compute sizeof (char)
12345See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12346 else
12347 ac_cv_sizeof_char=0
12348 fi
12349fi
12350
12351fi
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12353$as_echo "$ac_cv_sizeof_char" >&6; }
12354
12355
12356
12357cat >>confdefs.h <<_ACEOF
12358#define SIZEOF_CHAR $ac_cv_sizeof_char
12359_ACEOF
12360
12361
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12364$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12365 case "$ac_cv_sizeof_char" in
12366 1) acx_cv_type_int8_t=char ;;
22e05272 12367 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
48310492
RH
12368 esac
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12370$as_echo "$acx_cv_type_int8_t" >&6; }
12371
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12373$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12374 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12375 2:*) acx_cv_type_int16_t=int ;;
12376 *:2) acx_cv_type_int16_t=short ;;
22e05272 12377 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
48310492
RH
12378 esac
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12380$as_echo "$acx_cv_type_int16_t" >&6; }
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12383$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12384 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12385 4:*) acx_cv_type_int32_t=int ;;
12386 *:4) acx_cv_type_int32_t=long ;;
22e05272 12387 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
48310492
RH
12388 esac
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12390$as_echo "$acx_cv_type_int32_t" >&6; }
12391fi
12392
12393# These tests are here to make the output prettier
12394
12395if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12396 case "$ac_cv_sizeof_long" in
12397 8) acx_cv_type_int64_t=long ;;
12398 esac
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12400$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12402$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12403fi
12404
12405# Now we can use the above types
12406
12407if test "$ac_cv_type_uintptr_t" != yes; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12409$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12410 case $ac_cv_sizeof_void_p in
12411 2) acx_cv_type_intptr_t=int16_t ;;
12412 4) acx_cv_type_intptr_t=int32_t ;;
12413 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 12414 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
48310492
RH
12415 esac
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12417$as_echo "$acx_cv_type_intptr_t" >&6; }
12418fi
12419
12420# ----------------- done all checks, emit header -------------
12421ac_config_commands="$ac_config_commands gstdint.h"
12422
12423
12424
267bac10
JM
12425for ac_header in fenv.h
12426do :
12427 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
22e05272 12428if test "x$ac_cv_header_fenv_h" = xyes; then :
267bac10
JM
12429 cat >>confdefs.h <<_ACEOF
12430#define HAVE_FENV_H 1
12431_ACEOF
12432
12433fi
12434
12435done
12436
48310492
RH
12437
12438# Check for common type sizes
12439
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12441$as_echo_n "checking for 1 byte integer... " >&6; }
22e05272 12442if ${libat_cv_have_mode_QI+:} false; then :
48310492
RH
12443 $as_echo_n "(cached) " >&6
12444else
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446/* end confdefs.h. */
12447int x __attribute__((mode(QI)));
12448_ACEOF
12449if ac_fn_c_try_compile "$LINENO"; then :
12450 libat_cv_have_mode_QI=yes
12451else
12452 libat_cv_have_mode_QI=no
12453fi
12454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455fi
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12457$as_echo "$libat_cv_have_mode_QI" >&6; }
12458
12459 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12460
12461cat >>confdefs.h <<_ACEOF
12462#define HAVE_INT1 $yesno
12463_ACEOF
12464
12465
12466 if test x$libat_cv_have_mode_QI = xyes; then
12467 SIZES="$SIZES 1"
12468 fi
12469
12470
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12472$as_echo_n "checking for 2 byte integer... " >&6; }
22e05272 12473if ${libat_cv_have_mode_HI+:} false; then :
48310492
RH
12474 $as_echo_n "(cached) " >&6
12475else
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477/* end confdefs.h. */
12478int x __attribute__((mode(HI)));
12479_ACEOF
12480if ac_fn_c_try_compile "$LINENO"; then :
12481 libat_cv_have_mode_HI=yes
12482else
12483 libat_cv_have_mode_HI=no
12484fi
12485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486fi
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12488$as_echo "$libat_cv_have_mode_HI" >&6; }
12489
12490 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12491
12492cat >>confdefs.h <<_ACEOF
12493#define HAVE_INT2 $yesno
12494_ACEOF
12495
12496
12497 if test x$libat_cv_have_mode_HI = xyes; then
12498 SIZES="$SIZES 2"
12499 fi
12500
12501
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12503$as_echo_n "checking for 4 byte integer... " >&6; }
22e05272 12504if ${libat_cv_have_mode_SI+:} false; then :
48310492
RH
12505 $as_echo_n "(cached) " >&6
12506else
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508/* end confdefs.h. */
12509int x __attribute__((mode(SI)));
12510_ACEOF
12511if ac_fn_c_try_compile "$LINENO"; then :
12512 libat_cv_have_mode_SI=yes
12513else
12514 libat_cv_have_mode_SI=no
12515fi
12516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517fi
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12519$as_echo "$libat_cv_have_mode_SI" >&6; }
12520
12521 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12522
12523cat >>confdefs.h <<_ACEOF
12524#define HAVE_INT4 $yesno
12525_ACEOF
12526
12527
12528 if test x$libat_cv_have_mode_SI = xyes; then
12529 SIZES="$SIZES 4"
12530 fi
12531
12532
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12534$as_echo_n "checking for 8 byte integer... " >&6; }
22e05272 12535if ${libat_cv_have_mode_DI+:} false; then :
48310492
RH
12536 $as_echo_n "(cached) " >&6
12537else
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539/* end confdefs.h. */
12540int x __attribute__((mode(DI)));
12541_ACEOF
12542if ac_fn_c_try_compile "$LINENO"; then :
12543 libat_cv_have_mode_DI=yes
12544else
12545 libat_cv_have_mode_DI=no
12546fi
12547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548fi
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12550$as_echo "$libat_cv_have_mode_DI" >&6; }
12551
12552 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12553
12554cat >>confdefs.h <<_ACEOF
12555#define HAVE_INT8 $yesno
12556_ACEOF
12557
12558
12559 if test x$libat_cv_have_mode_DI = xyes; then
12560 SIZES="$SIZES 8"
12561 fi
12562
12563
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12565$as_echo_n "checking for 16 byte integer... " >&6; }
22e05272 12566if ${libat_cv_have_mode_TI+:} false; then :
48310492
RH
12567 $as_echo_n "(cached) " >&6
12568else
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570/* end confdefs.h. */
12571int x __attribute__((mode(TI)));
12572_ACEOF
12573if ac_fn_c_try_compile "$LINENO"; then :
12574 libat_cv_have_mode_TI=yes
12575else
12576 libat_cv_have_mode_TI=no
12577fi
12578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579fi
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12581$as_echo "$libat_cv_have_mode_TI" >&6; }
12582
12583 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12584
12585cat >>confdefs.h <<_ACEOF
12586#define HAVE_INT16 $yesno
12587_ACEOF
12588
12589
12590 if test x$libat_cv_have_mode_TI = xyes; then
12591 SIZES="$SIZES 16"
12592 fi
12593
12594
12595
12596# Check for compiler builtins of atomic operations.
12597
12598 # Do link tests if possible, instead asm tests, limited to some platforms
12599 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12600 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12601 atomic_builtins_link_tests=no
12602 if test x$gcc_no_link != xyes; then
12603 # Can do link tests. Limit to some tested platforms
12604 case "$host" in
12605 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
12606 atomic_builtins_link_tests=yes
12607 ;;
12608 esac
12609 fi
12610
12611
12612
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12614$as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
22e05272 12615if ${libat_cv_have_at_ldst_1+:} false; then :
48310492
RH
12616 $as_echo_n "(cached) " >&6
12617else
12618
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620/* end confdefs.h. */
12621
12622int
12623main ()
12624{
12625typedef int T __attribute__((mode(QI)));
12626 T *x; volatile T sink; asm("" : "=g"(x));
12627 sink = __atomic_load_n(x, 0);
12628 __atomic_store_n(x, sink, 0);
12629 ;
12630 return 0;
12631}
12632_ACEOF
12633 if test x$atomic_builtins_link_tests = xyes; then
12634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12635 (eval $ac_link) 2>&5
12636 ac_status=$?
12637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12638 test $ac_status = 0; }; then
12639 eval libat_cv_have_at_ldst_1=yes
12640 else
12641 eval libat_cv_have_at_ldst_1=no
12642 fi
12643 else
12644 old_CFLAGS="$CFLAGS"
12645 # Compile unoptimized.
aaea76b3 12646 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12648 (eval $ac_compile) 2>&5
12649 ac_status=$?
12650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12651 test $ac_status = 0; }; then
12652 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12653 eval libat_cv_have_at_ldst_1=no
12654 else
12655 eval libat_cv_have_at_ldst_1=yes
12656 fi
0fe5522f
RH
12657 else
12658 eval libat_cv_have_at_ldst_1=no
48310492
RH
12659 fi
12660 CFLAGS="$old_CFLAGS"
12661 fi
12662 rm -f conftest*
12663
12664fi
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12666$as_echo "$libat_cv_have_at_ldst_1" >&6; }
12667
12668
12669 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12670
12671cat >>confdefs.h <<_ACEOF
12672#define HAVE_ATOMIC_LDST_1 $yesno
12673_ACEOF
12674
12675
12676
12677
12678
12679
bc437a56 12680
48310492
RH
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12682$as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
22e05272 12683if ${libat_cv_have_at_ldst_2+:} false; then :
48310492
RH
12684 $as_echo_n "(cached) " >&6
12685else
12686
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688/* end confdefs.h. */
12689
12690int
12691main ()
12692{
12693typedef int T __attribute__((mode(HI)));
12694 T *x; volatile T sink; asm("" : "=g"(x));
12695 sink = __atomic_load_n(x, 0);
12696 __atomic_store_n(x, sink, 0);
12697 ;
12698 return 0;
12699}
12700_ACEOF
12701 if test x$atomic_builtins_link_tests = xyes; then
12702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12703 (eval $ac_link) 2>&5
12704 ac_status=$?
12705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12706 test $ac_status = 0; }; then
12707 eval libat_cv_have_at_ldst_2=yes
12708 else
12709 eval libat_cv_have_at_ldst_2=no
12710 fi
12711 else
12712 old_CFLAGS="$CFLAGS"
12713 # Compile unoptimized.
aaea76b3 12714 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12716 (eval $ac_compile) 2>&5
12717 ac_status=$?
12718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12719 test $ac_status = 0; }; then
12720 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12721 eval libat_cv_have_at_ldst_2=no
12722 else
12723 eval libat_cv_have_at_ldst_2=yes
12724 fi
0fe5522f
RH
12725 else
12726 eval libat_cv_have_at_ldst_2=no
48310492
RH
12727 fi
12728 CFLAGS="$old_CFLAGS"
12729 fi
12730 rm -f conftest*
12731
12732fi
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12734$as_echo "$libat_cv_have_at_ldst_2" >&6; }
12735
12736
12737 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12738
12739cat >>confdefs.h <<_ACEOF
12740#define HAVE_ATOMIC_LDST_2 $yesno
12741_ACEOF
12742
12743
12744
12745
12746
12747
bc437a56 12748
48310492
RH
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12750$as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
22e05272 12751if ${libat_cv_have_at_ldst_4+:} false; then :
48310492
RH
12752 $as_echo_n "(cached) " >&6
12753else
12754
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756/* end confdefs.h. */
12757
12758int
12759main ()
12760{
12761typedef int T __attribute__((mode(SI)));
12762 T *x; volatile T sink; asm("" : "=g"(x));
12763 sink = __atomic_load_n(x, 0);
12764 __atomic_store_n(x, sink, 0);
12765 ;
12766 return 0;
12767}
12768_ACEOF
12769 if test x$atomic_builtins_link_tests = xyes; then
12770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12771 (eval $ac_link) 2>&5
12772 ac_status=$?
12773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12774 test $ac_status = 0; }; then
12775 eval libat_cv_have_at_ldst_4=yes
12776 else
12777 eval libat_cv_have_at_ldst_4=no
12778 fi
12779 else
12780 old_CFLAGS="$CFLAGS"
12781 # Compile unoptimized.
aaea76b3 12782 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12784 (eval $ac_compile) 2>&5
12785 ac_status=$?
12786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12787 test $ac_status = 0; }; then
12788 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12789 eval libat_cv_have_at_ldst_4=no
12790 else
12791 eval libat_cv_have_at_ldst_4=yes
12792 fi
0fe5522f
RH
12793 else
12794 eval libat_cv_have_at_ldst_4=no
48310492
RH
12795 fi
12796 CFLAGS="$old_CFLAGS"
12797 fi
12798 rm -f conftest*
12799
12800fi
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12802$as_echo "$libat_cv_have_at_ldst_4" >&6; }
12803
12804
12805 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12806
12807cat >>confdefs.h <<_ACEOF
12808#define HAVE_ATOMIC_LDST_4 $yesno
12809_ACEOF
12810
12811
12812
12813
12814
12815
bc437a56 12816
48310492
RH
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12818$as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
22e05272 12819if ${libat_cv_have_at_ldst_8+:} false; then :
48310492
RH
12820 $as_echo_n "(cached) " >&6
12821else
12822
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824/* end confdefs.h. */
12825
12826int
12827main ()
12828{
12829typedef int T __attribute__((mode(DI)));
12830 T *x; volatile T sink; asm("" : "=g"(x));
12831 sink = __atomic_load_n(x, 0);
12832 __atomic_store_n(x, sink, 0);
12833 ;
12834 return 0;
12835}
12836_ACEOF
12837 if test x$atomic_builtins_link_tests = xyes; then
12838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12839 (eval $ac_link) 2>&5
12840 ac_status=$?
12841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12842 test $ac_status = 0; }; then
12843 eval libat_cv_have_at_ldst_8=yes
12844 else
12845 eval libat_cv_have_at_ldst_8=no
12846 fi
12847 else
12848 old_CFLAGS="$CFLAGS"
12849 # Compile unoptimized.
aaea76b3 12850 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12852 (eval $ac_compile) 2>&5
12853 ac_status=$?
12854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12855 test $ac_status = 0; }; then
12856 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12857 eval libat_cv_have_at_ldst_8=no
12858 else
12859 eval libat_cv_have_at_ldst_8=yes
12860 fi
0fe5522f
RH
12861 else
12862 eval libat_cv_have_at_ldst_8=no
48310492
RH
12863 fi
12864 CFLAGS="$old_CFLAGS"
12865 fi
12866 rm -f conftest*
12867
12868fi
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12870$as_echo "$libat_cv_have_at_ldst_8" >&6; }
12871
12872
12873 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12874
12875cat >>confdefs.h <<_ACEOF
12876#define HAVE_ATOMIC_LDST_8 $yesno
12877_ACEOF
12878
12879
12880
12881
12882
12883
bc437a56 12884
48310492
RH
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12886$as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
22e05272 12887if ${libat_cv_have_at_ldst_16+:} false; then :
48310492
RH
12888 $as_echo_n "(cached) " >&6
12889else
12890
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892/* end confdefs.h. */
12893
12894int
12895main ()
12896{
12897typedef int T __attribute__((mode(TI)));
12898 T *x; volatile T sink; asm("" : "=g"(x));
12899 sink = __atomic_load_n(x, 0);
12900 __atomic_store_n(x, sink, 0);
12901 ;
12902 return 0;
12903}
12904_ACEOF
12905 if test x$atomic_builtins_link_tests = xyes; then
12906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12907 (eval $ac_link) 2>&5
12908 ac_status=$?
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; }; then
12911 eval libat_cv_have_at_ldst_16=yes
12912 else
12913 eval libat_cv_have_at_ldst_16=no
12914 fi
12915 else
12916 old_CFLAGS="$CFLAGS"
12917 # Compile unoptimized.
aaea76b3 12918 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12920 (eval $ac_compile) 2>&5
12921 ac_status=$?
12922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12923 test $ac_status = 0; }; then
12924 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12925 eval libat_cv_have_at_ldst_16=no
12926 else
12927 eval libat_cv_have_at_ldst_16=yes
12928 fi
0fe5522f
RH
12929 else
12930 eval libat_cv_have_at_ldst_16=no
48310492
RH
12931 fi
12932 CFLAGS="$old_CFLAGS"
12933 fi
12934 rm -f conftest*
12935
12936fi
12937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
12938$as_echo "$libat_cv_have_at_ldst_16" >&6; }
12939
12940
12941 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
12942
12943cat >>confdefs.h <<_ACEOF
12944#define HAVE_ATOMIC_LDST_16 $yesno
12945_ACEOF
12946
12947
12948
12949
12950
12951
12952
bc437a56 12953
48310492
RH
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
12955$as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
22e05272 12956if ${libat_cv_have_at_tas_1+:} 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(QI))); T *x; asm("" : "=g"(x));
12967 __atomic_test_and_set(x, 0);
12968 ;
12969 return 0;
12970}
12971_ACEOF
12972 if test x$atomic_builtins_link_tests = xyes; then
12973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12974 (eval $ac_link) 2>&5
12975 ac_status=$?
12976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12977 test $ac_status = 0; }; then
12978 eval libat_cv_have_at_tas_1=yes
12979 else
12980 eval libat_cv_have_at_tas_1=no
12981 fi
12982 else
12983 old_CFLAGS="$CFLAGS"
12984 # Compile unoptimized.
aaea76b3 12985 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12987 (eval $ac_compile) 2>&5
12988 ac_status=$?
12989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12990 test $ac_status = 0; }; then
12991 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12992 eval libat_cv_have_at_tas_1=no
12993 else
12994 eval libat_cv_have_at_tas_1=yes
12995 fi
0fe5522f
RH
12996 else
12997 eval libat_cv_have_at_tas_1=no
48310492
RH
12998 fi
12999 CFLAGS="$old_CFLAGS"
13000 fi
13001 rm -f conftest*
13002
13003fi
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
13005$as_echo "$libat_cv_have_at_tas_1" >&6; }
13006
13007
13008 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
13009
13010cat >>confdefs.h <<_ACEOF
13011#define HAVE_ATOMIC_TAS_1 $yesno
13012_ACEOF
13013
13014
13015
13016
13017
13018
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
13020$as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
22e05272 13021if ${libat_cv_have_at_tas_2+:} false; then :
48310492
RH
13022 $as_echo_n "(cached) " >&6
13023else
13024
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026/* end confdefs.h. */
13027
13028int
13029main ()
13030{
13031typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13032 __atomic_test_and_set(x, 0);
13033 ;
13034 return 0;
13035}
13036_ACEOF
13037 if test x$atomic_builtins_link_tests = xyes; then
13038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13039 (eval $ac_link) 2>&5
13040 ac_status=$?
13041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13042 test $ac_status = 0; }; then
13043 eval libat_cv_have_at_tas_2=yes
13044 else
13045 eval libat_cv_have_at_tas_2=no
13046 fi
13047 else
13048 old_CFLAGS="$CFLAGS"
13049 # Compile unoptimized.
aaea76b3 13050 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13052 (eval $ac_compile) 2>&5
13053 ac_status=$?
13054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13055 test $ac_status = 0; }; then
13056 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13057 eval libat_cv_have_at_tas_2=no
13058 else
13059 eval libat_cv_have_at_tas_2=yes
13060 fi
0fe5522f
RH
13061 else
13062 eval libat_cv_have_at_tas_2=no
48310492
RH
13063 fi
13064 CFLAGS="$old_CFLAGS"
13065 fi
13066 rm -f conftest*
13067
13068fi
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
13070$as_echo "$libat_cv_have_at_tas_2" >&6; }
13071
13072
13073 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
13074
13075cat >>confdefs.h <<_ACEOF
13076#define HAVE_ATOMIC_TAS_2 $yesno
13077_ACEOF
13078
13079
13080
13081
13082
13083
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
13085$as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
22e05272 13086if ${libat_cv_have_at_tas_4+:} false; then :
48310492
RH
13087 $as_echo_n "(cached) " >&6
13088else
13089
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091/* end confdefs.h. */
13092
13093int
13094main ()
13095{
13096typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13097 __atomic_test_and_set(x, 0);
13098 ;
13099 return 0;
13100}
13101_ACEOF
13102 if test x$atomic_builtins_link_tests = xyes; then
13103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13104 (eval $ac_link) 2>&5
13105 ac_status=$?
13106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13107 test $ac_status = 0; }; then
13108 eval libat_cv_have_at_tas_4=yes
13109 else
13110 eval libat_cv_have_at_tas_4=no
13111 fi
13112 else
13113 old_CFLAGS="$CFLAGS"
13114 # Compile unoptimized.
aaea76b3 13115 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13117 (eval $ac_compile) 2>&5
13118 ac_status=$?
13119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13120 test $ac_status = 0; }; then
13121 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13122 eval libat_cv_have_at_tas_4=no
13123 else
13124 eval libat_cv_have_at_tas_4=yes
13125 fi
0fe5522f
RH
13126 else
13127 eval libat_cv_have_at_tas_4=no
48310492
RH
13128 fi
13129 CFLAGS="$old_CFLAGS"
13130 fi
13131 rm -f conftest*
13132
13133fi
13134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
13135$as_echo "$libat_cv_have_at_tas_4" >&6; }
13136
13137
13138 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
13139
13140cat >>confdefs.h <<_ACEOF
13141#define HAVE_ATOMIC_TAS_4 $yesno
13142_ACEOF
13143
13144
13145
13146
13147
13148
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
13150$as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
22e05272 13151if ${libat_cv_have_at_tas_8+:} false; then :
48310492
RH
13152 $as_echo_n "(cached) " >&6
13153else
13154
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156/* end confdefs.h. */
13157
13158int
13159main ()
13160{
13161typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13162 __atomic_test_and_set(x, 0);
13163 ;
13164 return 0;
13165}
13166_ACEOF
13167 if test x$atomic_builtins_link_tests = xyes; then
13168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13169 (eval $ac_link) 2>&5
13170 ac_status=$?
13171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13172 test $ac_status = 0; }; then
13173 eval libat_cv_have_at_tas_8=yes
13174 else
13175 eval libat_cv_have_at_tas_8=no
13176 fi
13177 else
13178 old_CFLAGS="$CFLAGS"
13179 # Compile unoptimized.
aaea76b3 13180 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13182 (eval $ac_compile) 2>&5
13183 ac_status=$?
13184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185 test $ac_status = 0; }; then
13186 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13187 eval libat_cv_have_at_tas_8=no
13188 else
13189 eval libat_cv_have_at_tas_8=yes
13190 fi
0fe5522f
RH
13191 else
13192 eval libat_cv_have_at_tas_8=no
48310492
RH
13193 fi
13194 CFLAGS="$old_CFLAGS"
13195 fi
13196 rm -f conftest*
13197
13198fi
13199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
13200$as_echo "$libat_cv_have_at_tas_8" >&6; }
13201
13202
13203 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
13204
13205cat >>confdefs.h <<_ACEOF
13206#define HAVE_ATOMIC_TAS_8 $yesno
13207_ACEOF
13208
13209
13210
13211
13212
13213
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
13215$as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
22e05272 13216if ${libat_cv_have_at_tas_16+:} false; then :
48310492
RH
13217 $as_echo_n "(cached) " >&6
13218else
13219
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221/* end confdefs.h. */
13222
13223int
13224main ()
13225{
13226typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13227 __atomic_test_and_set(x, 0);
13228 ;
13229 return 0;
13230}
13231_ACEOF
13232 if test x$atomic_builtins_link_tests = xyes; then
13233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13234 (eval $ac_link) 2>&5
13235 ac_status=$?
13236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13237 test $ac_status = 0; }; then
13238 eval libat_cv_have_at_tas_16=yes
13239 else
13240 eval libat_cv_have_at_tas_16=no
13241 fi
13242 else
13243 old_CFLAGS="$CFLAGS"
13244 # Compile unoptimized.
aaea76b3 13245 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13247 (eval $ac_compile) 2>&5
13248 ac_status=$?
13249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 test $ac_status = 0; }; then
13251 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13252 eval libat_cv_have_at_tas_16=no
13253 else
13254 eval libat_cv_have_at_tas_16=yes
13255 fi
0fe5522f
RH
13256 else
13257 eval libat_cv_have_at_tas_16=no
48310492
RH
13258 fi
13259 CFLAGS="$old_CFLAGS"
13260 fi
13261 rm -f conftest*
13262
13263fi
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
13265$as_echo "$libat_cv_have_at_tas_16" >&6; }
13266
13267
13268 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
13269
13270cat >>confdefs.h <<_ACEOF
13271#define HAVE_ATOMIC_TAS_16 $yesno
13272_ACEOF
13273
13274
13275
13276
13277
13278
13279
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
13281$as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
22e05272 13282if ${libat_cv_have_at_exch_1+:} false; then :
48310492
RH
13283 $as_echo_n "(cached) " >&6
13284else
13285
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287/* end confdefs.h. */
13288
13289int
13290main ()
13291{
13292typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
13293 __atomic_exchange_n(x, 0, 0);
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298 if test x$atomic_builtins_link_tests = xyes; then
13299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13300 (eval $ac_link) 2>&5
13301 ac_status=$?
13302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13303 test $ac_status = 0; }; then
13304 eval libat_cv_have_at_exch_1=yes
13305 else
13306 eval libat_cv_have_at_exch_1=no
13307 fi
13308 else
13309 old_CFLAGS="$CFLAGS"
13310 # Compile unoptimized.
aaea76b3 13311 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13313 (eval $ac_compile) 2>&5
13314 ac_status=$?
13315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13316 test $ac_status = 0; }; then
13317 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13318 eval libat_cv_have_at_exch_1=no
13319 else
13320 eval libat_cv_have_at_exch_1=yes
13321 fi
0fe5522f
RH
13322 else
13323 eval libat_cv_have_at_exch_1=no
48310492
RH
13324 fi
13325 CFLAGS="$old_CFLAGS"
13326 fi
13327 rm -f conftest*
13328
13329fi
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
13331$as_echo "$libat_cv_have_at_exch_1" >&6; }
13332
13333
13334 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
13335
13336cat >>confdefs.h <<_ACEOF
13337#define HAVE_ATOMIC_EXCHANGE_1 $yesno
13338_ACEOF
13339
13340
13341
13342
13343
13344
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
13346$as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
22e05272 13347if ${libat_cv_have_at_exch_2+:} false; then :
48310492
RH
13348 $as_echo_n "(cached) " >&6
13349else
13350
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352/* end confdefs.h. */
13353
13354int
13355main ()
13356{
13357typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13358 __atomic_exchange_n(x, 0, 0);
13359 ;
13360 return 0;
13361}
13362_ACEOF
13363 if test x$atomic_builtins_link_tests = xyes; then
13364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13365 (eval $ac_link) 2>&5
13366 ac_status=$?
13367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13368 test $ac_status = 0; }; then
13369 eval libat_cv_have_at_exch_2=yes
13370 else
13371 eval libat_cv_have_at_exch_2=no
13372 fi
13373 else
13374 old_CFLAGS="$CFLAGS"
13375 # Compile unoptimized.
aaea76b3 13376 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13378 (eval $ac_compile) 2>&5
13379 ac_status=$?
13380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381 test $ac_status = 0; }; then
13382 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13383 eval libat_cv_have_at_exch_2=no
13384 else
13385 eval libat_cv_have_at_exch_2=yes
13386 fi
0fe5522f
RH
13387 else
13388 eval libat_cv_have_at_exch_2=no
48310492
RH
13389 fi
13390 CFLAGS="$old_CFLAGS"
13391 fi
13392 rm -f conftest*
13393
13394fi
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13396$as_echo "$libat_cv_have_at_exch_2" >&6; }
13397
13398
13399 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13400
13401cat >>confdefs.h <<_ACEOF
13402#define HAVE_ATOMIC_EXCHANGE_2 $yesno
13403_ACEOF
13404
13405
13406
13407
13408
13409
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13411$as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
22e05272 13412if ${libat_cv_have_at_exch_4+:} false; then :
48310492
RH
13413 $as_echo_n "(cached) " >&6
13414else
13415
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417/* end confdefs.h. */
13418
13419int
13420main ()
13421{
13422typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13423 __atomic_exchange_n(x, 0, 0);
13424 ;
13425 return 0;
13426}
13427_ACEOF
13428 if test x$atomic_builtins_link_tests = xyes; then
13429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13430 (eval $ac_link) 2>&5
13431 ac_status=$?
13432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13433 test $ac_status = 0; }; then
13434 eval libat_cv_have_at_exch_4=yes
13435 else
13436 eval libat_cv_have_at_exch_4=no
13437 fi
13438 else
13439 old_CFLAGS="$CFLAGS"
13440 # Compile unoptimized.
aaea76b3 13441 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13443 (eval $ac_compile) 2>&5
13444 ac_status=$?
13445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13446 test $ac_status = 0; }; then
13447 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13448 eval libat_cv_have_at_exch_4=no
13449 else
13450 eval libat_cv_have_at_exch_4=yes
13451 fi
0fe5522f
RH
13452 else
13453 eval libat_cv_have_at_exch_4=no
48310492
RH
13454 fi
13455 CFLAGS="$old_CFLAGS"
13456 fi
13457 rm -f conftest*
13458
13459fi
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13461$as_echo "$libat_cv_have_at_exch_4" >&6; }
13462
13463
13464 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13465
13466cat >>confdefs.h <<_ACEOF
13467#define HAVE_ATOMIC_EXCHANGE_4 $yesno
13468_ACEOF
13469
13470
13471
13472
13473
13474
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13476$as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
22e05272 13477if ${libat_cv_have_at_exch_8+:} false; then :
48310492
RH
13478 $as_echo_n "(cached) " >&6
13479else
13480
13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482/* end confdefs.h. */
13483
13484int
13485main ()
13486{
13487typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13488 __atomic_exchange_n(x, 0, 0);
13489 ;
13490 return 0;
13491}
13492_ACEOF
13493 if test x$atomic_builtins_link_tests = xyes; then
13494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13495 (eval $ac_link) 2>&5
13496 ac_status=$?
13497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13498 test $ac_status = 0; }; then
13499 eval libat_cv_have_at_exch_8=yes
13500 else
13501 eval libat_cv_have_at_exch_8=no
13502 fi
13503 else
13504 old_CFLAGS="$CFLAGS"
13505 # Compile unoptimized.
aaea76b3 13506 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13508 (eval $ac_compile) 2>&5
13509 ac_status=$?
13510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13511 test $ac_status = 0; }; then
13512 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13513 eval libat_cv_have_at_exch_8=no
13514 else
13515 eval libat_cv_have_at_exch_8=yes
13516 fi
0fe5522f
RH
13517 else
13518 eval libat_cv_have_at_exch_8=no
48310492
RH
13519 fi
13520 CFLAGS="$old_CFLAGS"
13521 fi
13522 rm -f conftest*
13523
13524fi
13525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13526$as_echo "$libat_cv_have_at_exch_8" >&6; }
13527
13528
13529 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13530
13531cat >>confdefs.h <<_ACEOF
13532#define HAVE_ATOMIC_EXCHANGE_8 $yesno
13533_ACEOF
13534
13535
13536
13537
13538
13539
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13541$as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
22e05272 13542if ${libat_cv_have_at_exch_16+:} false; then :
48310492
RH
13543 $as_echo_n "(cached) " >&6
13544else
13545
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547/* end confdefs.h. */
13548
13549int
13550main ()
13551{
13552typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13553 __atomic_exchange_n(x, 0, 0);
13554 ;
13555 return 0;
13556}
13557_ACEOF
13558 if test x$atomic_builtins_link_tests = xyes; then
13559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13560 (eval $ac_link) 2>&5
13561 ac_status=$?
13562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13563 test $ac_status = 0; }; then
13564 eval libat_cv_have_at_exch_16=yes
13565 else
13566 eval libat_cv_have_at_exch_16=no
13567 fi
13568 else
13569 old_CFLAGS="$CFLAGS"
13570 # Compile unoptimized.
aaea76b3 13571 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13573 (eval $ac_compile) 2>&5
13574 ac_status=$?
13575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13576 test $ac_status = 0; }; then
13577 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13578 eval libat_cv_have_at_exch_16=no
13579 else
13580 eval libat_cv_have_at_exch_16=yes
13581 fi
0fe5522f
RH
13582 else
13583 eval libat_cv_have_at_exch_16=no
48310492
RH
13584 fi
13585 CFLAGS="$old_CFLAGS"
13586 fi
13587 rm -f conftest*
13588
13589fi
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13591$as_echo "$libat_cv_have_at_exch_16" >&6; }
13592
13593
13594 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13595
13596cat >>confdefs.h <<_ACEOF
13597#define HAVE_ATOMIC_EXCHANGE_16 $yesno
13598_ACEOF
13599
13600
13601
13602
13603
13604
13605
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13607$as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
22e05272 13608if ${libat_cv_have_at_cas_1+:} false; then :
48310492
RH
13609 $as_echo_n "(cached) " >&6
13610else
13611
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613/* end confdefs.h. */
13614
13615int
13616main ()
13617{
13618typedef int T __attribute__((mode(QI))); T *x, *y;
13619 asm("" : "=g"(x), "=g"(y));
13620 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13621 ;
13622 return 0;
13623}
13624_ACEOF
13625 if test x$atomic_builtins_link_tests = xyes; then
13626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13627 (eval $ac_link) 2>&5
13628 ac_status=$?
13629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13630 test $ac_status = 0; }; then
13631 eval libat_cv_have_at_cas_1=yes
13632 else
13633 eval libat_cv_have_at_cas_1=no
13634 fi
13635 else
13636 old_CFLAGS="$CFLAGS"
13637 # Compile unoptimized.
aaea76b3 13638 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13640 (eval $ac_compile) 2>&5
13641 ac_status=$?
13642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13643 test $ac_status = 0; }; then
13644 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13645 eval libat_cv_have_at_cas_1=no
13646 else
13647 eval libat_cv_have_at_cas_1=yes
13648 fi
0fe5522f
RH
13649 else
13650 eval libat_cv_have_at_cas_1=no
48310492
RH
13651 fi
13652 CFLAGS="$old_CFLAGS"
13653 fi
13654 rm -f conftest*
13655
13656fi
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13658$as_echo "$libat_cv_have_at_cas_1" >&6; }
13659
13660
13661 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13662
13663cat >>confdefs.h <<_ACEOF
13664#define HAVE_ATOMIC_CAS_1 $yesno
13665_ACEOF
13666
13667
13668
13669
13670
13671
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13673$as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
22e05272 13674if ${libat_cv_have_at_cas_2+:} false; then :
48310492
RH
13675 $as_echo_n "(cached) " >&6
13676else
13677
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679/* end confdefs.h. */
13680
13681int
13682main ()
13683{
13684typedef int T __attribute__((mode(HI))); T *x, *y;
13685 asm("" : "=g"(x), "=g"(y));
13686 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13687 ;
13688 return 0;
13689}
13690_ACEOF
13691 if test x$atomic_builtins_link_tests = xyes; then
13692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13693 (eval $ac_link) 2>&5
13694 ac_status=$?
13695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13696 test $ac_status = 0; }; then
13697 eval libat_cv_have_at_cas_2=yes
13698 else
13699 eval libat_cv_have_at_cas_2=no
13700 fi
13701 else
13702 old_CFLAGS="$CFLAGS"
13703 # Compile unoptimized.
aaea76b3 13704 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13706 (eval $ac_compile) 2>&5
13707 ac_status=$?
13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709 test $ac_status = 0; }; then
13710 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13711 eval libat_cv_have_at_cas_2=no
13712 else
13713 eval libat_cv_have_at_cas_2=yes
13714 fi
0fe5522f
RH
13715 else
13716 eval libat_cv_have_at_cas_2=no
48310492
RH
13717 fi
13718 CFLAGS="$old_CFLAGS"
13719 fi
13720 rm -f conftest*
13721
13722fi
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13724$as_echo "$libat_cv_have_at_cas_2" >&6; }
13725
13726
13727 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13728
13729cat >>confdefs.h <<_ACEOF
13730#define HAVE_ATOMIC_CAS_2 $yesno
13731_ACEOF
13732
13733
13734
13735
13736
13737
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13739$as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
22e05272 13740if ${libat_cv_have_at_cas_4+:} false; then :
48310492
RH
13741 $as_echo_n "(cached) " >&6
13742else
13743
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745/* end confdefs.h. */
13746
13747int
13748main ()
13749{
13750typedef int T __attribute__((mode(SI))); T *x, *y;
13751 asm("" : "=g"(x), "=g"(y));
13752 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13753 ;
13754 return 0;
13755}
13756_ACEOF
13757 if test x$atomic_builtins_link_tests = xyes; then
13758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13759 (eval $ac_link) 2>&5
13760 ac_status=$?
13761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13762 test $ac_status = 0; }; then
13763 eval libat_cv_have_at_cas_4=yes
13764 else
13765 eval libat_cv_have_at_cas_4=no
13766 fi
13767 else
13768 old_CFLAGS="$CFLAGS"
13769 # Compile unoptimized.
aaea76b3 13770 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13772 (eval $ac_compile) 2>&5
13773 ac_status=$?
13774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13775 test $ac_status = 0; }; then
13776 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13777 eval libat_cv_have_at_cas_4=no
13778 else
13779 eval libat_cv_have_at_cas_4=yes
13780 fi
0fe5522f
RH
13781 else
13782 eval libat_cv_have_at_cas_4=no
48310492
RH
13783 fi
13784 CFLAGS="$old_CFLAGS"
13785 fi
13786 rm -f conftest*
13787
13788fi
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13790$as_echo "$libat_cv_have_at_cas_4" >&6; }
13791
13792
13793 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13794
13795cat >>confdefs.h <<_ACEOF
13796#define HAVE_ATOMIC_CAS_4 $yesno
13797_ACEOF
13798
13799
13800
13801
13802
13803
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13805$as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
22e05272 13806if ${libat_cv_have_at_cas_8+:} false; then :
48310492
RH
13807 $as_echo_n "(cached) " >&6
13808else
13809
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811/* end confdefs.h. */
13812
13813int
13814main ()
13815{
13816typedef int T __attribute__((mode(DI))); T *x, *y;
13817 asm("" : "=g"(x), "=g"(y));
13818 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13819 ;
13820 return 0;
13821}
13822_ACEOF
13823 if test x$atomic_builtins_link_tests = xyes; then
13824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13825 (eval $ac_link) 2>&5
13826 ac_status=$?
13827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828 test $ac_status = 0; }; then
13829 eval libat_cv_have_at_cas_8=yes
13830 else
13831 eval libat_cv_have_at_cas_8=no
13832 fi
13833 else
13834 old_CFLAGS="$CFLAGS"
13835 # Compile unoptimized.
aaea76b3 13836 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13838 (eval $ac_compile) 2>&5
13839 ac_status=$?
13840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13841 test $ac_status = 0; }; then
13842 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13843 eval libat_cv_have_at_cas_8=no
13844 else
13845 eval libat_cv_have_at_cas_8=yes
13846 fi
0fe5522f
RH
13847 else
13848 eval libat_cv_have_at_cas_8=no
48310492
RH
13849 fi
13850 CFLAGS="$old_CFLAGS"
13851 fi
13852 rm -f conftest*
13853
13854fi
13855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13856$as_echo "$libat_cv_have_at_cas_8" >&6; }
13857
13858
13859 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13860
13861cat >>confdefs.h <<_ACEOF
13862#define HAVE_ATOMIC_CAS_8 $yesno
13863_ACEOF
13864
13865
13866
13867
13868
13869
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13871$as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
22e05272 13872if ${libat_cv_have_at_cas_16+:} false; then :
48310492
RH
13873 $as_echo_n "(cached) " >&6
13874else
13875
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877/* end confdefs.h. */
13878
13879int
13880main ()
13881{
13882typedef int T __attribute__((mode(TI))); T *x, *y;
13883 asm("" : "=g"(x), "=g"(y));
13884 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13885 ;
13886 return 0;
13887}
13888_ACEOF
13889 if test x$atomic_builtins_link_tests = xyes; then
13890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13891 (eval $ac_link) 2>&5
13892 ac_status=$?
13893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13894 test $ac_status = 0; }; then
13895 eval libat_cv_have_at_cas_16=yes
13896 else
13897 eval libat_cv_have_at_cas_16=no
13898 fi
13899 else
13900 old_CFLAGS="$CFLAGS"
13901 # Compile unoptimized.
aaea76b3 13902 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13904 (eval $ac_compile) 2>&5
13905 ac_status=$?
13906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13907 test $ac_status = 0; }; then
13908 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13909 eval libat_cv_have_at_cas_16=no
13910 else
13911 eval libat_cv_have_at_cas_16=yes
13912 fi
0fe5522f
RH
13913 else
13914 eval libat_cv_have_at_cas_16=no
48310492
RH
13915 fi
13916 CFLAGS="$old_CFLAGS"
13917 fi
13918 rm -f conftest*
13919
13920fi
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13922$as_echo "$libat_cv_have_at_cas_16" >&6; }
13923
13924
13925 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13926
13927cat >>confdefs.h <<_ACEOF
13928#define HAVE_ATOMIC_CAS_16 $yesno
13929_ACEOF
13930
13931
13932
13933
13934
13935
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
13938$as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
22e05272 13939if ${libat_cv_have_at_fadd_1+:} false; then :
48310492
RH
13940 $as_echo_n "(cached) " >&6
13941else
13942
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944/* end confdefs.h. */
13945
13946int
13947main ()
13948{
13949typedef int T __attribute__((mode(QI))); T *x, y;
13950 asm("" : "=g"(x), "=g"(y));
13951 __atomic_fetch_add (x, y, 0);
13952 __atomic_add_fetch (x, y, 0);
13953 ;
13954 return 0;
13955}
13956_ACEOF
13957 if test x$atomic_builtins_link_tests = xyes; then
13958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13959 (eval $ac_link) 2>&5
13960 ac_status=$?
13961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13962 test $ac_status = 0; }; then
13963 eval libat_cv_have_at_fadd_1=yes
13964 else
13965 eval libat_cv_have_at_fadd_1=no
13966 fi
13967 else
13968 old_CFLAGS="$CFLAGS"
13969 # Compile unoptimized.
aaea76b3 13970 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13972 (eval $ac_compile) 2>&5
13973 ac_status=$?
13974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13975 test $ac_status = 0; }; then
13976 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13977 eval libat_cv_have_at_fadd_1=no
13978 else
13979 eval libat_cv_have_at_fadd_1=yes
13980 fi
0fe5522f
RH
13981 else
13982 eval libat_cv_have_at_fadd_1=no
48310492
RH
13983 fi
13984 CFLAGS="$old_CFLAGS"
13985 fi
13986 rm -f conftest*
13987
13988fi
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
13990$as_echo "$libat_cv_have_at_fadd_1" >&6; }
13991
13992
13993 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
13994
13995cat >>confdefs.h <<_ACEOF
13996#define HAVE_ATOMIC_FETCH_ADD_1 $yesno
13997_ACEOF
13998
13999
14000
14001
14002
14003
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
14005$as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
22e05272 14006if ${libat_cv_have_at_fadd_2+:} false; then :
48310492
RH
14007 $as_echo_n "(cached) " >&6
14008else
14009
14010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011/* end confdefs.h. */
14012
14013int
14014main ()
14015{
14016typedef int T __attribute__((mode(HI))); T *x, y;
14017 asm("" : "=g"(x), "=g"(y));
14018 __atomic_fetch_add (x, y, 0);
14019 __atomic_add_fetch (x, y, 0);
14020 ;
14021 return 0;
14022}
14023_ACEOF
14024 if test x$atomic_builtins_link_tests = xyes; then
14025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14026 (eval $ac_link) 2>&5
14027 ac_status=$?
14028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14029 test $ac_status = 0; }; then
14030 eval libat_cv_have_at_fadd_2=yes
14031 else
14032 eval libat_cv_have_at_fadd_2=no
14033 fi
14034 else
14035 old_CFLAGS="$CFLAGS"
14036 # Compile unoptimized.
aaea76b3 14037 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14039 (eval $ac_compile) 2>&5
14040 ac_status=$?
14041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14042 test $ac_status = 0; }; then
14043 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14044 eval libat_cv_have_at_fadd_2=no
14045 else
14046 eval libat_cv_have_at_fadd_2=yes
14047 fi
0fe5522f
RH
14048 else
14049 eval libat_cv_have_at_fadd_2=no
48310492
RH
14050 fi
14051 CFLAGS="$old_CFLAGS"
14052 fi
14053 rm -f conftest*
14054
14055fi
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
14057$as_echo "$libat_cv_have_at_fadd_2" >&6; }
14058
14059
14060 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
14061
14062cat >>confdefs.h <<_ACEOF
14063#define HAVE_ATOMIC_FETCH_ADD_2 $yesno
14064_ACEOF
14065
14066
14067
14068
14069
14070
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
14072$as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
22e05272 14073if ${libat_cv_have_at_fadd_4+:} false; then :
48310492
RH
14074 $as_echo_n "(cached) " >&6
14075else
14076
14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078/* end confdefs.h. */
14079
14080int
14081main ()
14082{
14083typedef int T __attribute__((mode(SI))); T *x, y;
14084 asm("" : "=g"(x), "=g"(y));
14085 __atomic_fetch_add (x, y, 0);
14086 __atomic_add_fetch (x, y, 0);
14087 ;
14088 return 0;
14089}
14090_ACEOF
14091 if test x$atomic_builtins_link_tests = xyes; then
14092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14093 (eval $ac_link) 2>&5
14094 ac_status=$?
14095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096 test $ac_status = 0; }; then
14097 eval libat_cv_have_at_fadd_4=yes
14098 else
14099 eval libat_cv_have_at_fadd_4=no
14100 fi
14101 else
14102 old_CFLAGS="$CFLAGS"
14103 # Compile unoptimized.
aaea76b3 14104 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14106 (eval $ac_compile) 2>&5
14107 ac_status=$?
14108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14109 test $ac_status = 0; }; then
14110 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14111 eval libat_cv_have_at_fadd_4=no
14112 else
14113 eval libat_cv_have_at_fadd_4=yes
14114 fi
0fe5522f
RH
14115 else
14116 eval libat_cv_have_at_fadd_4=no
48310492
RH
14117 fi
14118 CFLAGS="$old_CFLAGS"
14119 fi
14120 rm -f conftest*
14121
14122fi
14123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
14124$as_echo "$libat_cv_have_at_fadd_4" >&6; }
14125
14126
14127 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
14128
14129cat >>confdefs.h <<_ACEOF
14130#define HAVE_ATOMIC_FETCH_ADD_4 $yesno
14131_ACEOF
14132
14133
14134
14135
14136
14137
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
14139$as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
22e05272 14140if ${libat_cv_have_at_fadd_8+:} false; then :
48310492
RH
14141 $as_echo_n "(cached) " >&6
14142else
14143
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145/* end confdefs.h. */
14146
14147int
14148main ()
14149{
14150typedef int T __attribute__((mode(DI))); T *x, y;
14151 asm("" : "=g"(x), "=g"(y));
14152 __atomic_fetch_add (x, y, 0);
14153 __atomic_add_fetch (x, y, 0);
14154 ;
14155 return 0;
14156}
14157_ACEOF
14158 if test x$atomic_builtins_link_tests = xyes; then
14159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14160 (eval $ac_link) 2>&5
14161 ac_status=$?
14162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163 test $ac_status = 0; }; then
14164 eval libat_cv_have_at_fadd_8=yes
14165 else
14166 eval libat_cv_have_at_fadd_8=no
14167 fi
14168 else
14169 old_CFLAGS="$CFLAGS"
14170 # Compile unoptimized.
aaea76b3 14171 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14173 (eval $ac_compile) 2>&5
14174 ac_status=$?
14175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14176 test $ac_status = 0; }; then
14177 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14178 eval libat_cv_have_at_fadd_8=no
14179 else
14180 eval libat_cv_have_at_fadd_8=yes
14181 fi
0fe5522f
RH
14182 else
14183 eval libat_cv_have_at_fadd_8=no
48310492
RH
14184 fi
14185 CFLAGS="$old_CFLAGS"
14186 fi
14187 rm -f conftest*
14188
14189fi
14190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
14191$as_echo "$libat_cv_have_at_fadd_8" >&6; }
14192
14193
14194 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
14195
14196cat >>confdefs.h <<_ACEOF
14197#define HAVE_ATOMIC_FETCH_ADD_8 $yesno
14198_ACEOF
14199
14200
14201
14202
14203
14204
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
14206$as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
22e05272 14207if ${libat_cv_have_at_fadd_16+:} false; then :
48310492
RH
14208 $as_echo_n "(cached) " >&6
14209else
14210
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212/* end confdefs.h. */
14213
14214int
14215main ()
14216{
14217typedef int T __attribute__((mode(TI))); T *x, y;
14218 asm("" : "=g"(x), "=g"(y));
14219 __atomic_fetch_add (x, y, 0);
14220 __atomic_add_fetch (x, y, 0);
14221 ;
14222 return 0;
14223}
14224_ACEOF
14225 if test x$atomic_builtins_link_tests = xyes; then
14226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14227 (eval $ac_link) 2>&5
14228 ac_status=$?
14229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14230 test $ac_status = 0; }; then
14231 eval libat_cv_have_at_fadd_16=yes
14232 else
14233 eval libat_cv_have_at_fadd_16=no
14234 fi
14235 else
14236 old_CFLAGS="$CFLAGS"
14237 # Compile unoptimized.
aaea76b3 14238 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14240 (eval $ac_compile) 2>&5
14241 ac_status=$?
14242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243 test $ac_status = 0; }; then
14244 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14245 eval libat_cv_have_at_fadd_16=no
14246 else
14247 eval libat_cv_have_at_fadd_16=yes
14248 fi
0fe5522f
RH
14249 else
14250 eval libat_cv_have_at_fadd_16=no
48310492
RH
14251 fi
14252 CFLAGS="$old_CFLAGS"
14253 fi
14254 rm -f conftest*
14255
14256fi
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
14258$as_echo "$libat_cv_have_at_fadd_16" >&6; }
14259
14260
14261 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
14262
14263cat >>confdefs.h <<_ACEOF
14264#define HAVE_ATOMIC_FETCH_ADD_16 $yesno
14265_ACEOF
14266
14267
14268
14269
14270
14271
14272
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
14274$as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
22e05272 14275if ${libat_cv_have_at_fop_1+:} false; then :
48310492
RH
14276 $as_echo_n "(cached) " >&6
14277else
14278
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280/* end confdefs.h. */
14281
14282int
14283main ()
14284{
14285typedef int T __attribute__((mode(QI))); T *x, y;
14286 asm("" : "=g"(x), "=g"(y));
14287 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14288 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14289 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14290 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14291 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14292 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14293 ;
14294 return 0;
14295}
14296_ACEOF
14297 if test x$atomic_builtins_link_tests = xyes; then
14298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14299 (eval $ac_link) 2>&5
14300 ac_status=$?
14301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14302 test $ac_status = 0; }; then
14303 eval libat_cv_have_at_fop_1=yes
14304 else
14305 eval libat_cv_have_at_fop_1=no
14306 fi
14307 else
14308 old_CFLAGS="$CFLAGS"
14309 # Compile unoptimized.
aaea76b3 14310 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14312 (eval $ac_compile) 2>&5
14313 ac_status=$?
14314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14315 test $ac_status = 0; }; then
14316 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14317 eval libat_cv_have_at_fop_1=no
14318 else
14319 eval libat_cv_have_at_fop_1=yes
14320 fi
0fe5522f
RH
14321 else
14322 eval libat_cv_have_at_fop_1=no
48310492
RH
14323 fi
14324 CFLAGS="$old_CFLAGS"
14325 fi
14326 rm -f conftest*
14327
14328fi
14329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
14330$as_echo "$libat_cv_have_at_fop_1" >&6; }
14331
14332
14333 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
14334
14335cat >>confdefs.h <<_ACEOF
14336#define HAVE_ATOMIC_FETCH_OP_1 $yesno
14337_ACEOF
14338
14339
14340
14341
14342
14343
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
14345$as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
22e05272 14346if ${libat_cv_have_at_fop_2+:} false; then :
48310492
RH
14347 $as_echo_n "(cached) " >&6
14348else
14349
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351/* end confdefs.h. */
14352
14353int
14354main ()
14355{
14356typedef int T __attribute__((mode(HI))); T *x, y;
14357 asm("" : "=g"(x), "=g"(y));
14358 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14359 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14360 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14361 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14362 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14363 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14364 ;
14365 return 0;
14366}
14367_ACEOF
14368 if test x$atomic_builtins_link_tests = xyes; then
14369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14370 (eval $ac_link) 2>&5
14371 ac_status=$?
14372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14373 test $ac_status = 0; }; then
14374 eval libat_cv_have_at_fop_2=yes
14375 else
14376 eval libat_cv_have_at_fop_2=no
14377 fi
14378 else
14379 old_CFLAGS="$CFLAGS"
14380 # Compile unoptimized.
aaea76b3 14381 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14383 (eval $ac_compile) 2>&5
14384 ac_status=$?
14385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14386 test $ac_status = 0; }; then
14387 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14388 eval libat_cv_have_at_fop_2=no
14389 else
14390 eval libat_cv_have_at_fop_2=yes
14391 fi
0fe5522f
RH
14392 else
14393 eval libat_cv_have_at_fop_2=no
48310492
RH
14394 fi
14395 CFLAGS="$old_CFLAGS"
14396 fi
14397 rm -f conftest*
14398
14399fi
14400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14401$as_echo "$libat_cv_have_at_fop_2" >&6; }
14402
14403
14404 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14405
14406cat >>confdefs.h <<_ACEOF
14407#define HAVE_ATOMIC_FETCH_OP_2 $yesno
14408_ACEOF
14409
14410
14411
14412
14413
14414
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14416$as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
22e05272 14417if ${libat_cv_have_at_fop_4+:} false; then :
48310492
RH
14418 $as_echo_n "(cached) " >&6
14419else
14420
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422/* end confdefs.h. */
14423
14424int
14425main ()
14426{
14427typedef int T __attribute__((mode(SI))); T *x, y;
14428 asm("" : "=g"(x), "=g"(y));
14429 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14430 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14431 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14432 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14433 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14434 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14435 ;
14436 return 0;
14437}
14438_ACEOF
14439 if test x$atomic_builtins_link_tests = xyes; then
14440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14441 (eval $ac_link) 2>&5
14442 ac_status=$?
14443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14444 test $ac_status = 0; }; then
14445 eval libat_cv_have_at_fop_4=yes
14446 else
14447 eval libat_cv_have_at_fop_4=no
14448 fi
14449 else
14450 old_CFLAGS="$CFLAGS"
14451 # Compile unoptimized.
aaea76b3 14452 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14454 (eval $ac_compile) 2>&5
14455 ac_status=$?
14456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14457 test $ac_status = 0; }; then
14458 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14459 eval libat_cv_have_at_fop_4=no
14460 else
14461 eval libat_cv_have_at_fop_4=yes
14462 fi
0fe5522f
RH
14463 else
14464 eval libat_cv_have_at_fop_4=no
48310492
RH
14465 fi
14466 CFLAGS="$old_CFLAGS"
14467 fi
14468 rm -f conftest*
14469
14470fi
14471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14472$as_echo "$libat_cv_have_at_fop_4" >&6; }
14473
14474
14475 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14476
14477cat >>confdefs.h <<_ACEOF
14478#define HAVE_ATOMIC_FETCH_OP_4 $yesno
14479_ACEOF
14480
14481
14482
14483
14484
14485
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14487$as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
22e05272 14488if ${libat_cv_have_at_fop_8+:} false; then :
48310492
RH
14489 $as_echo_n "(cached) " >&6
14490else
14491
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493/* end confdefs.h. */
14494
14495int
14496main ()
14497{
14498typedef int T __attribute__((mode(DI))); T *x, y;
14499 asm("" : "=g"(x), "=g"(y));
14500 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14501 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14502 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14503 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14504 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14505 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14506 ;
14507 return 0;
14508}
14509_ACEOF
14510 if test x$atomic_builtins_link_tests = xyes; then
14511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14512 (eval $ac_link) 2>&5
14513 ac_status=$?
14514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14515 test $ac_status = 0; }; then
14516 eval libat_cv_have_at_fop_8=yes
14517 else
14518 eval libat_cv_have_at_fop_8=no
14519 fi
14520 else
14521 old_CFLAGS="$CFLAGS"
14522 # Compile unoptimized.
aaea76b3 14523 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14525 (eval $ac_compile) 2>&5
14526 ac_status=$?
14527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14528 test $ac_status = 0; }; then
14529 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14530 eval libat_cv_have_at_fop_8=no
14531 else
14532 eval libat_cv_have_at_fop_8=yes
14533 fi
0fe5522f
RH
14534 else
14535 eval libat_cv_have_at_fop_8=no
48310492
RH
14536 fi
14537 CFLAGS="$old_CFLAGS"
14538 fi
14539 rm -f conftest*
14540
14541fi
14542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14543$as_echo "$libat_cv_have_at_fop_8" >&6; }
14544
14545
14546 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14547
14548cat >>confdefs.h <<_ACEOF
14549#define HAVE_ATOMIC_FETCH_OP_8 $yesno
14550_ACEOF
14551
14552
14553
14554
14555
14556
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14558$as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
22e05272 14559if ${libat_cv_have_at_fop_16+:} false; then :
48310492
RH
14560 $as_echo_n "(cached) " >&6
14561else
14562
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564/* end confdefs.h. */
14565
14566int
14567main ()
14568{
14569typedef int T __attribute__((mode(TI))); T *x, y;
14570 asm("" : "=g"(x), "=g"(y));
14571 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14572 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14573 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14574 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14575 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14576 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14577 ;
14578 return 0;
14579}
14580_ACEOF
14581 if test x$atomic_builtins_link_tests = xyes; then
14582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14583 (eval $ac_link) 2>&5
14584 ac_status=$?
14585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586 test $ac_status = 0; }; then
14587 eval libat_cv_have_at_fop_16=yes
14588 else
14589 eval libat_cv_have_at_fop_16=no
14590 fi
14591 else
14592 old_CFLAGS="$CFLAGS"
14593 # Compile unoptimized.
aaea76b3 14594 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14596 (eval $ac_compile) 2>&5
14597 ac_status=$?
14598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14599 test $ac_status = 0; }; then
14600 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14601 eval libat_cv_have_at_fop_16=no
14602 else
14603 eval libat_cv_have_at_fop_16=yes
14604 fi
0fe5522f
RH
14605 else
14606 eval libat_cv_have_at_fop_16=no
48310492
RH
14607 fi
14608 CFLAGS="$old_CFLAGS"
14609 fi
14610 rm -f conftest*
14611
14612fi
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14614$as_echo "$libat_cv_have_at_fop_16" >&6; }
14615
14616
14617 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14618
14619cat >>confdefs.h <<_ACEOF
14620#define HAVE_ATOMIC_FETCH_OP_16 $yesno
14621_ACEOF
14622
14623
14624
14625
14626
14627
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14629$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22e05272 14630if ${ac_cv_c_bigendian+:} false; then :
48310492
RH
14631 $as_echo_n "(cached) " >&6
14632else
14633 ac_cv_c_bigendian=unknown
14634 # See if we're dealing with a universal compiler.
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636/* end confdefs.h. */
14637#ifndef __APPLE_CC__
14638 not a universal capable compiler
14639 #endif
14640 typedef int dummy;
14641
14642_ACEOF
14643if ac_fn_c_try_compile "$LINENO"; then :
14644
14645 # Check for potential -arch flags. It is not universal unless
14646 # there are at least two -arch flags with different values.
14647 ac_arch=
14648 ac_prev=
14649 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14650 if test -n "$ac_prev"; then
14651 case $ac_word in
14652 i?86 | x86_64 | ppc | ppc64)
14653 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14654 ac_arch=$ac_word
14655 else
14656 ac_cv_c_bigendian=universal
14657 break
14658 fi
14659 ;;
14660 esac
14661 ac_prev=
14662 elif test "x$ac_word" = "x-arch"; then
14663 ac_prev=arch
14664 fi
14665 done
14666fi
14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14668 if test $ac_cv_c_bigendian = unknown; then
14669 # See if sys/param.h defines the BYTE_ORDER macro.
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671/* end confdefs.h. */
14672#include <sys/types.h>
14673 #include <sys/param.h>
14674
14675int
14676main ()
14677{
14678#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14679 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14680 && LITTLE_ENDIAN)
14681 bogus endian macros
14682 #endif
14683
14684 ;
14685 return 0;
14686}
14687_ACEOF
14688if ac_fn_c_try_compile "$LINENO"; then :
14689 # It does; now see whether it defined to BIG_ENDIAN or not.
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691/* end confdefs.h. */
14692#include <sys/types.h>
14693 #include <sys/param.h>
14694
14695int
14696main ()
14697{
14698#if BYTE_ORDER != BIG_ENDIAN
14699 not big endian
14700 #endif
14701
14702 ;
14703 return 0;
14704}
14705_ACEOF
14706if ac_fn_c_try_compile "$LINENO"; then :
14707 ac_cv_c_bigendian=yes
14708else
14709 ac_cv_c_bigendian=no
14710fi
14711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14712fi
14713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714 fi
14715 if test $ac_cv_c_bigendian = unknown; then
14716 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718/* end confdefs.h. */
14719#include <limits.h>
14720
14721int
14722main ()
14723{
14724#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14725 bogus endian macros
14726 #endif
14727
14728 ;
14729 return 0;
14730}
14731_ACEOF
14732if ac_fn_c_try_compile "$LINENO"; then :
14733 # It does; now see whether it defined to _BIG_ENDIAN or not.
14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735/* end confdefs.h. */
14736#include <limits.h>
14737
14738int
14739main ()
14740{
14741#ifndef _BIG_ENDIAN
14742 not big endian
14743 #endif
14744
14745 ;
14746 return 0;
14747}
14748_ACEOF
14749if ac_fn_c_try_compile "$LINENO"; then :
14750 ac_cv_c_bigendian=yes
14751else
14752 ac_cv_c_bigendian=no
14753fi
14754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755fi
14756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14757 fi
14758 if test $ac_cv_c_bigendian = unknown; then
14759 # Compile a test program.
14760 if test "$cross_compiling" = yes; then :
14761 # Try to guess by grepping values from an object file.
14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763/* end confdefs.h. */
14764short int ascii_mm[] =
14765 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14766 short int ascii_ii[] =
14767 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14768 int use_ascii (int i) {
14769 return ascii_mm[i] + ascii_ii[i];
14770 }
14771 short int ebcdic_ii[] =
14772 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14773 short int ebcdic_mm[] =
14774 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14775 int use_ebcdic (int i) {
14776 return ebcdic_mm[i] + ebcdic_ii[i];
14777 }
14778 extern int foo;
14779
14780int
14781main ()
14782{
14783return use_ascii (foo) == use_ebcdic (foo);
14784 ;
14785 return 0;
14786}
14787_ACEOF
14788if ac_fn_c_try_compile "$LINENO"; then :
14789 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14790 ac_cv_c_bigendian=yes
14791 fi
14792 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14793 if test "$ac_cv_c_bigendian" = unknown; then
14794 ac_cv_c_bigendian=no
14795 else
14796 # finding both strings is unlikely to happen, but who knows?
14797 ac_cv_c_bigendian=unknown
14798 fi
14799 fi
14800fi
14801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14802else
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804/* end confdefs.h. */
14805$ac_includes_default
14806int
14807main ()
14808{
14809
14810 /* Are we little or big endian? From Harbison&Steele. */
14811 union
14812 {
14813 long int l;
14814 char c[sizeof (long int)];
14815 } u;
14816 u.l = 1;
14817 return u.c[sizeof (long int) - 1] == 1;
14818
14819 ;
14820 return 0;
14821}
14822_ACEOF
14823if ac_fn_c_try_run "$LINENO"; then :
14824 ac_cv_c_bigendian=no
14825else
14826 ac_cv_c_bigendian=yes
14827fi
14828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14829 conftest.$ac_objext conftest.beam conftest.$ac_ext
14830fi
14831
14832 fi
14833fi
14834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14835$as_echo "$ac_cv_c_bigendian" >&6; }
14836 case $ac_cv_c_bigendian in #(
14837 yes)
14838 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14839;; #(
14840 no)
14841 ;; #(
14842 universal)
14843
14844$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14845
14846 ;; #(
14847 *)
22e05272 14848 as_fn_error $? "unknown endianness
48310492
RH
14849 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14850 esac
14851
14852# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14853
14854
14855
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14857$as_echo_n "checking for the word size... " >&6; }
22e05272 14858if ${libat_cv_wordsize+:} false; then :
48310492
RH
14859 $as_echo_n "(cached) " >&6
14860else
14861 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14862
14863else
22e05272 14864 as_fn_error $? "Could not determine word size." "$LINENO" 5
48310492
RH
14865fi
14866
14867fi
14868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14869$as_echo "$libat_cv_wordsize" >&6; }
14870
14871cat >>confdefs.h <<_ACEOF
14872#define WORDSIZE $libat_cv_wordsize
14873_ACEOF
14874
14875
14876
14877# Check to see if -pthread or -lpthread is needed. Prefer the former.
14878# In case the pthread.h system header is not found, this test will fail.
14879case " $config_path " in
14880 *" posix "*)
14881 XPCFLAGS=""
14882 CFLAGS="$CFLAGS -pthread"
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884/* end confdefs.h. */
14885#include <pthread.h>
14886 void *g(void *d) { return NULL; }
14887int
14888main ()
14889{
14890pthread_t t; pthread_create(&t,NULL,g,NULL);
14891 ;
14892 return 0;
14893}
14894_ACEOF
14895if ac_fn_c_try_link "$LINENO"; then :
14896 XPCFLAGS=" -pthread"
14897else
14898 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900/* end confdefs.h. */
14901#include <pthread.h>
14902 void *g(void *d) { return NULL; }
14903int
14904main ()
14905{
14906pthread_t t; pthread_create(&t,NULL,g,NULL);
14907 ;
14908 return 0;
14909}
14910_ACEOF
14911if ac_fn_c_try_link "$LINENO"; then :
14912
14913else
22e05272 14914 as_fn_error $? "Pthreads are required to build libatomic" "$LINENO" 5
48310492
RH
14915fi
14916rm -f core conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext conftest.$ac_ext
14918fi
14919rm -f core conftest.err conftest.$ac_objext \
14920 conftest$ac_exeext conftest.$ac_ext
e9885be5 14921 CFLAGS="$save_CFLAGS $XPCFLAGS"
48310492
RH
14922 ;;
14923esac
14924
14925# See what sort of export controls are available.
14926
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14928$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
22e05272 14929if ${libat_cv_have_attribute_visibility+:} false; then :
48310492
RH
14930 $as_echo_n "(cached) " >&6
14931else
14932
14933 save_CFLAGS="$CFLAGS"
14934 CFLAGS="$CFLAGS -Werror"
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936/* end confdefs.h. */
14937void __attribute__((visibility("hidden"))) foo(void) { }
14938int
14939main ()
14940{
14941
14942 ;
14943 return 0;
14944}
14945_ACEOF
14946if ac_fn_c_try_compile "$LINENO"; then :
14947 libat_cv_have_attribute_visibility=yes
14948else
14949 libat_cv_have_attribute_visibility=no
14950fi
14951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952 CFLAGS="$save_CFLAGS"
14953fi
14954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
14955$as_echo "$libat_cv_have_attribute_visibility" >&6; }
14956 if test $libat_cv_have_attribute_visibility = yes; then
14957
14958$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14959
14960 fi
14961
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14963$as_echo_n "checking whether the target supports dllexport... " >&6; }
22e05272 14964if ${libat_cv_have_attribute_dllexport+:} false; then :
48310492
RH
14965 $as_echo_n "(cached) " >&6
14966else
14967
14968 save_CFLAGS="$CFLAGS"
14969 CFLAGS="$CFLAGS -Werror"
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971/* end confdefs.h. */
14972void __attribute__((dllexport)) foo(void) { }
14973int
14974main ()
14975{
14976
14977 ;
14978 return 0;
14979}
14980_ACEOF
14981if ac_fn_c_try_compile "$LINENO"; then :
14982 libat_cv_have_attribute_dllexport=yes
14983else
14984 libat_cv_have_attribute_dllexport=no
14985fi
14986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14987 CFLAGS="$save_CFLAGS"
14988fi
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
14990$as_echo "$libat_cv_have_attribute_dllexport" >&6; }
14991 if test $libat_cv_have_attribute_dllexport = yes; then
14992
14993$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14994
14995 fi
14996
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14998$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
22e05272 14999if ${libat_cv_have_attribute_alias+:} false; then :
48310492
RH
15000 $as_echo_n "(cached) " >&6
15001else
15002
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004/* end confdefs.h. */
15005
15006void foo(void) { }
15007extern void bar(void) __attribute__((alias("foo")));
15008int
15009main ()
15010{
15011bar();
15012 ;
15013 return 0;
15014}
15015_ACEOF
15016if ac_fn_c_try_link "$LINENO"; then :
15017 libat_cv_have_attribute_alias=yes
15018else
15019 libat_cv_have_attribute_alias=no
15020fi
15021rm -f core conftest.err conftest.$ac_objext \
15022 conftest$ac_exeext conftest.$ac_ext
15023fi
15024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
15025$as_echo "$libat_cv_have_attribute_alias" >&6; }
15026 if test $libat_cv_have_attribute_alias = yes; then
15027
15028$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15029
15030 fi
15031if test x$try_ifunc = xyes; then
15032
40448151
TS
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
15034$as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
22e05272 15035if ${libat_cv_have_ifunc+:} false; then :
48310492
RH
15036 $as_echo_n "(cached) " >&6
15037else
15038
15039 save_CFLAGS="$CFLAGS"
15040 CFLAGS="$CFLAGS -Werror"
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042/* end confdefs.h. */
15043
15044 int foo_alt(void) { return 0; }
bc437a56
MS
15045 typedef int F (void);
15046 F *foo_sel(void) { return foo_alt; }
48310492
RH
15047 int foo(void) __attribute__((ifunc("foo_sel")));
15048int
15049main ()
15050{
15051return foo();
15052 ;
15053 return 0;
15054}
15055_ACEOF
15056if ac_fn_c_try_link "$LINENO"; then :
15057 libat_cv_have_ifunc=yes
15058else
15059 libat_cv_have_ifunc=no
15060fi
15061rm -f core conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
15063fi
15064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
15065$as_echo "$libat_cv_have_ifunc" >&6; }
15066
15067 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
15068
15069cat >>confdefs.h <<_ACEOF
15070#define HAVE_IFUNC $yesno
15071_ACEOF
15072
15073
15074
15075fi
15076
15077# Check linker support.
15078
15079
15080# Check whether --with-gnu-ld was given.
15081if test "${with_gnu_ld+set}" = set; then :
15082 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15083else
15084 with_gnu_ld=no
15085fi
15086
15087ac_prog=ld
15088if test "$GCC" = yes; then
15089 # Check if gcc -print-prog-name=ld gives a path.
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15091$as_echo_n "checking for ld used by $CC... " >&6; }
15092 case $host in
15093 *-*-mingw*)
15094 # gcc leaves a trailing carriage return which upsets mingw
15095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15096 *)
15097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15098 esac
15099 case $ac_prog in
15100 # Accept absolute paths.
15101 [\\/]* | ?:[\\/]*)
15102 re_direlt='/[^/][^/]*/\.\./'
15103 # Canonicalize the pathname of ld
15104 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15105 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15106 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15107 done
15108 test -z "$LD" && LD="$ac_prog"
15109 ;;
15110 "")
15111 # If it fails, then pretend we aren't using GCC.
15112 ac_prog=ld
15113 ;;
15114 *)
15115 # If it is relative, then search for the first ld in PATH.
15116 with_gnu_ld=unknown
15117 ;;
15118 esac
15119elif test "$with_gnu_ld" = yes; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15121$as_echo_n "checking for GNU ld... " >&6; }
15122else
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15124$as_echo_n "checking for non-GNU ld... " >&6; }
15125fi
22e05272 15126if ${lt_cv_path_LD+:} false; then :
48310492
RH
15127 $as_echo_n "(cached) " >&6
15128else
15129 if test -z "$LD"; then
15130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15131 for ac_dir in $PATH; do
15132 IFS="$lt_save_ifs"
15133 test -z "$ac_dir" && ac_dir=.
15134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15135 lt_cv_path_LD="$ac_dir/$ac_prog"
15136 # Check to see if the program is GNU ld. I'd rather use --version,
15137 # but apparently some variants of GNU ld only accept -v.
15138 # Break only if it was the GNU/non-GNU ld that we prefer.
15139 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15140 *GNU* | *'with BFD'*)
15141 test "$with_gnu_ld" != no && break
15142 ;;
15143 *)
15144 test "$with_gnu_ld" != yes && break
15145 ;;
15146 esac
15147 fi
15148 done
15149 IFS="$lt_save_ifs"
15150else
15151 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15152fi
15153fi
15154
15155LD="$lt_cv_path_LD"
15156if test -n "$LD"; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15158$as_echo "$LD" >&6; }
15159else
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161$as_echo "no" >&6; }
15162fi
22e05272 15163test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
48310492
RH
15164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15165$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 15166if ${lt_cv_prog_gnu_ld+:} false; then :
48310492
RH
15167 $as_echo_n "(cached) " >&6
15168else
15169 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15170case `$LD -v 2>&1 </dev/null` in
15171*GNU* | *'with BFD'*)
15172 lt_cv_prog_gnu_ld=yes
15173 ;;
15174*)
15175 lt_cv_prog_gnu_ld=no
15176 ;;
15177esac
15178fi
15179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15180$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15181with_gnu_ld=$lt_cv_prog_gnu_ld
15182
15183
15184
15185
15186
15187
15188
15189 # If we're not using GNU ld, then there's no point in even trying these
15190 # tests. Check for that first. We should have already tested for gld
15191 # by now (in libtool), but require it now just to be safe...
15192 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15193 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15194
15195
15196
15197 # The name set by libtool depends on the version of libtool. Shame on us
15198 # for depending on an impl detail, but c'est la vie. Older versions used
15199 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15200 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15201 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15202 # set (hence we're using an older libtool), then set it.
15203 if test x${with_gnu_ld+set} != xset; then
15204 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15205 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15206 with_gnu_ld=no
15207 else
15208 with_gnu_ld=$ac_cv_prog_gnu_ld
15209 fi
15210 fi
15211
15212 # Start by getting the version number. I think the libtool test already
15213 # does some of this, but throws away the result.
15214 libat_ld_is_gold=no
c99a6eb0 15215 libat_ld_is_mold=no
48310492
RH
15216 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15217 libat_ld_is_gold=yes
c99a6eb0
ML
15218 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
15219 libat_ld_is_mold=yes
48310492
RH
15220 fi
15221
15222 ldver=`$LD --version 2>/dev/null |
c6c2d1bc 15223 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
48310492
RH
15224
15225 libat_gnu_ld_version=`echo $ldver | \
15226 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15227
15228 # Set --gc-sections.
15229 if test "$with_gnu_ld" = "notbroken"; then
15230 # GNU ld it is! Joy and bunny rabbits!
15231
15232 # All these tests are for C++; save the language and the compiler flags.
15233 # Need to do this so that g++ won't try to link in libstdc++
15234 ac_test_CFLAGS="${CFLAGS+set}"
15235 ac_save_CFLAGS="$CFLAGS"
15236 CFLAGS='-x c++ -Wl,--gc-sections'
15237
15238 # Check for -Wl,--gc-sections
15239 # XXX This test is broken at the moment, as symbols required for linking
15240 # are now in libsupc++ (not built yet). In addition, this test has
15241 # cored on solaris in the past. In addition, --gc-sections doesn't
15242 # really work at the moment (keeps on discarding used sections, first
15243 # .eh_frame and now some of the glibc sections for iconv).
15244 # Bzzzzt. Thanks for playing, maybe next time.
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15246$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15247 if test "$cross_compiling" = yes; then :
15248 ac_sectionLDflags=yes
15249else
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251/* end confdefs.h. */
15252
15253 int main(void)
15254 {
15255 try { throw 1; }
15256 catch (...) { };
15257 return 0;
15258 }
15259
15260_ACEOF
15261if ac_fn_c_try_run "$LINENO"; then :
15262 ac_sectionLDflags=yes
15263else
15264 ac_sectionLDflags=no
15265fi
15266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15267 conftest.$ac_objext conftest.beam conftest.$ac_ext
15268fi
15269
15270 if test "$ac_test_CFLAGS" = set; then
15271 CFLAGS="$ac_save_CFLAGS"
15272 else
15273 # this is the suspicious part
15274 CFLAGS=''
15275 fi
15276 if test "$ac_sectionLDflags" = "yes"; then
15277 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15278 fi
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15280$as_echo "$ac_sectionLDflags" >&6; }
15281 fi
15282
15283 # Set linker optimization flags.
15284 if test x"$with_gnu_ld" = x"yes"; then
15285 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15286 fi
15287
15288
15289
15290
15291
15292
15293 # Check whether --enable-symvers was given.
15294if test "${enable_symvers+set}" = set; then :
15295 enableval=$enable_symvers;
15296 case "$enableval" in
15297 yes|no|gnu*|sun) ;;
22e05272 15298 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
48310492
RH
15299 esac
15300
15301else
15302 enable_symvers=yes
15303fi
15304
15305
15306
15307# If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
15308# don't know enough about $LD to do tricks...
15309
15310
15311# Turn a 'yes' into a suitable default.
15312if test x$enable_symvers = xyes ; then
15313 # FIXME The following test is too strict, in theory.
15314 if test $enable_shared = no || test "x$LD" = x; then
15315 enable_symvers=no
15316 else
15317 if test $with_gnu_ld = yes ; then
15318 enable_symvers=gnu
15319 else
15320 case ${target_os} in
15321 # Sun symbol versioning exists since Solaris 2.5.
15322 solaris2.[5-9]* | solaris2.1[0-9]*)
15323 enable_symvers=sun ;;
15324 *)
15325 enable_symvers=no ;;
15326 esac
15327 fi
15328 fi
15329fi
15330
15331# Check if 'sun' was requested on non-Solaris 2 platforms.
15332if test x$enable_symvers = xsun ; then
15333 case ${target_os} in
15334 solaris2*)
15335 # All fine.
15336 ;;
15337 *)
15338 # Unlikely to work.
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15340$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15342$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15344$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15345 enable_symvers=no
15346 ;;
15347 esac
15348fi
15349
15350# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15351if test $enable_symvers != no; then
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15353$as_echo_n "checking for shared libgcc... " >&6; }
15354 ac_save_CFLAGS="$CFLAGS"
15355 CFLAGS=' -lgcc_s'
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h. */
15358
15359int
15360main ()
15361{
15362return 0;
15363 ;
15364 return 0;
15365}
15366_ACEOF
15367if ac_fn_c_try_link "$LINENO"; then :
15368 libat_shared_libgcc=yes
15369else
15370 libat_shared_libgcc=no
15371fi
15372rm -f core conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15374 CFLAGS="$ac_save_CFLAGS"
15375 if test $libat_shared_libgcc = no; then
15376 cat > conftest.c <<EOF
15377int main (void) { return 0; }
15378EOF
15379 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15380 -shared -shared-libgcc -o conftest.so \
15381 conftest.c -v 2>&1 >/dev/null \
15382 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15383 rm -f conftest.c conftest.so
15384 if test x${libat_libgcc_s_suffix+set} = xset; then
15385 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387/* end confdefs.h. */
15388
15389int
15390main ()
15391{
15392return 0;
15393 ;
15394 return 0;
15395}
15396_ACEOF
15397if ac_fn_c_try_link "$LINENO"; then :
15398 libat_shared_libgcc=yes
15399fi
15400rm -f core conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15402 CFLAGS="$ac_save_CFLAGS"
15403 fi
15404 fi
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15406$as_echo "$libat_shared_libgcc" >&6; }
15407fi
15408
15409# For GNU ld, we need at least this version. The format is described in
15410# LIBAT_CHECK_LINKER_FEATURES above.
15411libat_min_gnu_ld_version=21400
15412# XXXXXXXXXXX libat_gnu_ld_version=21390
15413
15414# Check to see if unspecified "yes" value can win, given results above.
15415# Change "yes" into either "no" or a style name.
15416if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
15417 if test $with_gnu_ld = yes; then
15418 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15419 enable_symvers=gnu
15420 elif test $libat_ld_is_gold = yes ; then
15421 enable_symvers=gnu
c99a6eb0
ML
15422 elif test $libat_ld_is_mold = yes ; then
15423 enable_symvers=gnu
48310492
RH
15424 else
15425 # The right tools, the right setup, but too old. Fallbacks?
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15427$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15429$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15431$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15433$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15434 if test $libat_gnu_ld_version -ge 21200 ; then
15435 # Globbing fix is present, proper block support is not.
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15437$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15438 enable_symvers=no
15439 else
15440 # 2.11 or older.
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15442$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15443 enable_symvers=no
15444 fi
15445 fi
15446 elif test $enable_symvers = sun; then
15447 : All interesting versions of Sun ld support sun style symbol versioning.
15448 else
15449 # just fail for now
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15451$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15453$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15455$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15457$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15458 enable_symvers=no
15459 fi
15460fi
15461if test $enable_symvers = gnu; then
15462
15463$as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15464
15465fi
15466
15467 if test $enable_symvers != no; then
15468 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
15469 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
15470else
15471 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
15472 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
15473fi
15474
15475 if test $enable_symvers = gnu; then
15476 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15477 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15478else
15479 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15480 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15481fi
15482
15483 if test $enable_symvers = sun; then
15484 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15485 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15486else
15487 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15488 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15489fi
15490
15491{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15492$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15493
15494
15495# Cleanup and exit.
15496CFLAGS="$save_CFLAGS"
15497cat >confcache <<\_ACEOF
15498# This file is a shell script that caches the results of configure
15499# tests run on this system so they can be shared between configure
15500# scripts and configure runs, see configure's option --config-cache.
15501# It is not useful on other systems. If it contains results you don't
15502# want to keep, you may remove or edit it.
15503#
15504# config.status only pays attention to the cache file if you give it
15505# the --recheck option to rerun configure.
15506#
15507# `ac_cv_env_foo' variables (set or unset) will be overridden when
15508# loading this file, other *unset* `ac_cv_foo' will be assigned the
15509# following values.
15510
15511_ACEOF
15512
15513# The following way of writing the cache mishandles newlines in values,
15514# but we know of no workaround that is simple, portable, and efficient.
15515# So, we kill variables containing newlines.
15516# Ultrix sh set writes to stderr and can't be redirected directly,
15517# and sets the high bit in the cache file unless we assign to the vars.
15518(
15519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15520 eval ac_val=\$$ac_var
15521 case $ac_val in #(
15522 *${as_nl}*)
15523 case $ac_var in #(
15524 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15525$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15526 esac
15527 case $ac_var in #(
15528 _ | IFS | as_nl) ;; #(
15529 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15530 *) { eval $ac_var=; unset $ac_var;} ;;
15531 esac ;;
15532 esac
15533 done
15534
15535 (set) 2>&1 |
15536 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15537 *${as_nl}ac_space=\ *)
15538 # `set' does not quote correctly, so add quotes: double-quote
15539 # substitution turns \\\\ into \\, and sed turns \\ into \.
15540 sed -n \
15541 "s/'/'\\\\''/g;
15542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15543 ;; #(
15544 *)
15545 # `set' quotes correctly as required by POSIX, so do not add quotes.
15546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15547 ;;
15548 esac |
15549 sort
15550) |
15551 sed '
15552 /^ac_cv_env_/b end
15553 t clear
15554 :clear
15555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15556 t end
15557 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15558 :end' >>confcache
15559if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15560 if test -w "$cache_file"; then
22e05272 15561 if test "x$cache_file" != "x/dev/null"; then
48310492
RH
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15563$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15564 if test ! -f "$cache_file" || test -h "$cache_file"; then
15565 cat confcache >"$cache_file"
15566 else
15567 case $cache_file in #(
15568 */* | ?:*)
15569 mv -f confcache "$cache_file"$$ &&
15570 mv -f "$cache_file"$$ "$cache_file" ;; #(
15571 *)
15572 mv -f confcache "$cache_file" ;;
15573 esac
15574 fi
15575 fi
48310492
RH
15576 else
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15578$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15579 fi
15580fi
15581rm -f confcache
15582
45ba6bf2
DS
15583# Check whether --enable-werror was given.
15584if test "${enable_werror+set}" = set; then :
15585 enableval=$enable_werror;
15586fi
15587
48310492 15588# Add -Wall -Werror if we are using GCC.
45ba6bf2
DS
15589if test "x$GCC" = "xyes"; then :
15590 XCFLAGS="$XCFLAGS -Wall"
15591fi
15592if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
15593 XCFLAGS="$XCFLAGS -Werror"
48310492
RH
15594fi
15595
efc643e9
IT
15596# Add CET specific flags if CET is enabled
15597 # Check whether --enable-cet was given.
15598if test "${enable_cet+set}" = set; then :
15599 enableval=$enable_cet;
15600 case "$enableval" in
a0e1df88 15601 yes|no|auto) ;;
22e05272 15602 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
efc643e9
IT
15603 esac
15604
15605else
8d286dd1 15606 enable_cet=auto
efc643e9
IT
15607fi
15608
15609
14e335ed
IT
15610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15611$as_echo_n "checking for CET support... " >&6; }
15612
9051b548 15613# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
efc643e9
IT
15614case "$host" in
15615 i[34567]86-*-linux* | x86_64-*-linux*)
15616 case "$enable_cet" in
a0e1df88 15617 auto)
14e335ed 15618 # Check if target supports multi-byte NOPs
2755037e 15619 # and if compiler and assembler support CET insn.
9051b548 15620 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 15621 CFLAGS="$CFLAGS -fcf-protection"
efc643e9
IT
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623/* end confdefs.h. */
15624
15625int
15626main ()
15627{
14e335ed
IT
15628
15629#if !defined(__SSE2__)
15630#error target does not support multi-byte NOPs
15631#else
efc643e9 15632asm ("setssbsy");
14e335ed
IT
15633#endif
15634
efc643e9
IT
15635 ;
15636 return 0;
15637}
15638_ACEOF
15639if ac_fn_c_try_compile "$LINENO"; then :
15640 enable_cet=yes
15641else
15642 enable_cet=no
15643fi
15644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 15645 CFLAGS="$cet_save_CFLAGS"
efc643e9
IT
15646 ;;
15647 yes)
15648 # Check if assembler supports CET.
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650/* end confdefs.h. */
15651
15652int
15653main ()
15654{
15655asm ("setssbsy");
15656 ;
15657 return 0;
15658}
15659_ACEOF
15660if ac_fn_c_try_compile "$LINENO"; then :
15661
15662else
22e05272 15663 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
efc643e9
IT
15664fi
15665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 ;;
15667 esac
15668 ;;
15669 *)
15670 enable_cet=no
15671 ;;
15672esac
15673if test x$enable_cet = xyes; then
7b47ecf2 15674 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15676$as_echo "yes" >&6; }
15677else
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15679$as_echo "no" >&6; }
efc643e9
IT
15680fi
15681
15682XCFLAGS="$XCFLAGS $CET_FLAGS"
15683
48310492
RH
15684XCFLAGS="$XCFLAGS $XPCFLAGS"
15685
15686
15687
15688
15689
15690
15691
47ddb895
DE
15692# Conditionalize the makefile for this target machine.
15693tmake_file_=
15694for f in ${tmake_file}
15695do
15696 if test -f ${srcdir}/config/$f
15697 then
15698 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15699 fi
15700done
15701tmake_file="${tmake_file_}"
15702
15703
15704
48310492
RH
15705 if test x$libat_cv_have_ifunc = xyes; then
15706 HAVE_IFUNC_TRUE=
15707 HAVE_IFUNC_FALSE='#'
15708else
15709 HAVE_IFUNC_TRUE='#'
15710 HAVE_IFUNC_FALSE=
15711fi
15712
141abc6f
SE
15713 if expr "$config_path" : ".* linux/aarch64 .*" > /dev/null; then
15714 ARCH_AARCH64_LINUX_TRUE=
15715 ARCH_AARCH64_LINUX_FALSE='#'
15716else
15717 ARCH_AARCH64_LINUX_TRUE='#'
15718 ARCH_AARCH64_LINUX_FALSE=
15719fi
15720
48310492
RH
15721 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
15722 ARCH_ARM_LINUX_TRUE=
15723 ARCH_ARM_LINUX_FALSE='#'
15724else
15725 ARCH_ARM_LINUX_TRUE='#'
15726 ARCH_ARM_LINUX_FALSE=
15727fi
15728
15729 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
15730 ARCH_I386_TRUE=
15731 ARCH_I386_FALSE='#'
15732else
15733 ARCH_I386_TRUE='#'
15734 ARCH_I386_FALSE=
15735fi
15736
15737 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
15738 ARCH_X86_64_TRUE=
15739 ARCH_X86_64_FALSE='#'
15740else
15741 ARCH_X86_64_TRUE='#'
15742 ARCH_X86_64_FALSE=
15743fi
15744
15745
3c36aa6b
JJ
15746# Determine what GCC version number to use in filesystem paths.
15747
15748 get_gcc_base_ver="cat"
15749
15750# Check whether --with-gcc-major-version-only was given.
15751if test "${with_gcc_major_version_only+set}" = set; then :
15752 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 15753 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
15754 fi
15755
15756fi
15757
15758
15759
15760
48310492
RH
15761if test ${multilib} = yes; then
15762 multilib_arg="--enable-multilib"
15763else
15764 multilib_arg=
15765fi
15766
15767ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15768
5ff06d76
MR
15769ac_config_files="$ac_config_files testsuite/libatomic-site-extra.exp"
15770
48310492
RH
15771cat >confcache <<\_ACEOF
15772# This file is a shell script that caches the results of configure
15773# tests run on this system so they can be shared between configure
15774# scripts and configure runs, see configure's option --config-cache.
15775# It is not useful on other systems. If it contains results you don't
15776# want to keep, you may remove or edit it.
15777#
15778# config.status only pays attention to the cache file if you give it
15779# the --recheck option to rerun configure.
15780#
15781# `ac_cv_env_foo' variables (set or unset) will be overridden when
15782# loading this file, other *unset* `ac_cv_foo' will be assigned the
15783# following values.
15784
15785_ACEOF
15786
15787# The following way of writing the cache mishandles newlines in values,
15788# but we know of no workaround that is simple, portable, and efficient.
15789# So, we kill variables containing newlines.
15790# Ultrix sh set writes to stderr and can't be redirected directly,
15791# and sets the high bit in the cache file unless we assign to the vars.
15792(
15793 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15794 eval ac_val=\$$ac_var
15795 case $ac_val in #(
15796 *${as_nl}*)
15797 case $ac_var in #(
15798 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15799$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15800 esac
15801 case $ac_var in #(
15802 _ | IFS | as_nl) ;; #(
15803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15804 *) { eval $ac_var=; unset $ac_var;} ;;
15805 esac ;;
15806 esac
15807 done
15808
15809 (set) 2>&1 |
15810 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15811 *${as_nl}ac_space=\ *)
15812 # `set' does not quote correctly, so add quotes: double-quote
15813 # substitution turns \\\\ into \\, and sed turns \\ into \.
15814 sed -n \
15815 "s/'/'\\\\''/g;
15816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15817 ;; #(
15818 *)
15819 # `set' quotes correctly as required by POSIX, so do not add quotes.
15820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15821 ;;
15822 esac |
15823 sort
15824) |
15825 sed '
15826 /^ac_cv_env_/b end
15827 t clear
15828 :clear
15829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15830 t end
15831 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15832 :end' >>confcache
15833if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15834 if test -w "$cache_file"; then
22e05272 15835 if test "x$cache_file" != "x/dev/null"; then
48310492
RH
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15837$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15838 if test ! -f "$cache_file" || test -h "$cache_file"; then
15839 cat confcache >"$cache_file"
15840 else
15841 case $cache_file in #(
15842 */* | ?:*)
15843 mv -f confcache "$cache_file"$$ &&
15844 mv -f "$cache_file"$$ "$cache_file" ;; #(
15845 *)
15846 mv -f confcache "$cache_file" ;;
15847 esac
15848 fi
15849 fi
48310492
RH
15850 else
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15852$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15853 fi
15854fi
15855rm -f confcache
15856
15857test "x$prefix" = xNONE && prefix=$ac_default_prefix
15858# Let make expand exec_prefix.
15859test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15860
15861DEFS=-DHAVE_CONFIG_H
15862
15863ac_libobjs=
15864ac_ltlibobjs=
22e05272 15865U=
48310492
RH
15866for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15867 # 1. Remove the extension, and $U if already installed.
15868 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15869 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15870 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15871 # will be set to the directory where LIBOBJS objects are built.
15872 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15873 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15874done
15875LIBOBJS=$ac_libobjs
15876
15877LTLIBOBJS=$ac_ltlibobjs
15878
15879
15880if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
22e05272 15881 as_fn_error $? "conditional \"GENINSRC\" was never defined.
48310492
RH
15882Usually this means the macro was only invoked conditionally." "$LINENO" 5
15883fi
22e05272
JM
15884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15885$as_echo_n "checking that generated files are newer than configure... " >&6; }
15886 if test -n "$am_sleep_pid"; then
15887 # Hide warnings about reused PIDs.
15888 wait $am_sleep_pid 2>/dev/null
15889 fi
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15891$as_echo "done" >&6; }
48310492
RH
15892 if test -n "$EXEEXT"; then
15893 am__EXEEXT_TRUE=
15894 am__EXEEXT_FALSE='#'
15895else
15896 am__EXEEXT_TRUE='#'
15897 am__EXEEXT_FALSE=
15898fi
15899
15900if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 15901 as_fn_error $? "conditional \"AMDEP\" was never defined.
48310492
RH
15902Usually this means the macro was only invoked conditionally." "$LINENO" 5
15903fi
15904if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 15905 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
48310492
RH
15906Usually this means the macro was only invoked conditionally." "$LINENO" 5
15907fi
15908if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22e05272 15909 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
48310492
RH
15910Usually this means the macro was only invoked conditionally." "$LINENO" 5
15911fi
fa3cd3c3 15912if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15913 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
fa3cd3c3
RH
15914Usually this means the macro was only invoked conditionally." "$LINENO" 5
15915fi
48310492
RH
15916
15917if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
22e05272 15918 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
48310492
RH
15919Usually this means the macro was only invoked conditionally." "$LINENO" 5
15920fi
15921if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
22e05272 15922 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
48310492
RH
15923Usually this means the macro was only invoked conditionally." "$LINENO" 5
15924fi
15925if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
22e05272 15926 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
48310492
RH
15927Usually this means the macro was only invoked conditionally." "$LINENO" 5
15928fi
15929if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
22e05272 15930 as_fn_error $? "conditional \"HAVE_IFUNC\" was never defined.
48310492
RH
15931Usually this means the macro was only invoked conditionally." "$LINENO" 5
15932fi
141abc6f 15933if test -z "${ARCH_AARCH64_LINUX_TRUE}" && test -z "${ARCH_AARCH64_LINUX_FALSE}"; then
22e05272 15934 as_fn_error $? "conditional \"ARCH_AARCH64_LINUX\" was never defined.
141abc6f
SE
15935Usually this means the macro was only invoked conditionally." "$LINENO" 5
15936fi
48310492 15937if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
22e05272 15938 as_fn_error $? "conditional \"ARCH_ARM_LINUX\" was never defined.
48310492
RH
15939Usually this means the macro was only invoked conditionally." "$LINENO" 5
15940fi
15941if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
22e05272 15942 as_fn_error $? "conditional \"ARCH_I386\" was never defined.
48310492
RH
15943Usually this means the macro was only invoked conditionally." "$LINENO" 5
15944fi
15945if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
22e05272 15946 as_fn_error $? "conditional \"ARCH_X86_64\" was never defined.
48310492
RH
15947Usually this means the macro was only invoked conditionally." "$LINENO" 5
15948fi
15949
22e05272 15950: "${CONFIG_STATUS=./config.status}"
48310492
RH
15951ac_write_fail=0
15952ac_clean_files_save=$ac_clean_files
15953ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15954{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15955$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15956as_write_fail=0
15957cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15958#! $SHELL
15959# Generated by $as_me.
15960# Run this file to recreate the current configuration.
15961# Compiler output produced by configure, useful for debugging
15962# configure, is in config.log if it exists.
15963
15964debug=false
15965ac_cs_recheck=false
15966ac_cs_silent=false
15967
15968SHELL=\${CONFIG_SHELL-$SHELL}
15969export SHELL
15970_ASEOF
15971cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15972## -------------------- ##
15973## M4sh Initialization. ##
15974## -------------------- ##
15975
15976# Be more Bourne compatible
15977DUALCASE=1; export DUALCASE # for MKS sh
15978if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15979 emulate sh
15980 NULLCMD=:
15981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15982 # is contrary to our usage. Disable this feature.
15983 alias -g '${1+"$@"}'='"$@"'
15984 setopt NO_GLOB_SUBST
15985else
15986 case `(set -o) 2>/dev/null` in #(
15987 *posix*) :
15988 set -o posix ;; #(
15989 *) :
15990 ;;
15991esac
15992fi
15993
15994
15995as_nl='
15996'
15997export as_nl
15998# Printing a long string crashes Solaris 7 /usr/bin/printf.
15999as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16000as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16001as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16002# Prefer a ksh shell builtin over an external printf program on Solaris,
16003# but without wasting forks for bash or zsh.
16004if test -z "$BASH_VERSION$ZSH_VERSION" \
16005 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16006 as_echo='print -r --'
16007 as_echo_n='print -rn --'
16008elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16009 as_echo='printf %s\n'
16010 as_echo_n='printf %s'
16011else
16012 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16013 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16014 as_echo_n='/usr/ucb/echo -n'
16015 else
16016 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16017 as_echo_n_body='eval
16018 arg=$1;
16019 case $arg in #(
16020 *"$as_nl"*)
16021 expr "X$arg" : "X\\(.*\\)$as_nl";
16022 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16023 esac;
16024 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16025 '
16026 export as_echo_n_body
16027 as_echo_n='sh -c $as_echo_n_body as_echo'
16028 fi
16029 export as_echo_body
16030 as_echo='sh -c $as_echo_body as_echo'
16031fi
16032
16033# The user is always right.
16034if test "${PATH_SEPARATOR+set}" != set; then
16035 PATH_SEPARATOR=:
16036 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16037 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16038 PATH_SEPARATOR=';'
16039 }
16040fi
16041
16042
16043# IFS
16044# We need space, tab and new line, in precisely that order. Quoting is
16045# there to prevent editors from complaining about space-tab.
16046# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16047# splitting by setting IFS to empty value.)
16048IFS=" "" $as_nl"
16049
16050# Find who we are. Look in the path if we contain no directory separator.
22e05272 16051as_myself=
48310492
RH
16052case $0 in #((
16053 *[\\/]* ) as_myself=$0 ;;
16054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055for as_dir in $PATH
16056do
16057 IFS=$as_save_IFS
16058 test -z "$as_dir" && as_dir=.
16059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16060 done
16061IFS=$as_save_IFS
16062
16063 ;;
16064esac
16065# We did not find ourselves, most probably we were run as `sh COMMAND'
16066# in which case we are not to be found in the path.
16067if test "x$as_myself" = x; then
16068 as_myself=$0
16069fi
16070if test ! -f "$as_myself"; then
16071 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16072 exit 1
16073fi
16074
16075# Unset variables that we do not need and which cause bugs (e.g. in
16076# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16077# suppresses any "Segmentation fault" message there. '((' could
16078# trigger a bug in pdksh 5.2.14.
16079for as_var in BASH_ENV ENV MAIL MAILPATH
16080do eval test x\${$as_var+set} = xset \
16081 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16082done
16083PS1='$ '
16084PS2='> '
16085PS4='+ '
16086
16087# NLS nuisances.
16088LC_ALL=C
16089export LC_ALL
16090LANGUAGE=C
16091export LANGUAGE
16092
16093# CDPATH.
16094(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16095
16096
22e05272
JM
16097# as_fn_error STATUS ERROR [LINENO LOG_FD]
16098# ----------------------------------------
48310492
RH
16099# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16100# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 16101# script with STATUS, using 1 if that was 0.
48310492
RH
16102as_fn_error ()
16103{
22e05272
JM
16104 as_status=$1; test $as_status -eq 0 && as_status=1
16105 if test "$4"; then
16106 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16107 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
48310492 16108 fi
22e05272 16109 $as_echo "$as_me: error: $2" >&2
48310492
RH
16110 as_fn_exit $as_status
16111} # as_fn_error
16112
16113
16114# as_fn_set_status STATUS
16115# -----------------------
16116# Set $? to STATUS, without forking.
16117as_fn_set_status ()
16118{
16119 return $1
16120} # as_fn_set_status
16121
16122# as_fn_exit STATUS
16123# -----------------
16124# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16125as_fn_exit ()
16126{
16127 set +e
16128 as_fn_set_status $1
16129 exit $1
16130} # as_fn_exit
16131
16132# as_fn_unset VAR
16133# ---------------
16134# Portably unset VAR.
16135as_fn_unset ()
16136{
16137 { eval $1=; unset $1;}
16138}
16139as_unset=as_fn_unset
16140# as_fn_append VAR VALUE
16141# ----------------------
16142# Append the text in VALUE to the end of the definition contained in VAR. Take
16143# advantage of any shell optimizations that allow amortized linear growth over
16144# repeated appends, instead of the typical quadratic growth present in naive
16145# implementations.
16146if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16147 eval 'as_fn_append ()
16148 {
16149 eval $1+=\$2
16150 }'
16151else
16152 as_fn_append ()
16153 {
16154 eval $1=\$$1\$2
16155 }
16156fi # as_fn_append
16157
16158# as_fn_arith ARG...
16159# ------------------
16160# Perform arithmetic evaluation on the ARGs, and store the result in the
16161# global $as_val. Take advantage of shells that can avoid forks. The arguments
16162# must be portable across $(()) and expr.
16163if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16164 eval 'as_fn_arith ()
16165 {
16166 as_val=$(( $* ))
16167 }'
16168else
16169 as_fn_arith ()
16170 {
16171 as_val=`expr "$@" || test $? -eq 1`
16172 }
16173fi # as_fn_arith
16174
16175
16176if expr a : '\(a\)' >/dev/null 2>&1 &&
16177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16178 as_expr=expr
16179else
16180 as_expr=false
16181fi
16182
16183if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16184 as_basename=basename
16185else
16186 as_basename=false
16187fi
16188
16189if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16190 as_dirname=dirname
16191else
16192 as_dirname=false
16193fi
16194
16195as_me=`$as_basename -- "$0" ||
16196$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16197 X"$0" : 'X\(//\)$' \| \
16198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16199$as_echo X/"$0" |
16200 sed '/^.*\/\([^/][^/]*\)\/*$/{
16201 s//\1/
16202 q
16203 }
16204 /^X\/\(\/\/\)$/{
16205 s//\1/
16206 q
16207 }
16208 /^X\/\(\/\).*/{
16209 s//\1/
16210 q
16211 }
16212 s/.*/./; q'`
16213
16214# Avoid depending upon Character Ranges.
16215as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16216as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16217as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16218as_cr_digits='0123456789'
16219as_cr_alnum=$as_cr_Letters$as_cr_digits
16220
16221ECHO_C= ECHO_N= ECHO_T=
16222case `echo -n x` in #(((((
16223-n*)
16224 case `echo 'xy\c'` in
16225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16226 xy) ECHO_C='\c';;
16227 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16228 ECHO_T=' ';;
16229 esac;;
16230*)
16231 ECHO_N='-n';;
16232esac
16233
16234rm -f conf$$ conf$$.exe conf$$.file
16235if test -d conf$$.dir; then
16236 rm -f conf$$.dir/conf$$.file
16237else
16238 rm -f conf$$.dir
16239 mkdir conf$$.dir 2>/dev/null
16240fi
16241if (echo >conf$$.file) 2>/dev/null; then
16242 if ln -s conf$$.file conf$$ 2>/dev/null; then
16243 as_ln_s='ln -s'
16244 # ... but there are two gotchas:
16245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 16247 # In both cases, we have to default to `cp -pR'.
48310492 16248 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 16249 as_ln_s='cp -pR'
48310492
RH
16250 elif ln conf$$.file conf$$ 2>/dev/null; then
16251 as_ln_s=ln
16252 else
22e05272 16253 as_ln_s='cp -pR'
48310492
RH
16254 fi
16255else
22e05272 16256 as_ln_s='cp -pR'
48310492
RH
16257fi
16258rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16259rmdir conf$$.dir 2>/dev/null
16260
16261
16262# as_fn_mkdir_p
16263# -------------
16264# Create "$as_dir" as a directory, including parents if necessary.
16265as_fn_mkdir_p ()
16266{
16267
16268 case $as_dir in #(
16269 -*) as_dir=./$as_dir;;
16270 esac
16271 test -d "$as_dir" || eval $as_mkdir_p || {
16272 as_dirs=
16273 while :; do
16274 case $as_dir in #(
16275 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16276 *) as_qdir=$as_dir;;
16277 esac
16278 as_dirs="'$as_qdir' $as_dirs"
16279 as_dir=`$as_dirname -- "$as_dir" ||
16280$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16281 X"$as_dir" : 'X\(//\)[^/]' \| \
16282 X"$as_dir" : 'X\(//\)$' \| \
16283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16284$as_echo X"$as_dir" |
16285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16286 s//\1/
16287 q
16288 }
16289 /^X\(\/\/\)[^/].*/{
16290 s//\1/
16291 q
16292 }
16293 /^X\(\/\/\)$/{
16294 s//\1/
16295 q
16296 }
16297 /^X\(\/\).*/{
16298 s//\1/
16299 q
16300 }
16301 s/.*/./; q'`
16302 test -d "$as_dir" && break
16303 done
16304 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 16305 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
48310492
RH
16306
16307
16308} # as_fn_mkdir_p
16309if mkdir -p . 2>/dev/null; then
16310 as_mkdir_p='mkdir -p "$as_dir"'
16311else
16312 test -d ./-p && rmdir ./-p
16313 as_mkdir_p=false
16314fi
16315
22e05272
JM
16316
16317# as_fn_executable_p FILE
16318# -----------------------
16319# Test if FILE is an executable regular file.
16320as_fn_executable_p ()
16321{
16322 test -f "$1" && test -x "$1"
16323} # as_fn_executable_p
16324as_test_x='test -x'
16325as_executable_p=as_fn_executable_p
48310492
RH
16326
16327# Sed expression to map a string onto a valid CPP name.
16328as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16329
16330# Sed expression to map a string onto a valid variable name.
16331as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16332
16333
16334exec 6>&1
16335## ----------------------------------- ##
16336## Main body of $CONFIG_STATUS script. ##
16337## ----------------------------------- ##
16338_ASEOF
16339test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16340
16341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16342# Save the log message, to keep $0 and so on meaningful, and to
16343# report actual input values of CONFIG_FILES etc. instead of their
16344# values after options handling.
16345ac_log="
16346This file was extended by GNU Atomic Library $as_me 1.0, which was
22e05272 16347generated by GNU Autoconf 2.69. Invocation command line was
48310492
RH
16348
16349 CONFIG_FILES = $CONFIG_FILES
16350 CONFIG_HEADERS = $CONFIG_HEADERS
16351 CONFIG_LINKS = $CONFIG_LINKS
16352 CONFIG_COMMANDS = $CONFIG_COMMANDS
16353 $ $0 $@
16354
16355on `(hostname || uname -n) 2>/dev/null | sed 1q`
16356"
16357
16358_ACEOF
16359
16360case $ac_config_files in *"
16361"*) set x $ac_config_files; shift; ac_config_files=$*;;
16362esac
16363
16364case $ac_config_headers in *"
16365"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16366esac
16367
16368
16369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16370# Files that config.status was made for.
16371config_files="$ac_config_files"
16372config_headers="$ac_config_headers"
16373config_commands="$ac_config_commands"
16374
16375_ACEOF
16376
16377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16378ac_cs_usage="\
16379\`$as_me' instantiates files and other configuration actions
16380from templates according to the current configuration. Unless the files
16381and actions are specified as TAGs, all are instantiated by default.
16382
16383Usage: $0 [OPTION]... [TAG]...
16384
16385 -h, --help print this help, then exit
16386 -V, --version print version number and configuration settings, then exit
22e05272 16387 --config print configuration, then exit
48310492
RH
16388 -q, --quiet, --silent
16389 do not print progress messages
16390 -d, --debug don't remove temporary files
16391 --recheck update $as_me by reconfiguring in the same conditions
16392 --file=FILE[:TEMPLATE]
16393 instantiate the configuration file FILE
16394 --header=FILE[:TEMPLATE]
16395 instantiate the configuration header FILE
16396
16397Configuration files:
16398$config_files
16399
16400Configuration headers:
16401$config_headers
16402
16403Configuration commands:
16404$config_commands
16405
16406Report bugs to the package provider.
16407GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
16408General help using GNU software: <http://www.gnu.org/gethelp/>."
16409
16410_ACEOF
16411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16412ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
48310492
RH
16413ac_cs_version="\\
16414GNU Atomic Library config.status 1.0
22e05272
JM
16415configured by $0, generated by GNU Autoconf 2.69,
16416 with options \\"\$ac_cs_config\\"
48310492 16417
22e05272 16418Copyright (C) 2012 Free Software Foundation, Inc.
48310492
RH
16419This config.status script is free software; the Free Software Foundation
16420gives unlimited permission to copy, distribute and modify it."
16421
16422ac_pwd='$ac_pwd'
16423srcdir='$srcdir'
16424INSTALL='$INSTALL'
16425MKDIR_P='$MKDIR_P'
16426AWK='$AWK'
16427test -n "\$AWK" || AWK=awk
16428_ACEOF
16429
16430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16431# The default lists apply if the user does not specify any file.
16432ac_need_defaults=:
16433while test $# != 0
16434do
16435 case $1 in
22e05272 16436 --*=?*)
48310492
RH
16437 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16438 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16439 ac_shift=:
16440 ;;
22e05272
JM
16441 --*=)
16442 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16443 ac_optarg=
16444 ac_shift=:
16445 ;;
48310492
RH
16446 *)
16447 ac_option=$1
16448 ac_optarg=$2
16449 ac_shift=shift
16450 ;;
16451 esac
16452
16453 case $ac_option in
16454 # Handling of the options.
16455 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16456 ac_cs_recheck=: ;;
16457 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16458 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16459 --config | --confi | --conf | --con | --co | --c )
16460 $as_echo "$ac_cs_config"; exit ;;
48310492
RH
16461 --debug | --debu | --deb | --de | --d | -d )
16462 debug=: ;;
16463 --file | --fil | --fi | --f )
16464 $ac_shift
16465 case $ac_optarg in
16466 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16467 '') as_fn_error $? "missing file argument" ;;
48310492
RH
16468 esac
16469 as_fn_append CONFIG_FILES " '$ac_optarg'"
16470 ac_need_defaults=false;;
16471 --header | --heade | --head | --hea )
16472 $ac_shift
16473 case $ac_optarg in
16474 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16475 esac
16476 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16477 ac_need_defaults=false;;
16478 --he | --h)
16479 # Conflict between --help and --header
22e05272 16480 as_fn_error $? "ambiguous option: \`$1'
48310492
RH
16481Try \`$0 --help' for more information.";;
16482 --help | --hel | -h )
16483 $as_echo "$ac_cs_usage"; exit ;;
16484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16485 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16486 ac_cs_silent=: ;;
16487
16488 # This is an error.
22e05272 16489 -*) as_fn_error $? "unrecognized option: \`$1'
48310492
RH
16490Try \`$0 --help' for more information." ;;
16491
16492 *) as_fn_append ac_config_targets " $1"
16493 ac_need_defaults=false ;;
16494
16495 esac
16496 shift
16497done
16498
16499ac_configure_extra_args=
16500
16501if $ac_cs_silent; then
16502 exec 6>/dev/null
16503 ac_configure_extra_args="$ac_configure_extra_args --silent"
16504fi
16505
16506_ACEOF
16507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16508if \$ac_cs_recheck; then
22e05272 16509 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48310492
RH
16510 shift
16511 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16512 CONFIG_SHELL='$SHELL'
16513 export CONFIG_SHELL
16514 exec "\$@"
16515fi
16516
16517_ACEOF
16518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16519exec 5>>config.log
16520{
16521 echo
16522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16523## Running $as_me. ##
16524_ASBOX
16525 $as_echo "$ac_log"
16526} >&5
16527
16528_ACEOF
16529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16530#
16531# INIT-COMMANDS
16532#
16533
16534srcdir="$srcdir"
16535host="$host"
16536target="$target"
16537with_multisubdir="$with_multisubdir"
16538with_multisrctop="$with_multisrctop"
16539with_target_subdir="$with_target_subdir"
16540ac_configure_args="${multilib_arg} ${ac_configure_args}"
16541multi_basedir="$multi_basedir"
16542CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16543CC="$CC"
16544CXX="$CXX"
16545GFORTRAN="$GFORTRAN"
22e05272 16546GDC="$GDC"
48310492
RH
16547AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16548
16549
16550# The HP-UX ksh and POSIX shell print the target directory to stdout
16551# if CDPATH is set.
16552(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16553
16554sed_quote_subst='$sed_quote_subst'
16555double_quote_subst='$double_quote_subst'
16556delay_variable_subst='$delay_variable_subst'
16557macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16558macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16559enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16560enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16561pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16562enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16563SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16564ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16565host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16566host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16567host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16568build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16569build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16570build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16571SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16572Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16573GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16574EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16575FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16576LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16577NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16578LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16579max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16580ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16581exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16582lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16583lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16584lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16585reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16586reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16587OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16588deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16589file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16590AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16591AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16592STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16593RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16594old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16595old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16596old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16597lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16598CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16599CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16600compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16601GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16602lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16603lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16604lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16605lt_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"`'
16606objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16607MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16608lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16609lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16610lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16611lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16612lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16613need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16614DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16615NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16616LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16617OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16618OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16619libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16620shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16621extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16622archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16623enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16624export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16625whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16626compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16627old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16628old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16629archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16630archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16631module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16632module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16633with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16634allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16635no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16636hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16637hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16638hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16639hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16640hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16641hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16642hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16643hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16644inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16645link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16646fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16647always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16648export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16649exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16650include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16651prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16652file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16653variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16654need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16655need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16656version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16657runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16658shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16659shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16660libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16661library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16662soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16663install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16664postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16665postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16666finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16667finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16668hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16669sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16670sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16671hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16672enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16673enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16674enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16675old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16676striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16677
16678LTCC='$LTCC'
16679LTCFLAGS='$LTCFLAGS'
16680compiler='$compiler_DEFAULT'
16681
16682# A function that is used when there is no print builtin or printf.
16683func_fallback_echo ()
16684{
16685 eval 'cat <<_LTECHO_EOF
16686\$1
16687_LTECHO_EOF'
16688}
16689
16690# Quote evaled strings.
16691for var in SHELL \
16692ECHO \
16693SED \
16694GREP \
16695EGREP \
16696FGREP \
16697LD \
16698NM \
16699LN_S \
16700lt_SP2NL \
16701lt_NL2SP \
16702reload_flag \
16703OBJDUMP \
16704deplibs_check_method \
16705file_magic_cmd \
16706AR \
16707AR_FLAGS \
16708STRIP \
16709RANLIB \
16710CC \
16711CFLAGS \
16712compiler \
16713lt_cv_sys_global_symbol_pipe \
16714lt_cv_sys_global_symbol_to_cdecl \
16715lt_cv_sys_global_symbol_to_c_name_address \
16716lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16717lt_prog_compiler_no_builtin_flag \
16718lt_prog_compiler_wl \
16719lt_prog_compiler_pic \
16720lt_prog_compiler_static \
16721lt_cv_prog_compiler_c_o \
16722need_locks \
16723DSYMUTIL \
16724NMEDIT \
16725LIPO \
16726OTOOL \
16727OTOOL64 \
16728shrext_cmds \
16729export_dynamic_flag_spec \
16730whole_archive_flag_spec \
16731compiler_needs_object \
16732with_gnu_ld \
16733allow_undefined_flag \
16734no_undefined_flag \
16735hardcode_libdir_flag_spec \
16736hardcode_libdir_flag_spec_ld \
16737hardcode_libdir_separator \
16738fix_srcfile_path \
16739exclude_expsyms \
16740include_expsyms \
16741file_list_spec \
16742variables_saved_for_relink \
16743libname_spec \
16744library_names_spec \
16745soname_spec \
16746install_override_mode \
16747finish_eval \
16748old_striplib \
16749striplib; do
16750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16751 *[\\\\\\\`\\"\\\$]*)
16752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16753 ;;
16754 *)
16755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16756 ;;
16757 esac
16758done
16759
16760# Double-quote double-evaled strings.
16761for var in reload_cmds \
16762old_postinstall_cmds \
16763old_postuninstall_cmds \
16764old_archive_cmds \
16765extract_expsyms_cmds \
16766old_archive_from_new_cmds \
16767old_archive_from_expsyms_cmds \
16768archive_cmds \
16769archive_expsym_cmds \
16770module_cmds \
16771module_expsym_cmds \
16772export_symbols_cmds \
16773prelink_cmds \
16774postinstall_cmds \
16775postuninstall_cmds \
16776finish_cmds \
16777sys_lib_search_path_spec \
16778sys_lib_dlsearch_path_spec; do
16779 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16780 *[\\\\\\\`\\"\\\$]*)
16781 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16782 ;;
16783 *)
16784 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16785 ;;
16786 esac
16787done
16788
16789ac_aux_dir='$ac_aux_dir'
16790xsi_shell='$xsi_shell'
16791lt_shell_append='$lt_shell_append'
16792
16793# See if we are running on zsh, and set the options which allow our
16794# commands through without removal of \ escapes INIT.
16795if test -n "\${ZSH_VERSION+set}" ; then
16796 setopt NO_GLOB_SUBST
16797fi
16798
16799
16800 PACKAGE='$PACKAGE'
16801 VERSION='$VERSION'
16802 TIMESTAMP='$TIMESTAMP'
16803 RM='$RM'
16804 ofile='$ofile'
16805
16806
16807
16808
16809GCC="$GCC"
16810CC="$CC"
16811acx_cv_header_stdint="$acx_cv_header_stdint"
16812acx_cv_type_int8_t="$acx_cv_type_int8_t"
16813acx_cv_type_int16_t="$acx_cv_type_int16_t"
16814acx_cv_type_int32_t="$acx_cv_type_int32_t"
16815acx_cv_type_int64_t="$acx_cv_type_int64_t"
16816acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16817ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16818ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16819ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16820ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16821ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16822ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16823ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16824ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16825
16826
16827_ACEOF
16828
16829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16830
16831# Handling of arguments.
16832for ac_config_target in $ac_config_targets
16833do
16834 case $ac_config_target in
16835 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
16836 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16837 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16838 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16839 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
16840 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16841 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
5ff06d76 16842 "testsuite/libatomic-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libatomic-site-extra.exp" ;;
48310492 16843
22e05272 16844 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
48310492
RH
16845 esac
16846done
16847
16848
16849# If the user did not use the arguments to specify the items to instantiate,
16850# then the envvar interface is used. Set only those that are not.
16851# We use the long form for the default assignment because of an extremely
16852# bizarre bug on SunOS 4.1.3.
16853if $ac_need_defaults; then
16854 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16855 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16856 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16857fi
16858
16859# Have a temporary directory for convenience. Make it in the build tree
16860# simply because there is no reason against having it here, and in addition,
16861# creating and moving files from /tmp can sometimes cause problems.
16862# Hook for its removal unless debugging.
16863# Note that there is a small window in which the directory will not be cleaned:
16864# after its creation but before its name has been assigned to `$tmp'.
16865$debug ||
16866{
22e05272 16867 tmp= ac_tmp=
48310492 16868 trap 'exit_status=$?
22e05272
JM
16869 : "${ac_tmp:=$tmp}"
16870 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
48310492
RH
16871' 0
16872 trap 'as_fn_exit 1' 1 2 13 15
16873}
16874# Create a (secure) tmp directory for tmp files.
16875
16876{
16877 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16878 test -d "$tmp"
48310492
RH
16879} ||
16880{
16881 tmp=./conf$$-$RANDOM
16882 (umask 077 && mkdir "$tmp")
22e05272
JM
16883} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16884ac_tmp=$tmp
48310492
RH
16885
16886# Set up the scripts for CONFIG_FILES section.
16887# No need to generate them if there are no CONFIG_FILES.
16888# This happens for instance with `./config.status config.h'.
16889if test -n "$CONFIG_FILES"; then
16890
16891
16892ac_cr=`echo X | tr X '\015'`
16893# On cygwin, bash can eat \r inside `` if the user requested igncr.
16894# But we know of no other shell where ac_cr would be empty at this
16895# point, so we can use a bashism as a fallback.
16896if test "x$ac_cr" = x; then
16897 eval ac_cr=\$\'\\r\'
16898fi
16899ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16900if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16901 ac_cs_awk_cr='\\r'
48310492
RH
16902else
16903 ac_cs_awk_cr=$ac_cr
16904fi
16905
22e05272 16906echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
48310492
RH
16907_ACEOF
16908
16909
16910{
16911 echo "cat >conf$$subs.awk <<_ACEOF" &&
16912 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16913 echo "_ACEOF"
16914} >conf$$subs.sh ||
22e05272
JM
16915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16916ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
48310492
RH
16917ac_delim='%!_!# '
16918for ac_last_try in false false false false false :; do
16919 . ./conf$$subs.sh ||
22e05272 16920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48310492
RH
16921
16922 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16923 if test $ac_delim_n = $ac_delim_num; then
16924 break
16925 elif $ac_last_try; then
22e05272 16926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48310492
RH
16927 else
16928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16929 fi
16930done
16931rm -f conf$$subs.sh
16932
16933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16934cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
48310492
RH
16935_ACEOF
16936sed -n '
16937h
16938s/^/S["/; s/!.*/"]=/
16939p
16940g
16941s/^[^!]*!//
16942:repl
16943t repl
16944s/'"$ac_delim"'$//
16945t delim
16946:nl
16947h
22e05272 16948s/\(.\{148\}\)..*/\1/
48310492
RH
16949t more1
16950s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16951p
16952n
16953b repl
16954:more1
16955s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16956p
16957g
16958s/.\{148\}//
16959t nl
16960:delim
16961h
22e05272 16962s/\(.\{148\}\)..*/\1/
48310492
RH
16963t more2
16964s/["\\]/\\&/g; s/^/"/; s/$/"/
16965p
16966b
16967:more2
16968s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16969p
16970g
16971s/.\{148\}//
16972t delim
16973' <conf$$subs.awk | sed '
16974/^[^""]/{
16975 N
16976 s/\n//
16977}
16978' >>$CONFIG_STATUS || ac_write_fail=1
16979rm -f conf$$subs.awk
16980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16981_ACAWK
22e05272 16982cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
48310492
RH
16983 for (key in S) S_is_set[key] = 1
16984 FS = "\a"
16985
16986}
16987{
16988 line = $ 0
16989 nfields = split(line, field, "@")
16990 substed = 0
16991 len = length(field[1])
16992 for (i = 2; i < nfields; i++) {
16993 key = field[i]
16994 keylen = length(key)
16995 if (S_is_set[key]) {
16996 value = S[key]
16997 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16998 len += length(value) + length(field[++i])
16999 substed = 1
17000 } else
17001 len += 1 + keylen
17002 }
17003
17004 print line
17005}
17006
17007_ACAWK
17008_ACEOF
17009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17010if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17011 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17012else
17013 cat
22e05272
JM
17014fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17015 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
48310492
RH
17016_ACEOF
17017
22e05272
JM
17018# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17019# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
48310492
RH
17020# trailing colons and then remove the whole line if VPATH becomes empty
17021# (actually we leave an empty line to preserve line numbers).
17022if test "x$srcdir" = x.; then
22e05272
JM
17023 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17024h
17025s///
17026s/^/:/
17027s/[ ]*$/:/
17028s/:\$(srcdir):/:/g
17029s/:\${srcdir}:/:/g
17030s/:@srcdir@:/:/g
17031s/^:*//
48310492 17032s/:*$//
22e05272
JM
17033x
17034s/\(=[ ]*\).*/\1/
17035G
17036s/\n//
48310492
RH
17037s/^[^=]*=[ ]*$//
17038}'
17039fi
17040
17041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17042fi # test -n "$CONFIG_FILES"
17043
17044# Set up the scripts for CONFIG_HEADERS section.
17045# No need to generate them if there are no CONFIG_HEADERS.
17046# This happens for instance with `./config.status Makefile'.
17047if test -n "$CONFIG_HEADERS"; then
22e05272 17048cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
48310492
RH
17049BEGIN {
17050_ACEOF
17051
17052# Transform confdefs.h into an awk script `defines.awk', embedded as
17053# here-document in config.status, that substitutes the proper values into
17054# config.h.in to produce config.h.
17055
17056# Create a delimiter string that does not exist in confdefs.h, to ease
17057# handling of long lines.
17058ac_delim='%!_!# '
17059for ac_last_try in false false :; do
22e05272
JM
17060 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17061 if test -z "$ac_tt"; then
48310492
RH
17062 break
17063 elif $ac_last_try; then
22e05272 17064 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
48310492
RH
17065 else
17066 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17067 fi
17068done
17069
17070# For the awk script, D is an array of macro values keyed by name,
17071# likewise P contains macro parameters if any. Preserve backslash
17072# newline sequences.
17073
17074ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17075sed -n '
17076s/.\{148\}/&'"$ac_delim"'/g
17077t rset
17078:rset
17079s/^[ ]*#[ ]*define[ ][ ]*/ /
17080t def
17081d
17082:def
17083s/\\$//
17084t bsnl
17085s/["\\]/\\&/g
17086s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17087D["\1"]=" \3"/p
17088s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17089d
17090:bsnl
17091s/["\\]/\\&/g
17092s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17093D["\1"]=" \3\\\\\\n"\\/p
17094t cont
17095s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17096t cont
17097d
17098:cont
17099n
17100s/.\{148\}/&'"$ac_delim"'/g
17101t clear
17102:clear
17103s/\\$//
17104t bsnlc
17105s/["\\]/\\&/g; s/^/"/; s/$/"/p
17106d
17107:bsnlc
17108s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17109b cont
17110' <confdefs.h | sed '
17111s/'"$ac_delim"'/"\\\
17112"/g' >>$CONFIG_STATUS || ac_write_fail=1
17113
17114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17115 for (key in D) D_is_set[key] = 1
17116 FS = "\a"
17117}
17118/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17119 line = \$ 0
17120 split(line, arg, " ")
17121 if (arg[1] == "#") {
17122 defundef = arg[2]
17123 mac1 = arg[3]
17124 } else {
17125 defundef = substr(arg[1], 2)
17126 mac1 = arg[2]
17127 }
17128 split(mac1, mac2, "(") #)
17129 macro = mac2[1]
17130 prefix = substr(line, 1, index(line, defundef) - 1)
17131 if (D_is_set[macro]) {
17132 # Preserve the white space surrounding the "#".
17133 print prefix "define", macro P[macro] D[macro]
17134 next
17135 } else {
17136 # Replace #undef with comments. This is necessary, for example,
17137 # in the case of _POSIX_SOURCE, which is predefined and required
17138 # on some systems where configure will not decide to define it.
17139 if (defundef == "undef") {
17140 print "/*", prefix defundef, macro, "*/"
17141 next
17142 }
17143 }
17144}
17145{ print }
17146_ACAWK
17147_ACEOF
17148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 17149 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
48310492
RH
17150fi # test -n "$CONFIG_HEADERS"
17151
17152
17153eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17154shift
17155for ac_tag
17156do
17157 case $ac_tag in
17158 :[FHLC]) ac_mode=$ac_tag; continue;;
17159 esac
17160 case $ac_mode$ac_tag in
17161 :[FHL]*:*);;
22e05272 17162 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
48310492
RH
17163 :[FH]-) ac_tag=-:-;;
17164 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17165 esac
17166 ac_save_IFS=$IFS
17167 IFS=:
17168 set x $ac_tag
17169 IFS=$ac_save_IFS
17170 shift
17171 ac_file=$1
17172 shift
17173
17174 case $ac_mode in
17175 :L) ac_source=$1;;
17176 :[FH])
17177 ac_file_inputs=
17178 for ac_f
17179 do
17180 case $ac_f in
22e05272 17181 -) ac_f="$ac_tmp/stdin";;
48310492
RH
17182 *) # Look for the file first in the build tree, then in the source tree
17183 # (if the path is not absolute). The absolute path cannot be DOS-style,
17184 # because $ac_f cannot contain `:'.
17185 test -f "$ac_f" ||
17186 case $ac_f in
17187 [\\/$]*) false;;
17188 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17189 esac ||
22e05272 17190 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
48310492
RH
17191 esac
17192 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17193 as_fn_append ac_file_inputs " '$ac_f'"
17194 done
17195
17196 # Let's still pretend it is `configure' which instantiates (i.e., don't
17197 # use $as_me), people would be surprised to read:
17198 # /* config.h. Generated by config.status. */
17199 configure_input='Generated from '`
17200 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17201 `' by configure.'
17202 if test x"$ac_file" != x-; then
17203 configure_input="$ac_file. $configure_input"
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17205$as_echo "$as_me: creating $ac_file" >&6;}
17206 fi
17207 # Neutralize special characters interpreted by sed in replacement strings.
17208 case $configure_input in #(
17209 *\&* | *\|* | *\\* )
17210 ac_sed_conf_input=`$as_echo "$configure_input" |
17211 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17212 *) ac_sed_conf_input=$configure_input;;
17213 esac
17214
17215 case $ac_tag in
22e05272
JM
17216 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
48310492
RH
17218 esac
17219 ;;
17220 esac
17221
17222 ac_dir=`$as_dirname -- "$ac_file" ||
17223$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17224 X"$ac_file" : 'X\(//\)[^/]' \| \
17225 X"$ac_file" : 'X\(//\)$' \| \
17226 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17227$as_echo X"$ac_file" |
17228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17229 s//\1/
17230 q
17231 }
17232 /^X\(\/\/\)[^/].*/{
17233 s//\1/
17234 q
17235 }
17236 /^X\(\/\/\)$/{
17237 s//\1/
17238 q
17239 }
17240 /^X\(\/\).*/{
17241 s//\1/
17242 q
17243 }
17244 s/.*/./; q'`
17245 as_dir="$ac_dir"; as_fn_mkdir_p
17246 ac_builddir=.
17247
17248case "$ac_dir" in
17249.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17250*)
17251 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17252 # A ".." for each directory in $ac_dir_suffix.
17253 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17254 case $ac_top_builddir_sub in
17255 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17256 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17257 esac ;;
17258esac
17259ac_abs_top_builddir=$ac_pwd
17260ac_abs_builddir=$ac_pwd$ac_dir_suffix
17261# for backward compatibility:
17262ac_top_builddir=$ac_top_build_prefix
17263
17264case $srcdir in
17265 .) # We are building in place.
17266 ac_srcdir=.
17267 ac_top_srcdir=$ac_top_builddir_sub
17268 ac_abs_top_srcdir=$ac_pwd ;;
17269 [\\/]* | ?:[\\/]* ) # Absolute name.
17270 ac_srcdir=$srcdir$ac_dir_suffix;
17271 ac_top_srcdir=$srcdir
17272 ac_abs_top_srcdir=$srcdir ;;
17273 *) # Relative name.
17274 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17275 ac_top_srcdir=$ac_top_build_prefix$srcdir
17276 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17277esac
17278ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17279
17280
17281 case $ac_mode in
17282 :F)
17283 #
17284 # CONFIG_FILE
17285 #
17286
17287 case $INSTALL in
17288 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17289 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17290 esac
17291 ac_MKDIR_P=$MKDIR_P
17292 case $MKDIR_P in
17293 [\\/$]* | ?:[\\/]* ) ;;
17294 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17295 esac
17296_ACEOF
17297
17298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17299# If the template does not know about datarootdir, expand it.
17300# FIXME: This hack should be removed a few years after 2.60.
17301ac_datarootdir_hack=; ac_datarootdir_seen=
17302ac_sed_dataroot='
17303/datarootdir/ {
17304 p
17305 q
17306}
17307/@datadir@/p
17308/@docdir@/p
17309/@infodir@/p
17310/@localedir@/p
17311/@mandir@/p'
17312case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17313*datarootdir*) ac_datarootdir_seen=yes;;
17314*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17316$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17317_ACEOF
17318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17319 ac_datarootdir_hack='
17320 s&@datadir@&$datadir&g
17321 s&@docdir@&$docdir&g
17322 s&@infodir@&$infodir&g
17323 s&@localedir@&$localedir&g
17324 s&@mandir@&$mandir&g
17325 s&\\\${datarootdir}&$datarootdir&g' ;;
17326esac
17327_ACEOF
17328
17329# Neutralize VPATH when `$srcdir' = `.'.
17330# Shell code in configure.ac might set extrasub.
17331# FIXME: do we really want to maintain this feature?
17332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17333ac_sed_extra="$ac_vpsub
17334$extrasub
17335_ACEOF
17336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17337:t
17338/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17339s|@configure_input@|$ac_sed_conf_input|;t t
17340s&@top_builddir@&$ac_top_builddir_sub&;t t
17341s&@top_build_prefix@&$ac_top_build_prefix&;t t
17342s&@srcdir@&$ac_srcdir&;t t
17343s&@abs_srcdir@&$ac_abs_srcdir&;t t
17344s&@top_srcdir@&$ac_top_srcdir&;t t
17345s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17346s&@builddir@&$ac_builddir&;t t
17347s&@abs_builddir@&$ac_abs_builddir&;t t
17348s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17349s&@INSTALL@&$ac_INSTALL&;t t
17350s&@MKDIR_P@&$ac_MKDIR_P&;t t
17351$ac_datarootdir_hack
17352"
22e05272
JM
17353eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17354 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17355
17356test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
17357 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17358 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17359 "$ac_tmp/out"`; test -z "$ac_out"; } &&
48310492 17360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17361which seems to be undefined. Please make sure it is defined" >&5
48310492 17362$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17363which seems to be undefined. Please make sure it is defined" >&2;}
48310492 17364
22e05272 17365 rm -f "$ac_tmp/stdin"
48310492 17366 case $ac_file in
22e05272
JM
17367 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17368 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
48310492 17369 esac \
22e05272 17370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17371 ;;
17372 :H)
17373 #
17374 # CONFIG_HEADER
17375 #
17376 if test x"$ac_file" != x-; then
17377 {
17378 $as_echo "/* $configure_input */" \
22e05272
JM
17379 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17380 } >"$ac_tmp/config.h" \
17381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17382 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48310492
RH
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17384$as_echo "$as_me: $ac_file is unchanged" >&6;}
17385 else
17386 rm -f "$ac_file"
22e05272
JM
17387 mv "$ac_tmp/config.h" "$ac_file" \
17388 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17389 fi
17390 else
17391 $as_echo "/* $configure_input */" \
22e05272
JM
17392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17393 || as_fn_error $? "could not create -" "$LINENO" 5
48310492
RH
17394 fi
17395# Compute "$ac_file"'s index in $config_headers.
17396_am_arg="$ac_file"
17397_am_stamp_count=1
17398for _am_header in $config_headers :; do
17399 case $_am_header in
17400 $_am_arg | $_am_arg:* )
17401 break ;;
17402 * )
17403 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17404 esac
17405done
17406echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17407$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17408 X"$_am_arg" : 'X\(//\)[^/]' \| \
17409 X"$_am_arg" : 'X\(//\)$' \| \
17410 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17411$as_echo X"$_am_arg" |
17412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17413 s//\1/
17414 q
17415 }
17416 /^X\(\/\/\)[^/].*/{
17417 s//\1/
17418 q
17419 }
17420 /^X\(\/\/\)$/{
17421 s//\1/
17422 q
17423 }
17424 /^X\(\/\).*/{
17425 s//\1/
17426 q
17427 }
17428 s/.*/./; q'`/stamp-h$_am_stamp_count
17429 ;;
17430
17431 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17432$as_echo "$as_me: executing $ac_file commands" >&6;}
17433 ;;
17434 esac
17435
17436
17437 case $ac_file$ac_mode in
17438 "default-1":C)
17439# Only add multilib support code if we just rebuilt the top-level
17440# Makefile.
17441case " $CONFIG_FILES " in
17442 *" Makefile "*)
17443 ac_file=Makefile . ${multi_basedir}/config-ml.in
17444 ;;
17445esac ;;
17446 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 17447 # Older Autoconf quotes --file arguments for eval, but not when files
48310492
RH
17448 # are listed without --file. Let's play safe and only enable the eval
17449 # if we detect the quoting.
17450 case $CONFIG_FILES in
17451 *\'*) eval set x "$CONFIG_FILES" ;;
17452 *) set x $CONFIG_FILES ;;
17453 esac
17454 shift
17455 for mf
17456 do
17457 # Strip MF so we end up with the name of the file.
17458 mf=`echo "$mf" | sed -e 's/:.*$//'`
17459 # Check whether this is an Automake generated Makefile or not.
22e05272 17460 # We used to match only the files named 'Makefile.in', but
48310492
RH
17461 # some people rename them; so instead we look at the file content.
17462 # Grep'ing the first line is not enough: some people post-process
17463 # each Makefile.in and add a new line on top of each file to say so.
17464 # Grep'ing the whole file is not good either: AIX grep has a line
17465 # limit of 2048, but all sed's we know have understand at least 4000.
17466 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17467 dirpart=`$as_dirname -- "$mf" ||
17468$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17469 X"$mf" : 'X\(//\)[^/]' \| \
17470 X"$mf" : 'X\(//\)$' \| \
17471 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17472$as_echo X"$mf" |
17473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17474 s//\1/
17475 q
17476 }
17477 /^X\(\/\/\)[^/].*/{
17478 s//\1/
17479 q
17480 }
17481 /^X\(\/\/\)$/{
17482 s//\1/
17483 q
17484 }
17485 /^X\(\/\).*/{
17486 s//\1/
17487 q
17488 }
17489 s/.*/./; q'`
17490 else
17491 continue
17492 fi
17493 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 17494 # from the Makefile without running 'make'.
48310492
RH
17495 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17496 test -z "$DEPDIR" && continue
17497 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 17498 test -z "$am__include" && continue
48310492 17499 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48310492
RH
17500 # Find all dependency output files, they are included files with
17501 # $(DEPDIR) in their names. We invoke sed twice because it is the
17502 # simplest approach to changing $(DEPDIR) to its actual value in the
17503 # expansion.
17504 for file in `sed -n "
17505 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 17506 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
48310492
RH
17507 # Make sure the directory exists.
17508 test -f "$dirpart/$file" && continue
17509 fdir=`$as_dirname -- "$file" ||
17510$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17511 X"$file" : 'X\(//\)[^/]' \| \
17512 X"$file" : 'X\(//\)$' \| \
17513 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17514$as_echo X"$file" |
17515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17516 s//\1/
17517 q
17518 }
17519 /^X\(\/\/\)[^/].*/{
17520 s//\1/
17521 q
17522 }
17523 /^X\(\/\/\)$/{
17524 s//\1/
17525 q
17526 }
17527 /^X\(\/\).*/{
17528 s//\1/
17529 q
17530 }
17531 s/.*/./; q'`
17532 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17533 # echo "creating $dirpart/$file"
17534 echo '# dummy' > "$dirpart/$file"
17535 done
17536 done
17537}
17538 ;;
17539 "libtool":C)
17540
17541 # See if we are running on zsh, and set the options which allow our
17542 # commands through without removal of \ escapes.
17543 if test -n "${ZSH_VERSION+set}" ; then
17544 setopt NO_GLOB_SUBST
17545 fi
17546
17547 cfgfile="${ofile}T"
17548 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17549 $RM "$cfgfile"
17550
17551 cat <<_LT_EOF >> "$cfgfile"
17552#! $SHELL
17553
17554# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17555# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17556# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17557# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17558#
17559# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17560# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17561# Written by Gordon Matzigkeit, 1996
17562#
17563# This file is part of GNU Libtool.
17564#
17565# GNU Libtool is free software; you can redistribute it and/or
17566# modify it under the terms of the GNU General Public License as
17567# published by the Free Software Foundation; either version 2 of
17568# the License, or (at your option) any later version.
17569#
17570# As a special exception to the GNU General Public License,
17571# if you distribute this file as part of a program or library that
17572# is built using GNU Libtool, you may include this file under the
17573# same distribution terms that you use for the rest of that program.
17574#
17575# GNU Libtool is distributed in the hope that it will be useful,
17576# but WITHOUT ANY WARRANTY; without even the implied warranty of
17577# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17578# GNU General Public License for more details.
17579#
17580# You should have received a copy of the GNU General Public License
17581# along with GNU Libtool; see the file COPYING. If not, a copy
17582# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17583# obtained by writing to the Free Software Foundation, Inc.,
17584# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17585
17586
17587# The names of the tagged configurations supported by this script.
17588available_tags=""
17589
17590# ### BEGIN LIBTOOL CONFIG
17591
17592# Which release of libtool.m4 was used?
17593macro_version=$macro_version
17594macro_revision=$macro_revision
17595
17596# Whether or not to build shared libraries.
17597build_libtool_libs=$enable_shared
17598
17599# Whether or not to build static libraries.
17600build_old_libs=$enable_static
17601
17602# What type of objects to build.
17603pic_mode=$pic_mode
17604
17605# Whether or not to optimize for fast installation.
17606fast_install=$enable_fast_install
17607
17608# Shell to use when invoking shell scripts.
17609SHELL=$lt_SHELL
17610
17611# An echo program that protects backslashes.
17612ECHO=$lt_ECHO
17613
17614# The host system.
17615host_alias=$host_alias
17616host=$host
17617host_os=$host_os
17618
17619# The build system.
17620build_alias=$build_alias
17621build=$build
17622build_os=$build_os
17623
17624# A sed program that does not truncate output.
17625SED=$lt_SED
17626
17627# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17628Xsed="\$SED -e 1s/^X//"
17629
17630# A grep program that handles long lines.
17631GREP=$lt_GREP
17632
17633# An ERE matcher.
17634EGREP=$lt_EGREP
17635
17636# A literal string matcher.
17637FGREP=$lt_FGREP
17638
17639# A BSD- or MS-compatible name lister.
17640NM=$lt_NM
17641
17642# Whether we need soft or hard links.
17643LN_S=$lt_LN_S
17644
17645# What is the maximum length of a command?
17646max_cmd_len=$max_cmd_len
17647
17648# Object file suffix (normally "o").
17649objext=$ac_objext
17650
17651# Executable file suffix (normally "").
17652exeext=$exeext
17653
17654# whether the shell understands "unset".
17655lt_unset=$lt_unset
17656
17657# turn spaces into newlines.
17658SP2NL=$lt_lt_SP2NL
17659
17660# turn newlines into spaces.
17661NL2SP=$lt_lt_NL2SP
17662
17663# An object symbol dumper.
17664OBJDUMP=$lt_OBJDUMP
17665
17666# Method to check whether dependent libraries are shared objects.
17667deplibs_check_method=$lt_deplibs_check_method
17668
17669# Command to use when deplibs_check_method == "file_magic".
17670file_magic_cmd=$lt_file_magic_cmd
17671
17672# The archiver.
17673AR=$lt_AR
17674AR_FLAGS=$lt_AR_FLAGS
17675
17676# A symbol stripping program.
17677STRIP=$lt_STRIP
17678
17679# Commands used to install an old-style archive.
17680RANLIB=$lt_RANLIB
17681old_postinstall_cmds=$lt_old_postinstall_cmds
17682old_postuninstall_cmds=$lt_old_postuninstall_cmds
17683
17684# Whether to use a lock for old archive extraction.
17685lock_old_archive_extraction=$lock_old_archive_extraction
17686
17687# A C compiler.
17688LTCC=$lt_CC
17689
17690# LTCC compiler flags.
17691LTCFLAGS=$lt_CFLAGS
17692
17693# Take the output of nm and produce a listing of raw symbols and C names.
17694global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17695
17696# Transform the output of nm in a proper C declaration.
17697global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17698
17699# Transform the output of nm in a C name address pair.
17700global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17701
17702# Transform the output of nm in a C name address pair when lib prefix is needed.
17703global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17704
17705# The name of the directory that contains temporary libtool files.
17706objdir=$objdir
17707
17708# Used to examine libraries when file_magic_cmd begins with "file".
17709MAGIC_CMD=$MAGIC_CMD
17710
17711# Must we lock files when doing compilation?
17712need_locks=$lt_need_locks
17713
17714# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17715DSYMUTIL=$lt_DSYMUTIL
17716
17717# Tool to change global to local symbols on Mac OS X.
17718NMEDIT=$lt_NMEDIT
17719
17720# Tool to manipulate fat objects and archives on Mac OS X.
17721LIPO=$lt_LIPO
17722
17723# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17724OTOOL=$lt_OTOOL
17725
17726# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17727OTOOL64=$lt_OTOOL64
17728
17729# Old archive suffix (normally "a").
17730libext=$libext
17731
17732# Shared library suffix (normally ".so").
17733shrext_cmds=$lt_shrext_cmds
17734
17735# The commands to extract the exported symbol list from a shared archive.
17736extract_expsyms_cmds=$lt_extract_expsyms_cmds
17737
17738# Variables whose values should be saved in libtool wrapper scripts and
17739# restored at link time.
17740variables_saved_for_relink=$lt_variables_saved_for_relink
17741
17742# Do we need the "lib" prefix for modules?
17743need_lib_prefix=$need_lib_prefix
17744
17745# Do we need a version for libraries?
17746need_version=$need_version
17747
17748# Library versioning type.
17749version_type=$version_type
17750
17751# Shared library runtime path variable.
17752runpath_var=$runpath_var
17753
17754# Shared library path variable.
17755shlibpath_var=$shlibpath_var
17756
17757# Is shlibpath searched before the hard-coded library search path?
17758shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17759
17760# Format of library name prefix.
17761libname_spec=$lt_libname_spec
17762
17763# List of archive names. First name is the real one, the rest are links.
17764# The last name is the one that the linker finds with -lNAME
17765library_names_spec=$lt_library_names_spec
17766
17767# The coded name of the library, if different from the real name.
17768soname_spec=$lt_soname_spec
17769
17770# Permission mode override for installation of shared libraries.
17771install_override_mode=$lt_install_override_mode
17772
17773# Command to use after installation of a shared archive.
17774postinstall_cmds=$lt_postinstall_cmds
17775
17776# Command to use after uninstallation of a shared archive.
17777postuninstall_cmds=$lt_postuninstall_cmds
17778
17779# Commands used to finish a libtool library installation in a directory.
17780finish_cmds=$lt_finish_cmds
17781
17782# As "finish_cmds", except a single script fragment to be evaled but
17783# not shown.
17784finish_eval=$lt_finish_eval
17785
17786# Whether we should hardcode library paths into libraries.
17787hardcode_into_libs=$hardcode_into_libs
17788
17789# Compile-time system search path for libraries.
17790sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17791
17792# Run-time system search path for libraries.
17793sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17794
17795# Whether dlopen is supported.
17796dlopen_support=$enable_dlopen
17797
17798# Whether dlopen of programs is supported.
17799dlopen_self=$enable_dlopen_self
17800
17801# Whether dlopen of statically linked programs is supported.
17802dlopen_self_static=$enable_dlopen_self_static
17803
17804# Commands to strip libraries.
17805old_striplib=$lt_old_striplib
17806striplib=$lt_striplib
17807
17808
17809# The linker used to build libraries.
17810LD=$lt_LD
17811
17812# How to create reloadable object files.
17813reload_flag=$lt_reload_flag
17814reload_cmds=$lt_reload_cmds
17815
17816# Commands used to build an old-style archive.
17817old_archive_cmds=$lt_old_archive_cmds
17818
17819# A language specific compiler.
17820CC=$lt_compiler
17821
17822# Is the compiler the GNU compiler?
17823with_gcc=$GCC
17824
17825# Compiler flag to turn off builtin functions.
17826no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17827
17828# How to pass a linker flag through the compiler.
17829wl=$lt_lt_prog_compiler_wl
17830
17831# Additional compiler flags for building library objects.
17832pic_flag=$lt_lt_prog_compiler_pic
17833
17834# Compiler flag to prevent dynamic linking.
17835link_static_flag=$lt_lt_prog_compiler_static
17836
17837# Does compiler simultaneously support -c and -o options?
17838compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17839
17840# Whether or not to add -lc for building shared libraries.
17841build_libtool_need_lc=$archive_cmds_need_lc
17842
17843# Whether or not to disallow shared libs when runtime libs are static.
17844allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17845
17846# Compiler flag to allow reflexive dlopens.
17847export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17848
17849# Compiler flag to generate shared objects directly from archives.
17850whole_archive_flag_spec=$lt_whole_archive_flag_spec
17851
17852# Whether the compiler copes with passing no objects directly.
17853compiler_needs_object=$lt_compiler_needs_object
17854
17855# Create an old-style archive from a shared archive.
17856old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17857
17858# Create a temporary old-style archive to link instead of a shared archive.
17859old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17860
17861# Commands used to build a shared archive.
17862archive_cmds=$lt_archive_cmds
17863archive_expsym_cmds=$lt_archive_expsym_cmds
17864
17865# Commands used to build a loadable module if different from building
17866# a shared archive.
17867module_cmds=$lt_module_cmds
17868module_expsym_cmds=$lt_module_expsym_cmds
17869
17870# Whether we are building with GNU ld or not.
17871with_gnu_ld=$lt_with_gnu_ld
17872
17873# Flag that allows shared libraries with undefined symbols to be built.
17874allow_undefined_flag=$lt_allow_undefined_flag
17875
17876# Flag that enforces no undefined symbols.
17877no_undefined_flag=$lt_no_undefined_flag
17878
17879# Flag to hardcode \$libdir into a binary during linking.
17880# This must work even if \$libdir does not exist
17881hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17882
17883# If ld is used when linking, flag to hardcode \$libdir into a binary
17884# during linking. This must work even if \$libdir does not exist.
17885hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17886
17887# Whether we need a single "-rpath" flag with a separated argument.
17888hardcode_libdir_separator=$lt_hardcode_libdir_separator
17889
17890# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17891# DIR into the resulting binary.
17892hardcode_direct=$hardcode_direct
17893
17894# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17895# DIR into the resulting binary and the resulting library dependency is
17896# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17897# library is relocated.
17898hardcode_direct_absolute=$hardcode_direct_absolute
17899
17900# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17901# into the resulting binary.
17902hardcode_minus_L=$hardcode_minus_L
17903
17904# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17905# into the resulting binary.
17906hardcode_shlibpath_var=$hardcode_shlibpath_var
17907
17908# Set to "yes" if building a shared library automatically hardcodes DIR
17909# into the library and all subsequent libraries and executables linked
17910# against it.
17911hardcode_automatic=$hardcode_automatic
17912
17913# Set to yes if linker adds runtime paths of dependent libraries
17914# to runtime path list.
17915inherit_rpath=$inherit_rpath
17916
17917# Whether libtool must link a program against all its dependency libraries.
17918link_all_deplibs=$link_all_deplibs
17919
17920# Fix the shell variable \$srcfile for the compiler.
17921fix_srcfile_path=$lt_fix_srcfile_path
17922
17923# Set to "yes" if exported symbols are required.
17924always_export_symbols=$always_export_symbols
17925
17926# The commands to list exported symbols.
17927export_symbols_cmds=$lt_export_symbols_cmds
17928
17929# Symbols that should not be listed in the preloaded symbols.
17930exclude_expsyms=$lt_exclude_expsyms
17931
17932# Symbols that must always be exported.
17933include_expsyms=$lt_include_expsyms
17934
17935# Commands necessary for linking programs (against libraries) with templates.
17936prelink_cmds=$lt_prelink_cmds
17937
17938# Specify filename containing input files.
17939file_list_spec=$lt_file_list_spec
17940
17941# How to hardcode a shared library path into an executable.
17942hardcode_action=$hardcode_action
17943
17944# ### END LIBTOOL CONFIG
17945
17946_LT_EOF
17947
17948 case $host_os in
17949 aix3*)
17950 cat <<\_LT_EOF >> "$cfgfile"
17951# AIX sometimes has problems with the GCC collect2 program. For some
17952# reason, if we set the COLLECT_NAMES environment variable, the problems
17953# vanish in a puff of smoke.
17954if test "X${COLLECT_NAMES+set}" != Xset; then
17955 COLLECT_NAMES=
17956 export COLLECT_NAMES
17957fi
17958_LT_EOF
17959 ;;
17960 esac
17961
17962
17963ltmain="$ac_aux_dir/ltmain.sh"
17964
17965
17966 # We use sed instead of cat because bash on DJGPP gets confused if
17967 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17968 # text mode, it properly converts lines to CR/LF. This bash problem
17969 # is reportedly fixed, but why not run on old versions too?
17970 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17971 || (rm -f "$cfgfile"; exit 1)
17972
17973 case $xsi_shell in
17974 yes)
17975 cat << \_LT_EOF >> "$cfgfile"
17976
17977# func_dirname file append nondir_replacement
17978# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17979# otherwise set result to NONDIR_REPLACEMENT.
17980func_dirname ()
17981{
17982 case ${1} in
17983 */*) func_dirname_result="${1%/*}${2}" ;;
17984 * ) func_dirname_result="${3}" ;;
17985 esac
17986}
17987
17988# func_basename file
17989func_basename ()
17990{
17991 func_basename_result="${1##*/}"
17992}
17993
17994# func_dirname_and_basename file append nondir_replacement
17995# perform func_basename and func_dirname in a single function
17996# call:
17997# dirname: Compute the dirname of FILE. If nonempty,
17998# add APPEND to the result, otherwise set result
17999# to NONDIR_REPLACEMENT.
18000# value returned in "$func_dirname_result"
18001# basename: Compute filename of FILE.
18002# value retuned in "$func_basename_result"
18003# Implementation must be kept synchronized with func_dirname
18004# and func_basename. For efficiency, we do not delegate to
18005# those functions but instead duplicate the functionality here.
18006func_dirname_and_basename ()
18007{
18008 case ${1} in
18009 */*) func_dirname_result="${1%/*}${2}" ;;
18010 * ) func_dirname_result="${3}" ;;
18011 esac
18012 func_basename_result="${1##*/}"
18013}
18014
18015# func_stripname prefix suffix name
18016# strip PREFIX and SUFFIX off of NAME.
18017# PREFIX and SUFFIX must not contain globbing or regex special
18018# characters, hashes, percent signs, but SUFFIX may contain a leading
18019# dot (in which case that matches only a dot).
18020func_stripname ()
18021{
18022 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18023 # positional parameters, so assign one to ordinary parameter first.
18024 func_stripname_result=${3}
18025 func_stripname_result=${func_stripname_result#"${1}"}
18026 func_stripname_result=${func_stripname_result%"${2}"}
18027}
18028
18029# func_opt_split
18030func_opt_split ()
18031{
18032 func_opt_split_opt=${1%%=*}
18033 func_opt_split_arg=${1#*=}
18034}
18035
18036# func_lo2o object
18037func_lo2o ()
18038{
18039 case ${1} in
18040 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18041 *) func_lo2o_result=${1} ;;
18042 esac
18043}
18044
18045# func_xform libobj-or-source
18046func_xform ()
18047{
18048 func_xform_result=${1%.*}.lo
18049}
18050
18051# func_arith arithmetic-term...
18052func_arith ()
18053{
18054 func_arith_result=$(( $* ))
18055}
18056
18057# func_len string
18058# STRING may not start with a hyphen.
18059func_len ()
18060{
18061 func_len_result=${#1}
18062}
18063
18064_LT_EOF
18065 ;;
18066 *) # Bourne compatible functions.
18067 cat << \_LT_EOF >> "$cfgfile"
18068
18069# func_dirname file append nondir_replacement
18070# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18071# otherwise set result to NONDIR_REPLACEMENT.
18072func_dirname ()
18073{
18074 # Extract subdirectory from the argument.
18075 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18076 if test "X$func_dirname_result" = "X${1}"; then
18077 func_dirname_result="${3}"
18078 else
18079 func_dirname_result="$func_dirname_result${2}"
18080 fi
18081}
18082
18083# func_basename file
18084func_basename ()
18085{
18086 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18087}
18088
18089
18090# func_stripname prefix suffix name
18091# strip PREFIX and SUFFIX off of NAME.
18092# PREFIX and SUFFIX must not contain globbing or regex special
18093# characters, hashes, percent signs, but SUFFIX may contain a leading
18094# dot (in which case that matches only a dot).
18095# func_strip_suffix prefix name
18096func_stripname ()
18097{
18098 case ${2} in
18099 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18100 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18101 esac
18102}
18103
18104# sed scripts:
18105my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18106my_sed_long_arg='1s/^-[^=]*=//'
18107
18108# func_opt_split
18109func_opt_split ()
18110{
18111 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18112 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18113}
18114
18115# func_lo2o object
18116func_lo2o ()
18117{
18118 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18119}
18120
18121# func_xform libobj-or-source
18122func_xform ()
18123{
18124 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18125}
18126
18127# func_arith arithmetic-term...
18128func_arith ()
18129{
18130 func_arith_result=`expr "$@"`
18131}
18132
18133# func_len string
18134# STRING may not start with a hyphen.
18135func_len ()
18136{
18137 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18138}
18139
18140_LT_EOF
18141esac
18142
18143case $lt_shell_append in
18144 yes)
18145 cat << \_LT_EOF >> "$cfgfile"
18146
18147# func_append var value
18148# Append VALUE to the end of shell variable VAR.
18149func_append ()
18150{
18151 eval "$1+=\$2"
18152}
18153_LT_EOF
18154 ;;
18155 *)
18156 cat << \_LT_EOF >> "$cfgfile"
18157
18158# func_append var value
18159# Append VALUE to the end of shell variable VAR.
18160func_append ()
18161{
18162 eval "$1=\$$1\$2"
18163}
18164
18165_LT_EOF
18166 ;;
18167 esac
18168
18169
18170 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18171 || (rm -f "$cfgfile"; exit 1)
18172
18173 mv -f "$cfgfile" "$ofile" ||
18174 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18175 chmod +x "$ofile"
18176
18177 ;;
18178 "gstdint.h":C)
18179if test "$GCC" = yes; then
18180 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18181else
18182 echo "/* generated for $CC */" > tmp-stdint.h
18183fi
18184
18185sed 's/^ *//' >> tmp-stdint.h <<EOF
18186
18187 #ifndef GCC_GENERATED_STDINT_H
18188 #define GCC_GENERATED_STDINT_H 1
18189
18190 #include <sys/types.h>
18191EOF
18192
18193if test "$acx_cv_header_stdint" != stdint.h; then
18194 echo "#include <stddef.h>" >> tmp-stdint.h
18195fi
18196if test "$acx_cv_header_stdint" != stddef.h; then
18197 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18198fi
18199
18200sed 's/^ *//' >> tmp-stdint.h <<EOF
18201 /* glibc uses these symbols as guards to prevent redefinitions. */
18202 #ifdef __int8_t_defined
18203 #define _INT8_T
18204 #define _INT16_T
18205 #define _INT32_T
18206 #endif
18207 #ifdef __uint32_t_defined
18208 #define _UINT32_T
18209 #endif
18210
18211EOF
18212
18213# ----------------- done header, emit basic int types -------------
18214if test "$acx_cv_header_stdint" = stddef.h; then
18215 sed 's/^ *//' >> tmp-stdint.h <<EOF
18216
18217 #ifndef _UINT8_T
18218 #define _UINT8_T
18219 #ifndef __uint8_t_defined
18220 #define __uint8_t_defined
18221 #ifndef uint8_t
18222 typedef unsigned $acx_cv_type_int8_t uint8_t;
18223 #endif
18224 #endif
18225 #endif
18226
18227 #ifndef _UINT16_T
18228 #define _UINT16_T
18229 #ifndef __uint16_t_defined
18230 #define __uint16_t_defined
18231 #ifndef uint16_t
18232 typedef unsigned $acx_cv_type_int16_t uint16_t;
18233 #endif
18234 #endif
18235 #endif
18236
18237 #ifndef _UINT32_T
18238 #define _UINT32_T
18239 #ifndef __uint32_t_defined
18240 #define __uint32_t_defined
18241 #ifndef uint32_t
18242 typedef unsigned $acx_cv_type_int32_t uint32_t;
18243 #endif
18244 #endif
18245 #endif
18246
18247 #ifndef _INT8_T
18248 #define _INT8_T
18249 #ifndef __int8_t_defined
18250 #define __int8_t_defined
18251 #ifndef int8_t
18252 typedef $acx_cv_type_int8_t int8_t;
18253 #endif
18254 #endif
18255 #endif
18256
18257 #ifndef _INT16_T
18258 #define _INT16_T
18259 #ifndef __int16_t_defined
18260 #define __int16_t_defined
18261 #ifndef int16_t
18262 typedef $acx_cv_type_int16_t int16_t;
18263 #endif
18264 #endif
18265 #endif
18266
18267 #ifndef _INT32_T
18268 #define _INT32_T
18269 #ifndef __int32_t_defined
18270 #define __int32_t_defined
18271 #ifndef int32_t
18272 typedef $acx_cv_type_int32_t int32_t;
18273 #endif
18274 #endif
18275 #endif
18276EOF
18277elif test "$ac_cv_type_u_int32_t" = yes; then
18278 sed 's/^ *//' >> tmp-stdint.h <<EOF
18279
18280 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18281 #ifndef _INT8_T
18282 #define _INT8_T
18283 #endif
18284 #ifndef _INT16_T
18285 #define _INT16_T
18286 #endif
18287 #ifndef _INT32_T
18288 #define _INT32_T
18289 #endif
18290
18291 #ifndef _UINT8_T
18292 #define _UINT8_T
18293 #ifndef __uint8_t_defined
18294 #define __uint8_t_defined
18295 #ifndef uint8_t
18296 typedef u_int8_t uint8_t;
18297 #endif
18298 #endif
18299 #endif
18300
18301 #ifndef _UINT16_T
18302 #define _UINT16_T
18303 #ifndef __uint16_t_defined
18304 #define __uint16_t_defined
18305 #ifndef uint16_t
18306 typedef u_int16_t uint16_t;
18307 #endif
18308 #endif
18309 #endif
18310
18311 #ifndef _UINT32_T
18312 #define _UINT32_T
18313 #ifndef __uint32_t_defined
18314 #define __uint32_t_defined
18315 #ifndef uint32_t
18316 typedef u_int32_t uint32_t;
18317 #endif
18318 #endif
18319 #endif
18320EOF
18321else
18322 sed 's/^ *//' >> tmp-stdint.h <<EOF
18323
18324 /* Some systems have guard macros to prevent redefinitions, define them. */
18325 #ifndef _INT8_T
18326 #define _INT8_T
18327 #endif
18328 #ifndef _INT16_T
18329 #define _INT16_T
18330 #endif
18331 #ifndef _INT32_T
18332 #define _INT32_T
18333 #endif
18334 #ifndef _UINT8_T
18335 #define _UINT8_T
18336 #endif
18337 #ifndef _UINT16_T
18338 #define _UINT16_T
18339 #endif
18340 #ifndef _UINT32_T
18341 #define _UINT32_T
18342 #endif
18343EOF
18344fi
18345
18346# ------------- done basic int types, emit int64_t types ------------
18347if test "$ac_cv_type_uint64_t" = yes; then
18348 sed 's/^ *//' >> tmp-stdint.h <<EOF
18349
18350 /* system headers have good uint64_t and int64_t */
18351 #ifndef _INT64_T
18352 #define _INT64_T
18353 #endif
18354 #ifndef _UINT64_T
18355 #define _UINT64_T
18356 #endif
18357EOF
18358elif test "$ac_cv_type_u_int64_t" = yes; then
18359 sed 's/^ *//' >> tmp-stdint.h <<EOF
18360
18361 /* system headers have an u_int64_t (and int64_t) */
18362 #ifndef _INT64_T
18363 #define _INT64_T
18364 #endif
18365 #ifndef _UINT64_T
18366 #define _UINT64_T
18367 #ifndef __uint64_t_defined
18368 #define __uint64_t_defined
18369 #ifndef uint64_t
18370 typedef u_int64_t uint64_t;
18371 #endif
18372 #endif
18373 #endif
18374EOF
18375elif test -n "$acx_cv_type_int64_t"; then
18376 sed 's/^ *//' >> tmp-stdint.h <<EOF
18377
18378 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18379 #ifndef _INT64_T
18380 #define _INT64_T
18381 #ifndef int64_t
18382 typedef $acx_cv_type_int64_t int64_t;
18383 #endif
18384 #endif
18385 #ifndef _UINT64_T
18386 #define _UINT64_T
18387 #ifndef __uint64_t_defined
18388 #define __uint64_t_defined
18389 #ifndef uint64_t
18390 typedef unsigned $acx_cv_type_int64_t uint64_t;
18391 #endif
18392 #endif
18393 #endif
18394EOF
18395else
18396 sed 's/^ *//' >> tmp-stdint.h <<EOF
18397
18398 /* some common heuristics for int64_t, using compiler-specific tests */
18399 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18400 #ifndef _INT64_T
18401 #define _INT64_T
18402 #ifndef __int64_t_defined
18403 #ifndef int64_t
18404 typedef long long int64_t;
18405 #endif
18406 #endif
18407 #endif
18408 #ifndef _UINT64_T
18409 #define _UINT64_T
18410 #ifndef uint64_t
18411 typedef unsigned long long uint64_t;
18412 #endif
18413 #endif
18414
18415 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18416 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18417 does not implement __extension__. But that compiler doesn't define
18418 __GNUC_MINOR__. */
18419 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18420 # define __extension__
18421 # endif
18422
18423 # ifndef _INT64_T
18424 # define _INT64_T
18425 # ifndef int64_t
18426 __extension__ typedef long long int64_t;
18427 # endif
18428 # endif
18429 # ifndef _UINT64_T
18430 # define _UINT64_T
18431 # ifndef uint64_t
18432 __extension__ typedef unsigned long long uint64_t;
18433 # endif
18434 # endif
18435
18436 #elif !defined __STRICT_ANSI__
18437 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18438
18439 # ifndef _INT64_T
18440 # define _INT64_T
18441 # ifndef int64_t
18442 typedef __int64 int64_t;
18443 # endif
18444 # endif
18445 # ifndef _UINT64_T
18446 # define _UINT64_T
18447 # ifndef uint64_t
18448 typedef unsigned __int64 uint64_t;
18449 # endif
18450 # endif
18451 # endif /* compiler */
18452
18453 #endif /* ANSI version */
18454EOF
18455fi
18456
18457# ------------- done int64_t types, emit intptr types ------------
18458if test "$ac_cv_type_uintptr_t" != yes; then
18459 sed 's/^ *//' >> tmp-stdint.h <<EOF
18460
18461 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18462 #ifndef __uintptr_t_defined
18463 #ifndef uintptr_t
18464 typedef u$acx_cv_type_intptr_t uintptr_t;
18465 #endif
18466 #endif
18467 #ifndef __intptr_t_defined
18468 #ifndef intptr_t
18469 typedef $acx_cv_type_intptr_t intptr_t;
18470 #endif
18471 #endif
18472EOF
18473fi
18474
18475# ------------- done intptr types, emit int_least types ------------
18476if test "$ac_cv_type_int_least32_t" != yes; then
18477 sed 's/^ *//' >> tmp-stdint.h <<EOF
18478
18479 /* Define int_least types */
18480 typedef int8_t int_least8_t;
18481 typedef int16_t int_least16_t;
18482 typedef int32_t int_least32_t;
18483 #ifdef _INT64_T
18484 typedef int64_t int_least64_t;
18485 #endif
18486
18487 typedef uint8_t uint_least8_t;
18488 typedef uint16_t uint_least16_t;
18489 typedef uint32_t uint_least32_t;
18490 #ifdef _UINT64_T
18491 typedef uint64_t uint_least64_t;
18492 #endif
18493EOF
18494fi
18495
18496# ------------- done intptr types, emit int_fast types ------------
18497if test "$ac_cv_type_int_fast32_t" != yes; then
18498 sed 's/^ *//' >> tmp-stdint.h <<EOF
18499
18500 /* Define int_fast types. short is often slow */
18501 typedef int8_t int_fast8_t;
18502 typedef int int_fast16_t;
18503 typedef int32_t int_fast32_t;
18504 #ifdef _INT64_T
18505 typedef int64_t int_fast64_t;
18506 #endif
18507
18508 typedef uint8_t uint_fast8_t;
18509 typedef unsigned int uint_fast16_t;
18510 typedef uint32_t uint_fast32_t;
18511 #ifdef _UINT64_T
18512 typedef uint64_t uint_fast64_t;
18513 #endif
18514EOF
18515fi
18516
18517if test "$ac_cv_type_uintmax_t" != yes; then
18518 sed 's/^ *//' >> tmp-stdint.h <<EOF
18519
18520 /* Define intmax based on what we found */
18521 #ifndef intmax_t
18522 #ifdef _INT64_T
18523 typedef int64_t intmax_t;
18524 #else
18525 typedef long intmax_t;
18526 #endif
18527 #endif
18528 #ifndef uintmax_t
18529 #ifdef _UINT64_T
18530 typedef uint64_t uintmax_t;
18531 #else
18532 typedef unsigned long uintmax_t;
18533 #endif
18534 #endif
18535EOF
18536fi
18537
18538sed 's/^ *//' >> tmp-stdint.h <<EOF
18539
18540 #endif /* GCC_GENERATED_STDINT_H */
18541EOF
18542
18543if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
18544 rm -f tmp-stdint.h
18545else
18546 mv -f tmp-stdint.h gstdint.h
18547fi
18548
18549 ;;
18550
18551 esac
18552done # for ac_tag
18553
18554
18555as_fn_exit 0
18556_ACEOF
18557ac_clean_files=$ac_clean_files_save
18558
18559test $ac_write_fail = 0 ||
22e05272 18560 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48310492
RH
18561
18562
18563# configure is writing to config.log, and then calls config.status.
18564# config.status does its own redirection, appending to config.log.
18565# Unfortunately, on DOS this fails, as config.log is still kept open
18566# by configure, so config.status won't be able to write to it; its
18567# output is simply discarded. So we exec the FD to /dev/null,
18568# effectively closing config.log, so it can be properly (re)opened and
18569# appended to by config.status. When coming back to configure, we
18570# need to make the FD available again.
18571if test "$no_create" != yes; then
18572 ac_cs_success=:
18573 ac_config_status_args=
18574 test "$silent" = yes &&
18575 ac_config_status_args="$ac_config_status_args --quiet"
18576 exec 5>/dev/null
18577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18578 exec 5>>config.log
18579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18580 # would make configure fail if this is the last instruction.
22e05272 18581 $ac_cs_success || as_fn_exit 1
48310492
RH
18582fi
18583if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18585$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18586fi
18587