]> git.ipfire.org Git - thirdparty/gcc.git/blame - libatomic/configure
Fix hppa64-hpux11 build to remove source paths from embedded path.
[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
683PERL
684RANLIB
685NM
686AR
687am__fastdepCCAS_FALSE
688am__fastdepCCAS_TRUE
689CCASDEPMODE
690CCASFLAGS
691CCAS
692am__fastdepCC_FALSE
693am__fastdepCC_TRUE
694CCDEPMODE
dc3368d0 695am__nodep
48310492
RH
696AMDEPBACKSLASH
697AMDEP_FALSE
698AMDEP_TRUE
699am__quote
700am__include
701DEPDIR
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709toolexeclibdir
710toolexecdir
711multi_basedir
22e05272
JM
712AM_BACKSLASH
713AM_DEFAULT_VERBOSITY
714AM_DEFAULT_V
715AM_V
48310492
RH
716am__untar
717am__tar
718AMTAR
719am__leading_dot
720SET_MAKE
721AWK
722mkdir_p
723MKDIR_P
724INSTALL_STRIP_PROGRAM
725STRIP
726install_sh
727MAKEINFO
728AUTOHEADER
729AUTOMAKE
730AUTOCONF
731ACLOCAL
732VERSION
733PACKAGE
734CYGPATH_W
735am__isrc
736INSTALL_DATA
737INSTALL_SCRIPT
738INSTALL_PROGRAM
739target_os
740target_vendor
741target_cpu
742target
743host_os
744host_vendor
745host_cpu
746host
747build_os
748build_vendor
749build_cpu
750build
751GENINSRC_FALSE
752GENINSRC_TRUE
753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
772localstatedir
773sharedstatedir
774sysconfdir
775datadir
776datarootdir
777libexecdir
778sbindir
779bindir
780program_transform_name
781prefix
782exec_prefix
783PACKAGE_URL
784PACKAGE_BUGREPORT
785PACKAGE_STRING
786PACKAGE_VERSION
787PACKAGE_TARNAME
788PACKAGE_NAME
789PATH_SEPARATOR
790SHELL'
791ac_subst_files=''
792ac_user_opts='
793enable_option_checking
794enable_version_specific_runtime_libs
795enable_generated_files_in_srcdir
22e05272 796enable_silent_rules
48310492 797enable_multilib
e8e66971 798with_toolexeclibdir
48310492
RH
799enable_dependency_tracking
800enable_shared
801enable_static
802with_pic
803enable_fast_install
804with_gnu_ld
805enable_libtool_lock
fa3cd3c3 806enable_maintainer_mode
48310492 807enable_symvers
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]
8d286dd1 1459 --enable-cet enable Intel CET in target libraries [default=auto]
48310492
RH
1460
1461Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
e8e66971
MR
1464 --with-toolexeclibdir=DIR
1465 install libraries built with a cross compiler within
1466 DIR
48310492
RH
1467 --with-pic try to use only PIC/non-PIC objects [default=use
1468 both]
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1470 --with-gcc-major-version-only
1471 use only GCC major number in filesystem paths
48310492
RH
1472
1473Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
48310492
RH
1480 you have headers in a nonstandard directory <include dir>
1481 CCAS assembler compiler command (defaults to CC)
1482 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1483 CPP C preprocessor
1484
1485Use these variables to override the choices made by `configure' or to help
1486it to find libraries and programs with nonstandard names/locations.
1487
1488Report bugs to the package provider.
1489GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1490General help using GNU software: <http://www.gnu.org/gethelp/>.
1491_ACEOF
1492ac_status=$?
1493fi
1494
1495if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" ||
1499 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500 continue
1501 ac_builddir=.
1502
1503case "$ac_dir" in
1504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505*)
1506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 esac ;;
1513esac
1514ac_abs_top_builddir=$ac_pwd
1515ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516# for backward compatibility:
1517ac_top_builddir=$ac_top_build_prefix
1518
1519case $srcdir in
1520 .) # We are building in place.
1521 ac_srcdir=.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1528 *) # Relative name.
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532esac
1533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1543 else
1544 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 fi || ac_status=$?
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1547 done
1548fi
1549
1550test -n "$ac_init_help" && exit $ac_status
1551if $ac_init_version; then
1552 cat <<\_ACEOF
1553GNU Atomic Library configure 1.0
22e05272 1554generated by GNU Autoconf 2.69
48310492 1555
22e05272 1556Copyright (C) 2012 Free Software Foundation, Inc.
48310492
RH
1557This configure script is free software; the Free Software Foundation
1558gives unlimited permission to copy, distribute and modify it.
1559_ACEOF
1560 exit
1561fi
1562
1563## ------------------------ ##
1564## Autoconf initialization. ##
1565## ------------------------ ##
1566
1567# ac_fn_c_try_compile LINENO
1568# --------------------------
1569# Try to compile conftest.$ac_ext, and return whether this succeeded.
1570ac_fn_c_try_compile ()
1571{
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1575case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578esac
1579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580$as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1587 fi
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1593 ac_retval=0
1594else
1595 $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599fi
22e05272
JM
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
48310492
RH
1602
1603} # ac_fn_c_try_compile
1604
1605# ac_fn_c_try_link LINENO
1606# -----------------------
1607# Try to link conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_link ()
1609{
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext conftest$ac_exeext
1612 if { { ac_try="$ac_link"
1613case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_link") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1625 fi
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest$ac_exeext && {
1631 test "$cross_compiling" = yes ||
22e05272 1632 test -x conftest$ac_exeext
48310492
RH
1633 }; then :
1634 ac_retval=0
1635else
1636 $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1
1640fi
1641 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1642 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1643 # interfere with the next link command; also delete a directory that is
1644 # left behind by Apple's compiler. We do this before executing the actions.
1645 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
48310492
RH
1648
1649} # ac_fn_c_try_link
1650
1651# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1652# -------------------------------------------------------
1653# Tests whether HEADER exists and can be compiled using the include files in
1654# INCLUDES, setting the cache variable VAR accordingly.
1655ac_fn_c_check_header_compile ()
1656{
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
22e05272 1660if eval \${$3+:} false; then :
48310492
RH
1661 $as_echo_n "(cached) " >&6
1662else
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h. */
1665$4
1666#include <$2>
1667_ACEOF
1668if ac_fn_c_try_compile "$LINENO"; then :
1669 eval "$3=yes"
1670else
1671 eval "$3=no"
1672fi
1673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674fi
1675eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677$as_echo "$ac_res" >&6; }
22e05272 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1679
1680} # ac_fn_c_check_header_compile
1681
1682# ac_fn_c_try_cpp LINENO
1683# ----------------------
1684# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_cpp ()
1686{
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if { { ac_try="$ac_cpp conftest.$ac_ext"
1689case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1703 test $ac_status = 0; } > conftest.i && {
48310492
RH
1704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 }; then :
1707 ac_retval=0
1708else
1709 $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713fi
22e05272
JM
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
48310492
RH
1716
1717} # ac_fn_c_try_cpp
1718
1719# ac_fn_c_try_run LINENO
1720# ----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722# that executables *can* be run.
1723ac_fn_c_try_run ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=$ac_status
1754fi
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
48310492
RH
1758
1759} # ac_fn_c_try_run
1760
1761# ac_fn_c_check_func LINENO FUNC VAR
1762# ----------------------------------
1763# Tests whether FUNC exists, setting the cache variable VAR accordingly
1764ac_fn_c_check_func ()
1765{
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
22e05272 1769if eval \${$3+:} false; then :
48310492
RH
1770 $as_echo_n "(cached) " >&6
1771else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h. */
1774/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1776#define $2 innocuous_$2
1777
1778/* System header to define __stub macros and hopefully few prototypes,
1779 which can conflict with char $2 (); below.
1780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781 <limits.h> exists even on freestanding compilers. */
1782
1783#ifdef __STDC__
1784# include <limits.h>
1785#else
1786# include <assert.h>
1787#endif
1788
1789#undef $2
1790
1791/* Override any GCC internal prototype to avoid an error.
1792 Use char because int might match the return type of a GCC
1793 builtin and then its argument prototype would still apply. */
1794#ifdef __cplusplus
1795extern "C"
1796#endif
1797char $2 ();
1798/* The GNU C library defines this for functions which it implements
1799 to always fail with ENOSYS. Some functions are actually named
1800 something starting with __ and the normal name is an alias. */
1801#if defined __stub_$2 || defined __stub___$2
1802choke me
1803#endif
1804
1805int
1806main ()
1807{
1808return $2 ();
1809 ;
1810 return 0;
1811}
1812_ACEOF
1813if ac_fn_c_try_link "$LINENO"; then :
1814 eval "$3=yes"
1815else
1816 eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext \
1819 conftest$ac_exeext conftest.$ac_ext
1820fi
1821eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823$as_echo "$ac_res" >&6; }
22e05272 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1825
1826} # ac_fn_c_check_func
1827
1828# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1829# -------------------------------------------
1830# Tests whether TYPE exists after having included INCLUDES, setting cache
1831# variable VAR accordingly.
1832ac_fn_c_check_type ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836$as_echo_n "checking for $2... " >&6; }
22e05272 1837if eval \${$3+:} false; then :
48310492
RH
1838 $as_echo_n "(cached) " >&6
1839else
1840 eval "$3=no"
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */
1843$4
1844int
1845main ()
1846{
1847if (sizeof ($2))
1848 return 0;
1849 ;
1850 return 0;
1851}
1852_ACEOF
1853if ac_fn_c_try_compile "$LINENO"; then :
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h. */
1856$4
1857int
1858main ()
1859{
1860if (sizeof (($2)))
1861 return 0;
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867
1868else
1869 eval "$3=yes"
1870fi
1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
22e05272 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
48310492
RH
1879
1880} # ac_fn_c_check_type
1881
1882# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1883# --------------------------------------------
1884# Tries to find the compile-time value of EXPR in a program that includes
1885# INCLUDES, setting VAR accordingly. Returns whether the value could be
1886# computed
1887ac_fn_c_compute_int ()
1888{
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if test "$cross_compiling" = yes; then
1891 # Depending upon the size, compute the lo and hi bounds.
1892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h. */
1894$4
1895int
1896main ()
1897{
1898static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
1899test_array [0] = 0;
1900return test_array [0];
48310492
RH
1901
1902 ;
1903 return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_compile "$LINENO"; then :
1907 ac_lo=0 ac_mid=0
1908 while :; do
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h. */
1911$4
1912int
1913main ()
1914{
1915static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1916test_array [0] = 0;
1917return test_array [0];
48310492
RH
1918
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924 ac_hi=$ac_mid; break
1925else
1926 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1927 if test $ac_lo -le $ac_mid; then
1928 ac_lo= ac_hi=
1929 break
1930 fi
1931 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 done
1935else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h. */
1938$4
1939int
1940main ()
1941{
1942static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
1943test_array [0] = 0;
1944return test_array [0];
48310492
RH
1945
1946 ;
1947 return 0;
1948}
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_hi=-1 ac_mid=-1
1952 while :; do
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h. */
1955$4
1956int
1957main ()
1958{
1959static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
1960test_array [0] = 0;
1961return test_array [0];
48310492
RH
1962
1963 ;
1964 return 0;
1965}
1966_ACEOF
1967if ac_fn_c_try_compile "$LINENO"; then :
1968 ac_lo=$ac_mid; break
1969else
1970 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1971 if test $ac_mid -le $ac_hi; then
1972 ac_lo= ac_hi=
1973 break
1974 fi
1975 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1976fi
1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 done
1979else
1980 ac_lo= ac_hi=
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985# Binary search between lo and hi bounds.
1986while test "x$ac_lo" != "x$ac_hi"; do
1987 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990$4
1991int
1992main ()
1993{
1994static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1995test_array [0] = 0;
1996return test_array [0];
48310492
RH
1997
1998 ;
1999 return 0;
2000}
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_hi=$ac_mid
2004else
2005 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008done
2009case $ac_lo in #((
2010?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2011'') ac_retval=1 ;;
2012esac
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016$4
2017static long int longval () { return $2; }
2018static unsigned long int ulongval () { return $2; }
2019#include <stdio.h>
2020#include <stdlib.h>
2021int
2022main ()
2023{
2024
2025 FILE *f = fopen ("conftest.val", "w");
2026 if (! f)
2027 return 1;
2028 if (($2) < 0)
2029 {
2030 long int i = longval ();
2031 if (i != ($2))
2032 return 1;
2033 fprintf (f, "%ld", i);
2034 }
2035 else
2036 {
2037 unsigned long int i = ulongval ();
2038 if (i != ($2))
2039 return 1;
2040 fprintf (f, "%lu", i);
2041 }
2042 /* Do not output a trailing newline, as this causes \r\n confusion
2043 on some platforms. */
2044 return ferror (f) || fclose (f) != 0;
2045
2046 ;
2047 return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_run "$LINENO"; then :
2051 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2052else
2053 ac_retval=1
2054fi
2055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2056 conftest.$ac_objext conftest.beam conftest.$ac_ext
2057rm -f conftest.val
2058
2059 fi
22e05272
JM
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 as_fn_set_status $ac_retval
48310492
RH
2062
2063} # ac_fn_c_compute_int
267bac10
JM
2064
2065# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2066# -------------------------------------------------------
2067# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2068# the include files in INCLUDES and setting the cache variable VAR
2069# accordingly.
2070ac_fn_c_check_header_mongrel ()
2071{
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 2073 if eval \${$3+:} false; then :
267bac10
JM
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075$as_echo_n "checking for $2... " >&6; }
22e05272 2076if eval \${$3+:} false; then :
267bac10
JM
2077 $as_echo_n "(cached) " >&6
2078fi
2079eval ac_res=\$$3
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081$as_echo "$ac_res" >&6; }
2082else
2083 # Is the header compilable?
2084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2085$as_echo_n "checking $2 usability... " >&6; }
2086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h. */
2088$4
2089#include <$2>
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_header_compiler=yes
2093else
2094 ac_header_compiler=no
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2098$as_echo "$ac_header_compiler" >&6; }
2099
2100# Is the header present?
2101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2102$as_echo_n "checking $2 presence... " >&6; }
2103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h. */
2105#include <$2>
2106_ACEOF
2107if ac_fn_c_try_cpp "$LINENO"; then :
2108 ac_header_preproc=yes
2109else
2110 ac_header_preproc=no
2111fi
22e05272 2112rm -f conftest.err conftest.i conftest.$ac_ext
267bac10
JM
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2114$as_echo "$ac_header_preproc" >&6; }
2115
2116# So? What about this header?
2117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2118 yes:no: )
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2120$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2122$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2123 ;;
2124 no:yes:* )
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2126$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2128$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2130$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2132$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2134$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2135 ;;
2136esac
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138$as_echo_n "checking for $2... " >&6; }
22e05272 2139if eval \${$3+:} false; then :
267bac10
JM
2140 $as_echo_n "(cached) " >&6
2141else
2142 eval "$3=\$ac_header_compiler"
2143fi
2144eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146$as_echo "$ac_res" >&6; }
2147fi
22e05272 2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
267bac10
JM
2149
2150} # ac_fn_c_check_header_mongrel
48310492
RH
2151cat >config.log <<_ACEOF
2152This file contains any messages produced by compilers while
2153running configure, to aid debugging if configure makes a mistake.
2154
2155It was created by GNU Atomic Library $as_me 1.0, which was
22e05272 2156generated by GNU Autoconf 2.69. Invocation command line was
48310492
RH
2157
2158 $ $0 $@
2159
2160_ACEOF
2161exec 5>>config.log
2162{
2163cat <<_ASUNAME
2164## --------- ##
2165## Platform. ##
2166## --------- ##
2167
2168hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2169uname -m = `(uname -m) 2>/dev/null || echo unknown`
2170uname -r = `(uname -r) 2>/dev/null || echo unknown`
2171uname -s = `(uname -s) 2>/dev/null || echo unknown`
2172uname -v = `(uname -v) 2>/dev/null || echo unknown`
2173
2174/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2175/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2176
2177/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2178/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2179/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2180/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2181/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2182/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2183/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2184
2185_ASUNAME
2186
2187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188for as_dir in $PATH
2189do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 $as_echo "PATH: $as_dir"
2193 done
2194IFS=$as_save_IFS
2195
2196} >&5
2197
2198cat >&5 <<_ACEOF
2199
2200
2201## ----------- ##
2202## Core tests. ##
2203## ----------- ##
2204
2205_ACEOF
2206
2207
2208# Keep a trace of the command line.
2209# Strip out --no-create and --no-recursion so they do not pile up.
2210# Strip out --silent because we don't want to record it for future runs.
2211# Also quote any args containing shell meta-characters.
2212# Make two passes to allow for proper duplicate-argument suppression.
2213ac_configure_args=
2214ac_configure_args0=
2215ac_configure_args1=
2216ac_must_keep_next=false
2217for ac_pass in 1 2
2218do
2219 for ac_arg
2220 do
2221 case $ac_arg in
2222 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2224 | -silent | --silent | --silen | --sile | --sil)
2225 continue ;;
2226 *\'*)
2227 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2228 esac
2229 case $ac_pass in
2230 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2231 2)
2232 as_fn_append ac_configure_args1 " '$ac_arg'"
2233 if test $ac_must_keep_next = true; then
2234 ac_must_keep_next=false # Got value, back to normal.
2235 else
2236 case $ac_arg in
2237 *=* | --config-cache | -C | -disable-* | --disable-* \
2238 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2239 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2240 | -with-* | --with-* | -without-* | --without-* | --x)
2241 case "$ac_configure_args0 " in
2242 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2243 esac
2244 ;;
2245 -* ) ac_must_keep_next=true ;;
2246 esac
2247 fi
2248 as_fn_append ac_configure_args " '$ac_arg'"
2249 ;;
2250 esac
2251 done
2252done
2253{ ac_configure_args0=; unset ac_configure_args0;}
2254{ ac_configure_args1=; unset ac_configure_args1;}
2255
2256# When interrupted or exit'd, cleanup temporary files, and complete
2257# config.log. We remove comments because anyway the quotes in there
2258# would cause problems or look ugly.
2259# WARNING: Use '\'' to represent an apostrophe within the trap.
2260# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2261trap 'exit_status=$?
2262 # Save into config.log some information that might help in debugging.
2263 {
2264 echo
2265
22e05272 2266 $as_echo "## ---------------- ##
48310492 2267## Cache variables. ##
22e05272 2268## ---------------- ##"
48310492
RH
2269 echo
2270 # The following way of writing the cache mishandles newlines in values,
2271(
2272 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2273 eval ac_val=\$$ac_var
2274 case $ac_val in #(
2275 *${as_nl}*)
2276 case $ac_var in #(
2277 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2278$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2279 esac
2280 case $ac_var in #(
2281 _ | IFS | as_nl) ;; #(
2282 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2283 *) { eval $ac_var=; unset $ac_var;} ;;
2284 esac ;;
2285 esac
2286 done
2287 (set) 2>&1 |
2288 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2289 *${as_nl}ac_space=\ *)
2290 sed -n \
2291 "s/'\''/'\''\\\\'\'''\''/g;
2292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2293 ;; #(
2294 *)
2295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2296 ;;
2297 esac |
2298 sort
2299)
2300 echo
2301
22e05272 2302 $as_echo "## ----------------- ##
48310492 2303## Output variables. ##
22e05272 2304## ----------------- ##"
48310492
RH
2305 echo
2306 for ac_var in $ac_subst_vars
2307 do
2308 eval ac_val=\$$ac_var
2309 case $ac_val in
2310 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2311 esac
2312 $as_echo "$ac_var='\''$ac_val'\''"
2313 done | sort
2314 echo
2315
2316 if test -n "$ac_subst_files"; then
22e05272 2317 $as_echo "## ------------------- ##
48310492 2318## File substitutions. ##
22e05272 2319## ------------------- ##"
48310492
RH
2320 echo
2321 for ac_var in $ac_subst_files
2322 do
2323 eval ac_val=\$$ac_var
2324 case $ac_val in
2325 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326 esac
2327 $as_echo "$ac_var='\''$ac_val'\''"
2328 done | sort
2329 echo
2330 fi
2331
2332 if test -s confdefs.h; then
22e05272 2333 $as_echo "## ----------- ##
48310492 2334## confdefs.h. ##
22e05272 2335## ----------- ##"
48310492
RH
2336 echo
2337 cat confdefs.h
2338 echo
2339 fi
2340 test "$ac_signal" != 0 &&
2341 $as_echo "$as_me: caught signal $ac_signal"
2342 $as_echo "$as_me: exit $exit_status"
2343 } >&5
2344 rm -f core *.core core.conftest.* &&
2345 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2346 exit $exit_status
2347' 0
2348for ac_signal in 1 2 13 15; do
2349 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2350done
2351ac_signal=0
2352
2353# confdefs.h avoids OS command line length limits that DEFS can exceed.
2354rm -f -r conftest* confdefs.h
2355
2356$as_echo "/* confdefs.h */" > confdefs.h
2357
2358# Predefined preprocessor variables.
2359
2360cat >>confdefs.h <<_ACEOF
2361#define PACKAGE_NAME "$PACKAGE_NAME"
2362_ACEOF
2363
2364cat >>confdefs.h <<_ACEOF
2365#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2366_ACEOF
2367
2368cat >>confdefs.h <<_ACEOF
2369#define PACKAGE_VERSION "$PACKAGE_VERSION"
2370_ACEOF
2371
2372cat >>confdefs.h <<_ACEOF
2373#define PACKAGE_STRING "$PACKAGE_STRING"
2374_ACEOF
2375
2376cat >>confdefs.h <<_ACEOF
2377#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2378_ACEOF
2379
2380cat >>confdefs.h <<_ACEOF
2381#define PACKAGE_URL "$PACKAGE_URL"
2382_ACEOF
2383
2384
2385# Let the site file select an alternate cache file if it wants to.
2386# Prefer an explicitly selected file to automatically selected ones.
2387ac_site_file1=NONE
2388ac_site_file2=NONE
2389if test -n "$CONFIG_SITE"; then
22e05272
JM
2390 # We do not want a PATH search for config.site.
2391 case $CONFIG_SITE in #((
2392 -*) ac_site_file1=./$CONFIG_SITE;;
2393 */*) ac_site_file1=$CONFIG_SITE;;
2394 *) ac_site_file1=./$CONFIG_SITE;;
2395 esac
48310492
RH
2396elif test "x$prefix" != xNONE; then
2397 ac_site_file1=$prefix/share/config.site
2398 ac_site_file2=$prefix/etc/config.site
2399else
2400 ac_site_file1=$ac_default_prefix/share/config.site
2401 ac_site_file2=$ac_default_prefix/etc/config.site
2402fi
2403for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2404do
2405 test "x$ac_site_file" = xNONE && continue
22e05272 2406 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
48310492
RH
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2408$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2409 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2410 . "$ac_site_file" \
2411 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2413as_fn_error $? "failed to load site script $ac_site_file
2414See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
2415 fi
2416done
2417
2418if test -r "$cache_file"; then
22e05272
JM
2419 # Some versions of bash will fail to source /dev/null (special files
2420 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2421 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
48310492
RH
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2423$as_echo "$as_me: loading cache $cache_file" >&6;}
2424 case $cache_file in
2425 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2426 *) . "./$cache_file";;
2427 esac
2428 fi
2429else
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2431$as_echo "$as_me: creating cache $cache_file" >&6;}
2432 >$cache_file
2433fi
2434
2435# Check that the precious variables saved in the cache have kept the same
2436# value.
2437ac_cache_corrupted=false
2438for ac_var in $ac_precious_vars; do
2439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2440 eval ac_new_set=\$ac_env_${ac_var}_set
2441 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2442 eval ac_new_val=\$ac_env_${ac_var}_value
2443 case $ac_old_set,$ac_new_set in
2444 set,)
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2446$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2447 ac_cache_corrupted=: ;;
2448 ,set)
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2450$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2451 ac_cache_corrupted=: ;;
2452 ,);;
2453 *)
2454 if test "x$ac_old_val" != "x$ac_new_val"; then
2455 # differences in whitespace do not lead to failure.
2456 ac_old_val_w=`echo x $ac_old_val`
2457 ac_new_val_w=`echo x $ac_new_val`
2458 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2460$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2461 ac_cache_corrupted=:
2462 else
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2464$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2465 eval $ac_var=\$ac_old_val
2466 fi
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2468$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2470$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2471 fi;;
2472 esac
2473 # Pass precious variables to config.status.
2474 if test "$ac_new_set" = set; then
2475 case $ac_new_val in
2476 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2477 *) ac_arg=$ac_var=$ac_new_val ;;
2478 esac
2479 case " $ac_configure_args " in
2480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2481 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2482 esac
2483 fi
2484done
2485if $ac_cache_corrupted; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2489$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2490 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
48310492
RH
2491fi
2492## -------------------- ##
2493## Main body of script. ##
2494## -------------------- ##
2495
2496ac_ext=c
2497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501
2502
2503
2504
2505
2506ac_config_headers="$ac_config_headers auto-config.h"
2507
2508
2509# -------
2510# Options
2511# -------
2512
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2514$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2515 # Check whether --enable-version-specific-runtime-libs was given.
2516if test "${enable_version_specific_runtime_libs+set}" = set; then :
2517 enableval=$enable_version_specific_runtime_libs;
2518 case "$enableval" in
2519 yes|no) ;;
22e05272 2520 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
48310492
RH
2521 esac
2522
2523else
2524 enable_version_specific_runtime_libs=no
2525fi
2526
2527
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2529$as_echo "$enable_version_specific_runtime_libs" >&6; }
2530
2531# We would like our source tree to be readonly. However when releases or
2532# pre-releases are generated, the flex/bison generated files as well as the
2533# various formats of manuals need to be included along with the rest of the
2534# sources. Therefore we have --enable-generated-files-in-srcdir to do
2535# just that.
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2537$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2538 # Check whether --enable-generated-files-in-srcdir was given.
2539if test "${enable_generated_files_in_srcdir+set}" = set; then :
2540 enableval=$enable_generated_files_in_srcdir;
2541 case "$enableval" in
2542 yes|no) ;;
22e05272 2543 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
48310492
RH
2544 esac
2545
2546else
2547 enable_generated_files_in_srcdir=no
2548fi
2549
2550
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2552$as_echo "$enable_generated_files_in_srcdir" >&6; }
2553 if test "$enable_generated_files_in_srcdir" = yes; then
2554 GENINSRC_TRUE=
2555 GENINSRC_FALSE='#'
2556else
2557 GENINSRC_TRUE='#'
2558 GENINSRC_FALSE=
2559fi
2560
2561
2562
2563# -------
2564
2565# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2566#
2567# You will slowly go insane if you do not grok the following fact: when
2568# building this library, the top-level /target/ becomes the library's /host/.
2569#
2570# configure then causes --target to default to --host, exactly like any
2571# other package using autoconf. Therefore, 'target' and 'host' will
2572# always be the same. This makes sense both for native and cross compilers
2573# just think about it for a little while. :-)
2574#
2575# Also, if this library is being configured as part of a cross compiler, the
2576# top-level configure script will pass the "real" host as $with_cross_host.
2577#
2578# Do not delete or change the following two lines. For why, see
2579# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2580ac_aux_dir=
2581for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2582 if test -f "$ac_dir/install-sh"; then
2583 ac_aux_dir=$ac_dir
2584 ac_install_sh="$ac_aux_dir/install-sh -c"
2585 break
2586 elif test -f "$ac_dir/install.sh"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/install.sh -c"
2589 break
2590 elif test -f "$ac_dir/shtool"; then
2591 ac_aux_dir=$ac_dir
2592 ac_install_sh="$ac_aux_dir/shtool install -c"
2593 break
2594 fi
48310492
RH
2595done
2596if test -z "$ac_aux_dir"; then
22e05272 2597 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
48310492
RH
2598fi
2599
2600# These three variables are undocumented and unsupported,
2601# and are intended to be withdrawn in a future Autoconf release.
2602# They can cause serious problems if a builder's source tree is in a directory
2603# whose full name contains unusual characters.
2604ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2605ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2606ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2607
2608
2609# Make sure we can run config.sub.
2610$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2611 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
48310492
RH
2612
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2614$as_echo_n "checking build system type... " >&6; }
22e05272 2615if ${ac_cv_build+:} false; then :
48310492
RH
2616 $as_echo_n "(cached) " >&6
2617else
2618 ac_build_alias=$build_alias
2619test "x$ac_build_alias" = x &&
2620 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2621test "x$ac_build_alias" = x &&
22e05272 2622 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
48310492 2623ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2624 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
48310492
RH
2625
2626fi
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2628$as_echo "$ac_cv_build" >&6; }
2629case $ac_cv_build in
2630*-*-*) ;;
22e05272 2631*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
48310492
RH
2632esac
2633build=$ac_cv_build
2634ac_save_IFS=$IFS; IFS='-'
2635set x $ac_cv_build
2636shift
2637build_cpu=$1
2638build_vendor=$2
2639shift; shift
2640# Remember, the first character of IFS is used to create $*,
2641# except with old shells:
2642build_os=$*
2643IFS=$ac_save_IFS
2644case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2645
2646
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2648$as_echo_n "checking host system type... " >&6; }
22e05272 2649if ${ac_cv_host+:} false; then :
48310492
RH
2650 $as_echo_n "(cached) " >&6
2651else
2652 if test "x$host_alias" = x; then
2653 ac_cv_host=$ac_cv_build
2654else
2655 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2656 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
48310492
RH
2657fi
2658
2659fi
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2661$as_echo "$ac_cv_host" >&6; }
2662case $ac_cv_host in
2663*-*-*) ;;
22e05272 2664*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
48310492
RH
2665esac
2666host=$ac_cv_host
2667ac_save_IFS=$IFS; IFS='-'
2668set x $ac_cv_host
2669shift
2670host_cpu=$1
2671host_vendor=$2
2672shift; shift
2673# Remember, the first character of IFS is used to create $*,
2674# except with old shells:
2675host_os=$*
2676IFS=$ac_save_IFS
2677case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2678
2679
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2681$as_echo_n "checking target system type... " >&6; }
22e05272 2682if ${ac_cv_target+:} false; then :
48310492
RH
2683 $as_echo_n "(cached) " >&6
2684else
2685 if test "x$target_alias" = x; then
2686 ac_cv_target=$ac_cv_host
2687else
2688 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2689 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
48310492
RH
2690fi
2691
2692fi
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2694$as_echo "$ac_cv_target" >&6; }
2695case $ac_cv_target in
2696*-*-*) ;;
22e05272 2697*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
48310492
RH
2698esac
2699target=$ac_cv_target
2700ac_save_IFS=$IFS; IFS='-'
2701set x $ac_cv_target
2702shift
2703target_cpu=$1
2704target_vendor=$2
2705shift; shift
2706# Remember, the first character of IFS is used to create $*,
2707# except with old shells:
2708target_os=$*
2709IFS=$ac_save_IFS
2710case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2711
2712
2713# The aliases save the names the user supplied, while $host etc.
2714# will get canonicalized.
2715test -n "$target_alias" &&
2716 test "$program_prefix$program_suffix$program_transform_name" = \
2717 NONENONEs,x,x, &&
2718 program_prefix=${target_alias}-
2719
2720target_alias=${target_alias-$host_alias}
2721
2722# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2723# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2724# 1.9.0: minimum required version
2725# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2726# of other PACKAGE_* variables will, however, and there's nothing
2727# we can do about that; they come from AC_INIT).
c0758df9 2728# no-dist: we don't want 'dist' and related rules.
48310492
RH
2729# foreign: we don't follow the normal rules for GNU packages (no COPYING
2730# file in the top srcdir, etc, etc), so stop complaining.
2731# -Wall: turns on all automake warnings...
2732# -Wno-portability: ...except this one, since GNU make is required.
2733# -Wno-override: ... and this one, since we do want this in testsuite.
22e05272 2734am__api_version='1.15'
48310492
RH
2735
2736# Find a good install program. We prefer a C program (faster),
2737# so one script is as good as another. But avoid the broken or
2738# incompatible versions:
2739# SysV /etc/install, /usr/sbin/install
2740# SunOS /usr/etc/install
2741# IRIX /sbin/install
2742# AIX /bin/install
2743# AmigaOS /C/install, which installs bootblocks on floppy discs
2744# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2745# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2746# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2747# OS/2's system install, which has a completely different semantic
2748# ./install, which can be erroneously created by make from ./install.sh.
2749# Reject install programs that cannot install multiple files.
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2751$as_echo_n "checking for a BSD-compatible install... " >&6; }
2752if test -z "$INSTALL"; then
22e05272 2753if ${ac_cv_path_install+:} false; then :
48310492
RH
2754 $as_echo_n "(cached) " >&6
2755else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 # Account for people who put trailing slashes in PATH elements.
2762case $as_dir/ in #((
2763 ./ | .// | /[cC]/* | \
2764 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2765 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2766 /usr/ucb/* ) ;;
2767 *)
2768 # OSF1 and SCO ODT 3.0 have their own names for install.
2769 # Don't use installbsd from OSF since it installs stuff as root
2770 # by default.
2771 for ac_prog in ginstall scoinst install; do
2772 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2773 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
48310492
RH
2774 if test $ac_prog = install &&
2775 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776 # AIX install. It has an incompatible calling convention.
2777 :
2778 elif test $ac_prog = install &&
2779 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2780 # program-specific install script used by HP pwplus--don't use.
2781 :
2782 else
2783 rm -rf conftest.one conftest.two conftest.dir
2784 echo one > conftest.one
2785 echo two > conftest.two
2786 mkdir conftest.dir
2787 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2788 test -s conftest.one && test -s conftest.two &&
2789 test -s conftest.dir/conftest.one &&
2790 test -s conftest.dir/conftest.two
2791 then
2792 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2793 break 3
2794 fi
2795 fi
2796 fi
2797 done
2798 done
2799 ;;
2800esac
2801
2802 done
2803IFS=$as_save_IFS
2804
2805rm -rf conftest.one conftest.two conftest.dir
2806
2807fi
2808 if test "${ac_cv_path_install+set}" = set; then
2809 INSTALL=$ac_cv_path_install
2810 else
2811 # As a last resort, use the slow shell script. Don't cache a
2812 # value for INSTALL within a source directory, because that will
2813 # break other packages using the cache if that directory is
2814 # removed, or if the value is a relative name.
2815 INSTALL=$ac_install_sh
2816 fi
2817fi
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2819$as_echo "$INSTALL" >&6; }
2820
2821# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2822# It thinks the first close brace ends the variable substitution.
2823test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2824
2825test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2826
2827test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2828
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2830$as_echo_n "checking whether build environment is sane... " >&6; }
48310492
RH
2831# Reject unsafe characters in $srcdir or the absolute working directory
2832# name. Accept space and tab only in the latter.
2833am_lf='
2834'
2835case `pwd` in
2836 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2837 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
48310492
RH
2838esac
2839case $srcdir in
2840 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2841 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
48310492
RH
2842esac
2843
22e05272 2844# Do 'set' in a subshell so we don't clobber the current shell's
48310492
RH
2845# arguments. Must try -L first in case configure is actually a
2846# symlink; some systems play weird games with the mod time of symlinks
2847# (eg FreeBSD returns the mod time of the symlink's containing
2848# directory).
2849if (
22e05272
JM
2850 am_has_slept=no
2851 for am_try in 1 2; do
2852 echo "timestamp, slept: $am_has_slept" > conftest.file
2853 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2854 if test "$*" = "X"; then
2855 # -L didn't work.
2856 set X `ls -t "$srcdir/configure" conftest.file`
2857 fi
2858 if test "$*" != "X $srcdir/configure conftest.file" \
2859 && test "$*" != "X conftest.file $srcdir/configure"; then
2860
2861 # If neither matched, then we have a broken ls. This can happen
2862 # if, for instance, CONFIG_SHELL is bash and it inherits a
2863 # broken ls alias from the environment. This has actually
2864 # happened. Such a system could not be considered "sane".
2865 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2866 alias in your environment" "$LINENO" 5
2867 fi
2868 if test "$2" = conftest.file || test $am_try -eq 2; then
2869 break
2870 fi
2871 # Just in case.
2872 sleep 1
2873 am_has_slept=yes
2874 done
48310492
RH
2875 test "$2" = conftest.file
2876 )
2877then
2878 # Ok.
2879 :
2880else
22e05272 2881 as_fn_error $? "newly created file is older than distributed files!
48310492
RH
2882Check your system clock" "$LINENO" 5
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2885$as_echo "yes" >&6; }
22e05272
JM
2886# If we didn't sleep, we still need to ensure time stamps of config.status and
2887# generated files are strictly newer.
2888am_sleep_pid=
2889if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2890 ( sleep 1 ) &
2891 am_sleep_pid=$!
2892fi
2893
2894rm -f conftest.file
2895
48310492
RH
2896test "$program_prefix" != NONE &&
2897 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2898# Use a double $ so make ignores it.
2899test "$program_suffix" != NONE &&
2900 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2901# Double any \ or $.
2902# By default was `s,x,x', remove it if useless.
2903ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2904program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2905
22e05272
JM
2906# Expand $ac_aux_dir to an absolute path.
2907am_aux_dir=`cd "$ac_aux_dir" && pwd`
48310492
RH
2908
2909if test x"${MISSING+set}" != xset; then
2910 case $am_aux_dir in
2911 *\ * | *\ *)
2912 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2913 *)
2914 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2915 esac
2916fi
2917# Use eval to expand $SHELL
22e05272
JM
2918if eval "$MISSING --is-lightweight"; then
2919 am_missing_run="$MISSING "
48310492
RH
2920else
2921 am_missing_run=
22e05272
JM
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2923$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
48310492
RH
2924fi
2925
22e05272 2926if test x"${install_sh+set}" != xset; then
48310492
RH
2927 case $am_aux_dir in
2928 *\ * | *\ *)
2929 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2930 *)
2931 install_sh="\${SHELL} $am_aux_dir/install-sh"
2932 esac
2933fi
2934
22e05272
JM
2935# Installed binaries are usually stripped using 'strip' when the user
2936# run "make install-strip". However 'strip' might not be the right
48310492 2937# tool to use in cross-compilation environments, therefore Automake
22e05272 2938# will honor the 'STRIP' environment variable to overrule this program.
48310492
RH
2939if test "$cross_compiling" != no; then
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}strip; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2945if ${ac_cv_prog_STRIP+:} false; then :
48310492
RH
2946 $as_echo_n "(cached) " >&6
2947else
2948 if test -n "$STRIP"; then
2949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
2958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962done
2963 done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968STRIP=$ac_cv_prog_STRIP
2969if test -n "$STRIP"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2971$as_echo "$STRIP" >&6; }
2972else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978fi
2979if test -z "$ac_cv_prog_STRIP"; then
2980 ac_ct_STRIP=$STRIP
2981 # Extract the first word of "strip", so it can be a program name with args.
2982set dummy strip; ac_word=$2
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2985if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
48310492
RH
2986 $as_echo_n "(cached) " >&6
2987else
2988 if test -n "$ac_ct_STRIP"; then
2989 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
2998 ac_cv_prog_ac_ct_STRIP="strip"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002done
3003 done
3004IFS=$as_save_IFS
3005
3006fi
3007fi
3008ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3009if test -n "$ac_ct_STRIP"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3011$as_echo "$ac_ct_STRIP" >&6; }
3012else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
3015fi
3016
3017 if test "x$ac_ct_STRIP" = x; then
3018 STRIP=":"
3019 else
3020 case $cross_compiling:$ac_tool_warned in
3021yes:)
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3024ac_tool_warned=yes ;;
3025esac
3026 STRIP=$ac_ct_STRIP
3027 fi
3028else
3029 STRIP="$ac_cv_prog_STRIP"
3030fi
3031
3032fi
3033INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3034
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3036$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3037if test -z "$MKDIR_P"; then
22e05272 3038 if ${ac_cv_path_mkdir+:} false; then :
48310492
RH
3039 $as_echo_n "(cached) " >&6
3040else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3043do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_prog in mkdir gmkdir; do
3047 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3048 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
48310492
RH
3049 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3050 'mkdir (GNU coreutils) '* | \
3051 'mkdir (coreutils) '* | \
3052 'mkdir (fileutils) '4.1*)
3053 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3054 break 3;;
3055 esac
3056 done
3057 done
3058 done
3059IFS=$as_save_IFS
3060
3061fi
3062
22e05272 3063 test -d ./--version && rmdir ./--version
48310492
RH
3064 if test "${ac_cv_path_mkdir+set}" = set; then
3065 MKDIR_P="$ac_cv_path_mkdir -p"
3066 else
3067 # As a last resort, use the slow shell script. Don't cache a
3068 # value for MKDIR_P within a source directory, because that will
3069 # break other packages using the cache if that directory is
3070 # removed, or if the value is a relative name.
48310492
RH
3071 MKDIR_P="$ac_install_sh -d"
3072 fi
3073fi
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3075$as_echo "$MKDIR_P" >&6; }
3076
48310492
RH
3077for ac_prog in gawk mawk nawk awk
3078do
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080set dummy $ac_prog; ac_word=$2
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3083if ${ac_cv_prog_AWK+:} false; then :
48310492
RH
3084 $as_echo_n "(cached) " >&6
3085else
3086 if test -n "$AWK"; then
3087 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3096 ac_cv_prog_AWK="$ac_prog"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101 done
3102IFS=$as_save_IFS
3103
3104fi
3105fi
3106AWK=$ac_cv_prog_AWK
3107if test -n "$AWK"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3109$as_echo "$AWK" >&6; }
3110else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112$as_echo "no" >&6; }
3113fi
3114
3115
3116 test -n "$AWK" && break
3117done
3118
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3120$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3121set x ${MAKE-make}
3122ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 3123if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
48310492
RH
3124 $as_echo_n "(cached) " >&6
3125else
3126 cat >conftest.make <<\_ACEOF
3127SHELL = /bin/sh
3128all:
3129 @echo '@@@%%%=$(MAKE)=@@@%%%'
3130_ACEOF
22e05272 3131# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
48310492
RH
3132case `${MAKE-make} -f conftest.make 2>/dev/null` in
3133 *@@@%%%=?*=@@@%%%*)
3134 eval ac_cv_prog_make_${ac_make}_set=yes;;
3135 *)
3136 eval ac_cv_prog_make_${ac_make}_set=no;;
3137esac
3138rm -f conftest.make
3139fi
3140if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142$as_echo "yes" >&6; }
3143 SET_MAKE=
3144else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147 SET_MAKE="MAKE=${MAKE-make}"
3148fi
3149
3150rm -rf .tst 2>/dev/null
3151mkdir .tst 2>/dev/null
3152if test -d .tst; then
3153 am__leading_dot=.
3154else
3155 am__leading_dot=_
3156fi
3157rmdir .tst 2>/dev/null
3158
22e05272
JM
3159# Check whether --enable-silent-rules was given.
3160if test "${enable_silent_rules+set}" = set; then :
3161 enableval=$enable_silent_rules;
3162fi
3163
3164case $enable_silent_rules in # (((
3165 yes) AM_DEFAULT_VERBOSITY=0;;
3166 no) AM_DEFAULT_VERBOSITY=1;;
3167 *) AM_DEFAULT_VERBOSITY=1;;
3168esac
3169am_make=${MAKE-make}
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3171$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3172if ${am_cv_make_support_nested_variables+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174else
3175 if $as_echo 'TRUE=$(BAR$(V))
3176BAR0=false
3177BAR1=true
3178V=1
3179am__doit:
3180 @$(TRUE)
3181.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3182 am_cv_make_support_nested_variables=yes
3183else
3184 am_cv_make_support_nested_variables=no
3185fi
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3188$as_echo "$am_cv_make_support_nested_variables" >&6; }
3189if test $am_cv_make_support_nested_variables = yes; then
3190 AM_V='$(V)'
3191 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3192else
3193 AM_V=$AM_DEFAULT_VERBOSITY
3194 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3195fi
3196AM_BACKSLASH='\'
3197
48310492
RH
3198if test "`cd $srcdir && pwd`" != "`pwd`"; then
3199 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3200 # is not polluted with repeated "-I."
3201 am__isrc=' -I$(srcdir)'
3202 # test to see if srcdir already configured
3203 if test -f $srcdir/config.status; then
22e05272 3204 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
48310492
RH
3205 fi
3206fi
3207
3208# test whether we have cygpath
3209if test -z "$CYGPATH_W"; then
3210 if (cygpath --version) >/dev/null 2>/dev/null; then
3211 CYGPATH_W='cygpath -w'
3212 else
3213 CYGPATH_W=echo
3214 fi
3215fi
3216
3217
3218# Define the identity of the package.
3219 PACKAGE='libatomic'
3220 VERSION='1.0'
3221
3222
3223cat >>confdefs.h <<_ACEOF
3224#define PACKAGE "$PACKAGE"
3225_ACEOF
3226
3227
3228cat >>confdefs.h <<_ACEOF
3229#define VERSION "$VERSION"
3230_ACEOF
3231
3232# Some tools Automake needs.
3233
3234ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3235
3236
3237AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3238
3239
3240AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3241
3242
3243AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3244
3245
3246MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3247
22e05272
JM
3248# For better backward compatibility. To be removed once Automake 1.9.x
3249# dies out for good. For more background, see:
3250# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3251# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3252mkdir_p='$(MKDIR_P)'
3253
3254# We need awk for the "check" target (and possibly the TAP driver). The
3255# system "awk" is bad on some platforms.
dc3368d0
KT
3256# Always define AMTAR for backward compatibility. Yes, it's still used
3257# in the wild :-( We should find a proper way to deprecate it ...
3258AMTAR='$${TAR-tar}'
48310492 3259
22e05272
JM
3260
3261# We'll loop over all known methods to create a tar archive until one works.
3262_am_tools='gnutar pax cpio none'
3263
dc3368d0 3264am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
48310492
RH
3265
3266
3267
3268
3269
22e05272
JM
3270
3271# POSIX will say in a future version that running "rm -f" with no argument
3272# is OK; and we want to be able to make that assumption in our Makefile
3273# recipes. So use an aggressive probe to check that the usage we want is
3274# actually supported "in the wild" to an acceptable degree.
3275# See automake bug#10828.
3276# To make any issue more visible, cause the running configure to be aborted
3277# by default if the 'rm' program in use doesn't match our expectations; the
3278# user can still override this though.
3279if rm -f && rm -fr && rm -rf; then : OK; else
3280 cat >&2 <<'END'
3281Oops!
3282
3283Your 'rm' program seems unable to run without file operands specified
3284on the command line, even when the '-f' option is present. This is contrary
3285to the behaviour of most rm programs out there, and not conforming with
3286the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3287
3288Please tell bug-automake@gnu.org about your system, including the value
3289of your $PATH and any error possibly output before this message. This
3290can help us improve future automake versions.
3291
3292END
3293 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3294 echo 'Configuration will proceed anyway, since you have set the' >&2
3295 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3296 echo >&2
3297 else
3298 cat >&2 <<'END'
3299Aborting the configuration process, to ensure you take notice of the issue.
3300
3301You can download and install GNU coreutils to get an 'rm' implementation
3302that behaves properly: <http://www.gnu.org/software/coreutils/>.
3303
3304If you want to complete the configuration process using your problematic
3305'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3306to "yes", and re-run configure.
3307
3308END
3309 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3310 fi
3311fi
3312
48310492
RH
3313# Default to --enable-multilib
3314# Check whether --enable-multilib was given.
3315if test "${enable_multilib+set}" = set; then :
3316 enableval=$enable_multilib; case "$enableval" in
3317 yes) multilib=yes ;;
3318 no) multilib=no ;;
22e05272 3319 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
48310492
RH
3320 esac
3321else
3322 multilib=yes
3323fi
3324
3325
3326# We may get other options which we leave undocumented:
3327# --with-target-subdir, --with-multisrctop, --with-multisubdir
3328# See config-ml.in if you want the gory details.
3329
3330if test "$srcdir" = "."; then
3331 if test "$with_target_subdir" != "."; then
3332 multi_basedir="$srcdir/$with_multisrctop../.."
3333 else
3334 multi_basedir="$srcdir/$with_multisrctop.."
3335 fi
3336else
3337 multi_basedir="$srcdir/.."
3338fi
3339
3340
3341# Even if the default multilib is not a cross compilation,
3342# it may be that some of the other multilibs are.
3343if test $cross_compiling = no && test $multilib = yes \
3344 && test "x${with_multisubdir}" != x ; then
3345 cross_compiling=maybe
3346fi
3347
3348ac_config_commands="$ac_config_commands default-1"
3349
3350
e8e66971
MR
3351
3352# Check whether --with-toolexeclibdir was given.
3353if test "${with_toolexeclibdir+set}" = set; then :
3354 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3355 /)
3356 ;;
3357 */)
3358 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3359 ;;
3360esac
3361else
3362 with_toolexeclibdir=no
3363fi
3364
3365
3366
48310492
RH
3367# Calculate toolexeclibdir
3368# Also toolexecdir, though it's only used in toolexeclibdir
3369case ${enable_version_specific_runtime_libs} in
3370 yes)
3371 # Need the gcc compiler version to know where to install libraries
3372 # and header files if --enable-version-specific-runtime-libs option
3373 # is selected.
3374 toolexecdir='$(libdir)/gcc/$(target_alias)'
3375 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3376 ;;
3377 no)
3378 if test -n "$with_cross_host" &&
3379 test x"$with_cross_host" != x"no"; then
3380 # Install a library built with a cross compiler in tooldir, not libdir.
3381 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
3382 case ${with_toolexeclibdir} in
3383 no)
3384 toolexeclibdir='$(toolexecdir)/lib'
3385 ;;
3386 *)
3387 toolexeclibdir=${with_toolexeclibdir}
3388 ;;
3389 esac
48310492
RH
3390 else
3391 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3392 toolexeclibdir='$(libdir)'
3393 fi
3394 multi_os_directory=`$CC -print-multi-os-directory`
3395 case $multi_os_directory in
3396 .) ;; # Avoid trailing /.
3397 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3398 esac
3399 ;;
3400esac
3401
3402
3403
3404# Check the compiler.
3405# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3406# We must force CC to /not/ be precious variables; otherwise
3407# the wrong, non-multilib-adjusted value will be used in multilibs.
3408# As a side effect, we have to subst CFLAGS ourselves.
3409
3410
3411
3412ac_ext=c
3413ac_cpp='$CPP $CPPFLAGS'
3414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417if test -n "$ac_tool_prefix"; then
3418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3419set dummy ${ac_tool_prefix}gcc; ac_word=$2
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3422if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3423 $as_echo_n "(cached) " >&6
3424else
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3427else
3428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429for as_dir in $PATH
3430do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439done
3440 done
3441IFS=$as_save_IFS
3442
3443fi
3444fi
3445CC=$ac_cv_prog_CC
3446if test -n "$CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448$as_echo "$CC" >&6; }
3449else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451$as_echo "no" >&6; }
3452fi
3453
3454
3455fi
3456if test -z "$ac_cv_prog_CC"; then
3457 ac_ct_CC=$CC
3458 # Extract the first word of "gcc", so it can be a program name with args.
3459set dummy gcc; ac_word=$2
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3462if ${ac_cv_prog_ac_ct_CC+:} false; then :
48310492
RH
3463 $as_echo_n "(cached) " >&6
3464else
3465 if test -n "$ac_ct_CC"; then
3466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3467else
3468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469for as_dir in $PATH
3470do
3471 IFS=$as_save_IFS
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3475 ac_cv_prog_ac_ct_CC="gcc"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 break 2
3478 fi
3479done
3480 done
3481IFS=$as_save_IFS
3482
3483fi
3484fi
3485ac_ct_CC=$ac_cv_prog_ac_ct_CC
3486if test -n "$ac_ct_CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3488$as_echo "$ac_ct_CC" >&6; }
3489else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491$as_echo "no" >&6; }
3492fi
3493
3494 if test "x$ac_ct_CC" = x; then
3495 CC=""
3496 else
3497 case $cross_compiling:$ac_tool_warned in
3498yes:)
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3501ac_tool_warned=yes ;;
3502esac
3503 CC=$ac_ct_CC
3504 fi
3505else
3506 CC="$ac_cv_prog_CC"
3507fi
3508
3509if test -z "$CC"; then
3510 if test -n "$ac_tool_prefix"; then
3511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3512set dummy ${ac_tool_prefix}cc; ac_word=$2
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3515if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3516 $as_echo_n "(cached) " >&6
3517else
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC="$CC" # Let the user override the test.
3520else
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3528 ac_cv_prog_CC="${ac_tool_prefix}cc"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532done
3533 done
3534IFS=$as_save_IFS
3535
3536fi
3537fi
3538CC=$ac_cv_prog_CC
3539if test -n "$CC"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3541$as_echo "$CC" >&6; }
3542else
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544$as_echo "no" >&6; }
3545fi
3546
3547
3548 fi
3549fi
3550if test -z "$CC"; then
3551 # Extract the first word of "cc", so it can be a program name with args.
3552set dummy cc; ac_word=$2
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3555if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3556 $as_echo_n "(cached) " >&6
3557else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560else
3561 ac_prog_rejected=no
3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH
3564do
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3570 ac_prog_rejected=yes
3571 continue
3572 fi
3573 ac_cv_prog_CC="cc"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577done
3578 done
3579IFS=$as_save_IFS
3580
3581if test $ac_prog_rejected = yes; then
3582 # We found a bogon in the path, so make sure we never use it.
3583 set dummy $ac_cv_prog_CC
3584 shift
3585 if test $# != 0; then
3586 # We chose a different compiler from the bogus one.
3587 # However, it has the same basename, so the bogon will be chosen
3588 # first if we set CC to just the basename; use the full file name.
3589 shift
3590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3591 fi
3592fi
3593fi
3594fi
3595CC=$ac_cv_prog_CC
3596if test -n "$CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598$as_echo "$CC" >&6; }
3599else
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601$as_echo "no" >&6; }
3602fi
3603
3604
3605fi
3606if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3608 for ac_prog in cl.exe
3609 do
3610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3611set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3614if ${ac_cv_prog_CC+:} false; then :
48310492
RH
3615 $as_echo_n "(cached) " >&6
3616else
3617 if test -n "$CC"; then
3618 ac_cv_prog_CC="$CC" # Let the user override the test.
3619else
3620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621for as_dir in $PATH
3622do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3630 fi
3631done
3632 done
3633IFS=$as_save_IFS
3634
3635fi
3636fi
3637CC=$ac_cv_prog_CC
3638if test -n "$CC"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3640$as_echo "$CC" >&6; }
3641else
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643$as_echo "no" >&6; }
3644fi
3645
3646
3647 test -n "$CC" && break
3648 done
3649fi
3650if test -z "$CC"; then
3651 ac_ct_CC=$CC
3652 for ac_prog in cl.exe
3653do
3654 # Extract the first word of "$ac_prog", so it can be a program name with args.
3655set dummy $ac_prog; ac_word=$2
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3658if ${ac_cv_prog_ac_ct_CC+:} false; then :
48310492
RH
3659 $as_echo_n "(cached) " >&6
3660else
3661 if test -n "$ac_ct_CC"; then
3662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3663else
3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665for as_dir in $PATH
3666do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
3671 ac_cv_prog_ac_ct_CC="$ac_prog"
3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 break 2
3674 fi
3675done
3676 done
3677IFS=$as_save_IFS
3678
3679fi
3680fi
3681ac_ct_CC=$ac_cv_prog_ac_ct_CC
3682if test -n "$ac_ct_CC"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3684$as_echo "$ac_ct_CC" >&6; }
3685else
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687$as_echo "no" >&6; }
3688fi
3689
3690
3691 test -n "$ac_ct_CC" && break
3692done
3693
3694 if test "x$ac_ct_CC" = x; then
3695 CC=""
3696 else
3697 case $cross_compiling:$ac_tool_warned in
3698yes:)
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3701ac_tool_warned=yes ;;
3702esac
3703 CC=$ac_ct_CC
3704 fi
3705fi
3706
3707fi
3708
3709
3710test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3712as_fn_error $? "no acceptable C compiler found in \$PATH
3713See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
3714
3715# Provide some information about the compiler.
3716$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3717set X $ac_compile
3718ac_compiler=$2
3719for ac_option in --version -v -V -qversion; do
3720 { { ac_try="$ac_compiler $ac_option >&5"
3721case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724esac
3725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726$as_echo "$ac_try_echo"; } >&5
3727 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3728 ac_status=$?
3729 if test -s conftest.err; then
3730 sed '10a\
3731... rest of stderr output deleted ...
3732 10q' conftest.err >conftest.er1
3733 cat conftest.er1 >&5
48310492 3734 fi
22e05272 3735 rm -f conftest.er1 conftest.err
48310492
RH
3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737 test $ac_status = 0; }
3738done
3739
3740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741/* end confdefs.h. */
3742
3743int
3744main ()
3745{
3746
3747 ;
3748 return 0;
3749}
3750_ACEOF
3751ac_clean_files_save=$ac_clean_files
22e05272 3752ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
48310492
RH
3753# Try to create an executable without -o first, disregard a.out.
3754# It will help us diagnose broken compilers, and finding out an intuition
3755# of exeext.
22e05272
JM
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3757$as_echo_n "checking whether the C compiler works... " >&6; }
48310492
RH
3758ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3759
3760# The possible output files:
3761ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3762
3763ac_rmfiles=
3764for ac_file in $ac_files
3765do
3766 case $ac_file in
3767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3769 esac
3770done
3771rm -f $ac_rmfiles
3772
3773if { { ac_try="$ac_link_default"
3774case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777esac
3778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779$as_echo "$ac_try_echo"; } >&5
3780 (eval "$ac_link_default") 2>&5
3781 ac_status=$?
3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }; then :
3784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3785# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3786# in a Makefile. We should not override ac_cv_exeext if it was cached,
3787# so that the user can short-circuit this test for compilers unknown to
3788# Autoconf.
3789for ac_file in $ac_files ''
3790do
3791 test -f "$ac_file" || continue
3792 case $ac_file in
3793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3794 ;;
3795 [ab].out )
3796 # We found the default executable, but exeext='' is most
3797 # certainly right.
3798 break;;
3799 *.* )
3800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3801 then :; else
3802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3803 fi
3804 # We set ac_cv_exeext here because the later test for it is not
3805 # safe: cross compilers may not add the suffix if given an `-o'
3806 # argument, so we may need to know it at that point already.
3807 # Even if this section looks crufty: it has the advantage of
3808 # actually working.
3809 break;;
3810 * )
3811 break;;
3812 esac
3813done
3814test "$ac_cv_exeext" = no && ac_cv_exeext=
3815
3816else
3817 ac_file=''
3818fi
48310492 3819if test -z "$ac_file"; then :
22e05272
JM
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821$as_echo "no" >&6; }
3822$as_echo "$as_me: failed program was:" >&5
48310492
RH
3823sed 's/^/| /' conftest.$ac_ext >&5
3824
3825{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3827as_fn_error 77 "C compiler cannot create executables
3828See \`config.log' for more details" "$LINENO" 5; }
3829else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3831$as_echo "yes" >&6; }
48310492 3832fi
22e05272
JM
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834$as_echo_n "checking for C compiler default output file name... " >&6; }
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3836$as_echo "$ac_file" >&6; }
48310492
RH
3837ac_exeext=$ac_cv_exeext
3838
22e05272 3839rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
48310492 3840ac_clean_files=$ac_clean_files_save
48310492
RH
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3842$as_echo_n "checking for suffix of executables... " >&6; }
3843if { { ac_try="$ac_link"
3844case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847esac
3848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849$as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_link") 2>&5
3851 ac_status=$?
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }; then :
3854 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3855# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3856# work properly (i.e., refer to `conftest.exe'), while it won't with
3857# `rm'.
3858for ac_file in conftest.exe conftest conftest.*; do
3859 test -f "$ac_file" || continue
3860 case $ac_file in
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3862 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3863 break;;
3864 * ) break;;
3865 esac
3866done
3867else
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3870as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3871See \`config.log' for more details" "$LINENO" 5; }
48310492 3872fi
22e05272 3873rm -f conftest conftest$ac_cv_exeext
48310492
RH
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3875$as_echo "$ac_cv_exeext" >&6; }
3876
3877rm -f conftest.$ac_ext
3878EXEEXT=$ac_cv_exeext
3879ac_exeext=$EXEEXT
22e05272
JM
3880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h. */
3882#include <stdio.h>
3883int
3884main ()
3885{
3886FILE *f = fopen ("conftest.out", "w");
3887 return ferror (f) || fclose (f) != 0;
3888
3889 ;
3890 return 0;
3891}
3892_ACEOF
3893ac_clean_files="$ac_clean_files conftest.out"
3894# Check that the compiler produces executables we can run. If not, either
3895# the compiler is broken, or we cross compile.
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3897$as_echo_n "checking whether we are cross compiling... " >&6; }
3898if test "$cross_compiling" != yes; then
3899 { { ac_try="$ac_link"
3900case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903esac
3904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905$as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_link") 2>&5
3907 ac_status=$?
3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909 test $ac_status = 0; }
3910 if { ac_try='./conftest$ac_cv_exeext'
3911 { { case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916$as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_try") 2>&5
3918 ac_status=$?
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }; }; then
3921 cross_compiling=no
3922 else
3923 if test "$cross_compiling" = maybe; then
3924 cross_compiling=yes
3925 else
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928as_fn_error $? "cannot run C compiled programs.
3929If you meant to cross compile, use \`--host'.
3930See \`config.log' for more details" "$LINENO" 5; }
3931 fi
3932 fi
3933fi
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3935$as_echo "$cross_compiling" >&6; }
3936
3937rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3938ac_clean_files=$ac_clean_files_save
48310492
RH
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3940$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3941if ${ac_cv_objext+:} false; then :
48310492
RH
3942 $as_echo_n "(cached) " >&6
3943else
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945/* end confdefs.h. */
3946
3947int
3948main ()
3949{
3950
3951 ;
3952 return 0;
3953}
3954_ACEOF
3955rm -f conftest.o conftest.obj
3956if { { ac_try="$ac_compile"
3957case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962$as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_compile") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; then :
3967 for ac_file in conftest.o conftest.obj conftest.*; do
3968 test -f "$ac_file" || continue;
3969 case $ac_file in
3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3972 break;;
3973 esac
3974done
3975else
3976 $as_echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3981as_fn_error $? "cannot compute suffix of object files: cannot compile
3982See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
3983fi
3984rm -f conftest.$ac_cv_objext conftest.$ac_ext
3985fi
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3987$as_echo "$ac_cv_objext" >&6; }
3988OBJEXT=$ac_cv_objext
3989ac_objext=$OBJEXT
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3991$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3992if ${ac_cv_c_compiler_gnu+:} false; then :
48310492
RH
3993 $as_echo_n "(cached) " >&6
3994else
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996/* end confdefs.h. */
3997
3998int
3999main ()
4000{
4001#ifndef __GNUC__
4002 choke me
4003#endif
4004
4005 ;
4006 return 0;
4007}
4008_ACEOF
4009if ac_fn_c_try_compile "$LINENO"; then :
4010 ac_compiler_gnu=yes
4011else
4012 ac_compiler_gnu=no
4013fi
4014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015ac_cv_c_compiler_gnu=$ac_compiler_gnu
4016
4017fi
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4019$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4020if test $ac_compiler_gnu = yes; then
4021 GCC=yes
4022else
4023 GCC=
4024fi
4025ac_test_CFLAGS=${CFLAGS+set}
4026ac_save_CFLAGS=$CFLAGS
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4028$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4029if ${ac_cv_prog_cc_g+:} false; then :
48310492
RH
4030 $as_echo_n "(cached) " >&6
4031else
4032 ac_save_c_werror_flag=$ac_c_werror_flag
4033 ac_c_werror_flag=yes
4034 ac_cv_prog_cc_g=no
4035 CFLAGS="-g"
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h. */
4038
4039int
4040main ()
4041{
4042
4043 ;
4044 return 0;
4045}
4046_ACEOF
4047if ac_fn_c_try_compile "$LINENO"; then :
4048 ac_cv_prog_cc_g=yes
4049else
4050 CFLAGS=""
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052/* end confdefs.h. */
4053
4054int
4055main ()
4056{
4057
4058 ;
4059 return 0;
4060}
4061_ACEOF
4062if ac_fn_c_try_compile "$LINENO"; then :
4063
4064else
4065 ac_c_werror_flag=$ac_save_c_werror_flag
4066 CFLAGS="-g"
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h. */
4069
4070int
4071main ()
4072{
4073
4074 ;
4075 return 0;
4076}
4077_ACEOF
4078if ac_fn_c_try_compile "$LINENO"; then :
4079 ac_cv_prog_cc_g=yes
4080fi
4081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082fi
4083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084fi
4085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 ac_c_werror_flag=$ac_save_c_werror_flag
4087fi
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4089$as_echo "$ac_cv_prog_cc_g" >&6; }
4090if test "$ac_test_CFLAGS" = set; then
4091 CFLAGS=$ac_save_CFLAGS
4092elif test $ac_cv_prog_cc_g = yes; then
4093 if test "$GCC" = yes; then
4094 CFLAGS="-g -O2"
4095 else
4096 CFLAGS="-g"
4097 fi
4098else
4099 if test "$GCC" = yes; then
4100 CFLAGS="-O2"
4101 else
4102 CFLAGS=
4103 fi
4104fi
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4106$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4107if ${ac_cv_prog_cc_c89+:} false; then :
48310492
RH
4108 $as_echo_n "(cached) " >&6
4109else
4110 ac_cv_prog_cc_c89=no
4111ac_save_CC=$CC
4112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h. */
4114#include <stdarg.h>
4115#include <stdio.h>
22e05272 4116struct stat;
48310492
RH
4117/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4118struct buf { int x; };
4119FILE * (*rcsopen) (struct buf *, struct stat *, int);
4120static char *e (p, i)
4121 char **p;
4122 int i;
4123{
4124 return p[i];
4125}
4126static char *f (char * (*g) (char **, int), char **p, ...)
4127{
4128 char *s;
4129 va_list v;
4130 va_start (v,p);
4131 s = g (p, va_arg (v,int));
4132 va_end (v);
4133 return s;
4134}
4135
4136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4137 function prototypes and stuff, but not '\xHH' hex character constants.
4138 These don't provoke an error unfortunately, instead are silently treated
4139 as 'x'. The following induces an error, until -std is added to get
4140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4141 array size at least. It's necessary to write '\x00'==0 to get something
4142 that's true only with -std. */
4143int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4144
4145/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4146 inside strings and character constants. */
4147#define FOO(x) 'x'
4148int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4149
4150int test (int i, double x);
4151struct s1 {int (*f) (int a);};
4152struct s2 {int (*f) (double a);};
4153int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4154int argc;
4155char **argv;
4156int
4157main ()
4158{
4159return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4160 ;
4161 return 0;
4162}
4163_ACEOF
4164for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4166do
4167 CC="$ac_save_CC $ac_arg"
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_c89=$ac_arg
4170fi
4171rm -f core conftest.err conftest.$ac_objext
4172 test "x$ac_cv_prog_cc_c89" != "xno" && break
4173done
4174rm -f conftest.$ac_ext
4175CC=$ac_save_CC
4176
4177fi
4178# AC_CACHE_VAL
4179case "x$ac_cv_prog_cc_c89" in
4180 x)
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4182$as_echo "none needed" >&6; } ;;
4183 xno)
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185$as_echo "unsupported" >&6; } ;;
4186 *)
4187 CC="$CC $ac_cv_prog_cc_c89"
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4189$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4190esac
4191if test "x$ac_cv_prog_cc_c89" != xno; then :
4192
4193fi
4194
4195ac_ext=c
4196ac_cpp='$CPP $CPPFLAGS'
4197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199ac_compiler_gnu=$ac_cv_c_compiler_gnu
22e05272
JM
4200
4201ac_ext=c
4202ac_cpp='$CPP $CPPFLAGS'
4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4207$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4208if ${am_cv_prog_cc_c_o+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210else
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212/* end confdefs.h. */
4213
4214int
4215main ()
4216{
4217
4218 ;
4219 return 0;
4220}
4221_ACEOF
4222 # Make sure it works both with $CC and with simple cc.
4223 # Following AC_PROG_CC_C_O, we do the test twice because some
4224 # compilers refuse to overwrite an existing .o file with -o,
4225 # though they will create one.
4226 am_cv_prog_cc_c_o=yes
4227 for am_i in 1 2; do
4228 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4229 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } \
4233 && test -f conftest2.$ac_objext; then
4234 : OK
4235 else
4236 am_cv_prog_cc_c_o=no
4237 break
4238 fi
4239 done
4240 rm -f core conftest*
4241 unset am_i
4242fi
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4244$as_echo "$am_cv_prog_cc_c_o" >&6; }
4245if test "$am_cv_prog_cc_c_o" != yes; then
4246 # Losing compiler, so override with the script.
4247 # FIXME: It is wrong to rewrite CC.
4248 # But if we don't then we get into trouble of one sort or another.
4249 # A longer-term fix would be to have automake use am__CC in this case,
4250 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4251 CC="$am_aux_dir/compile $CC"
4252fi
4253ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
48310492
RH
4259DEPDIR="${am__leading_dot}deps"
4260
4261ac_config_commands="$ac_config_commands depfiles"
4262
4263
4264am_make=${MAKE-make}
4265cat > confinc << 'END'
4266am__doit:
4267 @echo this is the am__doit target
4268.PHONY: am__doit
4269END
4270# If we don't find an include directive, just comment out the code.
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4272$as_echo_n "checking for style of include used by $am_make... " >&6; }
4273am__include="#"
4274am__quote=
4275_am_result=none
4276# First try GNU make style include.
4277echo "include confinc" > confmf
22e05272 4278# Ignore all kinds of additional output from 'make'.
48310492
RH
4279case `$am_make -s -f confmf 2> /dev/null` in #(
4280*the\ am__doit\ target*)
4281 am__include=include
4282 am__quote=
4283 _am_result=GNU
4284 ;;
4285esac
4286# Now try BSD make style include.
4287if test "$am__include" = "#"; then
4288 echo '.include "confinc"' > confmf
4289 case `$am_make -s -f confmf 2> /dev/null` in #(
4290 *the\ am__doit\ target*)
4291 am__include=.include
4292 am__quote="\""
4293 _am_result=BSD
4294 ;;
4295 esac
4296fi
4297
4298
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4300$as_echo "$_am_result" >&6; }
4301rm -f confinc confmf
4302
4303# Check whether --enable-dependency-tracking was given.
4304if test "${enable_dependency_tracking+set}" = set; then :
4305 enableval=$enable_dependency_tracking;
4306fi
4307
4308if test "x$enable_dependency_tracking" != xno; then
4309 am_depcomp="$ac_aux_dir/depcomp"
4310 AMDEPBACKSLASH='\'
dc3368d0 4311 am__nodep='_no'
48310492
RH
4312fi
4313 if test "x$enable_dependency_tracking" != xno; then
4314 AMDEP_TRUE=
4315 AMDEP_FALSE='#'
4316else
4317 AMDEP_TRUE='#'
4318 AMDEP_FALSE=
4319fi
4320
4321
4322
4323depcc="$CC" am_compiler_list=
4324
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4326$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4327if ${am_cv_CC_dependencies_compiler_type+:} false; then :
48310492
RH
4328 $as_echo_n "(cached) " >&6
4329else
4330 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4331 # We make a subdir and do the tests there. Otherwise we can end up
4332 # making bogus files that we don't know about and never remove. For
4333 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4334 # making a dummy file named 'D' -- because '-MD' means "put the output
4335 # in D".
dc3368d0 4336 rm -rf conftest.dir
48310492
RH
4337 mkdir conftest.dir
4338 # Copy depcomp to subdir because otherwise we won't find it if we're
4339 # using a relative directory.
4340 cp "$am_depcomp" conftest.dir
4341 cd conftest.dir
4342 # We will build objects and dependencies in a subdirectory because
4343 # it helps to detect inapplicable dependency modes. For instance
4344 # both Tru64's cc and ICC support -MD to output dependencies as a
4345 # side effect of compilation, but ICC will put the dependencies in
4346 # the current directory while Tru64 will put them in the object
4347 # directory.
4348 mkdir sub
4349
4350 am_cv_CC_dependencies_compiler_type=none
4351 if test "$am_compiler_list" = ""; then
4352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353 fi
4354 am__universal=false
4355 case " $depcc " in #(
4356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4357 esac
4358
4359 for depmode in $am_compiler_list; do
4360 # Setup a source with many dependencies, because some compilers
4361 # like to wrap large dependency lists on column 80 (with \), and
4362 # we should not choose a depcomp mode which is confused by this.
4363 #
4364 # We need to recreate these files for each test, as the compiler may
4365 # overwrite some of them when testing with obscure command lines.
4366 # This happens at least with the AIX C compiler.
4367 : > sub/conftest.c
4368 for i in 1 2 3 4 5 6; do
4369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4370 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4371 # Solaris 10 /bin/sh.
4372 echo '/* dummy */' > sub/conftst$i.h
48310492
RH
4373 done
4374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375
22e05272 4376 # We check with '-c' and '-o' for the sake of the "dashmstdout"
48310492 4377 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4378 # handle '-M -o', and we need to detect this. Also, some Intel
4379 # versions had trouble with output in subdirs.
48310492
RH
4380 am__obj=sub/conftest.${OBJEXT-o}
4381 am__minus_obj="-o $am__obj"
4382 case $depmode in
4383 gcc)
4384 # This depmode causes a compiler race in universal mode.
4385 test "$am__universal" = false || continue
4386 ;;
4387 nosideeffect)
22e05272
JM
4388 # After this tag, mechanisms are not by side-effect, so they'll
4389 # only be used when explicitly requested.
48310492
RH
4390 if test "x$enable_dependency_tracking" = xyes; then
4391 continue
4392 else
4393 break
4394 fi
4395 ;;
dc3368d0 4396 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4397 # This compiler won't grok '-c -o', but also, the minuso test has
48310492
RH
4398 # not run yet. These depmodes are late enough in the game, and
4399 # so weak that their functioning should not be impacted.
4400 am__obj=conftest.${OBJEXT-o}
4401 am__minus_obj=
4402 ;;
4403 none) break ;;
4404 esac
4405 if depmode=$depmode \
4406 source=sub/conftest.c object=$am__obj \
4407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4409 >/dev/null 2>conftest.err &&
4410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4414 # icc doesn't choke on unknown options, it will just issue warnings
4415 # or remarks (even with -Werror). So we grep stderr for any message
4416 # that says an option was ignored or not supported.
4417 # When given -MP, icc 7.0 and 7.1 complain thusly:
4418 # icc: Command line warning: ignoring option '-M'; no argument required
4419 # The diagnosis changed in icc 8.0:
4420 # icc: Command line remark: option '-MP' not supported
4421 if (grep 'ignoring option' conftest.err ||
4422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4423 am_cv_CC_dependencies_compiler_type=$depmode
4424 break
4425 fi
4426 fi
4427 done
4428
4429 cd ..
4430 rm -rf conftest.dir
4431else
4432 am_cv_CC_dependencies_compiler_type=none
4433fi
4434
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4437$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4438CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439
4440 if
4441 test "x$enable_dependency_tracking" != xno \
4442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4443 am__fastdepCC_TRUE=
4444 am__fastdepCC_FALSE='#'
4445else
4446 am__fastdepCC_TRUE='#'
4447 am__fastdepCC_FALSE=
4448fi
4449
4450
4451# By default we simply use the C compiler to build assembly code.
4452
4453test "${CCAS+set}" = set || CCAS=$CC
4454test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4455
4456
4457
4458depcc="$CCAS" am_compiler_list=
4459
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4461$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4462if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
48310492
RH
4463 $as_echo_n "(cached) " >&6
4464else
4465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4466 # We make a subdir and do the tests there. Otherwise we can end up
4467 # making bogus files that we don't know about and never remove. For
4468 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4469 # making a dummy file named 'D' -- because '-MD' means "put the output
4470 # in D".
dc3368d0 4471 rm -rf conftest.dir
48310492
RH
4472 mkdir conftest.dir
4473 # Copy depcomp to subdir because otherwise we won't find it if we're
4474 # using a relative directory.
4475 cp "$am_depcomp" conftest.dir
4476 cd conftest.dir
4477 # We will build objects and dependencies in a subdirectory because
4478 # it helps to detect inapplicable dependency modes. For instance
4479 # both Tru64's cc and ICC support -MD to output dependencies as a
4480 # side effect of compilation, but ICC will put the dependencies in
4481 # the current directory while Tru64 will put them in the object
4482 # directory.
4483 mkdir sub
4484
4485 am_cv_CCAS_dependencies_compiler_type=none
4486 if test "$am_compiler_list" = ""; then
4487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4488 fi
4489 am__universal=false
4490
4491
4492 for depmode in $am_compiler_list; do
4493 # Setup a source with many dependencies, because some compilers
4494 # like to wrap large dependency lists on column 80 (with \), and
4495 # we should not choose a depcomp mode which is confused by this.
4496 #
4497 # We need to recreate these files for each test, as the compiler may
4498 # overwrite some of them when testing with obscure command lines.
4499 # This happens at least with the AIX C compiler.
4500 : > sub/conftest.c
4501 for i in 1 2 3 4 5 6; do
4502 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4503 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4504 # Solaris 10 /bin/sh.
4505 echo '/* dummy */' > sub/conftst$i.h
48310492
RH
4506 done
4507 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4508
22e05272 4509 # We check with '-c' and '-o' for the sake of the "dashmstdout"
48310492 4510 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4511 # handle '-M -o', and we need to detect this. Also, some Intel
4512 # versions had trouble with output in subdirs.
48310492
RH
4513 am__obj=sub/conftest.${OBJEXT-o}
4514 am__minus_obj="-o $am__obj"
4515 case $depmode in
4516 gcc)
4517 # This depmode causes a compiler race in universal mode.
4518 test "$am__universal" = false || continue
4519 ;;
4520 nosideeffect)
22e05272
JM
4521 # After this tag, mechanisms are not by side-effect, so they'll
4522 # only be used when explicitly requested.
48310492
RH
4523 if test "x$enable_dependency_tracking" = xyes; then
4524 continue
4525 else
4526 break
4527 fi
4528 ;;
dc3368d0 4529 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4530 # This compiler won't grok '-c -o', but also, the minuso test has
48310492
RH
4531 # not run yet. These depmodes are late enough in the game, and
4532 # so weak that their functioning should not be impacted.
4533 am__obj=conftest.${OBJEXT-o}
4534 am__minus_obj=
4535 ;;
4536 none) break ;;
4537 esac
4538 if depmode=$depmode \
4539 source=sub/conftest.c object=$am__obj \
4540 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4541 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4542 >/dev/null 2>conftest.err &&
4543 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4544 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4545 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4546 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4547 # icc doesn't choke on unknown options, it will just issue warnings
4548 # or remarks (even with -Werror). So we grep stderr for any message
4549 # that says an option was ignored or not supported.
4550 # When given -MP, icc 7.0 and 7.1 complain thusly:
4551 # icc: Command line warning: ignoring option '-M'; no argument required
4552 # The diagnosis changed in icc 8.0:
4553 # icc: Command line remark: option '-MP' not supported
4554 if (grep 'ignoring option' conftest.err ||
4555 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4556 am_cv_CCAS_dependencies_compiler_type=$depmode
4557 break
4558 fi
4559 fi
4560 done
4561
4562 cd ..
4563 rm -rf conftest.dir
4564else
4565 am_cv_CCAS_dependencies_compiler_type=none
4566fi
4567
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4570$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4571CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4572
4573 if
4574 test "x$enable_dependency_tracking" != xno \
4575 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4576 am__fastdepCCAS_TRUE=
4577 am__fastdepCCAS_FALSE='#'
4578else
4579 am__fastdepCCAS_TRUE='#'
4580 am__fastdepCCAS_FALSE=
4581fi
4582
4583
4584
4585
4586
4587
4588# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4589# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4590# in both places for now and restore CFLAGS at the end of config.
4591save_CFLAGS="$CFLAGS"
4592
4593# Find other programs we need.
4594if test -n "$ac_tool_prefix"; then
4595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4596set dummy ${ac_tool_prefix}ar; ac_word=$2
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4599if ${ac_cv_prog_AR+:} false; then :
48310492
RH
4600 $as_echo_n "(cached) " >&6
4601else
4602 if test -n "$AR"; then
4603 ac_cv_prog_AR="$AR" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4612 ac_cv_prog_AR="${ac_tool_prefix}ar"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616done
4617 done
4618IFS=$as_save_IFS
4619
4620fi
4621fi
4622AR=$ac_cv_prog_AR
4623if test -n "$AR"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4625$as_echo "$AR" >&6; }
4626else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
4629fi
4630
4631
4632fi
4633if test -z "$ac_cv_prog_AR"; then
4634 ac_ct_AR=$AR
4635 # Extract the first word of "ar", so it can be a program name with args.
4636set dummy ar; ac_word=$2
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4639if ${ac_cv_prog_ac_ct_AR+:} false; then :
48310492
RH
4640 $as_echo_n "(cached) " >&6
4641else
4642 if test -n "$ac_ct_AR"; then
4643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4652 ac_cv_prog_ac_ct_AR="ar"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656done
4657 done
4658IFS=$as_save_IFS
4659
4660fi
4661fi
4662ac_ct_AR=$ac_cv_prog_ac_ct_AR
4663if test -n "$ac_ct_AR"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4665$as_echo "$ac_ct_AR" >&6; }
4666else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668$as_echo "no" >&6; }
4669fi
4670
4671 if test "x$ac_ct_AR" = x; then
4672 AR=""
4673 else
4674 case $cross_compiling:$ac_tool_warned in
4675yes:)
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678ac_tool_warned=yes ;;
4679esac
4680 AR=$ac_ct_AR
4681 fi
4682else
4683 AR="$ac_cv_prog_AR"
4684fi
4685
4686if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4688set dummy ${ac_tool_prefix}nm; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4691if ${ac_cv_prog_NM+:} false; then :
48310492
RH
4692 $as_echo_n "(cached) " >&6
4693else
4694 if test -n "$NM"; then
4695 ac_cv_prog_NM="$NM" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4704 ac_cv_prog_NM="${ac_tool_prefix}nm"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708done
4709 done
4710IFS=$as_save_IFS
4711
4712fi
4713fi
4714NM=$ac_cv_prog_NM
4715if test -n "$NM"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4717$as_echo "$NM" >&6; }
4718else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720$as_echo "no" >&6; }
4721fi
4722
4723
4724fi
4725if test -z "$ac_cv_prog_NM"; then
4726 ac_ct_NM=$NM
4727 # Extract the first word of "nm", so it can be a program name with args.
4728set dummy nm; ac_word=$2
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4731if ${ac_cv_prog_ac_ct_NM+:} false; then :
48310492
RH
4732 $as_echo_n "(cached) " >&6
4733else
4734 if test -n "$ac_ct_NM"; then
4735 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4744 ac_cv_prog_ac_ct_NM="nm"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748done
4749 done
4750IFS=$as_save_IFS
4751
4752fi
4753fi
4754ac_ct_NM=$ac_cv_prog_ac_ct_NM
4755if test -n "$ac_ct_NM"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4757$as_echo "$ac_ct_NM" >&6; }
4758else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760$as_echo "no" >&6; }
4761fi
4762
4763 if test "x$ac_ct_NM" = x; then
4764 NM=""
4765 else
4766 case $cross_compiling:$ac_tool_warned in
4767yes:)
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770ac_tool_warned=yes ;;
4771esac
4772 NM=$ac_ct_NM
4773 fi
4774else
4775 NM="$ac_cv_prog_NM"
4776fi
4777
4778if test -n "$ac_tool_prefix"; then
4779 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4780set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4783if ${ac_cv_prog_RANLIB+:} false; then :
48310492
RH
4784 $as_echo_n "(cached) " >&6
4785else
4786 if test -n "$RANLIB"; then
4787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801 done
4802IFS=$as_save_IFS
4803
4804fi
4805fi
4806RANLIB=$ac_cv_prog_RANLIB
4807if test -n "$RANLIB"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4809$as_echo "$RANLIB" >&6; }
4810else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812$as_echo "no" >&6; }
4813fi
4814
4815
4816fi
4817if test -z "$ac_cv_prog_RANLIB"; then
4818 ac_ct_RANLIB=$RANLIB
4819 # Extract the first word of "ranlib", so it can be a program name with args.
4820set dummy ranlib; ac_word=$2
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4823if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
48310492
RH
4824 $as_echo_n "(cached) " >&6
4825else
4826 if test -n "$ac_ct_RANLIB"; then
4827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4828else
4829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4836 ac_cv_prog_ac_ct_RANLIB="ranlib"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840done
4841 done
4842IFS=$as_save_IFS
4843
4844fi
4845fi
4846ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4847if test -n "$ac_ct_RANLIB"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4849$as_echo "$ac_ct_RANLIB" >&6; }
4850else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854
4855 if test "x$ac_ct_RANLIB" = x; then
4856 RANLIB="ranlib-not-found-in-path-error"
4857 else
4858 case $cross_compiling:$ac_tool_warned in
4859yes:)
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4862ac_tool_warned=yes ;;
4863esac
4864 RANLIB=$ac_ct_RANLIB
4865 fi
4866else
4867 RANLIB="$ac_cv_prog_RANLIB"
4868fi
4869
4870# Extract the first word of "perl", so it can be a program name with args.
4871set dummy perl; ac_word=$2
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4874if ${ac_cv_path_PERL+:} false; then :
48310492
RH
4875 $as_echo_n "(cached) " >&6
4876else
4877 case $PERL in
4878 [\\/]* | ?:[\\/]*)
4879 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4880 ;;
4881 *)
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
4889 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4892 fi
4893done
4894 done
4895IFS=$as_save_IFS
4896
4897 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4898 ;;
4899esac
4900fi
4901PERL=$ac_cv_path_PERL
4902if test -n "$PERL"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4904$as_echo "$PERL" >&6; }
4905else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907$as_echo "no" >&6; }
4908fi
4909
4910
4911
4912
4913# Configure libtool
4914case `pwd` in
4915 *\ * | *\ *)
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4917$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4918esac
4919
4920
4921
4922macro_version='2.2.7a'
4923macro_revision='1.3134'
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937ltmain="$ac_aux_dir/ltmain.sh"
4938
4939# Backslashify metacharacters that are still active within
4940# double-quoted strings.
4941sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4942
4943# Same as above, but do not quote variable references.
4944double_quote_subst='s/\(["`\\]\)/\\\1/g'
4945
4946# Sed substitution to delay expansion of an escaped shell variable in a
4947# double_quote_subst'ed string.
4948delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4949
4950# Sed substitution to delay expansion of an escaped single quote.
4951delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4952
4953# Sed substitution to avoid accidental globbing in evaled expressions
4954no_glob_subst='s/\*/\\\*/g'
4955
4956ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4957ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4958ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4959
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4961$as_echo_n "checking how to print strings... " >&6; }
4962# Test print first, because it will be a builtin if present.
4963if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4965 ECHO='print -r --'
4966elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4967 ECHO='printf %s\n'
4968else
4969 # Use this function as a fallback that always works.
4970 func_fallback_echo ()
4971 {
4972 eval 'cat <<_LTECHO_EOF
4973$1
4974_LTECHO_EOF'
4975 }
4976 ECHO='func_fallback_echo'
4977fi
4978
4979# func_echo_all arg...
4980# Invoke $ECHO with all args, space-separated.
4981func_echo_all ()
4982{
4983 $ECHO ""
4984}
4985
4986case "$ECHO" in
4987 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4988$as_echo "printf" >&6; } ;;
4989 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4990$as_echo "print -r" >&6; } ;;
4991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4992$as_echo "cat" >&6; } ;;
4993esac
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5009$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5010if ${ac_cv_path_SED+:} false; then :
48310492
RH
5011 $as_echo_n "(cached) " >&6
5012else
5013 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5014 for ac_i in 1 2 3 4 5 6 7; do
5015 ac_script="$ac_script$as_nl$ac_script"
5016 done
5017 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5018 { ac_script=; unset ac_script;}
5019 if test -z "$SED"; then
5020 ac_path_SED_found=false
5021 # Loop through the user's path and test for each of PROGNAME-LIST
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_prog in sed gsed; do
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5030 as_fn_executable_p "$ac_path_SED" || continue
48310492
RH
5031# Check for GNU ac_path_SED and select it if it is found.
5032 # Check for GNU $ac_path_SED
5033case `"$ac_path_SED" --version 2>&1` in
5034*GNU*)
5035 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5036*)
5037 ac_count=0
5038 $as_echo_n 0123456789 >"conftest.in"
5039 while :
5040 do
5041 cat "conftest.in" "conftest.in" >"conftest.tmp"
5042 mv "conftest.tmp" "conftest.in"
5043 cp "conftest.in" "conftest.nl"
5044 $as_echo '' >> "conftest.nl"
5045 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047 as_fn_arith $ac_count + 1 && ac_count=$as_val
5048 if test $ac_count -gt ${ac_path_SED_max-0}; then
5049 # Best one so far, save it but keep looking for a better one
5050 ac_cv_path_SED="$ac_path_SED"
5051 ac_path_SED_max=$ac_count
5052 fi
5053 # 10*(2^10) chars as input seems more than enough
5054 test $ac_count -gt 10 && break
5055 done
5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057esac
5058
5059 $ac_path_SED_found && break 3
5060 done
5061 done
5062 done
5063IFS=$as_save_IFS
5064 if test -z "$ac_cv_path_SED"; then
22e05272 5065 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
48310492
RH
5066 fi
5067else
5068 ac_cv_path_SED=$SED
5069fi
5070
5071fi
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5073$as_echo "$ac_cv_path_SED" >&6; }
5074 SED="$ac_cv_path_SED"
5075 rm -f conftest.sed
5076
5077test -z "$SED" && SED=sed
5078Xsed="$SED -e 1s/^X//"
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5091$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 5092if ${ac_cv_path_GREP+:} false; then :
48310492
RH
5093 $as_echo_n "(cached) " >&6
5094else
5095 if test -z "$GREP"; then
5096 ac_path_GREP_found=false
5097 # Loop through the user's path and test for each of PROGNAME-LIST
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5100do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_prog in grep ggrep; do
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5106 as_fn_executable_p "$ac_path_GREP" || continue
48310492
RH
5107# Check for GNU ac_path_GREP and select it if it is found.
5108 # Check for GNU $ac_path_GREP
5109case `"$ac_path_GREP" --version 2>&1` in
5110*GNU*)
5111 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5112*)
5113 ac_count=0
5114 $as_echo_n 0123456789 >"conftest.in"
5115 while :
5116 do
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
5120 $as_echo 'GREP' >> "conftest.nl"
5121 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5123 as_fn_arith $ac_count + 1 && ac_count=$as_val
5124 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5125 # Best one so far, save it but keep looking for a better one
5126 ac_cv_path_GREP="$ac_path_GREP"
5127 ac_path_GREP_max=$ac_count
5128 fi
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5131 done
5132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5133esac
5134
5135 $ac_path_GREP_found && break 3
5136 done
5137 done
5138 done
5139IFS=$as_save_IFS
5140 if test -z "$ac_cv_path_GREP"; then
22e05272 5141 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5142 fi
5143else
5144 ac_cv_path_GREP=$GREP
5145fi
5146
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5149$as_echo "$ac_cv_path_GREP" >&6; }
5150 GREP="$ac_cv_path_GREP"
5151
5152
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5154$as_echo_n "checking for egrep... " >&6; }
22e05272 5155if ${ac_cv_path_EGREP+:} false; then :
48310492
RH
5156 $as_echo_n "(cached) " >&6
5157else
5158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5159 then ac_cv_path_EGREP="$GREP -E"
5160 else
5161 if test -z "$EGREP"; then
5162 ac_path_EGREP_found=false
5163 # Loop through the user's path and test for each of PROGNAME-LIST
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_prog in egrep; do
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5172 as_fn_executable_p "$ac_path_EGREP" || continue
48310492
RH
5173# Check for GNU ac_path_EGREP and select it if it is found.
5174 # Check for GNU $ac_path_EGREP
5175case `"$ac_path_EGREP" --version 2>&1` in
5176*GNU*)
5177 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5178*)
5179 ac_count=0
5180 $as_echo_n 0123456789 >"conftest.in"
5181 while :
5182 do
5183 cat "conftest.in" "conftest.in" >"conftest.tmp"
5184 mv "conftest.tmp" "conftest.in"
5185 cp "conftest.in" "conftest.nl"
5186 $as_echo 'EGREP' >> "conftest.nl"
5187 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5189 as_fn_arith $ac_count + 1 && ac_count=$as_val
5190 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5191 # Best one so far, save it but keep looking for a better one
5192 ac_cv_path_EGREP="$ac_path_EGREP"
5193 ac_path_EGREP_max=$ac_count
5194 fi
5195 # 10*(2^10) chars as input seems more than enough
5196 test $ac_count -gt 10 && break
5197 done
5198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5199esac
5200
5201 $ac_path_EGREP_found && break 3
5202 done
5203 done
5204 done
5205IFS=$as_save_IFS
5206 if test -z "$ac_cv_path_EGREP"; then
22e05272 5207 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5208 fi
5209else
5210 ac_cv_path_EGREP=$EGREP
5211fi
5212
5213 fi
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5216$as_echo "$ac_cv_path_EGREP" >&6; }
5217 EGREP="$ac_cv_path_EGREP"
5218
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5221$as_echo_n "checking for fgrep... " >&6; }
22e05272 5222if ${ac_cv_path_FGREP+:} false; then :
48310492
RH
5223 $as_echo_n "(cached) " >&6
5224else
5225 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5226 then ac_cv_path_FGREP="$GREP -F"
5227 else
5228 if test -z "$FGREP"; then
5229 ac_path_FGREP_found=false
5230 # Loop through the user's path and test for each of PROGNAME-LIST
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_prog in fgrep; do
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5239 as_fn_executable_p "$ac_path_FGREP" || continue
48310492
RH
5240# Check for GNU ac_path_FGREP and select it if it is found.
5241 # Check for GNU $ac_path_FGREP
5242case `"$ac_path_FGREP" --version 2>&1` in
5243*GNU*)
5244 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5245*)
5246 ac_count=0
5247 $as_echo_n 0123456789 >"conftest.in"
5248 while :
5249 do
5250 cat "conftest.in" "conftest.in" >"conftest.tmp"
5251 mv "conftest.tmp" "conftest.in"
5252 cp "conftest.in" "conftest.nl"
5253 $as_echo 'FGREP' >> "conftest.nl"
5254 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5256 as_fn_arith $ac_count + 1 && ac_count=$as_val
5257 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5258 # Best one so far, save it but keep looking for a better one
5259 ac_cv_path_FGREP="$ac_path_FGREP"
5260 ac_path_FGREP_max=$ac_count
5261 fi
5262 # 10*(2^10) chars as input seems more than enough
5263 test $ac_count -gt 10 && break
5264 done
5265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5266esac
5267
5268 $ac_path_FGREP_found && break 3
5269 done
5270 done
5271 done
5272IFS=$as_save_IFS
5273 if test -z "$ac_cv_path_FGREP"; then
22e05272 5274 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
48310492
RH
5275 fi
5276else
5277 ac_cv_path_FGREP=$FGREP
5278fi
5279
5280 fi
5281fi
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5283$as_echo "$ac_cv_path_FGREP" >&6; }
5284 FGREP="$ac_cv_path_FGREP"
5285
5286
5287test -z "$GREP" && GREP=grep
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307# Check whether --with-gnu-ld was given.
5308if test "${with_gnu_ld+set}" = set; then :
5309 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5310else
5311 with_gnu_ld=no
5312fi
5313
5314ac_prog=ld
5315if test "$GCC" = yes; then
5316 # Check if gcc -print-prog-name=ld gives a path.
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5318$as_echo_n "checking for ld used by $CC... " >&6; }
5319 case $host in
5320 *-*-mingw*)
5321 # gcc leaves a trailing carriage return which upsets mingw
5322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5323 *)
5324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5325 esac
5326 case $ac_prog in
5327 # Accept absolute paths.
5328 [\\/]* | ?:[\\/]*)
5329 re_direlt='/[^/][^/]*/\.\./'
5330 # Canonicalize the pathname of ld
5331 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5332 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5333 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5334 done
5335 test -z "$LD" && LD="$ac_prog"
5336 ;;
5337 "")
5338 # If it fails, then pretend we aren't using GCC.
5339 ac_prog=ld
5340 ;;
5341 *)
5342 # If it is relative, then search for the first ld in PATH.
5343 with_gnu_ld=unknown
5344 ;;
5345 esac
5346elif test "$with_gnu_ld" = yes; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5348$as_echo_n "checking for GNU ld... " >&6; }
5349else
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5351$as_echo_n "checking for non-GNU ld... " >&6; }
5352fi
22e05272 5353if ${lt_cv_path_LD+:} false; then :
48310492
RH
5354 $as_echo_n "(cached) " >&6
5355else
5356 if test -z "$LD"; then
5357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5358 for ac_dir in $PATH; do
5359 IFS="$lt_save_ifs"
5360 test -z "$ac_dir" && ac_dir=.
5361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5362 lt_cv_path_LD="$ac_dir/$ac_prog"
5363 # Check to see if the program is GNU ld. I'd rather use --version,
5364 # but apparently some variants of GNU ld only accept -v.
5365 # Break only if it was the GNU/non-GNU ld that we prefer.
5366 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5367 *GNU* | *'with BFD'*)
5368 test "$with_gnu_ld" != no && break
5369 ;;
5370 *)
5371 test "$with_gnu_ld" != yes && break
5372 ;;
5373 esac
5374 fi
5375 done
5376 IFS="$lt_save_ifs"
5377else
5378 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5379fi
5380fi
5381
5382LD="$lt_cv_path_LD"
5383if test -n "$LD"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5385$as_echo "$LD" >&6; }
5386else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
22e05272 5390test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
48310492
RH
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5392$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5393if ${lt_cv_prog_gnu_ld+:} false; then :
48310492
RH
5394 $as_echo_n "(cached) " >&6
5395else
5396 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5397case `$LD -v 2>&1 </dev/null` in
5398*GNU* | *'with BFD'*)
5399 lt_cv_prog_gnu_ld=yes
5400 ;;
5401*)
5402 lt_cv_prog_gnu_ld=no
5403 ;;
5404esac
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5407$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5408with_gnu_ld=$lt_cv_prog_gnu_ld
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5419$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5420if ${lt_cv_path_NM+:} false; then :
48310492
RH
5421 $as_echo_n "(cached) " >&6
5422else
5423 if test -n "$NM"; then
5424 # Let the user override the test.
5425 lt_cv_path_NM="$NM"
5426else
5427 lt_nm_to_check="${ac_tool_prefix}nm"
5428 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5429 lt_nm_to_check="$lt_nm_to_check nm"
5430 fi
5431 for lt_tmp_nm in $lt_nm_to_check; do
5432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5433 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5434 IFS="$lt_save_ifs"
5435 test -z "$ac_dir" && ac_dir=.
5436 tmp_nm="$ac_dir/$lt_tmp_nm"
5437 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5438 # Check to see if the nm accepts a BSD-compat flag.
5439 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5440 # nm: unknown option "B" ignored
5441 # Tru64's nm complains that /dev/null is an invalid object file
5442 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5443 */dev/null* | *'Invalid file or object type'*)
5444 lt_cv_path_NM="$tmp_nm -B"
5445 break
5446 ;;
5447 *)
5448 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5449 */dev/null*)
5450 lt_cv_path_NM="$tmp_nm -p"
5451 break
5452 ;;
5453 *)
5454 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5455 continue # so that we can try to find one that supports BSD flags
5456 ;;
5457 esac
5458 ;;
5459 esac
5460 fi
5461 done
5462 IFS="$lt_save_ifs"
5463 done
5464 : ${lt_cv_path_NM=no}
5465fi
5466fi
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5468$as_echo "$lt_cv_path_NM" >&6; }
5469if test "$lt_cv_path_NM" != "no"; then
5470 NM="$lt_cv_path_NM"
5471else
5472 # Didn't find any BSD compatible name lister, look for dumpbin.
5473 if test -n "$DUMPBIN"; then :
5474 # Let the user override the test.
5475 else
5476 if test -n "$ac_tool_prefix"; then
5477 for ac_prog in dumpbin "link -dump"
5478 do
5479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5480set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5483if ${ac_cv_prog_DUMPBIN+:} false; then :
48310492
RH
5484 $as_echo_n "(cached) " >&6
5485else
5486 if test -n "$DUMPBIN"; then
5487 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5496 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5499 fi
5500done
5501 done
5502IFS=$as_save_IFS
5503
5504fi
5505fi
5506DUMPBIN=$ac_cv_prog_DUMPBIN
5507if test -n "$DUMPBIN"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5509$as_echo "$DUMPBIN" >&6; }
5510else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512$as_echo "no" >&6; }
5513fi
5514
5515
5516 test -n "$DUMPBIN" && break
5517 done
5518fi
5519if test -z "$DUMPBIN"; then
5520 ac_ct_DUMPBIN=$DUMPBIN
5521 for ac_prog in dumpbin "link -dump"
5522do
5523 # Extract the first word of "$ac_prog", so it can be a program name with args.
5524set dummy $ac_prog; ac_word=$2
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5527if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
48310492
RH
5528 $as_echo_n "(cached) " >&6
5529else
5530 if test -n "$ac_ct_DUMPBIN"; then
5531 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5532else
5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5540 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544done
5545 done
5546IFS=$as_save_IFS
5547
5548fi
5549fi
5550ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5551if test -n "$ac_ct_DUMPBIN"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5553$as_echo "$ac_ct_DUMPBIN" >&6; }
5554else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }
5557fi
5558
5559
5560 test -n "$ac_ct_DUMPBIN" && break
5561done
5562
5563 if test "x$ac_ct_DUMPBIN" = x; then
5564 DUMPBIN=":"
5565 else
5566 case $cross_compiling:$ac_tool_warned in
5567yes:)
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5570ac_tool_warned=yes ;;
5571esac
5572 DUMPBIN=$ac_ct_DUMPBIN
5573 fi
5574fi
5575
5576 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5577 *COFF*)
5578 DUMPBIN="$DUMPBIN -symbols"
5579 ;;
5580 *)
5581 DUMPBIN=:
5582 ;;
5583 esac
5584 fi
5585
5586 if test "$DUMPBIN" != ":"; then
5587 NM="$DUMPBIN"
5588 fi
5589fi
5590test -z "$NM" && NM=nm
5591
5592
5593
5594
5595
5596
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5598$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5599if ${lt_cv_nm_interface+:} false; then :
48310492
RH
5600 $as_echo_n "(cached) " >&6
5601else
5602 lt_cv_nm_interface="BSD nm"
5603 echo "int some_variable = 0;" > conftest.$ac_ext
5604 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5605 (eval "$ac_compile" 2>conftest.err)
5606 cat conftest.err >&5
5607 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5608 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5609 cat conftest.err >&5
5610 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5611 cat conftest.out >&5
5612 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5613 lt_cv_nm_interface="MS dumpbin"
5614 fi
5615 rm -f conftest*
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5618$as_echo "$lt_cv_nm_interface" >&6; }
5619
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5621$as_echo_n "checking whether ln -s works... " >&6; }
5622LN_S=$as_ln_s
5623if test "$LN_S" = "ln -s"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5625$as_echo "yes" >&6; }
5626else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5628$as_echo "no, using $LN_S" >&6; }
5629fi
5630
5631# find the maximum length of command line arguments
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5633$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5634if ${lt_cv_sys_max_cmd_len+:} false; then :
48310492
RH
5635 $as_echo_n "(cached) " >&6
5636else
5637 i=0
5638 teststring="ABCD"
5639
5640 case $build_os in
5641 msdosdjgpp*)
5642 # On DJGPP, this test can blow up pretty badly due to problems in libc
5643 # (any single argument exceeding 2000 bytes causes a buffer overrun
5644 # during glob expansion). Even if it were fixed, the result of this
5645 # check would be larger than it should be.
5646 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5647 ;;
5648
5649 gnu*)
5650 # Under GNU Hurd, this test is not required because there is
5651 # no limit to the length of command line arguments.
5652 # Libtool will interpret -1 as no limit whatsoever
5653 lt_cv_sys_max_cmd_len=-1;
5654 ;;
5655
5656 cygwin* | mingw* | cegcc*)
5657 # On Win9x/ME, this test blows up -- it succeeds, but takes
5658 # about 5 minutes as the teststring grows exponentially.
5659 # Worse, since 9x/ME are not pre-emptively multitasking,
5660 # you end up with a "frozen" computer, even though with patience
5661 # the test eventually succeeds (with a max line length of 256k).
5662 # Instead, let's just punt: use the minimum linelength reported by
5663 # all of the supported platforms: 8192 (on NT/2K/XP).
5664 lt_cv_sys_max_cmd_len=8192;
5665 ;;
5666
5667 mint*)
5668 # On MiNT this can take a long time and run out of memory.
5669 lt_cv_sys_max_cmd_len=8192;
5670 ;;
5671
5672 amigaos*)
5673 # On AmigaOS with pdksh, this test takes hours, literally.
5674 # So we just punt and use a minimum line length of 8192.
5675 lt_cv_sys_max_cmd_len=8192;
5676 ;;
5677
5678 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5679 # This has been around since 386BSD, at least. Likely further.
5680 if test -x /sbin/sysctl; then
5681 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5682 elif test -x /usr/sbin/sysctl; then
5683 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5684 else
5685 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5686 fi
5687 # And add a safety zone
5688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5690 ;;
5691
5692 interix*)
5693 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5694 lt_cv_sys_max_cmd_len=196608
5695 ;;
5696
5697 osf*)
5698 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5699 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5700 # nice to cause kernel panics so lets avoid the loop below.
5701 # First set a reasonable default.
5702 lt_cv_sys_max_cmd_len=16384
5703 #
5704 if test -x /sbin/sysconfig; then
5705 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5706 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5707 esac
5708 fi
5709 ;;
5710 sco3.2v5*)
5711 lt_cv_sys_max_cmd_len=102400
5712 ;;
5713 sysv5* | sco5v6* | sysv4.2uw2*)
5714 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5715 if test -n "$kargmax"; then
5716 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5717 else
5718 lt_cv_sys_max_cmd_len=32768
5719 fi
5720 ;;
5721 *)
5722 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5723 if test -n "$lt_cv_sys_max_cmd_len"; then
5724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5726 else
5727 # Make teststring a little bigger before we do anything with it.
5728 # a 1K string should be a reasonable start.
5729 for i in 1 2 3 4 5 6 7 8 ; do
5730 teststring=$teststring$teststring
5731 done
5732 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5733 # If test is not a shell built-in, we'll probably end up computing a
5734 # maximum length that is only half of the actual maximum length, but
5735 # we can't tell.
5736 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5737 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5738 test $i != 17 # 1/2 MB should be enough
5739 do
5740 i=`expr $i + 1`
5741 teststring=$teststring$teststring
5742 done
5743 # Only check the string length outside the loop.
5744 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5745 teststring=
5746 # Add a significant safety factor because C++ compilers can tack on
5747 # massive amounts of additional arguments before passing them to the
5748 # linker. It appears as though 1/2 is a usable value.
5749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5750 fi
5751 ;;
5752 esac
5753
5754fi
5755
5756if test -n $lt_cv_sys_max_cmd_len ; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5758$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5759else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5761$as_echo "none" >&6; }
5762fi
5763max_cmd_len=$lt_cv_sys_max_cmd_len
5764
5765
5766
5767
5768
5769
5770: ${CP="cp -f"}
5771: ${MV="mv -f"}
5772: ${RM="rm -f"}
5773
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5775$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5776# Try some XSI features
5777xsi_shell=no
5778( _lt_dummy="a/b/c"
5779 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5780 = c,a/b,, \
5781 && eval 'test $(( 1 + 1 )) -eq 2 \
5782 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5783 && xsi_shell=yes
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5785$as_echo "$xsi_shell" >&6; }
5786
5787
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5789$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5790lt_shell_append=no
5791( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5792 >/dev/null 2>&1 \
5793 && lt_shell_append=yes
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5795$as_echo "$lt_shell_append" >&6; }
5796
5797
5798if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5799 lt_unset=unset
5800else
5801 lt_unset=false
5802fi
5803
5804
5805
5806
5807
5808# test EBCDIC or ASCII
5809case `echo X|tr X '\101'` in
5810 A) # ASCII based system
5811 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5812 lt_SP2NL='tr \040 \012'
5813 lt_NL2SP='tr \015\012 \040\040'
5814 ;;
5815 *) # EBCDIC based system
5816 lt_SP2NL='tr \100 \n'
5817 lt_NL2SP='tr \r\n \100\100'
5818 ;;
5819esac
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5830$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5831if ${lt_cv_ld_reload_flag+:} false; then :
48310492
RH
5832 $as_echo_n "(cached) " >&6
5833else
5834 lt_cv_ld_reload_flag='-r'
5835fi
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5837$as_echo "$lt_cv_ld_reload_flag" >&6; }
5838reload_flag=$lt_cv_ld_reload_flag
5839case $reload_flag in
5840"" | " "*) ;;
5841*) reload_flag=" $reload_flag" ;;
5842esac
5843reload_cmds='$LD$reload_flag -o $output$reload_objs'
5844case $host_os in
5845 darwin*)
5846 if test "$GCC" = yes; then
5847 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5848 else
5849 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5850 fi
5851 ;;
5852esac
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862if test -n "$ac_tool_prefix"; then
5863 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5864set dummy ${ac_tool_prefix}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_OBJDUMP+:} false; then :
48310492
RH
5868 $as_echo_n "(cached) " >&6
5869else
5870 if test -n "$OBJDUMP"; then
5871 ac_cv_prog_OBJDUMP="$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_OBJDUMP="${ac_tool_prefix}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
5890OBJDUMP=$ac_cv_prog_OBJDUMP
5891if test -n "$OBJDUMP"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5893$as_echo "$OBJDUMP" >&6; }
5894else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899
5900fi
5901if test -z "$ac_cv_prog_OBJDUMP"; then
5902 ac_ct_OBJDUMP=$OBJDUMP
5903 # Extract the first word of "objdump", so it can be a program name with args.
5904set dummy objdump; ac_word=$2
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5907if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
48310492
RH
5908 $as_echo_n "(cached) " >&6
5909else
5910 if test -n "$ac_ct_OBJDUMP"; then
5911 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5912else
5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
5920 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5923 fi
5924done
5925 done
5926IFS=$as_save_IFS
5927
5928fi
5929fi
5930ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5931if test -n "$ac_ct_OBJDUMP"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5933$as_echo "$ac_ct_OBJDUMP" >&6; }
5934else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936$as_echo "no" >&6; }
5937fi
5938
5939 if test "x$ac_ct_OBJDUMP" = x; then
5940 OBJDUMP="false"
5941 else
5942 case $cross_compiling:$ac_tool_warned in
5943yes:)
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5946ac_tool_warned=yes ;;
5947esac
5948 OBJDUMP=$ac_ct_OBJDUMP
5949 fi
5950else
5951 OBJDUMP="$ac_cv_prog_OBJDUMP"
5952fi
5953
5954test -z "$OBJDUMP" && OBJDUMP=objdump
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5965$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 5966if ${lt_cv_deplibs_check_method+:} false; then :
48310492
RH
5967 $as_echo_n "(cached) " >&6
5968else
5969 lt_cv_file_magic_cmd='$MAGIC_CMD'
5970lt_cv_file_magic_test_file=
5971lt_cv_deplibs_check_method='unknown'
5972# Need to set the preceding variable on all platforms that support
5973# interlibrary dependencies.
5974# 'none' -- dependencies not supported.
5975# `unknown' -- same as none, but documents that we really don't know.
5976# 'pass_all' -- all dependencies passed with no checks.
5977# 'test_compile' -- check by making test program.
5978# 'file_magic [[regex]]' -- check by looking for files in library path
5979# which responds to the $file_magic_cmd with a given extended regex.
5980# If you have `file' or equivalent on your system and you're not sure
5981# whether `pass_all' will *always* work, you probably want this one.
5982
5983case $host_os in
5984aix[4-9]*)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987
5988beos*)
5989 lt_cv_deplibs_check_method=pass_all
5990 ;;
5991
5992bsdi[45]*)
5993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5994 lt_cv_file_magic_cmd='/usr/bin/file -L'
5995 lt_cv_file_magic_test_file=/shlib/libc.so
5996 ;;
5997
5998cygwin*)
5999 # func_win32_libid is a shell function defined in ltmain.sh
6000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6001 lt_cv_file_magic_cmd='func_win32_libid'
6002 ;;
6003
6004mingw* | pw32*)
6005 # Base MSYS/MinGW do not provide the 'file' command needed by
6006 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6007 # unless we find 'file', for example because we are cross-compiling.
6008 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6009 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6011 lt_cv_file_magic_cmd='func_win32_libid'
6012 else
6013 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6014 lt_cv_file_magic_cmd='$OBJDUMP -f'
6015 fi
6016 ;;
6017
6018cegcc*)
6019 # use the weaker test based on 'objdump'. See mingw*.
6020 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6021 lt_cv_file_magic_cmd='$OBJDUMP -f'
6022 ;;
6023
6024darwin* | rhapsody*)
6025 lt_cv_deplibs_check_method=pass_all
6026 ;;
6027
6028freebsd* | dragonfly*)
6029 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6030 case $host_cpu in
6031 i*86 )
6032 # Not sure whether the presence of OpenBSD here was a mistake.
6033 # Let's accept both of them until this is cleared up.
6034 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6035 lt_cv_file_magic_cmd=/usr/bin/file
6036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6037 ;;
6038 esac
6039 else
6040 lt_cv_deplibs_check_method=pass_all
6041 fi
6042 ;;
6043
6044gnu*)
6045 lt_cv_deplibs_check_method=pass_all
6046 ;;
6047
6048haiku*)
6049 lt_cv_deplibs_check_method=pass_all
6050 ;;
6051
6052hpux10.20* | hpux11*)
6053 lt_cv_file_magic_cmd=/usr/bin/file
6054 case $host_cpu in
6055 ia64*)
6056 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6057 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6058 ;;
6059 hppa*64*)
6060 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]'
6061 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6062 ;;
6063 *)
6064 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6065 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6066 ;;
6067 esac
6068 ;;
6069
6070interix[3-9]*)
6071 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6073 ;;
6074
6075irix5* | irix6* | nonstopux*)
6076 case $LD in
6077 *-32|*"-32 ") libmagic=32-bit;;
6078 *-n32|*"-n32 ") libmagic=N32;;
6079 *-64|*"-64 ") libmagic=64-bit;;
6080 *) libmagic=never-match;;
6081 esac
6082 lt_cv_deplibs_check_method=pass_all
6083 ;;
6084
6085# This must be Linux ELF.
b1e21e5a 6086linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
48310492
RH
6087 lt_cv_deplibs_check_method=pass_all
6088 ;;
6089
6090netbsd*)
6091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6093 else
6094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6095 fi
6096 ;;
6097
6098newos6*)
6099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6100 lt_cv_file_magic_cmd=/usr/bin/file
6101 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6102 ;;
6103
6104*nto* | *qnx*)
6105 lt_cv_deplibs_check_method=pass_all
6106 ;;
6107
6108openbsd*)
6109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6111 else
6112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6113 fi
6114 ;;
6115
6116osf3* | osf4* | osf5*)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119
6120rdos*)
6121 lt_cv_deplibs_check_method=pass_all
6122 ;;
6123
6124solaris*)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127
6128sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131
6132sysv4 | sysv4.3*)
6133 case $host_vendor in
6134 motorola)
6135 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]'
6136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6137 ;;
6138 ncr)
6139 lt_cv_deplibs_check_method=pass_all
6140 ;;
6141 sequent)
6142 lt_cv_file_magic_cmd='/bin/file'
6143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6144 ;;
6145 sni)
6146 lt_cv_file_magic_cmd='/bin/file'
6147 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6148 lt_cv_file_magic_test_file=/lib/libc.so
6149 ;;
6150 siemens)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
6153 pc)
6154 lt_cv_deplibs_check_method=pass_all
6155 ;;
6156 esac
6157 ;;
6158
6159tpf*)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
6162esac
6163
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6166$as_echo "$lt_cv_deplibs_check_method" >&6; }
6167file_magic_cmd=$lt_cv_file_magic_cmd
6168deplibs_check_method=$lt_cv_deplibs_check_method
6169test -z "$deplibs_check_method" && deplibs_check_method=unknown
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182if test -n "$ac_tool_prefix"; then
6183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6184set dummy ${ac_tool_prefix}ar; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6187if ${ac_cv_prog_AR+:} false; then :
48310492
RH
6188 $as_echo_n "(cached) " >&6
6189else
6190 if test -n "$AR"; then
6191 ac_cv_prog_AR="$AR" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6200 ac_cv_prog_AR="${ac_tool_prefix}ar"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204done
6205 done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210AR=$ac_cv_prog_AR
6211if test -n "$AR"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6213$as_echo "$AR" >&6; }
6214else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219
6220fi
6221if test -z "$ac_cv_prog_AR"; then
6222 ac_ct_AR=$AR
6223 # Extract the first word of "ar", so it can be a program name with args.
6224set dummy ar; ac_word=$2
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6227if ${ac_cv_prog_ac_ct_AR+:} false; then :
48310492
RH
6228 $as_echo_n "(cached) " >&6
6229else
6230 if test -n "$ac_ct_AR"; then
6231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6240 ac_cv_prog_ac_ct_AR="ar"
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6243 fi
6244done
6245 done
6246IFS=$as_save_IFS
6247
6248fi
6249fi
6250ac_ct_AR=$ac_cv_prog_ac_ct_AR
6251if test -n "$ac_ct_AR"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6253$as_echo "$ac_ct_AR" >&6; }
6254else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256$as_echo "no" >&6; }
6257fi
6258
6259 if test "x$ac_ct_AR" = x; then
6260 AR="false"
6261 else
6262 case $cross_compiling:$ac_tool_warned in
6263yes:)
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266ac_tool_warned=yes ;;
6267esac
6268 AR=$ac_ct_AR
6269 fi
6270else
6271 AR="$ac_cv_prog_AR"
6272fi
6273
6274test -z "$AR" && AR=ar
6275test -z "$AR_FLAGS" && AR_FLAGS=cru
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6289set dummy ${ac_tool_prefix}strip; ac_word=$2
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6292if ${ac_cv_prog_STRIP+:} false; then :
48310492
RH
6293 $as_echo_n "(cached) " >&6
6294else
6295 if test -n "$STRIP"; then
6296 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6305 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309done
6310 done
6311IFS=$as_save_IFS
6312
6313fi
6314fi
6315STRIP=$ac_cv_prog_STRIP
6316if test -n "$STRIP"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6318$as_echo "$STRIP" >&6; }
6319else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321$as_echo "no" >&6; }
6322fi
6323
6324
6325fi
6326if test -z "$ac_cv_prog_STRIP"; then
6327 ac_ct_STRIP=$STRIP
6328 # Extract the first word of "strip", so it can be a program name with args.
6329set dummy strip; ac_word=$2
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6332if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
48310492
RH
6333 $as_echo_n "(cached) " >&6
6334else
6335 if test -n "$ac_ct_STRIP"; then
6336 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6337else
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6345 ac_cv_prog_ac_ct_STRIP="strip"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349done
6350 done
6351IFS=$as_save_IFS
6352
6353fi
6354fi
6355ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6356if test -n "$ac_ct_STRIP"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6358$as_echo "$ac_ct_STRIP" >&6; }
6359else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361$as_echo "no" >&6; }
6362fi
6363
6364 if test "x$ac_ct_STRIP" = x; then
6365 STRIP=":"
6366 else
6367 case $cross_compiling:$ac_tool_warned in
6368yes:)
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371ac_tool_warned=yes ;;
6372esac
6373 STRIP=$ac_ct_STRIP
6374 fi
6375else
6376 STRIP="$ac_cv_prog_STRIP"
6377fi
6378
6379test -z "$STRIP" && STRIP=:
6380
6381
6382
6383
6384
6385
6386if test -n "$ac_tool_prefix"; then
6387 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6388set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6391if ${ac_cv_prog_RANLIB+:} false; then :
48310492
RH
6392 $as_echo_n "(cached) " >&6
6393else
6394 if test -n "$RANLIB"; then
6395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6404 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6407 fi
6408done
6409 done
6410IFS=$as_save_IFS
6411
6412fi
6413fi
6414RANLIB=$ac_cv_prog_RANLIB
6415if test -n "$RANLIB"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6417$as_echo "$RANLIB" >&6; }
6418else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422
6423
6424fi
6425if test -z "$ac_cv_prog_RANLIB"; then
6426 ac_ct_RANLIB=$RANLIB
6427 # Extract the first word of "ranlib", so it can be a program name with args.
6428set dummy ranlib; ac_word=$2
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6431if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
48310492
RH
6432 $as_echo_n "(cached) " >&6
6433else
6434 if test -n "$ac_ct_RANLIB"; then
6435 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6436else
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
6444 ac_cv_prog_ac_ct_RANLIB="ranlib"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448done
6449 done
6450IFS=$as_save_IFS
6451
6452fi
6453fi
6454ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6455if test -n "$ac_ct_RANLIB"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6457$as_echo "$ac_ct_RANLIB" >&6; }
6458else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
6461fi
6462
6463 if test "x$ac_ct_RANLIB" = x; then
6464 RANLIB=":"
6465 else
6466 case $cross_compiling:$ac_tool_warned in
6467yes:)
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470ac_tool_warned=yes ;;
6471esac
6472 RANLIB=$ac_ct_RANLIB
6473 fi
6474else
6475 RANLIB="$ac_cv_prog_RANLIB"
6476fi
6477
6478test -z "$RANLIB" && RANLIB=:
6479
6480
6481
6482
6483
6484
6485# Determine commands to create old-style static archives.
6486old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6487old_postinstall_cmds='chmod 644 $oldlib'
6488old_postuninstall_cmds=
6489
6490if test -n "$RANLIB"; then
6491 case $host_os in
6492 openbsd*)
6493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6494 ;;
6495 *)
6496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6497 ;;
6498 esac
6499 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6500fi
6501
6502case $host_os in
6503 darwin*)
6504 lock_old_archive_extraction=yes ;;
6505 *)
6506 lock_old_archive_extraction=no ;;
6507esac
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
6544
6545
6546
6547# If no C compiler was specified, use CC.
6548LTCC=${LTCC-"$CC"}
6549
6550# If no C compiler flags were specified, use CFLAGS.
6551LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6552
6553# Allow CC to be a program name with arguments.
6554compiler=$CC
6555
6556
6557# Check for command to grab the raw symbol name followed by C symbol from nm.
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6559$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6560if ${lt_cv_sys_global_symbol_pipe+:} false; then :
48310492
RH
6561 $as_echo_n "(cached) " >&6
6562else
6563
6564# These are sane defaults that work on at least a few old systems.
6565# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6566
6567# Character class describing NM global symbol codes.
6568symcode='[BCDEGRST]'
6569
6570# Regexp to match symbols that can be accessed directly from C.
6571sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6572
6573# Define system-specific variables.
6574case $host_os in
6575aix*)
6576 symcode='[BCDT]'
6577 ;;
6578cygwin* | mingw* | pw32* | cegcc*)
6579 symcode='[ABCDGISTW]'
6580 ;;
6581hpux*)
6582 if test "$host_cpu" = ia64; then
6583 symcode='[ABCDEGRST]'
6584 fi
6585 ;;
6586irix* | nonstopux*)
6587 symcode='[BCDEGRST]'
6588 ;;
6589osf*)
6590 symcode='[BCDEGQRST]'
6591 ;;
6592solaris*)
6593 symcode='[BDRT]'
6594 ;;
6595sco3.2v5*)
6596 symcode='[DT]'
6597 ;;
6598sysv4.2uw2*)
6599 symcode='[DT]'
6600 ;;
6601sysv5* | sco5v6* | unixware* | OpenUNIX*)
6602 symcode='[ABDT]'
6603 ;;
6604sysv4)
6605 symcode='[DFNSTU]'
6606 ;;
6607esac
6608
6609# If we're using GNU nm, then use its standard symbol codes.
6610case `$NM -V 2>&1` in
6611*GNU* | *'with BFD'*)
6612 symcode='[ABCDGIRSTW]' ;;
6613esac
6614
6615# Transform an extracted symbol line into a proper C declaration.
6616# Some systems (esp. on ia64) link data and code symbols differently,
6617# so use this general approach.
6618lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6619
6620# Transform an extracted symbol line into symbol name and symbol address
6621lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6622lt_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'"
6623
6624# Handle CRLF in mingw tool chain
6625opt_cr=
6626case $build_os in
6627mingw*)
6628 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6629 ;;
6630esac
6631
6632# Try without a prefix underscore, then with it.
6633for ac_symprfx in "" "_"; do
6634
6635 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6636 symxfrm="\\1 $ac_symprfx\\2 \\2"
6637
6638 # Write the raw and C identifiers.
6639 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6640 # Fake it for dumpbin and say T for any non-static function
6641 # and D for any global variable.
6642 # Also find C++ and __fastcall symbols from MSVC++,
6643 # which start with @ or ?.
6644 lt_cv_sys_global_symbol_pipe="$AWK '"\
6645" {last_section=section; section=\$ 3};"\
6646" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6647" \$ 0!~/External *\|/{next};"\
6648" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6649" {if(hide[section]) next};"\
6650" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6651" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6652" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6653" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6654" ' prfx=^$ac_symprfx"
6655 else
6656 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6657 fi
6658
6659 # Check to see that the pipe works correctly.
6660 pipe_works=no
6661
6662 rm -f conftest*
6663 cat > conftest.$ac_ext <<_LT_EOF
6664#ifdef __cplusplus
6665extern "C" {
6666#endif
6667char nm_test_var;
6668void nm_test_func(void);
6669void nm_test_func(void){}
6670#ifdef __cplusplus
6671}
6672#endif
6673int main(){nm_test_var='a';nm_test_func();return(0);}
6674_LT_EOF
6675
6676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6677 (eval $ac_compile) 2>&5
6678 ac_status=$?
6679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6680 test $ac_status = 0; }; then
6681 # Now try to grab the symbols.
6682 nlist=conftest.nm
6683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6684 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6685 ac_status=$?
6686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687 test $ac_status = 0; } && test -s "$nlist"; then
6688 # Try sorting and uniquifying the output.
6689 if sort "$nlist" | uniq > "$nlist"T; then
6690 mv -f "$nlist"T "$nlist"
6691 else
6692 rm -f "$nlist"T
6693 fi
6694
6695 # Make sure that we snagged all the symbols we need.
6696 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6697 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6698 cat <<_LT_EOF > conftest.$ac_ext
6699#ifdef __cplusplus
6700extern "C" {
6701#endif
6702
6703_LT_EOF
6704 # Now generate the symbol file.
6705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6706
6707 cat <<_LT_EOF >> conftest.$ac_ext
6708
6709/* The mapping between symbol names and symbols. */
6710const struct {
6711 const char *name;
6712 void *address;
6713}
6714lt__PROGRAM__LTX_preloaded_symbols[] =
6715{
6716 { "@PROGRAM@", (void *) 0 },
6717_LT_EOF
6718 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6719 cat <<\_LT_EOF >> conftest.$ac_ext
6720 {0, (void *) 0}
6721};
6722
6723/* This works around a problem in FreeBSD linker */
6724#ifdef FREEBSD_WORKAROUND
6725static const void *lt_preloaded_setup() {
6726 return lt__PROGRAM__LTX_preloaded_symbols;
6727}
6728#endif
6729
6730#ifdef __cplusplus
6731}
6732#endif
6733_LT_EOF
6734 # Now try linking the two files.
6735 mv conftest.$ac_objext conftstm.$ac_objext
6736 lt_save_LIBS="$LIBS"
6737 lt_save_CFLAGS="$CFLAGS"
6738 LIBS="conftstm.$ac_objext"
6739 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6741 (eval $ac_link) 2>&5
6742 ac_status=$?
6743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6745 pipe_works=yes
6746 fi
6747 LIBS="$lt_save_LIBS"
6748 CFLAGS="$lt_save_CFLAGS"
6749 else
6750 echo "cannot find nm_test_func in $nlist" >&5
6751 fi
6752 else
6753 echo "cannot find nm_test_var in $nlist" >&5
6754 fi
6755 else
6756 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6757 fi
6758 else
6759 echo "$progname: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6761 fi
6762 rm -rf conftest* conftst*
6763
6764 # Do not use the global_symbol_pipe unless it works.
6765 if test "$pipe_works" = yes; then
6766 break
6767 else
6768 lt_cv_sys_global_symbol_pipe=
6769 fi
6770done
6771
6772fi
6773
6774if test -z "$lt_cv_sys_global_symbol_pipe"; then
6775 lt_cv_sys_global_symbol_to_cdecl=
6776fi
6777if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6779$as_echo "failed" >&6; }
6780else
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6782$as_echo "ok" >&6; }
6783fi
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807# Check whether --enable-libtool-lock was given.
6808if test "${enable_libtool_lock+set}" = set; then :
6809 enableval=$enable_libtool_lock;
6810fi
6811
6812test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6813
6814# Some flags need to be propagated to the compiler or linker for good
6815# libtool support.
6816case $host in
6817ia64-*-hpux*)
6818 # Find out which ABI we are using.
6819 echo 'int i;' > conftest.$ac_ext
6820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6821 (eval $ac_compile) 2>&5
6822 ac_status=$?
6823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6824 test $ac_status = 0; }; then
6825 case `/usr/bin/file conftest.$ac_objext` in
6826 *ELF-32*)
6827 HPUX_IA64_MODE="32"
6828 ;;
6829 *ELF-64*)
6830 HPUX_IA64_MODE="64"
6831 ;;
6832 esac
6833 fi
6834 rm -rf conftest*
6835 ;;
6836*-*-irix6*)
6837 # Find out which ABI we are using.
6838 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840 (eval $ac_compile) 2>&5
6841 ac_status=$?
6842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }; then
6844 if test "$lt_cv_prog_gnu_ld" = yes; then
6845 case `/usr/bin/file conftest.$ac_objext` in
6846 *32-bit*)
6847 LD="${LD-ld} -melf32bsmip"
6848 ;;
6849 *N32*)
6850 LD="${LD-ld} -melf32bmipn32"
6851 ;;
6852 *64-bit*)
6853 LD="${LD-ld} -melf64bmip"
6854 ;;
6855 esac
6856 else
6857 case `/usr/bin/file conftest.$ac_objext` in
6858 *32-bit*)
6859 LD="${LD-ld} -32"
6860 ;;
6861 *N32*)
6862 LD="${LD-ld} -n32"
6863 ;;
6864 *64-bit*)
6865 LD="${LD-ld} -64"
6866 ;;
6867 esac
6868 fi
6869 fi
6870 rm -rf conftest*
6871 ;;
6872
3cbe17f7 6873x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
48310492
RH
6874s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6875 # Find out which ABI we are using.
6876 echo 'int i;' > conftest.$ac_ext
6877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6878 (eval $ac_compile) 2>&5
6879 ac_status=$?
6880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6881 test $ac_status = 0; }; then
6882 case `/usr/bin/file conftest.o` in
6883 *32-bit*)
6884 case $host in
6885 x86_64-*kfreebsd*-gnu)
6886 LD="${LD-ld} -m elf_i386_fbsd"
6887 ;;
6888 x86_64-*linux*)
e6d5f8c9
L
6889 case `/usr/bin/file conftest.o` in
6890 *x86-64*)
6891 LD="${LD-ld} -m elf32_x86_64"
6892 ;;
6893 *)
6894 LD="${LD-ld} -m elf_i386"
6895 ;;
6896 esac
48310492 6897 ;;
3cbe17f7
AM
6898 powerpc64le-*linux*)
6899 LD="${LD-ld} -m elf32lppclinux"
6900 ;;
6901 powerpc64-*linux*)
48310492
RH
6902 LD="${LD-ld} -m elf32ppclinux"
6903 ;;
6904 s390x-*linux*)
6905 LD="${LD-ld} -m elf_s390"
6906 ;;
6907 sparc64-*linux*)
6908 LD="${LD-ld} -m elf32_sparc"
6909 ;;
6910 esac
6911 ;;
6912 *64-bit*)
6913 case $host in
6914 x86_64-*kfreebsd*-gnu)
6915 LD="${LD-ld} -m elf_x86_64_fbsd"
6916 ;;
6917 x86_64-*linux*)
6918 LD="${LD-ld} -m elf_x86_64"
6919 ;;
3cbe17f7
AM
6920 powerpcle-*linux*)
6921 LD="${LD-ld} -m elf64lppc"
6922 ;;
6923 powerpc-*linux*)
48310492
RH
6924 LD="${LD-ld} -m elf64ppc"
6925 ;;
6926 s390*-*linux*|s390*-*tpf*)
6927 LD="${LD-ld} -m elf64_s390"
6928 ;;
6929 sparc*-*linux*)
6930 LD="${LD-ld} -m elf64_sparc"
6931 ;;
6932 esac
6933 ;;
6934 esac
6935 fi
6936 rm -rf conftest*
6937 ;;
6938
6939*-*-sco3.2v5*)
6940 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6941 SAVE_CFLAGS="$CFLAGS"
6942 CFLAGS="$CFLAGS -belf"
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6944$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 6945if ${lt_cv_cc_needs_belf+:} false; then :
48310492
RH
6946 $as_echo_n "(cached) " >&6
6947else
6948 ac_ext=c
6949ac_cpp='$CPP $CPPFLAGS'
6950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955/* end confdefs.h. */
6956
6957int
6958main ()
6959{
6960
6961 ;
6962 return 0;
6963}
6964_ACEOF
6965if ac_fn_c_try_link "$LINENO"; then :
6966 lt_cv_cc_needs_belf=yes
6967else
6968 lt_cv_cc_needs_belf=no
6969fi
6970rm -f core conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6972 ac_ext=c
6973ac_cpp='$CPP $CPPFLAGS'
6974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976ac_compiler_gnu=$ac_cv_c_compiler_gnu
6977
6978fi
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6980$as_echo "$lt_cv_cc_needs_belf" >&6; }
6981 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6982 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6983 CFLAGS="$SAVE_CFLAGS"
6984 fi
6985 ;;
6986sparc*-*solaris*)
6987 # Find out which ABI we are using.
6988 echo 'int i;' > conftest.$ac_ext
6989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6990 (eval $ac_compile) 2>&5
6991 ac_status=$?
6992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6993 test $ac_status = 0; }; then
6994 case `/usr/bin/file conftest.o` in
6995 *64-bit*)
6996 case $lt_cv_prog_gnu_ld in
6997 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6998 *)
6999 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7000 LD="${LD-ld} -64"
7001 fi
7002 ;;
7003 esac
7004 ;;
7005 esac
7006 fi
7007 rm -rf conftest*
7008 ;;
7009esac
7010
7011need_locks="$enable_libtool_lock"
7012
7013
7014 case $host_os in
7015 rhapsody* | darwin*)
7016 if test -n "$ac_tool_prefix"; then
7017 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7018set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7021if ${ac_cv_prog_DSYMUTIL+:} false; then :
48310492
RH
7022 $as_echo_n "(cached) " >&6
7023else
7024 if test -n "$DSYMUTIL"; then
7025 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7034 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038done
7039 done
7040IFS=$as_save_IFS
7041
7042fi
7043fi
7044DSYMUTIL=$ac_cv_prog_DSYMUTIL
7045if test -n "$DSYMUTIL"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7047$as_echo "$DSYMUTIL" >&6; }
7048else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050$as_echo "no" >&6; }
7051fi
7052
7053
7054fi
7055if test -z "$ac_cv_prog_DSYMUTIL"; then
7056 ac_ct_DSYMUTIL=$DSYMUTIL
7057 # Extract the first word of "dsymutil", so it can be a program name with args.
7058set dummy dsymutil; ac_word=$2
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7061if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
48310492
RH
7062 $as_echo_n "(cached) " >&6
7063else
7064 if test -n "$ac_ct_DSYMUTIL"; then
7065 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7074 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078done
7079 done
7080IFS=$as_save_IFS
7081
7082fi
7083fi
7084ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7085if test -n "$ac_ct_DSYMUTIL"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7087$as_echo "$ac_ct_DSYMUTIL" >&6; }
7088else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090$as_echo "no" >&6; }
7091fi
7092
7093 if test "x$ac_ct_DSYMUTIL" = x; then
7094 DSYMUTIL=":"
7095 else
7096 case $cross_compiling:$ac_tool_warned in
7097yes:)
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100ac_tool_warned=yes ;;
7101esac
7102 DSYMUTIL=$ac_ct_DSYMUTIL
7103 fi
7104else
7105 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7106fi
7107
7108 if test -n "$ac_tool_prefix"; then
7109 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7110set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7113if ${ac_cv_prog_NMEDIT+:} false; then :
48310492
RH
7114 $as_echo_n "(cached) " >&6
7115else
7116 if test -n "$NMEDIT"; then
7117 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7126 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130done
7131 done
7132IFS=$as_save_IFS
7133
7134fi
7135fi
7136NMEDIT=$ac_cv_prog_NMEDIT
7137if test -n "$NMEDIT"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7139$as_echo "$NMEDIT" >&6; }
7140else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145
7146fi
7147if test -z "$ac_cv_prog_NMEDIT"; then
7148 ac_ct_NMEDIT=$NMEDIT
7149 # Extract the first word of "nmedit", so it can be a program name with args.
7150set dummy nmedit; ac_word=$2
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7153if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
48310492
RH
7154 $as_echo_n "(cached) " >&6
7155else
7156 if test -n "$ac_ct_NMEDIT"; then
7157 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7166 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170done
7171 done
7172IFS=$as_save_IFS
7173
7174fi
7175fi
7176ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7177if test -n "$ac_ct_NMEDIT"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7179$as_echo "$ac_ct_NMEDIT" >&6; }
7180else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182$as_echo "no" >&6; }
7183fi
7184
7185 if test "x$ac_ct_NMEDIT" = x; then
7186 NMEDIT=":"
7187 else
7188 case $cross_compiling:$ac_tool_warned in
7189yes:)
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192ac_tool_warned=yes ;;
7193esac
7194 NMEDIT=$ac_ct_NMEDIT
7195 fi
7196else
7197 NMEDIT="$ac_cv_prog_NMEDIT"
7198fi
7199
7200 if test -n "$ac_tool_prefix"; then
7201 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7202set dummy ${ac_tool_prefix}lipo; ac_word=$2
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7205if ${ac_cv_prog_LIPO+:} false; then :
48310492
RH
7206 $as_echo_n "(cached) " >&6
7207else
7208 if test -n "$LIPO"; then
7209 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7210else
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7218 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 break 2
7221 fi
7222done
7223 done
7224IFS=$as_save_IFS
7225
7226fi
7227fi
7228LIPO=$ac_cv_prog_LIPO
7229if test -n "$LIPO"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7231$as_echo "$LIPO" >&6; }
7232else
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234$as_echo "no" >&6; }
7235fi
7236
7237
7238fi
7239if test -z "$ac_cv_prog_LIPO"; then
7240 ac_ct_LIPO=$LIPO
7241 # Extract the first word of "lipo", so it can be a program name with args.
7242set dummy lipo; ac_word=$2
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7245if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
48310492
RH
7246 $as_echo_n "(cached) " >&6
7247else
7248 if test -n "$ac_ct_LIPO"; then
7249 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7258 ac_cv_prog_ac_ct_LIPO="lipo"
7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 break 2
7261 fi
7262done
7263 done
7264IFS=$as_save_IFS
7265
7266fi
7267fi
7268ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7269if test -n "$ac_ct_LIPO"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7271$as_echo "$ac_ct_LIPO" >&6; }
7272else
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274$as_echo "no" >&6; }
7275fi
7276
7277 if test "x$ac_ct_LIPO" = x; then
7278 LIPO=":"
7279 else
7280 case $cross_compiling:$ac_tool_warned in
7281yes:)
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284ac_tool_warned=yes ;;
7285esac
7286 LIPO=$ac_ct_LIPO
7287 fi
7288else
7289 LIPO="$ac_cv_prog_LIPO"
7290fi
7291
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7294set dummy ${ac_tool_prefix}otool; ac_word=$2
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7297if ${ac_cv_prog_OTOOL+:} false; then :
48310492
RH
7298 $as_echo_n "(cached) " >&6
7299else
7300 if test -n "$OTOOL"; then
7301 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7310 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7313 fi
7314done
7315 done
7316IFS=$as_save_IFS
7317
7318fi
7319fi
7320OTOOL=$ac_cv_prog_OTOOL
7321if test -n "$OTOOL"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7323$as_echo "$OTOOL" >&6; }
7324else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
7328
7329
7330fi
7331if test -z "$ac_cv_prog_OTOOL"; then
7332 ac_ct_OTOOL=$OTOOL
7333 # Extract the first word of "otool", so it can be a program name with args.
7334set dummy otool; ac_word=$2
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7337if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
48310492
RH
7338 $as_echo_n "(cached) " >&6
7339else
7340 if test -n "$ac_ct_OTOOL"; then
7341 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7350 ac_cv_prog_ac_ct_OTOOL="otool"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354done
7355 done
7356IFS=$as_save_IFS
7357
7358fi
7359fi
7360ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7361if test -n "$ac_ct_OTOOL"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7363$as_echo "$ac_ct_OTOOL" >&6; }
7364else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366$as_echo "no" >&6; }
7367fi
7368
7369 if test "x$ac_ct_OTOOL" = x; then
7370 OTOOL=":"
7371 else
7372 case $cross_compiling:$ac_tool_warned in
7373yes:)
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376ac_tool_warned=yes ;;
7377esac
7378 OTOOL=$ac_ct_OTOOL
7379 fi
7380else
7381 OTOOL="$ac_cv_prog_OTOOL"
7382fi
7383
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7386set dummy ${ac_tool_prefix}otool64; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7389if ${ac_cv_prog_OTOOL64+:} false; then :
48310492
RH
7390 $as_echo_n "(cached) " >&6
7391else
7392 if test -n "$OTOOL64"; then
7393 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7402 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406done
7407 done
7408IFS=$as_save_IFS
7409
7410fi
7411fi
7412OTOOL64=$ac_cv_prog_OTOOL64
7413if test -n "$OTOOL64"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7415$as_echo "$OTOOL64" >&6; }
7416else
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421
7422fi
7423if test -z "$ac_cv_prog_OTOOL64"; then
7424 ac_ct_OTOOL64=$OTOOL64
7425 # Extract the first word of "otool64", so it can be a program name with args.
7426set dummy otool64; ac_word=$2
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7429if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
48310492
RH
7430 $as_echo_n "(cached) " >&6
7431else
7432 if test -n "$ac_ct_OTOOL64"; then
7433 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7434else
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48310492
RH
7442 ac_cv_prog_ac_ct_OTOOL64="otool64"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446done
7447 done
7448IFS=$as_save_IFS
7449
7450fi
7451fi
7452ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7453if test -n "$ac_ct_OTOOL64"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7455$as_echo "$ac_ct_OTOOL64" >&6; }
7456else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458$as_echo "no" >&6; }
7459fi
7460
7461 if test "x$ac_ct_OTOOL64" = x; then
7462 OTOOL64=":"
7463 else
7464 case $cross_compiling:$ac_tool_warned in
7465yes:)
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468ac_tool_warned=yes ;;
7469esac
7470 OTOOL64=$ac_ct_OTOOL64
7471 fi
7472else
7473 OTOOL64="$ac_cv_prog_OTOOL64"
7474fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7503$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7504if ${lt_cv_apple_cc_single_mod+:} false; then :
48310492
RH
7505 $as_echo_n "(cached) " >&6
7506else
7507 lt_cv_apple_cc_single_mod=no
7508 if test -z "${LT_MULTI_MODULE}"; then
7509 # By default we will add the -single_module flag. You can override
7510 # by either setting the environment variable LT_MULTI_MODULE
7511 # non-empty at configure time, or by adding -multi_module to the
7512 # link flags.
7513 rm -rf libconftest.dylib*
7514 echo "int foo(void){return 1;}" > conftest.c
7515 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7516-dynamiclib -Wl,-single_module conftest.c" >&5
7517 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7518 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7519 _lt_result=$?
7520 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7521 lt_cv_apple_cc_single_mod=yes
7522 else
7523 cat conftest.err >&5
7524 fi
7525 rm -rf libconftest.dylib*
7526 rm -f conftest.*
7527 fi
7528fi
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7530$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7532$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7533if ${lt_cv_ld_exported_symbols_list+:} false; then :
48310492
RH
7534 $as_echo_n "(cached) " >&6
7535else
7536 lt_cv_ld_exported_symbols_list=no
7537 save_LDFLAGS=$LDFLAGS
7538 echo "_main" > conftest.sym
7539 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541/* end confdefs.h. */
7542
7543int
7544main ()
7545{
7546
7547 ;
7548 return 0;
7549}
7550_ACEOF
7551if ac_fn_c_try_link "$LINENO"; then :
7552 lt_cv_ld_exported_symbols_list=yes
7553else
7554 lt_cv_ld_exported_symbols_list=no
7555fi
7556rm -f core conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LDFLAGS="$save_LDFLAGS"
7559
7560fi
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7562$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7564$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7565if ${lt_cv_ld_force_load+:} false; then :
48310492
RH
7566 $as_echo_n "(cached) " >&6
7567else
7568 lt_cv_ld_force_load=no
7569 cat > conftest.c << _LT_EOF
7570int forced_loaded() { return 2;}
7571_LT_EOF
7572 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7573 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7574 echo "$AR cru libconftest.a conftest.o" >&5
7575 $AR cru libconftest.a conftest.o 2>&5
7576 cat > conftest.c << _LT_EOF
7577int main() { return 0;}
7578_LT_EOF
7579 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7580 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7581 _lt_result=$?
7582 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7583 lt_cv_ld_force_load=yes
7584 else
7585 cat conftest.err >&5
7586 fi
7587 rm -f conftest.err libconftest.a conftest conftest.c
7588 rm -rf conftest.dSYM
7589
7590fi
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7592$as_echo "$lt_cv_ld_force_load" >&6; }
7593 case $host_os in
7594 rhapsody* | darwin1.[012])
7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7596 darwin1.*)
7597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7598 darwin*) # darwin 5.x on
7599 # if running on 10.5 or later, the deployment target defaults
7600 # to the OS version, if on x86, and 10.4, the deployment
7601 # target defaults to 10.4. Don't you love it?
7602 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7603 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7604 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 7605 10.[012][,.]*)
48310492
RH
7606 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7607 10.*)
7608 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7609 esac
7610 ;;
7611 esac
7612 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7613 _lt_dar_single_mod='$single_module'
7614 fi
7615 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7616 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7617 else
7618 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7619 fi
7620 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7621 _lt_dsymutil='~$DSYMUTIL $lib || :'
7622 else
7623 _lt_dsymutil=
7624 fi
7625 ;;
7626 esac
7627
7628ac_ext=c
7629ac_cpp='$CPP $CPPFLAGS'
7630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632ac_compiler_gnu=$ac_cv_c_compiler_gnu
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7634$as_echo_n "checking how to run the C preprocessor... " >&6; }
7635# On Suns, sometimes $CPP names a directory.
7636if test -n "$CPP" && test -d "$CPP"; then
7637 CPP=
7638fi
7639if test -z "$CPP"; then
22e05272 7640 if ${ac_cv_prog_CPP+:} false; then :
48310492
RH
7641 $as_echo_n "(cached) " >&6
7642else
7643 # Double quotes because CPP needs to be expanded
7644 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7645 do
7646 ac_preproc_ok=false
7647for ac_c_preproc_warn_flag in '' yes
7648do
7649 # Use a header file that comes with gcc, so configuring glibc
7650 # with a fresh cross-compiler works.
7651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7652 # <limits.h> exists even on freestanding compilers.
7653 # On the NeXT, cc -E runs the code through the compiler's parser,
7654 # not just through cpp. "Syntax error" is here to catch this case.
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h. */
7657#ifdef __STDC__
7658# include <limits.h>
7659#else
7660# include <assert.h>
7661#endif
7662 Syntax error
7663_ACEOF
7664if ac_fn_c_try_cpp "$LINENO"; then :
7665
7666else
7667 # Broken: fails on valid input.
7668continue
7669fi
22e05272 7670rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7671
7672 # OK, works on sane cases. Now check whether nonexistent headers
7673 # can be detected and how.
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h. */
7676#include <ac_nonexistent.h>
7677_ACEOF
7678if ac_fn_c_try_cpp "$LINENO"; then :
7679 # Broken: success on invalid input.
7680continue
7681else
7682 # Passes both tests.
7683ac_preproc_ok=:
7684break
7685fi
22e05272 7686rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7687
7688done
7689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7690rm -f conftest.i conftest.err conftest.$ac_ext
48310492
RH
7691if $ac_preproc_ok; then :
7692 break
7693fi
7694
7695 done
7696 ac_cv_prog_CPP=$CPP
7697
7698fi
7699 CPP=$ac_cv_prog_CPP
7700else
7701 ac_cv_prog_CPP=$CPP
7702fi
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7704$as_echo "$CPP" >&6; }
7705ac_preproc_ok=false
7706for ac_c_preproc_warn_flag in '' yes
7707do
7708 # Use a header file that comes with gcc, so configuring glibc
7709 # with a fresh cross-compiler works.
7710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7711 # <limits.h> exists even on freestanding compilers.
7712 # On the NeXT, cc -E runs the code through the compiler's parser,
7713 # not just through cpp. "Syntax error" is here to catch this case.
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715/* end confdefs.h. */
7716#ifdef __STDC__
7717# include <limits.h>
7718#else
7719# include <assert.h>
7720#endif
7721 Syntax error
7722_ACEOF
7723if ac_fn_c_try_cpp "$LINENO"; then :
7724
7725else
7726 # Broken: fails on valid input.
7727continue
7728fi
22e05272 7729rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7730
7731 # OK, works on sane cases. Now check whether nonexistent headers
7732 # can be detected and how.
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734/* end confdefs.h. */
7735#include <ac_nonexistent.h>
7736_ACEOF
7737if ac_fn_c_try_cpp "$LINENO"; then :
7738 # Broken: success on invalid input.
7739continue
7740else
7741 # Passes both tests.
7742ac_preproc_ok=:
7743break
7744fi
22e05272 7745rm -f conftest.err conftest.i conftest.$ac_ext
48310492
RH
7746
7747done
7748# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7749rm -f conftest.i conftest.err conftest.$ac_ext
48310492
RH
7750if $ac_preproc_ok; then :
7751
7752else
7753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
7755as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7756See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
7757fi
7758
7759ac_ext=c
7760ac_cpp='$CPP $CPPFLAGS'
7761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764
7765
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7767$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 7768if ${ac_cv_header_stdc+:} false; then :
48310492
RH
7769 $as_echo_n "(cached) " >&6
7770else
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h. */
7773#include <stdlib.h>
7774#include <stdarg.h>
7775#include <string.h>
7776#include <float.h>
7777
7778int
7779main ()
7780{
7781
7782 ;
7783 return 0;
7784}
7785_ACEOF
7786if ac_fn_c_try_compile "$LINENO"; then :
7787 ac_cv_header_stdc=yes
7788else
7789 ac_cv_header_stdc=no
7790fi
7791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792
7793if test $ac_cv_header_stdc = yes; then
7794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h. */
7797#include <string.h>
7798
7799_ACEOF
7800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7801 $EGREP "memchr" >/dev/null 2>&1; then :
7802
7803else
7804 ac_cv_header_stdc=no
7805fi
7806rm -f conftest*
7807
7808fi
7809
7810if test $ac_cv_header_stdc = yes; then
7811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h. */
7814#include <stdlib.h>
7815
7816_ACEOF
7817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "free" >/dev/null 2>&1; then :
7819
7820else
7821 ac_cv_header_stdc=no
7822fi
7823rm -f conftest*
7824
7825fi
7826
7827if test $ac_cv_header_stdc = yes; then
7828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7829 if test "$cross_compiling" = yes; then :
7830 :
7831else
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h. */
7834#include <ctype.h>
7835#include <stdlib.h>
7836#if ((' ' & 0x0FF) == 0x020)
7837# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7838# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7839#else
7840# define ISLOWER(c) \
7841 (('a' <= (c) && (c) <= 'i') \
7842 || ('j' <= (c) && (c) <= 'r') \
7843 || ('s' <= (c) && (c) <= 'z'))
7844# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7845#endif
7846
7847#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7848int
7849main ()
7850{
7851 int i;
7852 for (i = 0; i < 256; i++)
7853 if (XOR (islower (i), ISLOWER (i))
7854 || toupper (i) != TOUPPER (i))
7855 return 2;
7856 return 0;
7857}
7858_ACEOF
7859if ac_fn_c_try_run "$LINENO"; then :
7860
7861else
7862 ac_cv_header_stdc=no
7863fi
7864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7865 conftest.$ac_objext conftest.beam conftest.$ac_ext
7866fi
7867
7868fi
7869fi
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7871$as_echo "$ac_cv_header_stdc" >&6; }
7872if test $ac_cv_header_stdc = yes; then
7873
7874$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7875
7876fi
7877
7878# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7879for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7880 inttypes.h stdint.h unistd.h
7881do :
7882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7883ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7884"
22e05272 7885if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
48310492
RH
7886 cat >>confdefs.h <<_ACEOF
7887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7888_ACEOF
7889
7890fi
7891
7892done
7893
7894
7895for ac_header in dlfcn.h
7896do :
7897 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7898"
22e05272 7899if test "x$ac_cv_header_dlfcn_h" = xyes; then :
48310492
RH
7900 cat >>confdefs.h <<_ACEOF
7901#define HAVE_DLFCN_H 1
7902_ACEOF
7903
7904fi
7905
7906done
7907
7908
7909
7910
7911
7912# Set options
7913
7914
7915
7916 enable_dlopen=no
7917
7918
7919 enable_win32_dll=no
7920
7921
7922 # Check whether --enable-shared was given.
7923if test "${enable_shared+set}" = set; then :
7924 enableval=$enable_shared; p=${PACKAGE-default}
7925 case $enableval in
7926 yes) enable_shared=yes ;;
7927 no) enable_shared=no ;;
7928 *)
7929 enable_shared=no
7930 # Look at the argument we got. We use all the common list separators.
7931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7932 for pkg in $enableval; do
7933 IFS="$lt_save_ifs"
7934 if test "X$pkg" = "X$p"; then
7935 enable_shared=yes
7936 fi
7937 done
7938 IFS="$lt_save_ifs"
7939 ;;
7940 esac
7941else
7942 enable_shared=yes
7943fi
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953 # Check whether --enable-static was given.
7954if test "${enable_static+set}" = set; then :
7955 enableval=$enable_static; p=${PACKAGE-default}
7956 case $enableval in
7957 yes) enable_static=yes ;;
7958 no) enable_static=no ;;
7959 *)
7960 enable_static=no
7961 # Look at the argument we got. We use all the common list separators.
7962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7963 for pkg in $enableval; do
7964 IFS="$lt_save_ifs"
7965 if test "X$pkg" = "X$p"; then
7966 enable_static=yes
7967 fi
7968 done
7969 IFS="$lt_save_ifs"
7970 ;;
7971 esac
7972else
7973 enable_static=yes
7974fi
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985# Check whether --with-pic was given.
7986if test "${with_pic+set}" = set; then :
7987 withval=$with_pic; pic_mode="$withval"
7988else
7989 pic_mode=default
7990fi
7991
7992
7993test -z "$pic_mode" && pic_mode=default
7994
7995
7996
7997
7998
7999
8000
8001 # Check whether --enable-fast-install was given.
8002if test "${enable_fast_install+set}" = set; then :
8003 enableval=$enable_fast_install; p=${PACKAGE-default}
8004 case $enableval in
8005 yes) enable_fast_install=yes ;;
8006 no) enable_fast_install=no ;;
8007 *)
8008 enable_fast_install=no
8009 # Look at the argument we got. We use all the common list separators.
8010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8011 for pkg in $enableval; do
8012 IFS="$lt_save_ifs"
8013 if test "X$pkg" = "X$p"; then
8014 enable_fast_install=yes
8015 fi
8016 done
8017 IFS="$lt_save_ifs"
8018 ;;
8019 esac
8020else
8021 enable_fast_install=yes
8022fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034# This can be used to rebuild libtool when needed
8035LIBTOOL_DEPS="$ltmain"
8036
8037# Always use our own libtool.
8038LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065test -z "$LN_S" && LN_S="ln -s"
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080if test -n "${ZSH_VERSION+set}" ; then
8081 setopt NO_GLOB_SUBST
8082fi
8083
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8085$as_echo_n "checking for objdir... " >&6; }
22e05272 8086if ${lt_cv_objdir+:} false; then :
48310492
RH
8087 $as_echo_n "(cached) " >&6
8088else
8089 rm -f .libs 2>/dev/null
8090mkdir .libs 2>/dev/null
8091if test -d .libs; then
8092 lt_cv_objdir=.libs
8093else
8094 # MS-DOS does not allow filenames that begin with a dot.
8095 lt_cv_objdir=_libs
8096fi
8097rmdir .libs 2>/dev/null
8098fi
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8100$as_echo "$lt_cv_objdir" >&6; }
8101objdir=$lt_cv_objdir
8102
8103
8104
8105
8106
8107cat >>confdefs.h <<_ACEOF
8108#define LT_OBJDIR "$lt_cv_objdir/"
8109_ACEOF
8110
8111
8112
8113
8114case $host_os in
8115aix3*)
8116 # AIX sometimes has problems with the GCC collect2 program. For some
8117 # reason, if we set the COLLECT_NAMES environment variable, the problems
8118 # vanish in a puff of smoke.
8119 if test "X${COLLECT_NAMES+set}" != Xset; then
8120 COLLECT_NAMES=
8121 export COLLECT_NAMES
8122 fi
8123 ;;
8124esac
8125
8126# Global variables:
8127ofile=libtool
8128can_build_shared=yes
8129
8130# All known linkers require a `.a' archive for static linking (except MSVC,
8131# which needs '.lib').
8132libext=a
8133
8134with_gnu_ld="$lt_cv_prog_gnu_ld"
8135
8136old_CC="$CC"
8137old_CFLAGS="$CFLAGS"
8138
8139# Set sane defaults for various variables
8140test -z "$CC" && CC=cc
8141test -z "$LTCC" && LTCC=$CC
8142test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8143test -z "$LD" && LD=ld
8144test -z "$ac_objext" && ac_objext=o
8145
8146for cc_temp in $compiler""; do
8147 case $cc_temp in
8148 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8149 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8150 \-*) ;;
8151 *) break;;
8152 esac
8153done
8154cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8155
8156
8157# Only perform the check for file, if the check method requires it
8158test -z "$MAGIC_CMD" && MAGIC_CMD=file
8159case $deplibs_check_method in
8160file_magic*)
8161 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8163$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8164if ${lt_cv_path_MAGIC_CMD+:} false; then :
48310492
RH
8165 $as_echo_n "(cached) " >&6
8166else
8167 case $MAGIC_CMD in
8168[\\/*] | ?:[\\/]*)
8169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8170 ;;
8171*)
8172 lt_save_MAGIC_CMD="$MAGIC_CMD"
8173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8174 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8175 for ac_dir in $ac_dummy; do
8176 IFS="$lt_save_ifs"
8177 test -z "$ac_dir" && ac_dir=.
8178 if test -f $ac_dir/${ac_tool_prefix}file; then
8179 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8180 if test -n "$file_magic_test_file"; then
8181 case $deplibs_check_method in
8182 "file_magic "*)
8183 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8186 $EGREP "$file_magic_regex" > /dev/null; then
8187 :
8188 else
8189 cat <<_LT_EOF 1>&2
8190
8191*** Warning: the command libtool uses to detect shared libraries,
8192*** $file_magic_cmd, produces output that libtool cannot recognize.
8193*** The result is that libtool may fail to recognize shared libraries
8194*** as such. This will affect the creation of libtool libraries that
8195*** depend on shared libraries, but programs linked with such libtool
8196*** libraries will work regardless of this problem. Nevertheless, you
8197*** may want to report the problem to your system manager and/or to
8198*** bug-libtool@gnu.org
8199
8200_LT_EOF
8201 fi ;;
8202 esac
8203 fi
8204 break
8205 fi
8206 done
8207 IFS="$lt_save_ifs"
8208 MAGIC_CMD="$lt_save_MAGIC_CMD"
8209 ;;
8210esac
8211fi
8212
8213MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8214if test -n "$MAGIC_CMD"; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8216$as_echo "$MAGIC_CMD" >&6; }
8217else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219$as_echo "no" >&6; }
8220fi
8221
8222
8223
8224
8225
8226if test -z "$lt_cv_path_MAGIC_CMD"; then
8227 if test -n "$ac_tool_prefix"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8229$as_echo_n "checking for file... " >&6; }
22e05272 8230if ${lt_cv_path_MAGIC_CMD+:} false; then :
48310492
RH
8231 $as_echo_n "(cached) " >&6
8232else
8233 case $MAGIC_CMD in
8234[\\/*] | ?:[\\/]*)
8235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8236 ;;
8237*)
8238 lt_save_MAGIC_CMD="$MAGIC_CMD"
8239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8241 for ac_dir in $ac_dummy; do
8242 IFS="$lt_save_ifs"
8243 test -z "$ac_dir" && ac_dir=.
8244 if test -f $ac_dir/file; then
8245 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8246 if test -n "$file_magic_test_file"; then
8247 case $deplibs_check_method in
8248 "file_magic "*)
8249 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8252 $EGREP "$file_magic_regex" > /dev/null; then
8253 :
8254 else
8255 cat <<_LT_EOF 1>&2
8256
8257*** Warning: the command libtool uses to detect shared libraries,
8258*** $file_magic_cmd, produces output that libtool cannot recognize.
8259*** The result is that libtool may fail to recognize shared libraries
8260*** as such. This will affect the creation of libtool libraries that
8261*** depend on shared libraries, but programs linked with such libtool
8262*** libraries will work regardless of this problem. Nevertheless, you
8263*** may want to report the problem to your system manager and/or to
8264*** bug-libtool@gnu.org
8265
8266_LT_EOF
8267 fi ;;
8268 esac
8269 fi
8270 break
8271 fi
8272 done
8273 IFS="$lt_save_ifs"
8274 MAGIC_CMD="$lt_save_MAGIC_CMD"
8275 ;;
8276esac
8277fi
8278
8279MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8280if test -n "$MAGIC_CMD"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8282$as_echo "$MAGIC_CMD" >&6; }
8283else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285$as_echo "no" >&6; }
8286fi
8287
8288
8289 else
8290 MAGIC_CMD=:
8291 fi
8292fi
8293
8294 fi
8295 ;;
8296esac
8297
8298# Use C for the default configuration in the libtool script
8299
8300lt_save_CC="$CC"
8301ac_ext=c
8302ac_cpp='$CPP $CPPFLAGS'
8303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8305ac_compiler_gnu=$ac_cv_c_compiler_gnu
8306
8307
8308# Source file extension for C test sources.
8309ac_ext=c
8310
8311# Object file extension for compiled C test sources.
8312objext=o
8313objext=$objext
8314
8315# Code to be used in simple compile tests
8316lt_simple_compile_test_code="int some_variable = 0;"
8317
8318# Code to be used in simple link tests
8319lt_simple_link_test_code='int main(){return(0);}'
8320
8321
8322
8323
8324
8325
8326
8327# If no C compiler was specified, use CC.
8328LTCC=${LTCC-"$CC"}
8329
8330# If no C compiler flags were specified, use CFLAGS.
8331LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8332
8333# Allow CC to be a program name with arguments.
8334compiler=$CC
8335
8336# Save the default compiler, since it gets overwritten when the other
8337# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8338compiler_DEFAULT=$CC
8339
8340# save warnings/boilerplate of simple test code
8341ac_outfile=conftest.$ac_objext
8342echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8343eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8344_lt_compiler_boilerplate=`cat conftest.err`
8345$RM conftest*
8346
8347ac_outfile=conftest.$ac_objext
8348echo "$lt_simple_link_test_code" >conftest.$ac_ext
8349eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8350_lt_linker_boilerplate=`cat conftest.err`
8351$RM -r conftest*
8352
8353
8354## CAVEAT EMPTOR:
8355## There is no encapsulation within the following macros, do not change
8356## the running order or otherwise move them around unless you know exactly
8357## what you are doing...
8358if test -n "$compiler"; then
8359
8360lt_prog_compiler_no_builtin_flag=
8361
8362if test "$GCC" = yes; then
8363 case $cc_basename in
8364 nvcc*)
8365 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8366 *)
8367 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8368 esac
8369
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8371$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8372if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
48310492
RH
8373 $as_echo_n "(cached) " >&6
8374else
8375 lt_cv_prog_compiler_rtti_exceptions=no
8376 ac_outfile=conftest.$ac_objext
8377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378 lt_compiler_flag="-fno-rtti -fno-exceptions"
8379 # Insert the option either (1) after the last *FLAGS variable, or
8380 # (2) before a word containing "conftest.", or (3) at the end.
8381 # Note that $ac_compile itself does not contain backslashes and begins
8382 # with a dollar sign (not a hyphen), so the echo should work correctly.
8383 # The option is referenced via a variable to avoid confusing sed.
8384 lt_compile=`echo "$ac_compile" | $SED \
8385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387 -e 's:$: $lt_compiler_flag:'`
8388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8389 (eval "$lt_compile" 2>conftest.err)
8390 ac_status=$?
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 if (exit $ac_status) && test -s "$ac_outfile"; then
8394 # The compiler can only warn and ignore the option if not recognized
8395 # So say no if there are warnings other than the usual output.
8396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8399 lt_cv_prog_compiler_rtti_exceptions=yes
8400 fi
8401 fi
8402 $RM conftest*
8403
8404fi
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8406$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8407
8408if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8409 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8410else
8411 :
8412fi
8413
8414fi
8415
8416
8417
8418
8419
8420
8421 lt_prog_compiler_wl=
8422lt_prog_compiler_pic=
8423lt_prog_compiler_static=
8424
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8426$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8427
8428 if test "$GCC" = yes; then
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_static='-static'
8431
8432 case $host_os in
8433 aix*)
8434 # All AIX code is PIC.
8435 if test "$host_cpu" = ia64; then
8436 # AIX 5 now supports IA64 processor
8437 lt_prog_compiler_static='-Bstatic'
8438 fi
00c2f0ef 8439 lt_prog_compiler_pic='-fPIC'
48310492
RH
8440 ;;
8441
8442 amigaos*)
8443 case $host_cpu in
8444 powerpc)
8445 # see comment about AmigaOS4 .so support
8446 lt_prog_compiler_pic='-fPIC'
8447 ;;
8448 m68k)
8449 # FIXME: we need at least 68020 code to build shared libraries, but
8450 # adding the `-m68020' flag to GCC prevents building anything better,
8451 # like `-m68040'.
8452 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8453 ;;
8454 esac
8455 ;;
8456
8457 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8458 # PIC is the default for these OSes.
8459 ;;
8460
8461 mingw* | cygwin* | pw32* | os2* | cegcc*)
8462 # This hack is so that the source file can tell whether it is being
8463 # built for inclusion in a dll (and should export symbols for example).
8464 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8465 # (--disable-auto-import) libraries
8466 lt_prog_compiler_pic='-DDLL_EXPORT'
8467 ;;
8468
8469 darwin* | rhapsody*)
8470 # PIC is the default on this platform
8471 # Common symbols not allowed in MH_DYLIB files
8472 lt_prog_compiler_pic='-fno-common'
8473 ;;
8474
8475 haiku*)
8476 # PIC is the default for Haiku.
8477 # The "-static" flag exists, but is broken.
8478 lt_prog_compiler_static=
8479 ;;
8480
8481 hpux*)
8482 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8483 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8484 # sets the default TLS model and affects inlining.
8485 case $host_cpu in
8486 hppa*64*)
8487 # +Z the default
8488 ;;
8489 *)
8490 lt_prog_compiler_pic='-fPIC'
8491 ;;
8492 esac
8493 ;;
8494
8495 interix[3-9]*)
8496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8497 # Instead, we relocate shared libraries at runtime.
8498 ;;
8499
8500 msdosdjgpp*)
8501 # Just because we use GCC doesn't mean we suddenly get shared libraries
8502 # on systems that don't support them.
8503 lt_prog_compiler_can_build_shared=no
8504 enable_shared=no
8505 ;;
8506
8507 *nto* | *qnx*)
8508 # QNX uses GNU C++, but need to define -shared option too, otherwise
8509 # it will coredump.
8510 lt_prog_compiler_pic='-fPIC -shared'
8511 ;;
8512
8513 sysv4*MP*)
8514 if test -d /usr/nec; then
8515 lt_prog_compiler_pic=-Kconform_pic
8516 fi
8517 ;;
8518
8519 *)
8520 lt_prog_compiler_pic='-fPIC'
8521 ;;
8522 esac
8523
8524 case $cc_basename in
8525 nvcc*) # Cuda Compiler Driver 2.2
8526 lt_prog_compiler_wl='-Xlinker '
8527 lt_prog_compiler_pic='-Xcompiler -fPIC'
8528 ;;
8529 esac
8530 else
8531 # PORTME Check for flag to pass linker flags through the system compiler.
8532 case $host_os in
8533 aix*)
8534 lt_prog_compiler_wl='-Wl,'
8535 if test "$host_cpu" = ia64; then
8536 # AIX 5 now supports IA64 processor
8537 lt_prog_compiler_static='-Bstatic'
8538 else
8539 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8540 fi
8541 ;;
8542
8543 mingw* | cygwin* | pw32* | os2* | cegcc*)
8544 # This hack is so that the source file can tell whether it is being
8545 # built for inclusion in a dll (and should export symbols for example).
8546 lt_prog_compiler_pic='-DDLL_EXPORT'
8547 ;;
8548
8549 hpux9* | hpux10* | hpux11*)
8550 lt_prog_compiler_wl='-Wl,'
8551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8552 # not for PA HP-UX.
8553 case $host_cpu in
8554 hppa*64*|ia64*)
8555 # +Z the default
8556 ;;
8557 *)
8558 lt_prog_compiler_pic='+Z'
8559 ;;
8560 esac
8561 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8562 lt_prog_compiler_static='${wl}-a ${wl}archive'
8563 ;;
8564
8565 irix5* | irix6* | nonstopux*)
8566 lt_prog_compiler_wl='-Wl,'
8567 # PIC (with -KPIC) is the default.
8568 lt_prog_compiler_static='-non_shared'
8569 ;;
8570
8571 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8572 case $cc_basename in
8573 # old Intel for x86_64 which still supported -KPIC.
8574 ecc*)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-KPIC'
8577 lt_prog_compiler_static='-static'
8578 ;;
8579 # icc used to be incompatible with GCC.
8580 # ICC 10 doesn't accept -KPIC any more.
8581 icc* | ifort*)
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_pic='-fPIC'
8584 lt_prog_compiler_static='-static'
8585 ;;
8586 # Lahey Fortran 8.1.
8587 lf95*)
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='--shared'
8590 lt_prog_compiler_static='--static'
8591 ;;
8592 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8593 # Portland Group compilers (*not* the Pentium gcc compiler,
8594 # which looks to be a dead project)
8595 lt_prog_compiler_wl='-Wl,'
8596 lt_prog_compiler_pic='-fpic'
8597 lt_prog_compiler_static='-Bstatic'
8598 ;;
8599 ccc*)
8600 lt_prog_compiler_wl='-Wl,'
8601 # All Alpha code is PIC.
8602 lt_prog_compiler_static='-non_shared'
8603 ;;
8604 xl* | bgxl* | bgf* | mpixl*)
8605 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-qpic'
8608 lt_prog_compiler_static='-qstaticlink'
8609 ;;
8610 *)
8611 case `$CC -V 2>&1 | sed 5q` in
8612 *Sun\ F* | *Sun*Fortran*)
8613 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8614 lt_prog_compiler_pic='-KPIC'
8615 lt_prog_compiler_static='-Bstatic'
8616 lt_prog_compiler_wl=''
8617 ;;
8618 *Sun\ C*)
8619 # Sun C 5.9
8620 lt_prog_compiler_pic='-KPIC'
8621 lt_prog_compiler_static='-Bstatic'
8622 lt_prog_compiler_wl='-Wl,'
8623 ;;
8624 esac
8625 ;;
8626 esac
8627 ;;
8628
8629 newsos6)
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8632 ;;
8633
8634 *nto* | *qnx*)
8635 # QNX uses GNU C++, but need to define -shared option too, otherwise
8636 # it will coredump.
8637 lt_prog_compiler_pic='-fPIC -shared'
8638 ;;
8639
8640 osf3* | osf4* | osf5*)
8641 lt_prog_compiler_wl='-Wl,'
8642 # All OSF/1 code is PIC.
8643 lt_prog_compiler_static='-non_shared'
8644 ;;
8645
8646 rdos*)
8647 lt_prog_compiler_static='-non_shared'
8648 ;;
8649
8650 solaris*)
8651 lt_prog_compiler_pic='-KPIC'
8652 lt_prog_compiler_static='-Bstatic'
8653 case $cc_basename in
8654 f77* | f90* | f95*)
8655 lt_prog_compiler_wl='-Qoption ld ';;
8656 *)
8657 lt_prog_compiler_wl='-Wl,';;
8658 esac
8659 ;;
8660
8661 sunos4*)
8662 lt_prog_compiler_wl='-Qoption ld '
8663 lt_prog_compiler_pic='-PIC'
8664 lt_prog_compiler_static='-Bstatic'
8665 ;;
8666
8667 sysv4 | sysv4.2uw2* | sysv4.3*)
8668 lt_prog_compiler_wl='-Wl,'
8669 lt_prog_compiler_pic='-KPIC'
8670 lt_prog_compiler_static='-Bstatic'
8671 ;;
8672
8673 sysv4*MP*)
8674 if test -d /usr/nec ;then
8675 lt_prog_compiler_pic='-Kconform_pic'
8676 lt_prog_compiler_static='-Bstatic'
8677 fi
8678 ;;
8679
8680 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_pic='-KPIC'
8683 lt_prog_compiler_static='-Bstatic'
8684 ;;
8685
8686 unicos*)
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_can_build_shared=no
8689 ;;
8690
8691 uts4*)
8692 lt_prog_compiler_pic='-pic'
8693 lt_prog_compiler_static='-Bstatic'
8694 ;;
8695
8696 *)
8697 lt_prog_compiler_can_build_shared=no
8698 ;;
8699 esac
8700 fi
8701
8702case $host_os in
8703 # For platforms which do not support PIC, -DPIC is meaningless:
8704 *djgpp*)
8705 lt_prog_compiler_pic=
8706 ;;
8707 *)
8708 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8709 ;;
8710esac
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8712$as_echo "$lt_prog_compiler_pic" >&6; }
8713
8714
8715
8716
8717
8718
8719#
8720# Check to make sure the PIC flag actually works.
8721#
8722if test -n "$lt_prog_compiler_pic"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8724$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8725if ${lt_cv_prog_compiler_pic_works+:} false; then :
48310492
RH
8726 $as_echo_n "(cached) " >&6
8727else
8728 lt_cv_prog_compiler_pic_works=no
8729 ac_outfile=conftest.$ac_objext
8730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8731 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8732 # Insert the option either (1) after the last *FLAGS variable, or
8733 # (2) before a word containing "conftest.", or (3) at the end.
8734 # Note that $ac_compile itself does not contain backslashes and begins
8735 # with a dollar sign (not a hyphen), so the echo should work correctly.
8736 # The option is referenced via a variable to avoid confusing sed.
8737 lt_compile=`echo "$ac_compile" | $SED \
8738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8740 -e 's:$: $lt_compiler_flag:'`
8741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8742 (eval "$lt_compile" 2>conftest.err)
8743 ac_status=$?
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 if (exit $ac_status) && test -s "$ac_outfile"; then
8747 # The compiler can only warn and ignore the option if not recognized
8748 # So say no if there are warnings other than the usual output.
8749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8752 lt_cv_prog_compiler_pic_works=yes
8753 fi
8754 fi
8755 $RM conftest*
8756
8757fi
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8759$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8760
8761if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8762 case $lt_prog_compiler_pic in
8763 "" | " "*) ;;
8764 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8765 esac
8766else
8767 lt_prog_compiler_pic=
8768 lt_prog_compiler_can_build_shared=no
8769fi
8770
8771fi
8772
8773
8774
8775
8776
8777
8778#
8779# Check to make sure the static flag actually works.
8780#
8781wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8783$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8784if ${lt_cv_prog_compiler_static_works+:} false; then :
48310492
RH
8785 $as_echo_n "(cached) " >&6
8786else
8787 lt_cv_prog_compiler_static_works=no
8788 save_LDFLAGS="$LDFLAGS"
8789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8790 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8792 # The linker can only warn and ignore the option if not recognized
8793 # So say no if there are warnings
8794 if test -s conftest.err; then
8795 # Append any errors to the config.log.
8796 cat conftest.err 1>&5
8797 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8799 if diff conftest.exp conftest.er2 >/dev/null; then
8800 lt_cv_prog_compiler_static_works=yes
8801 fi
8802 else
8803 lt_cv_prog_compiler_static_works=yes
8804 fi
8805 fi
8806 $RM -r conftest*
8807 LDFLAGS="$save_LDFLAGS"
8808
8809fi
8810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8811$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8812
8813if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8814 :
8815else
8816 lt_prog_compiler_static=
8817fi
8818
8819
8820
8821
8822
8823
8824
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8826$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8827if ${lt_cv_prog_compiler_c_o+:} false; then :
48310492
RH
8828 $as_echo_n "(cached) " >&6
8829else
8830 lt_cv_prog_compiler_c_o=no
8831 $RM -r conftest 2>/dev/null
8832 mkdir conftest
8833 cd conftest
8834 mkdir out
8835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8836
8837 lt_compiler_flag="-o out/conftest2.$ac_objext"
8838 # Insert the option either (1) after the last *FLAGS variable, or
8839 # (2) before a word containing "conftest.", or (3) at the end.
8840 # Note that $ac_compile itself does not contain backslashes and begins
8841 # with a dollar sign (not a hyphen), so the echo should work correctly.
8842 lt_compile=`echo "$ac_compile" | $SED \
8843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8845 -e 's:$: $lt_compiler_flag:'`
8846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8847 (eval "$lt_compile" 2>out/conftest.err)
8848 ac_status=$?
8849 cat out/conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8852 then
8853 # The compiler can only warn and ignore the option if not recognized
8854 # So say no if there are warnings
8855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8858 lt_cv_prog_compiler_c_o=yes
8859 fi
8860 fi
8861 chmod u+w . 2>&5
8862 $RM conftest*
8863 # SGI C++ compiler will create directory out/ii_files/ for
8864 # template instantiation
8865 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8866 $RM out/* && rmdir out
8867 cd ..
8868 $RM -r conftest
8869 $RM conftest*
8870
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8873$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8874
8875
8876
8877
8878
8879
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8881$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8882if ${lt_cv_prog_compiler_c_o+:} false; then :
48310492
RH
8883 $as_echo_n "(cached) " >&6
8884else
8885 lt_cv_prog_compiler_c_o=no
8886 $RM -r conftest 2>/dev/null
8887 mkdir conftest
8888 cd conftest
8889 mkdir out
8890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8891
8892 lt_compiler_flag="-o out/conftest2.$ac_objext"
8893 # Insert the option either (1) after the last *FLAGS variable, or
8894 # (2) before a word containing "conftest.", or (3) at the end.
8895 # Note that $ac_compile itself does not contain backslashes and begins
8896 # with a dollar sign (not a hyphen), so the echo should work correctly.
8897 lt_compile=`echo "$ac_compile" | $SED \
8898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8900 -e 's:$: $lt_compiler_flag:'`
8901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8902 (eval "$lt_compile" 2>out/conftest.err)
8903 ac_status=$?
8904 cat out/conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8907 then
8908 # The compiler can only warn and ignore the option if not recognized
8909 # So say no if there are warnings
8910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8913 lt_cv_prog_compiler_c_o=yes
8914 fi
8915 fi
8916 chmod u+w . 2>&5
8917 $RM conftest*
8918 # SGI C++ compiler will create directory out/ii_files/ for
8919 # template instantiation
8920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8921 $RM out/* && rmdir out
8922 cd ..
8923 $RM -r conftest
8924 $RM conftest*
8925
8926fi
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8928$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8929
8930
8931
8932
8933hard_links="nottested"
8934if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8935 # do not overwrite the value of need_locks provided by the user
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8937$as_echo_n "checking if we can lock with hard links... " >&6; }
8938 hard_links=yes
8939 $RM conftest*
8940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8941 touch conftest.a
8942 ln conftest.a conftest.b 2>&5 || hard_links=no
8943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8945$as_echo "$hard_links" >&6; }
8946 if test "$hard_links" = no; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8948$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8949 need_locks=warn
8950 fi
8951else
8952 need_locks=no
8953fi
8954
8955
8956
8957
8958
8959
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8961$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8962
8963 runpath_var=
8964 allow_undefined_flag=
8965 always_export_symbols=no
8966 archive_cmds=
8967 archive_expsym_cmds=
8968 compiler_needs_object=no
8969 enable_shared_with_static_runtimes=no
8970 export_dynamic_flag_spec=
8971 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8972 hardcode_automatic=no
8973 hardcode_direct=no
8974 hardcode_direct_absolute=no
8975 hardcode_libdir_flag_spec=
8976 hardcode_libdir_flag_spec_ld=
8977 hardcode_libdir_separator=
8978 hardcode_minus_L=no
8979 hardcode_shlibpath_var=unsupported
8980 inherit_rpath=no
8981 link_all_deplibs=unknown
8982 module_cmds=
8983 module_expsym_cmds=
8984 old_archive_from_new_cmds=
8985 old_archive_from_expsyms_cmds=
8986 thread_safe_flag_spec=
8987 whole_archive_flag_spec=
8988 # include_expsyms should be a list of space-separated symbols to be *always*
8989 # included in the symbol list
8990 include_expsyms=
8991 # exclude_expsyms can be an extended regexp of symbols to exclude
8992 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8993 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8994 # as well as any symbol that contains `d'.
8995 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8996 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8997 # platforms (ab)use it in PIC code, but their linkers get confused if
8998 # the symbol is explicitly referenced. Since portable code cannot
8999 # rely on this symbol name, it's probably fine to never include it in
9000 # preloaded symbol tables.
9001 # Exclude shared library initialization/finalization symbols.
9002 extract_expsyms_cmds=
9003
9004 case $host_os in
9005 cygwin* | mingw* | pw32* | cegcc*)
9006 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9007 # When not using gcc, we currently assume that we are using
9008 # Microsoft Visual C++.
9009 if test "$GCC" != yes; then
9010 with_gnu_ld=no
9011 fi
9012 ;;
9013 interix*)
9014 # we just hope/assume this is gcc and not c89 (= MSVC++)
9015 with_gnu_ld=yes
9016 ;;
9017 openbsd*)
9018 with_gnu_ld=no
9019 ;;
9020 esac
9021
9022 ld_shlibs=yes
9023
9024 # On some targets, GNU ld is compatible enough with the native linker
9025 # that we're better off using the native interface for both.
9026 lt_use_gnu_ld_interface=no
9027 if test "$with_gnu_ld" = yes; then
9028 case $host_os in
9029 aix*)
9030 # The AIX port of GNU ld has always aspired to compatibility
9031 # with the native linker. However, as the warning in the GNU ld
9032 # block says, versions before 2.19.5* couldn't really create working
9033 # shared libraries, regardless of the interface used.
9034 case `$LD -v 2>&1` in
9035 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9036 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9037 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9038 *)
9039 lt_use_gnu_ld_interface=yes
9040 ;;
9041 esac
9042 ;;
9043 *)
9044 lt_use_gnu_ld_interface=yes
9045 ;;
9046 esac
9047 fi
9048
9049 if test "$lt_use_gnu_ld_interface" = yes; then
9050 # If archive_cmds runs LD, not CC, wlarc should be empty
9051 wlarc='${wl}'
9052
9053 # Set some defaults for GNU ld with shared library support. These
9054 # are reset later if shared libraries are not supported. Putting them
9055 # here allows them to be overridden if necessary.
9056 runpath_var=LD_RUN_PATH
9057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9058 export_dynamic_flag_spec='${wl}--export-dynamic'
9059 # ancient GNU ld didn't support --whole-archive et. al.
9060 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9061 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9062 else
9063 whole_archive_flag_spec=
9064 fi
9065 supports_anon_versioning=no
9066 case `$LD -v 2>&1` in
9067 *GNU\ gold*) supports_anon_versioning=yes ;;
9068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9071 *\ 2.11.*) ;; # other 2.11 versions
9072 *) supports_anon_versioning=yes ;;
9073 esac
9074
9075 # See if GNU ld supports shared libraries.
9076 case $host_os in
9077 aix[3-9]*)
9078 # On AIX/PPC, the GNU linker is very broken
9079 if test "$host_cpu" != ia64; then
9080 ld_shlibs=no
9081 cat <<_LT_EOF 1>&2
9082
9083*** Warning: the GNU linker, at least up to release 2.19, is reported
9084*** to be unable to reliably create shared libraries on AIX.
9085*** Therefore, libtool is disabling shared libraries support. If you
9086*** really care for shared libraries, you may want to install binutils
9087*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9088*** You will then need to restart the configuration process.
9089
9090_LT_EOF
9091 fi
9092 ;;
9093
9094 amigaos*)
9095 case $host_cpu in
9096 powerpc)
9097 # see comment about AmigaOS4 .so support
9098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9099 archive_expsym_cmds=''
9100 ;;
9101 m68k)
9102 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)'
9103 hardcode_libdir_flag_spec='-L$libdir'
9104 hardcode_minus_L=yes
9105 ;;
9106 esac
9107 ;;
9108
9109 beos*)
9110 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9111 allow_undefined_flag=unsupported
9112 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9113 # support --undefined. This deserves some investigation. FIXME
9114 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9115 else
9116 ld_shlibs=no
9117 fi
9118 ;;
9119
9120 cygwin* | mingw* | pw32* | cegcc*)
9121 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9122 # as there is no search path for DLLs.
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 export_dynamic_flag_spec='${wl}--export-all-symbols'
9125 allow_undefined_flag=unsupported
9126 always_export_symbols=no
9127 enable_shared_with_static_runtimes=yes
9128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9129
9130 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9132 # If the export-symbols file already is a .def file (1st line
9133 # is EXPORTS), use it as is; otherwise, prepend...
9134 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9135 cp $export_symbols $output_objdir/$soname.def;
9136 else
9137 echo EXPORTS > $output_objdir/$soname.def;
9138 cat $export_symbols >> $output_objdir/$soname.def;
9139 fi~
9140 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9141 else
9142 ld_shlibs=no
9143 fi
9144 ;;
9145
9146 haiku*)
9147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9148 link_all_deplibs=yes
9149 ;;
9150
9151 interix[3-9]*)
9152 hardcode_direct=no
9153 hardcode_shlibpath_var=no
9154 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9155 export_dynamic_flag_spec='${wl}-E'
9156 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9157 # Instead, shared libraries are loaded at an image base (0x10000000 by
9158 # default) and relocated if they conflict, which is a slow very memory
9159 # consuming and fragmenting process. To avoid this, we pick a random,
9160 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9161 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9162 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9163 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'
9164 ;;
9165
b1e21e5a 9166 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
48310492
RH
9167 tmp_diet=no
9168 if test "$host_os" = linux-dietlibc; then
9169 case $cc_basename in
9170 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9171 esac
9172 fi
9173 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9174 && test "$tmp_diet" = no
9175 then
a699d672 9176 tmp_addflag=' $pic_flag'
48310492
RH
9177 tmp_sharedflag='-shared'
9178 case $cc_basename,$host_cpu in
9179 pgcc*) # Portland Group C compiler
9180 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'
9181 tmp_addflag=' $pic_flag'
9182 ;;
9183 pgf77* | pgf90* | pgf95* | pgfortran*)
9184 # Portland Group f77 and f90 compilers
9185 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'
9186 tmp_addflag=' $pic_flag -Mnomain' ;;
9187 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9188 tmp_addflag=' -i_dynamic' ;;
9189 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9190 tmp_addflag=' -i_dynamic -nofor_main' ;;
9191 ifc* | ifort*) # Intel Fortran compiler
9192 tmp_addflag=' -nofor_main' ;;
9193 lf95*) # Lahey Fortran 8.1
9194 whole_archive_flag_spec=
9195 tmp_sharedflag='--shared' ;;
9196 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9197 tmp_sharedflag='-qmkshrobj'
9198 tmp_addflag= ;;
9199 nvcc*) # Cuda Compiler Driver 2.2
9200 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'
9201 compiler_needs_object=yes
9202 ;;
9203 esac
9204 case `$CC -V 2>&1 | sed 5q` in
9205 *Sun\ C*) # Sun C 5.9
9206 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'
9207 compiler_needs_object=yes
9208 tmp_sharedflag='-G' ;;
9209 *Sun\ F*) # Sun Fortran 8.3
9210 tmp_sharedflag='-G' ;;
9211 esac
9212 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213
9214 if test "x$supports_anon_versioning" = xyes; then
9215 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9216 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9217 echo "local: *; };" >> $output_objdir/$libname.ver~
9218 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9219 fi
9220
9221 case $cc_basename in
9222 xlf* | bgf* | bgxlf* | mpixlf*)
9223 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9224 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9225 hardcode_libdir_flag_spec=
9226 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9227 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9228 if test "x$supports_anon_versioning" = xyes; then
9229 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9230 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9231 echo "local: *; };" >> $output_objdir/$libname.ver~
9232 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9233 fi
9234 ;;
9235 esac
9236 else
9237 ld_shlibs=no
9238 fi
9239 ;;
9240
9241 netbsd*)
9242 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9243 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9244 wlarc=
9245 else
9246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9248 fi
9249 ;;
9250
9251 solaris*)
9252 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9253 ld_shlibs=no
9254 cat <<_LT_EOF 1>&2
9255
9256*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9257*** create shared libraries on Solaris systems. Therefore, libtool
9258*** is disabling shared libraries support. We urge you to upgrade GNU
9259*** binutils to release 2.9.1 or newer. Another option is to modify
9260*** your PATH or compiler configuration so that the native linker is
9261*** used, and then restart.
9262
9263_LT_EOF
9264 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9267 else
9268 ld_shlibs=no
9269 fi
9270 ;;
9271
9272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9273 case `$LD -v 2>&1` in
9274 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9275 ld_shlibs=no
9276 cat <<_LT_EOF 1>&2
9277
9278*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9279*** reliably create shared libraries on SCO systems. Therefore, libtool
9280*** is disabling shared libraries support. We urge you to upgrade GNU
9281*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9282*** your PATH or compiler configuration so that the native linker is
9283*** used, and then restart.
9284
9285_LT_EOF
9286 ;;
9287 *)
9288 # For security reasons, it is highly recommended that you always
9289 # use absolute paths for naming shared libraries, and exclude the
9290 # DT_RUNPATH tag from executables and libraries. But doing so
9291 # requires that you compile everything twice, which is a pain.
9292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9296 else
9297 ld_shlibs=no
9298 fi
9299 ;;
9300 esac
9301 ;;
9302
9303 sunos4*)
9304 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9305 wlarc=
9306 hardcode_direct=yes
9307 hardcode_shlibpath_var=no
9308 ;;
9309
9310 *)
9311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9314 else
9315 ld_shlibs=no
9316 fi
9317 ;;
9318 esac
9319
9320 if test "$ld_shlibs" = no; then
9321 runpath_var=
9322 hardcode_libdir_flag_spec=
9323 export_dynamic_flag_spec=
9324 whole_archive_flag_spec=
9325 fi
9326 else
9327 # PORTME fill in a description of your system's linker (not GNU ld)
9328 case $host_os in
9329 aix3*)
9330 allow_undefined_flag=unsupported
9331 always_export_symbols=yes
9332 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'
9333 # Note: this linker hardcodes the directories in LIBPATH if there
9334 # are no directories specified by -L.
9335 hardcode_minus_L=yes
9336 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9337 # Neither direct hardcoding nor static linking is supported with a
9338 # broken collect2.
9339 hardcode_direct=unsupported
9340 fi
9341 ;;
9342
9343 aix[4-9]*)
9344 if test "$host_cpu" = ia64; then
9345 # On IA64, the linker does run time linking by default, so we don't
9346 # have to do anything special.
9347 aix_use_runtimelinking=no
9348 exp_sym_flag='-Bexport'
9349 no_entry_flag=""
9350 else
9351 # If we're using GNU nm, then we don't want the "-C" option.
9352 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9353 # Also, AIX nm treats weak defined symbols like other global
9354 # defined symbols, whereas GNU nm marks them as "W".
9355 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9356 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'
9357 else
84c1b9d3 9358 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
9359 fi
9360 aix_use_runtimelinking=no
9361
9362 # Test if we are trying to use run time linking or normal
9363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9364 # need to do runtime linking.
9365 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9366 for ld_flag in $LDFLAGS; do
9367 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9368 aix_use_runtimelinking=yes
9369 break
9370 fi
9371 done
9372 ;;
9373 esac
9374
9375 exp_sym_flag='-bexport'
9376 no_entry_flag='-bnoentry'
9377 fi
9378
9379 # When large executables or shared objects are built, AIX ld can
9380 # have problems creating the table of contents. If linking a library
9381 # or program results in "error TOC overflow" add -mminimal-toc to
9382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9384
9385 archive_cmds=''
9386 hardcode_direct=yes
9387 hardcode_direct_absolute=yes
9388 hardcode_libdir_separator=':'
9389 link_all_deplibs=yes
9390 file_list_spec='${wl}-f,'
9391
9392 if test "$GCC" = yes; then
9393 case $host_os in aix4.[012]|aix4.[012].*)
9394 # We only want to do this on AIX 4.2 and lower, the check
9395 # below for broken collect2 doesn't work under 4.3+
9396 collect2name=`${CC} -print-prog-name=collect2`
9397 if test -f "$collect2name" &&
9398 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9399 then
9400 # We have reworked collect2
9401 :
9402 else
9403 # We have old collect2
9404 hardcode_direct=unsupported
9405 # It fails to find uninstalled libraries when the uninstalled
9406 # path is not listed in the libpath. Setting hardcode_minus_L
9407 # to unsupported forces relinking
9408 hardcode_minus_L=yes
9409 hardcode_libdir_flag_spec='-L$libdir'
9410 hardcode_libdir_separator=
9411 fi
9412 ;;
9413 esac
9414 shared_flag='-shared'
9415 if test "$aix_use_runtimelinking" = yes; then
9416 shared_flag="$shared_flag "'${wl}-G'
9417 fi
9418 else
9419 # not using gcc
9420 if test "$host_cpu" = ia64; then
9421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9422 # chokes on -Wl,-G. The following line is correct:
9423 shared_flag='-G'
9424 else
9425 if test "$aix_use_runtimelinking" = yes; then
9426 shared_flag='${wl}-G'
9427 else
9428 shared_flag='${wl}-bM:SRE'
9429 fi
9430 fi
9431 fi
9432
9433 export_dynamic_flag_spec='${wl}-bexpall'
9434 # It seems that -bexpall does not export symbols beginning with
9435 # underscore (_), so it is better to generate a list of symbols to export.
9436 always_export_symbols=yes
9437 if test "$aix_use_runtimelinking" = yes; then
9438 # Warning - without using the other runtime loading flags (-brtl),
9439 # -berok will link without error, but may produce a broken library.
9440 allow_undefined_flag='-berok'
9441 # Determine the default libpath from the value encoded in an
9442 # empty executable.
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444/* end confdefs.h. */
9445
9446int
9447main ()
9448{
9449
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454if ac_fn_c_try_link "$LINENO"; then :
9455
9456lt_aix_libpath_sed='
9457 /Import File Strings/,/^$/ {
9458 /^0/ {
9459 s/^0 *\(.*\)$/\1/
9460 p
9461 }
9462 }'
9463aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464# Check for a 64-bit object if we didn't find anything.
9465if test -z "$aix_libpath"; then
9466 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9467fi
9468fi
9469rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9472
9473 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9474 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"
9475 else
9476 if test "$host_cpu" = ia64; then
9477 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9478 allow_undefined_flag="-z nodefs"
9479 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"
9480 else
9481 # Determine the default libpath from the value encoded in an
9482 # empty executable.
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h. */
9485
9486int
9487main ()
9488{
9489
9490 ;
9491 return 0;
9492}
9493_ACEOF
9494if ac_fn_c_try_link "$LINENO"; then :
9495
9496lt_aix_libpath_sed='
9497 /Import File Strings/,/^$/ {
9498 /^0/ {
9499 s/^0 *\(.*\)$/\1/
9500 p
9501 }
9502 }'
9503aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9504# Check for a 64-bit object if we didn't find anything.
9505if test -z "$aix_libpath"; then
9506 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9507fi
9508fi
9509rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9512
9513 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9514 # Warning - without using the other run time loading flags,
9515 # -berok will link without error, but may produce a broken library.
9516 no_undefined_flag=' ${wl}-bernotok'
9517 allow_undefined_flag=' ${wl}-berok'
9518 if test "$with_gnu_ld" = yes; then
9519 # We only use this code for GNU lds that support --whole-archive.
9520 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9521 else
9522 # Exported symbols can be pulled into shared objects from archives
9523 whole_archive_flag_spec='$convenience'
9524 fi
9525 archive_cmds_need_lc=yes
9526 # This is similar to how AIX traditionally builds its shared libraries.
9527 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'
9528 fi
9529 fi
9530 ;;
9531
9532 amigaos*)
9533 case $host_cpu in
9534 powerpc)
9535 # see comment about AmigaOS4 .so support
9536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537 archive_expsym_cmds=''
9538 ;;
9539 m68k)
9540 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)'
9541 hardcode_libdir_flag_spec='-L$libdir'
9542 hardcode_minus_L=yes
9543 ;;
9544 esac
9545 ;;
9546
9547 bsdi[45]*)
9548 export_dynamic_flag_spec=-rdynamic
9549 ;;
9550
9551 cygwin* | mingw* | pw32* | cegcc*)
9552 # When not using gcc, we currently assume that we are using
9553 # Microsoft Visual C++.
9554 # hardcode_libdir_flag_spec is actually meaningless, as there is
9555 # no search path for DLLs.
9556 hardcode_libdir_flag_spec=' '
9557 allow_undefined_flag=unsupported
9558 # Tell ltmain to make .lib files, not .a files.
9559 libext=lib
9560 # Tell ltmain to make .dll files, not .so files.
9561 shrext_cmds=".dll"
9562 # FIXME: Setting linknames here is a bad hack.
9563 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9564 # The linker will automatically build a .lib file if we build a DLL.
9565 old_archive_from_new_cmds='true'
9566 # FIXME: Should let the user specify the lib program.
9567 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9568 fix_srcfile_path='`cygpath -w "$srcfile"`'
9569 enable_shared_with_static_runtimes=yes
9570 ;;
9571
9572 darwin* | rhapsody*)
9573
9574
9575 archive_cmds_need_lc=no
9576 hardcode_direct=no
9577 hardcode_automatic=yes
9578 hardcode_shlibpath_var=unsupported
9579 if test "$lt_cv_ld_force_load" = "yes"; then
9580 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\"`'
9581 else
9582 whole_archive_flag_spec=''
9583 fi
9584 link_all_deplibs=yes
9585 allow_undefined_flag="$_lt_dar_allow_undefined"
9586 case $cc_basename in
9587 ifort*) _lt_dar_can_shared=yes ;;
9588 *) _lt_dar_can_shared=$GCC ;;
9589 esac
9590 if test "$_lt_dar_can_shared" = "yes"; then
9591 output_verbose_link_cmd=func_echo_all
9592 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9593 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9594 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}"
9595 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}"
9596
9597 else
9598 ld_shlibs=no
9599 fi
9600
9601 ;;
9602
9603 dgux*)
9604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605 hardcode_libdir_flag_spec='-L$libdir'
9606 hardcode_shlibpath_var=no
9607 ;;
9608
9609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9610 # support. Future versions do this automatically, but an explicit c++rt0.o
9611 # does not break anything, and helps significantly (at the cost of a little
9612 # extra space).
9613 freebsd2.2*)
9614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9615 hardcode_libdir_flag_spec='-R$libdir'
9616 hardcode_direct=yes
9617 hardcode_shlibpath_var=no
9618 ;;
9619
9620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9621 freebsd2.*)
9622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9623 hardcode_direct=yes
9624 hardcode_minus_L=yes
9625 hardcode_shlibpath_var=no
9626 ;;
9627
9628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9629 freebsd* | dragonfly*)
9630 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9631 hardcode_libdir_flag_spec='-R$libdir'
9632 hardcode_direct=yes
9633 hardcode_shlibpath_var=no
9634 ;;
9635
9636 hpux9*)
9637 if test "$GCC" = yes; then
9638 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'
9639 else
9640 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'
9641 fi
9642 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9643 hardcode_libdir_separator=:
9644 hardcode_direct=yes
9645
9646 # hardcode_minus_L: Not really in the search PATH,
9647 # but as the default location of the library.
9648 hardcode_minus_L=yes
9649 export_dynamic_flag_spec='${wl}-E'
9650 ;;
9651
9652 hpux10*)
9653 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9654 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9655 else
9656 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9657 fi
9658 if test "$with_gnu_ld" = no; then
9659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9660 hardcode_libdir_flag_spec_ld='+b $libdir'
9661 hardcode_libdir_separator=:
9662 hardcode_direct=yes
9663 hardcode_direct_absolute=yes
9664 export_dynamic_flag_spec='${wl}-E'
9665 # hardcode_minus_L: Not really in the search PATH,
9666 # but as the default location of the library.
9667 hardcode_minus_L=yes
9668 fi
9669 ;;
9670
9671 hpux11*)
9672 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9673 case $host_cpu in
9674 hppa*64*)
4e4ba647 9675 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48310492
RH
9676 ;;
9677 ia64*)
9678 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9679 ;;
9680 *)
9681 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9682 ;;
9683 esac
9684 else
9685 case $host_cpu in
9686 hppa*64*)
4e4ba647 9687 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48310492
RH
9688 ;;
9689 ia64*)
9690 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9691 ;;
9692 *)
9693
9694 # Older versions of the 11.00 compiler do not understand -b yet
9695 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9697$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9698if ${lt_cv_prog_compiler__b+:} false; then :
48310492
RH
9699 $as_echo_n "(cached) " >&6
9700else
9701 lt_cv_prog_compiler__b=no
9702 save_LDFLAGS="$LDFLAGS"
9703 LDFLAGS="$LDFLAGS -b"
9704 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9706 # The linker can only warn and ignore the option if not recognized
9707 # So say no if there are warnings
9708 if test -s conftest.err; then
9709 # Append any errors to the config.log.
9710 cat conftest.err 1>&5
9711 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9713 if diff conftest.exp conftest.er2 >/dev/null; then
9714 lt_cv_prog_compiler__b=yes
9715 fi
9716 else
9717 lt_cv_prog_compiler__b=yes
9718 fi
9719 fi
9720 $RM -r conftest*
9721 LDFLAGS="$save_LDFLAGS"
9722
9723fi
9724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9725$as_echo "$lt_cv_prog_compiler__b" >&6; }
9726
9727if test x"$lt_cv_prog_compiler__b" = xyes; then
9728 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9729else
9730 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9731fi
9732
9733 ;;
9734 esac
9735 fi
9736 if test "$with_gnu_ld" = no; then
9737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9738 hardcode_libdir_separator=:
9739
9740 case $host_cpu in
9741 hppa*64*|ia64*)
9742 hardcode_direct=no
9743 hardcode_shlibpath_var=no
9744 ;;
9745 *)
9746 hardcode_direct=yes
9747 hardcode_direct_absolute=yes
9748 export_dynamic_flag_spec='${wl}-E'
9749
9750 # hardcode_minus_L: Not really in the search PATH,
9751 # but as the default location of the library.
9752 hardcode_minus_L=yes
9753 ;;
9754 esac
9755 fi
9756 ;;
9757
9758 irix5* | irix6* | nonstopux*)
9759 if test "$GCC" = yes; then
9760 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'
9761 # Try to use the -exported_symbol ld option, if it does not
9762 # work, assume that -exports_file does not work either and
9763 # implicitly export all symbols.
9764 save_LDFLAGS="$LDFLAGS"
9765 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767/* end confdefs.h. */
9768int foo(void) {}
9769_ACEOF
9770if ac_fn_c_try_link "$LINENO"; then :
9771 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'
9772
9773fi
9774rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776 LDFLAGS="$save_LDFLAGS"
9777 else
9778 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'
9779 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'
9780 fi
9781 archive_cmds_need_lc='no'
9782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9783 hardcode_libdir_separator=:
9784 inherit_rpath=yes
9785 link_all_deplibs=yes
9786 ;;
9787
9788 netbsd*)
9789 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9791 else
9792 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9793 fi
9794 hardcode_libdir_flag_spec='-R$libdir'
9795 hardcode_direct=yes
9796 hardcode_shlibpath_var=no
9797 ;;
9798
9799 newsos6)
9800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801 hardcode_direct=yes
9802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9803 hardcode_libdir_separator=:
9804 hardcode_shlibpath_var=no
9805 ;;
9806
9807 *nto* | *qnx*)
9808 ;;
9809
9810 openbsd*)
9811 if test -f /usr/libexec/ld.so; then
9812 hardcode_direct=yes
9813 hardcode_shlibpath_var=no
9814 hardcode_direct_absolute=yes
9815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9816 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9818 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9819 export_dynamic_flag_spec='${wl}-E'
9820 else
9821 case $host_os in
9822 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9824 hardcode_libdir_flag_spec='-R$libdir'
9825 ;;
9826 *)
9827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9829 ;;
9830 esac
9831 fi
9832 else
9833 ld_shlibs=no
9834 fi
9835 ;;
9836
9837 os2*)
9838 hardcode_libdir_flag_spec='-L$libdir'
9839 hardcode_minus_L=yes
9840 allow_undefined_flag=unsupported
9841 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'
9842 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9843 ;;
9844
9845 osf3*)
9846 if test "$GCC" = yes; then
9847 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9848 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'
9849 else
9850 allow_undefined_flag=' -expect_unresolved \*'
9851 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'
9852 fi
9853 archive_cmds_need_lc='no'
9854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9855 hardcode_libdir_separator=:
9856 ;;
9857
9858 osf4* | osf5*) # as osf3* with the addition of -msym flag
9859 if test "$GCC" = yes; then
9860 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9861 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'
9862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9863 else
9864 allow_undefined_flag=' -expect_unresolved \*'
9865 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'
9866 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~
9867 $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'
9868
9869 # Both c and cxx compiler support -rpath directly
9870 hardcode_libdir_flag_spec='-rpath $libdir'
9871 fi
9872 archive_cmds_need_lc='no'
9873 hardcode_libdir_separator=:
9874 ;;
9875
9876 solaris*)
9877 no_undefined_flag=' -z defs'
9878 if test "$GCC" = yes; then
9879 wlarc='${wl}'
9880 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9881 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9882 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9883 else
9884 case `$CC -V 2>&1` in
9885 *"Compilers 5.0"*)
9886 wlarc=''
9887 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9889 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9890 ;;
9891 *)
9892 wlarc='${wl}'
9893 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9894 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9895 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9896 ;;
9897 esac
9898 fi
9899 hardcode_libdir_flag_spec='-R$libdir'
9900 hardcode_shlibpath_var=no
9901 case $host_os in
9902 solaris2.[0-5] | solaris2.[0-5].*) ;;
9903 *)
9904 # The compiler driver will combine and reorder linker options,
9905 # but understands `-z linker_flag'. GCC discards it without `$wl',
9906 # but is careful enough not to reorder.
9907 # Supported since Solaris 2.6 (maybe 2.5.1?)
9908 if test "$GCC" = yes; then
9909 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9910 else
9911 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9912 fi
9913 ;;
9914 esac
9915 link_all_deplibs=yes
9916 ;;
9917
9918 sunos4*)
9919 if test "x$host_vendor" = xsequent; then
9920 # Use $CC to link under sequent, because it throws in some extra .o
9921 # files that make .init and .fini sections work.
9922 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9923 else
9924 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9925 fi
9926 hardcode_libdir_flag_spec='-L$libdir'
9927 hardcode_direct=yes
9928 hardcode_minus_L=yes
9929 hardcode_shlibpath_var=no
9930 ;;
9931
9932 sysv4)
9933 case $host_vendor in
9934 sni)
9935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9936 hardcode_direct=yes # is this really true???
9937 ;;
9938 siemens)
9939 ## LD is ld it makes a PLAMLIB
9940 ## CC just makes a GrossModule.
9941 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9942 reload_cmds='$CC -r -o $output$reload_objs'
9943 hardcode_direct=no
9944 ;;
9945 motorola)
9946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9948 ;;
9949 esac
9950 runpath_var='LD_RUN_PATH'
9951 hardcode_shlibpath_var=no
9952 ;;
9953
9954 sysv4.3*)
9955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956 hardcode_shlibpath_var=no
9957 export_dynamic_flag_spec='-Bexport'
9958 ;;
9959
9960 sysv4*MP*)
9961 if test -d /usr/nec; then
9962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9963 hardcode_shlibpath_var=no
9964 runpath_var=LD_RUN_PATH
9965 hardcode_runpath_var=yes
9966 ld_shlibs=yes
9967 fi
9968 ;;
9969
9970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9971 no_undefined_flag='${wl}-z,text'
9972 archive_cmds_need_lc=no
9973 hardcode_shlibpath_var=no
9974 runpath_var='LD_RUN_PATH'
9975
9976 if test "$GCC" = yes; then
9977 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9978 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9979 else
9980 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9981 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9982 fi
9983 ;;
9984
9985 sysv5* | sco3.2v5* | sco5v6*)
9986 # Note: We can NOT use -z defs as we might desire, because we do not
9987 # link with -lc, and that would cause any symbols used from libc to
9988 # always be unresolved, which means just about no library would
9989 # ever link correctly. If we're not using GNU ld we use -z text
9990 # though, which does catch some bad symbols but isn't as heavy-handed
9991 # as -z defs.
9992 no_undefined_flag='${wl}-z,text'
9993 allow_undefined_flag='${wl}-z,nodefs'
9994 archive_cmds_need_lc=no
9995 hardcode_shlibpath_var=no
9996 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9997 hardcode_libdir_separator=':'
9998 link_all_deplibs=yes
9999 export_dynamic_flag_spec='${wl}-Bexport'
10000 runpath_var='LD_RUN_PATH'
10001
10002 if test "$GCC" = yes; then
10003 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10004 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10005 else
10006 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10008 fi
10009 ;;
10010
10011 uts4*)
10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_libdir_flag_spec='-L$libdir'
10014 hardcode_shlibpath_var=no
10015 ;;
10016
10017 *)
10018 ld_shlibs=no
10019 ;;
10020 esac
10021
10022 if test x$host_vendor = xsni; then
10023 case $host in
10024 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10025 export_dynamic_flag_spec='${wl}-Blargedynsym'
10026 ;;
10027 esac
10028 fi
10029 fi
10030
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10032$as_echo "$ld_shlibs" >&6; }
10033test "$ld_shlibs" = no && can_build_shared=no
10034
10035with_gnu_ld=$with_gnu_ld
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051#
10052# Do we need to explicitly link libc?
10053#
10054case "x$archive_cmds_need_lc" in
10055x|xyes)
10056 # Assume -lc should be added
10057 archive_cmds_need_lc=yes
10058
10059 if test "$enable_shared" = yes && test "$GCC" = yes; then
10060 case $archive_cmds in
10061 *'~'*)
10062 # FIXME: we may have to deal with multi-command sequences.
10063 ;;
10064 '$CC '*)
10065 # Test whether the compiler implicitly links with -lc since on some
10066 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10067 # to ld, don't add -lc before -lgcc.
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10069$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10070if ${lt_cv_archive_cmds_need_lc+:} false; then :
48310492
RH
10071 $as_echo_n "(cached) " >&6
10072else
10073 $RM conftest*
10074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10075
10076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10077 (eval $ac_compile) 2>&5
10078 ac_status=$?
10079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10080 test $ac_status = 0; } 2>conftest.err; then
10081 soname=conftest
10082 lib=conftest
10083 libobjs=conftest.$ac_objext
10084 deplibs=
10085 wl=$lt_prog_compiler_wl
10086 pic_flag=$lt_prog_compiler_pic
10087 compiler_flags=-v
10088 linker_flags=-v
10089 verstring=
10090 output_objdir=.
10091 libname=conftest
10092 lt_save_allow_undefined_flag=$allow_undefined_flag
10093 allow_undefined_flag=
10094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10095 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10096 ac_status=$?
10097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098 test $ac_status = 0; }
10099 then
10100 lt_cv_archive_cmds_need_lc=no
10101 else
10102 lt_cv_archive_cmds_need_lc=yes
10103 fi
10104 allow_undefined_flag=$lt_save_allow_undefined_flag
10105 else
10106 cat conftest.err 1>&5
10107 fi
10108 $RM conftest*
10109
10110fi
10111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10112$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10113 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10114 ;;
10115 esac
10116 fi
10117 ;;
10118esac
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
10275
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10277$as_echo_n "checking dynamic linker characteristics... " >&6; }
10278
10279if test "$GCC" = yes; then
10280 case $host_os in
10281 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10282 *) lt_awk_arg="/^libraries:/" ;;
10283 esac
10284 case $host_os in
10285 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10286 *) lt_sed_strip_eq="s,=/,/,g" ;;
10287 esac
10288 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10289 case $lt_search_path_spec in
10290 *\;*)
10291 # if the path contains ";" then we assume it to be the separator
10292 # otherwise default to the standard path separator (i.e. ":") - it is
10293 # assumed that no part of a normal pathname contains ";" but that should
10294 # okay in the real world where ";" in dirpaths is itself problematic.
10295 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10296 ;;
10297 *)
10298 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10299 ;;
10300 esac
10301 # Ok, now we have the path, separated by spaces, we can step through it
10302 # and add multilib dir if necessary.
10303 lt_tmp_lt_search_path_spec=
10304 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10305 for lt_sys_path in $lt_search_path_spec; do
10306 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10308 else
10309 test -d "$lt_sys_path" && \
10310 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10311 fi
10312 done
10313 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10314BEGIN {RS=" "; FS="/|\n";} {
10315 lt_foo="";
10316 lt_count=0;
10317 for (lt_i = NF; lt_i > 0; lt_i--) {
10318 if ($lt_i != "" && $lt_i != ".") {
10319 if ($lt_i == "..") {
10320 lt_count++;
10321 } else {
10322 if (lt_count == 0) {
10323 lt_foo="/" $lt_i lt_foo;
10324 } else {
10325 lt_count--;
10326 }
10327 }
10328 }
10329 }
10330 if (lt_foo != "") { lt_freq[lt_foo]++; }
10331 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10332}'`
10333 # AWK program above erroneously prepends '/' to C:/dos/paths
10334 # for these hosts.
10335 case $host_os in
10336 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10337 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10338 esac
10339 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10340else
10341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10342fi
10343library_names_spec=
10344libname_spec='lib$name'
10345soname_spec=
10346shrext_cmds=".so"
10347postinstall_cmds=
10348postuninstall_cmds=
10349finish_cmds=
10350finish_eval=
10351shlibpath_var=
10352shlibpath_overrides_runpath=unknown
10353version_type=none
10354dynamic_linker="$host_os ld.so"
10355sys_lib_dlsearch_path_spec="/lib /usr/lib"
10356need_lib_prefix=unknown
10357hardcode_into_libs=no
10358
10359# when you set need_version to no, make sure it does not cause -set_version
10360# flags to be left without arguments
10361need_version=unknown
10362
10363case $host_os in
10364aix3*)
10365 version_type=linux
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10367 shlibpath_var=LIBPATH
10368
10369 # AIX 3 has no versioning support, so we append a major version to the name.
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 ;;
10372
10373aix[4-9]*)
10374 version_type=linux
10375 need_lib_prefix=no
10376 need_version=no
10377 hardcode_into_libs=yes
10378 if test "$host_cpu" = ia64; then
10379 # AIX 5 supports IA64
10380 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10381 shlibpath_var=LD_LIBRARY_PATH
10382 else
10383 # With GCC up to 2.95.x, collect2 would create an import file
10384 # for dependence libraries. The import file would start with
10385 # the line `#! .'. This would cause the generated library to
10386 # depend on `.', always an invalid library. This was fixed in
10387 # development snapshots of GCC prior to 3.0.
10388 case $host_os in
10389 aix4 | aix4.[01] | aix4.[01].*)
10390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10391 echo ' yes '
10392 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10393 :
10394 else
10395 can_build_shared=no
10396 fi
10397 ;;
10398 esac
10399 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10400 # soname into executable. Probably we can add versioning support to
10401 # collect2, so additional links can be useful in future.
10402 if test "$aix_use_runtimelinking" = yes; then
10403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10404 # instead of lib<name>.a to let people know that these are not
10405 # typical AIX shared libraries.
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407 else
10408 # We preserve .a as extension for shared libraries through AIX4.2
10409 # and later when we are not doing run time linking.
10410 library_names_spec='${libname}${release}.a $libname.a'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 fi
10413 shlibpath_var=LIBPATH
10414 fi
10415 ;;
10416
10417amigaos*)
10418 case $host_cpu in
10419 powerpc)
10420 # Since July 2007 AmigaOS4 officially supports .so libraries.
10421 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 ;;
10424 m68k)
10425 library_names_spec='$libname.ixlibrary $libname.a'
10426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10427 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'
10428 ;;
10429 esac
10430 ;;
10431
10432beos*)
10433 library_names_spec='${libname}${shared_ext}'
10434 dynamic_linker="$host_os ld.so"
10435 shlibpath_var=LIBRARY_PATH
10436 ;;
10437
10438bsdi[45]*)
10439 version_type=linux
10440 need_version=no
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10447 # the default ld.so.conf also contains /usr/contrib/lib and
10448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10449 # libtool to hard-code these into programs
10450 ;;
10451
10452cygwin* | mingw* | pw32* | cegcc*)
10453 version_type=windows
10454 shrext_cmds=".dll"
10455 need_version=no
10456 need_lib_prefix=no
10457
10458 case $GCC,$host_os in
10459 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10460 library_names_spec='$libname.dll.a'
10461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10462 postinstall_cmds='base_file=`basename \${file}`~
10463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10464 dldir=$destdir/`dirname \$dlpath`~
10465 test -d \$dldir || mkdir -p \$dldir~
10466 $install_prog $dir/$dlname \$dldir/$dlname~
10467 chmod a+x \$dldir/$dlname~
10468 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10469 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10470 fi'
10471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10472 dlpath=$dir/\$dldll~
10473 $RM \$dlpath'
10474 shlibpath_overrides_runpath=yes
10475
10476 case $host_os in
10477 cygwin*)
10478 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10479 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10480
10481 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10482 ;;
10483 mingw* | cegcc*)
10484 # MinGW DLLs use traditional 'lib' prefix
10485 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10486 ;;
10487 pw32*)
10488 # pw32 DLLs use 'pw' prefix rather than 'lib'
10489 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10490 ;;
10491 esac
10492 ;;
10493
10494 *)
10495 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10496 ;;
10497 esac
10498 dynamic_linker='Win32 ld.exe'
10499 # FIXME: first we should search . and the directory the executable is in
10500 shlibpath_var=PATH
10501 ;;
10502
10503darwin* | rhapsody*)
10504 dynamic_linker="$host_os dyld"
10505 version_type=darwin
10506 need_lib_prefix=no
10507 need_version=no
10508 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10509 soname_spec='${libname}${release}${major}$shared_ext'
10510 shlibpath_overrides_runpath=yes
10511 shlibpath_var=DYLD_LIBRARY_PATH
10512 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10513
10514 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10516 ;;
10517
10518dgux*)
10519 version_type=linux
10520 need_lib_prefix=no
10521 need_version=no
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 ;;
10526
10527freebsd* | dragonfly*)
10528 # DragonFly does not have aout. When/if they implement a new
10529 # versioning mechanism, adjust this.
10530 if test -x /usr/bin/objformat; then
10531 objformat=`/usr/bin/objformat`
10532 else
10533 case $host_os in
10534 freebsd[23].*) objformat=aout ;;
10535 *) objformat=elf ;;
10536 esac
10537 fi
10538 version_type=freebsd-$objformat
10539 case $version_type in
10540 freebsd-elf*)
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10542 need_version=no
10543 need_lib_prefix=no
10544 ;;
10545 freebsd-*)
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10547 need_version=yes
10548 ;;
10549 esac
10550 shlibpath_var=LD_LIBRARY_PATH
10551 case $host_os in
10552 freebsd2.*)
10553 shlibpath_overrides_runpath=yes
10554 ;;
10555 freebsd3.[01]* | freebsdelf3.[01]*)
10556 shlibpath_overrides_runpath=yes
10557 hardcode_into_libs=yes
10558 ;;
10559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10561 shlibpath_overrides_runpath=no
10562 hardcode_into_libs=yes
10563 ;;
10564 *) # from 4.6 on, and DragonFly
10565 shlibpath_overrides_runpath=yes
10566 hardcode_into_libs=yes
10567 ;;
10568 esac
10569 ;;
10570
10571gnu*)
10572 version_type=linux
10573 need_lib_prefix=no
10574 need_version=no
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 hardcode_into_libs=yes
10579 ;;
10580
10581haiku*)
10582 version_type=linux
10583 need_lib_prefix=no
10584 need_version=no
10585 dynamic_linker="$host_os runtime_loader"
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 shlibpath_var=LIBRARY_PATH
10589 shlibpath_overrides_runpath=yes
10590 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10591 hardcode_into_libs=yes
10592 ;;
10593
10594hpux9* | hpux10* | hpux11*)
10595 # Give a soname corresponding to the major version so that dld.sl refuses to
10596 # link against other versions.
10597 version_type=sunos
10598 need_lib_prefix=no
10599 need_version=no
10600 case $host_cpu in
10601 ia64*)
10602 shrext_cmds='.so'
10603 hardcode_into_libs=yes
10604 dynamic_linker="$host_os dld.so"
10605 shlibpath_var=LD_LIBRARY_PATH
10606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 if test "X$HPUX_IA64_MODE" = X32; then
10610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10611 else
10612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10613 fi
10614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10615 ;;
10616 hppa*64*)
10617 shrext_cmds='.sl'
10618 hardcode_into_libs=yes
10619 dynamic_linker="$host_os dld.sl"
10620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10626 ;;
10627 *)
10628 shrext_cmds='.sl'
10629 dynamic_linker="$host_os dld.sl"
10630 shlibpath_var=SHLIB_PATH
10631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 ;;
10635 esac
10636 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10637 postinstall_cmds='chmod 555 $lib'
10638 # or fails outright, so override atomically:
10639 install_override_mode=555
10640 ;;
10641
10642interix[3-9]*)
10643 version_type=linux
10644 need_lib_prefix=no
10645 need_version=no
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath=no
10651 hardcode_into_libs=yes
10652 ;;
10653
10654irix5* | irix6* | nonstopux*)
10655 case $host_os in
10656 nonstopux*) version_type=nonstopux ;;
10657 *)
10658 if test "$lt_cv_prog_gnu_ld" = yes; then
10659 version_type=linux
10660 else
10661 version_type=irix
10662 fi ;;
10663 esac
10664 need_lib_prefix=no
10665 need_version=no
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10668 case $host_os in
10669 irix5* | nonstopux*)
10670 libsuff= shlibsuff=
10671 ;;
10672 *)
10673 case $LD in # libtool.m4 will add one of these switches to LD
10674 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10675 libsuff= shlibsuff= libmagic=32-bit;;
10676 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10677 libsuff=32 shlibsuff=N32 libmagic=N32;;
10678 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10679 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10680 *) libsuff= shlibsuff= libmagic=never-match;;
10681 esac
10682 ;;
10683 esac
10684 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10685 shlibpath_overrides_runpath=no
10686 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10687 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10688 hardcode_into_libs=yes
10689 ;;
10690
10691# No shared lib support for Linux oldld, aout, or coff.
10692linux*oldld* | linux*aout* | linux*coff*)
10693 dynamic_linker=no
10694 ;;
10695
10696# This must be Linux ELF.
b1e21e5a
CL
10697
10698# uclinux* changes (here and below) have been submitted to the libtool
10699# project, but have not yet been accepted: they are GCC-local changes
10700# for the time being. (See
10701# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10702linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
48310492
RH
10703 version_type=linux
10704 need_lib_prefix=no
10705 need_version=no
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=no
10711
10712 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10713 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
48310492
RH
10714 $as_echo_n "(cached) " >&6
10715else
10716 lt_cv_shlibpath_overrides_runpath=no
10717 save_LDFLAGS=$LDFLAGS
10718 save_libdir=$libdir
10719 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10720 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722/* end confdefs.h. */
10723
10724int
10725main ()
10726{
10727
10728 ;
10729 return 0;
10730}
10731_ACEOF
10732if ac_fn_c_try_link "$LINENO"; then :
10733 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10734 lt_cv_shlibpath_overrides_runpath=yes
10735fi
10736fi
10737rm -f core conftest.err conftest.$ac_objext \
10738 conftest$ac_exeext conftest.$ac_ext
10739 LDFLAGS=$save_LDFLAGS
10740 libdir=$save_libdir
10741
10742fi
10743
10744 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10745
10746 # This implies no fast_install, which is unacceptable.
10747 # Some rework will be needed to allow for fast_install
10748 # before this can be enabled.
10749 hardcode_into_libs=yes
10750
10751 # Append ld.so.conf contents to the search path
10752 if test -f /etc/ld.so.conf; then
10753 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' ' '`
10754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10755 fi
10756
10757 # We used to test for /lib/ld.so.1 and disable shared libraries on
10758 # powerpc, because MkLinux only supported shared libraries with the
10759 # GNU dynamic linker. Since this was broken with cross compilers,
10760 # most powerpc-linux boxes support dynamic linking these days and
10761 # people can always --disable-shared, the test was removed, and we
10762 # assume the GNU/Linux dynamic linker is in use.
10763 dynamic_linker='GNU/Linux ld.so'
10764 ;;
10765
10766netbsd*)
10767 version_type=sunos
10768 need_lib_prefix=no
10769 need_version=no
10770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10773 dynamic_linker='NetBSD (a.out) ld.so'
10774 else
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 dynamic_linker='NetBSD ld.elf_so'
10778 fi
10779 shlibpath_var=LD_LIBRARY_PATH
10780 shlibpath_overrides_runpath=yes
10781 hardcode_into_libs=yes
10782 ;;
10783
10784newsos6)
10785 version_type=linux
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 shlibpath_var=LD_LIBRARY_PATH
10788 shlibpath_overrides_runpath=yes
10789 ;;
10790
10791*nto* | *qnx*)
10792 version_type=qnx
10793 need_lib_prefix=no
10794 need_version=no
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 shlibpath_overrides_runpath=no
10799 hardcode_into_libs=yes
10800 dynamic_linker='ldqnx.so'
10801 ;;
10802
10803openbsd*)
10804 version_type=sunos
10805 sys_lib_dlsearch_path_spec="/usr/lib"
10806 need_lib_prefix=no
10807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10808 case $host_os in
10809 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10810 *) need_version=no ;;
10811 esac
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10816 case $host_os in
10817 openbsd2.[89] | openbsd2.[89].*)
10818 shlibpath_overrides_runpath=no
10819 ;;
10820 *)
10821 shlibpath_overrides_runpath=yes
10822 ;;
10823 esac
10824 else
10825 shlibpath_overrides_runpath=yes
10826 fi
10827 ;;
10828
10829os2*)
10830 libname_spec='$name'
10831 shrext_cmds=".dll"
10832 need_lib_prefix=no
10833 library_names_spec='$libname${shared_ext} $libname.a'
10834 dynamic_linker='OS/2 ld.exe'
10835 shlibpath_var=LIBPATH
10836 ;;
10837
10838osf3* | osf4* | osf5*)
10839 version_type=osf
10840 need_lib_prefix=no
10841 need_version=no
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844 shlibpath_var=LD_LIBRARY_PATH
10845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10847 ;;
10848
10849rdos*)
10850 dynamic_linker=no
10851 ;;
10852
10853solaris*)
10854 version_type=linux
10855 need_lib_prefix=no
10856 need_version=no
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 shlibpath_overrides_runpath=yes
10861 hardcode_into_libs=yes
10862 # ldd complains unless libraries are executable
10863 postinstall_cmds='chmod +x $lib'
10864 ;;
10865
10866sunos4*)
10867 version_type=sunos
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath=yes
10872 if test "$with_gnu_ld" = yes; then
10873 need_lib_prefix=no
10874 fi
10875 need_version=yes
10876 ;;
10877
10878sysv4 | sysv4.3*)
10879 version_type=linux
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 case $host_vendor in
10884 sni)
10885 shlibpath_overrides_runpath=no
10886 need_lib_prefix=no
10887 runpath_var=LD_RUN_PATH
10888 ;;
10889 siemens)
10890 need_lib_prefix=no
10891 ;;
10892 motorola)
10893 need_lib_prefix=no
10894 need_version=no
10895 shlibpath_overrides_runpath=no
10896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10897 ;;
10898 esac
10899 ;;
10900
10901sysv4*MP*)
10902 if test -d /usr/nec ;then
10903 version_type=linux
10904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10905 soname_spec='$libname${shared_ext}.$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 fi
10908 ;;
10909
10910sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10911 version_type=freebsd-elf
10912 need_lib_prefix=no
10913 need_version=no
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=yes
10918 hardcode_into_libs=yes
10919 if test "$with_gnu_ld" = yes; then
10920 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10921 else
10922 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10923 case $host_os in
10924 sco3.2v5*)
10925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10926 ;;
10927 esac
10928 fi
10929 sys_lib_dlsearch_path_spec='/usr/lib'
10930 ;;
10931
10932tpf*)
10933 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10934 version_type=linux
10935 need_lib_prefix=no
10936 need_version=no
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=no
10940 hardcode_into_libs=yes
10941 ;;
10942
10943uts4*)
10944 version_type=linux
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946 soname_spec='${libname}${release}${shared_ext}$major'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 ;;
10949
10950*)
10951 dynamic_linker=no
10952 ;;
10953esac
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10955$as_echo "$dynamic_linker" >&6; }
10956test "$dynamic_linker" = no && can_build_shared=no
10957
10958variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10959if test "$GCC" = yes; then
10960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10961fi
10962
10963if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10965fi
10966if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10968fi
10969
10970
10971
10972
10973
10974
10975
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11062$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11063hardcode_action=
11064if test -n "$hardcode_libdir_flag_spec" ||
11065 test -n "$runpath_var" ||
11066 test "X$hardcode_automatic" = "Xyes" ; then
11067
11068 # We can hardcode non-existent directories.
11069 if test "$hardcode_direct" != no &&
11070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11071 # have to relink, otherwise we might link with an installed library
11072 # when we should be linking with a yet-to-be-installed one
11073 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11074 test "$hardcode_minus_L" != no; then
11075 # Linking always hardcodes the temporary library directory.
11076 hardcode_action=relink
11077 else
11078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11079 hardcode_action=immediate
11080 fi
11081else
11082 # We cannot hardcode anything, or else we can only hardcode existing
11083 # directories.
11084 hardcode_action=unsupported
11085fi
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11087$as_echo "$hardcode_action" >&6; }
11088
11089if test "$hardcode_action" = relink ||
11090 test "$inherit_rpath" = yes; then
11091 # Fast installation is not supported
11092 enable_fast_install=no
11093elif test "$shlibpath_overrides_runpath" = yes ||
11094 test "$enable_shared" = no; then
11095 # Fast installation is not necessary
11096 enable_fast_install=needless
11097fi
11098
11099
11100
11101
11102
11103
11104 if test "x$enable_dlopen" != xyes; then
11105 enable_dlopen=unknown
11106 enable_dlopen_self=unknown
11107 enable_dlopen_self_static=unknown
11108else
11109 lt_cv_dlopen=no
11110 lt_cv_dlopen_libs=
11111
11112 case $host_os in
11113 beos*)
11114 lt_cv_dlopen="load_add_on"
11115 lt_cv_dlopen_libs=
11116 lt_cv_dlopen_self=yes
11117 ;;
11118
11119 mingw* | pw32* | cegcc*)
11120 lt_cv_dlopen="LoadLibrary"
11121 lt_cv_dlopen_libs=
11122 ;;
11123
11124 cygwin*)
11125 lt_cv_dlopen="dlopen"
11126 lt_cv_dlopen_libs=
11127 ;;
11128
11129 darwin*)
11130 # if libdl is installed we need to link against it
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11132$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11133if ${ac_cv_lib_dl_dlopen+:} false; then :
48310492
RH
11134 $as_echo_n "(cached) " >&6
11135else
11136 ac_check_lib_save_LIBS=$LIBS
11137LIBS="-ldl $LIBS"
11138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139/* end confdefs.h. */
11140
11141/* Override any GCC internal prototype to avoid an error.
11142 Use char because int might match the return type of a GCC
11143 builtin and then its argument prototype would still apply. */
11144#ifdef __cplusplus
11145extern "C"
11146#endif
11147char dlopen ();
11148int
11149main ()
11150{
11151return dlopen ();
11152 ;
11153 return 0;
11154}
11155_ACEOF
11156if ac_fn_c_try_link "$LINENO"; then :
11157 ac_cv_lib_dl_dlopen=yes
11158else
11159 ac_cv_lib_dl_dlopen=no
11160fi
11161rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163LIBS=$ac_check_lib_save_LIBS
11164fi
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11166$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11167if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
48310492
RH
11168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11169else
11170
11171 lt_cv_dlopen="dyld"
11172 lt_cv_dlopen_libs=
11173 lt_cv_dlopen_self=yes
11174
11175fi
11176
11177 ;;
11178
11179 *)
11180 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11181if test "x$ac_cv_func_shl_load" = xyes; then :
48310492
RH
11182 lt_cv_dlopen="shl_load"
11183else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11185$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11186if ${ac_cv_lib_dld_shl_load+:} false; then :
48310492
RH
11187 $as_echo_n "(cached) " >&6
11188else
11189 ac_check_lib_save_LIBS=$LIBS
11190LIBS="-ldld $LIBS"
11191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h. */
11193
11194/* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11197#ifdef __cplusplus
11198extern "C"
11199#endif
11200char shl_load ();
11201int
11202main ()
11203{
11204return shl_load ();
11205 ;
11206 return 0;
11207}
11208_ACEOF
11209if ac_fn_c_try_link "$LINENO"; then :
11210 ac_cv_lib_dld_shl_load=yes
11211else
11212 ac_cv_lib_dld_shl_load=no
11213fi
11214rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216LIBS=$ac_check_lib_save_LIBS
11217fi
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11219$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11220if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
48310492
RH
11221 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11222else
11223 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11224if test "x$ac_cv_func_dlopen" = xyes; then :
48310492
RH
11225 lt_cv_dlopen="dlopen"
11226else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11228$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11229if ${ac_cv_lib_dl_dlopen+:} false; then :
48310492
RH
11230 $as_echo_n "(cached) " >&6
11231else
11232 ac_check_lib_save_LIBS=$LIBS
11233LIBS="-ldl $LIBS"
11234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235/* end confdefs.h. */
11236
11237/* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11240#ifdef __cplusplus
11241extern "C"
11242#endif
11243char dlopen ();
11244int
11245main ()
11246{
11247return dlopen ();
11248 ;
11249 return 0;
11250}
11251_ACEOF
11252if ac_fn_c_try_link "$LINENO"; then :
11253 ac_cv_lib_dl_dlopen=yes
11254else
11255 ac_cv_lib_dl_dlopen=no
11256fi
11257rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259LIBS=$ac_check_lib_save_LIBS
11260fi
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11262$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11263if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
48310492
RH
11264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11265else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11267$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11268if ${ac_cv_lib_svld_dlopen+:} false; then :
48310492
RH
11269 $as_echo_n "(cached) " >&6
11270else
11271 ac_check_lib_save_LIBS=$LIBS
11272LIBS="-lsvld $LIBS"
11273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274/* end confdefs.h. */
11275
11276/* Override any GCC internal prototype to avoid an error.
11277 Use char because int might match the return type of a GCC
11278 builtin and then its argument prototype would still apply. */
11279#ifdef __cplusplus
11280extern "C"
11281#endif
11282char dlopen ();
11283int
11284main ()
11285{
11286return dlopen ();
11287 ;
11288 return 0;
11289}
11290_ACEOF
11291if ac_fn_c_try_link "$LINENO"; then :
11292 ac_cv_lib_svld_dlopen=yes
11293else
11294 ac_cv_lib_svld_dlopen=no
11295fi
11296rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
11298LIBS=$ac_check_lib_save_LIBS
11299fi
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11301$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11302if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
48310492
RH
11303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11304else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11306$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11307if ${ac_cv_lib_dld_dld_link+:} false; then :
48310492
RH
11308 $as_echo_n "(cached) " >&6
11309else
11310 ac_check_lib_save_LIBS=$LIBS
11311LIBS="-ldld $LIBS"
11312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313/* end confdefs.h. */
11314
11315/* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11318#ifdef __cplusplus
11319extern "C"
11320#endif
11321char dld_link ();
11322int
11323main ()
11324{
11325return dld_link ();
11326 ;
11327 return 0;
11328}
11329_ACEOF
11330if ac_fn_c_try_link "$LINENO"; then :
11331 ac_cv_lib_dld_dld_link=yes
11332else
11333 ac_cv_lib_dld_dld_link=no
11334fi
11335rm -f core conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337LIBS=$ac_check_lib_save_LIBS
11338fi
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11340$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11341if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
48310492
RH
11342 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11343fi
11344
11345
11346fi
11347
11348
11349fi
11350
11351
11352fi
11353
11354
11355fi
11356
11357
11358fi
11359
11360 ;;
11361 esac
11362
11363 if test "x$lt_cv_dlopen" != xno; then
11364 enable_dlopen=yes
11365 else
11366 enable_dlopen=no
11367 fi
11368
11369 case $lt_cv_dlopen in
11370 dlopen)
11371 save_CPPFLAGS="$CPPFLAGS"
11372 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11373
11374 save_LDFLAGS="$LDFLAGS"
11375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11376
11377 save_LIBS="$LIBS"
11378 LIBS="$lt_cv_dlopen_libs $LIBS"
11379
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11381$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11382if ${lt_cv_dlopen_self+:} false; then :
48310492
RH
11383 $as_echo_n "(cached) " >&6
11384else
11385 if test "$cross_compiling" = yes; then :
11386 lt_cv_dlopen_self=cross
11387else
11388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11389 lt_status=$lt_dlunknown
11390 cat > conftest.$ac_ext <<_LT_EOF
47ddb895 11391#line 11391 "configure"
48310492
RH
11392#include "confdefs.h"
11393
11394#if HAVE_DLFCN_H
11395#include <dlfcn.h>
11396#endif
11397
11398#include <stdio.h>
11399
11400#ifdef RTLD_GLOBAL
11401# define LT_DLGLOBAL RTLD_GLOBAL
11402#else
11403# ifdef DL_GLOBAL
11404# define LT_DLGLOBAL DL_GLOBAL
11405# else
11406# define LT_DLGLOBAL 0
11407# endif
11408#endif
11409
11410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11411 find out it does not work in some platform. */
11412#ifndef LT_DLLAZY_OR_NOW
11413# ifdef RTLD_LAZY
11414# define LT_DLLAZY_OR_NOW RTLD_LAZY
11415# else
11416# ifdef DL_LAZY
11417# define LT_DLLAZY_OR_NOW DL_LAZY
11418# else
11419# ifdef RTLD_NOW
11420# define LT_DLLAZY_OR_NOW RTLD_NOW
11421# else
11422# ifdef DL_NOW
11423# define LT_DLLAZY_OR_NOW DL_NOW
11424# else
11425# define LT_DLLAZY_OR_NOW 0
11426# endif
11427# endif
11428# endif
11429# endif
11430#endif
11431
11432/* When -fvisbility=hidden is used, assume the code has been annotated
11433 correspondingly for the symbols needed. */
11434#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11435void fnord () __attribute__((visibility("default")));
11436#endif
11437
11438void fnord () { int i=42; }
11439int main ()
11440{
11441 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11442 int status = $lt_dlunknown;
11443
11444 if (self)
11445 {
11446 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11447 else
11448 {
11449 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11450 else puts (dlerror ());
11451 }
11452 /* dlclose (self); */
11453 }
11454 else
11455 puts (dlerror ());
11456
11457 return status;
11458}
11459_LT_EOF
11460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11461 (eval $ac_link) 2>&5
11462 ac_status=$?
11463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11464 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11465 (./conftest; exit; ) >&5 2>/dev/null
11466 lt_status=$?
11467 case x$lt_status in
11468 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11469 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11470 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11471 esac
11472 else :
11473 # compilation failed
11474 lt_cv_dlopen_self=no
11475 fi
11476fi
11477rm -fr conftest*
11478
11479
11480fi
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11482$as_echo "$lt_cv_dlopen_self" >&6; }
11483
11484 if test "x$lt_cv_dlopen_self" = xyes; then
11485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11487$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11488if ${lt_cv_dlopen_self_static+:} false; then :
48310492
RH
11489 $as_echo_n "(cached) " >&6
11490else
11491 if test "$cross_compiling" = yes; then :
11492 lt_cv_dlopen_self_static=cross
11493else
11494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11495 lt_status=$lt_dlunknown
11496 cat > conftest.$ac_ext <<_LT_EOF
47ddb895 11497#line 11497 "configure"
48310492
RH
11498#include "confdefs.h"
11499
11500#if HAVE_DLFCN_H
11501#include <dlfcn.h>
11502#endif
11503
11504#include <stdio.h>
11505
11506#ifdef RTLD_GLOBAL
11507# define LT_DLGLOBAL RTLD_GLOBAL
11508#else
11509# ifdef DL_GLOBAL
11510# define LT_DLGLOBAL DL_GLOBAL
11511# else
11512# define LT_DLGLOBAL 0
11513# endif
11514#endif
11515
11516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11517 find out it does not work in some platform. */
11518#ifndef LT_DLLAZY_OR_NOW
11519# ifdef RTLD_LAZY
11520# define LT_DLLAZY_OR_NOW RTLD_LAZY
11521# else
11522# ifdef DL_LAZY
11523# define LT_DLLAZY_OR_NOW DL_LAZY
11524# else
11525# ifdef RTLD_NOW
11526# define LT_DLLAZY_OR_NOW RTLD_NOW
11527# else
11528# ifdef DL_NOW
11529# define LT_DLLAZY_OR_NOW DL_NOW
11530# else
11531# define LT_DLLAZY_OR_NOW 0
11532# endif
11533# endif
11534# endif
11535# endif
11536#endif
11537
11538/* When -fvisbility=hidden is used, assume the code has been annotated
11539 correspondingly for the symbols needed. */
11540#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11541void fnord () __attribute__((visibility("default")));
11542#endif
11543
11544void fnord () { int i=42; }
11545int main ()
11546{
11547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11548 int status = $lt_dlunknown;
11549
11550 if (self)
11551 {
11552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11553 else
11554 {
11555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11556 else puts (dlerror ());
11557 }
11558 /* dlclose (self); */
11559 }
11560 else
11561 puts (dlerror ());
11562
11563 return status;
11564}
11565_LT_EOF
11566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11567 (eval $ac_link) 2>&5
11568 ac_status=$?
11569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11570 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11571 (./conftest; exit; ) >&5 2>/dev/null
11572 lt_status=$?
11573 case x$lt_status in
11574 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11575 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11576 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11577 esac
11578 else :
11579 # compilation failed
11580 lt_cv_dlopen_self_static=no
11581 fi
11582fi
11583rm -fr conftest*
11584
11585
11586fi
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11588$as_echo "$lt_cv_dlopen_self_static" >&6; }
11589 fi
11590
11591 CPPFLAGS="$save_CPPFLAGS"
11592 LDFLAGS="$save_LDFLAGS"
11593 LIBS="$save_LIBS"
11594 ;;
11595 esac
11596
11597 case $lt_cv_dlopen_self in
11598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11599 *) enable_dlopen_self=unknown ;;
11600 esac
11601
11602 case $lt_cv_dlopen_self_static in
11603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11604 *) enable_dlopen_self_static=unknown ;;
11605 esac
11606fi
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624striplib=
11625old_striplib=
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11627$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11628if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11629 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11630 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11632$as_echo "yes" >&6; }
11633else
11634# FIXME - insert some real tests, host_os isn't really good enough
11635 case $host_os in
11636 darwin*)
11637 if test -n "$STRIP" ; then
11638 striplib="$STRIP -x"
11639 old_striplib="$STRIP -S"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11641$as_echo "yes" >&6; }
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644$as_echo "no" >&6; }
11645 fi
11646 ;;
11647 *)
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649$as_echo "no" >&6; }
11650 ;;
11651 esac
11652fi
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665 # Report which library types will actually be built
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11667$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11669$as_echo "$can_build_shared" >&6; }
11670
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11672$as_echo_n "checking whether to build shared libraries... " >&6; }
11673 test "$can_build_shared" = "no" && enable_shared=no
11674
11675 # On AIX, shared libraries and static libraries use the same namespace, and
11676 # are all built from PIC.
11677 case $host_os in
11678 aix3*)
11679 test "$enable_shared" = yes && enable_static=no
11680 if test -n "$RANLIB"; then
11681 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11682 postinstall_cmds='$RANLIB $lib'
11683 fi
11684 ;;
11685
11686 aix[4-9]*)
11687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11688 test "$enable_shared" = yes && enable_static=no
11689 fi
11690 ;;
11691 esac
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11693$as_echo "$enable_shared" >&6; }
11694
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11696$as_echo_n "checking whether to build static libraries... " >&6; }
11697 # Make sure either enable_shared or enable_static is yes.
11698 test "$enable_shared" = yes || enable_static=yes
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11700$as_echo "$enable_static" >&6; }
11701
11702
11703
11704
11705fi
11706ac_ext=c
11707ac_cpp='$CPP $CPPFLAGS'
11708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11710ac_compiler_gnu=$ac_cv_c_compiler_gnu
11711
11712CC="$lt_save_CC"
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726 ac_config_commands="$ac_config_commands libtool"
11727
11728
11729
11730
11731# Only expand once:
11732
11733
11734
11735
11736
dc3368d0
KT
11737case $host in
11738 *-cygwin* | *-mingw*)
11739 # 'host' will be top-level target in the case of a target lib,
11740 # we must compare to with_cross_host to decide if this is a native
11741 # or cross-compiler and select where to install dlls appropriately.
11742 if test -n "$with_cross_host" &&
11743 test x"$with_cross_host" != x"no"; then
11744 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11745 else
11746 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11747 fi
11748 ;;
11749 *)
11750 lt_host_flags=
11751 ;;
11752esac
11753
11754
11755
11756
11757
11758
fa3cd3c3
RH
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11760$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11761 # Check whether --enable-maintainer-mode was given.
11762if test "${enable_maintainer_mode+set}" = set; then :
11763 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11764else
11765 USE_MAINTAINER_MODE=no
11766fi
11767
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11769$as_echo "$USE_MAINTAINER_MODE" >&6; }
11770 if test $USE_MAINTAINER_MODE = yes; then
11771 MAINTAINER_MODE_TRUE=
11772 MAINTAINER_MODE_FALSE='#'
11773else
11774 MAINTAINER_MODE_TRUE='#'
11775 MAINTAINER_MODE_FALSE=
11776fi
11777
11778 MAINT=$MAINTAINER_MODE_TRUE
11779
11780
11781
48310492 11782# For libtool versioning info, format is CURRENT:REVISION:AGE
c29c36ad 11783libtool_VERSION=3:0:2
48310492
RH
11784
11785
dc3368d0
KT
11786# Check for used threading-model
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
11788$as_echo_n "checking for thread model used by GCC... " >&6; }
11789target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
11791$as_echo "$target_thread_file" >&6; }
11792
9d0e85af
SE
11793case "$target" in
11794 *aarch64*)
11795 ac_ext=c
11796ac_cpp='$CPP $CPPFLAGS'
11797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11799ac_compiler_gnu=$ac_cv_c_compiler_gnu
11800
11801enable_aarch64_lse=
11802save_CFLAGS="$CFLAGS"
11803for real_option in -march=armv8-a+lse; do
11804 # Do the check with the no- prefix removed since gcc silently
11805 # accepts any -Wno-* option on purpose
11806 case $real_option in
11807 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11808 *) option=$real_option ;;
11809 esac
11810 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11811
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11813$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 11814if eval \${$as_acx_Woption+:} false; then :
9d0e85af
SE
11815 $as_echo_n "(cached) " >&6
11816else
11817 CFLAGS="$option"
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819/* end confdefs.h. */
11820
11821int
11822main ()
11823{
11824
11825 ;
11826 return 0;
11827}
11828_ACEOF
11829if ac_fn_c_try_compile "$LINENO"; then :
11830 eval "$as_acx_Woption=yes"
11831else
11832 eval "$as_acx_Woption=no"
11833fi
11834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835
11836fi
11837eval ac_res=\$$as_acx_Woption
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11839$as_echo "$ac_res" >&6; }
11840 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11841 enable_aarch64_lse="$enable_aarch64_lse${enable_aarch64_lse:+ }$real_option"
11842fi
11843 done
11844CFLAGS="$save_CFLAGS"
11845ac_ext=c
11846ac_cpp='$CPP $CPPFLAGS'
11847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849ac_compiler_gnu=$ac_cv_c_compiler_gnu
11850
11851
11852 ;;
11853esac
11854
48310492
RH
11855# Get target configury.
11856. ${srcdir}/configure.tgt
11857if test -n "$UNSUPPORTED"; then
22e05272 11858 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
48310492
RH
11859fi
11860
141abc6f
SE
11861# Write out the ifunc resolver arg type.
11862
11863cat >>confdefs.h <<_ACEOF
11864#define IFUNC_RESOLVER_ARGS $IFUNC_RESOLVER_ARGS
11865_ACEOF
11866
11867
48310492
RH
11868# Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11869# make silly decisions about what the cpu can do.
11870CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11871
11872# Check header files.
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11874$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 11875if ${ac_cv_header_stdc+:} false; then :
48310492
RH
11876 $as_echo_n "(cached) " >&6
11877else
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879/* end confdefs.h. */
11880#include <stdlib.h>
11881#include <stdarg.h>
11882#include <string.h>
11883#include <float.h>
11884
11885int
11886main ()
11887{
11888
11889 ;
11890 return 0;
11891}
11892_ACEOF
11893if ac_fn_c_try_compile "$LINENO"; then :
11894 ac_cv_header_stdc=yes
11895else
11896 ac_cv_header_stdc=no
11897fi
11898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899
11900if test $ac_cv_header_stdc = yes; then
11901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903/* end confdefs.h. */
11904#include <string.h>
11905
11906_ACEOF
11907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11908 $EGREP "memchr" >/dev/null 2>&1; then :
11909
11910else
11911 ac_cv_header_stdc=no
11912fi
11913rm -f conftest*
11914
11915fi
11916
11917if test $ac_cv_header_stdc = yes; then
11918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h. */
11921#include <stdlib.h>
11922
11923_ACEOF
11924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11925 $EGREP "free" >/dev/null 2>&1; then :
11926
11927else
11928 ac_cv_header_stdc=no
11929fi
11930rm -f conftest*
11931
11932fi
11933
11934if test $ac_cv_header_stdc = yes; then
11935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11936 if test "$cross_compiling" = yes; then :
11937 :
11938else
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940/* end confdefs.h. */
11941#include <ctype.h>
11942#include <stdlib.h>
11943#if ((' ' & 0x0FF) == 0x020)
11944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11946#else
11947# define ISLOWER(c) \
11948 (('a' <= (c) && (c) <= 'i') \
11949 || ('j' <= (c) && (c) <= 'r') \
11950 || ('s' <= (c) && (c) <= 'z'))
11951# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11952#endif
11953
11954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11955int
11956main ()
11957{
11958 int i;
11959 for (i = 0; i < 256; i++)
11960 if (XOR (islower (i), ISLOWER (i))
11961 || toupper (i) != TOUPPER (i))
11962 return 2;
11963 return 0;
11964}
11965_ACEOF
11966if ac_fn_c_try_run "$LINENO"; then :
11967
11968else
11969 ac_cv_header_stdc=no
11970fi
11971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11972 conftest.$ac_objext conftest.beam conftest.$ac_ext
11973fi
11974
11975fi
11976fi
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11978$as_echo "$ac_cv_header_stdc" >&6; }
11979if test $ac_cv_header_stdc = yes; then
11980
11981$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11982
11983fi
11984
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
11986$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
22e05272 11987if ${gcc_cv_header_string+:} false; then :
48310492
RH
11988 $as_echo_n "(cached) " >&6
11989else
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991/* end confdefs.h. */
11992#include <string.h>
11993#include <strings.h>
11994int
11995main ()
11996{
11997
11998 ;
11999 return 0;
12000}
12001_ACEOF
12002if ac_fn_c_try_compile "$LINENO"; then :
12003 gcc_cv_header_string=yes
12004else
12005 gcc_cv_header_string=no
12006fi
12007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12008fi
12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
12010$as_echo "$gcc_cv_header_string" >&6; }
12011if test $gcc_cv_header_string = yes; then
12012
12013$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
12014
12015fi
12016
12017
12018
12019inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12020
12021acx_cv_header_stdint=stddef.h
12022acx_cv_header_stdint_kind="(already complete)"
12023for i in stdint.h $inttype_headers; do
12024 unset ac_cv_type_uintptr_t
12025 unset ac_cv_type_uintmax_t
12026 unset ac_cv_type_int_least32_t
12027 unset ac_cv_type_int_fast32_t
12028 unset ac_cv_type_uint64_t
12029 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12030 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12031#include <$i>
12032"
22e05272 12033if test "x$ac_cv_type_uintmax_t" = xyes; then :
48310492
RH
12034 acx_cv_header_stdint=$i
12035else
12036 continue
12037fi
12038
12039 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12040#include <$i>
12041"
22e05272 12042if test "x$ac_cv_type_uintptr_t" = xyes; then :
48310492
RH
12043
12044else
12045 acx_cv_header_stdint_kind="(mostly complete)"
12046fi
12047
12048 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12049#include <$i>
12050"
22e05272 12051if test "x$ac_cv_type_int_least32_t" = xyes; then :
48310492
RH
12052
12053else
12054 acx_cv_header_stdint_kind="(mostly complete)"
12055fi
12056
12057 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12058#include <$i>
12059"
22e05272 12060if test "x$ac_cv_type_int_fast32_t" = xyes; then :
48310492
RH
12061
12062else
12063 acx_cv_header_stdint_kind="(mostly complete)"
12064fi
12065
12066 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12067#include <$i>
12068"
22e05272 12069if test "x$ac_cv_type_uint64_t" = xyes; then :
48310492
RH
12070
12071else
12072 acx_cv_header_stdint_kind="(lacks uint64_t)"
12073fi
12074
12075 break
12076done
12077if test "$acx_cv_header_stdint" = stddef.h; then
12078 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12079 for i in stdint.h $inttype_headers; do
12080 unset ac_cv_type_uintptr_t
12081 unset ac_cv_type_uint32_t
12082 unset ac_cv_type_uint64_t
12083 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12084 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12085#include <$i>
12086"
22e05272 12087if test "x$ac_cv_type_uint32_t" = xyes; then :
48310492
RH
12088 acx_cv_header_stdint=$i
12089else
12090 continue
12091fi
12092
12093 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12094#include <$i>
12095"
22e05272 12096if test "x$ac_cv_type_uint64_t" = xyes; then :
48310492
RH
12097
12098fi
12099
12100 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12101#include <$i>
12102"
22e05272 12103if test "x$ac_cv_type_uintptr_t" = xyes; then :
48310492
RH
12104
12105fi
12106
12107 break
12108 done
12109fi
12110if test "$acx_cv_header_stdint" = stddef.h; then
12111 acx_cv_header_stdint_kind="(u_intXX_t style)"
12112 for i in sys/types.h $inttype_headers; do
12113 unset ac_cv_type_u_int32_t
12114 unset ac_cv_type_u_int64_t
12115 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12116 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12117#include <$i>
12118"
22e05272 12119if test "x$ac_cv_type_u_int32_t" = xyes; then :
48310492
RH
12120 acx_cv_header_stdint=$i
12121else
12122 continue
12123fi
12124
12125 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12126#include <$i>
12127"
22e05272 12128if test "x$ac_cv_type_u_int64_t" = xyes; then :
48310492
RH
12129
12130fi
12131
12132 break
12133 done
12134fi
12135if test "$acx_cv_header_stdint" = stddef.h; then
12136 acx_cv_header_stdint_kind="(using manual detection)"
12137fi
12138
12139test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12140test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12141test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12142test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12143test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12144
12145# ----------------- Summarize what we found so far
12146
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12148$as_echo_n "checking what to include in gstdint.h... " >&6; }
12149
12150case `$as_basename -- gstdint.h ||
12151$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12152 Xgstdint.h : 'X\(//\)$' \| \
12153 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12154$as_echo X/gstdint.h |
12155 sed '/^.*\/\([^/][^/]*\)\/*$/{
12156 s//\1/
12157 q
12158 }
12159 /^X\/\(\/\/\)$/{
12160 s//\1/
12161 q
12162 }
12163 /^X\/\(\/\).*/{
12164 s//\1/
12165 q
12166 }
12167 s/.*/./; q'` in
12168 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12169$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12170 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12171$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12172 *) ;;
12173esac
12174
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12176$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12177
12178# ----------------- done included file, check C basic types --------
12179
12180# Lacking an uintptr_t? Test size of void *
12181case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12182 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12183# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12184# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12185# This bug is HP SR number 8606223364.
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12187$as_echo_n "checking size of void *... " >&6; }
22e05272 12188if ${ac_cv_sizeof_void_p+:} false; then :
48310492
RH
12189 $as_echo_n "(cached) " >&6
12190else
12191 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12192
12193else
12194 if test "$ac_cv_type_void_p" = yes; then
12195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12197as_fn_error 77 "cannot compute sizeof (void *)
12198See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12199 else
12200 ac_cv_sizeof_void_p=0
12201 fi
12202fi
12203
12204fi
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12206$as_echo "$ac_cv_sizeof_void_p" >&6; }
12207
12208
12209
12210cat >>confdefs.h <<_ACEOF
12211#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12212_ACEOF
12213
12214 ;;
12215esac
12216
12217# Lacking an uint64_t? Test size of long
12218case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12219 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12220# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12221# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12222# This bug is HP SR number 8606223364.
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12224$as_echo_n "checking size of long... " >&6; }
22e05272 12225if ${ac_cv_sizeof_long+:} false; then :
48310492
RH
12226 $as_echo_n "(cached) " >&6
12227else
12228 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12229
12230else
12231 if test "$ac_cv_type_long" = yes; then
12232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12234as_fn_error 77 "cannot compute sizeof (long)
12235See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12236 else
12237 ac_cv_sizeof_long=0
12238 fi
12239fi
12240
12241fi
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12243$as_echo "$ac_cv_sizeof_long" >&6; }
12244
12245
12246
12247cat >>confdefs.h <<_ACEOF
12248#define SIZEOF_LONG $ac_cv_sizeof_long
12249_ACEOF
12250
12251 ;;
12252esac
12253
12254if test $acx_cv_header_stdint = stddef.h; then
12255 # Lacking a good header? Test size of everything and deduce all types.
12256 # The cast to long int works around a bug in the HP C Compiler
12257# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12258# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12259# This bug is HP SR number 8606223364.
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12261$as_echo_n "checking size of int... " >&6; }
22e05272 12262if ${ac_cv_sizeof_int+:} false; then :
48310492
RH
12263 $as_echo_n "(cached) " >&6
12264else
12265 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12266
12267else
12268 if test "$ac_cv_type_int" = yes; then
12269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12271as_fn_error 77 "cannot compute sizeof (int)
12272See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12273 else
12274 ac_cv_sizeof_int=0
12275 fi
12276fi
12277
12278fi
12279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12280$as_echo "$ac_cv_sizeof_int" >&6; }
12281
12282
12283
12284cat >>confdefs.h <<_ACEOF
12285#define SIZEOF_INT $ac_cv_sizeof_int
12286_ACEOF
12287
12288
12289 # The cast to long int works around a bug in the HP C Compiler
12290# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12291# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12292# This bug is HP SR number 8606223364.
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12294$as_echo_n "checking size of short... " >&6; }
22e05272 12295if ${ac_cv_sizeof_short+:} false; then :
48310492
RH
12296 $as_echo_n "(cached) " >&6
12297else
12298 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12299
12300else
12301 if test "$ac_cv_type_short" = yes; then
12302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12304as_fn_error 77 "cannot compute sizeof (short)
12305See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12306 else
12307 ac_cv_sizeof_short=0
12308 fi
12309fi
12310
12311fi
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12313$as_echo "$ac_cv_sizeof_short" >&6; }
12314
12315
12316
12317cat >>confdefs.h <<_ACEOF
12318#define SIZEOF_SHORT $ac_cv_sizeof_short
12319_ACEOF
12320
12321
12322 # The cast to long int works around a bug in the HP C Compiler
12323# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12324# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12325# This bug is HP SR number 8606223364.
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12327$as_echo_n "checking size of char... " >&6; }
22e05272 12328if ${ac_cv_sizeof_char+:} false; then :
48310492
RH
12329 $as_echo_n "(cached) " >&6
12330else
12331 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12332
12333else
12334 if test "$ac_cv_type_char" = yes; then
12335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12337as_fn_error 77 "cannot compute sizeof (char)
12338See \`config.log' for more details" "$LINENO" 5; }
48310492
RH
12339 else
12340 ac_cv_sizeof_char=0
12341 fi
12342fi
12343
12344fi
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12346$as_echo "$ac_cv_sizeof_char" >&6; }
12347
12348
12349
12350cat >>confdefs.h <<_ACEOF
12351#define SIZEOF_CHAR $ac_cv_sizeof_char
12352_ACEOF
12353
12354
12355
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12357$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12358 case "$ac_cv_sizeof_char" in
12359 1) acx_cv_type_int8_t=char ;;
22e05272 12360 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
48310492
RH
12361 esac
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12363$as_echo "$acx_cv_type_int8_t" >&6; }
12364
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12366$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12367 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12368 2:*) acx_cv_type_int16_t=int ;;
12369 *:2) acx_cv_type_int16_t=short ;;
22e05272 12370 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
48310492
RH
12371 esac
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12373$as_echo "$acx_cv_type_int16_t" >&6; }
12374
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12376$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12377 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12378 4:*) acx_cv_type_int32_t=int ;;
12379 *:4) acx_cv_type_int32_t=long ;;
22e05272 12380 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
48310492
RH
12381 esac
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12383$as_echo "$acx_cv_type_int32_t" >&6; }
12384fi
12385
12386# These tests are here to make the output prettier
12387
12388if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12389 case "$ac_cv_sizeof_long" in
12390 8) acx_cv_type_int64_t=long ;;
12391 esac
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12393$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12395$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12396fi
12397
12398# Now we can use the above types
12399
12400if test "$ac_cv_type_uintptr_t" != yes; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12402$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12403 case $ac_cv_sizeof_void_p in
12404 2) acx_cv_type_intptr_t=int16_t ;;
12405 4) acx_cv_type_intptr_t=int32_t ;;
12406 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 12407 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
48310492
RH
12408 esac
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12410$as_echo "$acx_cv_type_intptr_t" >&6; }
12411fi
12412
12413# ----------------- done all checks, emit header -------------
12414ac_config_commands="$ac_config_commands gstdint.h"
12415
12416
12417
267bac10
JM
12418for ac_header in fenv.h
12419do :
12420 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
22e05272 12421if test "x$ac_cv_header_fenv_h" = xyes; then :
267bac10
JM
12422 cat >>confdefs.h <<_ACEOF
12423#define HAVE_FENV_H 1
12424_ACEOF
12425
12426fi
12427
12428done
12429
48310492
RH
12430
12431# Check for common type sizes
12432
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12434$as_echo_n "checking for 1 byte integer... " >&6; }
22e05272 12435if ${libat_cv_have_mode_QI+:} false; then :
48310492
RH
12436 $as_echo_n "(cached) " >&6
12437else
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439/* end confdefs.h. */
12440int x __attribute__((mode(QI)));
12441_ACEOF
12442if ac_fn_c_try_compile "$LINENO"; then :
12443 libat_cv_have_mode_QI=yes
12444else
12445 libat_cv_have_mode_QI=no
12446fi
12447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448fi
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12450$as_echo "$libat_cv_have_mode_QI" >&6; }
12451
12452 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12453
12454cat >>confdefs.h <<_ACEOF
12455#define HAVE_INT1 $yesno
12456_ACEOF
12457
12458
12459 if test x$libat_cv_have_mode_QI = xyes; then
12460 SIZES="$SIZES 1"
12461 fi
12462
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12465$as_echo_n "checking for 2 byte integer... " >&6; }
22e05272 12466if ${libat_cv_have_mode_HI+:} false; then :
48310492
RH
12467 $as_echo_n "(cached) " >&6
12468else
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470/* end confdefs.h. */
12471int x __attribute__((mode(HI)));
12472_ACEOF
12473if ac_fn_c_try_compile "$LINENO"; then :
12474 libat_cv_have_mode_HI=yes
12475else
12476 libat_cv_have_mode_HI=no
12477fi
12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479fi
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12481$as_echo "$libat_cv_have_mode_HI" >&6; }
12482
12483 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12484
12485cat >>confdefs.h <<_ACEOF
12486#define HAVE_INT2 $yesno
12487_ACEOF
12488
12489
12490 if test x$libat_cv_have_mode_HI = xyes; then
12491 SIZES="$SIZES 2"
12492 fi
12493
12494
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12496$as_echo_n "checking for 4 byte integer... " >&6; }
22e05272 12497if ${libat_cv_have_mode_SI+:} false; then :
48310492
RH
12498 $as_echo_n "(cached) " >&6
12499else
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501/* end confdefs.h. */
12502int x __attribute__((mode(SI)));
12503_ACEOF
12504if ac_fn_c_try_compile "$LINENO"; then :
12505 libat_cv_have_mode_SI=yes
12506else
12507 libat_cv_have_mode_SI=no
12508fi
12509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510fi
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12512$as_echo "$libat_cv_have_mode_SI" >&6; }
12513
12514 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12515
12516cat >>confdefs.h <<_ACEOF
12517#define HAVE_INT4 $yesno
12518_ACEOF
12519
12520
12521 if test x$libat_cv_have_mode_SI = xyes; then
12522 SIZES="$SIZES 4"
12523 fi
12524
12525
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12527$as_echo_n "checking for 8 byte integer... " >&6; }
22e05272 12528if ${libat_cv_have_mode_DI+:} false; then :
48310492
RH
12529 $as_echo_n "(cached) " >&6
12530else
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532/* end confdefs.h. */
12533int x __attribute__((mode(DI)));
12534_ACEOF
12535if ac_fn_c_try_compile "$LINENO"; then :
12536 libat_cv_have_mode_DI=yes
12537else
12538 libat_cv_have_mode_DI=no
12539fi
12540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12541fi
12542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12543$as_echo "$libat_cv_have_mode_DI" >&6; }
12544
12545 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12546
12547cat >>confdefs.h <<_ACEOF
12548#define HAVE_INT8 $yesno
12549_ACEOF
12550
12551
12552 if test x$libat_cv_have_mode_DI = xyes; then
12553 SIZES="$SIZES 8"
12554 fi
12555
12556
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12558$as_echo_n "checking for 16 byte integer... " >&6; }
22e05272 12559if ${libat_cv_have_mode_TI+:} false; then :
48310492
RH
12560 $as_echo_n "(cached) " >&6
12561else
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563/* end confdefs.h. */
12564int x __attribute__((mode(TI)));
12565_ACEOF
12566if ac_fn_c_try_compile "$LINENO"; then :
12567 libat_cv_have_mode_TI=yes
12568else
12569 libat_cv_have_mode_TI=no
12570fi
12571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572fi
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12574$as_echo "$libat_cv_have_mode_TI" >&6; }
12575
12576 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12577
12578cat >>confdefs.h <<_ACEOF
12579#define HAVE_INT16 $yesno
12580_ACEOF
12581
12582
12583 if test x$libat_cv_have_mode_TI = xyes; then
12584 SIZES="$SIZES 16"
12585 fi
12586
12587
12588
12589# Check for compiler builtins of atomic operations.
12590
12591 # Do link tests if possible, instead asm tests, limited to some platforms
12592 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12593 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12594 atomic_builtins_link_tests=no
12595 if test x$gcc_no_link != xyes; then
12596 # Can do link tests. Limit to some tested platforms
12597 case "$host" in
12598 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
12599 atomic_builtins_link_tests=yes
12600 ;;
12601 esac
12602 fi
12603
12604
12605
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12607$as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
22e05272 12608if ${libat_cv_have_at_ldst_1+:} false; then :
48310492
RH
12609 $as_echo_n "(cached) " >&6
12610else
12611
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613/* end confdefs.h. */
12614
12615int
12616main ()
12617{
12618typedef int T __attribute__((mode(QI)));
12619 T *x; volatile T sink; asm("" : "=g"(x));
12620 sink = __atomic_load_n(x, 0);
12621 __atomic_store_n(x, sink, 0);
12622 ;
12623 return 0;
12624}
12625_ACEOF
12626 if test x$atomic_builtins_link_tests = xyes; then
12627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12628 (eval $ac_link) 2>&5
12629 ac_status=$?
12630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12631 test $ac_status = 0; }; then
12632 eval libat_cv_have_at_ldst_1=yes
12633 else
12634 eval libat_cv_have_at_ldst_1=no
12635 fi
12636 else
12637 old_CFLAGS="$CFLAGS"
12638 # Compile unoptimized.
aaea76b3 12639 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12641 (eval $ac_compile) 2>&5
12642 ac_status=$?
12643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12644 test $ac_status = 0; }; then
12645 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12646 eval libat_cv_have_at_ldst_1=no
12647 else
12648 eval libat_cv_have_at_ldst_1=yes
12649 fi
0fe5522f
RH
12650 else
12651 eval libat_cv_have_at_ldst_1=no
48310492
RH
12652 fi
12653 CFLAGS="$old_CFLAGS"
12654 fi
12655 rm -f conftest*
12656
12657fi
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12659$as_echo "$libat_cv_have_at_ldst_1" >&6; }
12660
12661
12662 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12663
12664cat >>confdefs.h <<_ACEOF
12665#define HAVE_ATOMIC_LDST_1 $yesno
12666_ACEOF
12667
12668
12669
12670
12671
12672
bc437a56 12673
48310492
RH
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12675$as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
22e05272 12676if ${libat_cv_have_at_ldst_2+:} false; then :
48310492
RH
12677 $as_echo_n "(cached) " >&6
12678else
12679
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681/* end confdefs.h. */
12682
12683int
12684main ()
12685{
12686typedef int T __attribute__((mode(HI)));
12687 T *x; volatile T sink; asm("" : "=g"(x));
12688 sink = __atomic_load_n(x, 0);
12689 __atomic_store_n(x, sink, 0);
12690 ;
12691 return 0;
12692}
12693_ACEOF
12694 if test x$atomic_builtins_link_tests = xyes; then
12695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12696 (eval $ac_link) 2>&5
12697 ac_status=$?
12698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699 test $ac_status = 0; }; then
12700 eval libat_cv_have_at_ldst_2=yes
12701 else
12702 eval libat_cv_have_at_ldst_2=no
12703 fi
12704 else
12705 old_CFLAGS="$CFLAGS"
12706 # Compile unoptimized.
aaea76b3 12707 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12709 (eval $ac_compile) 2>&5
12710 ac_status=$?
12711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12712 test $ac_status = 0; }; then
12713 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12714 eval libat_cv_have_at_ldst_2=no
12715 else
12716 eval libat_cv_have_at_ldst_2=yes
12717 fi
0fe5522f
RH
12718 else
12719 eval libat_cv_have_at_ldst_2=no
48310492
RH
12720 fi
12721 CFLAGS="$old_CFLAGS"
12722 fi
12723 rm -f conftest*
12724
12725fi
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12727$as_echo "$libat_cv_have_at_ldst_2" >&6; }
12728
12729
12730 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12731
12732cat >>confdefs.h <<_ACEOF
12733#define HAVE_ATOMIC_LDST_2 $yesno
12734_ACEOF
12735
12736
12737
12738
12739
12740
bc437a56 12741
48310492
RH
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12743$as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
22e05272 12744if ${libat_cv_have_at_ldst_4+:} false; then :
48310492
RH
12745 $as_echo_n "(cached) " >&6
12746else
12747
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749/* end confdefs.h. */
12750
12751int
12752main ()
12753{
12754typedef int T __attribute__((mode(SI)));
12755 T *x; volatile T sink; asm("" : "=g"(x));
12756 sink = __atomic_load_n(x, 0);
12757 __atomic_store_n(x, sink, 0);
12758 ;
12759 return 0;
12760}
12761_ACEOF
12762 if test x$atomic_builtins_link_tests = xyes; then
12763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12764 (eval $ac_link) 2>&5
12765 ac_status=$?
12766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12767 test $ac_status = 0; }; then
12768 eval libat_cv_have_at_ldst_4=yes
12769 else
12770 eval libat_cv_have_at_ldst_4=no
12771 fi
12772 else
12773 old_CFLAGS="$CFLAGS"
12774 # Compile unoptimized.
aaea76b3 12775 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12777 (eval $ac_compile) 2>&5
12778 ac_status=$?
12779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12780 test $ac_status = 0; }; then
12781 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12782 eval libat_cv_have_at_ldst_4=no
12783 else
12784 eval libat_cv_have_at_ldst_4=yes
12785 fi
0fe5522f
RH
12786 else
12787 eval libat_cv_have_at_ldst_4=no
48310492
RH
12788 fi
12789 CFLAGS="$old_CFLAGS"
12790 fi
12791 rm -f conftest*
12792
12793fi
12794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12795$as_echo "$libat_cv_have_at_ldst_4" >&6; }
12796
12797
12798 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12799
12800cat >>confdefs.h <<_ACEOF
12801#define HAVE_ATOMIC_LDST_4 $yesno
12802_ACEOF
12803
12804
12805
12806
12807
12808
bc437a56 12809
48310492
RH
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12811$as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
22e05272 12812if ${libat_cv_have_at_ldst_8+:} false; then :
48310492
RH
12813 $as_echo_n "(cached) " >&6
12814else
12815
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817/* end confdefs.h. */
12818
12819int
12820main ()
12821{
12822typedef int T __attribute__((mode(DI)));
12823 T *x; volatile T sink; asm("" : "=g"(x));
12824 sink = __atomic_load_n(x, 0);
12825 __atomic_store_n(x, sink, 0);
12826 ;
12827 return 0;
12828}
12829_ACEOF
12830 if test x$atomic_builtins_link_tests = xyes; then
12831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12832 (eval $ac_link) 2>&5
12833 ac_status=$?
12834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12835 test $ac_status = 0; }; then
12836 eval libat_cv_have_at_ldst_8=yes
12837 else
12838 eval libat_cv_have_at_ldst_8=no
12839 fi
12840 else
12841 old_CFLAGS="$CFLAGS"
12842 # Compile unoptimized.
aaea76b3 12843 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12845 (eval $ac_compile) 2>&5
12846 ac_status=$?
12847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12848 test $ac_status = 0; }; then
12849 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12850 eval libat_cv_have_at_ldst_8=no
12851 else
12852 eval libat_cv_have_at_ldst_8=yes
12853 fi
0fe5522f
RH
12854 else
12855 eval libat_cv_have_at_ldst_8=no
48310492
RH
12856 fi
12857 CFLAGS="$old_CFLAGS"
12858 fi
12859 rm -f conftest*
12860
12861fi
12862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12863$as_echo "$libat_cv_have_at_ldst_8" >&6; }
12864
12865
12866 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12867
12868cat >>confdefs.h <<_ACEOF
12869#define HAVE_ATOMIC_LDST_8 $yesno
12870_ACEOF
12871
12872
12873
12874
12875
12876
bc437a56 12877
48310492
RH
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12879$as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
22e05272 12880if ${libat_cv_have_at_ldst_16+:} false; then :
48310492
RH
12881 $as_echo_n "(cached) " >&6
12882else
12883
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885/* end confdefs.h. */
12886
12887int
12888main ()
12889{
12890typedef int T __attribute__((mode(TI)));
12891 T *x; volatile T sink; asm("" : "=g"(x));
12892 sink = __atomic_load_n(x, 0);
12893 __atomic_store_n(x, sink, 0);
12894 ;
12895 return 0;
12896}
12897_ACEOF
12898 if test x$atomic_builtins_link_tests = xyes; then
12899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12900 (eval $ac_link) 2>&5
12901 ac_status=$?
12902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12903 test $ac_status = 0; }; then
12904 eval libat_cv_have_at_ldst_16=yes
12905 else
12906 eval libat_cv_have_at_ldst_16=no
12907 fi
12908 else
12909 old_CFLAGS="$CFLAGS"
12910 # Compile unoptimized.
aaea76b3 12911 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12913 (eval $ac_compile) 2>&5
12914 ac_status=$?
12915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12916 test $ac_status = 0; }; then
12917 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12918 eval libat_cv_have_at_ldst_16=no
12919 else
12920 eval libat_cv_have_at_ldst_16=yes
12921 fi
0fe5522f
RH
12922 else
12923 eval libat_cv_have_at_ldst_16=no
48310492
RH
12924 fi
12925 CFLAGS="$old_CFLAGS"
12926 fi
12927 rm -f conftest*
12928
12929fi
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
12931$as_echo "$libat_cv_have_at_ldst_16" >&6; }
12932
12933
12934 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
12935
12936cat >>confdefs.h <<_ACEOF
12937#define HAVE_ATOMIC_LDST_16 $yesno
12938_ACEOF
12939
12940
12941
12942
12943
12944
12945
bc437a56 12946
48310492
RH
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
12948$as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
22e05272 12949if ${libat_cv_have_at_tas_1+:} false; then :
48310492
RH
12950 $as_echo_n "(cached) " >&6
12951else
12952
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954/* end confdefs.h. */
12955
12956int
12957main ()
12958{
12959typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12960 __atomic_test_and_set(x, 0);
12961 ;
12962 return 0;
12963}
12964_ACEOF
12965 if test x$atomic_builtins_link_tests = xyes; then
12966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12967 (eval $ac_link) 2>&5
12968 ac_status=$?
12969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12970 test $ac_status = 0; }; then
12971 eval libat_cv_have_at_tas_1=yes
12972 else
12973 eval libat_cv_have_at_tas_1=no
12974 fi
12975 else
12976 old_CFLAGS="$CFLAGS"
12977 # Compile unoptimized.
aaea76b3 12978 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
12979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12980 (eval $ac_compile) 2>&5
12981 ac_status=$?
12982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12983 test $ac_status = 0; }; then
12984 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12985 eval libat_cv_have_at_tas_1=no
12986 else
12987 eval libat_cv_have_at_tas_1=yes
12988 fi
0fe5522f
RH
12989 else
12990 eval libat_cv_have_at_tas_1=no
48310492
RH
12991 fi
12992 CFLAGS="$old_CFLAGS"
12993 fi
12994 rm -f conftest*
12995
12996fi
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
12998$as_echo "$libat_cv_have_at_tas_1" >&6; }
12999
13000
13001 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
13002
13003cat >>confdefs.h <<_ACEOF
13004#define HAVE_ATOMIC_TAS_1 $yesno
13005_ACEOF
13006
13007
13008
13009
13010
13011
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
13013$as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
22e05272 13014if ${libat_cv_have_at_tas_2+:} false; then :
48310492
RH
13015 $as_echo_n "(cached) " >&6
13016else
13017
13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019/* end confdefs.h. */
13020
13021int
13022main ()
13023{
13024typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13025 __atomic_test_and_set(x, 0);
13026 ;
13027 return 0;
13028}
13029_ACEOF
13030 if test x$atomic_builtins_link_tests = xyes; then
13031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13032 (eval $ac_link) 2>&5
13033 ac_status=$?
13034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13035 test $ac_status = 0; }; then
13036 eval libat_cv_have_at_tas_2=yes
13037 else
13038 eval libat_cv_have_at_tas_2=no
13039 fi
13040 else
13041 old_CFLAGS="$CFLAGS"
13042 # Compile unoptimized.
aaea76b3 13043 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13045 (eval $ac_compile) 2>&5
13046 ac_status=$?
13047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13048 test $ac_status = 0; }; then
13049 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13050 eval libat_cv_have_at_tas_2=no
13051 else
13052 eval libat_cv_have_at_tas_2=yes
13053 fi
0fe5522f
RH
13054 else
13055 eval libat_cv_have_at_tas_2=no
48310492
RH
13056 fi
13057 CFLAGS="$old_CFLAGS"
13058 fi
13059 rm -f conftest*
13060
13061fi
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
13063$as_echo "$libat_cv_have_at_tas_2" >&6; }
13064
13065
13066 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
13067
13068cat >>confdefs.h <<_ACEOF
13069#define HAVE_ATOMIC_TAS_2 $yesno
13070_ACEOF
13071
13072
13073
13074
13075
13076
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
13078$as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
22e05272 13079if ${libat_cv_have_at_tas_4+:} false; then :
48310492
RH
13080 $as_echo_n "(cached) " >&6
13081else
13082
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084/* end confdefs.h. */
13085
13086int
13087main ()
13088{
13089typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13090 __atomic_test_and_set(x, 0);
13091 ;
13092 return 0;
13093}
13094_ACEOF
13095 if test x$atomic_builtins_link_tests = xyes; then
13096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13097 (eval $ac_link) 2>&5
13098 ac_status=$?
13099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13100 test $ac_status = 0; }; then
13101 eval libat_cv_have_at_tas_4=yes
13102 else
13103 eval libat_cv_have_at_tas_4=no
13104 fi
13105 else
13106 old_CFLAGS="$CFLAGS"
13107 # Compile unoptimized.
aaea76b3 13108 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13110 (eval $ac_compile) 2>&5
13111 ac_status=$?
13112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13113 test $ac_status = 0; }; then
13114 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13115 eval libat_cv_have_at_tas_4=no
13116 else
13117 eval libat_cv_have_at_tas_4=yes
13118 fi
0fe5522f
RH
13119 else
13120 eval libat_cv_have_at_tas_4=no
48310492
RH
13121 fi
13122 CFLAGS="$old_CFLAGS"
13123 fi
13124 rm -f conftest*
13125
13126fi
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
13128$as_echo "$libat_cv_have_at_tas_4" >&6; }
13129
13130
13131 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
13132
13133cat >>confdefs.h <<_ACEOF
13134#define HAVE_ATOMIC_TAS_4 $yesno
13135_ACEOF
13136
13137
13138
13139
13140
13141
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
13143$as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
22e05272 13144if ${libat_cv_have_at_tas_8+:} false; then :
48310492
RH
13145 $as_echo_n "(cached) " >&6
13146else
13147
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h. */
13150
13151int
13152main ()
13153{
13154typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13155 __atomic_test_and_set(x, 0);
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160 if test x$atomic_builtins_link_tests = xyes; then
13161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13162 (eval $ac_link) 2>&5
13163 ac_status=$?
13164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13165 test $ac_status = 0; }; then
13166 eval libat_cv_have_at_tas_8=yes
13167 else
13168 eval libat_cv_have_at_tas_8=no
13169 fi
13170 else
13171 old_CFLAGS="$CFLAGS"
13172 # Compile unoptimized.
aaea76b3 13173 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13175 (eval $ac_compile) 2>&5
13176 ac_status=$?
13177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13178 test $ac_status = 0; }; then
13179 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13180 eval libat_cv_have_at_tas_8=no
13181 else
13182 eval libat_cv_have_at_tas_8=yes
13183 fi
0fe5522f
RH
13184 else
13185 eval libat_cv_have_at_tas_8=no
48310492
RH
13186 fi
13187 CFLAGS="$old_CFLAGS"
13188 fi
13189 rm -f conftest*
13190
13191fi
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
13193$as_echo "$libat_cv_have_at_tas_8" >&6; }
13194
13195
13196 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
13197
13198cat >>confdefs.h <<_ACEOF
13199#define HAVE_ATOMIC_TAS_8 $yesno
13200_ACEOF
13201
13202
13203
13204
13205
13206
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
13208$as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
22e05272 13209if ${libat_cv_have_at_tas_16+:} false; then :
48310492
RH
13210 $as_echo_n "(cached) " >&6
13211else
13212
13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214/* end confdefs.h. */
13215
13216int
13217main ()
13218{
13219typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13220 __atomic_test_and_set(x, 0);
13221 ;
13222 return 0;
13223}
13224_ACEOF
13225 if test x$atomic_builtins_link_tests = xyes; then
13226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13227 (eval $ac_link) 2>&5
13228 ac_status=$?
13229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13230 test $ac_status = 0; }; then
13231 eval libat_cv_have_at_tas_16=yes
13232 else
13233 eval libat_cv_have_at_tas_16=no
13234 fi
13235 else
13236 old_CFLAGS="$CFLAGS"
13237 # Compile unoptimized.
aaea76b3 13238 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13240 (eval $ac_compile) 2>&5
13241 ac_status=$?
13242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13243 test $ac_status = 0; }; then
13244 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13245 eval libat_cv_have_at_tas_16=no
13246 else
13247 eval libat_cv_have_at_tas_16=yes
13248 fi
0fe5522f
RH
13249 else
13250 eval libat_cv_have_at_tas_16=no
48310492
RH
13251 fi
13252 CFLAGS="$old_CFLAGS"
13253 fi
13254 rm -f conftest*
13255
13256fi
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
13258$as_echo "$libat_cv_have_at_tas_16" >&6; }
13259
13260
13261 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
13262
13263cat >>confdefs.h <<_ACEOF
13264#define HAVE_ATOMIC_TAS_16 $yesno
13265_ACEOF
13266
13267
13268
13269
13270
13271
13272
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
13274$as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
22e05272 13275if ${libat_cv_have_at_exch_1+:} false; then :
48310492
RH
13276 $as_echo_n "(cached) " >&6
13277else
13278
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280/* end confdefs.h. */
13281
13282int
13283main ()
13284{
13285typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
13286 __atomic_exchange_n(x, 0, 0);
13287 ;
13288 return 0;
13289}
13290_ACEOF
13291 if test x$atomic_builtins_link_tests = xyes; then
13292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13293 (eval $ac_link) 2>&5
13294 ac_status=$?
13295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13296 test $ac_status = 0; }; then
13297 eval libat_cv_have_at_exch_1=yes
13298 else
13299 eval libat_cv_have_at_exch_1=no
13300 fi
13301 else
13302 old_CFLAGS="$CFLAGS"
13303 # Compile unoptimized.
aaea76b3 13304 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13306 (eval $ac_compile) 2>&5
13307 ac_status=$?
13308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13309 test $ac_status = 0; }; then
13310 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13311 eval libat_cv_have_at_exch_1=no
13312 else
13313 eval libat_cv_have_at_exch_1=yes
13314 fi
0fe5522f
RH
13315 else
13316 eval libat_cv_have_at_exch_1=no
48310492
RH
13317 fi
13318 CFLAGS="$old_CFLAGS"
13319 fi
13320 rm -f conftest*
13321
13322fi
13323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
13324$as_echo "$libat_cv_have_at_exch_1" >&6; }
13325
13326
13327 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
13328
13329cat >>confdefs.h <<_ACEOF
13330#define HAVE_ATOMIC_EXCHANGE_1 $yesno
13331_ACEOF
13332
13333
13334
13335
13336
13337
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
13339$as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
22e05272 13340if ${libat_cv_have_at_exch_2+:} false; then :
48310492
RH
13341 $as_echo_n "(cached) " >&6
13342else
13343
13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345/* end confdefs.h. */
13346
13347int
13348main ()
13349{
13350typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13351 __atomic_exchange_n(x, 0, 0);
13352 ;
13353 return 0;
13354}
13355_ACEOF
13356 if test x$atomic_builtins_link_tests = xyes; then
13357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13358 (eval $ac_link) 2>&5
13359 ac_status=$?
13360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13361 test $ac_status = 0; }; then
13362 eval libat_cv_have_at_exch_2=yes
13363 else
13364 eval libat_cv_have_at_exch_2=no
13365 fi
13366 else
13367 old_CFLAGS="$CFLAGS"
13368 # Compile unoptimized.
aaea76b3 13369 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13371 (eval $ac_compile) 2>&5
13372 ac_status=$?
13373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13374 test $ac_status = 0; }; then
13375 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13376 eval libat_cv_have_at_exch_2=no
13377 else
13378 eval libat_cv_have_at_exch_2=yes
13379 fi
0fe5522f
RH
13380 else
13381 eval libat_cv_have_at_exch_2=no
48310492
RH
13382 fi
13383 CFLAGS="$old_CFLAGS"
13384 fi
13385 rm -f conftest*
13386
13387fi
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13389$as_echo "$libat_cv_have_at_exch_2" >&6; }
13390
13391
13392 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13393
13394cat >>confdefs.h <<_ACEOF
13395#define HAVE_ATOMIC_EXCHANGE_2 $yesno
13396_ACEOF
13397
13398
13399
13400
13401
13402
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13404$as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
22e05272 13405if ${libat_cv_have_at_exch_4+:} false; then :
48310492
RH
13406 $as_echo_n "(cached) " >&6
13407else
13408
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410/* end confdefs.h. */
13411
13412int
13413main ()
13414{
13415typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13416 __atomic_exchange_n(x, 0, 0);
13417 ;
13418 return 0;
13419}
13420_ACEOF
13421 if test x$atomic_builtins_link_tests = xyes; then
13422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13423 (eval $ac_link) 2>&5
13424 ac_status=$?
13425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13426 test $ac_status = 0; }; then
13427 eval libat_cv_have_at_exch_4=yes
13428 else
13429 eval libat_cv_have_at_exch_4=no
13430 fi
13431 else
13432 old_CFLAGS="$CFLAGS"
13433 # Compile unoptimized.
aaea76b3 13434 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13436 (eval $ac_compile) 2>&5
13437 ac_status=$?
13438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13439 test $ac_status = 0; }; then
13440 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13441 eval libat_cv_have_at_exch_4=no
13442 else
13443 eval libat_cv_have_at_exch_4=yes
13444 fi
0fe5522f
RH
13445 else
13446 eval libat_cv_have_at_exch_4=no
48310492
RH
13447 fi
13448 CFLAGS="$old_CFLAGS"
13449 fi
13450 rm -f conftest*
13451
13452fi
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13454$as_echo "$libat_cv_have_at_exch_4" >&6; }
13455
13456
13457 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13458
13459cat >>confdefs.h <<_ACEOF
13460#define HAVE_ATOMIC_EXCHANGE_4 $yesno
13461_ACEOF
13462
13463
13464
13465
13466
13467
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13469$as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
22e05272 13470if ${libat_cv_have_at_exch_8+:} false; then :
48310492
RH
13471 $as_echo_n "(cached) " >&6
13472else
13473
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475/* end confdefs.h. */
13476
13477int
13478main ()
13479{
13480typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13481 __atomic_exchange_n(x, 0, 0);
13482 ;
13483 return 0;
13484}
13485_ACEOF
13486 if test x$atomic_builtins_link_tests = xyes; then
13487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13488 (eval $ac_link) 2>&5
13489 ac_status=$?
13490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13491 test $ac_status = 0; }; then
13492 eval libat_cv_have_at_exch_8=yes
13493 else
13494 eval libat_cv_have_at_exch_8=no
13495 fi
13496 else
13497 old_CFLAGS="$CFLAGS"
13498 # Compile unoptimized.
aaea76b3 13499 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13501 (eval $ac_compile) 2>&5
13502 ac_status=$?
13503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13504 test $ac_status = 0; }; then
13505 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13506 eval libat_cv_have_at_exch_8=no
13507 else
13508 eval libat_cv_have_at_exch_8=yes
13509 fi
0fe5522f
RH
13510 else
13511 eval libat_cv_have_at_exch_8=no
48310492
RH
13512 fi
13513 CFLAGS="$old_CFLAGS"
13514 fi
13515 rm -f conftest*
13516
13517fi
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13519$as_echo "$libat_cv_have_at_exch_8" >&6; }
13520
13521
13522 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13523
13524cat >>confdefs.h <<_ACEOF
13525#define HAVE_ATOMIC_EXCHANGE_8 $yesno
13526_ACEOF
13527
13528
13529
13530
13531
13532
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13534$as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
22e05272 13535if ${libat_cv_have_at_exch_16+:} false; then :
48310492
RH
13536 $as_echo_n "(cached) " >&6
13537else
13538
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540/* end confdefs.h. */
13541
13542int
13543main ()
13544{
13545typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13546 __atomic_exchange_n(x, 0, 0);
13547 ;
13548 return 0;
13549}
13550_ACEOF
13551 if test x$atomic_builtins_link_tests = xyes; then
13552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13553 (eval $ac_link) 2>&5
13554 ac_status=$?
13555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13556 test $ac_status = 0; }; then
13557 eval libat_cv_have_at_exch_16=yes
13558 else
13559 eval libat_cv_have_at_exch_16=no
13560 fi
13561 else
13562 old_CFLAGS="$CFLAGS"
13563 # Compile unoptimized.
aaea76b3 13564 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13566 (eval $ac_compile) 2>&5
13567 ac_status=$?
13568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13569 test $ac_status = 0; }; then
13570 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13571 eval libat_cv_have_at_exch_16=no
13572 else
13573 eval libat_cv_have_at_exch_16=yes
13574 fi
0fe5522f
RH
13575 else
13576 eval libat_cv_have_at_exch_16=no
48310492
RH
13577 fi
13578 CFLAGS="$old_CFLAGS"
13579 fi
13580 rm -f conftest*
13581
13582fi
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13584$as_echo "$libat_cv_have_at_exch_16" >&6; }
13585
13586
13587 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13588
13589cat >>confdefs.h <<_ACEOF
13590#define HAVE_ATOMIC_EXCHANGE_16 $yesno
13591_ACEOF
13592
13593
13594
13595
13596
13597
13598
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13600$as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
22e05272 13601if ${libat_cv_have_at_cas_1+:} false; then :
48310492
RH
13602 $as_echo_n "(cached) " >&6
13603else
13604
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606/* end confdefs.h. */
13607
13608int
13609main ()
13610{
13611typedef int T __attribute__((mode(QI))); T *x, *y;
13612 asm("" : "=g"(x), "=g"(y));
13613 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13614 ;
13615 return 0;
13616}
13617_ACEOF
13618 if test x$atomic_builtins_link_tests = xyes; then
13619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13620 (eval $ac_link) 2>&5
13621 ac_status=$?
13622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623 test $ac_status = 0; }; then
13624 eval libat_cv_have_at_cas_1=yes
13625 else
13626 eval libat_cv_have_at_cas_1=no
13627 fi
13628 else
13629 old_CFLAGS="$CFLAGS"
13630 # Compile unoptimized.
aaea76b3 13631 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13633 (eval $ac_compile) 2>&5
13634 ac_status=$?
13635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13636 test $ac_status = 0; }; then
13637 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13638 eval libat_cv_have_at_cas_1=no
13639 else
13640 eval libat_cv_have_at_cas_1=yes
13641 fi
0fe5522f
RH
13642 else
13643 eval libat_cv_have_at_cas_1=no
48310492
RH
13644 fi
13645 CFLAGS="$old_CFLAGS"
13646 fi
13647 rm -f conftest*
13648
13649fi
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13651$as_echo "$libat_cv_have_at_cas_1" >&6; }
13652
13653
13654 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13655
13656cat >>confdefs.h <<_ACEOF
13657#define HAVE_ATOMIC_CAS_1 $yesno
13658_ACEOF
13659
13660
13661
13662
13663
13664
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13666$as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
22e05272 13667if ${libat_cv_have_at_cas_2+:} false; then :
48310492
RH
13668 $as_echo_n "(cached) " >&6
13669else
13670
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672/* end confdefs.h. */
13673
13674int
13675main ()
13676{
13677typedef int T __attribute__((mode(HI))); T *x, *y;
13678 asm("" : "=g"(x), "=g"(y));
13679 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13680 ;
13681 return 0;
13682}
13683_ACEOF
13684 if test x$atomic_builtins_link_tests = xyes; then
13685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13686 (eval $ac_link) 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }; then
13690 eval libat_cv_have_at_cas_2=yes
13691 else
13692 eval libat_cv_have_at_cas_2=no
13693 fi
13694 else
13695 old_CFLAGS="$CFLAGS"
13696 # Compile unoptimized.
aaea76b3 13697 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13699 (eval $ac_compile) 2>&5
13700 ac_status=$?
13701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13702 test $ac_status = 0; }; then
13703 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13704 eval libat_cv_have_at_cas_2=no
13705 else
13706 eval libat_cv_have_at_cas_2=yes
13707 fi
0fe5522f
RH
13708 else
13709 eval libat_cv_have_at_cas_2=no
48310492
RH
13710 fi
13711 CFLAGS="$old_CFLAGS"
13712 fi
13713 rm -f conftest*
13714
13715fi
13716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13717$as_echo "$libat_cv_have_at_cas_2" >&6; }
13718
13719
13720 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13721
13722cat >>confdefs.h <<_ACEOF
13723#define HAVE_ATOMIC_CAS_2 $yesno
13724_ACEOF
13725
13726
13727
13728
13729
13730
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13732$as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
22e05272 13733if ${libat_cv_have_at_cas_4+:} false; then :
48310492
RH
13734 $as_echo_n "(cached) " >&6
13735else
13736
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738/* end confdefs.h. */
13739
13740int
13741main ()
13742{
13743typedef int T __attribute__((mode(SI))); T *x, *y;
13744 asm("" : "=g"(x), "=g"(y));
13745 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13746 ;
13747 return 0;
13748}
13749_ACEOF
13750 if test x$atomic_builtins_link_tests = xyes; then
13751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13752 (eval $ac_link) 2>&5
13753 ac_status=$?
13754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13755 test $ac_status = 0; }; then
13756 eval libat_cv_have_at_cas_4=yes
13757 else
13758 eval libat_cv_have_at_cas_4=no
13759 fi
13760 else
13761 old_CFLAGS="$CFLAGS"
13762 # Compile unoptimized.
aaea76b3 13763 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13765 (eval $ac_compile) 2>&5
13766 ac_status=$?
13767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13768 test $ac_status = 0; }; then
13769 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13770 eval libat_cv_have_at_cas_4=no
13771 else
13772 eval libat_cv_have_at_cas_4=yes
13773 fi
0fe5522f
RH
13774 else
13775 eval libat_cv_have_at_cas_4=no
48310492
RH
13776 fi
13777 CFLAGS="$old_CFLAGS"
13778 fi
13779 rm -f conftest*
13780
13781fi
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13783$as_echo "$libat_cv_have_at_cas_4" >&6; }
13784
13785
13786 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13787
13788cat >>confdefs.h <<_ACEOF
13789#define HAVE_ATOMIC_CAS_4 $yesno
13790_ACEOF
13791
13792
13793
13794
13795
13796
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13798$as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
22e05272 13799if ${libat_cv_have_at_cas_8+:} false; then :
48310492
RH
13800 $as_echo_n "(cached) " >&6
13801else
13802
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804/* end confdefs.h. */
13805
13806int
13807main ()
13808{
13809typedef int T __attribute__((mode(DI))); T *x, *y;
13810 asm("" : "=g"(x), "=g"(y));
13811 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13812 ;
13813 return 0;
13814}
13815_ACEOF
13816 if test x$atomic_builtins_link_tests = xyes; then
13817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13818 (eval $ac_link) 2>&5
13819 ac_status=$?
13820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13821 test $ac_status = 0; }; then
13822 eval libat_cv_have_at_cas_8=yes
13823 else
13824 eval libat_cv_have_at_cas_8=no
13825 fi
13826 else
13827 old_CFLAGS="$CFLAGS"
13828 # Compile unoptimized.
aaea76b3 13829 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13831 (eval $ac_compile) 2>&5
13832 ac_status=$?
13833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13834 test $ac_status = 0; }; then
13835 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13836 eval libat_cv_have_at_cas_8=no
13837 else
13838 eval libat_cv_have_at_cas_8=yes
13839 fi
0fe5522f
RH
13840 else
13841 eval libat_cv_have_at_cas_8=no
48310492
RH
13842 fi
13843 CFLAGS="$old_CFLAGS"
13844 fi
13845 rm -f conftest*
13846
13847fi
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13849$as_echo "$libat_cv_have_at_cas_8" >&6; }
13850
13851
13852 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13853
13854cat >>confdefs.h <<_ACEOF
13855#define HAVE_ATOMIC_CAS_8 $yesno
13856_ACEOF
13857
13858
13859
13860
13861
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13864$as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
22e05272 13865if ${libat_cv_have_at_cas_16+:} false; then :
48310492
RH
13866 $as_echo_n "(cached) " >&6
13867else
13868
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870/* end confdefs.h. */
13871
13872int
13873main ()
13874{
13875typedef int T __attribute__((mode(TI))); T *x, *y;
13876 asm("" : "=g"(x), "=g"(y));
13877 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13878 ;
13879 return 0;
13880}
13881_ACEOF
13882 if test x$atomic_builtins_link_tests = xyes; then
13883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13884 (eval $ac_link) 2>&5
13885 ac_status=$?
13886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13887 test $ac_status = 0; }; then
13888 eval libat_cv_have_at_cas_16=yes
13889 else
13890 eval libat_cv_have_at_cas_16=no
13891 fi
13892 else
13893 old_CFLAGS="$CFLAGS"
13894 # Compile unoptimized.
aaea76b3 13895 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13897 (eval $ac_compile) 2>&5
13898 ac_status=$?
13899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13900 test $ac_status = 0; }; then
13901 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13902 eval libat_cv_have_at_cas_16=no
13903 else
13904 eval libat_cv_have_at_cas_16=yes
13905 fi
0fe5522f
RH
13906 else
13907 eval libat_cv_have_at_cas_16=no
48310492
RH
13908 fi
13909 CFLAGS="$old_CFLAGS"
13910 fi
13911 rm -f conftest*
13912
13913fi
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13915$as_echo "$libat_cv_have_at_cas_16" >&6; }
13916
13917
13918 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13919
13920cat >>confdefs.h <<_ACEOF
13921#define HAVE_ATOMIC_CAS_16 $yesno
13922_ACEOF
13923
13924
13925
13926
13927
13928
13929
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
13931$as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
22e05272 13932if ${libat_cv_have_at_fadd_1+:} false; then :
48310492
RH
13933 $as_echo_n "(cached) " >&6
13934else
13935
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h. */
13938
13939int
13940main ()
13941{
13942typedef int T __attribute__((mode(QI))); T *x, y;
13943 asm("" : "=g"(x), "=g"(y));
13944 __atomic_fetch_add (x, y, 0);
13945 __atomic_add_fetch (x, y, 0);
13946 ;
13947 return 0;
13948}
13949_ACEOF
13950 if test x$atomic_builtins_link_tests = xyes; then
13951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13952 (eval $ac_link) 2>&5
13953 ac_status=$?
13954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13955 test $ac_status = 0; }; then
13956 eval libat_cv_have_at_fadd_1=yes
13957 else
13958 eval libat_cv_have_at_fadd_1=no
13959 fi
13960 else
13961 old_CFLAGS="$CFLAGS"
13962 # Compile unoptimized.
aaea76b3 13963 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
13964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13965 (eval $ac_compile) 2>&5
13966 ac_status=$?
13967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13968 test $ac_status = 0; }; then
13969 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13970 eval libat_cv_have_at_fadd_1=no
13971 else
13972 eval libat_cv_have_at_fadd_1=yes
13973 fi
0fe5522f
RH
13974 else
13975 eval libat_cv_have_at_fadd_1=no
48310492
RH
13976 fi
13977 CFLAGS="$old_CFLAGS"
13978 fi
13979 rm -f conftest*
13980
13981fi
13982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
13983$as_echo "$libat_cv_have_at_fadd_1" >&6; }
13984
13985
13986 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
13987
13988cat >>confdefs.h <<_ACEOF
13989#define HAVE_ATOMIC_FETCH_ADD_1 $yesno
13990_ACEOF
13991
13992
13993
13994
13995
13996
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
13998$as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
22e05272 13999if ${libat_cv_have_at_fadd_2+:} false; then :
48310492
RH
14000 $as_echo_n "(cached) " >&6
14001else
14002
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004/* end confdefs.h. */
14005
14006int
14007main ()
14008{
14009typedef int T __attribute__((mode(HI))); T *x, y;
14010 asm("" : "=g"(x), "=g"(y));
14011 __atomic_fetch_add (x, y, 0);
14012 __atomic_add_fetch (x, y, 0);
14013 ;
14014 return 0;
14015}
14016_ACEOF
14017 if test x$atomic_builtins_link_tests = xyes; then
14018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14019 (eval $ac_link) 2>&5
14020 ac_status=$?
14021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022 test $ac_status = 0; }; then
14023 eval libat_cv_have_at_fadd_2=yes
14024 else
14025 eval libat_cv_have_at_fadd_2=no
14026 fi
14027 else
14028 old_CFLAGS="$CFLAGS"
14029 # Compile unoptimized.
aaea76b3 14030 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14032 (eval $ac_compile) 2>&5
14033 ac_status=$?
14034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; }; then
14036 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14037 eval libat_cv_have_at_fadd_2=no
14038 else
14039 eval libat_cv_have_at_fadd_2=yes
14040 fi
0fe5522f
RH
14041 else
14042 eval libat_cv_have_at_fadd_2=no
48310492
RH
14043 fi
14044 CFLAGS="$old_CFLAGS"
14045 fi
14046 rm -f conftest*
14047
14048fi
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
14050$as_echo "$libat_cv_have_at_fadd_2" >&6; }
14051
14052
14053 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
14054
14055cat >>confdefs.h <<_ACEOF
14056#define HAVE_ATOMIC_FETCH_ADD_2 $yesno
14057_ACEOF
14058
14059
14060
14061
14062
14063
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
14065$as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
22e05272 14066if ${libat_cv_have_at_fadd_4+:} false; then :
48310492
RH
14067 $as_echo_n "(cached) " >&6
14068else
14069
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071/* end confdefs.h. */
14072
14073int
14074main ()
14075{
14076typedef int T __attribute__((mode(SI))); T *x, y;
14077 asm("" : "=g"(x), "=g"(y));
14078 __atomic_fetch_add (x, y, 0);
14079 __atomic_add_fetch (x, y, 0);
14080 ;
14081 return 0;
14082}
14083_ACEOF
14084 if test x$atomic_builtins_link_tests = xyes; then
14085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14086 (eval $ac_link) 2>&5
14087 ac_status=$?
14088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14089 test $ac_status = 0; }; then
14090 eval libat_cv_have_at_fadd_4=yes
14091 else
14092 eval libat_cv_have_at_fadd_4=no
14093 fi
14094 else
14095 old_CFLAGS="$CFLAGS"
14096 # Compile unoptimized.
aaea76b3 14097 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14099 (eval $ac_compile) 2>&5
14100 ac_status=$?
14101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14102 test $ac_status = 0; }; then
14103 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14104 eval libat_cv_have_at_fadd_4=no
14105 else
14106 eval libat_cv_have_at_fadd_4=yes
14107 fi
0fe5522f
RH
14108 else
14109 eval libat_cv_have_at_fadd_4=no
48310492
RH
14110 fi
14111 CFLAGS="$old_CFLAGS"
14112 fi
14113 rm -f conftest*
14114
14115fi
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
14117$as_echo "$libat_cv_have_at_fadd_4" >&6; }
14118
14119
14120 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
14121
14122cat >>confdefs.h <<_ACEOF
14123#define HAVE_ATOMIC_FETCH_ADD_4 $yesno
14124_ACEOF
14125
14126
14127
14128
14129
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
14132$as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
22e05272 14133if ${libat_cv_have_at_fadd_8+:} false; then :
48310492
RH
14134 $as_echo_n "(cached) " >&6
14135else
14136
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138/* end confdefs.h. */
14139
14140int
14141main ()
14142{
14143typedef int T __attribute__((mode(DI))); T *x, y;
14144 asm("" : "=g"(x), "=g"(y));
14145 __atomic_fetch_add (x, y, 0);
14146 __atomic_add_fetch (x, y, 0);
14147 ;
14148 return 0;
14149}
14150_ACEOF
14151 if test x$atomic_builtins_link_tests = xyes; then
14152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14153 (eval $ac_link) 2>&5
14154 ac_status=$?
14155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14156 test $ac_status = 0; }; then
14157 eval libat_cv_have_at_fadd_8=yes
14158 else
14159 eval libat_cv_have_at_fadd_8=no
14160 fi
14161 else
14162 old_CFLAGS="$CFLAGS"
14163 # Compile unoptimized.
aaea76b3 14164 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14166 (eval $ac_compile) 2>&5
14167 ac_status=$?
14168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14169 test $ac_status = 0; }; then
14170 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14171 eval libat_cv_have_at_fadd_8=no
14172 else
14173 eval libat_cv_have_at_fadd_8=yes
14174 fi
0fe5522f
RH
14175 else
14176 eval libat_cv_have_at_fadd_8=no
48310492
RH
14177 fi
14178 CFLAGS="$old_CFLAGS"
14179 fi
14180 rm -f conftest*
14181
14182fi
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
14184$as_echo "$libat_cv_have_at_fadd_8" >&6; }
14185
14186
14187 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
14188
14189cat >>confdefs.h <<_ACEOF
14190#define HAVE_ATOMIC_FETCH_ADD_8 $yesno
14191_ACEOF
14192
14193
14194
14195
14196
14197
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
14199$as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
22e05272 14200if ${libat_cv_have_at_fadd_16+:} false; then :
48310492
RH
14201 $as_echo_n "(cached) " >&6
14202else
14203
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205/* end confdefs.h. */
14206
14207int
14208main ()
14209{
14210typedef int T __attribute__((mode(TI))); T *x, y;
14211 asm("" : "=g"(x), "=g"(y));
14212 __atomic_fetch_add (x, y, 0);
14213 __atomic_add_fetch (x, y, 0);
14214 ;
14215 return 0;
14216}
14217_ACEOF
14218 if test x$atomic_builtins_link_tests = xyes; then
14219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14220 (eval $ac_link) 2>&5
14221 ac_status=$?
14222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14223 test $ac_status = 0; }; then
14224 eval libat_cv_have_at_fadd_16=yes
14225 else
14226 eval libat_cv_have_at_fadd_16=no
14227 fi
14228 else
14229 old_CFLAGS="$CFLAGS"
14230 # Compile unoptimized.
aaea76b3 14231 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14233 (eval $ac_compile) 2>&5
14234 ac_status=$?
14235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14236 test $ac_status = 0; }; then
14237 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14238 eval libat_cv_have_at_fadd_16=no
14239 else
14240 eval libat_cv_have_at_fadd_16=yes
14241 fi
0fe5522f
RH
14242 else
14243 eval libat_cv_have_at_fadd_16=no
48310492
RH
14244 fi
14245 CFLAGS="$old_CFLAGS"
14246 fi
14247 rm -f conftest*
14248
14249fi
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
14251$as_echo "$libat_cv_have_at_fadd_16" >&6; }
14252
14253
14254 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
14255
14256cat >>confdefs.h <<_ACEOF
14257#define HAVE_ATOMIC_FETCH_ADD_16 $yesno
14258_ACEOF
14259
14260
14261
14262
14263
14264
14265
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
14267$as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
22e05272 14268if ${libat_cv_have_at_fop_1+:} false; then :
48310492
RH
14269 $as_echo_n "(cached) " >&6
14270else
14271
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273/* end confdefs.h. */
14274
14275int
14276main ()
14277{
14278typedef int T __attribute__((mode(QI))); T *x, y;
14279 asm("" : "=g"(x), "=g"(y));
14280 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14281 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14282 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14283 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14284 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14285 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14286 ;
14287 return 0;
14288}
14289_ACEOF
14290 if test x$atomic_builtins_link_tests = xyes; then
14291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14292 (eval $ac_link) 2>&5
14293 ac_status=$?
14294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14295 test $ac_status = 0; }; then
14296 eval libat_cv_have_at_fop_1=yes
14297 else
14298 eval libat_cv_have_at_fop_1=no
14299 fi
14300 else
14301 old_CFLAGS="$CFLAGS"
14302 # Compile unoptimized.
aaea76b3 14303 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14305 (eval $ac_compile) 2>&5
14306 ac_status=$?
14307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14308 test $ac_status = 0; }; then
14309 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14310 eval libat_cv_have_at_fop_1=no
14311 else
14312 eval libat_cv_have_at_fop_1=yes
14313 fi
0fe5522f
RH
14314 else
14315 eval libat_cv_have_at_fop_1=no
48310492
RH
14316 fi
14317 CFLAGS="$old_CFLAGS"
14318 fi
14319 rm -f conftest*
14320
14321fi
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
14323$as_echo "$libat_cv_have_at_fop_1" >&6; }
14324
14325
14326 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
14327
14328cat >>confdefs.h <<_ACEOF
14329#define HAVE_ATOMIC_FETCH_OP_1 $yesno
14330_ACEOF
14331
14332
14333
14334
14335
14336
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
14338$as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
22e05272 14339if ${libat_cv_have_at_fop_2+:} false; then :
48310492
RH
14340 $as_echo_n "(cached) " >&6
14341else
14342
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344/* end confdefs.h. */
14345
14346int
14347main ()
14348{
14349typedef int T __attribute__((mode(HI))); T *x, y;
14350 asm("" : "=g"(x), "=g"(y));
14351 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14352 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14353 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14354 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14355 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14356 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14357 ;
14358 return 0;
14359}
14360_ACEOF
14361 if test x$atomic_builtins_link_tests = xyes; then
14362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14363 (eval $ac_link) 2>&5
14364 ac_status=$?
14365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14366 test $ac_status = 0; }; then
14367 eval libat_cv_have_at_fop_2=yes
14368 else
14369 eval libat_cv_have_at_fop_2=no
14370 fi
14371 else
14372 old_CFLAGS="$CFLAGS"
14373 # Compile unoptimized.
aaea76b3 14374 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14376 (eval $ac_compile) 2>&5
14377 ac_status=$?
14378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14379 test $ac_status = 0; }; then
14380 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14381 eval libat_cv_have_at_fop_2=no
14382 else
14383 eval libat_cv_have_at_fop_2=yes
14384 fi
0fe5522f
RH
14385 else
14386 eval libat_cv_have_at_fop_2=no
48310492
RH
14387 fi
14388 CFLAGS="$old_CFLAGS"
14389 fi
14390 rm -f conftest*
14391
14392fi
14393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14394$as_echo "$libat_cv_have_at_fop_2" >&6; }
14395
14396
14397 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14398
14399cat >>confdefs.h <<_ACEOF
14400#define HAVE_ATOMIC_FETCH_OP_2 $yesno
14401_ACEOF
14402
14403
14404
14405
14406
14407
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14409$as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
22e05272 14410if ${libat_cv_have_at_fop_4+:} false; then :
48310492
RH
14411 $as_echo_n "(cached) " >&6
14412else
14413
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415/* end confdefs.h. */
14416
14417int
14418main ()
14419{
14420typedef int T __attribute__((mode(SI))); T *x, y;
14421 asm("" : "=g"(x), "=g"(y));
14422 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14423 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14424 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14425 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14426 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14427 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14428 ;
14429 return 0;
14430}
14431_ACEOF
14432 if test x$atomic_builtins_link_tests = xyes; then
14433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14434 (eval $ac_link) 2>&5
14435 ac_status=$?
14436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14437 test $ac_status = 0; }; then
14438 eval libat_cv_have_at_fop_4=yes
14439 else
14440 eval libat_cv_have_at_fop_4=no
14441 fi
14442 else
14443 old_CFLAGS="$CFLAGS"
14444 # Compile unoptimized.
aaea76b3 14445 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14447 (eval $ac_compile) 2>&5
14448 ac_status=$?
14449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14450 test $ac_status = 0; }; then
14451 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14452 eval libat_cv_have_at_fop_4=no
14453 else
14454 eval libat_cv_have_at_fop_4=yes
14455 fi
0fe5522f
RH
14456 else
14457 eval libat_cv_have_at_fop_4=no
48310492
RH
14458 fi
14459 CFLAGS="$old_CFLAGS"
14460 fi
14461 rm -f conftest*
14462
14463fi
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14465$as_echo "$libat_cv_have_at_fop_4" >&6; }
14466
14467
14468 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14469
14470cat >>confdefs.h <<_ACEOF
14471#define HAVE_ATOMIC_FETCH_OP_4 $yesno
14472_ACEOF
14473
14474
14475
14476
14477
14478
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14480$as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
22e05272 14481if ${libat_cv_have_at_fop_8+:} false; then :
48310492
RH
14482 $as_echo_n "(cached) " >&6
14483else
14484
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486/* end confdefs.h. */
14487
14488int
14489main ()
14490{
14491typedef int T __attribute__((mode(DI))); T *x, y;
14492 asm("" : "=g"(x), "=g"(y));
14493 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14494 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14495 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14496 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14497 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14498 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14499 ;
14500 return 0;
14501}
14502_ACEOF
14503 if test x$atomic_builtins_link_tests = xyes; then
14504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14505 (eval $ac_link) 2>&5
14506 ac_status=$?
14507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14508 test $ac_status = 0; }; then
14509 eval libat_cv_have_at_fop_8=yes
14510 else
14511 eval libat_cv_have_at_fop_8=no
14512 fi
14513 else
14514 old_CFLAGS="$CFLAGS"
14515 # Compile unoptimized.
aaea76b3 14516 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14518 (eval $ac_compile) 2>&5
14519 ac_status=$?
14520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14521 test $ac_status = 0; }; then
14522 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14523 eval libat_cv_have_at_fop_8=no
14524 else
14525 eval libat_cv_have_at_fop_8=yes
14526 fi
0fe5522f
RH
14527 else
14528 eval libat_cv_have_at_fop_8=no
48310492
RH
14529 fi
14530 CFLAGS="$old_CFLAGS"
14531 fi
14532 rm -f conftest*
14533
14534fi
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14536$as_echo "$libat_cv_have_at_fop_8" >&6; }
14537
14538
14539 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14540
14541cat >>confdefs.h <<_ACEOF
14542#define HAVE_ATOMIC_FETCH_OP_8 $yesno
14543_ACEOF
14544
14545
14546
14547
14548
14549
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14551$as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
22e05272 14552if ${libat_cv_have_at_fop_16+:} false; then :
48310492
RH
14553 $as_echo_n "(cached) " >&6
14554else
14555
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557/* end confdefs.h. */
14558
14559int
14560main ()
14561{
14562typedef int T __attribute__((mode(TI))); T *x, y;
14563 asm("" : "=g"(x), "=g"(y));
14564 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14565 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14566 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14567 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14568 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14569 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14570 ;
14571 return 0;
14572}
14573_ACEOF
14574 if test x$atomic_builtins_link_tests = xyes; then
14575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14576 (eval $ac_link) 2>&5
14577 ac_status=$?
14578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14579 test $ac_status = 0; }; then
14580 eval libat_cv_have_at_fop_16=yes
14581 else
14582 eval libat_cv_have_at_fop_16=no
14583 fi
14584 else
14585 old_CFLAGS="$CFLAGS"
14586 # Compile unoptimized.
aaea76b3 14587 CFLAGS="$CFLAGS -O0 -S"
48310492
RH
14588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14589 (eval $ac_compile) 2>&5
14590 ac_status=$?
14591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14592 test $ac_status = 0; }; then
14593 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14594 eval libat_cv_have_at_fop_16=no
14595 else
14596 eval libat_cv_have_at_fop_16=yes
14597 fi
0fe5522f
RH
14598 else
14599 eval libat_cv_have_at_fop_16=no
48310492
RH
14600 fi
14601 CFLAGS="$old_CFLAGS"
14602 fi
14603 rm -f conftest*
14604
14605fi
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14607$as_echo "$libat_cv_have_at_fop_16" >&6; }
14608
14609
14610 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14611
14612cat >>confdefs.h <<_ACEOF
14613#define HAVE_ATOMIC_FETCH_OP_16 $yesno
14614_ACEOF
14615
14616
14617
14618
14619
14620
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14622$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22e05272 14623if ${ac_cv_c_bigendian+:} false; then :
48310492
RH
14624 $as_echo_n "(cached) " >&6
14625else
14626 ac_cv_c_bigendian=unknown
14627 # See if we're dealing with a universal compiler.
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629/* end confdefs.h. */
14630#ifndef __APPLE_CC__
14631 not a universal capable compiler
14632 #endif
14633 typedef int dummy;
14634
14635_ACEOF
14636if ac_fn_c_try_compile "$LINENO"; then :
14637
14638 # Check for potential -arch flags. It is not universal unless
14639 # there are at least two -arch flags with different values.
14640 ac_arch=
14641 ac_prev=
14642 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14643 if test -n "$ac_prev"; then
14644 case $ac_word in
14645 i?86 | x86_64 | ppc | ppc64)
14646 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14647 ac_arch=$ac_word
14648 else
14649 ac_cv_c_bigendian=universal
14650 break
14651 fi
14652 ;;
14653 esac
14654 ac_prev=
14655 elif test "x$ac_word" = "x-arch"; then
14656 ac_prev=arch
14657 fi
14658 done
14659fi
14660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 if test $ac_cv_c_bigendian = unknown; then
14662 # See if sys/param.h defines the BYTE_ORDER macro.
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664/* end confdefs.h. */
14665#include <sys/types.h>
14666 #include <sys/param.h>
14667
14668int
14669main ()
14670{
14671#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14672 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14673 && LITTLE_ENDIAN)
14674 bogus endian macros
14675 #endif
14676
14677 ;
14678 return 0;
14679}
14680_ACEOF
14681if ac_fn_c_try_compile "$LINENO"; then :
14682 # It does; now see whether it defined to BIG_ENDIAN or not.
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684/* end confdefs.h. */
14685#include <sys/types.h>
14686 #include <sys/param.h>
14687
14688int
14689main ()
14690{
14691#if BYTE_ORDER != BIG_ENDIAN
14692 not big endian
14693 #endif
14694
14695 ;
14696 return 0;
14697}
14698_ACEOF
14699if ac_fn_c_try_compile "$LINENO"; then :
14700 ac_cv_c_bigendian=yes
14701else
14702 ac_cv_c_bigendian=no
14703fi
14704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705fi
14706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 fi
14708 if test $ac_cv_c_bigendian = unknown; then
14709 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711/* end confdefs.h. */
14712#include <limits.h>
14713
14714int
14715main ()
14716{
14717#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14718 bogus endian macros
14719 #endif
14720
14721 ;
14722 return 0;
14723}
14724_ACEOF
14725if ac_fn_c_try_compile "$LINENO"; then :
14726 # It does; now see whether it defined to _BIG_ENDIAN or not.
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728/* end confdefs.h. */
14729#include <limits.h>
14730
14731int
14732main ()
14733{
14734#ifndef _BIG_ENDIAN
14735 not big endian
14736 #endif
14737
14738 ;
14739 return 0;
14740}
14741_ACEOF
14742if ac_fn_c_try_compile "$LINENO"; then :
14743 ac_cv_c_bigendian=yes
14744else
14745 ac_cv_c_bigendian=no
14746fi
14747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14748fi
14749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750 fi
14751 if test $ac_cv_c_bigendian = unknown; then
14752 # Compile a test program.
14753 if test "$cross_compiling" = yes; then :
14754 # Try to guess by grepping values from an object file.
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756/* end confdefs.h. */
14757short int ascii_mm[] =
14758 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14759 short int ascii_ii[] =
14760 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14761 int use_ascii (int i) {
14762 return ascii_mm[i] + ascii_ii[i];
14763 }
14764 short int ebcdic_ii[] =
14765 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14766 short int ebcdic_mm[] =
14767 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14768 int use_ebcdic (int i) {
14769 return ebcdic_mm[i] + ebcdic_ii[i];
14770 }
14771 extern int foo;
14772
14773int
14774main ()
14775{
14776return use_ascii (foo) == use_ebcdic (foo);
14777 ;
14778 return 0;
14779}
14780_ACEOF
14781if ac_fn_c_try_compile "$LINENO"; then :
14782 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14783 ac_cv_c_bigendian=yes
14784 fi
14785 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14786 if test "$ac_cv_c_bigendian" = unknown; then
14787 ac_cv_c_bigendian=no
14788 else
14789 # finding both strings is unlikely to happen, but who knows?
14790 ac_cv_c_bigendian=unknown
14791 fi
14792 fi
14793fi
14794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795else
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797/* end confdefs.h. */
14798$ac_includes_default
14799int
14800main ()
14801{
14802
14803 /* Are we little or big endian? From Harbison&Steele. */
14804 union
14805 {
14806 long int l;
14807 char c[sizeof (long int)];
14808 } u;
14809 u.l = 1;
14810 return u.c[sizeof (long int) - 1] == 1;
14811
14812 ;
14813 return 0;
14814}
14815_ACEOF
14816if ac_fn_c_try_run "$LINENO"; then :
14817 ac_cv_c_bigendian=no
14818else
14819 ac_cv_c_bigendian=yes
14820fi
14821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14822 conftest.$ac_objext conftest.beam conftest.$ac_ext
14823fi
14824
14825 fi
14826fi
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14828$as_echo "$ac_cv_c_bigendian" >&6; }
14829 case $ac_cv_c_bigendian in #(
14830 yes)
14831 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14832;; #(
14833 no)
14834 ;; #(
14835 universal)
14836
14837$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14838
14839 ;; #(
14840 *)
22e05272 14841 as_fn_error $? "unknown endianness
48310492
RH
14842 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14843 esac
14844
14845# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14846
14847
14848
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14850$as_echo_n "checking for the word size... " >&6; }
22e05272 14851if ${libat_cv_wordsize+:} false; then :
48310492
RH
14852 $as_echo_n "(cached) " >&6
14853else
14854 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14855
14856else
22e05272 14857 as_fn_error $? "Could not determine word size." "$LINENO" 5
48310492
RH
14858fi
14859
14860fi
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14862$as_echo "$libat_cv_wordsize" >&6; }
14863
14864cat >>confdefs.h <<_ACEOF
14865#define WORDSIZE $libat_cv_wordsize
14866_ACEOF
14867
14868
14869
14870# Check to see if -pthread or -lpthread is needed. Prefer the former.
14871# In case the pthread.h system header is not found, this test will fail.
14872case " $config_path " in
14873 *" posix "*)
14874 XPCFLAGS=""
14875 CFLAGS="$CFLAGS -pthread"
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877/* end confdefs.h. */
14878#include <pthread.h>
14879 void *g(void *d) { return NULL; }
14880int
14881main ()
14882{
14883pthread_t t; pthread_create(&t,NULL,g,NULL);
14884 ;
14885 return 0;
14886}
14887_ACEOF
14888if ac_fn_c_try_link "$LINENO"; then :
14889 XPCFLAGS=" -pthread"
14890else
14891 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893/* end confdefs.h. */
14894#include <pthread.h>
14895 void *g(void *d) { return NULL; }
14896int
14897main ()
14898{
14899pthread_t t; pthread_create(&t,NULL,g,NULL);
14900 ;
14901 return 0;
14902}
14903_ACEOF
14904if ac_fn_c_try_link "$LINENO"; then :
14905
14906else
22e05272 14907 as_fn_error $? "Pthreads are required to build libatomic" "$LINENO" 5
48310492
RH
14908fi
14909rm -f core conftest.err conftest.$ac_objext \
14910 conftest$ac_exeext conftest.$ac_ext
14911fi
14912rm -f core conftest.err conftest.$ac_objext \
14913 conftest$ac_exeext conftest.$ac_ext
e9885be5 14914 CFLAGS="$save_CFLAGS $XPCFLAGS"
48310492
RH
14915 ;;
14916esac
14917
14918# See what sort of export controls are available.
14919
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14921$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
22e05272 14922if ${libat_cv_have_attribute_visibility+:} false; then :
48310492
RH
14923 $as_echo_n "(cached) " >&6
14924else
14925
14926 save_CFLAGS="$CFLAGS"
14927 CFLAGS="$CFLAGS -Werror"
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929/* end confdefs.h. */
14930void __attribute__((visibility("hidden"))) foo(void) { }
14931int
14932main ()
14933{
14934
14935 ;
14936 return 0;
14937}
14938_ACEOF
14939if ac_fn_c_try_compile "$LINENO"; then :
14940 libat_cv_have_attribute_visibility=yes
14941else
14942 libat_cv_have_attribute_visibility=no
14943fi
14944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945 CFLAGS="$save_CFLAGS"
14946fi
14947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
14948$as_echo "$libat_cv_have_attribute_visibility" >&6; }
14949 if test $libat_cv_have_attribute_visibility = yes; then
14950
14951$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14952
14953 fi
14954
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14956$as_echo_n "checking whether the target supports dllexport... " >&6; }
22e05272 14957if ${libat_cv_have_attribute_dllexport+:} false; then :
48310492
RH
14958 $as_echo_n "(cached) " >&6
14959else
14960
14961 save_CFLAGS="$CFLAGS"
14962 CFLAGS="$CFLAGS -Werror"
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964/* end confdefs.h. */
14965void __attribute__((dllexport)) foo(void) { }
14966int
14967main ()
14968{
14969
14970 ;
14971 return 0;
14972}
14973_ACEOF
14974if ac_fn_c_try_compile "$LINENO"; then :
14975 libat_cv_have_attribute_dllexport=yes
14976else
14977 libat_cv_have_attribute_dllexport=no
14978fi
14979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14980 CFLAGS="$save_CFLAGS"
14981fi
14982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
14983$as_echo "$libat_cv_have_attribute_dllexport" >&6; }
14984 if test $libat_cv_have_attribute_dllexport = yes; then
14985
14986$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14987
14988 fi
14989
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14991$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
22e05272 14992if ${libat_cv_have_attribute_alias+:} false; then :
48310492
RH
14993 $as_echo_n "(cached) " >&6
14994else
14995
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997/* end confdefs.h. */
14998
14999void foo(void) { }
15000extern void bar(void) __attribute__((alias("foo")));
15001int
15002main ()
15003{
15004bar();
15005 ;
15006 return 0;
15007}
15008_ACEOF
15009if ac_fn_c_try_link "$LINENO"; then :
15010 libat_cv_have_attribute_alias=yes
15011else
15012 libat_cv_have_attribute_alias=no
15013fi
15014rm -f core conftest.err conftest.$ac_objext \
15015 conftest$ac_exeext conftest.$ac_ext
15016fi
15017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
15018$as_echo "$libat_cv_have_attribute_alias" >&6; }
15019 if test $libat_cv_have_attribute_alias = yes; then
15020
15021$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15022
15023 fi
15024if test x$try_ifunc = xyes; then
15025
40448151
TS
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
15027$as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
22e05272 15028if ${libat_cv_have_ifunc+:} false; then :
48310492
RH
15029 $as_echo_n "(cached) " >&6
15030else
15031
15032 save_CFLAGS="$CFLAGS"
15033 CFLAGS="$CFLAGS -Werror"
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035/* end confdefs.h. */
15036
15037 int foo_alt(void) { return 0; }
bc437a56
MS
15038 typedef int F (void);
15039 F *foo_sel(void) { return foo_alt; }
48310492
RH
15040 int foo(void) __attribute__((ifunc("foo_sel")));
15041int
15042main ()
15043{
15044return foo();
15045 ;
15046 return 0;
15047}
15048_ACEOF
15049if ac_fn_c_try_link "$LINENO"; then :
15050 libat_cv_have_ifunc=yes
15051else
15052 libat_cv_have_ifunc=no
15053fi
15054rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15056fi
15057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
15058$as_echo "$libat_cv_have_ifunc" >&6; }
15059
15060 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
15061
15062cat >>confdefs.h <<_ACEOF
15063#define HAVE_IFUNC $yesno
15064_ACEOF
15065
15066
15067
15068fi
15069
15070# Check linker support.
15071
15072
15073# Check whether --with-gnu-ld was given.
15074if test "${with_gnu_ld+set}" = set; then :
15075 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15076else
15077 with_gnu_ld=no
15078fi
15079
15080ac_prog=ld
15081if test "$GCC" = yes; then
15082 # Check if gcc -print-prog-name=ld gives a path.
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15084$as_echo_n "checking for ld used by $CC... " >&6; }
15085 case $host in
15086 *-*-mingw*)
15087 # gcc leaves a trailing carriage return which upsets mingw
15088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15089 *)
15090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15091 esac
15092 case $ac_prog in
15093 # Accept absolute paths.
15094 [\\/]* | ?:[\\/]*)
15095 re_direlt='/[^/][^/]*/\.\./'
15096 # Canonicalize the pathname of ld
15097 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15098 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15099 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15100 done
15101 test -z "$LD" && LD="$ac_prog"
15102 ;;
15103 "")
15104 # If it fails, then pretend we aren't using GCC.
15105 ac_prog=ld
15106 ;;
15107 *)
15108 # If it is relative, then search for the first ld in PATH.
15109 with_gnu_ld=unknown
15110 ;;
15111 esac
15112elif test "$with_gnu_ld" = yes; then
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15114$as_echo_n "checking for GNU ld... " >&6; }
15115else
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15117$as_echo_n "checking for non-GNU ld... " >&6; }
15118fi
22e05272 15119if ${lt_cv_path_LD+:} false; then :
48310492
RH
15120 $as_echo_n "(cached) " >&6
15121else
15122 if test -z "$LD"; then
15123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15124 for ac_dir in $PATH; do
15125 IFS="$lt_save_ifs"
15126 test -z "$ac_dir" && ac_dir=.
15127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15128 lt_cv_path_LD="$ac_dir/$ac_prog"
15129 # Check to see if the program is GNU ld. I'd rather use --version,
15130 # but apparently some variants of GNU ld only accept -v.
15131 # Break only if it was the GNU/non-GNU ld that we prefer.
15132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15133 *GNU* | *'with BFD'*)
15134 test "$with_gnu_ld" != no && break
15135 ;;
15136 *)
15137 test "$with_gnu_ld" != yes && break
15138 ;;
15139 esac
15140 fi
15141 done
15142 IFS="$lt_save_ifs"
15143else
15144 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15145fi
15146fi
15147
15148LD="$lt_cv_path_LD"
15149if test -n "$LD"; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15151$as_echo "$LD" >&6; }
15152else
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154$as_echo "no" >&6; }
15155fi
22e05272 15156test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
48310492
RH
15157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15158$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 15159if ${lt_cv_prog_gnu_ld+:} false; then :
48310492
RH
15160 $as_echo_n "(cached) " >&6
15161else
15162 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15163case `$LD -v 2>&1 </dev/null` in
15164*GNU* | *'with BFD'*)
15165 lt_cv_prog_gnu_ld=yes
15166 ;;
15167*)
15168 lt_cv_prog_gnu_ld=no
15169 ;;
15170esac
15171fi
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15173$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15174with_gnu_ld=$lt_cv_prog_gnu_ld
15175
15176
15177
15178
15179
15180
15181
15182 # If we're not using GNU ld, then there's no point in even trying these
15183 # tests. Check for that first. We should have already tested for gld
15184 # by now (in libtool), but require it now just to be safe...
15185 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15186 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15187
15188
15189
15190 # The name set by libtool depends on the version of libtool. Shame on us
15191 # for depending on an impl detail, but c'est la vie. Older versions used
15192 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15193 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15194 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15195 # set (hence we're using an older libtool), then set it.
15196 if test x${with_gnu_ld+set} != xset; then
15197 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15198 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15199 with_gnu_ld=no
15200 else
15201 with_gnu_ld=$ac_cv_prog_gnu_ld
15202 fi
15203 fi
15204
15205 # Start by getting the version number. I think the libtool test already
15206 # does some of this, but throws away the result.
15207 libat_ld_is_gold=no
15208 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15209 libat_ld_is_gold=yes
15210 fi
15211
15212 ldver=`$LD --version 2>/dev/null |
c6c2d1bc 15213 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
48310492
RH
15214
15215 libat_gnu_ld_version=`echo $ldver | \
15216 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15217
15218 # Set --gc-sections.
15219 if test "$with_gnu_ld" = "notbroken"; then
15220 # GNU ld it is! Joy and bunny rabbits!
15221
15222 # All these tests are for C++; save the language and the compiler flags.
15223 # Need to do this so that g++ won't try to link in libstdc++
15224 ac_test_CFLAGS="${CFLAGS+set}"
15225 ac_save_CFLAGS="$CFLAGS"
15226 CFLAGS='-x c++ -Wl,--gc-sections'
15227
15228 # Check for -Wl,--gc-sections
15229 # XXX This test is broken at the moment, as symbols required for linking
15230 # are now in libsupc++ (not built yet). In addition, this test has
15231 # cored on solaris in the past. In addition, --gc-sections doesn't
15232 # really work at the moment (keeps on discarding used sections, first
15233 # .eh_frame and now some of the glibc sections for iconv).
15234 # Bzzzzt. Thanks for playing, maybe next time.
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15236$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15237 if test "$cross_compiling" = yes; then :
15238 ac_sectionLDflags=yes
15239else
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241/* end confdefs.h. */
15242
15243 int main(void)
15244 {
15245 try { throw 1; }
15246 catch (...) { };
15247 return 0;
15248 }
15249
15250_ACEOF
15251if ac_fn_c_try_run "$LINENO"; then :
15252 ac_sectionLDflags=yes
15253else
15254 ac_sectionLDflags=no
15255fi
15256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15257 conftest.$ac_objext conftest.beam conftest.$ac_ext
15258fi
15259
15260 if test "$ac_test_CFLAGS" = set; then
15261 CFLAGS="$ac_save_CFLAGS"
15262 else
15263 # this is the suspicious part
15264 CFLAGS=''
15265 fi
15266 if test "$ac_sectionLDflags" = "yes"; then
15267 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15268 fi
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15270$as_echo "$ac_sectionLDflags" >&6; }
15271 fi
15272
15273 # Set linker optimization flags.
15274 if test x"$with_gnu_ld" = x"yes"; then
15275 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15276 fi
15277
15278
15279
15280
15281
15282
15283 # Check whether --enable-symvers was given.
15284if test "${enable_symvers+set}" = set; then :
15285 enableval=$enable_symvers;
15286 case "$enableval" in
15287 yes|no|gnu*|sun) ;;
22e05272 15288 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
48310492
RH
15289 esac
15290
15291else
15292 enable_symvers=yes
15293fi
15294
15295
15296
15297# If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
15298# don't know enough about $LD to do tricks...
15299
15300
15301# Turn a 'yes' into a suitable default.
15302if test x$enable_symvers = xyes ; then
15303 # FIXME The following test is too strict, in theory.
15304 if test $enable_shared = no || test "x$LD" = x; then
15305 enable_symvers=no
15306 else
15307 if test $with_gnu_ld = yes ; then
15308 enable_symvers=gnu
15309 else
15310 case ${target_os} in
15311 # Sun symbol versioning exists since Solaris 2.5.
15312 solaris2.[5-9]* | solaris2.1[0-9]*)
15313 enable_symvers=sun ;;
15314 *)
15315 enable_symvers=no ;;
15316 esac
15317 fi
15318 fi
15319fi
15320
15321# Check if 'sun' was requested on non-Solaris 2 platforms.
15322if test x$enable_symvers = xsun ; then
15323 case ${target_os} in
15324 solaris2*)
15325 # All fine.
15326 ;;
15327 *)
15328 # Unlikely to work.
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15330$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15332$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15334$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15335 enable_symvers=no
15336 ;;
15337 esac
15338fi
15339
15340# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15341if test $enable_symvers != no; then
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15343$as_echo_n "checking for shared libgcc... " >&6; }
15344 ac_save_CFLAGS="$CFLAGS"
15345 CFLAGS=' -lgcc_s'
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347/* end confdefs.h. */
15348
15349int
15350main ()
15351{
15352return 0;
15353 ;
15354 return 0;
15355}
15356_ACEOF
15357if ac_fn_c_try_link "$LINENO"; then :
15358 libat_shared_libgcc=yes
15359else
15360 libat_shared_libgcc=no
15361fi
15362rm -f core conftest.err conftest.$ac_objext \
15363 conftest$ac_exeext conftest.$ac_ext
15364 CFLAGS="$ac_save_CFLAGS"
15365 if test $libat_shared_libgcc = no; then
15366 cat > conftest.c <<EOF
15367int main (void) { return 0; }
15368EOF
15369 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15370 -shared -shared-libgcc -o conftest.so \
15371 conftest.c -v 2>&1 >/dev/null \
15372 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15373 rm -f conftest.c conftest.so
15374 if test x${libat_libgcc_s_suffix+set} = xset; then
15375 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377/* end confdefs.h. */
15378
15379int
15380main ()
15381{
15382return 0;
15383 ;
15384 return 0;
15385}
15386_ACEOF
15387if ac_fn_c_try_link "$LINENO"; then :
15388 libat_shared_libgcc=yes
15389fi
15390rm -f core conftest.err conftest.$ac_objext \
15391 conftest$ac_exeext conftest.$ac_ext
15392 CFLAGS="$ac_save_CFLAGS"
15393 fi
15394 fi
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15396$as_echo "$libat_shared_libgcc" >&6; }
15397fi
15398
15399# For GNU ld, we need at least this version. The format is described in
15400# LIBAT_CHECK_LINKER_FEATURES above.
15401libat_min_gnu_ld_version=21400
15402# XXXXXXXXXXX libat_gnu_ld_version=21390
15403
15404# Check to see if unspecified "yes" value can win, given results above.
15405# Change "yes" into either "no" or a style name.
15406if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
15407 if test $with_gnu_ld = yes; then
15408 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15409 enable_symvers=gnu
15410 elif test $libat_ld_is_gold = yes ; then
15411 enable_symvers=gnu
15412 else
15413 # The right tools, the right setup, but too old. Fallbacks?
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15415$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15417$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15419$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15421$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15422 if test $libat_gnu_ld_version -ge 21200 ; then
15423 # Globbing fix is present, proper block support is not.
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15425$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15426 enable_symvers=no
15427 else
15428 # 2.11 or older.
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15430$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15431 enable_symvers=no
15432 fi
15433 fi
15434 elif test $enable_symvers = sun; then
15435 : All interesting versions of Sun ld support sun style symbol versioning.
15436 else
15437 # just fail for now
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15439$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15441$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15443$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15445$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15446 enable_symvers=no
15447 fi
15448fi
15449if test $enable_symvers = gnu; then
15450
15451$as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15452
15453fi
15454
15455 if test $enable_symvers != no; then
15456 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
15457 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
15458else
15459 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
15460 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
15461fi
15462
15463 if test $enable_symvers = gnu; then
15464 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15465 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15466else
15467 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15468 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15469fi
15470
15471 if test $enable_symvers = sun; then
15472 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15473 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15474else
15475 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15476 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15477fi
15478
15479{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15480$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15481
15482
15483# Cleanup and exit.
15484CFLAGS="$save_CFLAGS"
15485cat >confcache <<\_ACEOF
15486# This file is a shell script that caches the results of configure
15487# tests run on this system so they can be shared between configure
15488# scripts and configure runs, see configure's option --config-cache.
15489# It is not useful on other systems. If it contains results you don't
15490# want to keep, you may remove or edit it.
15491#
15492# config.status only pays attention to the cache file if you give it
15493# the --recheck option to rerun configure.
15494#
15495# `ac_cv_env_foo' variables (set or unset) will be overridden when
15496# loading this file, other *unset* `ac_cv_foo' will be assigned the
15497# following values.
15498
15499_ACEOF
15500
15501# The following way of writing the cache mishandles newlines in values,
15502# but we know of no workaround that is simple, portable, and efficient.
15503# So, we kill variables containing newlines.
15504# Ultrix sh set writes to stderr and can't be redirected directly,
15505# and sets the high bit in the cache file unless we assign to the vars.
15506(
15507 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15508 eval ac_val=\$$ac_var
15509 case $ac_val in #(
15510 *${as_nl}*)
15511 case $ac_var in #(
15512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15513$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15514 esac
15515 case $ac_var in #(
15516 _ | IFS | as_nl) ;; #(
15517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15518 *) { eval $ac_var=; unset $ac_var;} ;;
15519 esac ;;
15520 esac
15521 done
15522
15523 (set) 2>&1 |
15524 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15525 *${as_nl}ac_space=\ *)
15526 # `set' does not quote correctly, so add quotes: double-quote
15527 # substitution turns \\\\ into \\, and sed turns \\ into \.
15528 sed -n \
15529 "s/'/'\\\\''/g;
15530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15531 ;; #(
15532 *)
15533 # `set' quotes correctly as required by POSIX, so do not add quotes.
15534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15535 ;;
15536 esac |
15537 sort
15538) |
15539 sed '
15540 /^ac_cv_env_/b end
15541 t clear
15542 :clear
15543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15544 t end
15545 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15546 :end' >>confcache
15547if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15548 if test -w "$cache_file"; then
22e05272 15549 if test "x$cache_file" != "x/dev/null"; then
48310492
RH
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15551$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15552 if test ! -f "$cache_file" || test -h "$cache_file"; then
15553 cat confcache >"$cache_file"
15554 else
15555 case $cache_file in #(
15556 */* | ?:*)
15557 mv -f confcache "$cache_file"$$ &&
15558 mv -f "$cache_file"$$ "$cache_file" ;; #(
15559 *)
15560 mv -f confcache "$cache_file" ;;
15561 esac
15562 fi
15563 fi
48310492
RH
15564 else
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15566$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15567 fi
15568fi
15569rm -f confcache
15570
15571# Add -Wall -Werror if we are using GCC.
15572if test "x$GCC" = "xyes"; then
15573 XCFLAGS="$XCFLAGS -Wall -Werror"
15574fi
15575
efc643e9
IT
15576# Add CET specific flags if CET is enabled
15577 # Check whether --enable-cet was given.
15578if test "${enable_cet+set}" = set; then :
15579 enableval=$enable_cet;
15580 case "$enableval" in
a0e1df88 15581 yes|no|auto) ;;
22e05272 15582 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
efc643e9
IT
15583 esac
15584
15585else
8d286dd1 15586 enable_cet=auto
efc643e9
IT
15587fi
15588
15589
14e335ed
IT
15590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15591$as_echo_n "checking for CET support... " >&6; }
15592
9051b548 15593# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
efc643e9
IT
15594case "$host" in
15595 i[34567]86-*-linux* | x86_64-*-linux*)
15596 case "$enable_cet" in
a0e1df88 15597 auto)
14e335ed
IT
15598 # Check if target supports multi-byte NOPs
15599 # and if assembler supports CET insn.
9051b548 15600 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 15601 CFLAGS="$CFLAGS -fcf-protection"
efc643e9
IT
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603/* end confdefs.h. */
15604
15605int
15606main ()
15607{
14e335ed
IT
15608
15609#if !defined(__SSE2__)
15610#error target does not support multi-byte NOPs
15611#else
efc643e9 15612asm ("setssbsy");
14e335ed
IT
15613#endif
15614
efc643e9
IT
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619if ac_fn_c_try_compile "$LINENO"; then :
15620 enable_cet=yes
15621else
15622 enable_cet=no
15623fi
15624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 15625 CFLAGS="$cet_save_CFLAGS"
efc643e9
IT
15626 ;;
15627 yes)
15628 # Check if assembler supports CET.
15629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630/* end confdefs.h. */
15631
15632int
15633main ()
15634{
15635asm ("setssbsy");
15636 ;
15637 return 0;
15638}
15639_ACEOF
15640if ac_fn_c_try_compile "$LINENO"; then :
15641
15642else
22e05272 15643 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
efc643e9
IT
15644fi
15645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15646 ;;
15647 esac
15648 ;;
15649 *)
15650 enable_cet=no
15651 ;;
15652esac
15653if test x$enable_cet = xyes; then
7b47ecf2 15654 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15656$as_echo "yes" >&6; }
15657else
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15659$as_echo "no" >&6; }
efc643e9
IT
15660fi
15661
15662XCFLAGS="$XCFLAGS $CET_FLAGS"
15663
48310492
RH
15664XCFLAGS="$XCFLAGS $XPCFLAGS"
15665
15666
15667
15668
15669
15670
15671
47ddb895
DE
15672# Conditionalize the makefile for this target machine.
15673tmake_file_=
15674for f in ${tmake_file}
15675do
15676 if test -f ${srcdir}/config/$f
15677 then
15678 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15679 fi
15680done
15681tmake_file="${tmake_file_}"
15682
15683
15684
48310492
RH
15685 if test x$libat_cv_have_ifunc = xyes; then
15686 HAVE_IFUNC_TRUE=
15687 HAVE_IFUNC_FALSE='#'
15688else
15689 HAVE_IFUNC_TRUE='#'
15690 HAVE_IFUNC_FALSE=
15691fi
15692
141abc6f
SE
15693 if expr "$config_path" : ".* linux/aarch64 .*" > /dev/null; then
15694 ARCH_AARCH64_LINUX_TRUE=
15695 ARCH_AARCH64_LINUX_FALSE='#'
15696else
15697 ARCH_AARCH64_LINUX_TRUE='#'
15698 ARCH_AARCH64_LINUX_FALSE=
15699fi
15700
48310492
RH
15701 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
15702 ARCH_ARM_LINUX_TRUE=
15703 ARCH_ARM_LINUX_FALSE='#'
15704else
15705 ARCH_ARM_LINUX_TRUE='#'
15706 ARCH_ARM_LINUX_FALSE=
15707fi
15708
15709 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
15710 ARCH_I386_TRUE=
15711 ARCH_I386_FALSE='#'
15712else
15713 ARCH_I386_TRUE='#'
15714 ARCH_I386_FALSE=
15715fi
15716
15717 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
15718 ARCH_X86_64_TRUE=
15719 ARCH_X86_64_FALSE='#'
15720else
15721 ARCH_X86_64_TRUE='#'
15722 ARCH_X86_64_FALSE=
15723fi
15724
15725
3c36aa6b
JJ
15726# Determine what GCC version number to use in filesystem paths.
15727
15728 get_gcc_base_ver="cat"
15729
15730# Check whether --with-gcc-major-version-only was given.
15731if test "${with_gcc_major_version_only+set}" = set; then :
15732 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 15733 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
15734 fi
15735
15736fi
15737
15738
15739
15740
48310492
RH
15741if test ${multilib} = yes; then
15742 multilib_arg="--enable-multilib"
15743else
15744 multilib_arg=
15745fi
15746
15747ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15748
5ff06d76
MR
15749ac_config_files="$ac_config_files testsuite/libatomic-site-extra.exp"
15750
48310492
RH
15751cat >confcache <<\_ACEOF
15752# This file is a shell script that caches the results of configure
15753# tests run on this system so they can be shared between configure
15754# scripts and configure runs, see configure's option --config-cache.
15755# It is not useful on other systems. If it contains results you don't
15756# want to keep, you may remove or edit it.
15757#
15758# config.status only pays attention to the cache file if you give it
15759# the --recheck option to rerun configure.
15760#
15761# `ac_cv_env_foo' variables (set or unset) will be overridden when
15762# loading this file, other *unset* `ac_cv_foo' will be assigned the
15763# following values.
15764
15765_ACEOF
15766
15767# The following way of writing the cache mishandles newlines in values,
15768# but we know of no workaround that is simple, portable, and efficient.
15769# So, we kill variables containing newlines.
15770# Ultrix sh set writes to stderr and can't be redirected directly,
15771# and sets the high bit in the cache file unless we assign to the vars.
15772(
15773 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15774 eval ac_val=\$$ac_var
15775 case $ac_val in #(
15776 *${as_nl}*)
15777 case $ac_var in #(
15778 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15779$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15780 esac
15781 case $ac_var in #(
15782 _ | IFS | as_nl) ;; #(
15783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15784 *) { eval $ac_var=; unset $ac_var;} ;;
15785 esac ;;
15786 esac
15787 done
15788
15789 (set) 2>&1 |
15790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15791 *${as_nl}ac_space=\ *)
15792 # `set' does not quote correctly, so add quotes: double-quote
15793 # substitution turns \\\\ into \\, and sed turns \\ into \.
15794 sed -n \
15795 "s/'/'\\\\''/g;
15796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15797 ;; #(
15798 *)
15799 # `set' quotes correctly as required by POSIX, so do not add quotes.
15800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15801 ;;
15802 esac |
15803 sort
15804) |
15805 sed '
15806 /^ac_cv_env_/b end
15807 t clear
15808 :clear
15809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15810 t end
15811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15812 :end' >>confcache
15813if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15814 if test -w "$cache_file"; then
22e05272 15815 if test "x$cache_file" != "x/dev/null"; then
48310492
RH
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15817$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15818 if test ! -f "$cache_file" || test -h "$cache_file"; then
15819 cat confcache >"$cache_file"
15820 else
15821 case $cache_file in #(
15822 */* | ?:*)
15823 mv -f confcache "$cache_file"$$ &&
15824 mv -f "$cache_file"$$ "$cache_file" ;; #(
15825 *)
15826 mv -f confcache "$cache_file" ;;
15827 esac
15828 fi
15829 fi
48310492
RH
15830 else
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15832$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15833 fi
15834fi
15835rm -f confcache
15836
15837test "x$prefix" = xNONE && prefix=$ac_default_prefix
15838# Let make expand exec_prefix.
15839test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15840
15841DEFS=-DHAVE_CONFIG_H
15842
15843ac_libobjs=
15844ac_ltlibobjs=
22e05272 15845U=
48310492
RH
15846for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15847 # 1. Remove the extension, and $U if already installed.
15848 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15849 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15850 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15851 # will be set to the directory where LIBOBJS objects are built.
15852 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15853 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15854done
15855LIBOBJS=$ac_libobjs
15856
15857LTLIBOBJS=$ac_ltlibobjs
15858
15859
15860if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
22e05272 15861 as_fn_error $? "conditional \"GENINSRC\" was never defined.
48310492
RH
15862Usually this means the macro was only invoked conditionally." "$LINENO" 5
15863fi
22e05272
JM
15864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15865$as_echo_n "checking that generated files are newer than configure... " >&6; }
15866 if test -n "$am_sleep_pid"; then
15867 # Hide warnings about reused PIDs.
15868 wait $am_sleep_pid 2>/dev/null
15869 fi
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15871$as_echo "done" >&6; }
48310492
RH
15872 if test -n "$EXEEXT"; then
15873 am__EXEEXT_TRUE=
15874 am__EXEEXT_FALSE='#'
15875else
15876 am__EXEEXT_TRUE='#'
15877 am__EXEEXT_FALSE=
15878fi
15879
15880if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 15881 as_fn_error $? "conditional \"AMDEP\" was never defined.
48310492
RH
15882Usually this means the macro was only invoked conditionally." "$LINENO" 5
15883fi
15884if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 15885 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
48310492
RH
15886Usually this means the macro was only invoked conditionally." "$LINENO" 5
15887fi
15888if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22e05272 15889 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
48310492
RH
15890Usually this means the macro was only invoked conditionally." "$LINENO" 5
15891fi
fa3cd3c3 15892if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 15893 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
fa3cd3c3
RH
15894Usually this means the macro was only invoked conditionally." "$LINENO" 5
15895fi
48310492
RH
15896
15897if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
22e05272 15898 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
48310492
RH
15899Usually this means the macro was only invoked conditionally." "$LINENO" 5
15900fi
15901if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
22e05272 15902 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
48310492
RH
15903Usually this means the macro was only invoked conditionally." "$LINENO" 5
15904fi
15905if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
22e05272 15906 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
48310492
RH
15907Usually this means the macro was only invoked conditionally." "$LINENO" 5
15908fi
15909if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
22e05272 15910 as_fn_error $? "conditional \"HAVE_IFUNC\" was never defined.
48310492
RH
15911Usually this means the macro was only invoked conditionally." "$LINENO" 5
15912fi
141abc6f 15913if test -z "${ARCH_AARCH64_LINUX_TRUE}" && test -z "${ARCH_AARCH64_LINUX_FALSE}"; then
22e05272 15914 as_fn_error $? "conditional \"ARCH_AARCH64_LINUX\" was never defined.
141abc6f
SE
15915Usually this means the macro was only invoked conditionally." "$LINENO" 5
15916fi
48310492 15917if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
22e05272 15918 as_fn_error $? "conditional \"ARCH_ARM_LINUX\" was never defined.
48310492
RH
15919Usually this means the macro was only invoked conditionally." "$LINENO" 5
15920fi
15921if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
22e05272 15922 as_fn_error $? "conditional \"ARCH_I386\" was never defined.
48310492
RH
15923Usually this means the macro was only invoked conditionally." "$LINENO" 5
15924fi
15925if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
22e05272 15926 as_fn_error $? "conditional \"ARCH_X86_64\" was never defined.
48310492
RH
15927Usually this means the macro was only invoked conditionally." "$LINENO" 5
15928fi
15929
22e05272 15930: "${CONFIG_STATUS=./config.status}"
48310492
RH
15931ac_write_fail=0
15932ac_clean_files_save=$ac_clean_files
15933ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15934{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15935$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15936as_write_fail=0
15937cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15938#! $SHELL
15939# Generated by $as_me.
15940# Run this file to recreate the current configuration.
15941# Compiler output produced by configure, useful for debugging
15942# configure, is in config.log if it exists.
15943
15944debug=false
15945ac_cs_recheck=false
15946ac_cs_silent=false
15947
15948SHELL=\${CONFIG_SHELL-$SHELL}
15949export SHELL
15950_ASEOF
15951cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15952## -------------------- ##
15953## M4sh Initialization. ##
15954## -------------------- ##
15955
15956# Be more Bourne compatible
15957DUALCASE=1; export DUALCASE # for MKS sh
15958if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15959 emulate sh
15960 NULLCMD=:
15961 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15962 # is contrary to our usage. Disable this feature.
15963 alias -g '${1+"$@"}'='"$@"'
15964 setopt NO_GLOB_SUBST
15965else
15966 case `(set -o) 2>/dev/null` in #(
15967 *posix*) :
15968 set -o posix ;; #(
15969 *) :
15970 ;;
15971esac
15972fi
15973
15974
15975as_nl='
15976'
15977export as_nl
15978# Printing a long string crashes Solaris 7 /usr/bin/printf.
15979as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15980as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15981as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15982# Prefer a ksh shell builtin over an external printf program on Solaris,
15983# but without wasting forks for bash or zsh.
15984if test -z "$BASH_VERSION$ZSH_VERSION" \
15985 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15986 as_echo='print -r --'
15987 as_echo_n='print -rn --'
15988elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15989 as_echo='printf %s\n'
15990 as_echo_n='printf %s'
15991else
15992 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15993 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15994 as_echo_n='/usr/ucb/echo -n'
15995 else
15996 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15997 as_echo_n_body='eval
15998 arg=$1;
15999 case $arg in #(
16000 *"$as_nl"*)
16001 expr "X$arg" : "X\\(.*\\)$as_nl";
16002 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16003 esac;
16004 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16005 '
16006 export as_echo_n_body
16007 as_echo_n='sh -c $as_echo_n_body as_echo'
16008 fi
16009 export as_echo_body
16010 as_echo='sh -c $as_echo_body as_echo'
16011fi
16012
16013# The user is always right.
16014if test "${PATH_SEPARATOR+set}" != set; then
16015 PATH_SEPARATOR=:
16016 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16017 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16018 PATH_SEPARATOR=';'
16019 }
16020fi
16021
16022
16023# IFS
16024# We need space, tab and new line, in precisely that order. Quoting is
16025# there to prevent editors from complaining about space-tab.
16026# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16027# splitting by setting IFS to empty value.)
16028IFS=" "" $as_nl"
16029
16030# Find who we are. Look in the path if we contain no directory separator.
22e05272 16031as_myself=
48310492
RH
16032case $0 in #((
16033 *[\\/]* ) as_myself=$0 ;;
16034 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16035for as_dir in $PATH
16036do
16037 IFS=$as_save_IFS
16038 test -z "$as_dir" && as_dir=.
16039 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16040 done
16041IFS=$as_save_IFS
16042
16043 ;;
16044esac
16045# We did not find ourselves, most probably we were run as `sh COMMAND'
16046# in which case we are not to be found in the path.
16047if test "x$as_myself" = x; then
16048 as_myself=$0
16049fi
16050if test ! -f "$as_myself"; then
16051 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16052 exit 1
16053fi
16054
16055# Unset variables that we do not need and which cause bugs (e.g. in
16056# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16057# suppresses any "Segmentation fault" message there. '((' could
16058# trigger a bug in pdksh 5.2.14.
16059for as_var in BASH_ENV ENV MAIL MAILPATH
16060do eval test x\${$as_var+set} = xset \
16061 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16062done
16063PS1='$ '
16064PS2='> '
16065PS4='+ '
16066
16067# NLS nuisances.
16068LC_ALL=C
16069export LC_ALL
16070LANGUAGE=C
16071export LANGUAGE
16072
16073# CDPATH.
16074(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16075
16076
22e05272
JM
16077# as_fn_error STATUS ERROR [LINENO LOG_FD]
16078# ----------------------------------------
48310492
RH
16079# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16080# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 16081# script with STATUS, using 1 if that was 0.
48310492
RH
16082as_fn_error ()
16083{
22e05272
JM
16084 as_status=$1; test $as_status -eq 0 && as_status=1
16085 if test "$4"; then
16086 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16087 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
48310492 16088 fi
22e05272 16089 $as_echo "$as_me: error: $2" >&2
48310492
RH
16090 as_fn_exit $as_status
16091} # as_fn_error
16092
16093
16094# as_fn_set_status STATUS
16095# -----------------------
16096# Set $? to STATUS, without forking.
16097as_fn_set_status ()
16098{
16099 return $1
16100} # as_fn_set_status
16101
16102# as_fn_exit STATUS
16103# -----------------
16104# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16105as_fn_exit ()
16106{
16107 set +e
16108 as_fn_set_status $1
16109 exit $1
16110} # as_fn_exit
16111
16112# as_fn_unset VAR
16113# ---------------
16114# Portably unset VAR.
16115as_fn_unset ()
16116{
16117 { eval $1=; unset $1;}
16118}
16119as_unset=as_fn_unset
16120# as_fn_append VAR VALUE
16121# ----------------------
16122# Append the text in VALUE to the end of the definition contained in VAR. Take
16123# advantage of any shell optimizations that allow amortized linear growth over
16124# repeated appends, instead of the typical quadratic growth present in naive
16125# implementations.
16126if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16127 eval 'as_fn_append ()
16128 {
16129 eval $1+=\$2
16130 }'
16131else
16132 as_fn_append ()
16133 {
16134 eval $1=\$$1\$2
16135 }
16136fi # as_fn_append
16137
16138# as_fn_arith ARG...
16139# ------------------
16140# Perform arithmetic evaluation on the ARGs, and store the result in the
16141# global $as_val. Take advantage of shells that can avoid forks. The arguments
16142# must be portable across $(()) and expr.
16143if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16144 eval 'as_fn_arith ()
16145 {
16146 as_val=$(( $* ))
16147 }'
16148else
16149 as_fn_arith ()
16150 {
16151 as_val=`expr "$@" || test $? -eq 1`
16152 }
16153fi # as_fn_arith
16154
16155
16156if expr a : '\(a\)' >/dev/null 2>&1 &&
16157 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16158 as_expr=expr
16159else
16160 as_expr=false
16161fi
16162
16163if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16164 as_basename=basename
16165else
16166 as_basename=false
16167fi
16168
16169if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16170 as_dirname=dirname
16171else
16172 as_dirname=false
16173fi
16174
16175as_me=`$as_basename -- "$0" ||
16176$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16177 X"$0" : 'X\(//\)$' \| \
16178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16179$as_echo X/"$0" |
16180 sed '/^.*\/\([^/][^/]*\)\/*$/{
16181 s//\1/
16182 q
16183 }
16184 /^X\/\(\/\/\)$/{
16185 s//\1/
16186 q
16187 }
16188 /^X\/\(\/\).*/{
16189 s//\1/
16190 q
16191 }
16192 s/.*/./; q'`
16193
16194# Avoid depending upon Character Ranges.
16195as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16196as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16197as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16198as_cr_digits='0123456789'
16199as_cr_alnum=$as_cr_Letters$as_cr_digits
16200
16201ECHO_C= ECHO_N= ECHO_T=
16202case `echo -n x` in #(((((
16203-n*)
16204 case `echo 'xy\c'` in
16205 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16206 xy) ECHO_C='\c';;
16207 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16208 ECHO_T=' ';;
16209 esac;;
16210*)
16211 ECHO_N='-n';;
16212esac
16213
16214rm -f conf$$ conf$$.exe conf$$.file
16215if test -d conf$$.dir; then
16216 rm -f conf$$.dir/conf$$.file
16217else
16218 rm -f conf$$.dir
16219 mkdir conf$$.dir 2>/dev/null
16220fi
16221if (echo >conf$$.file) 2>/dev/null; then
16222 if ln -s conf$$.file conf$$ 2>/dev/null; then
16223 as_ln_s='ln -s'
16224 # ... but there are two gotchas:
16225 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16226 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 16227 # In both cases, we have to default to `cp -pR'.
48310492 16228 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 16229 as_ln_s='cp -pR'
48310492
RH
16230 elif ln conf$$.file conf$$ 2>/dev/null; then
16231 as_ln_s=ln
16232 else
22e05272 16233 as_ln_s='cp -pR'
48310492
RH
16234 fi
16235else
22e05272 16236 as_ln_s='cp -pR'
48310492
RH
16237fi
16238rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16239rmdir conf$$.dir 2>/dev/null
16240
16241
16242# as_fn_mkdir_p
16243# -------------
16244# Create "$as_dir" as a directory, including parents if necessary.
16245as_fn_mkdir_p ()
16246{
16247
16248 case $as_dir in #(
16249 -*) as_dir=./$as_dir;;
16250 esac
16251 test -d "$as_dir" || eval $as_mkdir_p || {
16252 as_dirs=
16253 while :; do
16254 case $as_dir in #(
16255 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16256 *) as_qdir=$as_dir;;
16257 esac
16258 as_dirs="'$as_qdir' $as_dirs"
16259 as_dir=`$as_dirname -- "$as_dir" ||
16260$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16261 X"$as_dir" : 'X\(//\)[^/]' \| \
16262 X"$as_dir" : 'X\(//\)$' \| \
16263 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16264$as_echo X"$as_dir" |
16265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16266 s//\1/
16267 q
16268 }
16269 /^X\(\/\/\)[^/].*/{
16270 s//\1/
16271 q
16272 }
16273 /^X\(\/\/\)$/{
16274 s//\1/
16275 q
16276 }
16277 /^X\(\/\).*/{
16278 s//\1/
16279 q
16280 }
16281 s/.*/./; q'`
16282 test -d "$as_dir" && break
16283 done
16284 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 16285 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
48310492
RH
16286
16287
16288} # as_fn_mkdir_p
16289if mkdir -p . 2>/dev/null; then
16290 as_mkdir_p='mkdir -p "$as_dir"'
16291else
16292 test -d ./-p && rmdir ./-p
16293 as_mkdir_p=false
16294fi
16295
22e05272
JM
16296
16297# as_fn_executable_p FILE
16298# -----------------------
16299# Test if FILE is an executable regular file.
16300as_fn_executable_p ()
16301{
16302 test -f "$1" && test -x "$1"
16303} # as_fn_executable_p
16304as_test_x='test -x'
16305as_executable_p=as_fn_executable_p
48310492
RH
16306
16307# Sed expression to map a string onto a valid CPP name.
16308as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16309
16310# Sed expression to map a string onto a valid variable name.
16311as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16312
16313
16314exec 6>&1
16315## ----------------------------------- ##
16316## Main body of $CONFIG_STATUS script. ##
16317## ----------------------------------- ##
16318_ASEOF
16319test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16320
16321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16322# Save the log message, to keep $0 and so on meaningful, and to
16323# report actual input values of CONFIG_FILES etc. instead of their
16324# values after options handling.
16325ac_log="
16326This file was extended by GNU Atomic Library $as_me 1.0, which was
22e05272 16327generated by GNU Autoconf 2.69. Invocation command line was
48310492
RH
16328
16329 CONFIG_FILES = $CONFIG_FILES
16330 CONFIG_HEADERS = $CONFIG_HEADERS
16331 CONFIG_LINKS = $CONFIG_LINKS
16332 CONFIG_COMMANDS = $CONFIG_COMMANDS
16333 $ $0 $@
16334
16335on `(hostname || uname -n) 2>/dev/null | sed 1q`
16336"
16337
16338_ACEOF
16339
16340case $ac_config_files in *"
16341"*) set x $ac_config_files; shift; ac_config_files=$*;;
16342esac
16343
16344case $ac_config_headers in *"
16345"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16346esac
16347
16348
16349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16350# Files that config.status was made for.
16351config_files="$ac_config_files"
16352config_headers="$ac_config_headers"
16353config_commands="$ac_config_commands"
16354
16355_ACEOF
16356
16357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16358ac_cs_usage="\
16359\`$as_me' instantiates files and other configuration actions
16360from templates according to the current configuration. Unless the files
16361and actions are specified as TAGs, all are instantiated by default.
16362
16363Usage: $0 [OPTION]... [TAG]...
16364
16365 -h, --help print this help, then exit
16366 -V, --version print version number and configuration settings, then exit
22e05272 16367 --config print configuration, then exit
48310492
RH
16368 -q, --quiet, --silent
16369 do not print progress messages
16370 -d, --debug don't remove temporary files
16371 --recheck update $as_me by reconfiguring in the same conditions
16372 --file=FILE[:TEMPLATE]
16373 instantiate the configuration file FILE
16374 --header=FILE[:TEMPLATE]
16375 instantiate the configuration header FILE
16376
16377Configuration files:
16378$config_files
16379
16380Configuration headers:
16381$config_headers
16382
16383Configuration commands:
16384$config_commands
16385
16386Report bugs to the package provider.
16387GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
16388General help using GNU software: <http://www.gnu.org/gethelp/>."
16389
16390_ACEOF
16391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16392ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
48310492
RH
16393ac_cs_version="\\
16394GNU Atomic Library config.status 1.0
22e05272
JM
16395configured by $0, generated by GNU Autoconf 2.69,
16396 with options \\"\$ac_cs_config\\"
48310492 16397
22e05272 16398Copyright (C) 2012 Free Software Foundation, Inc.
48310492
RH
16399This config.status script is free software; the Free Software Foundation
16400gives unlimited permission to copy, distribute and modify it."
16401
16402ac_pwd='$ac_pwd'
16403srcdir='$srcdir'
16404INSTALL='$INSTALL'
16405MKDIR_P='$MKDIR_P'
16406AWK='$AWK'
16407test -n "\$AWK" || AWK=awk
16408_ACEOF
16409
16410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16411# The default lists apply if the user does not specify any file.
16412ac_need_defaults=:
16413while test $# != 0
16414do
16415 case $1 in
22e05272 16416 --*=?*)
48310492
RH
16417 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16418 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16419 ac_shift=:
16420 ;;
22e05272
JM
16421 --*=)
16422 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16423 ac_optarg=
16424 ac_shift=:
16425 ;;
48310492
RH
16426 *)
16427 ac_option=$1
16428 ac_optarg=$2
16429 ac_shift=shift
16430 ;;
16431 esac
16432
16433 case $ac_option in
16434 # Handling of the options.
16435 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16436 ac_cs_recheck=: ;;
16437 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16438 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16439 --config | --confi | --conf | --con | --co | --c )
16440 $as_echo "$ac_cs_config"; exit ;;
48310492
RH
16441 --debug | --debu | --deb | --de | --d | -d )
16442 debug=: ;;
16443 --file | --fil | --fi | --f )
16444 $ac_shift
16445 case $ac_optarg in
16446 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16447 '') as_fn_error $? "missing file argument" ;;
48310492
RH
16448 esac
16449 as_fn_append CONFIG_FILES " '$ac_optarg'"
16450 ac_need_defaults=false;;
16451 --header | --heade | --head | --hea )
16452 $ac_shift
16453 case $ac_optarg in
16454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16455 esac
16456 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16457 ac_need_defaults=false;;
16458 --he | --h)
16459 # Conflict between --help and --header
22e05272 16460 as_fn_error $? "ambiguous option: \`$1'
48310492
RH
16461Try \`$0 --help' for more information.";;
16462 --help | --hel | -h )
16463 $as_echo "$ac_cs_usage"; exit ;;
16464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16466 ac_cs_silent=: ;;
16467
16468 # This is an error.
22e05272 16469 -*) as_fn_error $? "unrecognized option: \`$1'
48310492
RH
16470Try \`$0 --help' for more information." ;;
16471
16472 *) as_fn_append ac_config_targets " $1"
16473 ac_need_defaults=false ;;
16474
16475 esac
16476 shift
16477done
16478
16479ac_configure_extra_args=
16480
16481if $ac_cs_silent; then
16482 exec 6>/dev/null
16483 ac_configure_extra_args="$ac_configure_extra_args --silent"
16484fi
16485
16486_ACEOF
16487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16488if \$ac_cs_recheck; then
22e05272 16489 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48310492
RH
16490 shift
16491 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16492 CONFIG_SHELL='$SHELL'
16493 export CONFIG_SHELL
16494 exec "\$@"
16495fi
16496
16497_ACEOF
16498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16499exec 5>>config.log
16500{
16501 echo
16502 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16503## Running $as_me. ##
16504_ASBOX
16505 $as_echo "$ac_log"
16506} >&5
16507
16508_ACEOF
16509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16510#
16511# INIT-COMMANDS
16512#
16513
16514srcdir="$srcdir"
16515host="$host"
16516target="$target"
16517with_multisubdir="$with_multisubdir"
16518with_multisrctop="$with_multisrctop"
16519with_target_subdir="$with_target_subdir"
16520ac_configure_args="${multilib_arg} ${ac_configure_args}"
16521multi_basedir="$multi_basedir"
16522CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16523CC="$CC"
16524CXX="$CXX"
16525GFORTRAN="$GFORTRAN"
22e05272 16526GDC="$GDC"
48310492
RH
16527AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16528
16529
16530# The HP-UX ksh and POSIX shell print the target directory to stdout
16531# if CDPATH is set.
16532(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16533
16534sed_quote_subst='$sed_quote_subst'
16535double_quote_subst='$double_quote_subst'
16536delay_variable_subst='$delay_variable_subst'
16537macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16538macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16539enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16540enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16541pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16542enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16543SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16544ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16545host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16546host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16547host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16548build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16549build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16550build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16551SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16552Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16553GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16554EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16555FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16556LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16557NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16558LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16559max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16560ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16561exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16562lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16563lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16564lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16565reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16566reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16567OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16568deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16569file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16570AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16571AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16572STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16573RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16574old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16575old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16576old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16577lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16578CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16579CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16580compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16581GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16582lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16583lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16584lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16585lt_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"`'
16586objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16587MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16588lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16589lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16590lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16591lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16592lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16593need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16594DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16595NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16596LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16597OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16598OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16599libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16600shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16601extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16602archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16603enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16604export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16605whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16606compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16607old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16608old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16609archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16610archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16611module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16612module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16613with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16614allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16615no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16616hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16617hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16618hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16619hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16620hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16621hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16622hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16623hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16624inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16625link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16626fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16627always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16628export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16629exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16630include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16631prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16632file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16633variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16634need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16635need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16636version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16637runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16638shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16639shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16640libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16641library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16642soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16643install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16644postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16645postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16646finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16647finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16648hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16649sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16650sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16651hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16652enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16653enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16654enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16655old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16656striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16657
16658LTCC='$LTCC'
16659LTCFLAGS='$LTCFLAGS'
16660compiler='$compiler_DEFAULT'
16661
16662# A function that is used when there is no print builtin or printf.
16663func_fallback_echo ()
16664{
16665 eval 'cat <<_LTECHO_EOF
16666\$1
16667_LTECHO_EOF'
16668}
16669
16670# Quote evaled strings.
16671for var in SHELL \
16672ECHO \
16673SED \
16674GREP \
16675EGREP \
16676FGREP \
16677LD \
16678NM \
16679LN_S \
16680lt_SP2NL \
16681lt_NL2SP \
16682reload_flag \
16683OBJDUMP \
16684deplibs_check_method \
16685file_magic_cmd \
16686AR \
16687AR_FLAGS \
16688STRIP \
16689RANLIB \
16690CC \
16691CFLAGS \
16692compiler \
16693lt_cv_sys_global_symbol_pipe \
16694lt_cv_sys_global_symbol_to_cdecl \
16695lt_cv_sys_global_symbol_to_c_name_address \
16696lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16697lt_prog_compiler_no_builtin_flag \
16698lt_prog_compiler_wl \
16699lt_prog_compiler_pic \
16700lt_prog_compiler_static \
16701lt_cv_prog_compiler_c_o \
16702need_locks \
16703DSYMUTIL \
16704NMEDIT \
16705LIPO \
16706OTOOL \
16707OTOOL64 \
16708shrext_cmds \
16709export_dynamic_flag_spec \
16710whole_archive_flag_spec \
16711compiler_needs_object \
16712with_gnu_ld \
16713allow_undefined_flag \
16714no_undefined_flag \
16715hardcode_libdir_flag_spec \
16716hardcode_libdir_flag_spec_ld \
16717hardcode_libdir_separator \
16718fix_srcfile_path \
16719exclude_expsyms \
16720include_expsyms \
16721file_list_spec \
16722variables_saved_for_relink \
16723libname_spec \
16724library_names_spec \
16725soname_spec \
16726install_override_mode \
16727finish_eval \
16728old_striplib \
16729striplib; do
16730 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16731 *[\\\\\\\`\\"\\\$]*)
16732 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16733 ;;
16734 *)
16735 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16736 ;;
16737 esac
16738done
16739
16740# Double-quote double-evaled strings.
16741for var in reload_cmds \
16742old_postinstall_cmds \
16743old_postuninstall_cmds \
16744old_archive_cmds \
16745extract_expsyms_cmds \
16746old_archive_from_new_cmds \
16747old_archive_from_expsyms_cmds \
16748archive_cmds \
16749archive_expsym_cmds \
16750module_cmds \
16751module_expsym_cmds \
16752export_symbols_cmds \
16753prelink_cmds \
16754postinstall_cmds \
16755postuninstall_cmds \
16756finish_cmds \
16757sys_lib_search_path_spec \
16758sys_lib_dlsearch_path_spec; do
16759 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16760 *[\\\\\\\`\\"\\\$]*)
16761 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16762 ;;
16763 *)
16764 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16765 ;;
16766 esac
16767done
16768
16769ac_aux_dir='$ac_aux_dir'
16770xsi_shell='$xsi_shell'
16771lt_shell_append='$lt_shell_append'
16772
16773# See if we are running on zsh, and set the options which allow our
16774# commands through without removal of \ escapes INIT.
16775if test -n "\${ZSH_VERSION+set}" ; then
16776 setopt NO_GLOB_SUBST
16777fi
16778
16779
16780 PACKAGE='$PACKAGE'
16781 VERSION='$VERSION'
16782 TIMESTAMP='$TIMESTAMP'
16783 RM='$RM'
16784 ofile='$ofile'
16785
16786
16787
16788
16789GCC="$GCC"
16790CC="$CC"
16791acx_cv_header_stdint="$acx_cv_header_stdint"
16792acx_cv_type_int8_t="$acx_cv_type_int8_t"
16793acx_cv_type_int16_t="$acx_cv_type_int16_t"
16794acx_cv_type_int32_t="$acx_cv_type_int32_t"
16795acx_cv_type_int64_t="$acx_cv_type_int64_t"
16796acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16797ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16798ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16799ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16800ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16801ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16802ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16803ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16804ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16805
16806
16807_ACEOF
16808
16809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16810
16811# Handling of arguments.
16812for ac_config_target in $ac_config_targets
16813do
16814 case $ac_config_target in
16815 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
16816 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16817 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16818 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16819 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
16820 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16821 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
5ff06d76 16822 "testsuite/libatomic-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libatomic-site-extra.exp" ;;
48310492 16823
22e05272 16824 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
48310492
RH
16825 esac
16826done
16827
16828
16829# If the user did not use the arguments to specify the items to instantiate,
16830# then the envvar interface is used. Set only those that are not.
16831# We use the long form for the default assignment because of an extremely
16832# bizarre bug on SunOS 4.1.3.
16833if $ac_need_defaults; then
16834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16835 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16836 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16837fi
16838
16839# Have a temporary directory for convenience. Make it in the build tree
16840# simply because there is no reason against having it here, and in addition,
16841# creating and moving files from /tmp can sometimes cause problems.
16842# Hook for its removal unless debugging.
16843# Note that there is a small window in which the directory will not be cleaned:
16844# after its creation but before its name has been assigned to `$tmp'.
16845$debug ||
16846{
22e05272 16847 tmp= ac_tmp=
48310492 16848 trap 'exit_status=$?
22e05272
JM
16849 : "${ac_tmp:=$tmp}"
16850 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
48310492
RH
16851' 0
16852 trap 'as_fn_exit 1' 1 2 13 15
16853}
16854# Create a (secure) tmp directory for tmp files.
16855
16856{
16857 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16858 test -d "$tmp"
48310492
RH
16859} ||
16860{
16861 tmp=./conf$$-$RANDOM
16862 (umask 077 && mkdir "$tmp")
22e05272
JM
16863} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16864ac_tmp=$tmp
48310492
RH
16865
16866# Set up the scripts for CONFIG_FILES section.
16867# No need to generate them if there are no CONFIG_FILES.
16868# This happens for instance with `./config.status config.h'.
16869if test -n "$CONFIG_FILES"; then
16870
16871
16872ac_cr=`echo X | tr X '\015'`
16873# On cygwin, bash can eat \r inside `` if the user requested igncr.
16874# But we know of no other shell where ac_cr would be empty at this
16875# point, so we can use a bashism as a fallback.
16876if test "x$ac_cr" = x; then
16877 eval ac_cr=\$\'\\r\'
16878fi
16879ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16880if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16881 ac_cs_awk_cr='\\r'
48310492
RH
16882else
16883 ac_cs_awk_cr=$ac_cr
16884fi
16885
22e05272 16886echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
48310492
RH
16887_ACEOF
16888
16889
16890{
16891 echo "cat >conf$$subs.awk <<_ACEOF" &&
16892 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16893 echo "_ACEOF"
16894} >conf$$subs.sh ||
22e05272
JM
16895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16896ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
48310492
RH
16897ac_delim='%!_!# '
16898for ac_last_try in false false false false false :; do
16899 . ./conf$$subs.sh ||
22e05272 16900 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48310492
RH
16901
16902 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16903 if test $ac_delim_n = $ac_delim_num; then
16904 break
16905 elif $ac_last_try; then
22e05272 16906 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48310492
RH
16907 else
16908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16909 fi
16910done
16911rm -f conf$$subs.sh
16912
16913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16914cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
48310492
RH
16915_ACEOF
16916sed -n '
16917h
16918s/^/S["/; s/!.*/"]=/
16919p
16920g
16921s/^[^!]*!//
16922:repl
16923t repl
16924s/'"$ac_delim"'$//
16925t delim
16926:nl
16927h
22e05272 16928s/\(.\{148\}\)..*/\1/
48310492
RH
16929t more1
16930s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16931p
16932n
16933b repl
16934:more1
16935s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16936p
16937g
16938s/.\{148\}//
16939t nl
16940:delim
16941h
22e05272 16942s/\(.\{148\}\)..*/\1/
48310492
RH
16943t more2
16944s/["\\]/\\&/g; s/^/"/; s/$/"/
16945p
16946b
16947:more2
16948s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16949p
16950g
16951s/.\{148\}//
16952t delim
16953' <conf$$subs.awk | sed '
16954/^[^""]/{
16955 N
16956 s/\n//
16957}
16958' >>$CONFIG_STATUS || ac_write_fail=1
16959rm -f conf$$subs.awk
16960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16961_ACAWK
22e05272 16962cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
48310492
RH
16963 for (key in S) S_is_set[key] = 1
16964 FS = "\a"
16965
16966}
16967{
16968 line = $ 0
16969 nfields = split(line, field, "@")
16970 substed = 0
16971 len = length(field[1])
16972 for (i = 2; i < nfields; i++) {
16973 key = field[i]
16974 keylen = length(key)
16975 if (S_is_set[key]) {
16976 value = S[key]
16977 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16978 len += length(value) + length(field[++i])
16979 substed = 1
16980 } else
16981 len += 1 + keylen
16982 }
16983
16984 print line
16985}
16986
16987_ACAWK
16988_ACEOF
16989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16990if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16991 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16992else
16993 cat
22e05272
JM
16994fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16995 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
48310492
RH
16996_ACEOF
16997
22e05272
JM
16998# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16999# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
48310492
RH
17000# trailing colons and then remove the whole line if VPATH becomes empty
17001# (actually we leave an empty line to preserve line numbers).
17002if test "x$srcdir" = x.; then
22e05272
JM
17003 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17004h
17005s///
17006s/^/:/
17007s/[ ]*$/:/
17008s/:\$(srcdir):/:/g
17009s/:\${srcdir}:/:/g
17010s/:@srcdir@:/:/g
17011s/^:*//
48310492 17012s/:*$//
22e05272
JM
17013x
17014s/\(=[ ]*\).*/\1/
17015G
17016s/\n//
48310492
RH
17017s/^[^=]*=[ ]*$//
17018}'
17019fi
17020
17021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17022fi # test -n "$CONFIG_FILES"
17023
17024# Set up the scripts for CONFIG_HEADERS section.
17025# No need to generate them if there are no CONFIG_HEADERS.
17026# This happens for instance with `./config.status Makefile'.
17027if test -n "$CONFIG_HEADERS"; then
22e05272 17028cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
48310492
RH
17029BEGIN {
17030_ACEOF
17031
17032# Transform confdefs.h into an awk script `defines.awk', embedded as
17033# here-document in config.status, that substitutes the proper values into
17034# config.h.in to produce config.h.
17035
17036# Create a delimiter string that does not exist in confdefs.h, to ease
17037# handling of long lines.
17038ac_delim='%!_!# '
17039for ac_last_try in false false :; do
22e05272
JM
17040 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17041 if test -z "$ac_tt"; then
48310492
RH
17042 break
17043 elif $ac_last_try; then
22e05272 17044 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
48310492
RH
17045 else
17046 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17047 fi
17048done
17049
17050# For the awk script, D is an array of macro values keyed by name,
17051# likewise P contains macro parameters if any. Preserve backslash
17052# newline sequences.
17053
17054ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17055sed -n '
17056s/.\{148\}/&'"$ac_delim"'/g
17057t rset
17058:rset
17059s/^[ ]*#[ ]*define[ ][ ]*/ /
17060t def
17061d
17062:def
17063s/\\$//
17064t bsnl
17065s/["\\]/\\&/g
17066s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17067D["\1"]=" \3"/p
17068s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17069d
17070:bsnl
17071s/["\\]/\\&/g
17072s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17073D["\1"]=" \3\\\\\\n"\\/p
17074t cont
17075s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17076t cont
17077d
17078:cont
17079n
17080s/.\{148\}/&'"$ac_delim"'/g
17081t clear
17082:clear
17083s/\\$//
17084t bsnlc
17085s/["\\]/\\&/g; s/^/"/; s/$/"/p
17086d
17087:bsnlc
17088s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17089b cont
17090' <confdefs.h | sed '
17091s/'"$ac_delim"'/"\\\
17092"/g' >>$CONFIG_STATUS || ac_write_fail=1
17093
17094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095 for (key in D) D_is_set[key] = 1
17096 FS = "\a"
17097}
17098/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17099 line = \$ 0
17100 split(line, arg, " ")
17101 if (arg[1] == "#") {
17102 defundef = arg[2]
17103 mac1 = arg[3]
17104 } else {
17105 defundef = substr(arg[1], 2)
17106 mac1 = arg[2]
17107 }
17108 split(mac1, mac2, "(") #)
17109 macro = mac2[1]
17110 prefix = substr(line, 1, index(line, defundef) - 1)
17111 if (D_is_set[macro]) {
17112 # Preserve the white space surrounding the "#".
17113 print prefix "define", macro P[macro] D[macro]
17114 next
17115 } else {
17116 # Replace #undef with comments. This is necessary, for example,
17117 # in the case of _POSIX_SOURCE, which is predefined and required
17118 # on some systems where configure will not decide to define it.
17119 if (defundef == "undef") {
17120 print "/*", prefix defundef, macro, "*/"
17121 next
17122 }
17123 }
17124}
17125{ print }
17126_ACAWK
17127_ACEOF
17128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 17129 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
48310492
RH
17130fi # test -n "$CONFIG_HEADERS"
17131
17132
17133eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17134shift
17135for ac_tag
17136do
17137 case $ac_tag in
17138 :[FHLC]) ac_mode=$ac_tag; continue;;
17139 esac
17140 case $ac_mode$ac_tag in
17141 :[FHL]*:*);;
22e05272 17142 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
48310492
RH
17143 :[FH]-) ac_tag=-:-;;
17144 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17145 esac
17146 ac_save_IFS=$IFS
17147 IFS=:
17148 set x $ac_tag
17149 IFS=$ac_save_IFS
17150 shift
17151 ac_file=$1
17152 shift
17153
17154 case $ac_mode in
17155 :L) ac_source=$1;;
17156 :[FH])
17157 ac_file_inputs=
17158 for ac_f
17159 do
17160 case $ac_f in
22e05272 17161 -) ac_f="$ac_tmp/stdin";;
48310492
RH
17162 *) # Look for the file first in the build tree, then in the source tree
17163 # (if the path is not absolute). The absolute path cannot be DOS-style,
17164 # because $ac_f cannot contain `:'.
17165 test -f "$ac_f" ||
17166 case $ac_f in
17167 [\\/$]*) false;;
17168 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17169 esac ||
22e05272 17170 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
48310492
RH
17171 esac
17172 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17173 as_fn_append ac_file_inputs " '$ac_f'"
17174 done
17175
17176 # Let's still pretend it is `configure' which instantiates (i.e., don't
17177 # use $as_me), people would be surprised to read:
17178 # /* config.h. Generated by config.status. */
17179 configure_input='Generated from '`
17180 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17181 `' by configure.'
17182 if test x"$ac_file" != x-; then
17183 configure_input="$ac_file. $configure_input"
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17185$as_echo "$as_me: creating $ac_file" >&6;}
17186 fi
17187 # Neutralize special characters interpreted by sed in replacement strings.
17188 case $configure_input in #(
17189 *\&* | *\|* | *\\* )
17190 ac_sed_conf_input=`$as_echo "$configure_input" |
17191 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17192 *) ac_sed_conf_input=$configure_input;;
17193 esac
17194
17195 case $ac_tag in
22e05272
JM
17196 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
48310492
RH
17198 esac
17199 ;;
17200 esac
17201
17202 ac_dir=`$as_dirname -- "$ac_file" ||
17203$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17204 X"$ac_file" : 'X\(//\)[^/]' \| \
17205 X"$ac_file" : 'X\(//\)$' \| \
17206 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17207$as_echo X"$ac_file" |
17208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17209 s//\1/
17210 q
17211 }
17212 /^X\(\/\/\)[^/].*/{
17213 s//\1/
17214 q
17215 }
17216 /^X\(\/\/\)$/{
17217 s//\1/
17218 q
17219 }
17220 /^X\(\/\).*/{
17221 s//\1/
17222 q
17223 }
17224 s/.*/./; q'`
17225 as_dir="$ac_dir"; as_fn_mkdir_p
17226 ac_builddir=.
17227
17228case "$ac_dir" in
17229.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17230*)
17231 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17232 # A ".." for each directory in $ac_dir_suffix.
17233 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17234 case $ac_top_builddir_sub in
17235 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17236 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17237 esac ;;
17238esac
17239ac_abs_top_builddir=$ac_pwd
17240ac_abs_builddir=$ac_pwd$ac_dir_suffix
17241# for backward compatibility:
17242ac_top_builddir=$ac_top_build_prefix
17243
17244case $srcdir in
17245 .) # We are building in place.
17246 ac_srcdir=.
17247 ac_top_srcdir=$ac_top_builddir_sub
17248 ac_abs_top_srcdir=$ac_pwd ;;
17249 [\\/]* | ?:[\\/]* ) # Absolute name.
17250 ac_srcdir=$srcdir$ac_dir_suffix;
17251 ac_top_srcdir=$srcdir
17252 ac_abs_top_srcdir=$srcdir ;;
17253 *) # Relative name.
17254 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17255 ac_top_srcdir=$ac_top_build_prefix$srcdir
17256 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17257esac
17258ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17259
17260
17261 case $ac_mode in
17262 :F)
17263 #
17264 # CONFIG_FILE
17265 #
17266
17267 case $INSTALL in
17268 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17269 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17270 esac
17271 ac_MKDIR_P=$MKDIR_P
17272 case $MKDIR_P in
17273 [\\/$]* | ?:[\\/]* ) ;;
17274 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17275 esac
17276_ACEOF
17277
17278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17279# If the template does not know about datarootdir, expand it.
17280# FIXME: This hack should be removed a few years after 2.60.
17281ac_datarootdir_hack=; ac_datarootdir_seen=
17282ac_sed_dataroot='
17283/datarootdir/ {
17284 p
17285 q
17286}
17287/@datadir@/p
17288/@docdir@/p
17289/@infodir@/p
17290/@localedir@/p
17291/@mandir@/p'
17292case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17293*datarootdir*) ac_datarootdir_seen=yes;;
17294*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17296$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17297_ACEOF
17298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17299 ac_datarootdir_hack='
17300 s&@datadir@&$datadir&g
17301 s&@docdir@&$docdir&g
17302 s&@infodir@&$infodir&g
17303 s&@localedir@&$localedir&g
17304 s&@mandir@&$mandir&g
17305 s&\\\${datarootdir}&$datarootdir&g' ;;
17306esac
17307_ACEOF
17308
17309# Neutralize VPATH when `$srcdir' = `.'.
17310# Shell code in configure.ac might set extrasub.
17311# FIXME: do we really want to maintain this feature?
17312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17313ac_sed_extra="$ac_vpsub
17314$extrasub
17315_ACEOF
17316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17317:t
17318/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17319s|@configure_input@|$ac_sed_conf_input|;t t
17320s&@top_builddir@&$ac_top_builddir_sub&;t t
17321s&@top_build_prefix@&$ac_top_build_prefix&;t t
17322s&@srcdir@&$ac_srcdir&;t t
17323s&@abs_srcdir@&$ac_abs_srcdir&;t t
17324s&@top_srcdir@&$ac_top_srcdir&;t t
17325s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17326s&@builddir@&$ac_builddir&;t t
17327s&@abs_builddir@&$ac_abs_builddir&;t t
17328s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17329s&@INSTALL@&$ac_INSTALL&;t t
17330s&@MKDIR_P@&$ac_MKDIR_P&;t t
17331$ac_datarootdir_hack
17332"
22e05272
JM
17333eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17334 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17335
17336test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
17337 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17338 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17339 "$ac_tmp/out"`; test -z "$ac_out"; } &&
48310492 17340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17341which seems to be undefined. Please make sure it is defined" >&5
48310492 17342$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17343which seems to be undefined. Please make sure it is defined" >&2;}
48310492 17344
22e05272 17345 rm -f "$ac_tmp/stdin"
48310492 17346 case $ac_file in
22e05272
JM
17347 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17348 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
48310492 17349 esac \
22e05272 17350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17351 ;;
17352 :H)
17353 #
17354 # CONFIG_HEADER
17355 #
17356 if test x"$ac_file" != x-; then
17357 {
17358 $as_echo "/* $configure_input */" \
22e05272
JM
17359 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17360 } >"$ac_tmp/config.h" \
17361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17362 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48310492
RH
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17364$as_echo "$as_me: $ac_file is unchanged" >&6;}
17365 else
17366 rm -f "$ac_file"
22e05272
JM
17367 mv "$ac_tmp/config.h" "$ac_file" \
17368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48310492
RH
17369 fi
17370 else
17371 $as_echo "/* $configure_input */" \
22e05272
JM
17372 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17373 || as_fn_error $? "could not create -" "$LINENO" 5
48310492
RH
17374 fi
17375# Compute "$ac_file"'s index in $config_headers.
17376_am_arg="$ac_file"
17377_am_stamp_count=1
17378for _am_header in $config_headers :; do
17379 case $_am_header in
17380 $_am_arg | $_am_arg:* )
17381 break ;;
17382 * )
17383 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17384 esac
17385done
17386echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17387$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17388 X"$_am_arg" : 'X\(//\)[^/]' \| \
17389 X"$_am_arg" : 'X\(//\)$' \| \
17390 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17391$as_echo X"$_am_arg" |
17392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17393 s//\1/
17394 q
17395 }
17396 /^X\(\/\/\)[^/].*/{
17397 s//\1/
17398 q
17399 }
17400 /^X\(\/\/\)$/{
17401 s//\1/
17402 q
17403 }
17404 /^X\(\/\).*/{
17405 s//\1/
17406 q
17407 }
17408 s/.*/./; q'`/stamp-h$_am_stamp_count
17409 ;;
17410
17411 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17412$as_echo "$as_me: executing $ac_file commands" >&6;}
17413 ;;
17414 esac
17415
17416
17417 case $ac_file$ac_mode in
17418 "default-1":C)
17419# Only add multilib support code if we just rebuilt the top-level
17420# Makefile.
17421case " $CONFIG_FILES " in
17422 *" Makefile "*)
17423 ac_file=Makefile . ${multi_basedir}/config-ml.in
17424 ;;
17425esac ;;
17426 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 17427 # Older Autoconf quotes --file arguments for eval, but not when files
48310492
RH
17428 # are listed without --file. Let's play safe and only enable the eval
17429 # if we detect the quoting.
17430 case $CONFIG_FILES in
17431 *\'*) eval set x "$CONFIG_FILES" ;;
17432 *) set x $CONFIG_FILES ;;
17433 esac
17434 shift
17435 for mf
17436 do
17437 # Strip MF so we end up with the name of the file.
17438 mf=`echo "$mf" | sed -e 's/:.*$//'`
17439 # Check whether this is an Automake generated Makefile or not.
22e05272 17440 # We used to match only the files named 'Makefile.in', but
48310492
RH
17441 # some people rename them; so instead we look at the file content.
17442 # Grep'ing the first line is not enough: some people post-process
17443 # each Makefile.in and add a new line on top of each file to say so.
17444 # Grep'ing the whole file is not good either: AIX grep has a line
17445 # limit of 2048, but all sed's we know have understand at least 4000.
17446 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17447 dirpart=`$as_dirname -- "$mf" ||
17448$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17449 X"$mf" : 'X\(//\)[^/]' \| \
17450 X"$mf" : 'X\(//\)$' \| \
17451 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17452$as_echo X"$mf" |
17453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17454 s//\1/
17455 q
17456 }
17457 /^X\(\/\/\)[^/].*/{
17458 s//\1/
17459 q
17460 }
17461 /^X\(\/\/\)$/{
17462 s//\1/
17463 q
17464 }
17465 /^X\(\/\).*/{
17466 s//\1/
17467 q
17468 }
17469 s/.*/./; q'`
17470 else
17471 continue
17472 fi
17473 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 17474 # from the Makefile without running 'make'.
48310492
RH
17475 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17476 test -z "$DEPDIR" && continue
17477 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 17478 test -z "$am__include" && continue
48310492 17479 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48310492
RH
17480 # Find all dependency output files, they are included files with
17481 # $(DEPDIR) in their names. We invoke sed twice because it is the
17482 # simplest approach to changing $(DEPDIR) to its actual value in the
17483 # expansion.
17484 for file in `sed -n "
17485 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 17486 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
48310492
RH
17487 # Make sure the directory exists.
17488 test -f "$dirpart/$file" && continue
17489 fdir=`$as_dirname -- "$file" ||
17490$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17491 X"$file" : 'X\(//\)[^/]' \| \
17492 X"$file" : 'X\(//\)$' \| \
17493 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17494$as_echo X"$file" |
17495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17496 s//\1/
17497 q
17498 }
17499 /^X\(\/\/\)[^/].*/{
17500 s//\1/
17501 q
17502 }
17503 /^X\(\/\/\)$/{
17504 s//\1/
17505 q
17506 }
17507 /^X\(\/\).*/{
17508 s//\1/
17509 q
17510 }
17511 s/.*/./; q'`
17512 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17513 # echo "creating $dirpart/$file"
17514 echo '# dummy' > "$dirpart/$file"
17515 done
17516 done
17517}
17518 ;;
17519 "libtool":C)
17520
17521 # See if we are running on zsh, and set the options which allow our
17522 # commands through without removal of \ escapes.
17523 if test -n "${ZSH_VERSION+set}" ; then
17524 setopt NO_GLOB_SUBST
17525 fi
17526
17527 cfgfile="${ofile}T"
17528 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17529 $RM "$cfgfile"
17530
17531 cat <<_LT_EOF >> "$cfgfile"
17532#! $SHELL
17533
17534# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17535# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17536# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17537# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17538#
17539# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17540# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17541# Written by Gordon Matzigkeit, 1996
17542#
17543# This file is part of GNU Libtool.
17544#
17545# GNU Libtool is free software; you can redistribute it and/or
17546# modify it under the terms of the GNU General Public License as
17547# published by the Free Software Foundation; either version 2 of
17548# the License, or (at your option) any later version.
17549#
17550# As a special exception to the GNU General Public License,
17551# if you distribute this file as part of a program or library that
17552# is built using GNU Libtool, you may include this file under the
17553# same distribution terms that you use for the rest of that program.
17554#
17555# GNU Libtool is distributed in the hope that it will be useful,
17556# but WITHOUT ANY WARRANTY; without even the implied warranty of
17557# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17558# GNU General Public License for more details.
17559#
17560# You should have received a copy of the GNU General Public License
17561# along with GNU Libtool; see the file COPYING. If not, a copy
17562# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17563# obtained by writing to the Free Software Foundation, Inc.,
17564# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17565
17566
17567# The names of the tagged configurations supported by this script.
17568available_tags=""
17569
17570# ### BEGIN LIBTOOL CONFIG
17571
17572# Which release of libtool.m4 was used?
17573macro_version=$macro_version
17574macro_revision=$macro_revision
17575
17576# Whether or not to build shared libraries.
17577build_libtool_libs=$enable_shared
17578
17579# Whether or not to build static libraries.
17580build_old_libs=$enable_static
17581
17582# What type of objects to build.
17583pic_mode=$pic_mode
17584
17585# Whether or not to optimize for fast installation.
17586fast_install=$enable_fast_install
17587
17588# Shell to use when invoking shell scripts.
17589SHELL=$lt_SHELL
17590
17591# An echo program that protects backslashes.
17592ECHO=$lt_ECHO
17593
17594# The host system.
17595host_alias=$host_alias
17596host=$host
17597host_os=$host_os
17598
17599# The build system.
17600build_alias=$build_alias
17601build=$build
17602build_os=$build_os
17603
17604# A sed program that does not truncate output.
17605SED=$lt_SED
17606
17607# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17608Xsed="\$SED -e 1s/^X//"
17609
17610# A grep program that handles long lines.
17611GREP=$lt_GREP
17612
17613# An ERE matcher.
17614EGREP=$lt_EGREP
17615
17616# A literal string matcher.
17617FGREP=$lt_FGREP
17618
17619# A BSD- or MS-compatible name lister.
17620NM=$lt_NM
17621
17622# Whether we need soft or hard links.
17623LN_S=$lt_LN_S
17624
17625# What is the maximum length of a command?
17626max_cmd_len=$max_cmd_len
17627
17628# Object file suffix (normally "o").
17629objext=$ac_objext
17630
17631# Executable file suffix (normally "").
17632exeext=$exeext
17633
17634# whether the shell understands "unset".
17635lt_unset=$lt_unset
17636
17637# turn spaces into newlines.
17638SP2NL=$lt_lt_SP2NL
17639
17640# turn newlines into spaces.
17641NL2SP=$lt_lt_NL2SP
17642
17643# An object symbol dumper.
17644OBJDUMP=$lt_OBJDUMP
17645
17646# Method to check whether dependent libraries are shared objects.
17647deplibs_check_method=$lt_deplibs_check_method
17648
17649# Command to use when deplibs_check_method == "file_magic".
17650file_magic_cmd=$lt_file_magic_cmd
17651
17652# The archiver.
17653AR=$lt_AR
17654AR_FLAGS=$lt_AR_FLAGS
17655
17656# A symbol stripping program.
17657STRIP=$lt_STRIP
17658
17659# Commands used to install an old-style archive.
17660RANLIB=$lt_RANLIB
17661old_postinstall_cmds=$lt_old_postinstall_cmds
17662old_postuninstall_cmds=$lt_old_postuninstall_cmds
17663
17664# Whether to use a lock for old archive extraction.
17665lock_old_archive_extraction=$lock_old_archive_extraction
17666
17667# A C compiler.
17668LTCC=$lt_CC
17669
17670# LTCC compiler flags.
17671LTCFLAGS=$lt_CFLAGS
17672
17673# Take the output of nm and produce a listing of raw symbols and C names.
17674global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17675
17676# Transform the output of nm in a proper C declaration.
17677global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17678
17679# Transform the output of nm in a C name address pair.
17680global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17681
17682# Transform the output of nm in a C name address pair when lib prefix is needed.
17683global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17684
17685# The name of the directory that contains temporary libtool files.
17686objdir=$objdir
17687
17688# Used to examine libraries when file_magic_cmd begins with "file".
17689MAGIC_CMD=$MAGIC_CMD
17690
17691# Must we lock files when doing compilation?
17692need_locks=$lt_need_locks
17693
17694# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17695DSYMUTIL=$lt_DSYMUTIL
17696
17697# Tool to change global to local symbols on Mac OS X.
17698NMEDIT=$lt_NMEDIT
17699
17700# Tool to manipulate fat objects and archives on Mac OS X.
17701LIPO=$lt_LIPO
17702
17703# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17704OTOOL=$lt_OTOOL
17705
17706# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17707OTOOL64=$lt_OTOOL64
17708
17709# Old archive suffix (normally "a").
17710libext=$libext
17711
17712# Shared library suffix (normally ".so").
17713shrext_cmds=$lt_shrext_cmds
17714
17715# The commands to extract the exported symbol list from a shared archive.
17716extract_expsyms_cmds=$lt_extract_expsyms_cmds
17717
17718# Variables whose values should be saved in libtool wrapper scripts and
17719# restored at link time.
17720variables_saved_for_relink=$lt_variables_saved_for_relink
17721
17722# Do we need the "lib" prefix for modules?
17723need_lib_prefix=$need_lib_prefix
17724
17725# Do we need a version for libraries?
17726need_version=$need_version
17727
17728# Library versioning type.
17729version_type=$version_type
17730
17731# Shared library runtime path variable.
17732runpath_var=$runpath_var
17733
17734# Shared library path variable.
17735shlibpath_var=$shlibpath_var
17736
17737# Is shlibpath searched before the hard-coded library search path?
17738shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17739
17740# Format of library name prefix.
17741libname_spec=$lt_libname_spec
17742
17743# List of archive names. First name is the real one, the rest are links.
17744# The last name is the one that the linker finds with -lNAME
17745library_names_spec=$lt_library_names_spec
17746
17747# The coded name of the library, if different from the real name.
17748soname_spec=$lt_soname_spec
17749
17750# Permission mode override for installation of shared libraries.
17751install_override_mode=$lt_install_override_mode
17752
17753# Command to use after installation of a shared archive.
17754postinstall_cmds=$lt_postinstall_cmds
17755
17756# Command to use after uninstallation of a shared archive.
17757postuninstall_cmds=$lt_postuninstall_cmds
17758
17759# Commands used to finish a libtool library installation in a directory.
17760finish_cmds=$lt_finish_cmds
17761
17762# As "finish_cmds", except a single script fragment to be evaled but
17763# not shown.
17764finish_eval=$lt_finish_eval
17765
17766# Whether we should hardcode library paths into libraries.
17767hardcode_into_libs=$hardcode_into_libs
17768
17769# Compile-time system search path for libraries.
17770sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17771
17772# Run-time system search path for libraries.
17773sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17774
17775# Whether dlopen is supported.
17776dlopen_support=$enable_dlopen
17777
17778# Whether dlopen of programs is supported.
17779dlopen_self=$enable_dlopen_self
17780
17781# Whether dlopen of statically linked programs is supported.
17782dlopen_self_static=$enable_dlopen_self_static
17783
17784# Commands to strip libraries.
17785old_striplib=$lt_old_striplib
17786striplib=$lt_striplib
17787
17788
17789# The linker used to build libraries.
17790LD=$lt_LD
17791
17792# How to create reloadable object files.
17793reload_flag=$lt_reload_flag
17794reload_cmds=$lt_reload_cmds
17795
17796# Commands used to build an old-style archive.
17797old_archive_cmds=$lt_old_archive_cmds
17798
17799# A language specific compiler.
17800CC=$lt_compiler
17801
17802# Is the compiler the GNU compiler?
17803with_gcc=$GCC
17804
17805# Compiler flag to turn off builtin functions.
17806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17807
17808# How to pass a linker flag through the compiler.
17809wl=$lt_lt_prog_compiler_wl
17810
17811# Additional compiler flags for building library objects.
17812pic_flag=$lt_lt_prog_compiler_pic
17813
17814# Compiler flag to prevent dynamic linking.
17815link_static_flag=$lt_lt_prog_compiler_static
17816
17817# Does compiler simultaneously support -c and -o options?
17818compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17819
17820# Whether or not to add -lc for building shared libraries.
17821build_libtool_need_lc=$archive_cmds_need_lc
17822
17823# Whether or not to disallow shared libs when runtime libs are static.
17824allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17825
17826# Compiler flag to allow reflexive dlopens.
17827export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17828
17829# Compiler flag to generate shared objects directly from archives.
17830whole_archive_flag_spec=$lt_whole_archive_flag_spec
17831
17832# Whether the compiler copes with passing no objects directly.
17833compiler_needs_object=$lt_compiler_needs_object
17834
17835# Create an old-style archive from a shared archive.
17836old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17837
17838# Create a temporary old-style archive to link instead of a shared archive.
17839old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17840
17841# Commands used to build a shared archive.
17842archive_cmds=$lt_archive_cmds
17843archive_expsym_cmds=$lt_archive_expsym_cmds
17844
17845# Commands used to build a loadable module if different from building
17846# a shared archive.
17847module_cmds=$lt_module_cmds
17848module_expsym_cmds=$lt_module_expsym_cmds
17849
17850# Whether we are building with GNU ld or not.
17851with_gnu_ld=$lt_with_gnu_ld
17852
17853# Flag that allows shared libraries with undefined symbols to be built.
17854allow_undefined_flag=$lt_allow_undefined_flag
17855
17856# Flag that enforces no undefined symbols.
17857no_undefined_flag=$lt_no_undefined_flag
17858
17859# Flag to hardcode \$libdir into a binary during linking.
17860# This must work even if \$libdir does not exist
17861hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17862
17863# If ld is used when linking, flag to hardcode \$libdir into a binary
17864# during linking. This must work even if \$libdir does not exist.
17865hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17866
17867# Whether we need a single "-rpath" flag with a separated argument.
17868hardcode_libdir_separator=$lt_hardcode_libdir_separator
17869
17870# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17871# DIR into the resulting binary.
17872hardcode_direct=$hardcode_direct
17873
17874# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17875# DIR into the resulting binary and the resulting library dependency is
17876# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17877# library is relocated.
17878hardcode_direct_absolute=$hardcode_direct_absolute
17879
17880# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17881# into the resulting binary.
17882hardcode_minus_L=$hardcode_minus_L
17883
17884# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17885# into the resulting binary.
17886hardcode_shlibpath_var=$hardcode_shlibpath_var
17887
17888# Set to "yes" if building a shared library automatically hardcodes DIR
17889# into the library and all subsequent libraries and executables linked
17890# against it.
17891hardcode_automatic=$hardcode_automatic
17892
17893# Set to yes if linker adds runtime paths of dependent libraries
17894# to runtime path list.
17895inherit_rpath=$inherit_rpath
17896
17897# Whether libtool must link a program against all its dependency libraries.
17898link_all_deplibs=$link_all_deplibs
17899
17900# Fix the shell variable \$srcfile for the compiler.
17901fix_srcfile_path=$lt_fix_srcfile_path
17902
17903# Set to "yes" if exported symbols are required.
17904always_export_symbols=$always_export_symbols
17905
17906# The commands to list exported symbols.
17907export_symbols_cmds=$lt_export_symbols_cmds
17908
17909# Symbols that should not be listed in the preloaded symbols.
17910exclude_expsyms=$lt_exclude_expsyms
17911
17912# Symbols that must always be exported.
17913include_expsyms=$lt_include_expsyms
17914
17915# Commands necessary for linking programs (against libraries) with templates.
17916prelink_cmds=$lt_prelink_cmds
17917
17918# Specify filename containing input files.
17919file_list_spec=$lt_file_list_spec
17920
17921# How to hardcode a shared library path into an executable.
17922hardcode_action=$hardcode_action
17923
17924# ### END LIBTOOL CONFIG
17925
17926_LT_EOF
17927
17928 case $host_os in
17929 aix3*)
17930 cat <<\_LT_EOF >> "$cfgfile"
17931# AIX sometimes has problems with the GCC collect2 program. For some
17932# reason, if we set the COLLECT_NAMES environment variable, the problems
17933# vanish in a puff of smoke.
17934if test "X${COLLECT_NAMES+set}" != Xset; then
17935 COLLECT_NAMES=
17936 export COLLECT_NAMES
17937fi
17938_LT_EOF
17939 ;;
17940 esac
17941
17942
17943ltmain="$ac_aux_dir/ltmain.sh"
17944
17945
17946 # We use sed instead of cat because bash on DJGPP gets confused if
17947 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17948 # text mode, it properly converts lines to CR/LF. This bash problem
17949 # is reportedly fixed, but why not run on old versions too?
17950 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17951 || (rm -f "$cfgfile"; exit 1)
17952
17953 case $xsi_shell in
17954 yes)
17955 cat << \_LT_EOF >> "$cfgfile"
17956
17957# func_dirname file append nondir_replacement
17958# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17959# otherwise set result to NONDIR_REPLACEMENT.
17960func_dirname ()
17961{
17962 case ${1} in
17963 */*) func_dirname_result="${1%/*}${2}" ;;
17964 * ) func_dirname_result="${3}" ;;
17965 esac
17966}
17967
17968# func_basename file
17969func_basename ()
17970{
17971 func_basename_result="${1##*/}"
17972}
17973
17974# func_dirname_and_basename file append nondir_replacement
17975# perform func_basename and func_dirname in a single function
17976# call:
17977# dirname: Compute the dirname of FILE. If nonempty,
17978# add APPEND to the result, otherwise set result
17979# to NONDIR_REPLACEMENT.
17980# value returned in "$func_dirname_result"
17981# basename: Compute filename of FILE.
17982# value retuned in "$func_basename_result"
17983# Implementation must be kept synchronized with func_dirname
17984# and func_basename. For efficiency, we do not delegate to
17985# those functions but instead duplicate the functionality here.
17986func_dirname_and_basename ()
17987{
17988 case ${1} in
17989 */*) func_dirname_result="${1%/*}${2}" ;;
17990 * ) func_dirname_result="${3}" ;;
17991 esac
17992 func_basename_result="${1##*/}"
17993}
17994
17995# func_stripname prefix suffix name
17996# strip PREFIX and SUFFIX off of NAME.
17997# PREFIX and SUFFIX must not contain globbing or regex special
17998# characters, hashes, percent signs, but SUFFIX may contain a leading
17999# dot (in which case that matches only a dot).
18000func_stripname ()
18001{
18002 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18003 # positional parameters, so assign one to ordinary parameter first.
18004 func_stripname_result=${3}
18005 func_stripname_result=${func_stripname_result#"${1}"}
18006 func_stripname_result=${func_stripname_result%"${2}"}
18007}
18008
18009# func_opt_split
18010func_opt_split ()
18011{
18012 func_opt_split_opt=${1%%=*}
18013 func_opt_split_arg=${1#*=}
18014}
18015
18016# func_lo2o object
18017func_lo2o ()
18018{
18019 case ${1} in
18020 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18021 *) func_lo2o_result=${1} ;;
18022 esac
18023}
18024
18025# func_xform libobj-or-source
18026func_xform ()
18027{
18028 func_xform_result=${1%.*}.lo
18029}
18030
18031# func_arith arithmetic-term...
18032func_arith ()
18033{
18034 func_arith_result=$(( $* ))
18035}
18036
18037# func_len string
18038# STRING may not start with a hyphen.
18039func_len ()
18040{
18041 func_len_result=${#1}
18042}
18043
18044_LT_EOF
18045 ;;
18046 *) # Bourne compatible functions.
18047 cat << \_LT_EOF >> "$cfgfile"
18048
18049# func_dirname file append nondir_replacement
18050# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18051# otherwise set result to NONDIR_REPLACEMENT.
18052func_dirname ()
18053{
18054 # Extract subdirectory from the argument.
18055 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18056 if test "X$func_dirname_result" = "X${1}"; then
18057 func_dirname_result="${3}"
18058 else
18059 func_dirname_result="$func_dirname_result${2}"
18060 fi
18061}
18062
18063# func_basename file
18064func_basename ()
18065{
18066 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18067}
18068
18069
18070# func_stripname prefix suffix name
18071# strip PREFIX and SUFFIX off of NAME.
18072# PREFIX and SUFFIX must not contain globbing or regex special
18073# characters, hashes, percent signs, but SUFFIX may contain a leading
18074# dot (in which case that matches only a dot).
18075# func_strip_suffix prefix name
18076func_stripname ()
18077{
18078 case ${2} in
18079 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18080 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18081 esac
18082}
18083
18084# sed scripts:
18085my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18086my_sed_long_arg='1s/^-[^=]*=//'
18087
18088# func_opt_split
18089func_opt_split ()
18090{
18091 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18092 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18093}
18094
18095# func_lo2o object
18096func_lo2o ()
18097{
18098 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18099}
18100
18101# func_xform libobj-or-source
18102func_xform ()
18103{
18104 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18105}
18106
18107# func_arith arithmetic-term...
18108func_arith ()
18109{
18110 func_arith_result=`expr "$@"`
18111}
18112
18113# func_len string
18114# STRING may not start with a hyphen.
18115func_len ()
18116{
18117 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18118}
18119
18120_LT_EOF
18121esac
18122
18123case $lt_shell_append in
18124 yes)
18125 cat << \_LT_EOF >> "$cfgfile"
18126
18127# func_append var value
18128# Append VALUE to the end of shell variable VAR.
18129func_append ()
18130{
18131 eval "$1+=\$2"
18132}
18133_LT_EOF
18134 ;;
18135 *)
18136 cat << \_LT_EOF >> "$cfgfile"
18137
18138# func_append var value
18139# Append VALUE to the end of shell variable VAR.
18140func_append ()
18141{
18142 eval "$1=\$$1\$2"
18143}
18144
18145_LT_EOF
18146 ;;
18147 esac
18148
18149
18150 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18151 || (rm -f "$cfgfile"; exit 1)
18152
18153 mv -f "$cfgfile" "$ofile" ||
18154 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18155 chmod +x "$ofile"
18156
18157 ;;
18158 "gstdint.h":C)
18159if test "$GCC" = yes; then
18160 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18161else
18162 echo "/* generated for $CC */" > tmp-stdint.h
18163fi
18164
18165sed 's/^ *//' >> tmp-stdint.h <<EOF
18166
18167 #ifndef GCC_GENERATED_STDINT_H
18168 #define GCC_GENERATED_STDINT_H 1
18169
18170 #include <sys/types.h>
18171EOF
18172
18173if test "$acx_cv_header_stdint" != stdint.h; then
18174 echo "#include <stddef.h>" >> tmp-stdint.h
18175fi
18176if test "$acx_cv_header_stdint" != stddef.h; then
18177 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18178fi
18179
18180sed 's/^ *//' >> tmp-stdint.h <<EOF
18181 /* glibc uses these symbols as guards to prevent redefinitions. */
18182 #ifdef __int8_t_defined
18183 #define _INT8_T
18184 #define _INT16_T
18185 #define _INT32_T
18186 #endif
18187 #ifdef __uint32_t_defined
18188 #define _UINT32_T
18189 #endif
18190
18191EOF
18192
18193# ----------------- done header, emit basic int types -------------
18194if test "$acx_cv_header_stdint" = stddef.h; then
18195 sed 's/^ *//' >> tmp-stdint.h <<EOF
18196
18197 #ifndef _UINT8_T
18198 #define _UINT8_T
18199 #ifndef __uint8_t_defined
18200 #define __uint8_t_defined
18201 #ifndef uint8_t
18202 typedef unsigned $acx_cv_type_int8_t uint8_t;
18203 #endif
18204 #endif
18205 #endif
18206
18207 #ifndef _UINT16_T
18208 #define _UINT16_T
18209 #ifndef __uint16_t_defined
18210 #define __uint16_t_defined
18211 #ifndef uint16_t
18212 typedef unsigned $acx_cv_type_int16_t uint16_t;
18213 #endif
18214 #endif
18215 #endif
18216
18217 #ifndef _UINT32_T
18218 #define _UINT32_T
18219 #ifndef __uint32_t_defined
18220 #define __uint32_t_defined
18221 #ifndef uint32_t
18222 typedef unsigned $acx_cv_type_int32_t uint32_t;
18223 #endif
18224 #endif
18225 #endif
18226
18227 #ifndef _INT8_T
18228 #define _INT8_T
18229 #ifndef __int8_t_defined
18230 #define __int8_t_defined
18231 #ifndef int8_t
18232 typedef $acx_cv_type_int8_t int8_t;
18233 #endif
18234 #endif
18235 #endif
18236
18237 #ifndef _INT16_T
18238 #define _INT16_T
18239 #ifndef __int16_t_defined
18240 #define __int16_t_defined
18241 #ifndef int16_t
18242 typedef $acx_cv_type_int16_t int16_t;
18243 #endif
18244 #endif
18245 #endif
18246
18247 #ifndef _INT32_T
18248 #define _INT32_T
18249 #ifndef __int32_t_defined
18250 #define __int32_t_defined
18251 #ifndef int32_t
18252 typedef $acx_cv_type_int32_t int32_t;
18253 #endif
18254 #endif
18255 #endif
18256EOF
18257elif test "$ac_cv_type_u_int32_t" = yes; then
18258 sed 's/^ *//' >> tmp-stdint.h <<EOF
18259
18260 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18261 #ifndef _INT8_T
18262 #define _INT8_T
18263 #endif
18264 #ifndef _INT16_T
18265 #define _INT16_T
18266 #endif
18267 #ifndef _INT32_T
18268 #define _INT32_T
18269 #endif
18270
18271 #ifndef _UINT8_T
18272 #define _UINT8_T
18273 #ifndef __uint8_t_defined
18274 #define __uint8_t_defined
18275 #ifndef uint8_t
18276 typedef u_int8_t uint8_t;
18277 #endif
18278 #endif
18279 #endif
18280
18281 #ifndef _UINT16_T
18282 #define _UINT16_T
18283 #ifndef __uint16_t_defined
18284 #define __uint16_t_defined
18285 #ifndef uint16_t
18286 typedef u_int16_t uint16_t;
18287 #endif
18288 #endif
18289 #endif
18290
18291 #ifndef _UINT32_T
18292 #define _UINT32_T
18293 #ifndef __uint32_t_defined
18294 #define __uint32_t_defined
18295 #ifndef uint32_t
18296 typedef u_int32_t uint32_t;
18297 #endif
18298 #endif
18299 #endif
18300EOF
18301else
18302 sed 's/^ *//' >> tmp-stdint.h <<EOF
18303
18304 /* Some systems have guard macros to prevent redefinitions, define them. */
18305 #ifndef _INT8_T
18306 #define _INT8_T
18307 #endif
18308 #ifndef _INT16_T
18309 #define _INT16_T
18310 #endif
18311 #ifndef _INT32_T
18312 #define _INT32_T
18313 #endif
18314 #ifndef _UINT8_T
18315 #define _UINT8_T
18316 #endif
18317 #ifndef _UINT16_T
18318 #define _UINT16_T
18319 #endif
18320 #ifndef _UINT32_T
18321 #define _UINT32_T
18322 #endif
18323EOF
18324fi
18325
18326# ------------- done basic int types, emit int64_t types ------------
18327if test "$ac_cv_type_uint64_t" = yes; then
18328 sed 's/^ *//' >> tmp-stdint.h <<EOF
18329
18330 /* system headers have good uint64_t and int64_t */
18331 #ifndef _INT64_T
18332 #define _INT64_T
18333 #endif
18334 #ifndef _UINT64_T
18335 #define _UINT64_T
18336 #endif
18337EOF
18338elif test "$ac_cv_type_u_int64_t" = yes; then
18339 sed 's/^ *//' >> tmp-stdint.h <<EOF
18340
18341 /* system headers have an u_int64_t (and int64_t) */
18342 #ifndef _INT64_T
18343 #define _INT64_T
18344 #endif
18345 #ifndef _UINT64_T
18346 #define _UINT64_T
18347 #ifndef __uint64_t_defined
18348 #define __uint64_t_defined
18349 #ifndef uint64_t
18350 typedef u_int64_t uint64_t;
18351 #endif
18352 #endif
18353 #endif
18354EOF
18355elif test -n "$acx_cv_type_int64_t"; then
18356 sed 's/^ *//' >> tmp-stdint.h <<EOF
18357
18358 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18359 #ifndef _INT64_T
18360 #define _INT64_T
18361 #ifndef int64_t
18362 typedef $acx_cv_type_int64_t int64_t;
18363 #endif
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 unsigned $acx_cv_type_int64_t uint64_t;
18371 #endif
18372 #endif
18373 #endif
18374EOF
18375else
18376 sed 's/^ *//' >> tmp-stdint.h <<EOF
18377
18378 /* some common heuristics for int64_t, using compiler-specific tests */
18379 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18380 #ifndef _INT64_T
18381 #define _INT64_T
18382 #ifndef __int64_t_defined
18383 #ifndef int64_t
18384 typedef long long int64_t;
18385 #endif
18386 #endif
18387 #endif
18388 #ifndef _UINT64_T
18389 #define _UINT64_T
18390 #ifndef uint64_t
18391 typedef unsigned long long uint64_t;
18392 #endif
18393 #endif
18394
18395 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18396 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18397 does not implement __extension__. But that compiler doesn't define
18398 __GNUC_MINOR__. */
18399 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18400 # define __extension__
18401 # endif
18402
18403 # ifndef _INT64_T
18404 # define _INT64_T
18405 # ifndef int64_t
18406 __extension__ typedef long long int64_t;
18407 # endif
18408 # endif
18409 # ifndef _UINT64_T
18410 # define _UINT64_T
18411 # ifndef uint64_t
18412 __extension__ typedef unsigned long long uint64_t;
18413 # endif
18414 # endif
18415
18416 #elif !defined __STRICT_ANSI__
18417 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18418
18419 # ifndef _INT64_T
18420 # define _INT64_T
18421 # ifndef int64_t
18422 typedef __int64 int64_t;
18423 # endif
18424 # endif
18425 # ifndef _UINT64_T
18426 # define _UINT64_T
18427 # ifndef uint64_t
18428 typedef unsigned __int64 uint64_t;
18429 # endif
18430 # endif
18431 # endif /* compiler */
18432
18433 #endif /* ANSI version */
18434EOF
18435fi
18436
18437# ------------- done int64_t types, emit intptr types ------------
18438if test "$ac_cv_type_uintptr_t" != yes; then
18439 sed 's/^ *//' >> tmp-stdint.h <<EOF
18440
18441 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18442 #ifndef __uintptr_t_defined
18443 #ifndef uintptr_t
18444 typedef u$acx_cv_type_intptr_t uintptr_t;
18445 #endif
18446 #endif
18447 #ifndef __intptr_t_defined
18448 #ifndef intptr_t
18449 typedef $acx_cv_type_intptr_t intptr_t;
18450 #endif
18451 #endif
18452EOF
18453fi
18454
18455# ------------- done intptr types, emit int_least types ------------
18456if test "$ac_cv_type_int_least32_t" != yes; then
18457 sed 's/^ *//' >> tmp-stdint.h <<EOF
18458
18459 /* Define int_least types */
18460 typedef int8_t int_least8_t;
18461 typedef int16_t int_least16_t;
18462 typedef int32_t int_least32_t;
18463 #ifdef _INT64_T
18464 typedef int64_t int_least64_t;
18465 #endif
18466
18467 typedef uint8_t uint_least8_t;
18468 typedef uint16_t uint_least16_t;
18469 typedef uint32_t uint_least32_t;
18470 #ifdef _UINT64_T
18471 typedef uint64_t uint_least64_t;
18472 #endif
18473EOF
18474fi
18475
18476# ------------- done intptr types, emit int_fast types ------------
18477if test "$ac_cv_type_int_fast32_t" != yes; then
18478 sed 's/^ *//' >> tmp-stdint.h <<EOF
18479
18480 /* Define int_fast types. short is often slow */
18481 typedef int8_t int_fast8_t;
18482 typedef int int_fast16_t;
18483 typedef int32_t int_fast32_t;
18484 #ifdef _INT64_T
18485 typedef int64_t int_fast64_t;
18486 #endif
18487
18488 typedef uint8_t uint_fast8_t;
18489 typedef unsigned int uint_fast16_t;
18490 typedef uint32_t uint_fast32_t;
18491 #ifdef _UINT64_T
18492 typedef uint64_t uint_fast64_t;
18493 #endif
18494EOF
18495fi
18496
18497if test "$ac_cv_type_uintmax_t" != yes; then
18498 sed 's/^ *//' >> tmp-stdint.h <<EOF
18499
18500 /* Define intmax based on what we found */
18501 #ifndef intmax_t
18502 #ifdef _INT64_T
18503 typedef int64_t intmax_t;
18504 #else
18505 typedef long intmax_t;
18506 #endif
18507 #endif
18508 #ifndef uintmax_t
18509 #ifdef _UINT64_T
18510 typedef uint64_t uintmax_t;
18511 #else
18512 typedef unsigned long uintmax_t;
18513 #endif
18514 #endif
18515EOF
18516fi
18517
18518sed 's/^ *//' >> tmp-stdint.h <<EOF
18519
18520 #endif /* GCC_GENERATED_STDINT_H */
18521EOF
18522
18523if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
18524 rm -f tmp-stdint.h
18525else
18526 mv -f tmp-stdint.h gstdint.h
18527fi
18528
18529 ;;
18530
18531 esac
18532done # for ac_tag
18533
18534
18535as_fn_exit 0
18536_ACEOF
18537ac_clean_files=$ac_clean_files_save
18538
18539test $ac_write_fail = 0 ||
22e05272 18540 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48310492
RH
18541
18542
18543# configure is writing to config.log, and then calls config.status.
18544# config.status does its own redirection, appending to config.log.
18545# Unfortunately, on DOS this fails, as config.log is still kept open
18546# by configure, so config.status won't be able to write to it; its
18547# output is simply discarded. So we exec the FD to /dev/null,
18548# effectively closing config.log, so it can be properly (re)opened and
18549# appended to by config.status. When coming back to configure, we
18550# need to make the FD available again.
18551if test "$no_create" != yes; then
18552 ac_cs_success=:
18553 ac_config_status_args=
18554 test "$silent" = yes &&
18555 ac_config_status_args="$ac_config_status_args --quiet"
18556 exec 5>/dev/null
18557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18558 exec 5>>config.log
18559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18560 # would make configure fail if this is the last instruction.
22e05272 18561 $ac_cs_success || as_fn_exit 1
48310492
RH
18562fi
18563if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18565$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18566fi
18567