]> git.ipfire.org Git - thirdparty/gcc.git/blob - libatomic/configure
acinclude.m4 (LIBAT_TEST_ATOMIC_BUILTIN): Handle compilation failure in gcc_no_link...
[thirdparty/gcc.git] / libatomic / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Atomic Library 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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 }
79 fi
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU Atomic Library'
558 PACKAGE_TARNAME='libatomic'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Atomic Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libatomic/'
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 ARCH_X86_64_FALSE
605 ARCH_X86_64_TRUE
606 ARCH_I386_FALSE
607 ARCH_I386_TRUE
608 ARCH_ARM_LINUX_FALSE
609 ARCH_ARM_LINUX_TRUE
610 HAVE_IFUNC_FALSE
611 HAVE_IFUNC_TRUE
612 SIZES
613 XLDFLAGS
614 XCFLAGS
615 config_path
616 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
617 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
618 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
619 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
620 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
621 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
622 OPT_LDFLAGS
623 SECTION_LDFLAGS
624 libtool_VERSION
625 enable_static
626 enable_shared
627 CPP
628 OTOOL64
629 OTOOL
630 LIPO
631 NMEDIT
632 DSYMUTIL
633 OBJDUMP
634 LN_S
635 ac_ct_DUMPBIN
636 DUMPBIN
637 LD
638 FGREP
639 EGREP
640 GREP
641 SED
642 LIBTOOL
643 PERL
644 RANLIB
645 NM
646 AR
647 am__fastdepCCAS_FALSE
648 am__fastdepCCAS_TRUE
649 CCASDEPMODE
650 CCASFLAGS
651 CCAS
652 am__fastdepCC_FALSE
653 am__fastdepCC_TRUE
654 CCDEPMODE
655 am__nodep
656 AMDEPBACKSLASH
657 AMDEP_FALSE
658 AMDEP_TRUE
659 am__quote
660 am__include
661 DEPDIR
662 OBJEXT
663 EXEEXT
664 ac_ct_CC
665 CPPFLAGS
666 LDFLAGS
667 CFLAGS
668 CC
669 toolexeclibdir
670 toolexecdir
671 multi_basedir
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
677 AWK
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 target_os
696 target_vendor
697 target_cpu
698 target
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 GENINSRC_FALSE
708 GENINSRC_TRUE
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_version_specific_runtime_libs
751 enable_generated_files_in_srcdir
752 enable_multilib
753 enable_dependency_tracking
754 enable_shared
755 enable_static
756 with_pic
757 enable_fast_install
758 with_gnu_ld
759 enable_libtool_lock
760 enable_symvers
761 '
762 ac_precious_vars='build_alias
763 host_alias
764 target_alias
765 CPP
766 CPPFLAGS'
767
768
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
790
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
809 htmldir='${docdir}'
810 dvidir='${docdir}'
811 pdfdir='${docdir}'
812 psdir='${docdir}'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
816
817 ac_prev=
818 ac_dashdash=
819 for ac_option
820 do
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
826 fi
827
828 case $ac_option in
829 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *) ac_optarg=yes ;;
831 esac
832
833 # Accept the important Cygnus configure options, so we can diagnose typos.
834
835 case $ac_dashdash$ac_option in
836 --)
837 ac_dashdash=yes ;;
838
839 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 ac_prev=bindir ;;
841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 bindir=$ac_optarg ;;
843
844 -build | --build | --buil | --bui | --bu)
845 ac_prev=build_alias ;;
846 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847 build_alias=$ac_optarg ;;
848
849 -cache-file | --cache-file | --cache-fil | --cache-fi \
850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851 ac_prev=cache_file ;;
852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854 cache_file=$ac_optarg ;;
855
856 --config-cache | -C)
857 cache_file=config.cache ;;
858
859 -datadir | --datadir | --datadi | --datad)
860 ac_prev=datadir ;;
861 -datadir=* | --datadir=* | --datadi=* | --datad=*)
862 datadir=$ac_optarg ;;
863
864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865 | --dataroo | --dataro | --datar)
866 ac_prev=datarootdir ;;
867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869 datarootdir=$ac_optarg ;;
870
871 -disable-* | --disable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879 *"
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
886
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
891
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
896
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
905 *"
906 "enable_$ac_useropt"
907 "*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=\$ac_optarg ;;
912
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
921
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
925
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
932
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
937
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
943
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
950
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
955
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
960
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
967
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
972
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
979
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
984
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
988
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
992
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
996
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1005
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1010
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1017
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1024
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1041
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1046
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1051
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1055
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1061
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1072
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1077
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1082
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1089
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1094
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1097
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1100
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "with_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1116
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1132
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1136
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1143
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1150
1151 -*) as_fn_error "unrecognized option: \`$ac_option'
1152 Try \`$0 --help' for more information."
1153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1164
1165 *)
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1171 ;;
1172
1173 esac
1174 done
1175
1176 if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error "missing argument to $ac_option"
1179 fi
1180
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1187 fi
1188
1189 # Check all directory arguments for consistency.
1190 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir
1194 do
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1208 done
1209
1210 # There might be people who depend on the old broken behavior: `$host'
1211 # used to hold the argument of --host etc.
1212 # FIXME: To remove some day.
1213 build=$build_alias
1214 host=$host_alias
1215 target=$target_alias
1216
1217 # FIXME: To remove some day.
1218 if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1225 fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error "pwd does not report name of working directory"
1240
1241
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\).*/{
1265 s//\1/
1266 q
1267 }
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1272 fi
1273 else
1274 ac_srcdir_defaulted=no
1275 fi
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1279 fi
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1287 fi
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1300
1301 #
1302 # Report the --help message.
1303 #
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 \`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1309
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1314
1315 Defaults for the options are specified in brackets.
1316
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1333
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1338
1339 For better control, use the options below.
1340
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361 _ACEOF
1362
1363 cat <<\_ACEOF
1364
1365 Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374 _ACEOF
1375 fi
1376
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
1380 esac
1381 cat <<\_ACEOF
1382
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-version-specific-runtime-libs
1388 Specify that runtime libraries should be installed
1389 in a compiler-specific directory [default=no]
1390 --enable-generated-files-in-srcdir
1391 put copies of generated files in source dir intended
1392 for creating source tarballs for users without
1393 texinfo bison or flex. [default=no]
1394 --enable-multilib build many library versions (default)
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
1397 --enable-shared[=PKGS] build shared libraries [default=yes]
1398 --enable-static[=PKGS] build static libraries [default=yes]
1399 --enable-fast-install[=PKGS]
1400 optimize for fast installation [default=yes]
1401 --disable-libtool-lock avoid locking (might break parallel builds)
1402 --enable-symvers=STYLE enables symbol versioning of the shared library
1403 [default=yes]
1404
1405 Optional Packages:
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1408 --with-pic try to use only PIC/non-PIC objects [default=use
1409 both]
1410 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1411
1412 Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1420 CCAS assembler compiler command (defaults to CC)
1421 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1422 CPP C preprocessor
1423
1424 Use these variables to override the choices made by `configure' or to help
1425 it to find libraries and programs with nonstandard names/locations.
1426
1427 Report bugs to the package provider.
1428 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1429 General help using GNU software: <http://www.gnu.org/gethelp/>.
1430 _ACEOF
1431 ac_status=$?
1432 fi
1433
1434 if test "$ac_init_help" = "recursive"; then
1435 # If there are subdirs, report their specific --help.
1436 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437 test -d "$ac_dir" ||
1438 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439 continue
1440 ac_builddir=.
1441
1442 case "$ac_dir" in
1443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *)
1445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446 # A ".." for each directory in $ac_dir_suffix.
1447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448 case $ac_top_builddir_sub in
1449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1451 esac ;;
1452 esac
1453 ac_abs_top_builddir=$ac_pwd
1454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455 # for backward compatibility:
1456 ac_top_builddir=$ac_top_build_prefix
1457
1458 case $srcdir in
1459 .) # We are building in place.
1460 ac_srcdir=.
1461 ac_top_srcdir=$ac_top_builddir_sub
1462 ac_abs_top_srcdir=$ac_pwd ;;
1463 [\\/]* | ?:[\\/]* ) # Absolute name.
1464 ac_srcdir=$srcdir$ac_dir_suffix;
1465 ac_top_srcdir=$srcdir
1466 ac_abs_top_srcdir=$srcdir ;;
1467 *) # Relative name.
1468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469 ac_top_srcdir=$ac_top_build_prefix$srcdir
1470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1471 esac
1472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1473
1474 cd "$ac_dir" || { ac_status=$?; continue; }
1475 # Check for guested configure.
1476 if test -f "$ac_srcdir/configure.gnu"; then
1477 echo &&
1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479 elif test -f "$ac_srcdir/configure"; then
1480 echo &&
1481 $SHELL "$ac_srcdir/configure" --help=recursive
1482 else
1483 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1484 fi || ac_status=$?
1485 cd "$ac_pwd" || { ac_status=$?; break; }
1486 done
1487 fi
1488
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1491 cat <<\_ACEOF
1492 GNU Atomic Library configure 1.0
1493 generated by GNU Autoconf 2.64
1494
1495 Copyright (C) 2009 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1498 _ACEOF
1499 exit
1500 fi
1501
1502 ## ------------------------ ##
1503 ## Autoconf initialization. ##
1504 ## ------------------------ ##
1505
1506 # ac_fn_c_try_compile LINENO
1507 # --------------------------
1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_compile ()
1510 {
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 rm -f conftest.$ac_objext
1513 if { { ac_try="$ac_compile"
1514 case "(($ac_try" in
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1517 esac
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_compile") 2>conftest.err
1521 ac_status=$?
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1526 fi
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } && {
1529 test -z "$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 } && test -s conftest.$ac_objext; then :
1532 ac_retval=0
1533 else
1534 $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1536
1537 ac_retval=1
1538 fi
1539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1540 return $ac_retval
1541
1542 } # ac_fn_c_try_compile
1543
1544 # ac_fn_c_try_link LINENO
1545 # -----------------------
1546 # Try to link conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_link ()
1548 {
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext conftest$ac_exeext
1551 if { { ac_try="$ac_link"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_link") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest$ac_exeext && {
1570 test "$cross_compiling" = yes ||
1571 $as_test_x conftest$ac_exeext
1572 }; then :
1573 ac_retval=0
1574 else
1575 $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1577
1578 ac_retval=1
1579 fi
1580 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1581 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1582 # interfere with the next link command; also delete a directory that is
1583 # left behind by Apple's compiler. We do this before executing the actions.
1584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 return $ac_retval
1587
1588 } # ac_fn_c_try_link
1589
1590 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1591 # -------------------------------------------------------
1592 # Tests whether HEADER exists and can be compiled using the include files in
1593 # INCLUDES, setting the cache variable VAR accordingly.
1594 ac_fn_c_check_header_compile ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598 $as_echo_n "checking for $2... " >&6; }
1599 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1600 $as_echo_n "(cached) " >&6
1601 else
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1604 $4
1605 #include <$2>
1606 _ACEOF
1607 if ac_fn_c_try_compile "$LINENO"; then :
1608 eval "$3=yes"
1609 else
1610 eval "$3=no"
1611 fi
1612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1613 fi
1614 eval ac_res=\$$3
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616 $as_echo "$ac_res" >&6; }
1617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618
1619 } # ac_fn_c_check_header_compile
1620
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_cpp ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } >/dev/null && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652 fi
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 return $ac_retval
1655
1656 } # ac_fn_c_try_cpp
1657
1658 # ac_fn_c_try_run LINENO
1659 # ----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661 # that executables *can* be run.
1662 ac_fn_c_try_run ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>&5
1673 ac_status=$?
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676 { { case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_try") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; }; }; then :
1686 ac_retval=0
1687 else
1688 $as_echo "$as_me: program exited with status $ac_status" >&5
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=$ac_status
1693 fi
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 return $ac_retval
1697
1698 } # ac_fn_c_try_run
1699
1700 # ac_fn_c_check_func LINENO FUNC VAR
1701 # ----------------------------------
1702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1703 ac_fn_c_check_func ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1709 $as_echo_n "(cached) " >&6
1710 else
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1713 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1715 #define $2 innocuous_$2
1716
1717 /* System header to define __stub macros and hopefully few prototypes,
1718 which can conflict with char $2 (); below.
1719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1720 <limits.h> exists even on freestanding compilers. */
1721
1722 #ifdef __STDC__
1723 # include <limits.h>
1724 #else
1725 # include <assert.h>
1726 #endif
1727
1728 #undef $2
1729
1730 /* Override any GCC internal prototype to avoid an error.
1731 Use char because int might match the return type of a GCC
1732 builtin and then its argument prototype would still apply. */
1733 #ifdef __cplusplus
1734 extern "C"
1735 #endif
1736 char $2 ();
1737 /* The GNU C library defines this for functions which it implements
1738 to always fail with ENOSYS. Some functions are actually named
1739 something starting with __ and the normal name is an alias. */
1740 #if defined __stub_$2 || defined __stub___$2
1741 choke me
1742 #endif
1743
1744 int
1745 main ()
1746 {
1747 return $2 ();
1748 ;
1749 return 0;
1750 }
1751 _ACEOF
1752 if ac_fn_c_try_link "$LINENO"; then :
1753 eval "$3=yes"
1754 else
1755 eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext \
1758 conftest$ac_exeext conftest.$ac_ext
1759 fi
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764
1765 } # ac_fn_c_check_func
1766
1767 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1768 # -------------------------------------------
1769 # Tests whether TYPE exists after having included INCLUDES, setting cache
1770 # variable VAR accordingly.
1771 ac_fn_c_check_type ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 eval "$3=no"
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 $4
1783 int
1784 main ()
1785 {
1786 if (sizeof ($2))
1787 return 0;
1788 ;
1789 return 0;
1790 }
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 $4
1796 int
1797 main ()
1798 {
1799 if (sizeof (($2)))
1800 return 0;
1801 ;
1802 return 0;
1803 }
1804 _ACEOF
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806
1807 else
1808 eval "$3=yes"
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 fi
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819 } # ac_fn_c_check_type
1820
1821 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1822 # --------------------------------------------
1823 # Tries to find the compile-time value of EXPR in a program that includes
1824 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1825 # computed
1826 ac_fn_c_compute_int ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if test "$cross_compiling" = yes; then
1830 # Depending upon the size, compute the lo and hi bounds.
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 $4
1834 int
1835 main ()
1836 {
1837 static int test_array [1 - 2 * !(($2) >= 0)];
1838 test_array [0] = 0
1839
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"; then :
1845 ac_lo=0 ac_mid=0
1846 while :; do
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 $4
1850 int
1851 main ()
1852 {
1853 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1854 test_array [0] = 0
1855
1856 ;
1857 return 0;
1858 }
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 ac_hi=$ac_mid; break
1862 else
1863 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1864 if test $ac_lo -le $ac_mid; then
1865 ac_lo= ac_hi=
1866 break
1867 fi
1868 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 done
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 $4
1876 int
1877 main ()
1878 {
1879 static int test_array [1 - 2 * !(($2) < 0)];
1880 test_array [0] = 0
1881
1882 ;
1883 return 0;
1884 }
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887 ac_hi=-1 ac_mid=-1
1888 while :; do
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $4
1892 int
1893 main ()
1894 {
1895 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1896 test_array [0] = 0
1897
1898 ;
1899 return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 ac_lo=$ac_mid; break
1904 else
1905 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1906 if test $ac_mid -le $ac_hi; then
1907 ac_lo= ac_hi=
1908 break
1909 fi
1910 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 done
1914 else
1915 ac_lo= ac_hi=
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 # Binary search between lo and hi bounds.
1921 while test "x$ac_lo" != "x$ac_hi"; do
1922 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $4
1926 int
1927 main ()
1928 {
1929 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1930 test_array [0] = 0
1931
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937 ac_hi=$ac_mid
1938 else
1939 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 done
1943 case $ac_lo in #((
1944 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1945 '') ac_retval=1 ;;
1946 esac
1947 else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $4
1951 static long int longval () { return $2; }
1952 static unsigned long int ulongval () { return $2; }
1953 #include <stdio.h>
1954 #include <stdlib.h>
1955 int
1956 main ()
1957 {
1958
1959 FILE *f = fopen ("conftest.val", "w");
1960 if (! f)
1961 return 1;
1962 if (($2) < 0)
1963 {
1964 long int i = longval ();
1965 if (i != ($2))
1966 return 1;
1967 fprintf (f, "%ld", i);
1968 }
1969 else
1970 {
1971 unsigned long int i = ulongval ();
1972 if (i != ($2))
1973 return 1;
1974 fprintf (f, "%lu", i);
1975 }
1976 /* Do not output a trailing newline, as this causes \r\n confusion
1977 on some platforms. */
1978 return ferror (f) || fclose (f) != 0;
1979
1980 ;
1981 return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_run "$LINENO"; then :
1985 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1986 else
1987 ac_retval=1
1988 fi
1989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1990 conftest.$ac_objext conftest.beam conftest.$ac_ext
1991 rm -f conftest.val
1992
1993 fi
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995 return $ac_retval
1996
1997 } # ac_fn_c_compute_int
1998 cat >config.log <<_ACEOF
1999 This file contains any messages produced by compilers while
2000 running configure, to aid debugging if configure makes a mistake.
2001
2002 It was created by GNU Atomic Library $as_me 1.0, which was
2003 generated by GNU Autoconf 2.64. Invocation command line was
2004
2005 $ $0 $@
2006
2007 _ACEOF
2008 exec 5>>config.log
2009 {
2010 cat <<_ASUNAME
2011 ## --------- ##
2012 ## Platform. ##
2013 ## --------- ##
2014
2015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2020
2021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2023
2024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2027 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2031
2032 _ASUNAME
2033
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037 IFS=$as_save_IFS
2038 test -z "$as_dir" && as_dir=.
2039 $as_echo "PATH: $as_dir"
2040 done
2041 IFS=$as_save_IFS
2042
2043 } >&5
2044
2045 cat >&5 <<_ACEOF
2046
2047
2048 ## ----------- ##
2049 ## Core tests. ##
2050 ## ----------- ##
2051
2052 _ACEOF
2053
2054
2055 # Keep a trace of the command line.
2056 # Strip out --no-create and --no-recursion so they do not pile up.
2057 # Strip out --silent because we don't want to record it for future runs.
2058 # Also quote any args containing shell meta-characters.
2059 # Make two passes to allow for proper duplicate-argument suppression.
2060 ac_configure_args=
2061 ac_configure_args0=
2062 ac_configure_args1=
2063 ac_must_keep_next=false
2064 for ac_pass in 1 2
2065 do
2066 for ac_arg
2067 do
2068 case $ac_arg in
2069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2071 | -silent | --silent | --silen | --sile | --sil)
2072 continue ;;
2073 *\'*)
2074 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2075 esac
2076 case $ac_pass in
2077 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2078 2)
2079 as_fn_append ac_configure_args1 " '$ac_arg'"
2080 if test $ac_must_keep_next = true; then
2081 ac_must_keep_next=false # Got value, back to normal.
2082 else
2083 case $ac_arg in
2084 *=* | --config-cache | -C | -disable-* | --disable-* \
2085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2087 | -with-* | --with-* | -without-* | --without-* | --x)
2088 case "$ac_configure_args0 " in
2089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2090 esac
2091 ;;
2092 -* ) ac_must_keep_next=true ;;
2093 esac
2094 fi
2095 as_fn_append ac_configure_args " '$ac_arg'"
2096 ;;
2097 esac
2098 done
2099 done
2100 { ac_configure_args0=; unset ac_configure_args0;}
2101 { ac_configure_args1=; unset ac_configure_args1;}
2102
2103 # When interrupted or exit'd, cleanup temporary files, and complete
2104 # config.log. We remove comments because anyway the quotes in there
2105 # would cause problems or look ugly.
2106 # WARNING: Use '\'' to represent an apostrophe within the trap.
2107 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2108 trap 'exit_status=$?
2109 # Save into config.log some information that might help in debugging.
2110 {
2111 echo
2112
2113 cat <<\_ASBOX
2114 ## ---------------- ##
2115 ## Cache variables. ##
2116 ## ---------------- ##
2117 _ASBOX
2118 echo
2119 # The following way of writing the cache mishandles newlines in values,
2120 (
2121 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2122 eval ac_val=\$$ac_var
2123 case $ac_val in #(
2124 *${as_nl}*)
2125 case $ac_var in #(
2126 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2127 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2128 esac
2129 case $ac_var in #(
2130 _ | IFS | as_nl) ;; #(
2131 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2132 *) { eval $ac_var=; unset $ac_var;} ;;
2133 esac ;;
2134 esac
2135 done
2136 (set) 2>&1 |
2137 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2138 *${as_nl}ac_space=\ *)
2139 sed -n \
2140 "s/'\''/'\''\\\\'\'''\''/g;
2141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2142 ;; #(
2143 *)
2144 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2145 ;;
2146 esac |
2147 sort
2148 )
2149 echo
2150
2151 cat <<\_ASBOX
2152 ## ----------------- ##
2153 ## Output variables. ##
2154 ## ----------------- ##
2155 _ASBOX
2156 echo
2157 for ac_var in $ac_subst_vars
2158 do
2159 eval ac_val=\$$ac_var
2160 case $ac_val in
2161 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2162 esac
2163 $as_echo "$ac_var='\''$ac_val'\''"
2164 done | sort
2165 echo
2166
2167 if test -n "$ac_subst_files"; then
2168 cat <<\_ASBOX
2169 ## ------------------- ##
2170 ## File substitutions. ##
2171 ## ------------------- ##
2172 _ASBOX
2173 echo
2174 for ac_var in $ac_subst_files
2175 do
2176 eval ac_val=\$$ac_var
2177 case $ac_val in
2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 esac
2180 $as_echo "$ac_var='\''$ac_val'\''"
2181 done | sort
2182 echo
2183 fi
2184
2185 if test -s confdefs.h; then
2186 cat <<\_ASBOX
2187 ## ----------- ##
2188 ## confdefs.h. ##
2189 ## ----------- ##
2190 _ASBOX
2191 echo
2192 cat confdefs.h
2193 echo
2194 fi
2195 test "$ac_signal" != 0 &&
2196 $as_echo "$as_me: caught signal $ac_signal"
2197 $as_echo "$as_me: exit $exit_status"
2198 } >&5
2199 rm -f core *.core core.conftest.* &&
2200 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2201 exit $exit_status
2202 ' 0
2203 for ac_signal in 1 2 13 15; do
2204 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2205 done
2206 ac_signal=0
2207
2208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2209 rm -f -r conftest* confdefs.h
2210
2211 $as_echo "/* confdefs.h */" > confdefs.h
2212
2213 # Predefined preprocessor variables.
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_NAME "$PACKAGE_NAME"
2217 _ACEOF
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2221 _ACEOF
2222
2223 cat >>confdefs.h <<_ACEOF
2224 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2225 _ACEOF
2226
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_STRING "$PACKAGE_STRING"
2229 _ACEOF
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_URL "$PACKAGE_URL"
2237 _ACEOF
2238
2239
2240 # Let the site file select an alternate cache file if it wants to.
2241 # Prefer an explicitly selected file to automatically selected ones.
2242 ac_site_file1=NONE
2243 ac_site_file2=NONE
2244 if test -n "$CONFIG_SITE"; then
2245 ac_site_file1=$CONFIG_SITE
2246 elif test "x$prefix" != xNONE; then
2247 ac_site_file1=$prefix/share/config.site
2248 ac_site_file2=$prefix/etc/config.site
2249 else
2250 ac_site_file1=$ac_default_prefix/share/config.site
2251 ac_site_file2=$ac_default_prefix/etc/config.site
2252 fi
2253 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2254 do
2255 test "x$ac_site_file" = xNONE && continue
2256 if test -r "$ac_site_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2258 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2259 sed 's/^/| /' "$ac_site_file" >&5
2260 . "$ac_site_file"
2261 fi
2262 done
2263
2264 if test -r "$cache_file"; then
2265 # Some versions of bash will fail to source /dev/null (special
2266 # files actually), so we avoid doing that.
2267 if test -f "$cache_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
2270 case $cache_file in
2271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272 *) . "./$cache_file";;
2273 esac
2274 fi
2275 else
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
2278 >$cache_file
2279 fi
2280
2281 # Check that the precious variables saved in the cache have kept the same
2282 # value.
2283 ac_cache_corrupted=false
2284 for ac_var in $ac_precious_vars; do
2285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2286 eval ac_new_set=\$ac_env_${ac_var}_set
2287 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2288 eval ac_new_val=\$ac_env_${ac_var}_value
2289 case $ac_old_set,$ac_new_set in
2290 set,)
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2292 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2293 ac_cache_corrupted=: ;;
2294 ,set)
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2297 ac_cache_corrupted=: ;;
2298 ,);;
2299 *)
2300 if test "x$ac_old_val" != "x$ac_new_val"; then
2301 # differences in whitespace do not lead to failure.
2302 ac_old_val_w=`echo x $ac_old_val`
2303 ac_new_val_w=`echo x $ac_new_val`
2304 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2307 ac_cache_corrupted=:
2308 else
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2311 eval $ac_var=\$ac_old_val
2312 fi
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2314 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2316 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2317 fi;;
2318 esac
2319 # Pass precious variables to config.status.
2320 if test "$ac_new_set" = set; then
2321 case $ac_new_val in
2322 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2323 *) ac_arg=$ac_var=$ac_new_val ;;
2324 esac
2325 case " $ac_configure_args " in
2326 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2327 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2328 esac
2329 fi
2330 done
2331 if $ac_cache_corrupted; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2336 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2337 fi
2338 ## -------------------- ##
2339 ## Main body of script. ##
2340 ## -------------------- ##
2341
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348
2349
2350
2351
2352 ac_config_headers="$ac_config_headers auto-config.h"
2353
2354
2355 # -------
2356 # Options
2357 # -------
2358
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2360 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2361 # Check whether --enable-version-specific-runtime-libs was given.
2362 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2363 enableval=$enable_version_specific_runtime_libs;
2364 case "$enableval" in
2365 yes|no) ;;
2366 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2367 esac
2368
2369 else
2370 enable_version_specific_runtime_libs=no
2371 fi
2372
2373
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2375 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2376
2377 # We would like our source tree to be readonly. However when releases or
2378 # pre-releases are generated, the flex/bison generated files as well as the
2379 # various formats of manuals need to be included along with the rest of the
2380 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2381 # just that.
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2383 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2384 # Check whether --enable-generated-files-in-srcdir was given.
2385 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2386 enableval=$enable_generated_files_in_srcdir;
2387 case "$enableval" in
2388 yes|no) ;;
2389 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2390 esac
2391
2392 else
2393 enable_generated_files_in_srcdir=no
2394 fi
2395
2396
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2398 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2399 if test "$enable_generated_files_in_srcdir" = yes; then
2400 GENINSRC_TRUE=
2401 GENINSRC_FALSE='#'
2402 else
2403 GENINSRC_TRUE='#'
2404 GENINSRC_FALSE=
2405 fi
2406
2407
2408
2409 # -------
2410
2411 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2412 #
2413 # You will slowly go insane if you do not grok the following fact: when
2414 # building this library, the top-level /target/ becomes the library's /host/.
2415 #
2416 # configure then causes --target to default to --host, exactly like any
2417 # other package using autoconf. Therefore, 'target' and 'host' will
2418 # always be the same. This makes sense both for native and cross compilers
2419 # just think about it for a little while. :-)
2420 #
2421 # Also, if this library is being configured as part of a cross compiler, the
2422 # top-level configure script will pass the "real" host as $with_cross_host.
2423 #
2424 # Do not delete or change the following two lines. For why, see
2425 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2426 ac_aux_dir=
2427 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2428 for ac_t in install-sh install.sh shtool; do
2429 if test -f "$ac_dir/$ac_t"; then
2430 ac_aux_dir=$ac_dir
2431 ac_install_sh="$ac_aux_dir/$ac_t -c"
2432 break 2
2433 fi
2434 done
2435 done
2436 if test -z "$ac_aux_dir"; then
2437 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2438 fi
2439
2440 # These three variables are undocumented and unsupported,
2441 # and are intended to be withdrawn in a future Autoconf release.
2442 # They can cause serious problems if a builder's source tree is in a directory
2443 # whose full name contains unusual characters.
2444 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2445 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2446 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2447
2448
2449 # Make sure we can run config.sub.
2450 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2451 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2452
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2454 $as_echo_n "checking build system type... " >&6; }
2455 if test "${ac_cv_build+set}" = set; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 ac_build_alias=$build_alias
2459 test "x$ac_build_alias" = x &&
2460 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2461 test "x$ac_build_alias" = x &&
2462 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2463 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2464 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2465
2466 fi
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2468 $as_echo "$ac_cv_build" >&6; }
2469 case $ac_cv_build in
2470 *-*-*) ;;
2471 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2472 esac
2473 build=$ac_cv_build
2474 ac_save_IFS=$IFS; IFS='-'
2475 set x $ac_cv_build
2476 shift
2477 build_cpu=$1
2478 build_vendor=$2
2479 shift; shift
2480 # Remember, the first character of IFS is used to create $*,
2481 # except with old shells:
2482 build_os=$*
2483 IFS=$ac_save_IFS
2484 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2485
2486
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2488 $as_echo_n "checking host system type... " >&6; }
2489 if test "${ac_cv_host+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test "x$host_alias" = x; then
2493 ac_cv_host=$ac_cv_build
2494 else
2495 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2496 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2497 fi
2498
2499 fi
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2501 $as_echo "$ac_cv_host" >&6; }
2502 case $ac_cv_host in
2503 *-*-*) ;;
2504 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2505 esac
2506 host=$ac_cv_host
2507 ac_save_IFS=$IFS; IFS='-'
2508 set x $ac_cv_host
2509 shift
2510 host_cpu=$1
2511 host_vendor=$2
2512 shift; shift
2513 # Remember, the first character of IFS is used to create $*,
2514 # except with old shells:
2515 host_os=$*
2516 IFS=$ac_save_IFS
2517 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2518
2519
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2521 $as_echo_n "checking target system type... " >&6; }
2522 if test "${ac_cv_target+set}" = set; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 if test "x$target_alias" = x; then
2526 ac_cv_target=$ac_cv_host
2527 else
2528 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2529 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2530 fi
2531
2532 fi
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2534 $as_echo "$ac_cv_target" >&6; }
2535 case $ac_cv_target in
2536 *-*-*) ;;
2537 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2538 esac
2539 target=$ac_cv_target
2540 ac_save_IFS=$IFS; IFS='-'
2541 set x $ac_cv_target
2542 shift
2543 target_cpu=$1
2544 target_vendor=$2
2545 shift; shift
2546 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells:
2548 target_os=$*
2549 IFS=$ac_save_IFS
2550 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2551
2552
2553 # The aliases save the names the user supplied, while $host etc.
2554 # will get canonicalized.
2555 test -n "$target_alias" &&
2556 test "$program_prefix$program_suffix$program_transform_name" = \
2557 NONENONEs,x,x, &&
2558 program_prefix=${target_alias}-
2559
2560 target_alias=${target_alias-$host_alias}
2561
2562 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2563 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2564 # 1.9.0: minimum required version
2565 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2566 # of other PACKAGE_* variables will, however, and there's nothing
2567 # we can do about that; they come from AC_INIT).
2568 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2569 # file in the top srcdir, etc, etc), so stop complaining.
2570 # -Wall: turns on all automake warnings...
2571 # -Wno-portability: ...except this one, since GNU make is required.
2572 # -Wno-override: ... and this one, since we do want this in testsuite.
2573 am__api_version='1.11'
2574
2575 # Find a good install program. We prefer a C program (faster),
2576 # so one script is as good as another. But avoid the broken or
2577 # incompatible versions:
2578 # SysV /etc/install, /usr/sbin/install
2579 # SunOS /usr/etc/install
2580 # IRIX /sbin/install
2581 # AIX /bin/install
2582 # AmigaOS /C/install, which installs bootblocks on floppy discs
2583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2586 # OS/2's system install, which has a completely different semantic
2587 # ./install, which can be erroneously created by make from ./install.sh.
2588 # Reject install programs that cannot install multiple files.
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2590 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2591 if test -z "$INSTALL"; then
2592 if test "${ac_cv_path_install+set}" = set; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 # Account for people who put trailing slashes in PATH elements.
2601 case $as_dir/ in #((
2602 ./ | .// | /[cC]/* | \
2603 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2604 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2605 /usr/ucb/* ) ;;
2606 *)
2607 # OSF1 and SCO ODT 3.0 have their own names for install.
2608 # Don't use installbsd from OSF since it installs stuff as root
2609 # by default.
2610 for ac_prog in ginstall scoinst install; do
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2613 if test $ac_prog = install &&
2614 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2615 # AIX install. It has an incompatible calling convention.
2616 :
2617 elif test $ac_prog = install &&
2618 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2619 # program-specific install script used by HP pwplus--don't use.
2620 :
2621 else
2622 rm -rf conftest.one conftest.two conftest.dir
2623 echo one > conftest.one
2624 echo two > conftest.two
2625 mkdir conftest.dir
2626 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2627 test -s conftest.one && test -s conftest.two &&
2628 test -s conftest.dir/conftest.one &&
2629 test -s conftest.dir/conftest.two
2630 then
2631 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2632 break 3
2633 fi
2634 fi
2635 fi
2636 done
2637 done
2638 ;;
2639 esac
2640
2641 done
2642 IFS=$as_save_IFS
2643
2644 rm -rf conftest.one conftest.two conftest.dir
2645
2646 fi
2647 if test "${ac_cv_path_install+set}" = set; then
2648 INSTALL=$ac_cv_path_install
2649 else
2650 # As a last resort, use the slow shell script. Don't cache a
2651 # value for INSTALL within a source directory, because that will
2652 # break other packages using the cache if that directory is
2653 # removed, or if the value is a relative name.
2654 INSTALL=$ac_install_sh
2655 fi
2656 fi
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2658 $as_echo "$INSTALL" >&6; }
2659
2660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2661 # It thinks the first close brace ends the variable substitution.
2662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2663
2664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2665
2666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2667
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2669 $as_echo_n "checking whether build environment is sane... " >&6; }
2670 # Just in case
2671 sleep 1
2672 echo timestamp > conftest.file
2673 # Reject unsafe characters in $srcdir or the absolute working directory
2674 # name. Accept space and tab only in the latter.
2675 am_lf='
2676 '
2677 case `pwd` in
2678 *[\\\"\#\$\&\'\`$am_lf]*)
2679 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2680 esac
2681 case $srcdir in
2682 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2683 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2684 esac
2685
2686 # Do `set' in a subshell so we don't clobber the current shell's
2687 # arguments. Must try -L first in case configure is actually a
2688 # symlink; some systems play weird games with the mod time of symlinks
2689 # (eg FreeBSD returns the mod time of the symlink's containing
2690 # directory).
2691 if (
2692 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2693 if test "$*" = "X"; then
2694 # -L didn't work.
2695 set X `ls -t "$srcdir/configure" conftest.file`
2696 fi
2697 rm -f conftest.file
2698 if test "$*" != "X $srcdir/configure conftest.file" \
2699 && test "$*" != "X conftest.file $srcdir/configure"; then
2700
2701 # If neither matched, then we have a broken ls. This can happen
2702 # if, for instance, CONFIG_SHELL is bash and it inherits a
2703 # broken ls alias from the environment. This has actually
2704 # happened. Such a system could not be considered "sane".
2705 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2706 alias in your environment" "$LINENO" 5
2707 fi
2708
2709 test "$2" = conftest.file
2710 )
2711 then
2712 # Ok.
2713 :
2714 else
2715 as_fn_error "newly created file is older than distributed files!
2716 Check your system clock" "$LINENO" 5
2717 fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2719 $as_echo "yes" >&6; }
2720 test "$program_prefix" != NONE &&
2721 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2722 # Use a double $ so make ignores it.
2723 test "$program_suffix" != NONE &&
2724 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2725 # Double any \ or $.
2726 # By default was `s,x,x', remove it if useless.
2727 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2728 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2729
2730 # expand $ac_aux_dir to an absolute path
2731 am_aux_dir=`cd $ac_aux_dir && pwd`
2732
2733 if test x"${MISSING+set}" != xset; then
2734 case $am_aux_dir in
2735 *\ * | *\ *)
2736 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2737 *)
2738 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2739 esac
2740 fi
2741 # Use eval to expand $SHELL
2742 if eval "$MISSING --run true"; then
2743 am_missing_run="$MISSING --run "
2744 else
2745 am_missing_run=
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2747 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2748 fi
2749
2750 if test x"${install_sh}" != xset; then
2751 case $am_aux_dir in
2752 *\ * | *\ *)
2753 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2754 *)
2755 install_sh="\${SHELL} $am_aux_dir/install-sh"
2756 esac
2757 fi
2758
2759 # Installed binaries are usually stripped using `strip' when the user
2760 # run `make install-strip'. However `strip' might not be the right
2761 # tool to use in cross-compilation environments, therefore Automake
2762 # will honor the `STRIP' environment variable to overrule this program.
2763 if test "$cross_compiling" != no; then
2764 if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2766 set dummy ${ac_tool_prefix}strip; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_STRIP+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$STRIP"; then
2773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 STRIP=$ac_cv_prog_STRIP
2793 if test -n "$STRIP"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2795 $as_echo "$STRIP" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801
2802 fi
2803 if test -z "$ac_cv_prog_STRIP"; then
2804 ac_ct_STRIP=$STRIP
2805 # Extract the first word of "strip", so it can be a program name with args.
2806 set dummy strip; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$ac_ct_STRIP"; then
2813 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_ac_ct_STRIP="strip"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2833 if test -n "$ac_ct_STRIP"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2835 $as_echo "$ac_ct_STRIP" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841 if test "x$ac_ct_STRIP" = x; then
2842 STRIP=":"
2843 else
2844 case $cross_compiling:$ac_tool_warned in
2845 yes:)
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2848 ac_tool_warned=yes ;;
2849 esac
2850 STRIP=$ac_ct_STRIP
2851 fi
2852 else
2853 STRIP="$ac_cv_prog_STRIP"
2854 fi
2855
2856 fi
2857 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2858
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2860 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2861 if test -z "$MKDIR_P"; then
2862 if test "${ac_cv_path_mkdir+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_prog in mkdir gmkdir; do
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2873 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2874 'mkdir (GNU coreutils) '* | \
2875 'mkdir (coreutils) '* | \
2876 'mkdir (fileutils) '4.1*)
2877 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2878 break 3;;
2879 esac
2880 done
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886
2887 if test "${ac_cv_path_mkdir+set}" = set; then
2888 MKDIR_P="$ac_cv_path_mkdir -p"
2889 else
2890 # As a last resort, use the slow shell script. Don't cache a
2891 # value for MKDIR_P within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the value is a relative name.
2894 test -d ./--version && rmdir ./--version
2895 MKDIR_P="$ac_install_sh -d"
2896 fi
2897 fi
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2899 $as_echo "$MKDIR_P" >&6; }
2900
2901 mkdir_p="$MKDIR_P"
2902 case $mkdir_p in
2903 [\\/$]* | ?:[\\/]*) ;;
2904 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2905 esac
2906
2907 for ac_prog in gawk mawk nawk awk
2908 do
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_AWK+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$AWK"; then
2917 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_AWK="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 AWK=$ac_cv_prog_AWK
2937 if test -n "$AWK"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2939 $as_echo "$AWK" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 test -n "$AWK" && break
2947 done
2948
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2950 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2951 set x ${MAKE-make}
2952 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2953 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 cat >conftest.make <<\_ACEOF
2957 SHELL = /bin/sh
2958 all:
2959 @echo '@@@%%%=$(MAKE)=@@@%%%'
2960 _ACEOF
2961 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2962 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963 *@@@%%%=?*=@@@%%%*)
2964 eval ac_cv_prog_make_${ac_make}_set=yes;;
2965 *)
2966 eval ac_cv_prog_make_${ac_make}_set=no;;
2967 esac
2968 rm -f conftest.make
2969 fi
2970 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2973 SET_MAKE=
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 SET_MAKE="MAKE=${MAKE-make}"
2978 fi
2979
2980 rm -rf .tst 2>/dev/null
2981 mkdir .tst 2>/dev/null
2982 if test -d .tst; then
2983 am__leading_dot=.
2984 else
2985 am__leading_dot=_
2986 fi
2987 rmdir .tst 2>/dev/null
2988
2989 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2990 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2991 # is not polluted with repeated "-I."
2992 am__isrc=' -I$(srcdir)'
2993 # test to see if srcdir already configured
2994 if test -f $srcdir/config.status; then
2995 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2996 fi
2997 fi
2998
2999 # test whether we have cygpath
3000 if test -z "$CYGPATH_W"; then
3001 if (cygpath --version) >/dev/null 2>/dev/null; then
3002 CYGPATH_W='cygpath -w'
3003 else
3004 CYGPATH_W=echo
3005 fi
3006 fi
3007
3008
3009 # Define the identity of the package.
3010 PACKAGE='libatomic'
3011 VERSION='1.0'
3012
3013
3014 cat >>confdefs.h <<_ACEOF
3015 #define PACKAGE "$PACKAGE"
3016 _ACEOF
3017
3018
3019 cat >>confdefs.h <<_ACEOF
3020 #define VERSION "$VERSION"
3021 _ACEOF
3022
3023 # Some tools Automake needs.
3024
3025 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3026
3027
3028 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3029
3030
3031 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3032
3033
3034 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3035
3036
3037 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3038
3039 # We need awk for the "check" target. The system "awk" is bad on
3040 # some platforms.
3041 # Always define AMTAR for backward compatibility. Yes, it's still used
3042 # in the wild :-( We should find a proper way to deprecate it ...
3043 AMTAR='$${TAR-tar}'
3044
3045 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3046
3047
3048
3049
3050
3051 # Default to --enable-multilib
3052 # Check whether --enable-multilib was given.
3053 if test "${enable_multilib+set}" = set; then :
3054 enableval=$enable_multilib; case "$enableval" in
3055 yes) multilib=yes ;;
3056 no) multilib=no ;;
3057 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3058 esac
3059 else
3060 multilib=yes
3061 fi
3062
3063
3064 # We may get other options which we leave undocumented:
3065 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3066 # See config-ml.in if you want the gory details.
3067
3068 if test "$srcdir" = "."; then
3069 if test "$with_target_subdir" != "."; then
3070 multi_basedir="$srcdir/$with_multisrctop../.."
3071 else
3072 multi_basedir="$srcdir/$with_multisrctop.."
3073 fi
3074 else
3075 multi_basedir="$srcdir/.."
3076 fi
3077
3078
3079 # Even if the default multilib is not a cross compilation,
3080 # it may be that some of the other multilibs are.
3081 if test $cross_compiling = no && test $multilib = yes \
3082 && test "x${with_multisubdir}" != x ; then
3083 cross_compiling=maybe
3084 fi
3085
3086 ac_config_commands="$ac_config_commands default-1"
3087
3088
3089 # Calculate toolexeclibdir
3090 # Also toolexecdir, though it's only used in toolexeclibdir
3091 case ${enable_version_specific_runtime_libs} in
3092 yes)
3093 # Need the gcc compiler version to know where to install libraries
3094 # and header files if --enable-version-specific-runtime-libs option
3095 # is selected.
3096 toolexecdir='$(libdir)/gcc/$(target_alias)'
3097 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3098 ;;
3099 no)
3100 if test -n "$with_cross_host" &&
3101 test x"$with_cross_host" != x"no"; then
3102 # Install a library built with a cross compiler in tooldir, not libdir.
3103 toolexecdir='$(exec_prefix)/$(target_alias)'
3104 toolexeclibdir='$(toolexecdir)/lib'
3105 else
3106 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3107 toolexeclibdir='$(libdir)'
3108 fi
3109 multi_os_directory=`$CC -print-multi-os-directory`
3110 case $multi_os_directory in
3111 .) ;; # Avoid trailing /.
3112 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3113 esac
3114 ;;
3115 esac
3116
3117
3118
3119 # Check the compiler.
3120 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3121 # We must force CC to /not/ be precious variables; otherwise
3122 # the wrong, non-multilib-adjusted value will be used in multilibs.
3123 # As a side effect, we have to subst CFLAGS ourselves.
3124
3125
3126
3127 ac_ext=c
3128 ac_cpp='$CPP $CPPFLAGS'
3129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169
3170 fi
3171 if test -z "$ac_cv_prog_CC"; then
3172 ac_ct_CC=$CC
3173 # Extract the first word of "gcc", so it can be a program name with args.
3174 set dummy gcc; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 ac_cv_prog_ac_ct_CC="gcc"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209 if test "x$ac_ct_CC" = x; then
3210 CC=""
3211 else
3212 case $cross_compiling:$ac_tool_warned in
3213 yes:)
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3217 esac
3218 CC=$ac_ct_CC
3219 fi
3220 else
3221 CC="$ac_cv_prog_CC"
3222 fi
3223
3224 if test -z "$CC"; then
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CC="${ac_tool_prefix}cc"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3246 fi
3247 done
3248 done
3249 IFS=$as_save_IFS
3250
3251 fi
3252 fi
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260 fi
3261
3262
3263 fi
3264 fi
3265 if test -z "$CC"; then
3266 # Extract the first word of "cc", so it can be a program name with args.
3267 set dummy cc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_CC+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 ac_prog_rejected=no
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3285 ac_prog_rejected=yes
3286 continue
3287 fi
3288 ac_cv_prog_CC="cc"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294 IFS=$as_save_IFS
3295
3296 if test $ac_prog_rejected = yes; then
3297 # We found a bogon in the path, so make sure we never use it.
3298 set dummy $ac_cv_prog_CC
3299 shift
3300 if test $# != 0; then
3301 # We chose a different compiler from the bogus one.
3302 # However, it has the same basename, so the bogon will be chosen
3303 # first if we set CC to just the basename; use the full file name.
3304 shift
3305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3306 fi
3307 fi
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 fi
3318
3319
3320 fi
3321 if test -z "$CC"; then
3322 if test -n "$ac_tool_prefix"; then
3323 for ac_prog in cl.exe
3324 do
3325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if test "${ac_cv_prog_CC+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC="$CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3345 fi
3346 done
3347 done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 CC=$ac_cv_prog_CC
3353 if test -n "$CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361
3362 test -n "$CC" && break
3363 done
3364 fi
3365 if test -z "$CC"; then
3366 ac_ct_CC=$CC
3367 for ac_prog in cl.exe
3368 do
3369 # Extract the first word of "$ac_prog", so it can be a program name with args.
3370 set dummy $ac_prog; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 if test -n "$ac_ct_CC"; then
3377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386 ac_cv_prog_ac_ct_CC="$ac_prog"
3387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
3389 fi
3390 done
3391 done
3392 IFS=$as_save_IFS
3393
3394 fi
3395 fi
3396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3397 if test -n "$ac_ct_CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3399 $as_echo "$ac_ct_CC" >&6; }
3400 else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402 $as_echo "no" >&6; }
3403 fi
3404
3405
3406 test -n "$ac_ct_CC" && break
3407 done
3408
3409 if test "x$ac_ct_CC" = x; then
3410 CC=""
3411 else
3412 case $cross_compiling:$ac_tool_warned in
3413 yes:)
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416 ac_tool_warned=yes ;;
3417 esac
3418 CC=$ac_ct_CC
3419 fi
3420 fi
3421
3422 fi
3423
3424
3425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 as_fn_error "no acceptable C compiler found in \$PATH
3428 See \`config.log' for more details." "$LINENO" 5; }
3429
3430 # Provide some information about the compiler.
3431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3432 set X $ac_compile
3433 ac_compiler=$2
3434 for ac_option in --version -v -V -qversion; do
3435 { { ac_try="$ac_compiler $ac_option >&5"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3443 ac_status=$?
3444 if test -s conftest.err; then
3445 sed '10a\
3446 ... rest of stderr output deleted ...
3447 10q' conftest.err >conftest.er1
3448 cat conftest.er1 >&5
3449 rm -f conftest.er1 conftest.err
3450 fi
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }
3453 done
3454
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457
3458 int
3459 main ()
3460 {
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 ac_clean_files_save=$ac_clean_files
3467 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3468 # Try to create an executable without -o first, disregard a.out.
3469 # It will help us diagnose broken compilers, and finding out an intuition
3470 # of exeext.
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3472 $as_echo_n "checking for C compiler default output file name... " >&6; }
3473 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3474
3475 # The possible output files:
3476 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3477
3478 ac_rmfiles=
3479 for ac_file in $ac_files
3480 do
3481 case $ac_file in
3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3483 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3484 esac
3485 done
3486 rm -f $ac_rmfiles
3487
3488 if { { ac_try="$ac_link_default"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_link_default") 2>&5
3496 ac_status=$?
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; then :
3499 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3500 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3501 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3502 # so that the user can short-circuit this test for compilers unknown to
3503 # Autoconf.
3504 for ac_file in $ac_files ''
3505 do
3506 test -f "$ac_file" || continue
3507 case $ac_file in
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3509 ;;
3510 [ab].out )
3511 # We found the default executable, but exeext='' is most
3512 # certainly right.
3513 break;;
3514 *.* )
3515 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3516 then :; else
3517 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3518 fi
3519 # We set ac_cv_exeext here because the later test for it is not
3520 # safe: cross compilers may not add the suffix if given an `-o'
3521 # argument, so we may need to know it at that point already.
3522 # Even if this section looks crufty: it has the advantage of
3523 # actually working.
3524 break;;
3525 * )
3526 break;;
3527 esac
3528 done
3529 test "$ac_cv_exeext" = no && ac_cv_exeext=
3530
3531 else
3532 ac_file=''
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3535 $as_echo "$ac_file" >&6; }
3536 if test -z "$ac_file"; then :
3537 $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 { as_fn_set_status 77
3543 as_fn_error "C compiler cannot create executables
3544 See \`config.log' for more details." "$LINENO" 5; }; }
3545 fi
3546 ac_exeext=$ac_cv_exeext
3547
3548 # Check that the compiler produces executables we can run. If not, either
3549 # the compiler is broken, or we cross compile.
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3551 $as_echo_n "checking whether the C compiler works... " >&6; }
3552 # If not cross compiling, check that we can run a simple program.
3553 if test "$cross_compiling" != yes; then
3554 if { ac_try='./$ac_file'
3555 { { case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560 $as_echo "$ac_try_echo"; } >&5
3561 (eval "$ac_try") 2>&5
3562 ac_status=$?
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }; }; then
3565 cross_compiling=no
3566 else
3567 if test "$cross_compiling" = maybe; then
3568 cross_compiling=yes
3569 else
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error "cannot run C compiled programs.
3573 If you meant to cross compile, use \`--host'.
3574 See \`config.log' for more details." "$LINENO" 5; }
3575 fi
3576 fi
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3579 $as_echo "yes" >&6; }
3580
3581 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3582 ac_clean_files=$ac_clean_files_save
3583 # Check that the compiler produces executables we can run. If not, either
3584 # the compiler is broken, or we cross compile.
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3586 $as_echo_n "checking whether we are cross compiling... " >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3589
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3591 $as_echo_n "checking for suffix of executables... " >&6; }
3592 if { { ac_try="$ac_link"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_link") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; then :
3603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3605 # work properly (i.e., refer to `conftest.exe'), while it won't with
3606 # `rm'.
3607 for ac_file in conftest.exe conftest conftest.*; do
3608 test -f "$ac_file" || continue
3609 case $ac_file in
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 break;;
3613 * ) break;;
3614 esac
3615 done
3616 else
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error "cannot compute suffix of executables: cannot compile and link
3620 See \`config.log' for more details." "$LINENO" 5; }
3621 fi
3622 rm -f conftest$ac_cv_exeext
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3624 $as_echo "$ac_cv_exeext" >&6; }
3625
3626 rm -f conftest.$ac_ext
3627 EXEEXT=$ac_cv_exeext
3628 ac_exeext=$EXEEXT
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3630 $as_echo_n "checking for suffix of object files... " >&6; }
3631 if test "${ac_cv_objext+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3636
3637 int
3638 main ()
3639 {
3640
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.o conftest.obj
3646 if { { ac_try="$ac_compile"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_compile") 2>&5
3654 ac_status=$?
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }; then :
3657 for ac_file in conftest.o conftest.obj conftest.*; do
3658 test -f "$ac_file" || continue;
3659 case $ac_file in
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3661 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3662 break;;
3663 esac
3664 done
3665 else
3666 $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error "cannot compute suffix of object files: cannot compile
3672 See \`config.log' for more details." "$LINENO" 5; }
3673 fi
3674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3677 $as_echo "$ac_cv_objext" >&6; }
3678 OBJEXT=$ac_cv_objext
3679 ac_objext=$OBJEXT
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3681 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3682 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687
3688 int
3689 main ()
3690 {
3691 #ifndef __GNUC__
3692 choke me
3693 #endif
3694
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_compiler_gnu=yes
3701 else
3702 ac_compiler_gnu=no
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3706
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3709 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3710 if test $ac_compiler_gnu = yes; then
3711 GCC=yes
3712 else
3713 GCC=
3714 fi
3715 ac_test_CFLAGS=${CFLAGS+set}
3716 ac_save_CFLAGS=$CFLAGS
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3718 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3719 if test "${ac_cv_prog_cc_g+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 ac_save_c_werror_flag=$ac_c_werror_flag
3723 ac_c_werror_flag=yes
3724 ac_cv_prog_cc_g=no
3725 CFLAGS="-g"
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_cv_prog_cc_g=yes
3739 else
3740 CFLAGS=""
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main ()
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753
3754 else
3755 ac_c_werror_flag=$ac_save_c_werror_flag
3756 CFLAGS="-g"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_prog_cc_g=yes
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 ac_c_werror_flag=$ac_save_c_werror_flag
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3779 $as_echo "$ac_cv_prog_cc_g" >&6; }
3780 if test "$ac_test_CFLAGS" = set; then
3781 CFLAGS=$ac_save_CFLAGS
3782 elif test $ac_cv_prog_cc_g = yes; then
3783 if test "$GCC" = yes; then
3784 CFLAGS="-g -O2"
3785 else
3786 CFLAGS="-g"
3787 fi
3788 else
3789 if test "$GCC" = yes; then
3790 CFLAGS="-O2"
3791 else
3792 CFLAGS=
3793 fi
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3796 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3797 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 ac_cv_prog_cc_c89=no
3801 ac_save_CC=$CC
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804 #include <stdarg.h>
3805 #include <stdio.h>
3806 #include <sys/types.h>
3807 #include <sys/stat.h>
3808 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3809 struct buf { int x; };
3810 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3811 static char *e (p, i)
3812 char **p;
3813 int i;
3814 {
3815 return p[i];
3816 }
3817 static char *f (char * (*g) (char **, int), char **p, ...)
3818 {
3819 char *s;
3820 va_list v;
3821 va_start (v,p);
3822 s = g (p, va_arg (v,int));
3823 va_end (v);
3824 return s;
3825 }
3826
3827 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3828 function prototypes and stuff, but not '\xHH' hex character constants.
3829 These don't provoke an error unfortunately, instead are silently treated
3830 as 'x'. The following induces an error, until -std is added to get
3831 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3832 array size at least. It's necessary to write '\x00'==0 to get something
3833 that's true only with -std. */
3834 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3835
3836 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3837 inside strings and character constants. */
3838 #define FOO(x) 'x'
3839 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3840
3841 int test (int i, double x);
3842 struct s1 {int (*f) (int a);};
3843 struct s2 {int (*f) (double a);};
3844 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3845 int argc;
3846 char **argv;
3847 int
3848 main ()
3849 {
3850 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3856 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3857 do
3858 CC="$ac_save_CC $ac_arg"
3859 if ac_fn_c_try_compile "$LINENO"; then :
3860 ac_cv_prog_cc_c89=$ac_arg
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext
3863 test "x$ac_cv_prog_cc_c89" != "xno" && break
3864 done
3865 rm -f conftest.$ac_ext
3866 CC=$ac_save_CC
3867
3868 fi
3869 # AC_CACHE_VAL
3870 case "x$ac_cv_prog_cc_c89" in
3871 x)
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3873 $as_echo "none needed" >&6; } ;;
3874 xno)
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3876 $as_echo "unsupported" >&6; } ;;
3877 *)
3878 CC="$CC $ac_cv_prog_cc_c89"
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3880 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3881 esac
3882 if test "x$ac_cv_prog_cc_c89" != xno; then :
3883
3884 fi
3885
3886 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 DEPDIR="${am__leading_dot}deps"
3892
3893 ac_config_commands="$ac_config_commands depfiles"
3894
3895
3896 am_make=${MAKE-make}
3897 cat > confinc << 'END'
3898 am__doit:
3899 @echo this is the am__doit target
3900 .PHONY: am__doit
3901 END
3902 # If we don't find an include directive, just comment out the code.
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3904 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3905 am__include="#"
3906 am__quote=
3907 _am_result=none
3908 # First try GNU make style include.
3909 echo "include confinc" > confmf
3910 # Ignore all kinds of additional output from `make'.
3911 case `$am_make -s -f confmf 2> /dev/null` in #(
3912 *the\ am__doit\ target*)
3913 am__include=include
3914 am__quote=
3915 _am_result=GNU
3916 ;;
3917 esac
3918 # Now try BSD make style include.
3919 if test "$am__include" = "#"; then
3920 echo '.include "confinc"' > confmf
3921 case `$am_make -s -f confmf 2> /dev/null` in #(
3922 *the\ am__doit\ target*)
3923 am__include=.include
3924 am__quote="\""
3925 _am_result=BSD
3926 ;;
3927 esac
3928 fi
3929
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3932 $as_echo "$_am_result" >&6; }
3933 rm -f confinc confmf
3934
3935 # Check whether --enable-dependency-tracking was given.
3936 if test "${enable_dependency_tracking+set}" = set; then :
3937 enableval=$enable_dependency_tracking;
3938 fi
3939
3940 if test "x$enable_dependency_tracking" != xno; then
3941 am_depcomp="$ac_aux_dir/depcomp"
3942 AMDEPBACKSLASH='\'
3943 am__nodep='_no'
3944 fi
3945 if test "x$enable_dependency_tracking" != xno; then
3946 AMDEP_TRUE=
3947 AMDEP_FALSE='#'
3948 else
3949 AMDEP_TRUE='#'
3950 AMDEP_FALSE=
3951 fi
3952
3953
3954
3955 depcc="$CC" am_compiler_list=
3956
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3958 $as_echo_n "checking dependency style of $depcc... " >&6; }
3959 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3963 # We make a subdir and do the tests there. Otherwise we can end up
3964 # making bogus files that we don't know about and never remove. For
3965 # instance it was reported that on HP-UX the gcc test will end up
3966 # making a dummy file named `D' -- because `-MD' means `put the output
3967 # in D'.
3968 rm -rf conftest.dir
3969 mkdir conftest.dir
3970 # Copy depcomp to subdir because otherwise we won't find it if we're
3971 # using a relative directory.
3972 cp "$am_depcomp" conftest.dir
3973 cd conftest.dir
3974 # We will build objects and dependencies in a subdirectory because
3975 # it helps to detect inapplicable dependency modes. For instance
3976 # both Tru64's cc and ICC support -MD to output dependencies as a
3977 # side effect of compilation, but ICC will put the dependencies in
3978 # the current directory while Tru64 will put them in the object
3979 # directory.
3980 mkdir sub
3981
3982 am_cv_CC_dependencies_compiler_type=none
3983 if test "$am_compiler_list" = ""; then
3984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3985 fi
3986 am__universal=false
3987 case " $depcc " in #(
3988 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3989 esac
3990
3991 for depmode in $am_compiler_list; do
3992 # Setup a source with many dependencies, because some compilers
3993 # like to wrap large dependency lists on column 80 (with \), and
3994 # we should not choose a depcomp mode which is confused by this.
3995 #
3996 # We need to recreate these files for each test, as the compiler may
3997 # overwrite some of them when testing with obscure command lines.
3998 # This happens at least with the AIX C compiler.
3999 : > sub/conftest.c
4000 for i in 1 2 3 4 5 6; do
4001 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4002 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4003 # Solaris 8's {/usr,}/bin/sh.
4004 touch sub/conftst$i.h
4005 done
4006 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4007
4008 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4009 # mode. It turns out that the SunPro C++ compiler does not properly
4010 # handle `-M -o', and we need to detect this. Also, some Intel
4011 # versions had trouble with output in subdirs
4012 am__obj=sub/conftest.${OBJEXT-o}
4013 am__minus_obj="-o $am__obj"
4014 case $depmode in
4015 gcc)
4016 # This depmode causes a compiler race in universal mode.
4017 test "$am__universal" = false || continue
4018 ;;
4019 nosideeffect)
4020 # after this tag, mechanisms are not by side-effect, so they'll
4021 # only be used when explicitly requested
4022 if test "x$enable_dependency_tracking" = xyes; then
4023 continue
4024 else
4025 break
4026 fi
4027 ;;
4028 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4029 # This compiler won't grok `-c -o', but also, the minuso test has
4030 # not run yet. These depmodes are late enough in the game, and
4031 # so weak that their functioning should not be impacted.
4032 am__obj=conftest.${OBJEXT-o}
4033 am__minus_obj=
4034 ;;
4035 none) break ;;
4036 esac
4037 if depmode=$depmode \
4038 source=sub/conftest.c object=$am__obj \
4039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4040 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4041 >/dev/null 2>conftest.err &&
4042 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4043 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4044 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4046 # icc doesn't choke on unknown options, it will just issue warnings
4047 # or remarks (even with -Werror). So we grep stderr for any message
4048 # that says an option was ignored or not supported.
4049 # When given -MP, icc 7.0 and 7.1 complain thusly:
4050 # icc: Command line warning: ignoring option '-M'; no argument required
4051 # The diagnosis changed in icc 8.0:
4052 # icc: Command line remark: option '-MP' not supported
4053 if (grep 'ignoring option' conftest.err ||
4054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4055 am_cv_CC_dependencies_compiler_type=$depmode
4056 break
4057 fi
4058 fi
4059 done
4060
4061 cd ..
4062 rm -rf conftest.dir
4063 else
4064 am_cv_CC_dependencies_compiler_type=none
4065 fi
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4069 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4070 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4071
4072 if
4073 test "x$enable_dependency_tracking" != xno \
4074 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4075 am__fastdepCC_TRUE=
4076 am__fastdepCC_FALSE='#'
4077 else
4078 am__fastdepCC_TRUE='#'
4079 am__fastdepCC_FALSE=
4080 fi
4081
4082
4083 # By default we simply use the C compiler to build assembly code.
4084
4085 test "${CCAS+set}" = set || CCAS=$CC
4086 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4087
4088
4089
4090 depcc="$CCAS" am_compiler_list=
4091
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4093 $as_echo_n "checking dependency style of $depcc... " >&6; }
4094 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4098 # We make a subdir and do the tests there. Otherwise we can end up
4099 # making bogus files that we don't know about and never remove. For
4100 # instance it was reported that on HP-UX the gcc test will end up
4101 # making a dummy file named `D' -- because `-MD' means `put the output
4102 # in D'.
4103 rm -rf conftest.dir
4104 mkdir conftest.dir
4105 # Copy depcomp to subdir because otherwise we won't find it if we're
4106 # using a relative directory.
4107 cp "$am_depcomp" conftest.dir
4108 cd conftest.dir
4109 # We will build objects and dependencies in a subdirectory because
4110 # it helps to detect inapplicable dependency modes. For instance
4111 # both Tru64's cc and ICC support -MD to output dependencies as a
4112 # side effect of compilation, but ICC will put the dependencies in
4113 # the current directory while Tru64 will put them in the object
4114 # directory.
4115 mkdir sub
4116
4117 am_cv_CCAS_dependencies_compiler_type=none
4118 if test "$am_compiler_list" = ""; then
4119 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4120 fi
4121 am__universal=false
4122
4123
4124 for depmode in $am_compiler_list; do
4125 # Setup a source with many dependencies, because some compilers
4126 # like to wrap large dependency lists on column 80 (with \), and
4127 # we should not choose a depcomp mode which is confused by this.
4128 #
4129 # We need to recreate these files for each test, as the compiler may
4130 # overwrite some of them when testing with obscure command lines.
4131 # This happens at least with the AIX C compiler.
4132 : > sub/conftest.c
4133 for i in 1 2 3 4 5 6; do
4134 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4135 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4136 # Solaris 8's {/usr,}/bin/sh.
4137 touch sub/conftst$i.h
4138 done
4139 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4140
4141 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4142 # mode. It turns out that the SunPro C++ compiler does not properly
4143 # handle `-M -o', and we need to detect this. Also, some Intel
4144 # versions had trouble with output in subdirs
4145 am__obj=sub/conftest.${OBJEXT-o}
4146 am__minus_obj="-o $am__obj"
4147 case $depmode in
4148 gcc)
4149 # This depmode causes a compiler race in universal mode.
4150 test "$am__universal" = false || continue
4151 ;;
4152 nosideeffect)
4153 # after this tag, mechanisms are not by side-effect, so they'll
4154 # only be used when explicitly requested
4155 if test "x$enable_dependency_tracking" = xyes; then
4156 continue
4157 else
4158 break
4159 fi
4160 ;;
4161 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4162 # This compiler won't grok `-c -o', but also, the minuso test has
4163 # not run yet. These depmodes are late enough in the game, and
4164 # so weak that their functioning should not be impacted.
4165 am__obj=conftest.${OBJEXT-o}
4166 am__minus_obj=
4167 ;;
4168 none) break ;;
4169 esac
4170 if depmode=$depmode \
4171 source=sub/conftest.c object=$am__obj \
4172 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4173 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4174 >/dev/null 2>conftest.err &&
4175 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4176 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4177 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4178 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4179 # icc doesn't choke on unknown options, it will just issue warnings
4180 # or remarks (even with -Werror). So we grep stderr for any message
4181 # that says an option was ignored or not supported.
4182 # When given -MP, icc 7.0 and 7.1 complain thusly:
4183 # icc: Command line warning: ignoring option '-M'; no argument required
4184 # The diagnosis changed in icc 8.0:
4185 # icc: Command line remark: option '-MP' not supported
4186 if (grep 'ignoring option' conftest.err ||
4187 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4188 am_cv_CCAS_dependencies_compiler_type=$depmode
4189 break
4190 fi
4191 fi
4192 done
4193
4194 cd ..
4195 rm -rf conftest.dir
4196 else
4197 am_cv_CCAS_dependencies_compiler_type=none
4198 fi
4199
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4202 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4203 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4204
4205 if
4206 test "x$enable_dependency_tracking" != xno \
4207 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4208 am__fastdepCCAS_TRUE=
4209 am__fastdepCCAS_FALSE='#'
4210 else
4211 am__fastdepCCAS_TRUE='#'
4212 am__fastdepCCAS_FALSE=
4213 fi
4214
4215
4216
4217
4218
4219
4220 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4221 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4222 # in both places for now and restore CFLAGS at the end of config.
4223 save_CFLAGS="$CFLAGS"
4224
4225 # Find other programs we need.
4226 if test -n "$ac_tool_prefix"; then
4227 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4228 set dummy ${ac_tool_prefix}ar; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if test "${ac_cv_prog_AR+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -n "$AR"; then
4235 ac_cv_prog_AR="$AR" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_prog_AR="${ac_tool_prefix}ar"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4247 fi
4248 done
4249 done
4250 IFS=$as_save_IFS
4251
4252 fi
4253 fi
4254 AR=$ac_cv_prog_AR
4255 if test -n "$AR"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4257 $as_echo "$AR" >&6; }
4258 else
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4261 fi
4262
4263
4264 fi
4265 if test -z "$ac_cv_prog_AR"; then
4266 ac_ct_AR=$AR
4267 # Extract the first word of "ar", so it can be a program name with args.
4268 set dummy ar; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -n "$ac_ct_AR"; then
4275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_ac_ct_AR="ar"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288 done
4289 done
4290 IFS=$as_save_IFS
4291
4292 fi
4293 fi
4294 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4295 if test -n "$ac_ct_AR"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4297 $as_echo "$ac_ct_AR" >&6; }
4298 else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303 if test "x$ac_ct_AR" = x; then
4304 AR=""
4305 else
4306 case $cross_compiling:$ac_tool_warned in
4307 yes:)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4310 ac_tool_warned=yes ;;
4311 esac
4312 AR=$ac_ct_AR
4313 fi
4314 else
4315 AR="$ac_cv_prog_AR"
4316 fi
4317
4318 if test -n "$ac_tool_prefix"; then
4319 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4320 set dummy ${ac_tool_prefix}nm; ac_word=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if test "${ac_cv_prog_NM+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 if test -n "$NM"; then
4327 ac_cv_prog_NM="$NM" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_prog_NM="${ac_tool_prefix}nm"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4339 fi
4340 done
4341 done
4342 IFS=$as_save_IFS
4343
4344 fi
4345 fi
4346 NM=$ac_cv_prog_NM
4347 if test -n "$NM"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4349 $as_echo "$NM" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353 fi
4354
4355
4356 fi
4357 if test -z "$ac_cv_prog_NM"; then
4358 ac_ct_NM=$NM
4359 # Extract the first word of "nm", so it can be a program name with args.
4360 set dummy nm; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$ac_ct_NM"; then
4367 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_ac_ct_NM="nm"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380 done
4381 done
4382 IFS=$as_save_IFS
4383
4384 fi
4385 fi
4386 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4387 if test -n "$ac_ct_NM"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4389 $as_echo "$ac_ct_NM" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395 if test "x$ac_ct_NM" = x; then
4396 NM=""
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404 NM=$ac_ct_NM
4405 fi
4406 else
4407 NM="$ac_cv_prog_NM"
4408 fi
4409
4410 if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4412 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$RANLIB"; then
4419 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 fi
4437 fi
4438 RANLIB=$ac_cv_prog_RANLIB
4439 if test -n "$RANLIB"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4441 $as_echo "$RANLIB" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 fi
4446
4447
4448 fi
4449 if test -z "$ac_cv_prog_RANLIB"; then
4450 ac_ct_RANLIB=$RANLIB
4451 # Extract the first word of "ranlib", so it can be a program name with args.
4452 set dummy ranlib; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 if test -n "$ac_ct_RANLIB"; then
4459 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_ac_ct_RANLIB="ranlib"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472 done
4473 done
4474 IFS=$as_save_IFS
4475
4476 fi
4477 fi
4478 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4479 if test -n "$ac_ct_RANLIB"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4481 $as_echo "$ac_ct_RANLIB" >&6; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487 if test "x$ac_ct_RANLIB" = x; then
4488 RANLIB="ranlib-not-found-in-path-error"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 RANLIB=$ac_ct_RANLIB
4497 fi
4498 else
4499 RANLIB="$ac_cv_prog_RANLIB"
4500 fi
4501
4502 # Extract the first word of "perl", so it can be a program name with args.
4503 set dummy perl; ac_word=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if test "${ac_cv_path_PERL+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 case $PERL in
4510 [\\/]* | ?:[\\/]*)
4511 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4512 ;;
4513 *)
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525 done
4526 done
4527 IFS=$as_save_IFS
4528
4529 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4530 ;;
4531 esac
4532 fi
4533 PERL=$ac_cv_path_PERL
4534 if test -n "$PERL"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4536 $as_echo "$PERL" >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4540 fi
4541
4542
4543
4544
4545 # Configure libtool
4546 case `pwd` in
4547 *\ * | *\ *)
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4549 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4550 esac
4551
4552
4553
4554 macro_version='2.2.7a'
4555 macro_revision='1.3134'
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569 ltmain="$ac_aux_dir/ltmain.sh"
4570
4571 # Backslashify metacharacters that are still active within
4572 # double-quoted strings.
4573 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4574
4575 # Same as above, but do not quote variable references.
4576 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4577
4578 # Sed substitution to delay expansion of an escaped shell variable in a
4579 # double_quote_subst'ed string.
4580 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4581
4582 # Sed substitution to delay expansion of an escaped single quote.
4583 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4584
4585 # Sed substitution to avoid accidental globbing in evaled expressions
4586 no_glob_subst='s/\*/\\\*/g'
4587
4588 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4589 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4590 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4593 $as_echo_n "checking how to print strings... " >&6; }
4594 # Test print first, because it will be a builtin if present.
4595 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4596 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4597 ECHO='print -r --'
4598 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4599 ECHO='printf %s\n'
4600 else
4601 # Use this function as a fallback that always works.
4602 func_fallback_echo ()
4603 {
4604 eval 'cat <<_LTECHO_EOF
4605 $1
4606 _LTECHO_EOF'
4607 }
4608 ECHO='func_fallback_echo'
4609 fi
4610
4611 # func_echo_all arg...
4612 # Invoke $ECHO with all args, space-separated.
4613 func_echo_all ()
4614 {
4615 $ECHO ""
4616 }
4617
4618 case "$ECHO" in
4619 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4620 $as_echo "printf" >&6; } ;;
4621 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4622 $as_echo "print -r" >&6; } ;;
4623 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4624 $as_echo "cat" >&6; } ;;
4625 esac
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4641 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4642 if test "${ac_cv_path_SED+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4646 for ac_i in 1 2 3 4 5 6 7; do
4647 ac_script="$ac_script$as_nl$ac_script"
4648 done
4649 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4650 { ac_script=; unset ac_script;}
4651 if test -z "$SED"; then
4652 ac_path_SED_found=false
4653 # Loop through the user's path and test for each of PROGNAME-LIST
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_prog in sed gsed; do
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4662 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4663 # Check for GNU ac_path_SED and select it if it is found.
4664 # Check for GNU $ac_path_SED
4665 case `"$ac_path_SED" --version 2>&1` in
4666 *GNU*)
4667 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4668 *)
4669 ac_count=0
4670 $as_echo_n 0123456789 >"conftest.in"
4671 while :
4672 do
4673 cat "conftest.in" "conftest.in" >"conftest.tmp"
4674 mv "conftest.tmp" "conftest.in"
4675 cp "conftest.in" "conftest.nl"
4676 $as_echo '' >> "conftest.nl"
4677 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4679 as_fn_arith $ac_count + 1 && ac_count=$as_val
4680 if test $ac_count -gt ${ac_path_SED_max-0}; then
4681 # Best one so far, save it but keep looking for a better one
4682 ac_cv_path_SED="$ac_path_SED"
4683 ac_path_SED_max=$ac_count
4684 fi
4685 # 10*(2^10) chars as input seems more than enough
4686 test $ac_count -gt 10 && break
4687 done
4688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689 esac
4690
4691 $ac_path_SED_found && break 3
4692 done
4693 done
4694 done
4695 IFS=$as_save_IFS
4696 if test -z "$ac_cv_path_SED"; then
4697 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4698 fi
4699 else
4700 ac_cv_path_SED=$SED
4701 fi
4702
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4705 $as_echo "$ac_cv_path_SED" >&6; }
4706 SED="$ac_cv_path_SED"
4707 rm -f conftest.sed
4708
4709 test -z "$SED" && SED=sed
4710 Xsed="$SED -e 1s/^X//"
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4723 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4724 if test "${ac_cv_path_GREP+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 if test -z "$GREP"; then
4728 ac_path_GREP_found=false
4729 # Loop through the user's path and test for each of PROGNAME-LIST
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4732 do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_prog in grep ggrep; do
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4738 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4739 # Check for GNU ac_path_GREP and select it if it is found.
4740 # Check for GNU $ac_path_GREP
4741 case `"$ac_path_GREP" --version 2>&1` in
4742 *GNU*)
4743 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4744 *)
4745 ac_count=0
4746 $as_echo_n 0123456789 >"conftest.in"
4747 while :
4748 do
4749 cat "conftest.in" "conftest.in" >"conftest.tmp"
4750 mv "conftest.tmp" "conftest.in"
4751 cp "conftest.in" "conftest.nl"
4752 $as_echo 'GREP' >> "conftest.nl"
4753 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755 as_fn_arith $ac_count + 1 && ac_count=$as_val
4756 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4757 # Best one so far, save it but keep looking for a better one
4758 ac_cv_path_GREP="$ac_path_GREP"
4759 ac_path_GREP_max=$ac_count
4760 fi
4761 # 10*(2^10) chars as input seems more than enough
4762 test $ac_count -gt 10 && break
4763 done
4764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4765 esac
4766
4767 $ac_path_GREP_found && break 3
4768 done
4769 done
4770 done
4771 IFS=$as_save_IFS
4772 if test -z "$ac_cv_path_GREP"; then
4773 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4774 fi
4775 else
4776 ac_cv_path_GREP=$GREP
4777 fi
4778
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4781 $as_echo "$ac_cv_path_GREP" >&6; }
4782 GREP="$ac_cv_path_GREP"
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4786 $as_echo_n "checking for egrep... " >&6; }
4787 if test "${ac_cv_path_EGREP+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4791 then ac_cv_path_EGREP="$GREP -E"
4792 else
4793 if test -z "$EGREP"; then
4794 ac_path_EGREP_found=false
4795 # Loop through the user's path and test for each of PROGNAME-LIST
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4798 do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_prog in egrep; do
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4804 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4805 # Check for GNU ac_path_EGREP and select it if it is found.
4806 # Check for GNU $ac_path_EGREP
4807 case `"$ac_path_EGREP" --version 2>&1` in
4808 *GNU*)
4809 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4810 *)
4811 ac_count=0
4812 $as_echo_n 0123456789 >"conftest.in"
4813 while :
4814 do
4815 cat "conftest.in" "conftest.in" >"conftest.tmp"
4816 mv "conftest.tmp" "conftest.in"
4817 cp "conftest.in" "conftest.nl"
4818 $as_echo 'EGREP' >> "conftest.nl"
4819 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821 as_fn_arith $ac_count + 1 && ac_count=$as_val
4822 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4823 # Best one so far, save it but keep looking for a better one
4824 ac_cv_path_EGREP="$ac_path_EGREP"
4825 ac_path_EGREP_max=$ac_count
4826 fi
4827 # 10*(2^10) chars as input seems more than enough
4828 test $ac_count -gt 10 && break
4829 done
4830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831 esac
4832
4833 $ac_path_EGREP_found && break 3
4834 done
4835 done
4836 done
4837 IFS=$as_save_IFS
4838 if test -z "$ac_cv_path_EGREP"; then
4839 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840 fi
4841 else
4842 ac_cv_path_EGREP=$EGREP
4843 fi
4844
4845 fi
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4848 $as_echo "$ac_cv_path_EGREP" >&6; }
4849 EGREP="$ac_cv_path_EGREP"
4850
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4853 $as_echo_n "checking for fgrep... " >&6; }
4854 if test "${ac_cv_path_FGREP+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4858 then ac_cv_path_FGREP="$GREP -F"
4859 else
4860 if test -z "$FGREP"; then
4861 ac_path_FGREP_found=false
4862 # Loop through the user's path and test for each of PROGNAME-LIST
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4865 do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_prog in fgrep; do
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4871 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4872 # Check for GNU ac_path_FGREP and select it if it is found.
4873 # Check for GNU $ac_path_FGREP
4874 case `"$ac_path_FGREP" --version 2>&1` in
4875 *GNU*)
4876 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4877 *)
4878 ac_count=0
4879 $as_echo_n 0123456789 >"conftest.in"
4880 while :
4881 do
4882 cat "conftest.in" "conftest.in" >"conftest.tmp"
4883 mv "conftest.tmp" "conftest.in"
4884 cp "conftest.in" "conftest.nl"
4885 $as_echo 'FGREP' >> "conftest.nl"
4886 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4888 as_fn_arith $ac_count + 1 && ac_count=$as_val
4889 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4890 # Best one so far, save it but keep looking for a better one
4891 ac_cv_path_FGREP="$ac_path_FGREP"
4892 ac_path_FGREP_max=$ac_count
4893 fi
4894 # 10*(2^10) chars as input seems more than enough
4895 test $ac_count -gt 10 && break
4896 done
4897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4898 esac
4899
4900 $ac_path_FGREP_found && break 3
4901 done
4902 done
4903 done
4904 IFS=$as_save_IFS
4905 if test -z "$ac_cv_path_FGREP"; then
4906 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4907 fi
4908 else
4909 ac_cv_path_FGREP=$FGREP
4910 fi
4911
4912 fi
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4915 $as_echo "$ac_cv_path_FGREP" >&6; }
4916 FGREP="$ac_cv_path_FGREP"
4917
4918
4919 test -z "$GREP" && GREP=grep
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939 # Check whether --with-gnu-ld was given.
4940 if test "${with_gnu_ld+set}" = set; then :
4941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4942 else
4943 with_gnu_ld=no
4944 fi
4945
4946 ac_prog=ld
4947 if test "$GCC" = yes; then
4948 # Check if gcc -print-prog-name=ld gives a path.
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4950 $as_echo_n "checking for ld used by $CC... " >&6; }
4951 case $host in
4952 *-*-mingw*)
4953 # gcc leaves a trailing carriage return which upsets mingw
4954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4955 *)
4956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4957 esac
4958 case $ac_prog in
4959 # Accept absolute paths.
4960 [\\/]* | ?:[\\/]*)
4961 re_direlt='/[^/][^/]*/\.\./'
4962 # Canonicalize the pathname of ld
4963 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4964 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4965 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4966 done
4967 test -z "$LD" && LD="$ac_prog"
4968 ;;
4969 "")
4970 # If it fails, then pretend we aren't using GCC.
4971 ac_prog=ld
4972 ;;
4973 *)
4974 # If it is relative, then search for the first ld in PATH.
4975 with_gnu_ld=unknown
4976 ;;
4977 esac
4978 elif test "$with_gnu_ld" = yes; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4980 $as_echo_n "checking for GNU ld... " >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4983 $as_echo_n "checking for non-GNU ld... " >&6; }
4984 fi
4985 if test "${lt_cv_path_LD+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -z "$LD"; then
4989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4990 for ac_dir in $PATH; do
4991 IFS="$lt_save_ifs"
4992 test -z "$ac_dir" && ac_dir=.
4993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4994 lt_cv_path_LD="$ac_dir/$ac_prog"
4995 # Check to see if the program is GNU ld. I'd rather use --version,
4996 # but apparently some variants of GNU ld only accept -v.
4997 # Break only if it was the GNU/non-GNU ld that we prefer.
4998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4999 *GNU* | *'with BFD'*)
5000 test "$with_gnu_ld" != no && break
5001 ;;
5002 *)
5003 test "$with_gnu_ld" != yes && break
5004 ;;
5005 esac
5006 fi
5007 done
5008 IFS="$lt_save_ifs"
5009 else
5010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5011 fi
5012 fi
5013
5014 LD="$lt_cv_path_LD"
5015 if test -n "$LD"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5017 $as_echo "$LD" >&6; }
5018 else
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 fi
5022 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5024 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5025 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5029 case `$LD -v 2>&1 </dev/null` in
5030 *GNU* | *'with BFD'*)
5031 lt_cv_prog_gnu_ld=yes
5032 ;;
5033 *)
5034 lt_cv_prog_gnu_ld=no
5035 ;;
5036 esac
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5039 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5040 with_gnu_ld=$lt_cv_prog_gnu_ld
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5051 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5052 if test "${lt_cv_path_NM+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 if test -n "$NM"; then
5056 # Let the user override the test.
5057 lt_cv_path_NM="$NM"
5058 else
5059 lt_nm_to_check="${ac_tool_prefix}nm"
5060 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5061 lt_nm_to_check="$lt_nm_to_check nm"
5062 fi
5063 for lt_tmp_nm in $lt_nm_to_check; do
5064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5065 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5066 IFS="$lt_save_ifs"
5067 test -z "$ac_dir" && ac_dir=.
5068 tmp_nm="$ac_dir/$lt_tmp_nm"
5069 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5070 # Check to see if the nm accepts a BSD-compat flag.
5071 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5072 # nm: unknown option "B" ignored
5073 # Tru64's nm complains that /dev/null is an invalid object file
5074 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5075 */dev/null* | *'Invalid file or object type'*)
5076 lt_cv_path_NM="$tmp_nm -B"
5077 break
5078 ;;
5079 *)
5080 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5081 */dev/null*)
5082 lt_cv_path_NM="$tmp_nm -p"
5083 break
5084 ;;
5085 *)
5086 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5087 continue # so that we can try to find one that supports BSD flags
5088 ;;
5089 esac
5090 ;;
5091 esac
5092 fi
5093 done
5094 IFS="$lt_save_ifs"
5095 done
5096 : ${lt_cv_path_NM=no}
5097 fi
5098 fi
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5100 $as_echo "$lt_cv_path_NM" >&6; }
5101 if test "$lt_cv_path_NM" != "no"; then
5102 NM="$lt_cv_path_NM"
5103 else
5104 # Didn't find any BSD compatible name lister, look for dumpbin.
5105 if test -n "$DUMPBIN"; then :
5106 # Let the user override the test.
5107 else
5108 if test -n "$ac_tool_prefix"; then
5109 for ac_prog in dumpbin "link -dump"
5110 do
5111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$DUMPBIN"; then
5119 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 DUMPBIN=$ac_cv_prog_DUMPBIN
5139 if test -n "$DUMPBIN"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5141 $as_echo "$DUMPBIN" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148 test -n "$DUMPBIN" && break
5149 done
5150 fi
5151 if test -z "$DUMPBIN"; then
5152 ac_ct_DUMPBIN=$DUMPBIN
5153 for ac_prog in dumpbin "link -dump"
5154 do
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy $ac_prog; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 if test -n "$ac_ct_DUMPBIN"; then
5163 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176 done
5177 done
5178 IFS=$as_save_IFS
5179
5180 fi
5181 fi
5182 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5183 if test -n "$ac_ct_DUMPBIN"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5185 $as_echo "$ac_ct_DUMPBIN" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191
5192 test -n "$ac_ct_DUMPBIN" && break
5193 done
5194
5195 if test "x$ac_ct_DUMPBIN" = x; then
5196 DUMPBIN=":"
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199 yes:)
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5203 esac
5204 DUMPBIN=$ac_ct_DUMPBIN
5205 fi
5206 fi
5207
5208 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5209 *COFF*)
5210 DUMPBIN="$DUMPBIN -symbols"
5211 ;;
5212 *)
5213 DUMPBIN=:
5214 ;;
5215 esac
5216 fi
5217
5218 if test "$DUMPBIN" != ":"; then
5219 NM="$DUMPBIN"
5220 fi
5221 fi
5222 test -z "$NM" && NM=nm
5223
5224
5225
5226
5227
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5230 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5231 if test "${lt_cv_nm_interface+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 lt_cv_nm_interface="BSD nm"
5235 echo "int some_variable = 0;" > conftest.$ac_ext
5236 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5237 (eval "$ac_compile" 2>conftest.err)
5238 cat conftest.err >&5
5239 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5240 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5241 cat conftest.err >&5
5242 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5243 cat conftest.out >&5
5244 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5245 lt_cv_nm_interface="MS dumpbin"
5246 fi
5247 rm -f conftest*
5248 fi
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5250 $as_echo "$lt_cv_nm_interface" >&6; }
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5253 $as_echo_n "checking whether ln -s works... " >&6; }
5254 LN_S=$as_ln_s
5255 if test "$LN_S" = "ln -s"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5257 $as_echo "yes" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5260 $as_echo "no, using $LN_S" >&6; }
5261 fi
5262
5263 # find the maximum length of command line arguments
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5265 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5266 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 i=0
5270 teststring="ABCD"
5271
5272 case $build_os in
5273 msdosdjgpp*)
5274 # On DJGPP, this test can blow up pretty badly due to problems in libc
5275 # (any single argument exceeding 2000 bytes causes a buffer overrun
5276 # during glob expansion). Even if it were fixed, the result of this
5277 # check would be larger than it should be.
5278 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5279 ;;
5280
5281 gnu*)
5282 # Under GNU Hurd, this test is not required because there is
5283 # no limit to the length of command line arguments.
5284 # Libtool will interpret -1 as no limit whatsoever
5285 lt_cv_sys_max_cmd_len=-1;
5286 ;;
5287
5288 cygwin* | mingw* | cegcc*)
5289 # On Win9x/ME, this test blows up -- it succeeds, but takes
5290 # about 5 minutes as the teststring grows exponentially.
5291 # Worse, since 9x/ME are not pre-emptively multitasking,
5292 # you end up with a "frozen" computer, even though with patience
5293 # the test eventually succeeds (with a max line length of 256k).
5294 # Instead, let's just punt: use the minimum linelength reported by
5295 # all of the supported platforms: 8192 (on NT/2K/XP).
5296 lt_cv_sys_max_cmd_len=8192;
5297 ;;
5298
5299 mint*)
5300 # On MiNT this can take a long time and run out of memory.
5301 lt_cv_sys_max_cmd_len=8192;
5302 ;;
5303
5304 amigaos*)
5305 # On AmigaOS with pdksh, this test takes hours, literally.
5306 # So we just punt and use a minimum line length of 8192.
5307 lt_cv_sys_max_cmd_len=8192;
5308 ;;
5309
5310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5311 # This has been around since 386BSD, at least. Likely further.
5312 if test -x /sbin/sysctl; then
5313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5314 elif test -x /usr/sbin/sysctl; then
5315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5316 else
5317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5318 fi
5319 # And add a safety zone
5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5322 ;;
5323
5324 interix*)
5325 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5326 lt_cv_sys_max_cmd_len=196608
5327 ;;
5328
5329 osf*)
5330 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5331 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5332 # nice to cause kernel panics so lets avoid the loop below.
5333 # First set a reasonable default.
5334 lt_cv_sys_max_cmd_len=16384
5335 #
5336 if test -x /sbin/sysconfig; then
5337 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5338 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5339 esac
5340 fi
5341 ;;
5342 sco3.2v5*)
5343 lt_cv_sys_max_cmd_len=102400
5344 ;;
5345 sysv5* | sco5v6* | sysv4.2uw2*)
5346 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5347 if test -n "$kargmax"; then
5348 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5349 else
5350 lt_cv_sys_max_cmd_len=32768
5351 fi
5352 ;;
5353 *)
5354 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5355 if test -n "$lt_cv_sys_max_cmd_len"; then
5356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5358 else
5359 # Make teststring a little bigger before we do anything with it.
5360 # a 1K string should be a reasonable start.
5361 for i in 1 2 3 4 5 6 7 8 ; do
5362 teststring=$teststring$teststring
5363 done
5364 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5365 # If test is not a shell built-in, we'll probably end up computing a
5366 # maximum length that is only half of the actual maximum length, but
5367 # we can't tell.
5368 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5369 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5370 test $i != 17 # 1/2 MB should be enough
5371 do
5372 i=`expr $i + 1`
5373 teststring=$teststring$teststring
5374 done
5375 # Only check the string length outside the loop.
5376 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5377 teststring=
5378 # Add a significant safety factor because C++ compilers can tack on
5379 # massive amounts of additional arguments before passing them to the
5380 # linker. It appears as though 1/2 is a usable value.
5381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5382 fi
5383 ;;
5384 esac
5385
5386 fi
5387
5388 if test -n $lt_cv_sys_max_cmd_len ; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5390 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5393 $as_echo "none" >&6; }
5394 fi
5395 max_cmd_len=$lt_cv_sys_max_cmd_len
5396
5397
5398
5399
5400
5401
5402 : ${CP="cp -f"}
5403 : ${MV="mv -f"}
5404 : ${RM="rm -f"}
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5407 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5408 # Try some XSI features
5409 xsi_shell=no
5410 ( _lt_dummy="a/b/c"
5411 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5412 = c,a/b,, \
5413 && eval 'test $(( 1 + 1 )) -eq 2 \
5414 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5415 && xsi_shell=yes
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5417 $as_echo "$xsi_shell" >&6; }
5418
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5421 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5422 lt_shell_append=no
5423 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5424 >/dev/null 2>&1 \
5425 && lt_shell_append=yes
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5427 $as_echo "$lt_shell_append" >&6; }
5428
5429
5430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5431 lt_unset=unset
5432 else
5433 lt_unset=false
5434 fi
5435
5436
5437
5438
5439
5440 # test EBCDIC or ASCII
5441 case `echo X|tr X '\101'` in
5442 A) # ASCII based system
5443 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5444 lt_SP2NL='tr \040 \012'
5445 lt_NL2SP='tr \015\012 \040\040'
5446 ;;
5447 *) # EBCDIC based system
5448 lt_SP2NL='tr \100 \n'
5449 lt_NL2SP='tr \r\n \100\100'
5450 ;;
5451 esac
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5462 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5463 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 lt_cv_ld_reload_flag='-r'
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5469 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5470 reload_flag=$lt_cv_ld_reload_flag
5471 case $reload_flag in
5472 "" | " "*) ;;
5473 *) reload_flag=" $reload_flag" ;;
5474 esac
5475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5476 case $host_os in
5477 darwin*)
5478 if test "$GCC" = yes; then
5479 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5480 else
5481 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5482 fi
5483 ;;
5484 esac
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5496 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$OBJDUMP"; then
5503 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 OBJDUMP=$ac_cv_prog_OBJDUMP
5523 if test -n "$OBJDUMP"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5525 $as_echo "$OBJDUMP" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 fi
5533 if test -z "$ac_cv_prog_OBJDUMP"; then
5534 ac_ct_OBJDUMP=$OBJDUMP
5535 # Extract the first word of "objdump", so it can be a program name with args.
5536 set dummy objdump; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$ac_ct_OBJDUMP"; then
5543 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556 done
5557 done
5558 IFS=$as_save_IFS
5559
5560 fi
5561 fi
5562 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5563 if test -n "$ac_ct_OBJDUMP"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5565 $as_echo "$ac_ct_OBJDUMP" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571 if test "x$ac_ct_OBJDUMP" = x; then
5572 OBJDUMP="false"
5573 else
5574 case $cross_compiling:$ac_tool_warned in
5575 yes:)
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5578 ac_tool_warned=yes ;;
5579 esac
5580 OBJDUMP=$ac_ct_OBJDUMP
5581 fi
5582 else
5583 OBJDUMP="$ac_cv_prog_OBJDUMP"
5584 fi
5585
5586 test -z "$OBJDUMP" && OBJDUMP=objdump
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5597 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5598 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 lt_cv_file_magic_cmd='$MAGIC_CMD'
5602 lt_cv_file_magic_test_file=
5603 lt_cv_deplibs_check_method='unknown'
5604 # Need to set the preceding variable on all platforms that support
5605 # interlibrary dependencies.
5606 # 'none' -- dependencies not supported.
5607 # `unknown' -- same as none, but documents that we really don't know.
5608 # 'pass_all' -- all dependencies passed with no checks.
5609 # 'test_compile' -- check by making test program.
5610 # 'file_magic [[regex]]' -- check by looking for files in library path
5611 # which responds to the $file_magic_cmd with a given extended regex.
5612 # If you have `file' or equivalent on your system and you're not sure
5613 # whether `pass_all' will *always* work, you probably want this one.
5614
5615 case $host_os in
5616 aix[4-9]*)
5617 lt_cv_deplibs_check_method=pass_all
5618 ;;
5619
5620 beos*)
5621 lt_cv_deplibs_check_method=pass_all
5622 ;;
5623
5624 bsdi[45]*)
5625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5626 lt_cv_file_magic_cmd='/usr/bin/file -L'
5627 lt_cv_file_magic_test_file=/shlib/libc.so
5628 ;;
5629
5630 cygwin*)
5631 # func_win32_libid is a shell function defined in ltmain.sh
5632 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5633 lt_cv_file_magic_cmd='func_win32_libid'
5634 ;;
5635
5636 mingw* | pw32*)
5637 # Base MSYS/MinGW do not provide the 'file' command needed by
5638 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5639 # unless we find 'file', for example because we are cross-compiling.
5640 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5641 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5643 lt_cv_file_magic_cmd='func_win32_libid'
5644 else
5645 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5646 lt_cv_file_magic_cmd='$OBJDUMP -f'
5647 fi
5648 ;;
5649
5650 cegcc*)
5651 # use the weaker test based on 'objdump'. See mingw*.
5652 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5653 lt_cv_file_magic_cmd='$OBJDUMP -f'
5654 ;;
5655
5656 darwin* | rhapsody*)
5657 lt_cv_deplibs_check_method=pass_all
5658 ;;
5659
5660 freebsd* | dragonfly*)
5661 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5662 case $host_cpu in
5663 i*86 )
5664 # Not sure whether the presence of OpenBSD here was a mistake.
5665 # Let's accept both of them until this is cleared up.
5666 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5667 lt_cv_file_magic_cmd=/usr/bin/file
5668 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5669 ;;
5670 esac
5671 else
5672 lt_cv_deplibs_check_method=pass_all
5673 fi
5674 ;;
5675
5676 gnu*)
5677 lt_cv_deplibs_check_method=pass_all
5678 ;;
5679
5680 haiku*)
5681 lt_cv_deplibs_check_method=pass_all
5682 ;;
5683
5684 hpux10.20* | hpux11*)
5685 lt_cv_file_magic_cmd=/usr/bin/file
5686 case $host_cpu in
5687 ia64*)
5688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5689 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5690 ;;
5691 hppa*64*)
5692 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]'
5693 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5694 ;;
5695 *)
5696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5697 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5698 ;;
5699 esac
5700 ;;
5701
5702 interix[3-9]*)
5703 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5705 ;;
5706
5707 irix5* | irix6* | nonstopux*)
5708 case $LD in
5709 *-32|*"-32 ") libmagic=32-bit;;
5710 *-n32|*"-n32 ") libmagic=N32;;
5711 *-64|*"-64 ") libmagic=64-bit;;
5712 *) libmagic=never-match;;
5713 esac
5714 lt_cv_deplibs_check_method=pass_all
5715 ;;
5716
5717 # This must be Linux ELF.
5718 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5719 lt_cv_deplibs_check_method=pass_all
5720 ;;
5721
5722 netbsd*)
5723 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5725 else
5726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5727 fi
5728 ;;
5729
5730 newos6*)
5731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5732 lt_cv_file_magic_cmd=/usr/bin/file
5733 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5734 ;;
5735
5736 *nto* | *qnx*)
5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739
5740 openbsd*)
5741 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5743 else
5744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5745 fi
5746 ;;
5747
5748 osf3* | osf4* | osf5*)
5749 lt_cv_deplibs_check_method=pass_all
5750 ;;
5751
5752 rdos*)
5753 lt_cv_deplibs_check_method=pass_all
5754 ;;
5755
5756 solaris*)
5757 lt_cv_deplibs_check_method=pass_all
5758 ;;
5759
5760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5761 lt_cv_deplibs_check_method=pass_all
5762 ;;
5763
5764 sysv4 | sysv4.3*)
5765 case $host_vendor in
5766 motorola)
5767 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]'
5768 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5769 ;;
5770 ncr)
5771 lt_cv_deplibs_check_method=pass_all
5772 ;;
5773 sequent)
5774 lt_cv_file_magic_cmd='/bin/file'
5775 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5776 ;;
5777 sni)
5778 lt_cv_file_magic_cmd='/bin/file'
5779 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5780 lt_cv_file_magic_test_file=/lib/libc.so
5781 ;;
5782 siemens)
5783 lt_cv_deplibs_check_method=pass_all
5784 ;;
5785 pc)
5786 lt_cv_deplibs_check_method=pass_all
5787 ;;
5788 esac
5789 ;;
5790
5791 tpf*)
5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794 esac
5795
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5798 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5799 file_magic_cmd=$lt_cv_file_magic_cmd
5800 deplibs_check_method=$lt_cv_deplibs_check_method
5801 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}ar; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if test "${ac_cv_prog_AR+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -n "$AR"; then
5823 ac_cv_prog_AR="$AR" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_AR="${ac_tool_prefix}ar"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836 done
5837 done
5838 IFS=$as_save_IFS
5839
5840 fi
5841 fi
5842 AR=$ac_cv_prog_AR
5843 if test -n "$AR"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5845 $as_echo "$AR" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5849 fi
5850
5851
5852 fi
5853 if test -z "$ac_cv_prog_AR"; then
5854 ac_ct_AR=$AR
5855 # Extract the first word of "ar", so it can be a program name with args.
5856 set dummy ar; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -n "$ac_ct_AR"; then
5863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_AR="ar"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876 done
5877 done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5883 if test -n "$ac_ct_AR"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5885 $as_echo "$ac_ct_AR" >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5889 fi
5890
5891 if test "x$ac_ct_AR" = x; then
5892 AR="false"
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900 AR=$ac_ct_AR
5901 fi
5902 else
5903 AR="$ac_cv_prog_AR"
5904 fi
5905
5906 test -z "$AR" && AR=ar
5907 test -z "$AR_FLAGS" && AR_FLAGS=cru
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919 if test -n "$ac_tool_prefix"; then
5920 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5921 set dummy ${ac_tool_prefix}strip; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if test "${ac_cv_prog_STRIP+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$STRIP"; then
5928 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 STRIP=$ac_cv_prog_STRIP
5948 if test -n "$STRIP"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5950 $as_echo "$STRIP" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956
5957 fi
5958 if test -z "$ac_cv_prog_STRIP"; then
5959 ac_ct_STRIP=$STRIP
5960 # Extract the first word of "strip", so it can be a program name with args.
5961 set dummy strip; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -n "$ac_ct_STRIP"; then
5968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_ac_ct_STRIP="strip"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5988 if test -n "$ac_ct_STRIP"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5990 $as_echo "$ac_ct_STRIP" >&6; }
5991 else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996 if test "x$ac_ct_STRIP" = x; then
5997 STRIP=":"
5998 else
5999 case $cross_compiling:$ac_tool_warned in
6000 yes:)
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003 ac_tool_warned=yes ;;
6004 esac
6005 STRIP=$ac_ct_STRIP
6006 fi
6007 else
6008 STRIP="$ac_cv_prog_STRIP"
6009 fi
6010
6011 test -z "$STRIP" && STRIP=:
6012
6013
6014
6015
6016
6017
6018 if test -n "$ac_tool_prefix"; then
6019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6020 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022 $as_echo_n "checking for $ac_word... " >&6; }
6023 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 if test -n "$RANLIB"; then
6027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6028 else
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH
6031 do
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 break 2
6039 fi
6040 done
6041 done
6042 IFS=$as_save_IFS
6043
6044 fi
6045 fi
6046 RANLIB=$ac_cv_prog_RANLIB
6047 if test -n "$RANLIB"; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6049 $as_echo "$RANLIB" >&6; }
6050 else
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052 $as_echo "no" >&6; }
6053 fi
6054
6055
6056 fi
6057 if test -z "$ac_cv_prog_RANLIB"; then
6058 ac_ct_RANLIB=$RANLIB
6059 # Extract the first word of "ranlib", so it can be a program name with args.
6060 set dummy ranlib; ac_word=$2
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 $as_echo_n "checking for $ac_word... " >&6; }
6063 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 if test -n "$ac_ct_RANLIB"; then
6067 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_prog_ac_ct_RANLIB="ranlib"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080 done
6081 done
6082 IFS=$as_save_IFS
6083
6084 fi
6085 fi
6086 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6087 if test -n "$ac_ct_RANLIB"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6089 $as_echo "$ac_ct_RANLIB" >&6; }
6090 else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6093 fi
6094
6095 if test "x$ac_ct_RANLIB" = x; then
6096 RANLIB=":"
6097 else
6098 case $cross_compiling:$ac_tool_warned in
6099 yes:)
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6102 ac_tool_warned=yes ;;
6103 esac
6104 RANLIB=$ac_ct_RANLIB
6105 fi
6106 else
6107 RANLIB="$ac_cv_prog_RANLIB"
6108 fi
6109
6110 test -z "$RANLIB" && RANLIB=:
6111
6112
6113
6114
6115
6116
6117 # Determine commands to create old-style static archives.
6118 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6119 old_postinstall_cmds='chmod 644 $oldlib'
6120 old_postuninstall_cmds=
6121
6122 if test -n "$RANLIB"; then
6123 case $host_os in
6124 openbsd*)
6125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6126 ;;
6127 *)
6128 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6129 ;;
6130 esac
6131 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6132 fi
6133
6134 case $host_os in
6135 darwin*)
6136 lock_old_archive_extraction=yes ;;
6137 *)
6138 lock_old_archive_extraction=no ;;
6139 esac
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 # If no C compiler was specified, use CC.
6180 LTCC=${LTCC-"$CC"}
6181
6182 # If no C compiler flags were specified, use CFLAGS.
6183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6184
6185 # Allow CC to be a program name with arguments.
6186 compiler=$CC
6187
6188
6189 # Check for command to grab the raw symbol name followed by C symbol from nm.
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6191 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6192 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195
6196 # These are sane defaults that work on at least a few old systems.
6197 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6198
6199 # Character class describing NM global symbol codes.
6200 symcode='[BCDEGRST]'
6201
6202 # Regexp to match symbols that can be accessed directly from C.
6203 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6204
6205 # Define system-specific variables.
6206 case $host_os in
6207 aix*)
6208 symcode='[BCDT]'
6209 ;;
6210 cygwin* | mingw* | pw32* | cegcc*)
6211 symcode='[ABCDGISTW]'
6212 ;;
6213 hpux*)
6214 if test "$host_cpu" = ia64; then
6215 symcode='[ABCDEGRST]'
6216 fi
6217 ;;
6218 irix* | nonstopux*)
6219 symcode='[BCDEGRST]'
6220 ;;
6221 osf*)
6222 symcode='[BCDEGQRST]'
6223 ;;
6224 solaris*)
6225 symcode='[BDRT]'
6226 ;;
6227 sco3.2v5*)
6228 symcode='[DT]'
6229 ;;
6230 sysv4.2uw2*)
6231 symcode='[DT]'
6232 ;;
6233 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6234 symcode='[ABDT]'
6235 ;;
6236 sysv4)
6237 symcode='[DFNSTU]'
6238 ;;
6239 esac
6240
6241 # If we're using GNU nm, then use its standard symbol codes.
6242 case `$NM -V 2>&1` in
6243 *GNU* | *'with BFD'*)
6244 symcode='[ABCDGIRSTW]' ;;
6245 esac
6246
6247 # Transform an extracted symbol line into a proper C declaration.
6248 # Some systems (esp. on ia64) link data and code symbols differently,
6249 # so use this general approach.
6250 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6251
6252 # Transform an extracted symbol line into symbol name and symbol address
6253 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6254 lt_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'"
6255
6256 # Handle CRLF in mingw tool chain
6257 opt_cr=
6258 case $build_os in
6259 mingw*)
6260 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6261 ;;
6262 esac
6263
6264 # Try without a prefix underscore, then with it.
6265 for ac_symprfx in "" "_"; do
6266
6267 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6268 symxfrm="\\1 $ac_symprfx\\2 \\2"
6269
6270 # Write the raw and C identifiers.
6271 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6272 # Fake it for dumpbin and say T for any non-static function
6273 # and D for any global variable.
6274 # Also find C++ and __fastcall symbols from MSVC++,
6275 # which start with @ or ?.
6276 lt_cv_sys_global_symbol_pipe="$AWK '"\
6277 " {last_section=section; section=\$ 3};"\
6278 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6279 " \$ 0!~/External *\|/{next};"\
6280 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6281 " {if(hide[section]) next};"\
6282 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6283 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6284 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6285 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6286 " ' prfx=^$ac_symprfx"
6287 else
6288 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6289 fi
6290
6291 # Check to see that the pipe works correctly.
6292 pipe_works=no
6293
6294 rm -f conftest*
6295 cat > conftest.$ac_ext <<_LT_EOF
6296 #ifdef __cplusplus
6297 extern "C" {
6298 #endif
6299 char nm_test_var;
6300 void nm_test_func(void);
6301 void nm_test_func(void){}
6302 #ifdef __cplusplus
6303 }
6304 #endif
6305 int main(){nm_test_var='a';nm_test_func();return(0);}
6306 _LT_EOF
6307
6308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6309 (eval $ac_compile) 2>&5
6310 ac_status=$?
6311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312 test $ac_status = 0; }; then
6313 # Now try to grab the symbols.
6314 nlist=conftest.nm
6315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6316 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6317 ac_status=$?
6318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6319 test $ac_status = 0; } && test -s "$nlist"; then
6320 # Try sorting and uniquifying the output.
6321 if sort "$nlist" | uniq > "$nlist"T; then
6322 mv -f "$nlist"T "$nlist"
6323 else
6324 rm -f "$nlist"T
6325 fi
6326
6327 # Make sure that we snagged all the symbols we need.
6328 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6329 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6330 cat <<_LT_EOF > conftest.$ac_ext
6331 #ifdef __cplusplus
6332 extern "C" {
6333 #endif
6334
6335 _LT_EOF
6336 # Now generate the symbol file.
6337 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6338
6339 cat <<_LT_EOF >> conftest.$ac_ext
6340
6341 /* The mapping between symbol names and symbols. */
6342 const struct {
6343 const char *name;
6344 void *address;
6345 }
6346 lt__PROGRAM__LTX_preloaded_symbols[] =
6347 {
6348 { "@PROGRAM@", (void *) 0 },
6349 _LT_EOF
6350 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6351 cat <<\_LT_EOF >> conftest.$ac_ext
6352 {0, (void *) 0}
6353 };
6354
6355 /* This works around a problem in FreeBSD linker */
6356 #ifdef FREEBSD_WORKAROUND
6357 static const void *lt_preloaded_setup() {
6358 return lt__PROGRAM__LTX_preloaded_symbols;
6359 }
6360 #endif
6361
6362 #ifdef __cplusplus
6363 }
6364 #endif
6365 _LT_EOF
6366 # Now try linking the two files.
6367 mv conftest.$ac_objext conftstm.$ac_objext
6368 lt_save_LIBS="$LIBS"
6369 lt_save_CFLAGS="$CFLAGS"
6370 LIBS="conftstm.$ac_objext"
6371 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6373 (eval $ac_link) 2>&5
6374 ac_status=$?
6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6377 pipe_works=yes
6378 fi
6379 LIBS="$lt_save_LIBS"
6380 CFLAGS="$lt_save_CFLAGS"
6381 else
6382 echo "cannot find nm_test_func in $nlist" >&5
6383 fi
6384 else
6385 echo "cannot find nm_test_var in $nlist" >&5
6386 fi
6387 else
6388 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6389 fi
6390 else
6391 echo "$progname: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6393 fi
6394 rm -rf conftest* conftst*
6395
6396 # Do not use the global_symbol_pipe unless it works.
6397 if test "$pipe_works" = yes; then
6398 break
6399 else
6400 lt_cv_sys_global_symbol_pipe=
6401 fi
6402 done
6403
6404 fi
6405
6406 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6407 lt_cv_sys_global_symbol_to_cdecl=
6408 fi
6409 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6411 $as_echo "failed" >&6; }
6412 else
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6414 $as_echo "ok" >&6; }
6415 fi
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439 # Check whether --enable-libtool-lock was given.
6440 if test "${enable_libtool_lock+set}" = set; then :
6441 enableval=$enable_libtool_lock;
6442 fi
6443
6444 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6445
6446 # Some flags need to be propagated to the compiler or linker for good
6447 # libtool support.
6448 case $host in
6449 ia64-*-hpux*)
6450 # Find out which ABI we are using.
6451 echo 'int i;' > conftest.$ac_ext
6452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6453 (eval $ac_compile) 2>&5
6454 ac_status=$?
6455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456 test $ac_status = 0; }; then
6457 case `/usr/bin/file conftest.$ac_objext` in
6458 *ELF-32*)
6459 HPUX_IA64_MODE="32"
6460 ;;
6461 *ELF-64*)
6462 HPUX_IA64_MODE="64"
6463 ;;
6464 esac
6465 fi
6466 rm -rf conftest*
6467 ;;
6468 *-*-irix6*)
6469 # Find out which ABI we are using.
6470 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6472 (eval $ac_compile) 2>&5
6473 ac_status=$?
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; }; then
6476 if test "$lt_cv_prog_gnu_ld" = yes; then
6477 case `/usr/bin/file conftest.$ac_objext` in
6478 *32-bit*)
6479 LD="${LD-ld} -melf32bsmip"
6480 ;;
6481 *N32*)
6482 LD="${LD-ld} -melf32bmipn32"
6483 ;;
6484 *64-bit*)
6485 LD="${LD-ld} -melf64bmip"
6486 ;;
6487 esac
6488 else
6489 case `/usr/bin/file conftest.$ac_objext` in
6490 *32-bit*)
6491 LD="${LD-ld} -32"
6492 ;;
6493 *N32*)
6494 LD="${LD-ld} -n32"
6495 ;;
6496 *64-bit*)
6497 LD="${LD-ld} -64"
6498 ;;
6499 esac
6500 fi
6501 fi
6502 rm -rf conftest*
6503 ;;
6504
6505 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6506 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6507 # Find out which ABI we are using.
6508 echo 'int i;' > conftest.$ac_ext
6509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6510 (eval $ac_compile) 2>&5
6511 ac_status=$?
6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6513 test $ac_status = 0; }; then
6514 case `/usr/bin/file conftest.o` in
6515 *32-bit*)
6516 case $host in
6517 x86_64-*kfreebsd*-gnu)
6518 LD="${LD-ld} -m elf_i386_fbsd"
6519 ;;
6520 x86_64-*linux*)
6521 LD="${LD-ld} -m elf_i386"
6522 ;;
6523 ppc64-*linux*|powerpc64-*linux*)
6524 LD="${LD-ld} -m elf32ppclinux"
6525 ;;
6526 s390x-*linux*)
6527 LD="${LD-ld} -m elf_s390"
6528 ;;
6529 sparc64-*linux*)
6530 LD="${LD-ld} -m elf32_sparc"
6531 ;;
6532 esac
6533 ;;
6534 *64-bit*)
6535 case $host in
6536 x86_64-*kfreebsd*-gnu)
6537 LD="${LD-ld} -m elf_x86_64_fbsd"
6538 ;;
6539 x86_64-*linux*)
6540 LD="${LD-ld} -m elf_x86_64"
6541 ;;
6542 ppc*-*linux*|powerpc*-*linux*)
6543 LD="${LD-ld} -m elf64ppc"
6544 ;;
6545 s390*-*linux*|s390*-*tpf*)
6546 LD="${LD-ld} -m elf64_s390"
6547 ;;
6548 sparc*-*linux*)
6549 LD="${LD-ld} -m elf64_sparc"
6550 ;;
6551 esac
6552 ;;
6553 esac
6554 fi
6555 rm -rf conftest*
6556 ;;
6557
6558 *-*-sco3.2v5*)
6559 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6560 SAVE_CFLAGS="$CFLAGS"
6561 CFLAGS="$CFLAGS -belf"
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6563 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6564 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 ac_ext=c
6568 ac_cpp='$CPP $CPPFLAGS'
6569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6572
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575
6576 int
6577 main ()
6578 {
6579
6580 ;
6581 return 0;
6582 }
6583 _ACEOF
6584 if ac_fn_c_try_link "$LINENO"; then :
6585 lt_cv_cc_needs_belf=yes
6586 else
6587 lt_cv_cc_needs_belf=no
6588 fi
6589 rm -f core conftest.err conftest.$ac_objext \
6590 conftest$ac_exeext conftest.$ac_ext
6591 ac_ext=c
6592 ac_cpp='$CPP $CPPFLAGS'
6593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6596
6597 fi
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6599 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6600 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6601 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6602 CFLAGS="$SAVE_CFLAGS"
6603 fi
6604 ;;
6605 sparc*-*solaris*)
6606 # Find out which ABI we are using.
6607 echo 'int i;' > conftest.$ac_ext
6608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6609 (eval $ac_compile) 2>&5
6610 ac_status=$?
6611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6612 test $ac_status = 0; }; then
6613 case `/usr/bin/file conftest.o` in
6614 *64-bit*)
6615 case $lt_cv_prog_gnu_ld in
6616 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6617 *)
6618 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6619 LD="${LD-ld} -64"
6620 fi
6621 ;;
6622 esac
6623 ;;
6624 esac
6625 fi
6626 rm -rf conftest*
6627 ;;
6628 esac
6629
6630 need_locks="$enable_libtool_lock"
6631
6632
6633 case $host_os in
6634 rhapsody* | darwin*)
6635 if test -n "$ac_tool_prefix"; then
6636 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 if test -n "$DSYMUTIL"; then
6644 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6664 if test -n "$DSYMUTIL"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6666 $as_echo "$DSYMUTIL" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671
6672
6673 fi
6674 if test -z "$ac_cv_prog_DSYMUTIL"; then
6675 ac_ct_DSYMUTIL=$DSYMUTIL
6676 # Extract the first word of "dsymutil", so it can be a program name with args.
6677 set dummy dsymutil; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$ac_ct_DSYMUTIL"; then
6684 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6704 if test -n "$ac_ct_DSYMUTIL"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6706 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712 if test "x$ac_ct_DSYMUTIL" = x; then
6713 DSYMUTIL=":"
6714 else
6715 case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719 ac_tool_warned=yes ;;
6720 esac
6721 DSYMUTIL=$ac_ct_DSYMUTIL
6722 fi
6723 else
6724 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6725 fi
6726
6727 if test -n "$ac_tool_prefix"; then
6728 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6729 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if test -n "$NMEDIT"; then
6736 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749 done
6750 done
6751 IFS=$as_save_IFS
6752
6753 fi
6754 fi
6755 NMEDIT=$ac_cv_prog_NMEDIT
6756 if test -n "$NMEDIT"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6758 $as_echo "$NMEDIT" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764
6765 fi
6766 if test -z "$ac_cv_prog_NMEDIT"; then
6767 ac_ct_NMEDIT=$NMEDIT
6768 # Extract the first word of "nmedit", so it can be a program name with args.
6769 set dummy nmedit; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$ac_ct_NMEDIT"; then
6776 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6796 if test -n "$ac_ct_NMEDIT"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6798 $as_echo "$ac_ct_NMEDIT" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803
6804 if test "x$ac_ct_NMEDIT" = x; then
6805 NMEDIT=":"
6806 else
6807 case $cross_compiling:$ac_tool_warned in
6808 yes:)
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811 ac_tool_warned=yes ;;
6812 esac
6813 NMEDIT=$ac_ct_NMEDIT
6814 fi
6815 else
6816 NMEDIT="$ac_cv_prog_NMEDIT"
6817 fi
6818
6819 if test -n "$ac_tool_prefix"; then
6820 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6821 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if test "${ac_cv_prog_LIPO+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 if test -n "$LIPO"; then
6828 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 LIPO=$ac_cv_prog_LIPO
6848 if test -n "$LIPO"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6850 $as_echo "$LIPO" >&6; }
6851 else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856
6857 fi
6858 if test -z "$ac_cv_prog_LIPO"; then
6859 ac_ct_LIPO=$LIPO
6860 # Extract the first word of "lipo", so it can be a program name with args.
6861 set dummy lipo; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 if test -n "$ac_ct_LIPO"; then
6868 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_prog_ac_ct_LIPO="lipo"
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6884
6885 fi
6886 fi
6887 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6888 if test -n "$ac_ct_LIPO"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6890 $as_echo "$ac_ct_LIPO" >&6; }
6891 else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6894 fi
6895
6896 if test "x$ac_ct_LIPO" = x; then
6897 LIPO=":"
6898 else
6899 case $cross_compiling:$ac_tool_warned in
6900 yes:)
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6903 ac_tool_warned=yes ;;
6904 esac
6905 LIPO=$ac_ct_LIPO
6906 fi
6907 else
6908 LIPO="$ac_cv_prog_LIPO"
6909 fi
6910
6911 if test -n "$ac_tool_prefix"; then
6912 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6913 set dummy ${ac_tool_prefix}otool; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test -n "$OTOOL"; then
6920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937 fi
6938 fi
6939 OTOOL=$ac_cv_prog_OTOOL
6940 if test -n "$OTOOL"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6942 $as_echo "$OTOOL" >&6; }
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948
6949 fi
6950 if test -z "$ac_cv_prog_OTOOL"; then
6951 ac_ct_OTOOL=$OTOOL
6952 # Extract the first word of "otool", so it can be a program name with args.
6953 set dummy otool; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 if test -n "$ac_ct_OTOOL"; then
6960 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_ac_ct_OTOOL="otool"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973 done
6974 done
6975 IFS=$as_save_IFS
6976
6977 fi
6978 fi
6979 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6980 if test -n "$ac_ct_OTOOL"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6982 $as_echo "$ac_ct_OTOOL" >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987
6988 if test "x$ac_ct_OTOOL" = x; then
6989 OTOOL=":"
6990 else
6991 case $cross_compiling:$ac_tool_warned in
6992 yes:)
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995 ac_tool_warned=yes ;;
6996 esac
6997 OTOOL=$ac_ct_OTOOL
6998 fi
6999 else
7000 OTOOL="$ac_cv_prog_OTOOL"
7001 fi
7002
7003 if test -n "$ac_tool_prefix"; then
7004 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7005 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$OTOOL64"; then
7012 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 OTOOL64=$ac_cv_prog_OTOOL64
7032 if test -n "$OTOOL64"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7034 $as_echo "$OTOOL64" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040
7041 fi
7042 if test -z "$ac_cv_prog_OTOOL64"; then
7043 ac_ct_OTOOL64=$OTOOL64
7044 # Extract the first word of "otool64", so it can be a program name with args.
7045 set dummy otool64; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 if test -n "$ac_ct_OTOOL64"; then
7052 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_ac_ct_OTOOL64="otool64"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069 fi
7070 fi
7071 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7072 if test -n "$ac_ct_OTOOL64"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7074 $as_echo "$ac_ct_OTOOL64" >&6; }
7075 else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079
7080 if test "x$ac_ct_OTOOL64" = x; then
7081 OTOOL64=":"
7082 else
7083 case $cross_compiling:$ac_tool_warned in
7084 yes:)
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7087 ac_tool_warned=yes ;;
7088 esac
7089 OTOOL64=$ac_ct_OTOOL64
7090 fi
7091 else
7092 OTOOL64="$ac_cv_prog_OTOOL64"
7093 fi
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7122 $as_echo_n "checking for -single_module linker flag... " >&6; }
7123 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 lt_cv_apple_cc_single_mod=no
7127 if test -z "${LT_MULTI_MODULE}"; then
7128 # By default we will add the -single_module flag. You can override
7129 # by either setting the environment variable LT_MULTI_MODULE
7130 # non-empty at configure time, or by adding -multi_module to the
7131 # link flags.
7132 rm -rf libconftest.dylib*
7133 echo "int foo(void){return 1;}" > conftest.c
7134 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7135 -dynamiclib -Wl,-single_module conftest.c" >&5
7136 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7137 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7138 _lt_result=$?
7139 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7140 lt_cv_apple_cc_single_mod=yes
7141 else
7142 cat conftest.err >&5
7143 fi
7144 rm -rf libconftest.dylib*
7145 rm -f conftest.*
7146 fi
7147 fi
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7149 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7151 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7152 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 lt_cv_ld_exported_symbols_list=no
7156 save_LDFLAGS=$LDFLAGS
7157 echo "_main" > conftest.sym
7158 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161
7162 int
7163 main ()
7164 {
7165
7166 ;
7167 return 0;
7168 }
7169 _ACEOF
7170 if ac_fn_c_try_link "$LINENO"; then :
7171 lt_cv_ld_exported_symbols_list=yes
7172 else
7173 lt_cv_ld_exported_symbols_list=no
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext \
7176 conftest$ac_exeext conftest.$ac_ext
7177 LDFLAGS="$save_LDFLAGS"
7178
7179 fi
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7181 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7183 $as_echo_n "checking for -force_load linker flag... " >&6; }
7184 if test "${lt_cv_ld_force_load+set}" = set; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 lt_cv_ld_force_load=no
7188 cat > conftest.c << _LT_EOF
7189 int forced_loaded() { return 2;}
7190 _LT_EOF
7191 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7192 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7193 echo "$AR cru libconftest.a conftest.o" >&5
7194 $AR cru libconftest.a conftest.o 2>&5
7195 cat > conftest.c << _LT_EOF
7196 int main() { return 0;}
7197 _LT_EOF
7198 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7199 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7200 _lt_result=$?
7201 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7202 lt_cv_ld_force_load=yes
7203 else
7204 cat conftest.err >&5
7205 fi
7206 rm -f conftest.err libconftest.a conftest conftest.c
7207 rm -rf conftest.dSYM
7208
7209 fi
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7211 $as_echo "$lt_cv_ld_force_load" >&6; }
7212 case $host_os in
7213 rhapsody* | darwin1.[012])
7214 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7215 darwin1.*)
7216 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7217 darwin*) # darwin 5.x on
7218 # if running on 10.5 or later, the deployment target defaults
7219 # to the OS version, if on x86, and 10.4, the deployment
7220 # target defaults to 10.4. Don't you love it?
7221 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7222 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7223 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7224 10.[012]*)
7225 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7226 10.*)
7227 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7228 esac
7229 ;;
7230 esac
7231 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7232 _lt_dar_single_mod='$single_module'
7233 fi
7234 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7235 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7236 else
7237 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7238 fi
7239 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7240 _lt_dsymutil='~$DSYMUTIL $lib || :'
7241 else
7242 _lt_dsymutil=
7243 fi
7244 ;;
7245 esac
7246
7247 ac_ext=c
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7253 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7254 # On Suns, sometimes $CPP names a directory.
7255 if test -n "$CPP" && test -d "$CPP"; then
7256 CPP=
7257 fi
7258 if test -z "$CPP"; then
7259 if test "${ac_cv_prog_CPP+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 # Double quotes because CPP needs to be expanded
7263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7264 do
7265 ac_preproc_ok=false
7266 for ac_c_preproc_warn_flag in '' yes
7267 do
7268 # Use a header file that comes with gcc, so configuring glibc
7269 # with a fresh cross-compiler works.
7270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7271 # <limits.h> exists even on freestanding compilers.
7272 # On the NeXT, cc -E runs the code through the compiler's parser,
7273 # not just through cpp. "Syntax error" is here to catch this case.
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #ifdef __STDC__
7277 # include <limits.h>
7278 #else
7279 # include <assert.h>
7280 #endif
7281 Syntax error
7282 _ACEOF
7283 if ac_fn_c_try_cpp "$LINENO"; then :
7284
7285 else
7286 # Broken: fails on valid input.
7287 continue
7288 fi
7289 rm -f conftest.err conftest.$ac_ext
7290
7291 # OK, works on sane cases. Now check whether nonexistent headers
7292 # can be detected and how.
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 #include <ac_nonexistent.h>
7296 _ACEOF
7297 if ac_fn_c_try_cpp "$LINENO"; then :
7298 # Broken: success on invalid input.
7299 continue
7300 else
7301 # Passes both tests.
7302 ac_preproc_ok=:
7303 break
7304 fi
7305 rm -f conftest.err conftest.$ac_ext
7306
7307 done
7308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7309 rm -f conftest.err conftest.$ac_ext
7310 if $ac_preproc_ok; then :
7311 break
7312 fi
7313
7314 done
7315 ac_cv_prog_CPP=$CPP
7316
7317 fi
7318 CPP=$ac_cv_prog_CPP
7319 else
7320 ac_cv_prog_CPP=$CPP
7321 fi
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7323 $as_echo "$CPP" >&6; }
7324 ac_preproc_ok=false
7325 for ac_c_preproc_warn_flag in '' yes
7326 do
7327 # Use a header file that comes with gcc, so configuring glibc
7328 # with a fresh cross-compiler works.
7329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7330 # <limits.h> exists even on freestanding compilers.
7331 # On the NeXT, cc -E runs the code through the compiler's parser,
7332 # not just through cpp. "Syntax error" is here to catch this case.
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7335 #ifdef __STDC__
7336 # include <limits.h>
7337 #else
7338 # include <assert.h>
7339 #endif
7340 Syntax error
7341 _ACEOF
7342 if ac_fn_c_try_cpp "$LINENO"; then :
7343
7344 else
7345 # Broken: fails on valid input.
7346 continue
7347 fi
7348 rm -f conftest.err conftest.$ac_ext
7349
7350 # OK, works on sane cases. Now check whether nonexistent headers
7351 # can be detected and how.
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354 #include <ac_nonexistent.h>
7355 _ACEOF
7356 if ac_fn_c_try_cpp "$LINENO"; then :
7357 # Broken: success on invalid input.
7358 continue
7359 else
7360 # Passes both tests.
7361 ac_preproc_ok=:
7362 break
7363 fi
7364 rm -f conftest.err conftest.$ac_ext
7365
7366 done
7367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7368 rm -f conftest.err conftest.$ac_ext
7369 if $ac_preproc_ok; then :
7370
7371 else
7372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7374 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7375 See \`config.log' for more details." "$LINENO" 5; }
7376 fi
7377
7378 ac_ext=c
7379 ac_cpp='$CPP $CPPFLAGS'
7380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383
7384
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7386 $as_echo_n "checking for ANSI C header files... " >&6; }
7387 if test "${ac_cv_header_stdc+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 #include <stdlib.h>
7393 #include <stdarg.h>
7394 #include <string.h>
7395 #include <float.h>
7396
7397 int
7398 main ()
7399 {
7400
7401 ;
7402 return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"; then :
7406 ac_cv_header_stdc=yes
7407 else
7408 ac_cv_header_stdc=no
7409 fi
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411
7412 if test $ac_cv_header_stdc = yes; then
7413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 #include <string.h>
7417
7418 _ACEOF
7419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7420 $EGREP "memchr" >/dev/null 2>&1; then :
7421
7422 else
7423 ac_cv_header_stdc=no
7424 fi
7425 rm -f conftest*
7426
7427 fi
7428
7429 if test $ac_cv_header_stdc = yes; then
7430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 #include <stdlib.h>
7434
7435 _ACEOF
7436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7437 $EGREP "free" >/dev/null 2>&1; then :
7438
7439 else
7440 ac_cv_header_stdc=no
7441 fi
7442 rm -f conftest*
7443
7444 fi
7445
7446 if test $ac_cv_header_stdc = yes; then
7447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7448 if test "$cross_compiling" = yes; then :
7449 :
7450 else
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 #include <ctype.h>
7454 #include <stdlib.h>
7455 #if ((' ' & 0x0FF) == 0x020)
7456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7458 #else
7459 # define ISLOWER(c) \
7460 (('a' <= (c) && (c) <= 'i') \
7461 || ('j' <= (c) && (c) <= 'r') \
7462 || ('s' <= (c) && (c) <= 'z'))
7463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7464 #endif
7465
7466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7467 int
7468 main ()
7469 {
7470 int i;
7471 for (i = 0; i < 256; i++)
7472 if (XOR (islower (i), ISLOWER (i))
7473 || toupper (i) != TOUPPER (i))
7474 return 2;
7475 return 0;
7476 }
7477 _ACEOF
7478 if ac_fn_c_try_run "$LINENO"; then :
7479
7480 else
7481 ac_cv_header_stdc=no
7482 fi
7483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7484 conftest.$ac_objext conftest.beam conftest.$ac_ext
7485 fi
7486
7487 fi
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7490 $as_echo "$ac_cv_header_stdc" >&6; }
7491 if test $ac_cv_header_stdc = yes; then
7492
7493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7494
7495 fi
7496
7497 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7498 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7499 inttypes.h stdint.h unistd.h
7500 do :
7501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7502 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7503 "
7504 eval as_val=\$$as_ac_Header
7505 if test "x$as_val" = x""yes; then :
7506 cat >>confdefs.h <<_ACEOF
7507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7508 _ACEOF
7509
7510 fi
7511
7512 done
7513
7514
7515 for ac_header in dlfcn.h
7516 do :
7517 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7518 "
7519 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7520 cat >>confdefs.h <<_ACEOF
7521 #define HAVE_DLFCN_H 1
7522 _ACEOF
7523
7524 fi
7525
7526 done
7527
7528
7529
7530
7531
7532 # Set options
7533
7534
7535
7536 enable_dlopen=no
7537
7538
7539 enable_win32_dll=no
7540
7541
7542 # Check whether --enable-shared was given.
7543 if test "${enable_shared+set}" = set; then :
7544 enableval=$enable_shared; p=${PACKAGE-default}
7545 case $enableval in
7546 yes) enable_shared=yes ;;
7547 no) enable_shared=no ;;
7548 *)
7549 enable_shared=no
7550 # Look at the argument we got. We use all the common list separators.
7551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7552 for pkg in $enableval; do
7553 IFS="$lt_save_ifs"
7554 if test "X$pkg" = "X$p"; then
7555 enable_shared=yes
7556 fi
7557 done
7558 IFS="$lt_save_ifs"
7559 ;;
7560 esac
7561 else
7562 enable_shared=yes
7563 fi
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573 # Check whether --enable-static was given.
7574 if test "${enable_static+set}" = set; then :
7575 enableval=$enable_static; p=${PACKAGE-default}
7576 case $enableval in
7577 yes) enable_static=yes ;;
7578 no) enable_static=no ;;
7579 *)
7580 enable_static=no
7581 # Look at the argument we got. We use all the common list separators.
7582 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7583 for pkg in $enableval; do
7584 IFS="$lt_save_ifs"
7585 if test "X$pkg" = "X$p"; then
7586 enable_static=yes
7587 fi
7588 done
7589 IFS="$lt_save_ifs"
7590 ;;
7591 esac
7592 else
7593 enable_static=yes
7594 fi
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605 # Check whether --with-pic was given.
7606 if test "${with_pic+set}" = set; then :
7607 withval=$with_pic; pic_mode="$withval"
7608 else
7609 pic_mode=default
7610 fi
7611
7612
7613 test -z "$pic_mode" && pic_mode=default
7614
7615
7616
7617
7618
7619
7620
7621 # Check whether --enable-fast-install was given.
7622 if test "${enable_fast_install+set}" = set; then :
7623 enableval=$enable_fast_install; p=${PACKAGE-default}
7624 case $enableval in
7625 yes) enable_fast_install=yes ;;
7626 no) enable_fast_install=no ;;
7627 *)
7628 enable_fast_install=no
7629 # Look at the argument we got. We use all the common list separators.
7630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7631 for pkg in $enableval; do
7632 IFS="$lt_save_ifs"
7633 if test "X$pkg" = "X$p"; then
7634 enable_fast_install=yes
7635 fi
7636 done
7637 IFS="$lt_save_ifs"
7638 ;;
7639 esac
7640 else
7641 enable_fast_install=yes
7642 fi
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654 # This can be used to rebuild libtool when needed
7655 LIBTOOL_DEPS="$ltmain"
7656
7657 # Always use our own libtool.
7658 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685 test -z "$LN_S" && LN_S="ln -s"
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700 if test -n "${ZSH_VERSION+set}" ; then
7701 setopt NO_GLOB_SUBST
7702 fi
7703
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7705 $as_echo_n "checking for objdir... " >&6; }
7706 if test "${lt_cv_objdir+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 rm -f .libs 2>/dev/null
7710 mkdir .libs 2>/dev/null
7711 if test -d .libs; then
7712 lt_cv_objdir=.libs
7713 else
7714 # MS-DOS does not allow filenames that begin with a dot.
7715 lt_cv_objdir=_libs
7716 fi
7717 rmdir .libs 2>/dev/null
7718 fi
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7720 $as_echo "$lt_cv_objdir" >&6; }
7721 objdir=$lt_cv_objdir
7722
7723
7724
7725
7726
7727 cat >>confdefs.h <<_ACEOF
7728 #define LT_OBJDIR "$lt_cv_objdir/"
7729 _ACEOF
7730
7731
7732
7733
7734 case $host_os in
7735 aix3*)
7736 # AIX sometimes has problems with the GCC collect2 program. For some
7737 # reason, if we set the COLLECT_NAMES environment variable, the problems
7738 # vanish in a puff of smoke.
7739 if test "X${COLLECT_NAMES+set}" != Xset; then
7740 COLLECT_NAMES=
7741 export COLLECT_NAMES
7742 fi
7743 ;;
7744 esac
7745
7746 # Global variables:
7747 ofile=libtool
7748 can_build_shared=yes
7749
7750 # All known linkers require a `.a' archive for static linking (except MSVC,
7751 # which needs '.lib').
7752 libext=a
7753
7754 with_gnu_ld="$lt_cv_prog_gnu_ld"
7755
7756 old_CC="$CC"
7757 old_CFLAGS="$CFLAGS"
7758
7759 # Set sane defaults for various variables
7760 test -z "$CC" && CC=cc
7761 test -z "$LTCC" && LTCC=$CC
7762 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7763 test -z "$LD" && LD=ld
7764 test -z "$ac_objext" && ac_objext=o
7765
7766 for cc_temp in $compiler""; do
7767 case $cc_temp in
7768 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7769 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7770 \-*) ;;
7771 *) break;;
7772 esac
7773 done
7774 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7775
7776
7777 # Only perform the check for file, if the check method requires it
7778 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7779 case $deplibs_check_method in
7780 file_magic*)
7781 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7783 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7784 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 case $MAGIC_CMD in
7788 [\\/*] | ?:[\\/]*)
7789 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7790 ;;
7791 *)
7792 lt_save_MAGIC_CMD="$MAGIC_CMD"
7793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7794 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7795 for ac_dir in $ac_dummy; do
7796 IFS="$lt_save_ifs"
7797 test -z "$ac_dir" && ac_dir=.
7798 if test -f $ac_dir/${ac_tool_prefix}file; then
7799 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7800 if test -n "$file_magic_test_file"; then
7801 case $deplibs_check_method in
7802 "file_magic "*)
7803 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7804 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7805 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7806 $EGREP "$file_magic_regex" > /dev/null; then
7807 :
7808 else
7809 cat <<_LT_EOF 1>&2
7810
7811 *** Warning: the command libtool uses to detect shared libraries,
7812 *** $file_magic_cmd, produces output that libtool cannot recognize.
7813 *** The result is that libtool may fail to recognize shared libraries
7814 *** as such. This will affect the creation of libtool libraries that
7815 *** depend on shared libraries, but programs linked with such libtool
7816 *** libraries will work regardless of this problem. Nevertheless, you
7817 *** may want to report the problem to your system manager and/or to
7818 *** bug-libtool@gnu.org
7819
7820 _LT_EOF
7821 fi ;;
7822 esac
7823 fi
7824 break
7825 fi
7826 done
7827 IFS="$lt_save_ifs"
7828 MAGIC_CMD="$lt_save_MAGIC_CMD"
7829 ;;
7830 esac
7831 fi
7832
7833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7834 if test -n "$MAGIC_CMD"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7836 $as_echo "$MAGIC_CMD" >&6; }
7837 else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840 fi
7841
7842
7843
7844
7845
7846 if test -z "$lt_cv_path_MAGIC_CMD"; then
7847 if test -n "$ac_tool_prefix"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7849 $as_echo_n "checking for file... " >&6; }
7850 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 case $MAGIC_CMD in
7854 [\\/*] | ?:[\\/]*)
7855 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7856 ;;
7857 *)
7858 lt_save_MAGIC_CMD="$MAGIC_CMD"
7859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7860 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7861 for ac_dir in $ac_dummy; do
7862 IFS="$lt_save_ifs"
7863 test -z "$ac_dir" && ac_dir=.
7864 if test -f $ac_dir/file; then
7865 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7866 if test -n "$file_magic_test_file"; then
7867 case $deplibs_check_method in
7868 "file_magic "*)
7869 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7871 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7872 $EGREP "$file_magic_regex" > /dev/null; then
7873 :
7874 else
7875 cat <<_LT_EOF 1>&2
7876
7877 *** Warning: the command libtool uses to detect shared libraries,
7878 *** $file_magic_cmd, produces output that libtool cannot recognize.
7879 *** The result is that libtool may fail to recognize shared libraries
7880 *** as such. This will affect the creation of libtool libraries that
7881 *** depend on shared libraries, but programs linked with such libtool
7882 *** libraries will work regardless of this problem. Nevertheless, you
7883 *** may want to report the problem to your system manager and/or to
7884 *** bug-libtool@gnu.org
7885
7886 _LT_EOF
7887 fi ;;
7888 esac
7889 fi
7890 break
7891 fi
7892 done
7893 IFS="$lt_save_ifs"
7894 MAGIC_CMD="$lt_save_MAGIC_CMD"
7895 ;;
7896 esac
7897 fi
7898
7899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900 if test -n "$MAGIC_CMD"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7902 $as_echo "$MAGIC_CMD" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908
7909 else
7910 MAGIC_CMD=:
7911 fi
7912 fi
7913
7914 fi
7915 ;;
7916 esac
7917
7918 # Use C for the default configuration in the libtool script
7919
7920 lt_save_CC="$CC"
7921 ac_ext=c
7922 ac_cpp='$CPP $CPPFLAGS'
7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927
7928 # Source file extension for C test sources.
7929 ac_ext=c
7930
7931 # Object file extension for compiled C test sources.
7932 objext=o
7933 objext=$objext
7934
7935 # Code to be used in simple compile tests
7936 lt_simple_compile_test_code="int some_variable = 0;"
7937
7938 # Code to be used in simple link tests
7939 lt_simple_link_test_code='int main(){return(0);}'
7940
7941
7942
7943
7944
7945
7946
7947 # If no C compiler was specified, use CC.
7948 LTCC=${LTCC-"$CC"}
7949
7950 # If no C compiler flags were specified, use CFLAGS.
7951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7952
7953 # Allow CC to be a program name with arguments.
7954 compiler=$CC
7955
7956 # Save the default compiler, since it gets overwritten when the other
7957 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7958 compiler_DEFAULT=$CC
7959
7960 # save warnings/boilerplate of simple test code
7961 ac_outfile=conftest.$ac_objext
7962 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7963 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7964 _lt_compiler_boilerplate=`cat conftest.err`
7965 $RM conftest*
7966
7967 ac_outfile=conftest.$ac_objext
7968 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7969 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7970 _lt_linker_boilerplate=`cat conftest.err`
7971 $RM -r conftest*
7972
7973
7974 ## CAVEAT EMPTOR:
7975 ## There is no encapsulation within the following macros, do not change
7976 ## the running order or otherwise move them around unless you know exactly
7977 ## what you are doing...
7978 if test -n "$compiler"; then
7979
7980 lt_prog_compiler_no_builtin_flag=
7981
7982 if test "$GCC" = yes; then
7983 case $cc_basename in
7984 nvcc*)
7985 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7986 *)
7987 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7988 esac
7989
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7991 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7992 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 lt_cv_prog_compiler_rtti_exceptions=no
7996 ac_outfile=conftest.$ac_objext
7997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7998 lt_compiler_flag="-fno-rtti -fno-exceptions"
7999 # Insert the option either (1) after the last *FLAGS variable, or
8000 # (2) before a word containing "conftest.", or (3) at the end.
8001 # Note that $ac_compile itself does not contain backslashes and begins
8002 # with a dollar sign (not a hyphen), so the echo should work correctly.
8003 # The option is referenced via a variable to avoid confusing sed.
8004 lt_compile=`echo "$ac_compile" | $SED \
8005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8007 -e 's:$: $lt_compiler_flag:'`
8008 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8009 (eval "$lt_compile" 2>conftest.err)
8010 ac_status=$?
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 if (exit $ac_status) && test -s "$ac_outfile"; then
8014 # The compiler can only warn and ignore the option if not recognized
8015 # So say no if there are warnings other than the usual output.
8016 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8018 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8019 lt_cv_prog_compiler_rtti_exceptions=yes
8020 fi
8021 fi
8022 $RM conftest*
8023
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8026 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8027
8028 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8029 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8030 else
8031 :
8032 fi
8033
8034 fi
8035
8036
8037
8038
8039
8040
8041 lt_prog_compiler_wl=
8042 lt_prog_compiler_pic=
8043 lt_prog_compiler_static=
8044
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8046 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8047
8048 if test "$GCC" = yes; then
8049 lt_prog_compiler_wl='-Wl,'
8050 lt_prog_compiler_static='-static'
8051
8052 case $host_os in
8053 aix*)
8054 # All AIX code is PIC.
8055 if test "$host_cpu" = ia64; then
8056 # AIX 5 now supports IA64 processor
8057 lt_prog_compiler_static='-Bstatic'
8058 fi
8059 ;;
8060
8061 amigaos*)
8062 case $host_cpu in
8063 powerpc)
8064 # see comment about AmigaOS4 .so support
8065 lt_prog_compiler_pic='-fPIC'
8066 ;;
8067 m68k)
8068 # FIXME: we need at least 68020 code to build shared libraries, but
8069 # adding the `-m68020' flag to GCC prevents building anything better,
8070 # like `-m68040'.
8071 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8072 ;;
8073 esac
8074 ;;
8075
8076 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8077 # PIC is the default for these OSes.
8078 ;;
8079
8080 mingw* | cygwin* | pw32* | os2* | cegcc*)
8081 # This hack is so that the source file can tell whether it is being
8082 # built for inclusion in a dll (and should export symbols for example).
8083 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8084 # (--disable-auto-import) libraries
8085 lt_prog_compiler_pic='-DDLL_EXPORT'
8086 ;;
8087
8088 darwin* | rhapsody*)
8089 # PIC is the default on this platform
8090 # Common symbols not allowed in MH_DYLIB files
8091 lt_prog_compiler_pic='-fno-common'
8092 ;;
8093
8094 haiku*)
8095 # PIC is the default for Haiku.
8096 # The "-static" flag exists, but is broken.
8097 lt_prog_compiler_static=
8098 ;;
8099
8100 hpux*)
8101 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8102 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8103 # sets the default TLS model and affects inlining.
8104 case $host_cpu in
8105 hppa*64*)
8106 # +Z the default
8107 ;;
8108 *)
8109 lt_prog_compiler_pic='-fPIC'
8110 ;;
8111 esac
8112 ;;
8113
8114 interix[3-9]*)
8115 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8116 # Instead, we relocate shared libraries at runtime.
8117 ;;
8118
8119 msdosdjgpp*)
8120 # Just because we use GCC doesn't mean we suddenly get shared libraries
8121 # on systems that don't support them.
8122 lt_prog_compiler_can_build_shared=no
8123 enable_shared=no
8124 ;;
8125
8126 *nto* | *qnx*)
8127 # QNX uses GNU C++, but need to define -shared option too, otherwise
8128 # it will coredump.
8129 lt_prog_compiler_pic='-fPIC -shared'
8130 ;;
8131
8132 sysv4*MP*)
8133 if test -d /usr/nec; then
8134 lt_prog_compiler_pic=-Kconform_pic
8135 fi
8136 ;;
8137
8138 *)
8139 lt_prog_compiler_pic='-fPIC'
8140 ;;
8141 esac
8142
8143 case $cc_basename in
8144 nvcc*) # Cuda Compiler Driver 2.2
8145 lt_prog_compiler_wl='-Xlinker '
8146 lt_prog_compiler_pic='-Xcompiler -fPIC'
8147 ;;
8148 esac
8149 else
8150 # PORTME Check for flag to pass linker flags through the system compiler.
8151 case $host_os in
8152 aix*)
8153 lt_prog_compiler_wl='-Wl,'
8154 if test "$host_cpu" = ia64; then
8155 # AIX 5 now supports IA64 processor
8156 lt_prog_compiler_static='-Bstatic'
8157 else
8158 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8159 fi
8160 ;;
8161
8162 mingw* | cygwin* | pw32* | os2* | cegcc*)
8163 # This hack is so that the source file can tell whether it is being
8164 # built for inclusion in a dll (and should export symbols for example).
8165 lt_prog_compiler_pic='-DDLL_EXPORT'
8166 ;;
8167
8168 hpux9* | hpux10* | hpux11*)
8169 lt_prog_compiler_wl='-Wl,'
8170 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8171 # not for PA HP-UX.
8172 case $host_cpu in
8173 hppa*64*|ia64*)
8174 # +Z the default
8175 ;;
8176 *)
8177 lt_prog_compiler_pic='+Z'
8178 ;;
8179 esac
8180 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8181 lt_prog_compiler_static='${wl}-a ${wl}archive'
8182 ;;
8183
8184 irix5* | irix6* | nonstopux*)
8185 lt_prog_compiler_wl='-Wl,'
8186 # PIC (with -KPIC) is the default.
8187 lt_prog_compiler_static='-non_shared'
8188 ;;
8189
8190 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8191 case $cc_basename in
8192 # old Intel for x86_64 which still supported -KPIC.
8193 ecc*)
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_pic='-KPIC'
8196 lt_prog_compiler_static='-static'
8197 ;;
8198 # icc used to be incompatible with GCC.
8199 # ICC 10 doesn't accept -KPIC any more.
8200 icc* | ifort*)
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-fPIC'
8203 lt_prog_compiler_static='-static'
8204 ;;
8205 # Lahey Fortran 8.1.
8206 lf95*)
8207 lt_prog_compiler_wl='-Wl,'
8208 lt_prog_compiler_pic='--shared'
8209 lt_prog_compiler_static='--static'
8210 ;;
8211 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8212 # Portland Group compilers (*not* the Pentium gcc compiler,
8213 # which looks to be a dead project)
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-fpic'
8216 lt_prog_compiler_static='-Bstatic'
8217 ;;
8218 ccc*)
8219 lt_prog_compiler_wl='-Wl,'
8220 # All Alpha code is PIC.
8221 lt_prog_compiler_static='-non_shared'
8222 ;;
8223 xl* | bgxl* | bgf* | mpixl*)
8224 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8225 lt_prog_compiler_wl='-Wl,'
8226 lt_prog_compiler_pic='-qpic'
8227 lt_prog_compiler_static='-qstaticlink'
8228 ;;
8229 *)
8230 case `$CC -V 2>&1 | sed 5q` in
8231 *Sun\ F* | *Sun*Fortran*)
8232 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8233 lt_prog_compiler_pic='-KPIC'
8234 lt_prog_compiler_static='-Bstatic'
8235 lt_prog_compiler_wl=''
8236 ;;
8237 *Sun\ C*)
8238 # Sun C 5.9
8239 lt_prog_compiler_pic='-KPIC'
8240 lt_prog_compiler_static='-Bstatic'
8241 lt_prog_compiler_wl='-Wl,'
8242 ;;
8243 esac
8244 ;;
8245 esac
8246 ;;
8247
8248 newsos6)
8249 lt_prog_compiler_pic='-KPIC'
8250 lt_prog_compiler_static='-Bstatic'
8251 ;;
8252
8253 *nto* | *qnx*)
8254 # QNX uses GNU C++, but need to define -shared option too, otherwise
8255 # it will coredump.
8256 lt_prog_compiler_pic='-fPIC -shared'
8257 ;;
8258
8259 osf3* | osf4* | osf5*)
8260 lt_prog_compiler_wl='-Wl,'
8261 # All OSF/1 code is PIC.
8262 lt_prog_compiler_static='-non_shared'
8263 ;;
8264
8265 rdos*)
8266 lt_prog_compiler_static='-non_shared'
8267 ;;
8268
8269 solaris*)
8270 lt_prog_compiler_pic='-KPIC'
8271 lt_prog_compiler_static='-Bstatic'
8272 case $cc_basename in
8273 f77* | f90* | f95*)
8274 lt_prog_compiler_wl='-Qoption ld ';;
8275 *)
8276 lt_prog_compiler_wl='-Wl,';;
8277 esac
8278 ;;
8279
8280 sunos4*)
8281 lt_prog_compiler_wl='-Qoption ld '
8282 lt_prog_compiler_pic='-PIC'
8283 lt_prog_compiler_static='-Bstatic'
8284 ;;
8285
8286 sysv4 | sysv4.2uw2* | sysv4.3*)
8287 lt_prog_compiler_wl='-Wl,'
8288 lt_prog_compiler_pic='-KPIC'
8289 lt_prog_compiler_static='-Bstatic'
8290 ;;
8291
8292 sysv4*MP*)
8293 if test -d /usr/nec ;then
8294 lt_prog_compiler_pic='-Kconform_pic'
8295 lt_prog_compiler_static='-Bstatic'
8296 fi
8297 ;;
8298
8299 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-KPIC'
8302 lt_prog_compiler_static='-Bstatic'
8303 ;;
8304
8305 unicos*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_can_build_shared=no
8308 ;;
8309
8310 uts4*)
8311 lt_prog_compiler_pic='-pic'
8312 lt_prog_compiler_static='-Bstatic'
8313 ;;
8314
8315 *)
8316 lt_prog_compiler_can_build_shared=no
8317 ;;
8318 esac
8319 fi
8320
8321 case $host_os in
8322 # For platforms which do not support PIC, -DPIC is meaningless:
8323 *djgpp*)
8324 lt_prog_compiler_pic=
8325 ;;
8326 *)
8327 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8328 ;;
8329 esac
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8331 $as_echo "$lt_prog_compiler_pic" >&6; }
8332
8333
8334
8335
8336
8337
8338 #
8339 # Check to make sure the PIC flag actually works.
8340 #
8341 if test -n "$lt_prog_compiler_pic"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8343 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8344 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 lt_cv_prog_compiler_pic_works=no
8348 ac_outfile=conftest.$ac_objext
8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8351 # Insert the option either (1) after the last *FLAGS variable, or
8352 # (2) before a word containing "conftest.", or (3) at the end.
8353 # Note that $ac_compile itself does not contain backslashes and begins
8354 # with a dollar sign (not a hyphen), so the echo should work correctly.
8355 # The option is referenced via a variable to avoid confusing sed.
8356 lt_compile=`echo "$ac_compile" | $SED \
8357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359 -e 's:$: $lt_compiler_flag:'`
8360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8361 (eval "$lt_compile" 2>conftest.err)
8362 ac_status=$?
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 if (exit $ac_status) && test -s "$ac_outfile"; then
8366 # The compiler can only warn and ignore the option if not recognized
8367 # So say no if there are warnings other than the usual output.
8368 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8370 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8371 lt_cv_prog_compiler_pic_works=yes
8372 fi
8373 fi
8374 $RM conftest*
8375
8376 fi
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8378 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8379
8380 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8381 case $lt_prog_compiler_pic in
8382 "" | " "*) ;;
8383 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8384 esac
8385 else
8386 lt_prog_compiler_pic=
8387 lt_prog_compiler_can_build_shared=no
8388 fi
8389
8390 fi
8391
8392
8393
8394
8395
8396
8397 #
8398 # Check to make sure the static flag actually works.
8399 #
8400 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8402 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8403 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 lt_cv_prog_compiler_static_works=no
8407 save_LDFLAGS="$LDFLAGS"
8408 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8409 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8410 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8411 # The linker can only warn and ignore the option if not recognized
8412 # So say no if there are warnings
8413 if test -s conftest.err; then
8414 # Append any errors to the config.log.
8415 cat conftest.err 1>&5
8416 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8418 if diff conftest.exp conftest.er2 >/dev/null; then
8419 lt_cv_prog_compiler_static_works=yes
8420 fi
8421 else
8422 lt_cv_prog_compiler_static_works=yes
8423 fi
8424 fi
8425 $RM -r conftest*
8426 LDFLAGS="$save_LDFLAGS"
8427
8428 fi
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8430 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8431
8432 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8433 :
8434 else
8435 lt_prog_compiler_static=
8436 fi
8437
8438
8439
8440
8441
8442
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8445 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8446 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 lt_cv_prog_compiler_c_o=no
8450 $RM -r conftest 2>/dev/null
8451 mkdir conftest
8452 cd conftest
8453 mkdir out
8454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8455
8456 lt_compiler_flag="-o out/conftest2.$ac_objext"
8457 # Insert the option either (1) after the last *FLAGS variable, or
8458 # (2) before a word containing "conftest.", or (3) at the end.
8459 # Note that $ac_compile itself does not contain backslashes and begins
8460 # with a dollar sign (not a hyphen), so the echo should work correctly.
8461 lt_compile=`echo "$ac_compile" | $SED \
8462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464 -e 's:$: $lt_compiler_flag:'`
8465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8466 (eval "$lt_compile" 2>out/conftest.err)
8467 ac_status=$?
8468 cat out/conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8471 then
8472 # The compiler can only warn and ignore the option if not recognized
8473 # So say no if there are warnings
8474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8475 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8476 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8477 lt_cv_prog_compiler_c_o=yes
8478 fi
8479 fi
8480 chmod u+w . 2>&5
8481 $RM conftest*
8482 # SGI C++ compiler will create directory out/ii_files/ for
8483 # template instantiation
8484 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8485 $RM out/* && rmdir out
8486 cd ..
8487 $RM -r conftest
8488 $RM conftest*
8489
8490 fi
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8492 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8493
8494
8495
8496
8497
8498
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8500 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8501 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 lt_cv_prog_compiler_c_o=no
8505 $RM -r conftest 2>/dev/null
8506 mkdir conftest
8507 cd conftest
8508 mkdir out
8509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8510
8511 lt_compiler_flag="-o out/conftest2.$ac_objext"
8512 # Insert the option either (1) after the last *FLAGS variable, or
8513 # (2) before a word containing "conftest.", or (3) at the end.
8514 # Note that $ac_compile itself does not contain backslashes and begins
8515 # with a dollar sign (not a hyphen), so the echo should work correctly.
8516 lt_compile=`echo "$ac_compile" | $SED \
8517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8519 -e 's:$: $lt_compiler_flag:'`
8520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8521 (eval "$lt_compile" 2>out/conftest.err)
8522 ac_status=$?
8523 cat out/conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8526 then
8527 # The compiler can only warn and ignore the option if not recognized
8528 # So say no if there are warnings
8529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8532 lt_cv_prog_compiler_c_o=yes
8533 fi
8534 fi
8535 chmod u+w . 2>&5
8536 $RM conftest*
8537 # SGI C++ compiler will create directory out/ii_files/ for
8538 # template instantiation
8539 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8540 $RM out/* && rmdir out
8541 cd ..
8542 $RM -r conftest
8543 $RM conftest*
8544
8545 fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8547 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8548
8549
8550
8551
8552 hard_links="nottested"
8553 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8554 # do not overwrite the value of need_locks provided by the user
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8556 $as_echo_n "checking if we can lock with hard links... " >&6; }
8557 hard_links=yes
8558 $RM conftest*
8559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8560 touch conftest.a
8561 ln conftest.a conftest.b 2>&5 || hard_links=no
8562 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8564 $as_echo "$hard_links" >&6; }
8565 if test "$hard_links" = no; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8567 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8568 need_locks=warn
8569 fi
8570 else
8571 need_locks=no
8572 fi
8573
8574
8575
8576
8577
8578
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8580 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8581
8582 runpath_var=
8583 allow_undefined_flag=
8584 always_export_symbols=no
8585 archive_cmds=
8586 archive_expsym_cmds=
8587 compiler_needs_object=no
8588 enable_shared_with_static_runtimes=no
8589 export_dynamic_flag_spec=
8590 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8591 hardcode_automatic=no
8592 hardcode_direct=no
8593 hardcode_direct_absolute=no
8594 hardcode_libdir_flag_spec=
8595 hardcode_libdir_flag_spec_ld=
8596 hardcode_libdir_separator=
8597 hardcode_minus_L=no
8598 hardcode_shlibpath_var=unsupported
8599 inherit_rpath=no
8600 link_all_deplibs=unknown
8601 module_cmds=
8602 module_expsym_cmds=
8603 old_archive_from_new_cmds=
8604 old_archive_from_expsyms_cmds=
8605 thread_safe_flag_spec=
8606 whole_archive_flag_spec=
8607 # include_expsyms should be a list of space-separated symbols to be *always*
8608 # included in the symbol list
8609 include_expsyms=
8610 # exclude_expsyms can be an extended regexp of symbols to exclude
8611 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8613 # as well as any symbol that contains `d'.
8614 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8616 # platforms (ab)use it in PIC code, but their linkers get confused if
8617 # the symbol is explicitly referenced. Since portable code cannot
8618 # rely on this symbol name, it's probably fine to never include it in
8619 # preloaded symbol tables.
8620 # Exclude shared library initialization/finalization symbols.
8621 extract_expsyms_cmds=
8622
8623 case $host_os in
8624 cygwin* | mingw* | pw32* | cegcc*)
8625 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8626 # When not using gcc, we currently assume that we are using
8627 # Microsoft Visual C++.
8628 if test "$GCC" != yes; then
8629 with_gnu_ld=no
8630 fi
8631 ;;
8632 interix*)
8633 # we just hope/assume this is gcc and not c89 (= MSVC++)
8634 with_gnu_ld=yes
8635 ;;
8636 openbsd*)
8637 with_gnu_ld=no
8638 ;;
8639 esac
8640
8641 ld_shlibs=yes
8642
8643 # On some targets, GNU ld is compatible enough with the native linker
8644 # that we're better off using the native interface for both.
8645 lt_use_gnu_ld_interface=no
8646 if test "$with_gnu_ld" = yes; then
8647 case $host_os in
8648 aix*)
8649 # The AIX port of GNU ld has always aspired to compatibility
8650 # with the native linker. However, as the warning in the GNU ld
8651 # block says, versions before 2.19.5* couldn't really create working
8652 # shared libraries, regardless of the interface used.
8653 case `$LD -v 2>&1` in
8654 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8655 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8656 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8657 *)
8658 lt_use_gnu_ld_interface=yes
8659 ;;
8660 esac
8661 ;;
8662 *)
8663 lt_use_gnu_ld_interface=yes
8664 ;;
8665 esac
8666 fi
8667
8668 if test "$lt_use_gnu_ld_interface" = yes; then
8669 # If archive_cmds runs LD, not CC, wlarc should be empty
8670 wlarc='${wl}'
8671
8672 # Set some defaults for GNU ld with shared library support. These
8673 # are reset later if shared libraries are not supported. Putting them
8674 # here allows them to be overridden if necessary.
8675 runpath_var=LD_RUN_PATH
8676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8677 export_dynamic_flag_spec='${wl}--export-dynamic'
8678 # ancient GNU ld didn't support --whole-archive et. al.
8679 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8680 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8681 else
8682 whole_archive_flag_spec=
8683 fi
8684 supports_anon_versioning=no
8685 case `$LD -v 2>&1` in
8686 *GNU\ gold*) supports_anon_versioning=yes ;;
8687 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8688 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8689 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8690 *\ 2.11.*) ;; # other 2.11 versions
8691 *) supports_anon_versioning=yes ;;
8692 esac
8693
8694 # See if GNU ld supports shared libraries.
8695 case $host_os in
8696 aix[3-9]*)
8697 # On AIX/PPC, the GNU linker is very broken
8698 if test "$host_cpu" != ia64; then
8699 ld_shlibs=no
8700 cat <<_LT_EOF 1>&2
8701
8702 *** Warning: the GNU linker, at least up to release 2.19, is reported
8703 *** to be unable to reliably create shared libraries on AIX.
8704 *** Therefore, libtool is disabling shared libraries support. If you
8705 *** really care for shared libraries, you may want to install binutils
8706 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8707 *** You will then need to restart the configuration process.
8708
8709 _LT_EOF
8710 fi
8711 ;;
8712
8713 amigaos*)
8714 case $host_cpu in
8715 powerpc)
8716 # see comment about AmigaOS4 .so support
8717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718 archive_expsym_cmds=''
8719 ;;
8720 m68k)
8721 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)'
8722 hardcode_libdir_flag_spec='-L$libdir'
8723 hardcode_minus_L=yes
8724 ;;
8725 esac
8726 ;;
8727
8728 beos*)
8729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8730 allow_undefined_flag=unsupported
8731 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8732 # support --undefined. This deserves some investigation. FIXME
8733 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 else
8735 ld_shlibs=no
8736 fi
8737 ;;
8738
8739 cygwin* | mingw* | pw32* | cegcc*)
8740 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8741 # as there is no search path for DLLs.
8742 hardcode_libdir_flag_spec='-L$libdir'
8743 export_dynamic_flag_spec='${wl}--export-all-symbols'
8744 allow_undefined_flag=unsupported
8745 always_export_symbols=no
8746 enable_shared_with_static_runtimes=yes
8747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8748
8749 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8751 # If the export-symbols file already is a .def file (1st line
8752 # is EXPORTS), use it as is; otherwise, prepend...
8753 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8754 cp $export_symbols $output_objdir/$soname.def;
8755 else
8756 echo EXPORTS > $output_objdir/$soname.def;
8757 cat $export_symbols >> $output_objdir/$soname.def;
8758 fi~
8759 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8760 else
8761 ld_shlibs=no
8762 fi
8763 ;;
8764
8765 haiku*)
8766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8767 link_all_deplibs=yes
8768 ;;
8769
8770 interix[3-9]*)
8771 hardcode_direct=no
8772 hardcode_shlibpath_var=no
8773 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8774 export_dynamic_flag_spec='${wl}-E'
8775 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8776 # Instead, shared libraries are loaded at an image base (0x10000000 by
8777 # default) and relocated if they conflict, which is a slow very memory
8778 # consuming and fragmenting process. To avoid this, we pick a random,
8779 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8780 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8781 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8782 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'
8783 ;;
8784
8785 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8786 tmp_diet=no
8787 if test "$host_os" = linux-dietlibc; then
8788 case $cc_basename in
8789 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8790 esac
8791 fi
8792 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8793 && test "$tmp_diet" = no
8794 then
8795 tmp_addflag=
8796 tmp_sharedflag='-shared'
8797 case $cc_basename,$host_cpu in
8798 pgcc*) # Portland Group C compiler
8799 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'
8800 tmp_addflag=' $pic_flag'
8801 ;;
8802 pgf77* | pgf90* | pgf95* | pgfortran*)
8803 # Portland Group f77 and f90 compilers
8804 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'
8805 tmp_addflag=' $pic_flag -Mnomain' ;;
8806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8807 tmp_addflag=' -i_dynamic' ;;
8808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8809 tmp_addflag=' -i_dynamic -nofor_main' ;;
8810 ifc* | ifort*) # Intel Fortran compiler
8811 tmp_addflag=' -nofor_main' ;;
8812 lf95*) # Lahey Fortran 8.1
8813 whole_archive_flag_spec=
8814 tmp_sharedflag='--shared' ;;
8815 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8816 tmp_sharedflag='-qmkshrobj'
8817 tmp_addflag= ;;
8818 nvcc*) # Cuda Compiler Driver 2.2
8819 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'
8820 compiler_needs_object=yes
8821 ;;
8822 esac
8823 case `$CC -V 2>&1 | sed 5q` in
8824 *Sun\ C*) # Sun C 5.9
8825 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'
8826 compiler_needs_object=yes
8827 tmp_sharedflag='-G' ;;
8828 *Sun\ F*) # Sun Fortran 8.3
8829 tmp_sharedflag='-G' ;;
8830 esac
8831 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832
8833 if test "x$supports_anon_versioning" = xyes; then
8834 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8836 echo "local: *; };" >> $output_objdir/$libname.ver~
8837 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8838 fi
8839
8840 case $cc_basename in
8841 xlf* | bgf* | bgxlf* | mpixlf*)
8842 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8843 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8844 hardcode_libdir_flag_spec=
8845 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8846 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8847 if test "x$supports_anon_versioning" = xyes; then
8848 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8850 echo "local: *; };" >> $output_objdir/$libname.ver~
8851 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8852 fi
8853 ;;
8854 esac
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859
8860 netbsd*)
8861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8862 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8863 wlarc=
8864 else
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8867 fi
8868 ;;
8869
8870 solaris*)
8871 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8872 ld_shlibs=no
8873 cat <<_LT_EOF 1>&2
8874
8875 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8876 *** create shared libraries on Solaris systems. Therefore, libtool
8877 *** is disabling shared libraries support. We urge you to upgrade GNU
8878 *** binutils to release 2.9.1 or newer. Another option is to modify
8879 *** your PATH or compiler configuration so that the native linker is
8880 *** used, and then restart.
8881
8882 _LT_EOF
8883 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8886 else
8887 ld_shlibs=no
8888 fi
8889 ;;
8890
8891 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8892 case `$LD -v 2>&1` in
8893 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8894 ld_shlibs=no
8895 cat <<_LT_EOF 1>&2
8896
8897 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8898 *** reliably create shared libraries on SCO systems. Therefore, libtool
8899 *** is disabling shared libraries support. We urge you to upgrade GNU
8900 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8901 *** your PATH or compiler configuration so that the native linker is
8902 *** used, and then restart.
8903
8904 _LT_EOF
8905 ;;
8906 *)
8907 # For security reasons, it is highly recommended that you always
8908 # use absolute paths for naming shared libraries, and exclude the
8909 # DT_RUNPATH tag from executables and libraries. But doing so
8910 # requires that you compile everything twice, which is a pain.
8911 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8915 else
8916 ld_shlibs=no
8917 fi
8918 ;;
8919 esac
8920 ;;
8921
8922 sunos4*)
8923 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8924 wlarc=
8925 hardcode_direct=yes
8926 hardcode_shlibpath_var=no
8927 ;;
8928
8929 *)
8930 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8933 else
8934 ld_shlibs=no
8935 fi
8936 ;;
8937 esac
8938
8939 if test "$ld_shlibs" = no; then
8940 runpath_var=
8941 hardcode_libdir_flag_spec=
8942 export_dynamic_flag_spec=
8943 whole_archive_flag_spec=
8944 fi
8945 else
8946 # PORTME fill in a description of your system's linker (not GNU ld)
8947 case $host_os in
8948 aix3*)
8949 allow_undefined_flag=unsupported
8950 always_export_symbols=yes
8951 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'
8952 # Note: this linker hardcodes the directories in LIBPATH if there
8953 # are no directories specified by -L.
8954 hardcode_minus_L=yes
8955 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8956 # Neither direct hardcoding nor static linking is supported with a
8957 # broken collect2.
8958 hardcode_direct=unsupported
8959 fi
8960 ;;
8961
8962 aix[4-9]*)
8963 if test "$host_cpu" = ia64; then
8964 # On IA64, the linker does run time linking by default, so we don't
8965 # have to do anything special.
8966 aix_use_runtimelinking=no
8967 exp_sym_flag='-Bexport'
8968 no_entry_flag=""
8969 else
8970 # If we're using GNU nm, then we don't want the "-C" option.
8971 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8972 # Also, AIX nm treats weak defined symbols like other global
8973 # defined symbols, whereas GNU nm marks them as "W".
8974 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8975 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'
8976 else
8977 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8978 fi
8979 aix_use_runtimelinking=no
8980
8981 # Test if we are trying to use run time linking or normal
8982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8983 # need to do runtime linking.
8984 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8985 for ld_flag in $LDFLAGS; do
8986 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8987 aix_use_runtimelinking=yes
8988 break
8989 fi
8990 done
8991 ;;
8992 esac
8993
8994 exp_sym_flag='-bexport'
8995 no_entry_flag='-bnoentry'
8996 fi
8997
8998 # When large executables or shared objects are built, AIX ld can
8999 # have problems creating the table of contents. If linking a library
9000 # or program results in "error TOC overflow" add -mminimal-toc to
9001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9003
9004 archive_cmds=''
9005 hardcode_direct=yes
9006 hardcode_direct_absolute=yes
9007 hardcode_libdir_separator=':'
9008 link_all_deplibs=yes
9009 file_list_spec='${wl}-f,'
9010
9011 if test "$GCC" = yes; then
9012 case $host_os in aix4.[012]|aix4.[012].*)
9013 # We only want to do this on AIX 4.2 and lower, the check
9014 # below for broken collect2 doesn't work under 4.3+
9015 collect2name=`${CC} -print-prog-name=collect2`
9016 if test -f "$collect2name" &&
9017 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9018 then
9019 # We have reworked collect2
9020 :
9021 else
9022 # We have old collect2
9023 hardcode_direct=unsupported
9024 # It fails to find uninstalled libraries when the uninstalled
9025 # path is not listed in the libpath. Setting hardcode_minus_L
9026 # to unsupported forces relinking
9027 hardcode_minus_L=yes
9028 hardcode_libdir_flag_spec='-L$libdir'
9029 hardcode_libdir_separator=
9030 fi
9031 ;;
9032 esac
9033 shared_flag='-shared'
9034 if test "$aix_use_runtimelinking" = yes; then
9035 shared_flag="$shared_flag "'${wl}-G'
9036 fi
9037 else
9038 # not using gcc
9039 if test "$host_cpu" = ia64; then
9040 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9041 # chokes on -Wl,-G. The following line is correct:
9042 shared_flag='-G'
9043 else
9044 if test "$aix_use_runtimelinking" = yes; then
9045 shared_flag='${wl}-G'
9046 else
9047 shared_flag='${wl}-bM:SRE'
9048 fi
9049 fi
9050 fi
9051
9052 export_dynamic_flag_spec='${wl}-bexpall'
9053 # It seems that -bexpall does not export symbols beginning with
9054 # underscore (_), so it is better to generate a list of symbols to export.
9055 always_export_symbols=yes
9056 if test "$aix_use_runtimelinking" = yes; then
9057 # Warning - without using the other runtime loading flags (-brtl),
9058 # -berok will link without error, but may produce a broken library.
9059 allow_undefined_flag='-berok'
9060 # Determine the default libpath from the value encoded in an
9061 # empty executable.
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064
9065 int
9066 main ()
9067 {
9068
9069 ;
9070 return 0;
9071 }
9072 _ACEOF
9073 if ac_fn_c_try_link "$LINENO"; then :
9074
9075 lt_aix_libpath_sed='
9076 /Import File Strings/,/^$/ {
9077 /^0/ {
9078 s/^0 *\(.*\)$/\1/
9079 p
9080 }
9081 }'
9082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9083 # Check for a 64-bit object if we didn't find anything.
9084 if test -z "$aix_libpath"; then
9085 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9086 fi
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9091
9092 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9093 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"
9094 else
9095 if test "$host_cpu" = ia64; then
9096 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9097 allow_undefined_flag="-z nodefs"
9098 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"
9099 else
9100 # Determine the default libpath from the value encoded in an
9101 # empty executable.
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104
9105 int
9106 main ()
9107 {
9108
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_link "$LINENO"; then :
9114
9115 lt_aix_libpath_sed='
9116 /Import File Strings/,/^$/ {
9117 /^0/ {
9118 s/^0 *\(.*\)$/\1/
9119 p
9120 }
9121 }'
9122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9123 # Check for a 64-bit object if we didn't find anything.
9124 if test -z "$aix_libpath"; then
9125 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9126 fi
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9131
9132 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9133 # Warning - without using the other run time loading flags,
9134 # -berok will link without error, but may produce a broken library.
9135 no_undefined_flag=' ${wl}-bernotok'
9136 allow_undefined_flag=' ${wl}-berok'
9137 if test "$with_gnu_ld" = yes; then
9138 # We only use this code for GNU lds that support --whole-archive.
9139 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9140 else
9141 # Exported symbols can be pulled into shared objects from archives
9142 whole_archive_flag_spec='$convenience'
9143 fi
9144 archive_cmds_need_lc=yes
9145 # This is similar to how AIX traditionally builds its shared libraries.
9146 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'
9147 fi
9148 fi
9149 ;;
9150
9151 amigaos*)
9152 case $host_cpu in
9153 powerpc)
9154 # see comment about AmigaOS4 .so support
9155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9156 archive_expsym_cmds=''
9157 ;;
9158 m68k)
9159 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)'
9160 hardcode_libdir_flag_spec='-L$libdir'
9161 hardcode_minus_L=yes
9162 ;;
9163 esac
9164 ;;
9165
9166 bsdi[45]*)
9167 export_dynamic_flag_spec=-rdynamic
9168 ;;
9169
9170 cygwin* | mingw* | pw32* | cegcc*)
9171 # When not using gcc, we currently assume that we are using
9172 # Microsoft Visual C++.
9173 # hardcode_libdir_flag_spec is actually meaningless, as there is
9174 # no search path for DLLs.
9175 hardcode_libdir_flag_spec=' '
9176 allow_undefined_flag=unsupported
9177 # Tell ltmain to make .lib files, not .a files.
9178 libext=lib
9179 # Tell ltmain to make .dll files, not .so files.
9180 shrext_cmds=".dll"
9181 # FIXME: Setting linknames here is a bad hack.
9182 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9183 # The linker will automatically build a .lib file if we build a DLL.
9184 old_archive_from_new_cmds='true'
9185 # FIXME: Should let the user specify the lib program.
9186 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9187 fix_srcfile_path='`cygpath -w "$srcfile"`'
9188 enable_shared_with_static_runtimes=yes
9189 ;;
9190
9191 darwin* | rhapsody*)
9192
9193
9194 archive_cmds_need_lc=no
9195 hardcode_direct=no
9196 hardcode_automatic=yes
9197 hardcode_shlibpath_var=unsupported
9198 if test "$lt_cv_ld_force_load" = "yes"; then
9199 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\"`'
9200 else
9201 whole_archive_flag_spec=''
9202 fi
9203 link_all_deplibs=yes
9204 allow_undefined_flag="$_lt_dar_allow_undefined"
9205 case $cc_basename in
9206 ifort*) _lt_dar_can_shared=yes ;;
9207 *) _lt_dar_can_shared=$GCC ;;
9208 esac
9209 if test "$_lt_dar_can_shared" = "yes"; then
9210 output_verbose_link_cmd=func_echo_all
9211 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9212 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9213 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}"
9214 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}"
9215
9216 else
9217 ld_shlibs=no
9218 fi
9219
9220 ;;
9221
9222 dgux*)
9223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9224 hardcode_libdir_flag_spec='-L$libdir'
9225 hardcode_shlibpath_var=no
9226 ;;
9227
9228 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9229 # support. Future versions do this automatically, but an explicit c++rt0.o
9230 # does not break anything, and helps significantly (at the cost of a little
9231 # extra space).
9232 freebsd2.2*)
9233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9234 hardcode_libdir_flag_spec='-R$libdir'
9235 hardcode_direct=yes
9236 hardcode_shlibpath_var=no
9237 ;;
9238
9239 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9240 freebsd2.*)
9241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9242 hardcode_direct=yes
9243 hardcode_minus_L=yes
9244 hardcode_shlibpath_var=no
9245 ;;
9246
9247 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9248 freebsd* | dragonfly*)
9249 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9250 hardcode_libdir_flag_spec='-R$libdir'
9251 hardcode_direct=yes
9252 hardcode_shlibpath_var=no
9253 ;;
9254
9255 hpux9*)
9256 if test "$GCC" = yes; then
9257 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'
9258 else
9259 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'
9260 fi
9261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9262 hardcode_libdir_separator=:
9263 hardcode_direct=yes
9264
9265 # hardcode_minus_L: Not really in the search PATH,
9266 # but as the default location of the library.
9267 hardcode_minus_L=yes
9268 export_dynamic_flag_spec='${wl}-E'
9269 ;;
9270
9271 hpux10*)
9272 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9273 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9274 else
9275 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9276 fi
9277 if test "$with_gnu_ld" = no; then
9278 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9279 hardcode_libdir_flag_spec_ld='+b $libdir'
9280 hardcode_libdir_separator=:
9281 hardcode_direct=yes
9282 hardcode_direct_absolute=yes
9283 export_dynamic_flag_spec='${wl}-E'
9284 # hardcode_minus_L: Not really in the search PATH,
9285 # but as the default location of the library.
9286 hardcode_minus_L=yes
9287 fi
9288 ;;
9289
9290 hpux11*)
9291 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9292 case $host_cpu in
9293 hppa*64*)
9294 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9295 ;;
9296 ia64*)
9297 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9298 ;;
9299 *)
9300 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9301 ;;
9302 esac
9303 else
9304 case $host_cpu in
9305 hppa*64*)
9306 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9307 ;;
9308 ia64*)
9309 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9310 ;;
9311 *)
9312
9313 # Older versions of the 11.00 compiler do not understand -b yet
9314 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9316 $as_echo_n "checking if $CC understands -b... " >&6; }
9317 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 lt_cv_prog_compiler__b=no
9321 save_LDFLAGS="$LDFLAGS"
9322 LDFLAGS="$LDFLAGS -b"
9323 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9324 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9325 # The linker can only warn and ignore the option if not recognized
9326 # So say no if there are warnings
9327 if test -s conftest.err; then
9328 # Append any errors to the config.log.
9329 cat conftest.err 1>&5
9330 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9332 if diff conftest.exp conftest.er2 >/dev/null; then
9333 lt_cv_prog_compiler__b=yes
9334 fi
9335 else
9336 lt_cv_prog_compiler__b=yes
9337 fi
9338 fi
9339 $RM -r conftest*
9340 LDFLAGS="$save_LDFLAGS"
9341
9342 fi
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9344 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9345
9346 if test x"$lt_cv_prog_compiler__b" = xyes; then
9347 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9348 else
9349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9350 fi
9351
9352 ;;
9353 esac
9354 fi
9355 if test "$with_gnu_ld" = no; then
9356 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9357 hardcode_libdir_separator=:
9358
9359 case $host_cpu in
9360 hppa*64*|ia64*)
9361 hardcode_direct=no
9362 hardcode_shlibpath_var=no
9363 ;;
9364 *)
9365 hardcode_direct=yes
9366 hardcode_direct_absolute=yes
9367 export_dynamic_flag_spec='${wl}-E'
9368
9369 # hardcode_minus_L: Not really in the search PATH,
9370 # but as the default location of the library.
9371 hardcode_minus_L=yes
9372 ;;
9373 esac
9374 fi
9375 ;;
9376
9377 irix5* | irix6* | nonstopux*)
9378 if test "$GCC" = yes; then
9379 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'
9380 # Try to use the -exported_symbol ld option, if it does not
9381 # work, assume that -exports_file does not work either and
9382 # implicitly export all symbols.
9383 save_LDFLAGS="$LDFLAGS"
9384 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 int foo(void) {}
9388 _ACEOF
9389 if ac_fn_c_try_link "$LINENO"; then :
9390 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'
9391
9392 fi
9393 rm -f core conftest.err conftest.$ac_objext \
9394 conftest$ac_exeext conftest.$ac_ext
9395 LDFLAGS="$save_LDFLAGS"
9396 else
9397 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'
9398 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'
9399 fi
9400 archive_cmds_need_lc='no'
9401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402 hardcode_libdir_separator=:
9403 inherit_rpath=yes
9404 link_all_deplibs=yes
9405 ;;
9406
9407 netbsd*)
9408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9410 else
9411 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9412 fi
9413 hardcode_libdir_flag_spec='-R$libdir'
9414 hardcode_direct=yes
9415 hardcode_shlibpath_var=no
9416 ;;
9417
9418 newsos6)
9419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9420 hardcode_direct=yes
9421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9422 hardcode_libdir_separator=:
9423 hardcode_shlibpath_var=no
9424 ;;
9425
9426 *nto* | *qnx*)
9427 ;;
9428
9429 openbsd*)
9430 if test -f /usr/libexec/ld.so; then
9431 hardcode_direct=yes
9432 hardcode_shlibpath_var=no
9433 hardcode_direct_absolute=yes
9434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9435 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9436 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9437 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9438 export_dynamic_flag_spec='${wl}-E'
9439 else
9440 case $host_os in
9441 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9443 hardcode_libdir_flag_spec='-R$libdir'
9444 ;;
9445 *)
9446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9447 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9448 ;;
9449 esac
9450 fi
9451 else
9452 ld_shlibs=no
9453 fi
9454 ;;
9455
9456 os2*)
9457 hardcode_libdir_flag_spec='-L$libdir'
9458 hardcode_minus_L=yes
9459 allow_undefined_flag=unsupported
9460 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'
9461 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9462 ;;
9463
9464 osf3*)
9465 if test "$GCC" = yes; then
9466 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9467 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'
9468 else
9469 allow_undefined_flag=' -expect_unresolved \*'
9470 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'
9471 fi
9472 archive_cmds_need_lc='no'
9473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474 hardcode_libdir_separator=:
9475 ;;
9476
9477 osf4* | osf5*) # as osf3* with the addition of -msym flag
9478 if test "$GCC" = yes; then
9479 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9480 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'
9481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9482 else
9483 allow_undefined_flag=' -expect_unresolved \*'
9484 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'
9485 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~
9486 $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'
9487
9488 # Both c and cxx compiler support -rpath directly
9489 hardcode_libdir_flag_spec='-rpath $libdir'
9490 fi
9491 archive_cmds_need_lc='no'
9492 hardcode_libdir_separator=:
9493 ;;
9494
9495 solaris*)
9496 no_undefined_flag=' -z defs'
9497 if test "$GCC" = yes; then
9498 wlarc='${wl}'
9499 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9500 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9501 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9502 else
9503 case `$CC -V 2>&1` in
9504 *"Compilers 5.0"*)
9505 wlarc=''
9506 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9508 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9509 ;;
9510 *)
9511 wlarc='${wl}'
9512 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9513 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9514 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9515 ;;
9516 esac
9517 fi
9518 hardcode_libdir_flag_spec='-R$libdir'
9519 hardcode_shlibpath_var=no
9520 case $host_os in
9521 solaris2.[0-5] | solaris2.[0-5].*) ;;
9522 *)
9523 # The compiler driver will combine and reorder linker options,
9524 # but understands `-z linker_flag'. GCC discards it without `$wl',
9525 # but is careful enough not to reorder.
9526 # Supported since Solaris 2.6 (maybe 2.5.1?)
9527 if test "$GCC" = yes; then
9528 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9529 else
9530 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9531 fi
9532 ;;
9533 esac
9534 link_all_deplibs=yes
9535 ;;
9536
9537 sunos4*)
9538 if test "x$host_vendor" = xsequent; then
9539 # Use $CC to link under sequent, because it throws in some extra .o
9540 # files that make .init and .fini sections work.
9541 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9542 else
9543 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9544 fi
9545 hardcode_libdir_flag_spec='-L$libdir'
9546 hardcode_direct=yes
9547 hardcode_minus_L=yes
9548 hardcode_shlibpath_var=no
9549 ;;
9550
9551 sysv4)
9552 case $host_vendor in
9553 sni)
9554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9555 hardcode_direct=yes # is this really true???
9556 ;;
9557 siemens)
9558 ## LD is ld it makes a PLAMLIB
9559 ## CC just makes a GrossModule.
9560 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9561 reload_cmds='$CC -r -o $output$reload_objs'
9562 hardcode_direct=no
9563 ;;
9564 motorola)
9565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9567 ;;
9568 esac
9569 runpath_var='LD_RUN_PATH'
9570 hardcode_shlibpath_var=no
9571 ;;
9572
9573 sysv4.3*)
9574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575 hardcode_shlibpath_var=no
9576 export_dynamic_flag_spec='-Bexport'
9577 ;;
9578
9579 sysv4*MP*)
9580 if test -d /usr/nec; then
9581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9582 hardcode_shlibpath_var=no
9583 runpath_var=LD_RUN_PATH
9584 hardcode_runpath_var=yes
9585 ld_shlibs=yes
9586 fi
9587 ;;
9588
9589 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9590 no_undefined_flag='${wl}-z,text'
9591 archive_cmds_need_lc=no
9592 hardcode_shlibpath_var=no
9593 runpath_var='LD_RUN_PATH'
9594
9595 if test "$GCC" = yes; then
9596 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9598 else
9599 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9600 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9601 fi
9602 ;;
9603
9604 sysv5* | sco3.2v5* | sco5v6*)
9605 # Note: We can NOT use -z defs as we might desire, because we do not
9606 # link with -lc, and that would cause any symbols used from libc to
9607 # always be unresolved, which means just about no library would
9608 # ever link correctly. If we're not using GNU ld we use -z text
9609 # though, which does catch some bad symbols but isn't as heavy-handed
9610 # as -z defs.
9611 no_undefined_flag='${wl}-z,text'
9612 allow_undefined_flag='${wl}-z,nodefs'
9613 archive_cmds_need_lc=no
9614 hardcode_shlibpath_var=no
9615 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9616 hardcode_libdir_separator=':'
9617 link_all_deplibs=yes
9618 export_dynamic_flag_spec='${wl}-Bexport'
9619 runpath_var='LD_RUN_PATH'
9620
9621 if test "$GCC" = yes; then
9622 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9624 else
9625 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9626 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9627 fi
9628 ;;
9629
9630 uts4*)
9631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632 hardcode_libdir_flag_spec='-L$libdir'
9633 hardcode_shlibpath_var=no
9634 ;;
9635
9636 *)
9637 ld_shlibs=no
9638 ;;
9639 esac
9640
9641 if test x$host_vendor = xsni; then
9642 case $host in
9643 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9644 export_dynamic_flag_spec='${wl}-Blargedynsym'
9645 ;;
9646 esac
9647 fi
9648 fi
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9651 $as_echo "$ld_shlibs" >&6; }
9652 test "$ld_shlibs" = no && can_build_shared=no
9653
9654 with_gnu_ld=$with_gnu_ld
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670 #
9671 # Do we need to explicitly link libc?
9672 #
9673 case "x$archive_cmds_need_lc" in
9674 x|xyes)
9675 # Assume -lc should be added
9676 archive_cmds_need_lc=yes
9677
9678 if test "$enable_shared" = yes && test "$GCC" = yes; then
9679 case $archive_cmds in
9680 *'~'*)
9681 # FIXME: we may have to deal with multi-command sequences.
9682 ;;
9683 '$CC '*)
9684 # Test whether the compiler implicitly links with -lc since on some
9685 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9686 # to ld, don't add -lc before -lgcc.
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9688 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9689 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 $RM conftest*
9693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9694
9695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9696 (eval $ac_compile) 2>&5
9697 ac_status=$?
9698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9699 test $ac_status = 0; } 2>conftest.err; then
9700 soname=conftest
9701 lib=conftest
9702 libobjs=conftest.$ac_objext
9703 deplibs=
9704 wl=$lt_prog_compiler_wl
9705 pic_flag=$lt_prog_compiler_pic
9706 compiler_flags=-v
9707 linker_flags=-v
9708 verstring=
9709 output_objdir=.
9710 libname=conftest
9711 lt_save_allow_undefined_flag=$allow_undefined_flag
9712 allow_undefined_flag=
9713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9714 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9715 ac_status=$?
9716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9717 test $ac_status = 0; }
9718 then
9719 lt_cv_archive_cmds_need_lc=no
9720 else
9721 lt_cv_archive_cmds_need_lc=yes
9722 fi
9723 allow_undefined_flag=$lt_save_allow_undefined_flag
9724 else
9725 cat conftest.err 1>&5
9726 fi
9727 $RM conftest*
9728
9729 fi
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9731 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9732 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9733 ;;
9734 esac
9735 fi
9736 ;;
9737 esac
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9896 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9897
9898 if test "$GCC" = yes; then
9899 case $host_os in
9900 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9901 *) lt_awk_arg="/^libraries:/" ;;
9902 esac
9903 case $host_os in
9904 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9905 *) lt_sed_strip_eq="s,=/,/,g" ;;
9906 esac
9907 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9908 case $lt_search_path_spec in
9909 *\;*)
9910 # if the path contains ";" then we assume it to be the separator
9911 # otherwise default to the standard path separator (i.e. ":") - it is
9912 # assumed that no part of a normal pathname contains ";" but that should
9913 # okay in the real world where ";" in dirpaths is itself problematic.
9914 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9915 ;;
9916 *)
9917 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9918 ;;
9919 esac
9920 # Ok, now we have the path, separated by spaces, we can step through it
9921 # and add multilib dir if necessary.
9922 lt_tmp_lt_search_path_spec=
9923 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9924 for lt_sys_path in $lt_search_path_spec; do
9925 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9926 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9927 else
9928 test -d "$lt_sys_path" && \
9929 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9930 fi
9931 done
9932 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9933 BEGIN {RS=" "; FS="/|\n";} {
9934 lt_foo="";
9935 lt_count=0;
9936 for (lt_i = NF; lt_i > 0; lt_i--) {
9937 if ($lt_i != "" && $lt_i != ".") {
9938 if ($lt_i == "..") {
9939 lt_count++;
9940 } else {
9941 if (lt_count == 0) {
9942 lt_foo="/" $lt_i lt_foo;
9943 } else {
9944 lt_count--;
9945 }
9946 }
9947 }
9948 }
9949 if (lt_foo != "") { lt_freq[lt_foo]++; }
9950 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9951 }'`
9952 # AWK program above erroneously prepends '/' to C:/dos/paths
9953 # for these hosts.
9954 case $host_os in
9955 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9956 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9957 esac
9958 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9959 else
9960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9961 fi
9962 library_names_spec=
9963 libname_spec='lib$name'
9964 soname_spec=
9965 shrext_cmds=".so"
9966 postinstall_cmds=
9967 postuninstall_cmds=
9968 finish_cmds=
9969 finish_eval=
9970 shlibpath_var=
9971 shlibpath_overrides_runpath=unknown
9972 version_type=none
9973 dynamic_linker="$host_os ld.so"
9974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9975 need_lib_prefix=unknown
9976 hardcode_into_libs=no
9977
9978 # when you set need_version to no, make sure it does not cause -set_version
9979 # flags to be left without arguments
9980 need_version=unknown
9981
9982 case $host_os in
9983 aix3*)
9984 version_type=linux
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9986 shlibpath_var=LIBPATH
9987
9988 # AIX 3 has no versioning support, so we append a major version to the name.
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 ;;
9991
9992 aix[4-9]*)
9993 version_type=linux
9994 need_lib_prefix=no
9995 need_version=no
9996 hardcode_into_libs=yes
9997 if test "$host_cpu" = ia64; then
9998 # AIX 5 supports IA64
9999 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 else
10002 # With GCC up to 2.95.x, collect2 would create an import file
10003 # for dependence libraries. The import file would start with
10004 # the line `#! .'. This would cause the generated library to
10005 # depend on `.', always an invalid library. This was fixed in
10006 # development snapshots of GCC prior to 3.0.
10007 case $host_os in
10008 aix4 | aix4.[01] | aix4.[01].*)
10009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10010 echo ' yes '
10011 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10012 :
10013 else
10014 can_build_shared=no
10015 fi
10016 ;;
10017 esac
10018 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10019 # soname into executable. Probably we can add versioning support to
10020 # collect2, so additional links can be useful in future.
10021 if test "$aix_use_runtimelinking" = yes; then
10022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10023 # instead of lib<name>.a to let people know that these are not
10024 # typical AIX shared libraries.
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10026 else
10027 # We preserve .a as extension for shared libraries through AIX4.2
10028 # and later when we are not doing run time linking.
10029 library_names_spec='${libname}${release}.a $libname.a'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 fi
10032 shlibpath_var=LIBPATH
10033 fi
10034 ;;
10035
10036 amigaos*)
10037 case $host_cpu in
10038 powerpc)
10039 # Since July 2007 AmigaOS4 officially supports .so libraries.
10040 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042 ;;
10043 m68k)
10044 library_names_spec='$libname.ixlibrary $libname.a'
10045 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10046 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'
10047 ;;
10048 esac
10049 ;;
10050
10051 beos*)
10052 library_names_spec='${libname}${shared_ext}'
10053 dynamic_linker="$host_os ld.so"
10054 shlibpath_var=LIBRARY_PATH
10055 ;;
10056
10057 bsdi[45]*)
10058 version_type=linux
10059 need_version=no
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10065 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10066 # the default ld.so.conf also contains /usr/contrib/lib and
10067 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10068 # libtool to hard-code these into programs
10069 ;;
10070
10071 cygwin* | mingw* | pw32* | cegcc*)
10072 version_type=windows
10073 shrext_cmds=".dll"
10074 need_version=no
10075 need_lib_prefix=no
10076
10077 case $GCC,$host_os in
10078 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10079 library_names_spec='$libname.dll.a'
10080 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10081 postinstall_cmds='base_file=`basename \${file}`~
10082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10083 dldir=$destdir/`dirname \$dlpath`~
10084 test -d \$dldir || mkdir -p \$dldir~
10085 $install_prog $dir/$dlname \$dldir/$dlname~
10086 chmod a+x \$dldir/$dlname~
10087 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10088 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10089 fi'
10090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10091 dlpath=$dir/\$dldll~
10092 $RM \$dlpath'
10093 shlibpath_overrides_runpath=yes
10094
10095 case $host_os in
10096 cygwin*)
10097 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10098 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10099
10100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10101 ;;
10102 mingw* | cegcc*)
10103 # MinGW DLLs use traditional 'lib' prefix
10104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10105 ;;
10106 pw32*)
10107 # pw32 DLLs use 'pw' prefix rather than 'lib'
10108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10109 ;;
10110 esac
10111 ;;
10112
10113 *)
10114 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10115 ;;
10116 esac
10117 dynamic_linker='Win32 ld.exe'
10118 # FIXME: first we should search . and the directory the executable is in
10119 shlibpath_var=PATH
10120 ;;
10121
10122 darwin* | rhapsody*)
10123 dynamic_linker="$host_os dyld"
10124 version_type=darwin
10125 need_lib_prefix=no
10126 need_version=no
10127 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10128 soname_spec='${libname}${release}${major}$shared_ext'
10129 shlibpath_overrides_runpath=yes
10130 shlibpath_var=DYLD_LIBRARY_PATH
10131 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10132
10133 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10134 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10135 ;;
10136
10137 dgux*)
10138 version_type=linux
10139 need_lib_prefix=no
10140 need_version=no
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 ;;
10145
10146 freebsd* | dragonfly*)
10147 # DragonFly does not have aout. When/if they implement a new
10148 # versioning mechanism, adjust this.
10149 if test -x /usr/bin/objformat; then
10150 objformat=`/usr/bin/objformat`
10151 else
10152 case $host_os in
10153 freebsd[23].*) objformat=aout ;;
10154 *) objformat=elf ;;
10155 esac
10156 fi
10157 version_type=freebsd-$objformat
10158 case $version_type in
10159 freebsd-elf*)
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10161 need_version=no
10162 need_lib_prefix=no
10163 ;;
10164 freebsd-*)
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10166 need_version=yes
10167 ;;
10168 esac
10169 shlibpath_var=LD_LIBRARY_PATH
10170 case $host_os in
10171 freebsd2.*)
10172 shlibpath_overrides_runpath=yes
10173 ;;
10174 freebsd3.[01]* | freebsdelf3.[01]*)
10175 shlibpath_overrides_runpath=yes
10176 hardcode_into_libs=yes
10177 ;;
10178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10180 shlibpath_overrides_runpath=no
10181 hardcode_into_libs=yes
10182 ;;
10183 *) # from 4.6 on, and DragonFly
10184 shlibpath_overrides_runpath=yes
10185 hardcode_into_libs=yes
10186 ;;
10187 esac
10188 ;;
10189
10190 gnu*)
10191 version_type=linux
10192 need_lib_prefix=no
10193 need_version=no
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 hardcode_into_libs=yes
10198 ;;
10199
10200 haiku*)
10201 version_type=linux
10202 need_lib_prefix=no
10203 need_version=no
10204 dynamic_linker="$host_os runtime_loader"
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 shlibpath_var=LIBRARY_PATH
10208 shlibpath_overrides_runpath=yes
10209 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10210 hardcode_into_libs=yes
10211 ;;
10212
10213 hpux9* | hpux10* | hpux11*)
10214 # Give a soname corresponding to the major version so that dld.sl refuses to
10215 # link against other versions.
10216 version_type=sunos
10217 need_lib_prefix=no
10218 need_version=no
10219 case $host_cpu in
10220 ia64*)
10221 shrext_cmds='.so'
10222 hardcode_into_libs=yes
10223 dynamic_linker="$host_os dld.so"
10224 shlibpath_var=LD_LIBRARY_PATH
10225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 if test "X$HPUX_IA64_MODE" = X32; then
10229 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10230 else
10231 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10232 fi
10233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10234 ;;
10235 hppa*64*)
10236 shrext_cmds='.sl'
10237 hardcode_into_libs=yes
10238 dynamic_linker="$host_os dld.sl"
10239 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10245 ;;
10246 *)
10247 shrext_cmds='.sl'
10248 dynamic_linker="$host_os dld.sl"
10249 shlibpath_var=SHLIB_PATH
10250 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 ;;
10254 esac
10255 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10256 postinstall_cmds='chmod 555 $lib'
10257 # or fails outright, so override atomically:
10258 install_override_mode=555
10259 ;;
10260
10261 interix[3-9]*)
10262 version_type=linux
10263 need_lib_prefix=no
10264 need_version=no
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath=no
10270 hardcode_into_libs=yes
10271 ;;
10272
10273 irix5* | irix6* | nonstopux*)
10274 case $host_os in
10275 nonstopux*) version_type=nonstopux ;;
10276 *)
10277 if test "$lt_cv_prog_gnu_ld" = yes; then
10278 version_type=linux
10279 else
10280 version_type=irix
10281 fi ;;
10282 esac
10283 need_lib_prefix=no
10284 need_version=no
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10287 case $host_os in
10288 irix5* | nonstopux*)
10289 libsuff= shlibsuff=
10290 ;;
10291 *)
10292 case $LD in # libtool.m4 will add one of these switches to LD
10293 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10294 libsuff= shlibsuff= libmagic=32-bit;;
10295 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10296 libsuff=32 shlibsuff=N32 libmagic=N32;;
10297 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10298 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10299 *) libsuff= shlibsuff= libmagic=never-match;;
10300 esac
10301 ;;
10302 esac
10303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10304 shlibpath_overrides_runpath=no
10305 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10306 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10307 hardcode_into_libs=yes
10308 ;;
10309
10310 # No shared lib support for Linux oldld, aout, or coff.
10311 linux*oldld* | linux*aout* | linux*coff*)
10312 dynamic_linker=no
10313 ;;
10314
10315 # This must be Linux ELF.
10316 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10317 version_type=linux
10318 need_lib_prefix=no
10319 need_version=no
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321 soname_spec='${libname}${release}${shared_ext}$major'
10322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=no
10325
10326 # Some binutils ld are patched to set DT_RUNPATH
10327 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 lt_cv_shlibpath_overrides_runpath=no
10331 save_LDFLAGS=$LDFLAGS
10332 save_libdir=$libdir
10333 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10334 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336 /* end confdefs.h. */
10337
10338 int
10339 main ()
10340 {
10341
10342 ;
10343 return 0;
10344 }
10345 _ACEOF
10346 if ac_fn_c_try_link "$LINENO"; then :
10347 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10348 lt_cv_shlibpath_overrides_runpath=yes
10349 fi
10350 fi
10351 rm -f core conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LDFLAGS=$save_LDFLAGS
10354 libdir=$save_libdir
10355
10356 fi
10357
10358 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10359
10360 # This implies no fast_install, which is unacceptable.
10361 # Some rework will be needed to allow for fast_install
10362 # before this can be enabled.
10363 hardcode_into_libs=yes
10364
10365 # Append ld.so.conf contents to the search path
10366 if test -f /etc/ld.so.conf; then
10367 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' ' '`
10368 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10369 fi
10370
10371 # We used to test for /lib/ld.so.1 and disable shared libraries on
10372 # powerpc, because MkLinux only supported shared libraries with the
10373 # GNU dynamic linker. Since this was broken with cross compilers,
10374 # most powerpc-linux boxes support dynamic linking these days and
10375 # people can always --disable-shared, the test was removed, and we
10376 # assume the GNU/Linux dynamic linker is in use.
10377 dynamic_linker='GNU/Linux ld.so'
10378 ;;
10379
10380 netbsd*)
10381 version_type=sunos
10382 need_lib_prefix=no
10383 need_version=no
10384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10387 dynamic_linker='NetBSD (a.out) ld.so'
10388 else
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 dynamic_linker='NetBSD ld.elf_so'
10392 fi
10393 shlibpath_var=LD_LIBRARY_PATH
10394 shlibpath_overrides_runpath=yes
10395 hardcode_into_libs=yes
10396 ;;
10397
10398 newsos6)
10399 version_type=linux
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 shlibpath_overrides_runpath=yes
10403 ;;
10404
10405 *nto* | *qnx*)
10406 version_type=qnx
10407 need_lib_prefix=no
10408 need_version=no
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 shlibpath_overrides_runpath=no
10413 hardcode_into_libs=yes
10414 dynamic_linker='ldqnx.so'
10415 ;;
10416
10417 openbsd*)
10418 version_type=sunos
10419 sys_lib_dlsearch_path_spec="/usr/lib"
10420 need_lib_prefix=no
10421 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10422 case $host_os in
10423 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10424 *) need_version=no ;;
10425 esac
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10430 case $host_os in
10431 openbsd2.[89] | openbsd2.[89].*)
10432 shlibpath_overrides_runpath=no
10433 ;;
10434 *)
10435 shlibpath_overrides_runpath=yes
10436 ;;
10437 esac
10438 else
10439 shlibpath_overrides_runpath=yes
10440 fi
10441 ;;
10442
10443 os2*)
10444 libname_spec='$name'
10445 shrext_cmds=".dll"
10446 need_lib_prefix=no
10447 library_names_spec='$libname${shared_ext} $libname.a'
10448 dynamic_linker='OS/2 ld.exe'
10449 shlibpath_var=LIBPATH
10450 ;;
10451
10452 osf3* | osf4* | osf5*)
10453 version_type=osf
10454 need_lib_prefix=no
10455 need_version=no
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10460 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10461 ;;
10462
10463 rdos*)
10464 dynamic_linker=no
10465 ;;
10466
10467 solaris*)
10468 version_type=linux
10469 need_lib_prefix=no
10470 need_version=no
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472 soname_spec='${libname}${release}${shared_ext}$major'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=yes
10475 hardcode_into_libs=yes
10476 # ldd complains unless libraries are executable
10477 postinstall_cmds='chmod +x $lib'
10478 ;;
10479
10480 sunos4*)
10481 version_type=sunos
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 shlibpath_overrides_runpath=yes
10486 if test "$with_gnu_ld" = yes; then
10487 need_lib_prefix=no
10488 fi
10489 need_version=yes
10490 ;;
10491
10492 sysv4 | sysv4.3*)
10493 version_type=linux
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 case $host_vendor in
10498 sni)
10499 shlibpath_overrides_runpath=no
10500 need_lib_prefix=no
10501 runpath_var=LD_RUN_PATH
10502 ;;
10503 siemens)
10504 need_lib_prefix=no
10505 ;;
10506 motorola)
10507 need_lib_prefix=no
10508 need_version=no
10509 shlibpath_overrides_runpath=no
10510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10511 ;;
10512 esac
10513 ;;
10514
10515 sysv4*MP*)
10516 if test -d /usr/nec ;then
10517 version_type=linux
10518 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10519 soname_spec='$libname${shared_ext}.$major'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 fi
10522 ;;
10523
10524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10525 version_type=freebsd-elf
10526 need_lib_prefix=no
10527 need_version=no
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10529 soname_spec='${libname}${release}${shared_ext}$major'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=yes
10532 hardcode_into_libs=yes
10533 if test "$with_gnu_ld" = yes; then
10534 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10535 else
10536 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10537 case $host_os in
10538 sco3.2v5*)
10539 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10540 ;;
10541 esac
10542 fi
10543 sys_lib_dlsearch_path_spec='/usr/lib'
10544 ;;
10545
10546 tpf*)
10547 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10548 version_type=linux
10549 need_lib_prefix=no
10550 need_version=no
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 shlibpath_overrides_runpath=no
10554 hardcode_into_libs=yes
10555 ;;
10556
10557 uts4*)
10558 version_type=linux
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 ;;
10563
10564 *)
10565 dynamic_linker=no
10566 ;;
10567 esac
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10569 $as_echo "$dynamic_linker" >&6; }
10570 test "$dynamic_linker" = no && can_build_shared=no
10571
10572 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10573 if test "$GCC" = yes; then
10574 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10575 fi
10576
10577 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10578 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10579 fi
10580 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10581 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10582 fi
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10676 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10677 hardcode_action=
10678 if test -n "$hardcode_libdir_flag_spec" ||
10679 test -n "$runpath_var" ||
10680 test "X$hardcode_automatic" = "Xyes" ; then
10681
10682 # We can hardcode non-existent directories.
10683 if test "$hardcode_direct" != no &&
10684 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10685 # have to relink, otherwise we might link with an installed library
10686 # when we should be linking with a yet-to-be-installed one
10687 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10688 test "$hardcode_minus_L" != no; then
10689 # Linking always hardcodes the temporary library directory.
10690 hardcode_action=relink
10691 else
10692 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10693 hardcode_action=immediate
10694 fi
10695 else
10696 # We cannot hardcode anything, or else we can only hardcode existing
10697 # directories.
10698 hardcode_action=unsupported
10699 fi
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10701 $as_echo "$hardcode_action" >&6; }
10702
10703 if test "$hardcode_action" = relink ||
10704 test "$inherit_rpath" = yes; then
10705 # Fast installation is not supported
10706 enable_fast_install=no
10707 elif test "$shlibpath_overrides_runpath" = yes ||
10708 test "$enable_shared" = no; then
10709 # Fast installation is not necessary
10710 enable_fast_install=needless
10711 fi
10712
10713
10714
10715
10716
10717
10718 if test "x$enable_dlopen" != xyes; then
10719 enable_dlopen=unknown
10720 enable_dlopen_self=unknown
10721 enable_dlopen_self_static=unknown
10722 else
10723 lt_cv_dlopen=no
10724 lt_cv_dlopen_libs=
10725
10726 case $host_os in
10727 beos*)
10728 lt_cv_dlopen="load_add_on"
10729 lt_cv_dlopen_libs=
10730 lt_cv_dlopen_self=yes
10731 ;;
10732
10733 mingw* | pw32* | cegcc*)
10734 lt_cv_dlopen="LoadLibrary"
10735 lt_cv_dlopen_libs=
10736 ;;
10737
10738 cygwin*)
10739 lt_cv_dlopen="dlopen"
10740 lt_cv_dlopen_libs=
10741 ;;
10742
10743 darwin*)
10744 # if libdl is installed we need to link against it
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10746 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10747 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-ldl $LIBS"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10754
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 char dlopen ();
10762 int
10763 main ()
10764 {
10765 return dlopen ();
10766 ;
10767 return 0;
10768 }
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 ac_cv_lib_dl_dlopen=yes
10772 else
10773 ac_cv_lib_dl_dlopen=no
10774 fi
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777 LIBS=$ac_check_lib_save_LIBS
10778 fi
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10780 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10781 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10783 else
10784
10785 lt_cv_dlopen="dyld"
10786 lt_cv_dlopen_libs=
10787 lt_cv_dlopen_self=yes
10788
10789 fi
10790
10791 ;;
10792
10793 *)
10794 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10795 if test "x$ac_cv_func_shl_load" = x""yes; then :
10796 lt_cv_dlopen="shl_load"
10797 else
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10799 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10800 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 ac_check_lib_save_LIBS=$LIBS
10804 LIBS="-ldld $LIBS"
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10807
10808 /* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 char shl_load ();
10815 int
10816 main ()
10817 {
10818 return shl_load ();
10819 ;
10820 return 0;
10821 }
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 ac_cv_lib_dld_shl_load=yes
10825 else
10826 ac_cv_lib_dld_shl_load=no
10827 fi
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_lib_save_LIBS
10831 fi
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10833 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10834 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10835 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10836 else
10837 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10838 if test "x$ac_cv_func_dlopen" = x""yes; then :
10839 lt_cv_dlopen="dlopen"
10840 else
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10842 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10843 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 ac_check_lib_save_LIBS=$LIBS
10847 LIBS="-ldl $LIBS"
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850
10851 /* Override any GCC internal prototype to avoid an error.
10852 Use char because int might match the return type of a GCC
10853 builtin and then its argument prototype would still apply. */
10854 #ifdef __cplusplus
10855 extern "C"
10856 #endif
10857 char dlopen ();
10858 int
10859 main ()
10860 {
10861 return dlopen ();
10862 ;
10863 return 0;
10864 }
10865 _ACEOF
10866 if ac_fn_c_try_link "$LINENO"; then :
10867 ac_cv_lib_dl_dlopen=yes
10868 else
10869 ac_cv_lib_dl_dlopen=no
10870 fi
10871 rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873 LIBS=$ac_check_lib_save_LIBS
10874 fi
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10876 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10877 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10879 else
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10881 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10882 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 ac_check_lib_save_LIBS=$LIBS
10886 LIBS="-lsvld $LIBS"
10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10889
10890 /* Override any GCC internal prototype to avoid an error.
10891 Use char because int might match the return type of a GCC
10892 builtin and then its argument prototype would still apply. */
10893 #ifdef __cplusplus
10894 extern "C"
10895 #endif
10896 char dlopen ();
10897 int
10898 main ()
10899 {
10900 return dlopen ();
10901 ;
10902 return 0;
10903 }
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"; then :
10906 ac_cv_lib_svld_dlopen=yes
10907 else
10908 ac_cv_lib_svld_dlopen=no
10909 fi
10910 rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10912 LIBS=$ac_check_lib_save_LIBS
10913 fi
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10915 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10916 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10917 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10918 else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10920 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10921 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 ac_check_lib_save_LIBS=$LIBS
10925 LIBS="-ldld $LIBS"
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 char dld_link ();
10936 int
10937 main ()
10938 {
10939 return dld_link ();
10940 ;
10941 return 0;
10942 }
10943 _ACEOF
10944 if ac_fn_c_try_link "$LINENO"; then :
10945 ac_cv_lib_dld_dld_link=yes
10946 else
10947 ac_cv_lib_dld_dld_link=no
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10952 fi
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10954 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10955 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10956 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10957 fi
10958
10959
10960 fi
10961
10962
10963 fi
10964
10965
10966 fi
10967
10968
10969 fi
10970
10971
10972 fi
10973
10974 ;;
10975 esac
10976
10977 if test "x$lt_cv_dlopen" != xno; then
10978 enable_dlopen=yes
10979 else
10980 enable_dlopen=no
10981 fi
10982
10983 case $lt_cv_dlopen in
10984 dlopen)
10985 save_CPPFLAGS="$CPPFLAGS"
10986 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10987
10988 save_LDFLAGS="$LDFLAGS"
10989 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10990
10991 save_LIBS="$LIBS"
10992 LIBS="$lt_cv_dlopen_libs $LIBS"
10993
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10995 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10996 if test "${lt_cv_dlopen_self+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 if test "$cross_compiling" = yes; then :
11000 lt_cv_dlopen_self=cross
11001 else
11002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11003 lt_status=$lt_dlunknown
11004 cat > conftest.$ac_ext <<_LT_EOF
11005 #line 11005 "configure"
11006 #include "confdefs.h"
11007
11008 #if HAVE_DLFCN_H
11009 #include <dlfcn.h>
11010 #endif
11011
11012 #include <stdio.h>
11013
11014 #ifdef RTLD_GLOBAL
11015 # define LT_DLGLOBAL RTLD_GLOBAL
11016 #else
11017 # ifdef DL_GLOBAL
11018 # define LT_DLGLOBAL DL_GLOBAL
11019 # else
11020 # define LT_DLGLOBAL 0
11021 # endif
11022 #endif
11023
11024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11025 find out it does not work in some platform. */
11026 #ifndef LT_DLLAZY_OR_NOW
11027 # ifdef RTLD_LAZY
11028 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11029 # else
11030 # ifdef DL_LAZY
11031 # define LT_DLLAZY_OR_NOW DL_LAZY
11032 # else
11033 # ifdef RTLD_NOW
11034 # define LT_DLLAZY_OR_NOW RTLD_NOW
11035 # else
11036 # ifdef DL_NOW
11037 # define LT_DLLAZY_OR_NOW DL_NOW
11038 # else
11039 # define LT_DLLAZY_OR_NOW 0
11040 # endif
11041 # endif
11042 # endif
11043 # endif
11044 #endif
11045
11046 /* When -fvisbility=hidden is used, assume the code has been annotated
11047 correspondingly for the symbols needed. */
11048 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11049 void fnord () __attribute__((visibility("default")));
11050 #endif
11051
11052 void fnord () { int i=42; }
11053 int main ()
11054 {
11055 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11056 int status = $lt_dlunknown;
11057
11058 if (self)
11059 {
11060 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11061 else
11062 {
11063 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11064 else puts (dlerror ());
11065 }
11066 /* dlclose (self); */
11067 }
11068 else
11069 puts (dlerror ());
11070
11071 return status;
11072 }
11073 _LT_EOF
11074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11075 (eval $ac_link) 2>&5
11076 ac_status=$?
11077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11078 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11079 (./conftest; exit; ) >&5 2>/dev/null
11080 lt_status=$?
11081 case x$lt_status in
11082 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11083 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11084 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11085 esac
11086 else :
11087 # compilation failed
11088 lt_cv_dlopen_self=no
11089 fi
11090 fi
11091 rm -fr conftest*
11092
11093
11094 fi
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11096 $as_echo "$lt_cv_dlopen_self" >&6; }
11097
11098 if test "x$lt_cv_dlopen_self" = xyes; then
11099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11101 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11102 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 if test "$cross_compiling" = yes; then :
11106 lt_cv_dlopen_self_static=cross
11107 else
11108 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11109 lt_status=$lt_dlunknown
11110 cat > conftest.$ac_ext <<_LT_EOF
11111 #line 11111 "configure"
11112 #include "confdefs.h"
11113
11114 #if HAVE_DLFCN_H
11115 #include <dlfcn.h>
11116 #endif
11117
11118 #include <stdio.h>
11119
11120 #ifdef RTLD_GLOBAL
11121 # define LT_DLGLOBAL RTLD_GLOBAL
11122 #else
11123 # ifdef DL_GLOBAL
11124 # define LT_DLGLOBAL DL_GLOBAL
11125 # else
11126 # define LT_DLGLOBAL 0
11127 # endif
11128 #endif
11129
11130 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11131 find out it does not work in some platform. */
11132 #ifndef LT_DLLAZY_OR_NOW
11133 # ifdef RTLD_LAZY
11134 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11135 # else
11136 # ifdef DL_LAZY
11137 # define LT_DLLAZY_OR_NOW DL_LAZY
11138 # else
11139 # ifdef RTLD_NOW
11140 # define LT_DLLAZY_OR_NOW RTLD_NOW
11141 # else
11142 # ifdef DL_NOW
11143 # define LT_DLLAZY_OR_NOW DL_NOW
11144 # else
11145 # define LT_DLLAZY_OR_NOW 0
11146 # endif
11147 # endif
11148 # endif
11149 # endif
11150 #endif
11151
11152 /* When -fvisbility=hidden is used, assume the code has been annotated
11153 correspondingly for the symbols needed. */
11154 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11155 void fnord () __attribute__((visibility("default")));
11156 #endif
11157
11158 void fnord () { int i=42; }
11159 int main ()
11160 {
11161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11162 int status = $lt_dlunknown;
11163
11164 if (self)
11165 {
11166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11167 else
11168 {
11169 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11170 else puts (dlerror ());
11171 }
11172 /* dlclose (self); */
11173 }
11174 else
11175 puts (dlerror ());
11176
11177 return status;
11178 }
11179 _LT_EOF
11180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11181 (eval $ac_link) 2>&5
11182 ac_status=$?
11183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11184 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11185 (./conftest; exit; ) >&5 2>/dev/null
11186 lt_status=$?
11187 case x$lt_status in
11188 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11189 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11190 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11191 esac
11192 else :
11193 # compilation failed
11194 lt_cv_dlopen_self_static=no
11195 fi
11196 fi
11197 rm -fr conftest*
11198
11199
11200 fi
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11202 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11203 fi
11204
11205 CPPFLAGS="$save_CPPFLAGS"
11206 LDFLAGS="$save_LDFLAGS"
11207 LIBS="$save_LIBS"
11208 ;;
11209 esac
11210
11211 case $lt_cv_dlopen_self in
11212 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11213 *) enable_dlopen_self=unknown ;;
11214 esac
11215
11216 case $lt_cv_dlopen_self_static in
11217 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11218 *) enable_dlopen_self_static=unknown ;;
11219 esac
11220 fi
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238 striplib=
11239 old_striplib=
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11241 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11242 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11243 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11244 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246 $as_echo "yes" >&6; }
11247 else
11248 # FIXME - insert some real tests, host_os isn't really good enough
11249 case $host_os in
11250 darwin*)
11251 if test -n "$STRIP" ; then
11252 striplib="$STRIP -x"
11253 old_striplib="$STRIP -S"
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11255 $as_echo "yes" >&6; }
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; }
11259 fi
11260 ;;
11261 *)
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11264 ;;
11265 esac
11266 fi
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279 # Report which library types will actually be built
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11281 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11283 $as_echo "$can_build_shared" >&6; }
11284
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11286 $as_echo_n "checking whether to build shared libraries... " >&6; }
11287 test "$can_build_shared" = "no" && enable_shared=no
11288
11289 # On AIX, shared libraries and static libraries use the same namespace, and
11290 # are all built from PIC.
11291 case $host_os in
11292 aix3*)
11293 test "$enable_shared" = yes && enable_static=no
11294 if test -n "$RANLIB"; then
11295 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11296 postinstall_cmds='$RANLIB $lib'
11297 fi
11298 ;;
11299
11300 aix[4-9]*)
11301 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11302 test "$enable_shared" = yes && enable_static=no
11303 fi
11304 ;;
11305 esac
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11307 $as_echo "$enable_shared" >&6; }
11308
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11310 $as_echo_n "checking whether to build static libraries... " >&6; }
11311 # Make sure either enable_shared or enable_static is yes.
11312 test "$enable_shared" = yes || enable_static=yes
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11314 $as_echo "$enable_static" >&6; }
11315
11316
11317
11318
11319 fi
11320 ac_ext=c
11321 ac_cpp='$CPP $CPPFLAGS'
11322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11325
11326 CC="$lt_save_CC"
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340 ac_config_commands="$ac_config_commands libtool"
11341
11342
11343
11344
11345 # Only expand once:
11346
11347
11348
11349
11350
11351 # For libtool versioning info, format is CURRENT:REVISION:AGE
11352 libtool_VERSION=1:0:0
11353
11354
11355 # Get target configury.
11356 . ${srcdir}/configure.tgt
11357 if test -n "$UNSUPPORTED"; then
11358 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
11359 fi
11360
11361 # Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11362 # make silly decisions about what the cpu can do.
11363 CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11364
11365 # Check header files.
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11367 $as_echo_n "checking for ANSI C header files... " >&6; }
11368 if test "${ac_cv_header_stdc+set}" = set; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11373 #include <stdlib.h>
11374 #include <stdarg.h>
11375 #include <string.h>
11376 #include <float.h>
11377
11378 int
11379 main ()
11380 {
11381
11382 ;
11383 return 0;
11384 }
11385 _ACEOF
11386 if ac_fn_c_try_compile "$LINENO"; then :
11387 ac_cv_header_stdc=yes
11388 else
11389 ac_cv_header_stdc=no
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392
11393 if test $ac_cv_header_stdc = yes; then
11394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 #include <string.h>
11398
11399 _ACEOF
11400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11401 $EGREP "memchr" >/dev/null 2>&1; then :
11402
11403 else
11404 ac_cv_header_stdc=no
11405 fi
11406 rm -f conftest*
11407
11408 fi
11409
11410 if test $ac_cv_header_stdc = yes; then
11411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414 #include <stdlib.h>
11415
11416 _ACEOF
11417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11418 $EGREP "free" >/dev/null 2>&1; then :
11419
11420 else
11421 ac_cv_header_stdc=no
11422 fi
11423 rm -f conftest*
11424
11425 fi
11426
11427 if test $ac_cv_header_stdc = yes; then
11428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11429 if test "$cross_compiling" = yes; then :
11430 :
11431 else
11432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h. */
11434 #include <ctype.h>
11435 #include <stdlib.h>
11436 #if ((' ' & 0x0FF) == 0x020)
11437 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11438 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11439 #else
11440 # define ISLOWER(c) \
11441 (('a' <= (c) && (c) <= 'i') \
11442 || ('j' <= (c) && (c) <= 'r') \
11443 || ('s' <= (c) && (c) <= 'z'))
11444 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11445 #endif
11446
11447 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11448 int
11449 main ()
11450 {
11451 int i;
11452 for (i = 0; i < 256; i++)
11453 if (XOR (islower (i), ISLOWER (i))
11454 || toupper (i) != TOUPPER (i))
11455 return 2;
11456 return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_c_try_run "$LINENO"; then :
11460
11461 else
11462 ac_cv_header_stdc=no
11463 fi
11464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11465 conftest.$ac_objext conftest.beam conftest.$ac_ext
11466 fi
11467
11468 fi
11469 fi
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11471 $as_echo "$ac_cv_header_stdc" >&6; }
11472 if test $ac_cv_header_stdc = yes; then
11473
11474 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11475
11476 fi
11477
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
11479 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
11480 if test "${gcc_cv_header_string+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11485 #include <string.h>
11486 #include <strings.h>
11487 int
11488 main ()
11489 {
11490
11491 ;
11492 return 0;
11493 }
11494 _ACEOF
11495 if ac_fn_c_try_compile "$LINENO"; then :
11496 gcc_cv_header_string=yes
11497 else
11498 gcc_cv_header_string=no
11499 fi
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 fi
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
11503 $as_echo "$gcc_cv_header_string" >&6; }
11504 if test $gcc_cv_header_string = yes; then
11505
11506 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
11507
11508 fi
11509
11510
11511
11512 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11513
11514 acx_cv_header_stdint=stddef.h
11515 acx_cv_header_stdint_kind="(already complete)"
11516 for i in stdint.h $inttype_headers; do
11517 unset ac_cv_type_uintptr_t
11518 unset ac_cv_type_uintmax_t
11519 unset ac_cv_type_int_least32_t
11520 unset ac_cv_type_int_fast32_t
11521 unset ac_cv_type_uint64_t
11522 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
11523 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
11524 #include <$i>
11525 "
11526 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
11527 acx_cv_header_stdint=$i
11528 else
11529 continue
11530 fi
11531
11532 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11533 #include <$i>
11534 "
11535 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11536
11537 else
11538 acx_cv_header_stdint_kind="(mostly complete)"
11539 fi
11540
11541 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
11542 #include <$i>
11543 "
11544 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
11545
11546 else
11547 acx_cv_header_stdint_kind="(mostly complete)"
11548 fi
11549
11550 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
11551 #include <$i>
11552 "
11553 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
11554
11555 else
11556 acx_cv_header_stdint_kind="(mostly complete)"
11557 fi
11558
11559 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11560 #include <$i>
11561 "
11562 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11563
11564 else
11565 acx_cv_header_stdint_kind="(lacks uint64_t)"
11566 fi
11567
11568 break
11569 done
11570 if test "$acx_cv_header_stdint" = stddef.h; then
11571 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11572 for i in stdint.h $inttype_headers; do
11573 unset ac_cv_type_uintptr_t
11574 unset ac_cv_type_uint32_t
11575 unset ac_cv_type_uint64_t
11576 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
11577 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
11578 #include <$i>
11579 "
11580 if test "x$ac_cv_type_uint32_t" = x""yes; then :
11581 acx_cv_header_stdint=$i
11582 else
11583 continue
11584 fi
11585
11586 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11587 #include <$i>
11588 "
11589 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11590
11591 fi
11592
11593 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11594 #include <$i>
11595 "
11596 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11597
11598 fi
11599
11600 break
11601 done
11602 fi
11603 if test "$acx_cv_header_stdint" = stddef.h; then
11604 acx_cv_header_stdint_kind="(u_intXX_t style)"
11605 for i in sys/types.h $inttype_headers; do
11606 unset ac_cv_type_u_int32_t
11607 unset ac_cv_type_u_int64_t
11608 $as_echo_n "looking for u_intXX_t types in $i, " >&6
11609 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
11610 #include <$i>
11611 "
11612 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
11613 acx_cv_header_stdint=$i
11614 else
11615 continue
11616 fi
11617
11618 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
11619 #include <$i>
11620 "
11621 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11622
11623 fi
11624
11625 break
11626 done
11627 fi
11628 if test "$acx_cv_header_stdint" = stddef.h; then
11629 acx_cv_header_stdint_kind="(using manual detection)"
11630 fi
11631
11632 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11633 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11634 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11635 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11636 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11637
11638 # ----------------- Summarize what we found so far
11639
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
11641 $as_echo_n "checking what to include in gstdint.h... " >&6; }
11642
11643 case `$as_basename -- gstdint.h ||
11644 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
11645 Xgstdint.h : 'X\(//\)$' \| \
11646 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
11647 $as_echo X/gstdint.h |
11648 sed '/^.*\/\([^/][^/]*\)\/*$/{
11649 s//\1/
11650 q
11651 }
11652 /^X\/\(\/\/\)$/{
11653 s//\1/
11654 q
11655 }
11656 /^X\/\(\/\).*/{
11657 s//\1/
11658 q
11659 }
11660 s/.*/./; q'` in
11661 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11662 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11663 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11664 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11665 *) ;;
11666 esac
11667
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11669 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
11670
11671 # ----------------- done included file, check C basic types --------
11672
11673 # Lacking an uintptr_t? Test size of void *
11674 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11675 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
11676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11678 # This bug is HP SR number 8606223364.
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11680 $as_echo_n "checking size of void *... " >&6; }
11681 if test "${ac_cv_sizeof_void_p+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
11685
11686 else
11687 if test "$ac_cv_type_void_p" = yes; then
11688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11690 { as_fn_set_status 77
11691 as_fn_error "cannot compute sizeof (void *)
11692 See \`config.log' for more details." "$LINENO" 5; }; }
11693 else
11694 ac_cv_sizeof_void_p=0
11695 fi
11696 fi
11697
11698 fi
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11700 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11701
11702
11703
11704 cat >>confdefs.h <<_ACEOF
11705 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11706 _ACEOF
11707
11708 ;;
11709 esac
11710
11711 # Lacking an uint64_t? Test size of long
11712 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
11713 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
11714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11716 # This bug is HP SR number 8606223364.
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11718 $as_echo_n "checking size of long... " >&6; }
11719 if test "${ac_cv_sizeof_long+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11723
11724 else
11725 if test "$ac_cv_type_long" = yes; then
11726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11728 { as_fn_set_status 77
11729 as_fn_error "cannot compute sizeof (long)
11730 See \`config.log' for more details." "$LINENO" 5; }; }
11731 else
11732 ac_cv_sizeof_long=0
11733 fi
11734 fi
11735
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11738 $as_echo "$ac_cv_sizeof_long" >&6; }
11739
11740
11741
11742 cat >>confdefs.h <<_ACEOF
11743 #define SIZEOF_LONG $ac_cv_sizeof_long
11744 _ACEOF
11745
11746 ;;
11747 esac
11748
11749 if test $acx_cv_header_stdint = stddef.h; then
11750 # Lacking a good header? Test size of everything and deduce all types.
11751 # The cast to long int works around a bug in the HP C Compiler
11752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11754 # This bug is HP SR number 8606223364.
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11756 $as_echo_n "checking size of int... " >&6; }
11757 if test "${ac_cv_sizeof_int+set}" = set; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11761
11762 else
11763 if test "$ac_cv_type_int" = yes; then
11764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11766 { as_fn_set_status 77
11767 as_fn_error "cannot compute sizeof (int)
11768 See \`config.log' for more details." "$LINENO" 5; }; }
11769 else
11770 ac_cv_sizeof_int=0
11771 fi
11772 fi
11773
11774 fi
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11776 $as_echo "$ac_cv_sizeof_int" >&6; }
11777
11778
11779
11780 cat >>confdefs.h <<_ACEOF
11781 #define SIZEOF_INT $ac_cv_sizeof_int
11782 _ACEOF
11783
11784
11785 # The cast to long int works around a bug in the HP C Compiler
11786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11788 # This bug is HP SR number 8606223364.
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11790 $as_echo_n "checking size of short... " >&6; }
11791 if test "${ac_cv_sizeof_short+set}" = set; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11795
11796 else
11797 if test "$ac_cv_type_short" = yes; then
11798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11800 { as_fn_set_status 77
11801 as_fn_error "cannot compute sizeof (short)
11802 See \`config.log' for more details." "$LINENO" 5; }; }
11803 else
11804 ac_cv_sizeof_short=0
11805 fi
11806 fi
11807
11808 fi
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11810 $as_echo "$ac_cv_sizeof_short" >&6; }
11811
11812
11813
11814 cat >>confdefs.h <<_ACEOF
11815 #define SIZEOF_SHORT $ac_cv_sizeof_short
11816 _ACEOF
11817
11818
11819 # The cast to long int works around a bug in the HP C Compiler
11820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11822 # This bug is HP SR number 8606223364.
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11824 $as_echo_n "checking size of char... " >&6; }
11825 if test "${ac_cv_sizeof_char+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11828 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11829
11830 else
11831 if test "$ac_cv_type_char" = yes; then
11832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11834 { as_fn_set_status 77
11835 as_fn_error "cannot compute sizeof (char)
11836 See \`config.log' for more details." "$LINENO" 5; }; }
11837 else
11838 ac_cv_sizeof_char=0
11839 fi
11840 fi
11841
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11844 $as_echo "$ac_cv_sizeof_char" >&6; }
11845
11846
11847
11848 cat >>confdefs.h <<_ACEOF
11849 #define SIZEOF_CHAR $ac_cv_sizeof_char
11850 _ACEOF
11851
11852
11853
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
11855 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
11856 case "$ac_cv_sizeof_char" in
11857 1) acx_cv_type_int8_t=char ;;
11858 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
11859 esac
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
11861 $as_echo "$acx_cv_type_int8_t" >&6; }
11862
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
11864 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
11865 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
11866 2:*) acx_cv_type_int16_t=int ;;
11867 *:2) acx_cv_type_int16_t=short ;;
11868 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
11869 esac
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
11871 $as_echo "$acx_cv_type_int16_t" >&6; }
11872
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
11874 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
11875 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
11876 4:*) acx_cv_type_int32_t=int ;;
11877 *:4) acx_cv_type_int32_t=long ;;
11878 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
11879 esac
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
11881 $as_echo "$acx_cv_type_int32_t" >&6; }
11882 fi
11883
11884 # These tests are here to make the output prettier
11885
11886 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
11887 case "$ac_cv_sizeof_long" in
11888 8) acx_cv_type_int64_t=long ;;
11889 esac
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
11891 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
11893 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
11894 fi
11895
11896 # Now we can use the above types
11897
11898 if test "$ac_cv_type_uintptr_t" != yes; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
11900 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
11901 case $ac_cv_sizeof_void_p in
11902 2) acx_cv_type_intptr_t=int16_t ;;
11903 4) acx_cv_type_intptr_t=int32_t ;;
11904 8) acx_cv_type_intptr_t=int64_t ;;
11905 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
11906 esac
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
11908 $as_echo "$acx_cv_type_intptr_t" >&6; }
11909 fi
11910
11911 # ----------------- done all checks, emit header -------------
11912 ac_config_commands="$ac_config_commands gstdint.h"
11913
11914
11915
11916
11917 # Check for common type sizes
11918
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
11920 $as_echo_n "checking for 1 byte integer... " >&6; }
11921 if test "${libat_cv_have_mode_QI+set}" = set; then :
11922 $as_echo_n "(cached) " >&6
11923 else
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926 int x __attribute__((mode(QI)));
11927 _ACEOF
11928 if ac_fn_c_try_compile "$LINENO"; then :
11929 libat_cv_have_mode_QI=yes
11930 else
11931 libat_cv_have_mode_QI=no
11932 fi
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934 fi
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
11936 $as_echo "$libat_cv_have_mode_QI" >&6; }
11937
11938 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
11939
11940 cat >>confdefs.h <<_ACEOF
11941 #define HAVE_INT1 $yesno
11942 _ACEOF
11943
11944
11945 if test x$libat_cv_have_mode_QI = xyes; then
11946 SIZES="$SIZES 1"
11947 fi
11948
11949
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
11951 $as_echo_n "checking for 2 byte integer... " >&6; }
11952 if test "${libat_cv_have_mode_HI+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11957 int x __attribute__((mode(HI)));
11958 _ACEOF
11959 if ac_fn_c_try_compile "$LINENO"; then :
11960 libat_cv_have_mode_HI=yes
11961 else
11962 libat_cv_have_mode_HI=no
11963 fi
11964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
11967 $as_echo "$libat_cv_have_mode_HI" >&6; }
11968
11969 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
11970
11971 cat >>confdefs.h <<_ACEOF
11972 #define HAVE_INT2 $yesno
11973 _ACEOF
11974
11975
11976 if test x$libat_cv_have_mode_HI = xyes; then
11977 SIZES="$SIZES 2"
11978 fi
11979
11980
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
11982 $as_echo_n "checking for 4 byte integer... " >&6; }
11983 if test "${libat_cv_have_mode_SI+set}" = set; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11988 int x __attribute__((mode(SI)));
11989 _ACEOF
11990 if ac_fn_c_try_compile "$LINENO"; then :
11991 libat_cv_have_mode_SI=yes
11992 else
11993 libat_cv_have_mode_SI=no
11994 fi
11995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
11998 $as_echo "$libat_cv_have_mode_SI" >&6; }
11999
12000 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12001
12002 cat >>confdefs.h <<_ACEOF
12003 #define HAVE_INT4 $yesno
12004 _ACEOF
12005
12006
12007 if test x$libat_cv_have_mode_SI = xyes; then
12008 SIZES="$SIZES 4"
12009 fi
12010
12011
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12013 $as_echo_n "checking for 8 byte integer... " >&6; }
12014 if test "${libat_cv_have_mode_DI+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12019 int x __attribute__((mode(DI)));
12020 _ACEOF
12021 if ac_fn_c_try_compile "$LINENO"; then :
12022 libat_cv_have_mode_DI=yes
12023 else
12024 libat_cv_have_mode_DI=no
12025 fi
12026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027 fi
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12029 $as_echo "$libat_cv_have_mode_DI" >&6; }
12030
12031 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12032
12033 cat >>confdefs.h <<_ACEOF
12034 #define HAVE_INT8 $yesno
12035 _ACEOF
12036
12037
12038 if test x$libat_cv_have_mode_DI = xyes; then
12039 SIZES="$SIZES 8"
12040 fi
12041
12042
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12044 $as_echo_n "checking for 16 byte integer... " >&6; }
12045 if test "${libat_cv_have_mode_TI+set}" = set; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 int x __attribute__((mode(TI)));
12051 _ACEOF
12052 if ac_fn_c_try_compile "$LINENO"; then :
12053 libat_cv_have_mode_TI=yes
12054 else
12055 libat_cv_have_mode_TI=no
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12060 $as_echo "$libat_cv_have_mode_TI" >&6; }
12061
12062 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12063
12064 cat >>confdefs.h <<_ACEOF
12065 #define HAVE_INT16 $yesno
12066 _ACEOF
12067
12068
12069 if test x$libat_cv_have_mode_TI = xyes; then
12070 SIZES="$SIZES 16"
12071 fi
12072
12073
12074
12075 # Check for compiler builtins of atomic operations.
12076
12077 # Do link tests if possible, instead asm tests, limited to some platforms
12078 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12079 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12080 atomic_builtins_link_tests=no
12081 if test x$gcc_no_link != xyes; then
12082 # Can do link tests. Limit to some tested platforms
12083 case "$host" in
12084 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
12085 atomic_builtins_link_tests=yes
12086 ;;
12087 esac
12088 fi
12089
12090
12091
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12093 $as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
12094 if test "${libat_cv_have_at_ldst_1+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12100
12101 int
12102 main ()
12103 {
12104 typedef int T __attribute__((mode(QI)));
12105 T *x; volatile T sink; asm("" : "=g"(x));
12106 sink = __atomic_load_n(x, 0);
12107 __atomic_store_n(x, sink, 0);
12108 ;
12109 return 0;
12110 }
12111 _ACEOF
12112 if test x$atomic_builtins_link_tests = xyes; then
12113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12114 (eval $ac_link) 2>&5
12115 ac_status=$?
12116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12117 test $ac_status = 0; }; then
12118 eval libat_cv_have_at_ldst_1=yes
12119 else
12120 eval libat_cv_have_at_ldst_1=no
12121 fi
12122 else
12123 old_CFLAGS="$CFLAGS"
12124 # Compile unoptimized.
12125 CFLAGS='-O0 -S'
12126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12127 (eval $ac_compile) 2>&5
12128 ac_status=$?
12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 test $ac_status = 0; }; then
12131 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12132 eval libat_cv_have_at_ldst_1=no
12133 else
12134 eval libat_cv_have_at_ldst_1=yes
12135 fi
12136 else
12137 eval libat_cv_have_at_ldst_1=no
12138 fi
12139 CFLAGS="$old_CFLAGS"
12140 fi
12141 rm -f conftest*
12142
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12145 $as_echo "$libat_cv_have_at_ldst_1" >&6; }
12146
12147
12148 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12149
12150 cat >>confdefs.h <<_ACEOF
12151 #define HAVE_ATOMIC_LDST_1 $yesno
12152 _ACEOF
12153
12154
12155
12156
12157
12158
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12160 $as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
12161 if test "${libat_cv_have_at_ldst_2+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12167
12168 int
12169 main ()
12170 {
12171 typedef int T __attribute__((mode(HI)));
12172 T *x; volatile T sink; asm("" : "=g"(x));
12173 sink = __atomic_load_n(x, 0);
12174 __atomic_store_n(x, sink, 0);
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 if test x$atomic_builtins_link_tests = xyes; then
12180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12181 (eval $ac_link) 2>&5
12182 ac_status=$?
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; }; then
12185 eval libat_cv_have_at_ldst_2=yes
12186 else
12187 eval libat_cv_have_at_ldst_2=no
12188 fi
12189 else
12190 old_CFLAGS="$CFLAGS"
12191 # Compile unoptimized.
12192 CFLAGS='-O0 -S'
12193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12194 (eval $ac_compile) 2>&5
12195 ac_status=$?
12196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12197 test $ac_status = 0; }; then
12198 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12199 eval libat_cv_have_at_ldst_2=no
12200 else
12201 eval libat_cv_have_at_ldst_2=yes
12202 fi
12203 else
12204 eval libat_cv_have_at_ldst_2=no
12205 fi
12206 CFLAGS="$old_CFLAGS"
12207 fi
12208 rm -f conftest*
12209
12210 fi
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12212 $as_echo "$libat_cv_have_at_ldst_2" >&6; }
12213
12214
12215 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12216
12217 cat >>confdefs.h <<_ACEOF
12218 #define HAVE_ATOMIC_LDST_2 $yesno
12219 _ACEOF
12220
12221
12222
12223
12224
12225
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12227 $as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
12228 if test "${libat_cv_have_at_ldst_4+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
12230 else
12231
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234
12235 int
12236 main ()
12237 {
12238 typedef int T __attribute__((mode(SI)));
12239 T *x; volatile T sink; asm("" : "=g"(x));
12240 sink = __atomic_load_n(x, 0);
12241 __atomic_store_n(x, sink, 0);
12242 ;
12243 return 0;
12244 }
12245 _ACEOF
12246 if test x$atomic_builtins_link_tests = xyes; then
12247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12248 (eval $ac_link) 2>&5
12249 ac_status=$?
12250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12251 test $ac_status = 0; }; then
12252 eval libat_cv_have_at_ldst_4=yes
12253 else
12254 eval libat_cv_have_at_ldst_4=no
12255 fi
12256 else
12257 old_CFLAGS="$CFLAGS"
12258 # Compile unoptimized.
12259 CFLAGS='-O0 -S'
12260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12261 (eval $ac_compile) 2>&5
12262 ac_status=$?
12263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12264 test $ac_status = 0; }; then
12265 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12266 eval libat_cv_have_at_ldst_4=no
12267 else
12268 eval libat_cv_have_at_ldst_4=yes
12269 fi
12270 else
12271 eval libat_cv_have_at_ldst_4=no
12272 fi
12273 CFLAGS="$old_CFLAGS"
12274 fi
12275 rm -f conftest*
12276
12277 fi
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12279 $as_echo "$libat_cv_have_at_ldst_4" >&6; }
12280
12281
12282 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12283
12284 cat >>confdefs.h <<_ACEOF
12285 #define HAVE_ATOMIC_LDST_4 $yesno
12286 _ACEOF
12287
12288
12289
12290
12291
12292
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12294 $as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
12295 if test "${libat_cv_have_at_ldst_8+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301
12302 int
12303 main ()
12304 {
12305 typedef int T __attribute__((mode(DI)));
12306 T *x; volatile T sink; asm("" : "=g"(x));
12307 sink = __atomic_load_n(x, 0);
12308 __atomic_store_n(x, sink, 0);
12309 ;
12310 return 0;
12311 }
12312 _ACEOF
12313 if test x$atomic_builtins_link_tests = xyes; then
12314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315 (eval $ac_link) 2>&5
12316 ac_status=$?
12317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318 test $ac_status = 0; }; then
12319 eval libat_cv_have_at_ldst_8=yes
12320 else
12321 eval libat_cv_have_at_ldst_8=no
12322 fi
12323 else
12324 old_CFLAGS="$CFLAGS"
12325 # Compile unoptimized.
12326 CFLAGS='-O0 -S'
12327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12328 (eval $ac_compile) 2>&5
12329 ac_status=$?
12330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12331 test $ac_status = 0; }; then
12332 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12333 eval libat_cv_have_at_ldst_8=no
12334 else
12335 eval libat_cv_have_at_ldst_8=yes
12336 fi
12337 else
12338 eval libat_cv_have_at_ldst_8=no
12339 fi
12340 CFLAGS="$old_CFLAGS"
12341 fi
12342 rm -f conftest*
12343
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12346 $as_echo "$libat_cv_have_at_ldst_8" >&6; }
12347
12348
12349 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12350
12351 cat >>confdefs.h <<_ACEOF
12352 #define HAVE_ATOMIC_LDST_8 $yesno
12353 _ACEOF
12354
12355
12356
12357
12358
12359
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12361 $as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
12362 if test "${libat_cv_have_at_ldst_16+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368
12369 int
12370 main ()
12371 {
12372 typedef int T __attribute__((mode(TI)));
12373 T *x; volatile T sink; asm("" : "=g"(x));
12374 sink = __atomic_load_n(x, 0);
12375 __atomic_store_n(x, sink, 0);
12376 ;
12377 return 0;
12378 }
12379 _ACEOF
12380 if test x$atomic_builtins_link_tests = xyes; then
12381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12382 (eval $ac_link) 2>&5
12383 ac_status=$?
12384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12385 test $ac_status = 0; }; then
12386 eval libat_cv_have_at_ldst_16=yes
12387 else
12388 eval libat_cv_have_at_ldst_16=no
12389 fi
12390 else
12391 old_CFLAGS="$CFLAGS"
12392 # Compile unoptimized.
12393 CFLAGS='-O0 -S'
12394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12395 (eval $ac_compile) 2>&5
12396 ac_status=$?
12397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12398 test $ac_status = 0; }; then
12399 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12400 eval libat_cv_have_at_ldst_16=no
12401 else
12402 eval libat_cv_have_at_ldst_16=yes
12403 fi
12404 else
12405 eval libat_cv_have_at_ldst_16=no
12406 fi
12407 CFLAGS="$old_CFLAGS"
12408 fi
12409 rm -f conftest*
12410
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
12413 $as_echo "$libat_cv_have_at_ldst_16" >&6; }
12414
12415
12416 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
12417
12418 cat >>confdefs.h <<_ACEOF
12419 #define HAVE_ATOMIC_LDST_16 $yesno
12420 _ACEOF
12421
12422
12423
12424
12425
12426
12427
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
12429 $as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
12430 if test "${libat_cv_have_at_tas_1+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436
12437 int
12438 main ()
12439 {
12440 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12441 __atomic_test_and_set(x, 0);
12442 ;
12443 return 0;
12444 }
12445 _ACEOF
12446 if test x$atomic_builtins_link_tests = xyes; then
12447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12448 (eval $ac_link) 2>&5
12449 ac_status=$?
12450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12451 test $ac_status = 0; }; then
12452 eval libat_cv_have_at_tas_1=yes
12453 else
12454 eval libat_cv_have_at_tas_1=no
12455 fi
12456 else
12457 old_CFLAGS="$CFLAGS"
12458 # Compile unoptimized.
12459 CFLAGS='-O0 -S'
12460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12461 (eval $ac_compile) 2>&5
12462 ac_status=$?
12463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12464 test $ac_status = 0; }; then
12465 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12466 eval libat_cv_have_at_tas_1=no
12467 else
12468 eval libat_cv_have_at_tas_1=yes
12469 fi
12470 else
12471 eval libat_cv_have_at_tas_1=no
12472 fi
12473 CFLAGS="$old_CFLAGS"
12474 fi
12475 rm -f conftest*
12476
12477 fi
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
12479 $as_echo "$libat_cv_have_at_tas_1" >&6; }
12480
12481
12482 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
12483
12484 cat >>confdefs.h <<_ACEOF
12485 #define HAVE_ATOMIC_TAS_1 $yesno
12486 _ACEOF
12487
12488
12489
12490
12491
12492
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
12494 $as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
12495 if test "${libat_cv_have_at_tas_2+set}" = set; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501
12502 int
12503 main ()
12504 {
12505 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12506 __atomic_test_and_set(x, 0);
12507 ;
12508 return 0;
12509 }
12510 _ACEOF
12511 if test x$atomic_builtins_link_tests = xyes; then
12512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12513 (eval $ac_link) 2>&5
12514 ac_status=$?
12515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12516 test $ac_status = 0; }; then
12517 eval libat_cv_have_at_tas_2=yes
12518 else
12519 eval libat_cv_have_at_tas_2=no
12520 fi
12521 else
12522 old_CFLAGS="$CFLAGS"
12523 # Compile unoptimized.
12524 CFLAGS='-O0 -S'
12525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12526 (eval $ac_compile) 2>&5
12527 ac_status=$?
12528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12529 test $ac_status = 0; }; then
12530 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12531 eval libat_cv_have_at_tas_2=no
12532 else
12533 eval libat_cv_have_at_tas_2=yes
12534 fi
12535 else
12536 eval libat_cv_have_at_tas_2=no
12537 fi
12538 CFLAGS="$old_CFLAGS"
12539 fi
12540 rm -f conftest*
12541
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
12544 $as_echo "$libat_cv_have_at_tas_2" >&6; }
12545
12546
12547 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
12548
12549 cat >>confdefs.h <<_ACEOF
12550 #define HAVE_ATOMIC_TAS_2 $yesno
12551 _ACEOF
12552
12553
12554
12555
12556
12557
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
12559 $as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
12560 if test "${libat_cv_have_at_tas_4+set}" = set; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566
12567 int
12568 main ()
12569 {
12570 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
12571 __atomic_test_and_set(x, 0);
12572 ;
12573 return 0;
12574 }
12575 _ACEOF
12576 if test x$atomic_builtins_link_tests = xyes; then
12577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12578 (eval $ac_link) 2>&5
12579 ac_status=$?
12580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12581 test $ac_status = 0; }; then
12582 eval libat_cv_have_at_tas_4=yes
12583 else
12584 eval libat_cv_have_at_tas_4=no
12585 fi
12586 else
12587 old_CFLAGS="$CFLAGS"
12588 # Compile unoptimized.
12589 CFLAGS='-O0 -S'
12590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12591 (eval $ac_compile) 2>&5
12592 ac_status=$?
12593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12594 test $ac_status = 0; }; then
12595 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12596 eval libat_cv_have_at_tas_4=no
12597 else
12598 eval libat_cv_have_at_tas_4=yes
12599 fi
12600 else
12601 eval libat_cv_have_at_tas_4=no
12602 fi
12603 CFLAGS="$old_CFLAGS"
12604 fi
12605 rm -f conftest*
12606
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
12609 $as_echo "$libat_cv_have_at_tas_4" >&6; }
12610
12611
12612 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
12613
12614 cat >>confdefs.h <<_ACEOF
12615 #define HAVE_ATOMIC_TAS_4 $yesno
12616 _ACEOF
12617
12618
12619
12620
12621
12622
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
12624 $as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
12625 if test "${libat_cv_have_at_tas_8+set}" = set; then :
12626 $as_echo_n "(cached) " >&6
12627 else
12628
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12631
12632 int
12633 main ()
12634 {
12635 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
12636 __atomic_test_and_set(x, 0);
12637 ;
12638 return 0;
12639 }
12640 _ACEOF
12641 if test x$atomic_builtins_link_tests = xyes; then
12642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12643 (eval $ac_link) 2>&5
12644 ac_status=$?
12645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12646 test $ac_status = 0; }; then
12647 eval libat_cv_have_at_tas_8=yes
12648 else
12649 eval libat_cv_have_at_tas_8=no
12650 fi
12651 else
12652 old_CFLAGS="$CFLAGS"
12653 # Compile unoptimized.
12654 CFLAGS='-O0 -S'
12655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12656 (eval $ac_compile) 2>&5
12657 ac_status=$?
12658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659 test $ac_status = 0; }; then
12660 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12661 eval libat_cv_have_at_tas_8=no
12662 else
12663 eval libat_cv_have_at_tas_8=yes
12664 fi
12665 else
12666 eval libat_cv_have_at_tas_8=no
12667 fi
12668 CFLAGS="$old_CFLAGS"
12669 fi
12670 rm -f conftest*
12671
12672 fi
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
12674 $as_echo "$libat_cv_have_at_tas_8" >&6; }
12675
12676
12677 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
12678
12679 cat >>confdefs.h <<_ACEOF
12680 #define HAVE_ATOMIC_TAS_8 $yesno
12681 _ACEOF
12682
12683
12684
12685
12686
12687
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
12689 $as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
12690 if test "${libat_cv_have_at_tas_16+set}" = set; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12696
12697 int
12698 main ()
12699 {
12700 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
12701 __atomic_test_and_set(x, 0);
12702 ;
12703 return 0;
12704 }
12705 _ACEOF
12706 if test x$atomic_builtins_link_tests = xyes; then
12707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12708 (eval $ac_link) 2>&5
12709 ac_status=$?
12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711 test $ac_status = 0; }; then
12712 eval libat_cv_have_at_tas_16=yes
12713 else
12714 eval libat_cv_have_at_tas_16=no
12715 fi
12716 else
12717 old_CFLAGS="$CFLAGS"
12718 # Compile unoptimized.
12719 CFLAGS='-O0 -S'
12720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12721 (eval $ac_compile) 2>&5
12722 ac_status=$?
12723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12724 test $ac_status = 0; }; then
12725 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12726 eval libat_cv_have_at_tas_16=no
12727 else
12728 eval libat_cv_have_at_tas_16=yes
12729 fi
12730 else
12731 eval libat_cv_have_at_tas_16=no
12732 fi
12733 CFLAGS="$old_CFLAGS"
12734 fi
12735 rm -f conftest*
12736
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
12739 $as_echo "$libat_cv_have_at_tas_16" >&6; }
12740
12741
12742 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
12743
12744 cat >>confdefs.h <<_ACEOF
12745 #define HAVE_ATOMIC_TAS_16 $yesno
12746 _ACEOF
12747
12748
12749
12750
12751
12752
12753
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
12755 $as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
12756 if test "${libat_cv_have_at_exch_1+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12762
12763 int
12764 main ()
12765 {
12766 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12767 __atomic_exchange_n(x, 0, 0);
12768 ;
12769 return 0;
12770 }
12771 _ACEOF
12772 if test x$atomic_builtins_link_tests = xyes; then
12773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12774 (eval $ac_link) 2>&5
12775 ac_status=$?
12776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12777 test $ac_status = 0; }; then
12778 eval libat_cv_have_at_exch_1=yes
12779 else
12780 eval libat_cv_have_at_exch_1=no
12781 fi
12782 else
12783 old_CFLAGS="$CFLAGS"
12784 # Compile unoptimized.
12785 CFLAGS='-O0 -S'
12786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12787 (eval $ac_compile) 2>&5
12788 ac_status=$?
12789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12790 test $ac_status = 0; }; then
12791 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12792 eval libat_cv_have_at_exch_1=no
12793 else
12794 eval libat_cv_have_at_exch_1=yes
12795 fi
12796 else
12797 eval libat_cv_have_at_exch_1=no
12798 fi
12799 CFLAGS="$old_CFLAGS"
12800 fi
12801 rm -f conftest*
12802
12803 fi
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
12805 $as_echo "$libat_cv_have_at_exch_1" >&6; }
12806
12807
12808 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
12809
12810 cat >>confdefs.h <<_ACEOF
12811 #define HAVE_ATOMIC_EXCHANGE_1 $yesno
12812 _ACEOF
12813
12814
12815
12816
12817
12818
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
12820 $as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
12821 if test "${libat_cv_have_at_exch_2+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12827
12828 int
12829 main ()
12830 {
12831 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12832 __atomic_exchange_n(x, 0, 0);
12833 ;
12834 return 0;
12835 }
12836 _ACEOF
12837 if test x$atomic_builtins_link_tests = xyes; then
12838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12839 (eval $ac_link) 2>&5
12840 ac_status=$?
12841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12842 test $ac_status = 0; }; then
12843 eval libat_cv_have_at_exch_2=yes
12844 else
12845 eval libat_cv_have_at_exch_2=no
12846 fi
12847 else
12848 old_CFLAGS="$CFLAGS"
12849 # Compile unoptimized.
12850 CFLAGS='-O0 -S'
12851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12852 (eval $ac_compile) 2>&5
12853 ac_status=$?
12854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12855 test $ac_status = 0; }; then
12856 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12857 eval libat_cv_have_at_exch_2=no
12858 else
12859 eval libat_cv_have_at_exch_2=yes
12860 fi
12861 else
12862 eval libat_cv_have_at_exch_2=no
12863 fi
12864 CFLAGS="$old_CFLAGS"
12865 fi
12866 rm -f conftest*
12867
12868 fi
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
12870 $as_echo "$libat_cv_have_at_exch_2" >&6; }
12871
12872
12873 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
12874
12875 cat >>confdefs.h <<_ACEOF
12876 #define HAVE_ATOMIC_EXCHANGE_2 $yesno
12877 _ACEOF
12878
12879
12880
12881
12882
12883
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
12885 $as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
12886 if test "${libat_cv_have_at_exch_4+set}" = set; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889
12890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891 /* end confdefs.h. */
12892
12893 int
12894 main ()
12895 {
12896 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
12897 __atomic_exchange_n(x, 0, 0);
12898 ;
12899 return 0;
12900 }
12901 _ACEOF
12902 if test x$atomic_builtins_link_tests = xyes; then
12903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12904 (eval $ac_link) 2>&5
12905 ac_status=$?
12906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12907 test $ac_status = 0; }; then
12908 eval libat_cv_have_at_exch_4=yes
12909 else
12910 eval libat_cv_have_at_exch_4=no
12911 fi
12912 else
12913 old_CFLAGS="$CFLAGS"
12914 # Compile unoptimized.
12915 CFLAGS='-O0 -S'
12916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12917 (eval $ac_compile) 2>&5
12918 ac_status=$?
12919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12920 test $ac_status = 0; }; then
12921 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12922 eval libat_cv_have_at_exch_4=no
12923 else
12924 eval libat_cv_have_at_exch_4=yes
12925 fi
12926 else
12927 eval libat_cv_have_at_exch_4=no
12928 fi
12929 CFLAGS="$old_CFLAGS"
12930 fi
12931 rm -f conftest*
12932
12933 fi
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
12935 $as_echo "$libat_cv_have_at_exch_4" >&6; }
12936
12937
12938 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
12939
12940 cat >>confdefs.h <<_ACEOF
12941 #define HAVE_ATOMIC_EXCHANGE_4 $yesno
12942 _ACEOF
12943
12944
12945
12946
12947
12948
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
12950 $as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
12951 if test "${libat_cv_have_at_exch_8+set}" = set; then :
12952 $as_echo_n "(cached) " >&6
12953 else
12954
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957
12958 int
12959 main ()
12960 {
12961 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
12962 __atomic_exchange_n(x, 0, 0);
12963 ;
12964 return 0;
12965 }
12966 _ACEOF
12967 if test x$atomic_builtins_link_tests = xyes; then
12968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12969 (eval $ac_link) 2>&5
12970 ac_status=$?
12971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12972 test $ac_status = 0; }; then
12973 eval libat_cv_have_at_exch_8=yes
12974 else
12975 eval libat_cv_have_at_exch_8=no
12976 fi
12977 else
12978 old_CFLAGS="$CFLAGS"
12979 # Compile unoptimized.
12980 CFLAGS='-O0 -S'
12981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12982 (eval $ac_compile) 2>&5
12983 ac_status=$?
12984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12985 test $ac_status = 0; }; then
12986 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12987 eval libat_cv_have_at_exch_8=no
12988 else
12989 eval libat_cv_have_at_exch_8=yes
12990 fi
12991 else
12992 eval libat_cv_have_at_exch_8=no
12993 fi
12994 CFLAGS="$old_CFLAGS"
12995 fi
12996 rm -f conftest*
12997
12998 fi
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13000 $as_echo "$libat_cv_have_at_exch_8" >&6; }
13001
13002
13003 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13004
13005 cat >>confdefs.h <<_ACEOF
13006 #define HAVE_ATOMIC_EXCHANGE_8 $yesno
13007 _ACEOF
13008
13009
13010
13011
13012
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13015 $as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
13016 if test "${libat_cv_have_at_exch_16+set}" = set; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022
13023 int
13024 main ()
13025 {
13026 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13027 __atomic_exchange_n(x, 0, 0);
13028 ;
13029 return 0;
13030 }
13031 _ACEOF
13032 if test x$atomic_builtins_link_tests = xyes; then
13033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13034 (eval $ac_link) 2>&5
13035 ac_status=$?
13036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13037 test $ac_status = 0; }; then
13038 eval libat_cv_have_at_exch_16=yes
13039 else
13040 eval libat_cv_have_at_exch_16=no
13041 fi
13042 else
13043 old_CFLAGS="$CFLAGS"
13044 # Compile unoptimized.
13045 CFLAGS='-O0 -S'
13046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13047 (eval $ac_compile) 2>&5
13048 ac_status=$?
13049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13050 test $ac_status = 0; }; then
13051 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13052 eval libat_cv_have_at_exch_16=no
13053 else
13054 eval libat_cv_have_at_exch_16=yes
13055 fi
13056 else
13057 eval libat_cv_have_at_exch_16=no
13058 fi
13059 CFLAGS="$old_CFLAGS"
13060 fi
13061 rm -f conftest*
13062
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13065 $as_echo "$libat_cv_have_at_exch_16" >&6; }
13066
13067
13068 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13069
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_ATOMIC_EXCHANGE_16 $yesno
13072 _ACEOF
13073
13074
13075
13076
13077
13078
13079
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13081 $as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
13082 if test "${libat_cv_have_at_cas_1+set}" = set; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088
13089 int
13090 main ()
13091 {
13092 typedef int T __attribute__((mode(QI))); T *x, *y;
13093 asm("" : "=g"(x), "=g"(y));
13094 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13095 ;
13096 return 0;
13097 }
13098 _ACEOF
13099 if test x$atomic_builtins_link_tests = xyes; then
13100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13101 (eval $ac_link) 2>&5
13102 ac_status=$?
13103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13104 test $ac_status = 0; }; then
13105 eval libat_cv_have_at_cas_1=yes
13106 else
13107 eval libat_cv_have_at_cas_1=no
13108 fi
13109 else
13110 old_CFLAGS="$CFLAGS"
13111 # Compile unoptimized.
13112 CFLAGS='-O0 -S'
13113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13114 (eval $ac_compile) 2>&5
13115 ac_status=$?
13116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13117 test $ac_status = 0; }; then
13118 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13119 eval libat_cv_have_at_cas_1=no
13120 else
13121 eval libat_cv_have_at_cas_1=yes
13122 fi
13123 else
13124 eval libat_cv_have_at_cas_1=no
13125 fi
13126 CFLAGS="$old_CFLAGS"
13127 fi
13128 rm -f conftest*
13129
13130 fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13132 $as_echo "$libat_cv_have_at_cas_1" >&6; }
13133
13134
13135 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13136
13137 cat >>confdefs.h <<_ACEOF
13138 #define HAVE_ATOMIC_CAS_1 $yesno
13139 _ACEOF
13140
13141
13142
13143
13144
13145
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13147 $as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
13148 if test "${libat_cv_have_at_cas_2+set}" = set; then :
13149 $as_echo_n "(cached) " >&6
13150 else
13151
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13154
13155 int
13156 main ()
13157 {
13158 typedef int T __attribute__((mode(HI))); T *x, *y;
13159 asm("" : "=g"(x), "=g"(y));
13160 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13161 ;
13162 return 0;
13163 }
13164 _ACEOF
13165 if test x$atomic_builtins_link_tests = xyes; then
13166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13167 (eval $ac_link) 2>&5
13168 ac_status=$?
13169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13170 test $ac_status = 0; }; then
13171 eval libat_cv_have_at_cas_2=yes
13172 else
13173 eval libat_cv_have_at_cas_2=no
13174 fi
13175 else
13176 old_CFLAGS="$CFLAGS"
13177 # Compile unoptimized.
13178 CFLAGS='-O0 -S'
13179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13180 (eval $ac_compile) 2>&5
13181 ac_status=$?
13182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183 test $ac_status = 0; }; then
13184 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13185 eval libat_cv_have_at_cas_2=no
13186 else
13187 eval libat_cv_have_at_cas_2=yes
13188 fi
13189 else
13190 eval libat_cv_have_at_cas_2=no
13191 fi
13192 CFLAGS="$old_CFLAGS"
13193 fi
13194 rm -f conftest*
13195
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13198 $as_echo "$libat_cv_have_at_cas_2" >&6; }
13199
13200
13201 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13202
13203 cat >>confdefs.h <<_ACEOF
13204 #define HAVE_ATOMIC_CAS_2 $yesno
13205 _ACEOF
13206
13207
13208
13209
13210
13211
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13213 $as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
13214 if test "${libat_cv_have_at_cas_4+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220
13221 int
13222 main ()
13223 {
13224 typedef int T __attribute__((mode(SI))); T *x, *y;
13225 asm("" : "=g"(x), "=g"(y));
13226 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13227 ;
13228 return 0;
13229 }
13230 _ACEOF
13231 if test x$atomic_builtins_link_tests = xyes; then
13232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13233 (eval $ac_link) 2>&5
13234 ac_status=$?
13235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13236 test $ac_status = 0; }; then
13237 eval libat_cv_have_at_cas_4=yes
13238 else
13239 eval libat_cv_have_at_cas_4=no
13240 fi
13241 else
13242 old_CFLAGS="$CFLAGS"
13243 # Compile unoptimized.
13244 CFLAGS='-O0 -S'
13245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13246 (eval $ac_compile) 2>&5
13247 ac_status=$?
13248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13249 test $ac_status = 0; }; then
13250 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13251 eval libat_cv_have_at_cas_4=no
13252 else
13253 eval libat_cv_have_at_cas_4=yes
13254 fi
13255 else
13256 eval libat_cv_have_at_cas_4=no
13257 fi
13258 CFLAGS="$old_CFLAGS"
13259 fi
13260 rm -f conftest*
13261
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13264 $as_echo "$libat_cv_have_at_cas_4" >&6; }
13265
13266
13267 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13268
13269 cat >>confdefs.h <<_ACEOF
13270 #define HAVE_ATOMIC_CAS_4 $yesno
13271 _ACEOF
13272
13273
13274
13275
13276
13277
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13279 $as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
13280 if test "${libat_cv_have_at_cas_8+set}" = set; then :
13281 $as_echo_n "(cached) " >&6
13282 else
13283
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286
13287 int
13288 main ()
13289 {
13290 typedef int T __attribute__((mode(DI))); T *x, *y;
13291 asm("" : "=g"(x), "=g"(y));
13292 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13293 ;
13294 return 0;
13295 }
13296 _ACEOF
13297 if test x$atomic_builtins_link_tests = xyes; then
13298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13299 (eval $ac_link) 2>&5
13300 ac_status=$?
13301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13302 test $ac_status = 0; }; then
13303 eval libat_cv_have_at_cas_8=yes
13304 else
13305 eval libat_cv_have_at_cas_8=no
13306 fi
13307 else
13308 old_CFLAGS="$CFLAGS"
13309 # Compile unoptimized.
13310 CFLAGS='-O0 -S'
13311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13312 (eval $ac_compile) 2>&5
13313 ac_status=$?
13314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13315 test $ac_status = 0; }; then
13316 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13317 eval libat_cv_have_at_cas_8=no
13318 else
13319 eval libat_cv_have_at_cas_8=yes
13320 fi
13321 else
13322 eval libat_cv_have_at_cas_8=no
13323 fi
13324 CFLAGS="$old_CFLAGS"
13325 fi
13326 rm -f conftest*
13327
13328 fi
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13330 $as_echo "$libat_cv_have_at_cas_8" >&6; }
13331
13332
13333 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13334
13335 cat >>confdefs.h <<_ACEOF
13336 #define HAVE_ATOMIC_CAS_8 $yesno
13337 _ACEOF
13338
13339
13340
13341
13342
13343
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13345 $as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
13346 if test "${libat_cv_have_at_cas_16+set}" = set; then :
13347 $as_echo_n "(cached) " >&6
13348 else
13349
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352
13353 int
13354 main ()
13355 {
13356 typedef int T __attribute__((mode(TI))); T *x, *y;
13357 asm("" : "=g"(x), "=g"(y));
13358 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13359 ;
13360 return 0;
13361 }
13362 _ACEOF
13363 if test x$atomic_builtins_link_tests = xyes; then
13364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13365 (eval $ac_link) 2>&5
13366 ac_status=$?
13367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13368 test $ac_status = 0; }; then
13369 eval libat_cv_have_at_cas_16=yes
13370 else
13371 eval libat_cv_have_at_cas_16=no
13372 fi
13373 else
13374 old_CFLAGS="$CFLAGS"
13375 # Compile unoptimized.
13376 CFLAGS='-O0 -S'
13377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13378 (eval $ac_compile) 2>&5
13379 ac_status=$?
13380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381 test $ac_status = 0; }; then
13382 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13383 eval libat_cv_have_at_cas_16=no
13384 else
13385 eval libat_cv_have_at_cas_16=yes
13386 fi
13387 else
13388 eval libat_cv_have_at_cas_16=no
13389 fi
13390 CFLAGS="$old_CFLAGS"
13391 fi
13392 rm -f conftest*
13393
13394 fi
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13396 $as_echo "$libat_cv_have_at_cas_16" >&6; }
13397
13398
13399 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13400
13401 cat >>confdefs.h <<_ACEOF
13402 #define HAVE_ATOMIC_CAS_16 $yesno
13403 _ACEOF
13404
13405
13406
13407
13408
13409
13410
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
13412 $as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
13413 if test "${libat_cv_have_at_fadd_1+set}" = set; then :
13414 $as_echo_n "(cached) " >&6
13415 else
13416
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419
13420 int
13421 main ()
13422 {
13423 typedef int T __attribute__((mode(QI))); T *x, y;
13424 asm("" : "=g"(x), "=g"(y));
13425 __atomic_fetch_add (x, y, 0);
13426 __atomic_add_fetch (x, y, 0);
13427 ;
13428 return 0;
13429 }
13430 _ACEOF
13431 if test x$atomic_builtins_link_tests = xyes; then
13432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13433 (eval $ac_link) 2>&5
13434 ac_status=$?
13435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13436 test $ac_status = 0; }; then
13437 eval libat_cv_have_at_fadd_1=yes
13438 else
13439 eval libat_cv_have_at_fadd_1=no
13440 fi
13441 else
13442 old_CFLAGS="$CFLAGS"
13443 # Compile unoptimized.
13444 CFLAGS='-O0 -S'
13445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13446 (eval $ac_compile) 2>&5
13447 ac_status=$?
13448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13449 test $ac_status = 0; }; then
13450 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13451 eval libat_cv_have_at_fadd_1=no
13452 else
13453 eval libat_cv_have_at_fadd_1=yes
13454 fi
13455 else
13456 eval libat_cv_have_at_fadd_1=no
13457 fi
13458 CFLAGS="$old_CFLAGS"
13459 fi
13460 rm -f conftest*
13461
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
13464 $as_echo "$libat_cv_have_at_fadd_1" >&6; }
13465
13466
13467 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
13468
13469 cat >>confdefs.h <<_ACEOF
13470 #define HAVE_ATOMIC_FETCH_ADD_1 $yesno
13471 _ACEOF
13472
13473
13474
13475
13476
13477
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
13479 $as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
13480 if test "${libat_cv_have_at_fadd_2+set}" = set; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13486
13487 int
13488 main ()
13489 {
13490 typedef int T __attribute__((mode(HI))); T *x, y;
13491 asm("" : "=g"(x), "=g"(y));
13492 __atomic_fetch_add (x, y, 0);
13493 __atomic_add_fetch (x, y, 0);
13494 ;
13495 return 0;
13496 }
13497 _ACEOF
13498 if test x$atomic_builtins_link_tests = xyes; then
13499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13500 (eval $ac_link) 2>&5
13501 ac_status=$?
13502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503 test $ac_status = 0; }; then
13504 eval libat_cv_have_at_fadd_2=yes
13505 else
13506 eval libat_cv_have_at_fadd_2=no
13507 fi
13508 else
13509 old_CFLAGS="$CFLAGS"
13510 # Compile unoptimized.
13511 CFLAGS='-O0 -S'
13512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13513 (eval $ac_compile) 2>&5
13514 ac_status=$?
13515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13516 test $ac_status = 0; }; then
13517 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13518 eval libat_cv_have_at_fadd_2=no
13519 else
13520 eval libat_cv_have_at_fadd_2=yes
13521 fi
13522 else
13523 eval libat_cv_have_at_fadd_2=no
13524 fi
13525 CFLAGS="$old_CFLAGS"
13526 fi
13527 rm -f conftest*
13528
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
13531 $as_echo "$libat_cv_have_at_fadd_2" >&6; }
13532
13533
13534 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
13535
13536 cat >>confdefs.h <<_ACEOF
13537 #define HAVE_ATOMIC_FETCH_ADD_2 $yesno
13538 _ACEOF
13539
13540
13541
13542
13543
13544
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
13546 $as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
13547 if test "${libat_cv_have_at_fadd_4+set}" = set; then :
13548 $as_echo_n "(cached) " >&6
13549 else
13550
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553
13554 int
13555 main ()
13556 {
13557 typedef int T __attribute__((mode(SI))); T *x, y;
13558 asm("" : "=g"(x), "=g"(y));
13559 __atomic_fetch_add (x, y, 0);
13560 __atomic_add_fetch (x, y, 0);
13561 ;
13562 return 0;
13563 }
13564 _ACEOF
13565 if test x$atomic_builtins_link_tests = xyes; then
13566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13567 (eval $ac_link) 2>&5
13568 ac_status=$?
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570 test $ac_status = 0; }; then
13571 eval libat_cv_have_at_fadd_4=yes
13572 else
13573 eval libat_cv_have_at_fadd_4=no
13574 fi
13575 else
13576 old_CFLAGS="$CFLAGS"
13577 # Compile unoptimized.
13578 CFLAGS='-O0 -S'
13579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13580 (eval $ac_compile) 2>&5
13581 ac_status=$?
13582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13583 test $ac_status = 0; }; then
13584 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13585 eval libat_cv_have_at_fadd_4=no
13586 else
13587 eval libat_cv_have_at_fadd_4=yes
13588 fi
13589 else
13590 eval libat_cv_have_at_fadd_4=no
13591 fi
13592 CFLAGS="$old_CFLAGS"
13593 fi
13594 rm -f conftest*
13595
13596 fi
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
13598 $as_echo "$libat_cv_have_at_fadd_4" >&6; }
13599
13600
13601 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
13602
13603 cat >>confdefs.h <<_ACEOF
13604 #define HAVE_ATOMIC_FETCH_ADD_4 $yesno
13605 _ACEOF
13606
13607
13608
13609
13610
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
13613 $as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
13614 if test "${libat_cv_have_at_fadd_8+set}" = set; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620
13621 int
13622 main ()
13623 {
13624 typedef int T __attribute__((mode(DI))); T *x, y;
13625 asm("" : "=g"(x), "=g"(y));
13626 __atomic_fetch_add (x, y, 0);
13627 __atomic_add_fetch (x, y, 0);
13628 ;
13629 return 0;
13630 }
13631 _ACEOF
13632 if test x$atomic_builtins_link_tests = xyes; then
13633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13634 (eval $ac_link) 2>&5
13635 ac_status=$?
13636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637 test $ac_status = 0; }; then
13638 eval libat_cv_have_at_fadd_8=yes
13639 else
13640 eval libat_cv_have_at_fadd_8=no
13641 fi
13642 else
13643 old_CFLAGS="$CFLAGS"
13644 # Compile unoptimized.
13645 CFLAGS='-O0 -S'
13646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13647 (eval $ac_compile) 2>&5
13648 ac_status=$?
13649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13650 test $ac_status = 0; }; then
13651 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13652 eval libat_cv_have_at_fadd_8=no
13653 else
13654 eval libat_cv_have_at_fadd_8=yes
13655 fi
13656 else
13657 eval libat_cv_have_at_fadd_8=no
13658 fi
13659 CFLAGS="$old_CFLAGS"
13660 fi
13661 rm -f conftest*
13662
13663 fi
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
13665 $as_echo "$libat_cv_have_at_fadd_8" >&6; }
13666
13667
13668 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
13669
13670 cat >>confdefs.h <<_ACEOF
13671 #define HAVE_ATOMIC_FETCH_ADD_8 $yesno
13672 _ACEOF
13673
13674
13675
13676
13677
13678
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
13680 $as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
13681 if test "${libat_cv_have_at_fadd_16+set}" = set; then :
13682 $as_echo_n "(cached) " >&6
13683 else
13684
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687
13688 int
13689 main ()
13690 {
13691 typedef int T __attribute__((mode(TI))); T *x, y;
13692 asm("" : "=g"(x), "=g"(y));
13693 __atomic_fetch_add (x, y, 0);
13694 __atomic_add_fetch (x, y, 0);
13695 ;
13696 return 0;
13697 }
13698 _ACEOF
13699 if test x$atomic_builtins_link_tests = xyes; then
13700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13701 (eval $ac_link) 2>&5
13702 ac_status=$?
13703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13704 test $ac_status = 0; }; then
13705 eval libat_cv_have_at_fadd_16=yes
13706 else
13707 eval libat_cv_have_at_fadd_16=no
13708 fi
13709 else
13710 old_CFLAGS="$CFLAGS"
13711 # Compile unoptimized.
13712 CFLAGS='-O0 -S'
13713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13714 (eval $ac_compile) 2>&5
13715 ac_status=$?
13716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13717 test $ac_status = 0; }; then
13718 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13719 eval libat_cv_have_at_fadd_16=no
13720 else
13721 eval libat_cv_have_at_fadd_16=yes
13722 fi
13723 else
13724 eval libat_cv_have_at_fadd_16=no
13725 fi
13726 CFLAGS="$old_CFLAGS"
13727 fi
13728 rm -f conftest*
13729
13730 fi
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
13732 $as_echo "$libat_cv_have_at_fadd_16" >&6; }
13733
13734
13735 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
13736
13737 cat >>confdefs.h <<_ACEOF
13738 #define HAVE_ATOMIC_FETCH_ADD_16 $yesno
13739 _ACEOF
13740
13741
13742
13743
13744
13745
13746
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
13748 $as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
13749 if test "${libat_cv_have_at_fop_1+set}" = set; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13755
13756 int
13757 main ()
13758 {
13759 typedef int T __attribute__((mode(QI))); T *x, y;
13760 asm("" : "=g"(x), "=g"(y));
13761 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13762 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13763 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13764 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13765 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13766 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13767 ;
13768 return 0;
13769 }
13770 _ACEOF
13771 if test x$atomic_builtins_link_tests = xyes; then
13772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13773 (eval $ac_link) 2>&5
13774 ac_status=$?
13775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776 test $ac_status = 0; }; then
13777 eval libat_cv_have_at_fop_1=yes
13778 else
13779 eval libat_cv_have_at_fop_1=no
13780 fi
13781 else
13782 old_CFLAGS="$CFLAGS"
13783 # Compile unoptimized.
13784 CFLAGS='-O0 -S'
13785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13786 (eval $ac_compile) 2>&5
13787 ac_status=$?
13788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13789 test $ac_status = 0; }; then
13790 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13791 eval libat_cv_have_at_fop_1=no
13792 else
13793 eval libat_cv_have_at_fop_1=yes
13794 fi
13795 else
13796 eval libat_cv_have_at_fop_1=no
13797 fi
13798 CFLAGS="$old_CFLAGS"
13799 fi
13800 rm -f conftest*
13801
13802 fi
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
13804 $as_echo "$libat_cv_have_at_fop_1" >&6; }
13805
13806
13807 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
13808
13809 cat >>confdefs.h <<_ACEOF
13810 #define HAVE_ATOMIC_FETCH_OP_1 $yesno
13811 _ACEOF
13812
13813
13814
13815
13816
13817
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
13819 $as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
13820 if test "${libat_cv_have_at_fop_2+set}" = set; then :
13821 $as_echo_n "(cached) " >&6
13822 else
13823
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826
13827 int
13828 main ()
13829 {
13830 typedef int T __attribute__((mode(HI))); T *x, y;
13831 asm("" : "=g"(x), "=g"(y));
13832 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13833 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13834 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13835 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13836 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13837 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13838 ;
13839 return 0;
13840 }
13841 _ACEOF
13842 if test x$atomic_builtins_link_tests = xyes; then
13843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13844 (eval $ac_link) 2>&5
13845 ac_status=$?
13846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13847 test $ac_status = 0; }; then
13848 eval libat_cv_have_at_fop_2=yes
13849 else
13850 eval libat_cv_have_at_fop_2=no
13851 fi
13852 else
13853 old_CFLAGS="$CFLAGS"
13854 # Compile unoptimized.
13855 CFLAGS='-O0 -S'
13856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13857 (eval $ac_compile) 2>&5
13858 ac_status=$?
13859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13860 test $ac_status = 0; }; then
13861 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13862 eval libat_cv_have_at_fop_2=no
13863 else
13864 eval libat_cv_have_at_fop_2=yes
13865 fi
13866 else
13867 eval libat_cv_have_at_fop_2=no
13868 fi
13869 CFLAGS="$old_CFLAGS"
13870 fi
13871 rm -f conftest*
13872
13873 fi
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
13875 $as_echo "$libat_cv_have_at_fop_2" >&6; }
13876
13877
13878 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
13879
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_ATOMIC_FETCH_OP_2 $yesno
13882 _ACEOF
13883
13884
13885
13886
13887
13888
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
13890 $as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
13891 if test "${libat_cv_have_at_fop_4+set}" = set; then :
13892 $as_echo_n "(cached) " >&6
13893 else
13894
13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13897
13898 int
13899 main ()
13900 {
13901 typedef int T __attribute__((mode(SI))); T *x, y;
13902 asm("" : "=g"(x), "=g"(y));
13903 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13904 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13905 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13906 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13907 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13908 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13909 ;
13910 return 0;
13911 }
13912 _ACEOF
13913 if test x$atomic_builtins_link_tests = xyes; then
13914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13915 (eval $ac_link) 2>&5
13916 ac_status=$?
13917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13918 test $ac_status = 0; }; then
13919 eval libat_cv_have_at_fop_4=yes
13920 else
13921 eval libat_cv_have_at_fop_4=no
13922 fi
13923 else
13924 old_CFLAGS="$CFLAGS"
13925 # Compile unoptimized.
13926 CFLAGS='-O0 -S'
13927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13928 (eval $ac_compile) 2>&5
13929 ac_status=$?
13930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13931 test $ac_status = 0; }; then
13932 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13933 eval libat_cv_have_at_fop_4=no
13934 else
13935 eval libat_cv_have_at_fop_4=yes
13936 fi
13937 else
13938 eval libat_cv_have_at_fop_4=no
13939 fi
13940 CFLAGS="$old_CFLAGS"
13941 fi
13942 rm -f conftest*
13943
13944 fi
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
13946 $as_echo "$libat_cv_have_at_fop_4" >&6; }
13947
13948
13949 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
13950
13951 cat >>confdefs.h <<_ACEOF
13952 #define HAVE_ATOMIC_FETCH_OP_4 $yesno
13953 _ACEOF
13954
13955
13956
13957
13958
13959
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
13961 $as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
13962 if test "${libat_cv_have_at_fop_8+set}" = set; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13968
13969 int
13970 main ()
13971 {
13972 typedef int T __attribute__((mode(DI))); T *x, y;
13973 asm("" : "=g"(x), "=g"(y));
13974 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13975 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13976 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13977 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13978 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13979 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13980 ;
13981 return 0;
13982 }
13983 _ACEOF
13984 if test x$atomic_builtins_link_tests = xyes; then
13985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13986 (eval $ac_link) 2>&5
13987 ac_status=$?
13988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13989 test $ac_status = 0; }; then
13990 eval libat_cv_have_at_fop_8=yes
13991 else
13992 eval libat_cv_have_at_fop_8=no
13993 fi
13994 else
13995 old_CFLAGS="$CFLAGS"
13996 # Compile unoptimized.
13997 CFLAGS='-O0 -S'
13998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13999 (eval $ac_compile) 2>&5
14000 ac_status=$?
14001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002 test $ac_status = 0; }; then
14003 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14004 eval libat_cv_have_at_fop_8=no
14005 else
14006 eval libat_cv_have_at_fop_8=yes
14007 fi
14008 else
14009 eval libat_cv_have_at_fop_8=no
14010 fi
14011 CFLAGS="$old_CFLAGS"
14012 fi
14013 rm -f conftest*
14014
14015 fi
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14017 $as_echo "$libat_cv_have_at_fop_8" >&6; }
14018
14019
14020 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14021
14022 cat >>confdefs.h <<_ACEOF
14023 #define HAVE_ATOMIC_FETCH_OP_8 $yesno
14024 _ACEOF
14025
14026
14027
14028
14029
14030
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14032 $as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
14033 if test "${libat_cv_have_at_fop_16+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14039
14040 int
14041 main ()
14042 {
14043 typedef int T __attribute__((mode(TI))); T *x, y;
14044 asm("" : "=g"(x), "=g"(y));
14045 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14046 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14047 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14048 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14049 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14050 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14051 ;
14052 return 0;
14053 }
14054 _ACEOF
14055 if test x$atomic_builtins_link_tests = xyes; then
14056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14057 (eval $ac_link) 2>&5
14058 ac_status=$?
14059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14060 test $ac_status = 0; }; then
14061 eval libat_cv_have_at_fop_16=yes
14062 else
14063 eval libat_cv_have_at_fop_16=no
14064 fi
14065 else
14066 old_CFLAGS="$CFLAGS"
14067 # Compile unoptimized.
14068 CFLAGS='-O0 -S'
14069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14070 (eval $ac_compile) 2>&5
14071 ac_status=$?
14072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14073 test $ac_status = 0; }; then
14074 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14075 eval libat_cv_have_at_fop_16=no
14076 else
14077 eval libat_cv_have_at_fop_16=yes
14078 fi
14079 else
14080 eval libat_cv_have_at_fop_16=no
14081 fi
14082 CFLAGS="$old_CFLAGS"
14083 fi
14084 rm -f conftest*
14085
14086 fi
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14088 $as_echo "$libat_cv_have_at_fop_16" >&6; }
14089
14090
14091 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14092
14093 cat >>confdefs.h <<_ACEOF
14094 #define HAVE_ATOMIC_FETCH_OP_16 $yesno
14095 _ACEOF
14096
14097
14098
14099
14100
14101
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14103 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14104 if test "${ac_cv_c_bigendian+set}" = set; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 ac_cv_c_bigendian=unknown
14108 # See if we're dealing with a universal compiler.
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111 #ifndef __APPLE_CC__
14112 not a universal capable compiler
14113 #endif
14114 typedef int dummy;
14115
14116 _ACEOF
14117 if ac_fn_c_try_compile "$LINENO"; then :
14118
14119 # Check for potential -arch flags. It is not universal unless
14120 # there are at least two -arch flags with different values.
14121 ac_arch=
14122 ac_prev=
14123 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14124 if test -n "$ac_prev"; then
14125 case $ac_word in
14126 i?86 | x86_64 | ppc | ppc64)
14127 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14128 ac_arch=$ac_word
14129 else
14130 ac_cv_c_bigendian=universal
14131 break
14132 fi
14133 ;;
14134 esac
14135 ac_prev=
14136 elif test "x$ac_word" = "x-arch"; then
14137 ac_prev=arch
14138 fi
14139 done
14140 fi
14141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14142 if test $ac_cv_c_bigendian = unknown; then
14143 # See if sys/param.h defines the BYTE_ORDER macro.
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <sys/types.h>
14147 #include <sys/param.h>
14148
14149 int
14150 main ()
14151 {
14152 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14153 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14154 && LITTLE_ENDIAN)
14155 bogus endian macros
14156 #endif
14157
14158 ;
14159 return 0;
14160 }
14161 _ACEOF
14162 if ac_fn_c_try_compile "$LINENO"; then :
14163 # It does; now see whether it defined to BIG_ENDIAN or not.
14164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14166 #include <sys/types.h>
14167 #include <sys/param.h>
14168
14169 int
14170 main ()
14171 {
14172 #if BYTE_ORDER != BIG_ENDIAN
14173 not big endian
14174 #endif
14175
14176 ;
14177 return 0;
14178 }
14179 _ACEOF
14180 if ac_fn_c_try_compile "$LINENO"; then :
14181 ac_cv_c_bigendian=yes
14182 else
14183 ac_cv_c_bigendian=no
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14186 fi
14187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14188 fi
14189 if test $ac_cv_c_bigendian = unknown; then
14190 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h. */
14193 #include <limits.h>
14194
14195 int
14196 main ()
14197 {
14198 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14199 bogus endian macros
14200 #endif
14201
14202 ;
14203 return 0;
14204 }
14205 _ACEOF
14206 if ac_fn_c_try_compile "$LINENO"; then :
14207 # It does; now see whether it defined to _BIG_ENDIAN or not.
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 #include <limits.h>
14211
14212 int
14213 main ()
14214 {
14215 #ifndef _BIG_ENDIAN
14216 not big endian
14217 #endif
14218
14219 ;
14220 return 0;
14221 }
14222 _ACEOF
14223 if ac_fn_c_try_compile "$LINENO"; then :
14224 ac_cv_c_bigendian=yes
14225 else
14226 ac_cv_c_bigendian=no
14227 fi
14228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14229 fi
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 fi
14232 if test $ac_cv_c_bigendian = unknown; then
14233 # Compile a test program.
14234 if test "$cross_compiling" = yes; then :
14235 # Try to guess by grepping values from an object file.
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238 short int ascii_mm[] =
14239 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14240 short int ascii_ii[] =
14241 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14242 int use_ascii (int i) {
14243 return ascii_mm[i] + ascii_ii[i];
14244 }
14245 short int ebcdic_ii[] =
14246 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14247 short int ebcdic_mm[] =
14248 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14249 int use_ebcdic (int i) {
14250 return ebcdic_mm[i] + ebcdic_ii[i];
14251 }
14252 extern int foo;
14253
14254 int
14255 main ()
14256 {
14257 return use_ascii (foo) == use_ebcdic (foo);
14258 ;
14259 return 0;
14260 }
14261 _ACEOF
14262 if ac_fn_c_try_compile "$LINENO"; then :
14263 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14264 ac_cv_c_bigendian=yes
14265 fi
14266 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14267 if test "$ac_cv_c_bigendian" = unknown; then
14268 ac_cv_c_bigendian=no
14269 else
14270 # finding both strings is unlikely to happen, but who knows?
14271 ac_cv_c_bigendian=unknown
14272 fi
14273 fi
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14276 else
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 $ac_includes_default
14280 int
14281 main ()
14282 {
14283
14284 /* Are we little or big endian? From Harbison&Steele. */
14285 union
14286 {
14287 long int l;
14288 char c[sizeof (long int)];
14289 } u;
14290 u.l = 1;
14291 return u.c[sizeof (long int) - 1] == 1;
14292
14293 ;
14294 return 0;
14295 }
14296 _ACEOF
14297 if ac_fn_c_try_run "$LINENO"; then :
14298 ac_cv_c_bigendian=no
14299 else
14300 ac_cv_c_bigendian=yes
14301 fi
14302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14303 conftest.$ac_objext conftest.beam conftest.$ac_ext
14304 fi
14305
14306 fi
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14309 $as_echo "$ac_cv_c_bigendian" >&6; }
14310 case $ac_cv_c_bigendian in #(
14311 yes)
14312 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14313 ;; #(
14314 no)
14315 ;; #(
14316 universal)
14317
14318 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14319
14320 ;; #(
14321 *)
14322 as_fn_error "unknown endianness
14323 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14324 esac
14325
14326 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14327
14328
14329
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14331 $as_echo_n "checking for the word size... " >&6; }
14332 if test "${libat_cv_wordsize+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14336
14337 else
14338 as_fn_error "Could not determine word size." "$LINENO" 5
14339 fi
14340
14341 fi
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14343 $as_echo "$libat_cv_wordsize" >&6; }
14344
14345 cat >>confdefs.h <<_ACEOF
14346 #define WORDSIZE $libat_cv_wordsize
14347 _ACEOF
14348
14349
14350
14351 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14352 # In case the pthread.h system header is not found, this test will fail.
14353 case " $config_path " in
14354 *" posix "*)
14355 XPCFLAGS=""
14356 CFLAGS="$CFLAGS -pthread"
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14359 #include <pthread.h>
14360 void *g(void *d) { return NULL; }
14361 int
14362 main ()
14363 {
14364 pthread_t t; pthread_create(&t,NULL,g,NULL);
14365 ;
14366 return 0;
14367 }
14368 _ACEOF
14369 if ac_fn_c_try_link "$LINENO"; then :
14370 XPCFLAGS=" -pthread"
14371 else
14372 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h. */
14375 #include <pthread.h>
14376 void *g(void *d) { return NULL; }
14377 int
14378 main ()
14379 {
14380 pthread_t t; pthread_create(&t,NULL,g,NULL);
14381 ;
14382 return 0;
14383 }
14384 _ACEOF
14385 if ac_fn_c_try_link "$LINENO"; then :
14386
14387 else
14388 as_fn_error "Pthreads are required to build libatomic" "$LINENO" 5
14389 fi
14390 rm -f core conftest.err conftest.$ac_objext \
14391 conftest$ac_exeext conftest.$ac_ext
14392 fi
14393 rm -f core conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14395 CFLAGS="$save_CFLAGS $XCFLAGS"
14396 ;;
14397 esac
14398
14399 # See what sort of export controls are available.
14400
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14402 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
14403 if test "${libat_cv_have_attribute_visibility+set}" = set; then :
14404 $as_echo_n "(cached) " >&6
14405 else
14406
14407 save_CFLAGS="$CFLAGS"
14408 CFLAGS="$CFLAGS -Werror"
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411 void __attribute__((visibility("hidden"))) foo(void) { }
14412 int
14413 main ()
14414 {
14415
14416 ;
14417 return 0;
14418 }
14419 _ACEOF
14420 if ac_fn_c_try_compile "$LINENO"; then :
14421 libat_cv_have_attribute_visibility=yes
14422 else
14423 libat_cv_have_attribute_visibility=no
14424 fi
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 CFLAGS="$save_CFLAGS"
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
14429 $as_echo "$libat_cv_have_attribute_visibility" >&6; }
14430 if test $libat_cv_have_attribute_visibility = yes; then
14431
14432 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14433
14434 fi
14435
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14437 $as_echo_n "checking whether the target supports dllexport... " >&6; }
14438 if test "${libat_cv_have_attribute_dllexport+set}" = set; then :
14439 $as_echo_n "(cached) " >&6
14440 else
14441
14442 save_CFLAGS="$CFLAGS"
14443 CFLAGS="$CFLAGS -Werror"
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 void __attribute__((dllexport)) foo(void) { }
14447 int
14448 main ()
14449 {
14450
14451 ;
14452 return 0;
14453 }
14454 _ACEOF
14455 if ac_fn_c_try_compile "$LINENO"; then :
14456 libat_cv_have_attribute_dllexport=yes
14457 else
14458 libat_cv_have_attribute_dllexport=no
14459 fi
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461 CFLAGS="$save_CFLAGS"
14462 fi
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
14464 $as_echo "$libat_cv_have_attribute_dllexport" >&6; }
14465 if test $libat_cv_have_attribute_dllexport = yes; then
14466
14467 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14468
14469 fi
14470
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14472 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
14473 if test "${libat_cv_have_attribute_alias+set}" = set; then :
14474 $as_echo_n "(cached) " >&6
14475 else
14476
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479
14480 void foo(void) { }
14481 extern void bar(void) __attribute__((alias("foo")));
14482 int
14483 main ()
14484 {
14485 bar();
14486 ;
14487 return 0;
14488 }
14489 _ACEOF
14490 if ac_fn_c_try_link "$LINENO"; then :
14491 libat_cv_have_attribute_alias=yes
14492 else
14493 libat_cv_have_attribute_alias=no
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext \
14496 conftest$ac_exeext conftest.$ac_ext
14497 fi
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
14499 $as_echo "$libat_cv_have_attribute_alias" >&6; }
14500 if test $libat_cv_have_attribute_alias = yes; then
14501
14502 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
14503
14504 fi
14505 if test x$try_ifunc = xyes; then
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports funcs" >&5
14508 $as_echo_n "checking whether the target supports funcs... " >&6; }
14509 if test "${libat_cv_have_ifunc+set}" = set; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512
14513 save_CFLAGS="$CFLAGS"
14514 CFLAGS="$CFLAGS -Werror"
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517
14518 int foo_alt(void) { return 0; }
14519 void *foo_sel(void) { return foo_alt; }
14520 int foo(void) __attribute__((ifunc("foo_sel")));
14521 int
14522 main ()
14523 {
14524 return foo();
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_link "$LINENO"; then :
14530 libat_cv_have_ifunc=yes
14531 else
14532 libat_cv_have_ifunc=no
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 fi
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
14538 $as_echo "$libat_cv_have_ifunc" >&6; }
14539
14540 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
14541
14542 cat >>confdefs.h <<_ACEOF
14543 #define HAVE_IFUNC $yesno
14544 _ACEOF
14545
14546
14547
14548 fi
14549
14550 # Check linker support.
14551
14552
14553 # Check whether --with-gnu-ld was given.
14554 if test "${with_gnu_ld+set}" = set; then :
14555 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14556 else
14557 with_gnu_ld=no
14558 fi
14559
14560 ac_prog=ld
14561 if test "$GCC" = yes; then
14562 # Check if gcc -print-prog-name=ld gives a path.
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14564 $as_echo_n "checking for ld used by $CC... " >&6; }
14565 case $host in
14566 *-*-mingw*)
14567 # gcc leaves a trailing carriage return which upsets mingw
14568 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14569 *)
14570 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14571 esac
14572 case $ac_prog in
14573 # Accept absolute paths.
14574 [\\/]* | ?:[\\/]*)
14575 re_direlt='/[^/][^/]*/\.\./'
14576 # Canonicalize the pathname of ld
14577 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14578 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14579 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14580 done
14581 test -z "$LD" && LD="$ac_prog"
14582 ;;
14583 "")
14584 # If it fails, then pretend we aren't using GCC.
14585 ac_prog=ld
14586 ;;
14587 *)
14588 # If it is relative, then search for the first ld in PATH.
14589 with_gnu_ld=unknown
14590 ;;
14591 esac
14592 elif test "$with_gnu_ld" = yes; then
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14594 $as_echo_n "checking for GNU ld... " >&6; }
14595 else
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14597 $as_echo_n "checking for non-GNU ld... " >&6; }
14598 fi
14599 if test "${lt_cv_path_LD+set}" = set; then :
14600 $as_echo_n "(cached) " >&6
14601 else
14602 if test -z "$LD"; then
14603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14604 for ac_dir in $PATH; do
14605 IFS="$lt_save_ifs"
14606 test -z "$ac_dir" && ac_dir=.
14607 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14608 lt_cv_path_LD="$ac_dir/$ac_prog"
14609 # Check to see if the program is GNU ld. I'd rather use --version,
14610 # but apparently some variants of GNU ld only accept -v.
14611 # Break only if it was the GNU/non-GNU ld that we prefer.
14612 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14613 *GNU* | *'with BFD'*)
14614 test "$with_gnu_ld" != no && break
14615 ;;
14616 *)
14617 test "$with_gnu_ld" != yes && break
14618 ;;
14619 esac
14620 fi
14621 done
14622 IFS="$lt_save_ifs"
14623 else
14624 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14625 fi
14626 fi
14627
14628 LD="$lt_cv_path_LD"
14629 if test -n "$LD"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14631 $as_echo "$LD" >&6; }
14632 else
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14635 fi
14636 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14638 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14639 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14643 case `$LD -v 2>&1 </dev/null` in
14644 *GNU* | *'with BFD'*)
14645 lt_cv_prog_gnu_ld=yes
14646 ;;
14647 *)
14648 lt_cv_prog_gnu_ld=no
14649 ;;
14650 esac
14651 fi
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14653 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14654 with_gnu_ld=$lt_cv_prog_gnu_ld
14655
14656
14657
14658
14659
14660
14661
14662 # If we're not using GNU ld, then there's no point in even trying these
14663 # tests. Check for that first. We should have already tested for gld
14664 # by now (in libtool), but require it now just to be safe...
14665 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
14666 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
14667
14668
14669
14670 # The name set by libtool depends on the version of libtool. Shame on us
14671 # for depending on an impl detail, but c'est la vie. Older versions used
14672 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
14673 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
14674 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
14675 # set (hence we're using an older libtool), then set it.
14676 if test x${with_gnu_ld+set} != xset; then
14677 if test x${ac_cv_prog_gnu_ld+set} != xset; then
14678 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
14679 with_gnu_ld=no
14680 else
14681 with_gnu_ld=$ac_cv_prog_gnu_ld
14682 fi
14683 fi
14684
14685 # Start by getting the version number. I think the libtool test already
14686 # does some of this, but throws away the result.
14687 libat_ld_is_gold=no
14688 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
14689 libat_ld_is_gold=yes
14690 fi
14691
14692 ldver=`$LD --version 2>/dev/null |
14693 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
14694
14695 libat_gnu_ld_version=`echo $ldver | \
14696 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
14697
14698 # Set --gc-sections.
14699 if test "$with_gnu_ld" = "notbroken"; then
14700 # GNU ld it is! Joy and bunny rabbits!
14701
14702 # All these tests are for C++; save the language and the compiler flags.
14703 # Need to do this so that g++ won't try to link in libstdc++
14704 ac_test_CFLAGS="${CFLAGS+set}"
14705 ac_save_CFLAGS="$CFLAGS"
14706 CFLAGS='-x c++ -Wl,--gc-sections'
14707
14708 # Check for -Wl,--gc-sections
14709 # XXX This test is broken at the moment, as symbols required for linking
14710 # are now in libsupc++ (not built yet). In addition, this test has
14711 # cored on solaris in the past. In addition, --gc-sections doesn't
14712 # really work at the moment (keeps on discarding used sections, first
14713 # .eh_frame and now some of the glibc sections for iconv).
14714 # Bzzzzt. Thanks for playing, maybe next time.
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
14716 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
14717 if test "$cross_compiling" = yes; then :
14718 ac_sectionLDflags=yes
14719 else
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14722
14723 int main(void)
14724 {
14725 try { throw 1; }
14726 catch (...) { };
14727 return 0;
14728 }
14729
14730 _ACEOF
14731 if ac_fn_c_try_run "$LINENO"; then :
14732 ac_sectionLDflags=yes
14733 else
14734 ac_sectionLDflags=no
14735 fi
14736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14737 conftest.$ac_objext conftest.beam conftest.$ac_ext
14738 fi
14739
14740 if test "$ac_test_CFLAGS" = set; then
14741 CFLAGS="$ac_save_CFLAGS"
14742 else
14743 # this is the suspicious part
14744 CFLAGS=''
14745 fi
14746 if test "$ac_sectionLDflags" = "yes"; then
14747 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
14748 fi
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
14750 $as_echo "$ac_sectionLDflags" >&6; }
14751 fi
14752
14753 # Set linker optimization flags.
14754 if test x"$with_gnu_ld" = x"yes"; then
14755 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
14756 fi
14757
14758
14759
14760
14761
14762
14763 # Check whether --enable-symvers was given.
14764 if test "${enable_symvers+set}" = set; then :
14765 enableval=$enable_symvers;
14766 case "$enableval" in
14767 yes|no|gnu*|sun) ;;
14768 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
14769 esac
14770
14771 else
14772 enable_symvers=yes
14773 fi
14774
14775
14776
14777 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
14778 # don't know enough about $LD to do tricks...
14779
14780
14781 # Turn a 'yes' into a suitable default.
14782 if test x$enable_symvers = xyes ; then
14783 # FIXME The following test is too strict, in theory.
14784 if test $enable_shared = no || test "x$LD" = x; then
14785 enable_symvers=no
14786 else
14787 if test $with_gnu_ld = yes ; then
14788 enable_symvers=gnu
14789 else
14790 case ${target_os} in
14791 # Sun symbol versioning exists since Solaris 2.5.
14792 solaris2.[5-9]* | solaris2.1[0-9]*)
14793 enable_symvers=sun ;;
14794 *)
14795 enable_symvers=no ;;
14796 esac
14797 fi
14798 fi
14799 fi
14800
14801 # Check if 'sun' was requested on non-Solaris 2 platforms.
14802 if test x$enable_symvers = xsun ; then
14803 case ${target_os} in
14804 solaris2*)
14805 # All fine.
14806 ;;
14807 *)
14808 # Unlikely to work.
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
14810 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
14812 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14814 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14815 enable_symvers=no
14816 ;;
14817 esac
14818 fi
14819
14820 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
14821 if test $enable_symvers != no; then
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
14823 $as_echo_n "checking for shared libgcc... " >&6; }
14824 ac_save_CFLAGS="$CFLAGS"
14825 CFLAGS=' -lgcc_s'
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14828
14829 int
14830 main ()
14831 {
14832 return 0;
14833 ;
14834 return 0;
14835 }
14836 _ACEOF
14837 if ac_fn_c_try_link "$LINENO"; then :
14838 libat_shared_libgcc=yes
14839 else
14840 libat_shared_libgcc=no
14841 fi
14842 rm -f core conftest.err conftest.$ac_objext \
14843 conftest$ac_exeext conftest.$ac_ext
14844 CFLAGS="$ac_save_CFLAGS"
14845 if test $libat_shared_libgcc = no; then
14846 cat > conftest.c <<EOF
14847 int main (void) { return 0; }
14848 EOF
14849 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
14850 -shared -shared-libgcc -o conftest.so \
14851 conftest.c -v 2>&1 >/dev/null \
14852 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
14853 rm -f conftest.c conftest.so
14854 if test x${libat_libgcc_s_suffix+set} = xset; then
14855 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h. */
14858
14859 int
14860 main ()
14861 {
14862 return 0;
14863 ;
14864 return 0;
14865 }
14866 _ACEOF
14867 if ac_fn_c_try_link "$LINENO"; then :
14868 libat_shared_libgcc=yes
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext \
14871 conftest$ac_exeext conftest.$ac_ext
14872 CFLAGS="$ac_save_CFLAGS"
14873 fi
14874 fi
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
14876 $as_echo "$libat_shared_libgcc" >&6; }
14877 fi
14878
14879 # For GNU ld, we need at least this version. The format is described in
14880 # LIBAT_CHECK_LINKER_FEATURES above.
14881 libat_min_gnu_ld_version=21400
14882 # XXXXXXXXXXX libat_gnu_ld_version=21390
14883
14884 # Check to see if unspecified "yes" value can win, given results above.
14885 # Change "yes" into either "no" or a style name.
14886 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
14887 if test $with_gnu_ld = yes; then
14888 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
14889 enable_symvers=gnu
14890 elif test $libat_ld_is_gold = yes ; then
14891 enable_symvers=gnu
14892 else
14893 # The right tools, the right setup, but too old. Fallbacks?
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
14895 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
14897 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
14899 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
14901 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
14902 if test $libat_gnu_ld_version -ge 21200 ; then
14903 # Globbing fix is present, proper block support is not.
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14905 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14906 enable_symvers=no
14907 else
14908 # 2.11 or older.
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14910 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14911 enable_symvers=no
14912 fi
14913 fi
14914 elif test $enable_symvers = sun; then
14915 : All interesting versions of Sun ld support sun style symbol versioning.
14916 else
14917 # just fail for now
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
14919 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
14921 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
14923 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14925 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14926 enable_symvers=no
14927 fi
14928 fi
14929 if test $enable_symvers = gnu; then
14930
14931 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
14932
14933 fi
14934
14935 if test $enable_symvers != no; then
14936 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
14937 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
14938 else
14939 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
14940 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
14941 fi
14942
14943 if test $enable_symvers = gnu; then
14944 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
14945 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
14946 else
14947 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
14948 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
14949 fi
14950
14951 if test $enable_symvers = sun; then
14952 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
14953 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
14954 else
14955 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
14956 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
14957 fi
14958
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
14960 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
14961
14962
14963 # Cleanup and exit.
14964 CFLAGS="$save_CFLAGS"
14965 cat >confcache <<\_ACEOF
14966 # This file is a shell script that caches the results of configure
14967 # tests run on this system so they can be shared between configure
14968 # scripts and configure runs, see configure's option --config-cache.
14969 # It is not useful on other systems. If it contains results you don't
14970 # want to keep, you may remove or edit it.
14971 #
14972 # config.status only pays attention to the cache file if you give it
14973 # the --recheck option to rerun configure.
14974 #
14975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14977 # following values.
14978
14979 _ACEOF
14980
14981 # The following way of writing the cache mishandles newlines in values,
14982 # but we know of no workaround that is simple, portable, and efficient.
14983 # So, we kill variables containing newlines.
14984 # Ultrix sh set writes to stderr and can't be redirected directly,
14985 # and sets the high bit in the cache file unless we assign to the vars.
14986 (
14987 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14988 eval ac_val=\$$ac_var
14989 case $ac_val in #(
14990 *${as_nl}*)
14991 case $ac_var in #(
14992 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14994 esac
14995 case $ac_var in #(
14996 _ | IFS | as_nl) ;; #(
14997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14998 *) { eval $ac_var=; unset $ac_var;} ;;
14999 esac ;;
15000 esac
15001 done
15002
15003 (set) 2>&1 |
15004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15005 *${as_nl}ac_space=\ *)
15006 # `set' does not quote correctly, so add quotes: double-quote
15007 # substitution turns \\\\ into \\, and sed turns \\ into \.
15008 sed -n \
15009 "s/'/'\\\\''/g;
15010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15011 ;; #(
15012 *)
15013 # `set' quotes correctly as required by POSIX, so do not add quotes.
15014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15015 ;;
15016 esac |
15017 sort
15018 ) |
15019 sed '
15020 /^ac_cv_env_/b end
15021 t clear
15022 :clear
15023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15024 t end
15025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15026 :end' >>confcache
15027 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15028 if test -w "$cache_file"; then
15029 test "x$cache_file" != "x/dev/null" &&
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15031 $as_echo "$as_me: updating cache $cache_file" >&6;}
15032 cat confcache >$cache_file
15033 else
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15036 fi
15037 fi
15038 rm -f confcache
15039
15040 # Add -Wall -Werror if we are using GCC.
15041 if test "x$GCC" = "xyes"; then
15042 XCFLAGS="$XCFLAGS -Wall -Werror"
15043 fi
15044
15045 XCFLAGS="$XCFLAGS $XPCFLAGS"
15046
15047
15048
15049
15050
15051
15052
15053 if test x$libat_cv_have_ifunc = xyes; then
15054 HAVE_IFUNC_TRUE=
15055 HAVE_IFUNC_FALSE='#'
15056 else
15057 HAVE_IFUNC_TRUE='#'
15058 HAVE_IFUNC_FALSE=
15059 fi
15060
15061 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
15062 ARCH_ARM_LINUX_TRUE=
15063 ARCH_ARM_LINUX_FALSE='#'
15064 else
15065 ARCH_ARM_LINUX_TRUE='#'
15066 ARCH_ARM_LINUX_FALSE=
15067 fi
15068
15069 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
15070 ARCH_I386_TRUE=
15071 ARCH_I386_FALSE='#'
15072 else
15073 ARCH_I386_TRUE='#'
15074 ARCH_I386_FALSE=
15075 fi
15076
15077 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
15078 ARCH_X86_64_TRUE=
15079 ARCH_X86_64_FALSE='#'
15080 else
15081 ARCH_X86_64_TRUE='#'
15082 ARCH_X86_64_FALSE=
15083 fi
15084
15085
15086 if test ${multilib} = yes; then
15087 multilib_arg="--enable-multilib"
15088 else
15089 multilib_arg=
15090 fi
15091
15092 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15093
15094 cat >confcache <<\_ACEOF
15095 # This file is a shell script that caches the results of configure
15096 # tests run on this system so they can be shared between configure
15097 # scripts and configure runs, see configure's option --config-cache.
15098 # It is not useful on other systems. If it contains results you don't
15099 # want to keep, you may remove or edit it.
15100 #
15101 # config.status only pays attention to the cache file if you give it
15102 # the --recheck option to rerun configure.
15103 #
15104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15106 # following values.
15107
15108 _ACEOF
15109
15110 # The following way of writing the cache mishandles newlines in values,
15111 # but we know of no workaround that is simple, portable, and efficient.
15112 # So, we kill variables containing newlines.
15113 # Ultrix sh set writes to stderr and can't be redirected directly,
15114 # and sets the high bit in the cache file unless we assign to the vars.
15115 (
15116 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15117 eval ac_val=\$$ac_var
15118 case $ac_val in #(
15119 *${as_nl}*)
15120 case $ac_var in #(
15121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15123 esac
15124 case $ac_var in #(
15125 _ | IFS | as_nl) ;; #(
15126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15127 *) { eval $ac_var=; unset $ac_var;} ;;
15128 esac ;;
15129 esac
15130 done
15131
15132 (set) 2>&1 |
15133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15134 *${as_nl}ac_space=\ *)
15135 # `set' does not quote correctly, so add quotes: double-quote
15136 # substitution turns \\\\ into \\, and sed turns \\ into \.
15137 sed -n \
15138 "s/'/'\\\\''/g;
15139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15140 ;; #(
15141 *)
15142 # `set' quotes correctly as required by POSIX, so do not add quotes.
15143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15144 ;;
15145 esac |
15146 sort
15147 ) |
15148 sed '
15149 /^ac_cv_env_/b end
15150 t clear
15151 :clear
15152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15153 t end
15154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15155 :end' >>confcache
15156 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15157 if test -w "$cache_file"; then
15158 test "x$cache_file" != "x/dev/null" &&
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15160 $as_echo "$as_me: updating cache $cache_file" >&6;}
15161 cat confcache >$cache_file
15162 else
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15164 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15165 fi
15166 fi
15167 rm -f confcache
15168
15169 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15170 # Let make expand exec_prefix.
15171 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15172
15173 DEFS=-DHAVE_CONFIG_H
15174
15175 ac_libobjs=
15176 ac_ltlibobjs=
15177 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15178 # 1. Remove the extension, and $U if already installed.
15179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15180 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15182 # will be set to the directory where LIBOBJS objects are built.
15183 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15184 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15185 done
15186 LIBOBJS=$ac_libobjs
15187
15188 LTLIBOBJS=$ac_ltlibobjs
15189
15190
15191 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
15192 as_fn_error "conditional \"GENINSRC\" was never defined.
15193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15194 fi
15195 if test -n "$EXEEXT"; then
15196 am__EXEEXT_TRUE=
15197 am__EXEEXT_FALSE='#'
15198 else
15199 am__EXEEXT_TRUE='#'
15200 am__EXEEXT_FALSE=
15201 fi
15202
15203 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15204 as_fn_error "conditional \"AMDEP\" was never defined.
15205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15206 fi
15207 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15208 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15210 fi
15211 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15212 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
15213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15214 fi
15215
15216 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
15217 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
15218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15219 fi
15220 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
15221 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
15222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15223 fi
15224 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
15225 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
15226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15227 fi
15228 if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
15229 as_fn_error "conditional \"HAVE_IFUNC\" was never defined.
15230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15231 fi
15232 if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
15233 as_fn_error "conditional \"ARCH_ARM_LINUX\" was never defined.
15234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15235 fi
15236 if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
15237 as_fn_error "conditional \"ARCH_I386\" was never defined.
15238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15239 fi
15240 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
15241 as_fn_error "conditional \"ARCH_X86_64\" was never defined.
15242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15243 fi
15244
15245 : ${CONFIG_STATUS=./config.status}
15246 ac_write_fail=0
15247 ac_clean_files_save=$ac_clean_files
15248 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15250 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15251 as_write_fail=0
15252 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15253 #! $SHELL
15254 # Generated by $as_me.
15255 # Run this file to recreate the current configuration.
15256 # Compiler output produced by configure, useful for debugging
15257 # configure, is in config.log if it exists.
15258
15259 debug=false
15260 ac_cs_recheck=false
15261 ac_cs_silent=false
15262
15263 SHELL=\${CONFIG_SHELL-$SHELL}
15264 export SHELL
15265 _ASEOF
15266 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15267 ## -------------------- ##
15268 ## M4sh Initialization. ##
15269 ## -------------------- ##
15270
15271 # Be more Bourne compatible
15272 DUALCASE=1; export DUALCASE # for MKS sh
15273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15274 emulate sh
15275 NULLCMD=:
15276 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15277 # is contrary to our usage. Disable this feature.
15278 alias -g '${1+"$@"}'='"$@"'
15279 setopt NO_GLOB_SUBST
15280 else
15281 case `(set -o) 2>/dev/null` in #(
15282 *posix*) :
15283 set -o posix ;; #(
15284 *) :
15285 ;;
15286 esac
15287 fi
15288
15289
15290 as_nl='
15291 '
15292 export as_nl
15293 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15294 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15296 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15297 # Prefer a ksh shell builtin over an external printf program on Solaris,
15298 # but without wasting forks for bash or zsh.
15299 if test -z "$BASH_VERSION$ZSH_VERSION" \
15300 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15301 as_echo='print -r --'
15302 as_echo_n='print -rn --'
15303 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15304 as_echo='printf %s\n'
15305 as_echo_n='printf %s'
15306 else
15307 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15308 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15309 as_echo_n='/usr/ucb/echo -n'
15310 else
15311 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15312 as_echo_n_body='eval
15313 arg=$1;
15314 case $arg in #(
15315 *"$as_nl"*)
15316 expr "X$arg" : "X\\(.*\\)$as_nl";
15317 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15318 esac;
15319 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15320 '
15321 export as_echo_n_body
15322 as_echo_n='sh -c $as_echo_n_body as_echo'
15323 fi
15324 export as_echo_body
15325 as_echo='sh -c $as_echo_body as_echo'
15326 fi
15327
15328 # The user is always right.
15329 if test "${PATH_SEPARATOR+set}" != set; then
15330 PATH_SEPARATOR=:
15331 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15332 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15333 PATH_SEPARATOR=';'
15334 }
15335 fi
15336
15337
15338 # IFS
15339 # We need space, tab and new line, in precisely that order. Quoting is
15340 # there to prevent editors from complaining about space-tab.
15341 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15342 # splitting by setting IFS to empty value.)
15343 IFS=" "" $as_nl"
15344
15345 # Find who we are. Look in the path if we contain no directory separator.
15346 case $0 in #((
15347 *[\\/]* ) as_myself=$0 ;;
15348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15349 for as_dir in $PATH
15350 do
15351 IFS=$as_save_IFS
15352 test -z "$as_dir" && as_dir=.
15353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15354 done
15355 IFS=$as_save_IFS
15356
15357 ;;
15358 esac
15359 # We did not find ourselves, most probably we were run as `sh COMMAND'
15360 # in which case we are not to be found in the path.
15361 if test "x$as_myself" = x; then
15362 as_myself=$0
15363 fi
15364 if test ! -f "$as_myself"; then
15365 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15366 exit 1
15367 fi
15368
15369 # Unset variables that we do not need and which cause bugs (e.g. in
15370 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15371 # suppresses any "Segmentation fault" message there. '((' could
15372 # trigger a bug in pdksh 5.2.14.
15373 for as_var in BASH_ENV ENV MAIL MAILPATH
15374 do eval test x\${$as_var+set} = xset \
15375 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15376 done
15377 PS1='$ '
15378 PS2='> '
15379 PS4='+ '
15380
15381 # NLS nuisances.
15382 LC_ALL=C
15383 export LC_ALL
15384 LANGUAGE=C
15385 export LANGUAGE
15386
15387 # CDPATH.
15388 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15389
15390
15391 # as_fn_error ERROR [LINENO LOG_FD]
15392 # ---------------------------------
15393 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15394 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15395 # script with status $?, using 1 if that was 0.
15396 as_fn_error ()
15397 {
15398 as_status=$?; test $as_status -eq 0 && as_status=1
15399 if test "$3"; then
15400 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15401 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15402 fi
15403 $as_echo "$as_me: error: $1" >&2
15404 as_fn_exit $as_status
15405 } # as_fn_error
15406
15407
15408 # as_fn_set_status STATUS
15409 # -----------------------
15410 # Set $? to STATUS, without forking.
15411 as_fn_set_status ()
15412 {
15413 return $1
15414 } # as_fn_set_status
15415
15416 # as_fn_exit STATUS
15417 # -----------------
15418 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15419 as_fn_exit ()
15420 {
15421 set +e
15422 as_fn_set_status $1
15423 exit $1
15424 } # as_fn_exit
15425
15426 # as_fn_unset VAR
15427 # ---------------
15428 # Portably unset VAR.
15429 as_fn_unset ()
15430 {
15431 { eval $1=; unset $1;}
15432 }
15433 as_unset=as_fn_unset
15434 # as_fn_append VAR VALUE
15435 # ----------------------
15436 # Append the text in VALUE to the end of the definition contained in VAR. Take
15437 # advantage of any shell optimizations that allow amortized linear growth over
15438 # repeated appends, instead of the typical quadratic growth present in naive
15439 # implementations.
15440 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15441 eval 'as_fn_append ()
15442 {
15443 eval $1+=\$2
15444 }'
15445 else
15446 as_fn_append ()
15447 {
15448 eval $1=\$$1\$2
15449 }
15450 fi # as_fn_append
15451
15452 # as_fn_arith ARG...
15453 # ------------------
15454 # Perform arithmetic evaluation on the ARGs, and store the result in the
15455 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15456 # must be portable across $(()) and expr.
15457 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15458 eval 'as_fn_arith ()
15459 {
15460 as_val=$(( $* ))
15461 }'
15462 else
15463 as_fn_arith ()
15464 {
15465 as_val=`expr "$@" || test $? -eq 1`
15466 }
15467 fi # as_fn_arith
15468
15469
15470 if expr a : '\(a\)' >/dev/null 2>&1 &&
15471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15472 as_expr=expr
15473 else
15474 as_expr=false
15475 fi
15476
15477 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15478 as_basename=basename
15479 else
15480 as_basename=false
15481 fi
15482
15483 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15484 as_dirname=dirname
15485 else
15486 as_dirname=false
15487 fi
15488
15489 as_me=`$as_basename -- "$0" ||
15490 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15491 X"$0" : 'X\(//\)$' \| \
15492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15493 $as_echo X/"$0" |
15494 sed '/^.*\/\([^/][^/]*\)\/*$/{
15495 s//\1/
15496 q
15497 }
15498 /^X\/\(\/\/\)$/{
15499 s//\1/
15500 q
15501 }
15502 /^X\/\(\/\).*/{
15503 s//\1/
15504 q
15505 }
15506 s/.*/./; q'`
15507
15508 # Avoid depending upon Character Ranges.
15509 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15510 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15511 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15512 as_cr_digits='0123456789'
15513 as_cr_alnum=$as_cr_Letters$as_cr_digits
15514
15515 ECHO_C= ECHO_N= ECHO_T=
15516 case `echo -n x` in #(((((
15517 -n*)
15518 case `echo 'xy\c'` in
15519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15520 xy) ECHO_C='\c';;
15521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15522 ECHO_T=' ';;
15523 esac;;
15524 *)
15525 ECHO_N='-n';;
15526 esac
15527
15528 rm -f conf$$ conf$$.exe conf$$.file
15529 if test -d conf$$.dir; then
15530 rm -f conf$$.dir/conf$$.file
15531 else
15532 rm -f conf$$.dir
15533 mkdir conf$$.dir 2>/dev/null
15534 fi
15535 if (echo >conf$$.file) 2>/dev/null; then
15536 if ln -s conf$$.file conf$$ 2>/dev/null; then
15537 as_ln_s='ln -s'
15538 # ... but there are two gotchas:
15539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15541 # In both cases, we have to default to `cp -p'.
15542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15543 as_ln_s='cp -p'
15544 elif ln conf$$.file conf$$ 2>/dev/null; then
15545 as_ln_s=ln
15546 else
15547 as_ln_s='cp -p'
15548 fi
15549 else
15550 as_ln_s='cp -p'
15551 fi
15552 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15553 rmdir conf$$.dir 2>/dev/null
15554
15555
15556 # as_fn_mkdir_p
15557 # -------------
15558 # Create "$as_dir" as a directory, including parents if necessary.
15559 as_fn_mkdir_p ()
15560 {
15561
15562 case $as_dir in #(
15563 -*) as_dir=./$as_dir;;
15564 esac
15565 test -d "$as_dir" || eval $as_mkdir_p || {
15566 as_dirs=
15567 while :; do
15568 case $as_dir in #(
15569 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15570 *) as_qdir=$as_dir;;
15571 esac
15572 as_dirs="'$as_qdir' $as_dirs"
15573 as_dir=`$as_dirname -- "$as_dir" ||
15574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15575 X"$as_dir" : 'X\(//\)[^/]' \| \
15576 X"$as_dir" : 'X\(//\)$' \| \
15577 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15578 $as_echo X"$as_dir" |
15579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15580 s//\1/
15581 q
15582 }
15583 /^X\(\/\/\)[^/].*/{
15584 s//\1/
15585 q
15586 }
15587 /^X\(\/\/\)$/{
15588 s//\1/
15589 q
15590 }
15591 /^X\(\/\).*/{
15592 s//\1/
15593 q
15594 }
15595 s/.*/./; q'`
15596 test -d "$as_dir" && break
15597 done
15598 test -z "$as_dirs" || eval "mkdir $as_dirs"
15599 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15600
15601
15602 } # as_fn_mkdir_p
15603 if mkdir -p . 2>/dev/null; then
15604 as_mkdir_p='mkdir -p "$as_dir"'
15605 else
15606 test -d ./-p && rmdir ./-p
15607 as_mkdir_p=false
15608 fi
15609
15610 if test -x / >/dev/null 2>&1; then
15611 as_test_x='test -x'
15612 else
15613 if ls -dL / >/dev/null 2>&1; then
15614 as_ls_L_option=L
15615 else
15616 as_ls_L_option=
15617 fi
15618 as_test_x='
15619 eval sh -c '\''
15620 if test -d "$1"; then
15621 test -d "$1/.";
15622 else
15623 case $1 in #(
15624 -*)set "./$1";;
15625 esac;
15626 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15627 ???[sx]*):;;*)false;;esac;fi
15628 '\'' sh
15629 '
15630 fi
15631 as_executable_p=$as_test_x
15632
15633 # Sed expression to map a string onto a valid CPP name.
15634 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15635
15636 # Sed expression to map a string onto a valid variable name.
15637 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15638
15639
15640 exec 6>&1
15641 ## ----------------------------------- ##
15642 ## Main body of $CONFIG_STATUS script. ##
15643 ## ----------------------------------- ##
15644 _ASEOF
15645 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15646
15647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15648 # Save the log message, to keep $0 and so on meaningful, and to
15649 # report actual input values of CONFIG_FILES etc. instead of their
15650 # values after options handling.
15651 ac_log="
15652 This file was extended by GNU Atomic Library $as_me 1.0, which was
15653 generated by GNU Autoconf 2.64. Invocation command line was
15654
15655 CONFIG_FILES = $CONFIG_FILES
15656 CONFIG_HEADERS = $CONFIG_HEADERS
15657 CONFIG_LINKS = $CONFIG_LINKS
15658 CONFIG_COMMANDS = $CONFIG_COMMANDS
15659 $ $0 $@
15660
15661 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15662 "
15663
15664 _ACEOF
15665
15666 case $ac_config_files in *"
15667 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15668 esac
15669
15670 case $ac_config_headers in *"
15671 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15672 esac
15673
15674
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676 # Files that config.status was made for.
15677 config_files="$ac_config_files"
15678 config_headers="$ac_config_headers"
15679 config_commands="$ac_config_commands"
15680
15681 _ACEOF
15682
15683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15684 ac_cs_usage="\
15685 \`$as_me' instantiates files and other configuration actions
15686 from templates according to the current configuration. Unless the files
15687 and actions are specified as TAGs, all are instantiated by default.
15688
15689 Usage: $0 [OPTION]... [TAG]...
15690
15691 -h, --help print this help, then exit
15692 -V, --version print version number and configuration settings, then exit
15693 -q, --quiet, --silent
15694 do not print progress messages
15695 -d, --debug don't remove temporary files
15696 --recheck update $as_me by reconfiguring in the same conditions
15697 --file=FILE[:TEMPLATE]
15698 instantiate the configuration file FILE
15699 --header=FILE[:TEMPLATE]
15700 instantiate the configuration header FILE
15701
15702 Configuration files:
15703 $config_files
15704
15705 Configuration headers:
15706 $config_headers
15707
15708 Configuration commands:
15709 $config_commands
15710
15711 Report bugs to the package provider.
15712 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
15713 General help using GNU software: <http://www.gnu.org/gethelp/>."
15714
15715 _ACEOF
15716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15717 ac_cs_version="\\
15718 GNU Atomic Library config.status 1.0
15719 configured by $0, generated by GNU Autoconf 2.64,
15720 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15721
15722 Copyright (C) 2009 Free Software Foundation, Inc.
15723 This config.status script is free software; the Free Software Foundation
15724 gives unlimited permission to copy, distribute and modify it."
15725
15726 ac_pwd='$ac_pwd'
15727 srcdir='$srcdir'
15728 INSTALL='$INSTALL'
15729 MKDIR_P='$MKDIR_P'
15730 AWK='$AWK'
15731 test -n "\$AWK" || AWK=awk
15732 _ACEOF
15733
15734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15735 # The default lists apply if the user does not specify any file.
15736 ac_need_defaults=:
15737 while test $# != 0
15738 do
15739 case $1 in
15740 --*=*)
15741 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15742 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15743 ac_shift=:
15744 ;;
15745 *)
15746 ac_option=$1
15747 ac_optarg=$2
15748 ac_shift=shift
15749 ;;
15750 esac
15751
15752 case $ac_option in
15753 # Handling of the options.
15754 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15755 ac_cs_recheck=: ;;
15756 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15757 $as_echo "$ac_cs_version"; exit ;;
15758 --debug | --debu | --deb | --de | --d | -d )
15759 debug=: ;;
15760 --file | --fil | --fi | --f )
15761 $ac_shift
15762 case $ac_optarg in
15763 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15764 esac
15765 as_fn_append CONFIG_FILES " '$ac_optarg'"
15766 ac_need_defaults=false;;
15767 --header | --heade | --head | --hea )
15768 $ac_shift
15769 case $ac_optarg in
15770 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15771 esac
15772 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15773 ac_need_defaults=false;;
15774 --he | --h)
15775 # Conflict between --help and --header
15776 as_fn_error "ambiguous option: \`$1'
15777 Try \`$0 --help' for more information.";;
15778 --help | --hel | -h )
15779 $as_echo "$ac_cs_usage"; exit ;;
15780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15781 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15782 ac_cs_silent=: ;;
15783
15784 # This is an error.
15785 -*) as_fn_error "unrecognized option: \`$1'
15786 Try \`$0 --help' for more information." ;;
15787
15788 *) as_fn_append ac_config_targets " $1"
15789 ac_need_defaults=false ;;
15790
15791 esac
15792 shift
15793 done
15794
15795 ac_configure_extra_args=
15796
15797 if $ac_cs_silent; then
15798 exec 6>/dev/null
15799 ac_configure_extra_args="$ac_configure_extra_args --silent"
15800 fi
15801
15802 _ACEOF
15803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15804 if \$ac_cs_recheck; then
15805 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15806 shift
15807 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15808 CONFIG_SHELL='$SHELL'
15809 export CONFIG_SHELL
15810 exec "\$@"
15811 fi
15812
15813 _ACEOF
15814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15815 exec 5>>config.log
15816 {
15817 echo
15818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15819 ## Running $as_me. ##
15820 _ASBOX
15821 $as_echo "$ac_log"
15822 } >&5
15823
15824 _ACEOF
15825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15826 #
15827 # INIT-COMMANDS
15828 #
15829
15830 srcdir="$srcdir"
15831 host="$host"
15832 target="$target"
15833 with_multisubdir="$with_multisubdir"
15834 with_multisrctop="$with_multisrctop"
15835 with_target_subdir="$with_target_subdir"
15836 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15837 multi_basedir="$multi_basedir"
15838 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15839 CC="$CC"
15840 CXX="$CXX"
15841 GFORTRAN="$GFORTRAN"
15842 GCJ="$GCJ"
15843 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15844
15845
15846 # The HP-UX ksh and POSIX shell print the target directory to stdout
15847 # if CDPATH is set.
15848 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15849
15850 sed_quote_subst='$sed_quote_subst'
15851 double_quote_subst='$double_quote_subst'
15852 delay_variable_subst='$delay_variable_subst'
15853 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15854 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15855 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15856 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15857 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15858 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15859 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15860 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15861 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15862 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15863 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15864 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15865 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15866 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15867 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15868 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15869 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15870 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15871 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15872 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15873 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15874 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15875 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15876 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15877 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15878 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15879 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15880 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15881 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15882 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15883 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15884 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15885 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15886 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15887 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15888 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15889 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15890 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15891 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15892 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15893 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15894 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15895 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15896 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15897 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15898 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15899 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15900 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15901 lt_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"`'
15902 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15903 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15904 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15905 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15906 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15907 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15908 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15909 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15910 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15911 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15912 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15913 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15914 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15915 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15916 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15917 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15918 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15919 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15920 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15921 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15922 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15923 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15924 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15925 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15926 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15927 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15928 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15929 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15930 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15931 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15932 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15933 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15934 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15935 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15936 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15937 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15938 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15939 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15940 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15941 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15942 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15943 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15944 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15945 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15946 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15947 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15948 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15949 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15950 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15951 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15952 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15953 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15954 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15955 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15956 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15957 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15958 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15959 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15960 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15961 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15962 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15963 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15964 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15965 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15966 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15967 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15968 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15969 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15970 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15971 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15972 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15973
15974 LTCC='$LTCC'
15975 LTCFLAGS='$LTCFLAGS'
15976 compiler='$compiler_DEFAULT'
15977
15978 # A function that is used when there is no print builtin or printf.
15979 func_fallback_echo ()
15980 {
15981 eval 'cat <<_LTECHO_EOF
15982 \$1
15983 _LTECHO_EOF'
15984 }
15985
15986 # Quote evaled strings.
15987 for var in SHELL \
15988 ECHO \
15989 SED \
15990 GREP \
15991 EGREP \
15992 FGREP \
15993 LD \
15994 NM \
15995 LN_S \
15996 lt_SP2NL \
15997 lt_NL2SP \
15998 reload_flag \
15999 OBJDUMP \
16000 deplibs_check_method \
16001 file_magic_cmd \
16002 AR \
16003 AR_FLAGS \
16004 STRIP \
16005 RANLIB \
16006 CC \
16007 CFLAGS \
16008 compiler \
16009 lt_cv_sys_global_symbol_pipe \
16010 lt_cv_sys_global_symbol_to_cdecl \
16011 lt_cv_sys_global_symbol_to_c_name_address \
16012 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16013 lt_prog_compiler_no_builtin_flag \
16014 lt_prog_compiler_wl \
16015 lt_prog_compiler_pic \
16016 lt_prog_compiler_static \
16017 lt_cv_prog_compiler_c_o \
16018 need_locks \
16019 DSYMUTIL \
16020 NMEDIT \
16021 LIPO \
16022 OTOOL \
16023 OTOOL64 \
16024 shrext_cmds \
16025 export_dynamic_flag_spec \
16026 whole_archive_flag_spec \
16027 compiler_needs_object \
16028 with_gnu_ld \
16029 allow_undefined_flag \
16030 no_undefined_flag \
16031 hardcode_libdir_flag_spec \
16032 hardcode_libdir_flag_spec_ld \
16033 hardcode_libdir_separator \
16034 fix_srcfile_path \
16035 exclude_expsyms \
16036 include_expsyms \
16037 file_list_spec \
16038 variables_saved_for_relink \
16039 libname_spec \
16040 library_names_spec \
16041 soname_spec \
16042 install_override_mode \
16043 finish_eval \
16044 old_striplib \
16045 striplib; do
16046 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16047 *[\\\\\\\`\\"\\\$]*)
16048 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16049 ;;
16050 *)
16051 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16052 ;;
16053 esac
16054 done
16055
16056 # Double-quote double-evaled strings.
16057 for var in reload_cmds \
16058 old_postinstall_cmds \
16059 old_postuninstall_cmds \
16060 old_archive_cmds \
16061 extract_expsyms_cmds \
16062 old_archive_from_new_cmds \
16063 old_archive_from_expsyms_cmds \
16064 archive_cmds \
16065 archive_expsym_cmds \
16066 module_cmds \
16067 module_expsym_cmds \
16068 export_symbols_cmds \
16069 prelink_cmds \
16070 postinstall_cmds \
16071 postuninstall_cmds \
16072 finish_cmds \
16073 sys_lib_search_path_spec \
16074 sys_lib_dlsearch_path_spec; do
16075 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16076 *[\\\\\\\`\\"\\\$]*)
16077 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16078 ;;
16079 *)
16080 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16081 ;;
16082 esac
16083 done
16084
16085 ac_aux_dir='$ac_aux_dir'
16086 xsi_shell='$xsi_shell'
16087 lt_shell_append='$lt_shell_append'
16088
16089 # See if we are running on zsh, and set the options which allow our
16090 # commands through without removal of \ escapes INIT.
16091 if test -n "\${ZSH_VERSION+set}" ; then
16092 setopt NO_GLOB_SUBST
16093 fi
16094
16095
16096 PACKAGE='$PACKAGE'
16097 VERSION='$VERSION'
16098 TIMESTAMP='$TIMESTAMP'
16099 RM='$RM'
16100 ofile='$ofile'
16101
16102
16103
16104
16105 GCC="$GCC"
16106 CC="$CC"
16107 acx_cv_header_stdint="$acx_cv_header_stdint"
16108 acx_cv_type_int8_t="$acx_cv_type_int8_t"
16109 acx_cv_type_int16_t="$acx_cv_type_int16_t"
16110 acx_cv_type_int32_t="$acx_cv_type_int32_t"
16111 acx_cv_type_int64_t="$acx_cv_type_int64_t"
16112 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16113 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16114 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16115 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16116 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16117 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16118 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16119 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16120 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16121
16122
16123 _ACEOF
16124
16125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16126
16127 # Handling of arguments.
16128 for ac_config_target in $ac_config_targets
16129 do
16130 case $ac_config_target in
16131 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
16132 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16133 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16134 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16135 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
16136 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16137 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16138
16139 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16140 esac
16141 done
16142
16143
16144 # If the user did not use the arguments to specify the items to instantiate,
16145 # then the envvar interface is used. Set only those that are not.
16146 # We use the long form for the default assignment because of an extremely
16147 # bizarre bug on SunOS 4.1.3.
16148 if $ac_need_defaults; then
16149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16152 fi
16153
16154 # Have a temporary directory for convenience. Make it in the build tree
16155 # simply because there is no reason against having it here, and in addition,
16156 # creating and moving files from /tmp can sometimes cause problems.
16157 # Hook for its removal unless debugging.
16158 # Note that there is a small window in which the directory will not be cleaned:
16159 # after its creation but before its name has been assigned to `$tmp'.
16160 $debug ||
16161 {
16162 tmp=
16163 trap 'exit_status=$?
16164 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16165 ' 0
16166 trap 'as_fn_exit 1' 1 2 13 15
16167 }
16168 # Create a (secure) tmp directory for tmp files.
16169
16170 {
16171 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16172 test -n "$tmp" && test -d "$tmp"
16173 } ||
16174 {
16175 tmp=./conf$$-$RANDOM
16176 (umask 077 && mkdir "$tmp")
16177 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16178
16179 # Set up the scripts for CONFIG_FILES section.
16180 # No need to generate them if there are no CONFIG_FILES.
16181 # This happens for instance with `./config.status config.h'.
16182 if test -n "$CONFIG_FILES"; then
16183
16184
16185 ac_cr=`echo X | tr X '\015'`
16186 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16187 # But we know of no other shell where ac_cr would be empty at this
16188 # point, so we can use a bashism as a fallback.
16189 if test "x$ac_cr" = x; then
16190 eval ac_cr=\$\'\\r\'
16191 fi
16192 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16193 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16194 ac_cs_awk_cr='\r'
16195 else
16196 ac_cs_awk_cr=$ac_cr
16197 fi
16198
16199 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16200 _ACEOF
16201
16202
16203 {
16204 echo "cat >conf$$subs.awk <<_ACEOF" &&
16205 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16206 echo "_ACEOF"
16207 } >conf$$subs.sh ||
16208 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16209 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16210 ac_delim='%!_!# '
16211 for ac_last_try in false false false false false :; do
16212 . ./conf$$subs.sh ||
16213 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16214
16215 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16216 if test $ac_delim_n = $ac_delim_num; then
16217 break
16218 elif $ac_last_try; then
16219 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16220 else
16221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16222 fi
16223 done
16224 rm -f conf$$subs.sh
16225
16226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16227 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16228 _ACEOF
16229 sed -n '
16230 h
16231 s/^/S["/; s/!.*/"]=/
16232 p
16233 g
16234 s/^[^!]*!//
16235 :repl
16236 t repl
16237 s/'"$ac_delim"'$//
16238 t delim
16239 :nl
16240 h
16241 s/\(.\{148\}\).*/\1/
16242 t more1
16243 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16244 p
16245 n
16246 b repl
16247 :more1
16248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16249 p
16250 g
16251 s/.\{148\}//
16252 t nl
16253 :delim
16254 h
16255 s/\(.\{148\}\).*/\1/
16256 t more2
16257 s/["\\]/\\&/g; s/^/"/; s/$/"/
16258 p
16259 b
16260 :more2
16261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16262 p
16263 g
16264 s/.\{148\}//
16265 t delim
16266 ' <conf$$subs.awk | sed '
16267 /^[^""]/{
16268 N
16269 s/\n//
16270 }
16271 ' >>$CONFIG_STATUS || ac_write_fail=1
16272 rm -f conf$$subs.awk
16273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16274 _ACAWK
16275 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16276 for (key in S) S_is_set[key] = 1
16277 FS = "\a"
16278
16279 }
16280 {
16281 line = $ 0
16282 nfields = split(line, field, "@")
16283 substed = 0
16284 len = length(field[1])
16285 for (i = 2; i < nfields; i++) {
16286 key = field[i]
16287 keylen = length(key)
16288 if (S_is_set[key]) {
16289 value = S[key]
16290 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16291 len += length(value) + length(field[++i])
16292 substed = 1
16293 } else
16294 len += 1 + keylen
16295 }
16296
16297 print line
16298 }
16299
16300 _ACAWK
16301 _ACEOF
16302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16303 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16304 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16305 else
16306 cat
16307 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16308 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16309 _ACEOF
16310
16311 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16312 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16313 # trailing colons and then remove the whole line if VPATH becomes empty
16314 # (actually we leave an empty line to preserve line numbers).
16315 if test "x$srcdir" = x.; then
16316 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16317 s/:*\$(srcdir):*/:/
16318 s/:*\${srcdir}:*/:/
16319 s/:*@srcdir@:*/:/
16320 s/^\([^=]*=[ ]*\):*/\1/
16321 s/:*$//
16322 s/^[^=]*=[ ]*$//
16323 }'
16324 fi
16325
16326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16327 fi # test -n "$CONFIG_FILES"
16328
16329 # Set up the scripts for CONFIG_HEADERS section.
16330 # No need to generate them if there are no CONFIG_HEADERS.
16331 # This happens for instance with `./config.status Makefile'.
16332 if test -n "$CONFIG_HEADERS"; then
16333 cat >"$tmp/defines.awk" <<\_ACAWK ||
16334 BEGIN {
16335 _ACEOF
16336
16337 # Transform confdefs.h into an awk script `defines.awk', embedded as
16338 # here-document in config.status, that substitutes the proper values into
16339 # config.h.in to produce config.h.
16340
16341 # Create a delimiter string that does not exist in confdefs.h, to ease
16342 # handling of long lines.
16343 ac_delim='%!_!# '
16344 for ac_last_try in false false :; do
16345 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16346 if test -z "$ac_t"; then
16347 break
16348 elif $ac_last_try; then
16349 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16350 else
16351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16352 fi
16353 done
16354
16355 # For the awk script, D is an array of macro values keyed by name,
16356 # likewise P contains macro parameters if any. Preserve backslash
16357 # newline sequences.
16358
16359 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16360 sed -n '
16361 s/.\{148\}/&'"$ac_delim"'/g
16362 t rset
16363 :rset
16364 s/^[ ]*#[ ]*define[ ][ ]*/ /
16365 t def
16366 d
16367 :def
16368 s/\\$//
16369 t bsnl
16370 s/["\\]/\\&/g
16371 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16372 D["\1"]=" \3"/p
16373 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16374 d
16375 :bsnl
16376 s/["\\]/\\&/g
16377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16378 D["\1"]=" \3\\\\\\n"\\/p
16379 t cont
16380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16381 t cont
16382 d
16383 :cont
16384 n
16385 s/.\{148\}/&'"$ac_delim"'/g
16386 t clear
16387 :clear
16388 s/\\$//
16389 t bsnlc
16390 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16391 d
16392 :bsnlc
16393 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16394 b cont
16395 ' <confdefs.h | sed '
16396 s/'"$ac_delim"'/"\\\
16397 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16398
16399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16400 for (key in D) D_is_set[key] = 1
16401 FS = "\a"
16402 }
16403 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16404 line = \$ 0
16405 split(line, arg, " ")
16406 if (arg[1] == "#") {
16407 defundef = arg[2]
16408 mac1 = arg[3]
16409 } else {
16410 defundef = substr(arg[1], 2)
16411 mac1 = arg[2]
16412 }
16413 split(mac1, mac2, "(") #)
16414 macro = mac2[1]
16415 prefix = substr(line, 1, index(line, defundef) - 1)
16416 if (D_is_set[macro]) {
16417 # Preserve the white space surrounding the "#".
16418 print prefix "define", macro P[macro] D[macro]
16419 next
16420 } else {
16421 # Replace #undef with comments. This is necessary, for example,
16422 # in the case of _POSIX_SOURCE, which is predefined and required
16423 # on some systems where configure will not decide to define it.
16424 if (defundef == "undef") {
16425 print "/*", prefix defundef, macro, "*/"
16426 next
16427 }
16428 }
16429 }
16430 { print }
16431 _ACAWK
16432 _ACEOF
16433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16434 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16435 fi # test -n "$CONFIG_HEADERS"
16436
16437
16438 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16439 shift
16440 for ac_tag
16441 do
16442 case $ac_tag in
16443 :[FHLC]) ac_mode=$ac_tag; continue;;
16444 esac
16445 case $ac_mode$ac_tag in
16446 :[FHL]*:*);;
16447 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16448 :[FH]-) ac_tag=-:-;;
16449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16450 esac
16451 ac_save_IFS=$IFS
16452 IFS=:
16453 set x $ac_tag
16454 IFS=$ac_save_IFS
16455 shift
16456 ac_file=$1
16457 shift
16458
16459 case $ac_mode in
16460 :L) ac_source=$1;;
16461 :[FH])
16462 ac_file_inputs=
16463 for ac_f
16464 do
16465 case $ac_f in
16466 -) ac_f="$tmp/stdin";;
16467 *) # Look for the file first in the build tree, then in the source tree
16468 # (if the path is not absolute). The absolute path cannot be DOS-style,
16469 # because $ac_f cannot contain `:'.
16470 test -f "$ac_f" ||
16471 case $ac_f in
16472 [\\/$]*) false;;
16473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16474 esac ||
16475 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16476 esac
16477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16478 as_fn_append ac_file_inputs " '$ac_f'"
16479 done
16480
16481 # Let's still pretend it is `configure' which instantiates (i.e., don't
16482 # use $as_me), people would be surprised to read:
16483 # /* config.h. Generated by config.status. */
16484 configure_input='Generated from '`
16485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16486 `' by configure.'
16487 if test x"$ac_file" != x-; then
16488 configure_input="$ac_file. $configure_input"
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16490 $as_echo "$as_me: creating $ac_file" >&6;}
16491 fi
16492 # Neutralize special characters interpreted by sed in replacement strings.
16493 case $configure_input in #(
16494 *\&* | *\|* | *\\* )
16495 ac_sed_conf_input=`$as_echo "$configure_input" |
16496 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16497 *) ac_sed_conf_input=$configure_input;;
16498 esac
16499
16500 case $ac_tag in
16501 *:-:* | *:-) cat >"$tmp/stdin" \
16502 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16503 esac
16504 ;;
16505 esac
16506
16507 ac_dir=`$as_dirname -- "$ac_file" ||
16508 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16509 X"$ac_file" : 'X\(//\)[^/]' \| \
16510 X"$ac_file" : 'X\(//\)$' \| \
16511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16512 $as_echo X"$ac_file" |
16513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16514 s//\1/
16515 q
16516 }
16517 /^X\(\/\/\)[^/].*/{
16518 s//\1/
16519 q
16520 }
16521 /^X\(\/\/\)$/{
16522 s//\1/
16523 q
16524 }
16525 /^X\(\/\).*/{
16526 s//\1/
16527 q
16528 }
16529 s/.*/./; q'`
16530 as_dir="$ac_dir"; as_fn_mkdir_p
16531 ac_builddir=.
16532
16533 case "$ac_dir" in
16534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16535 *)
16536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16537 # A ".." for each directory in $ac_dir_suffix.
16538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16539 case $ac_top_builddir_sub in
16540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16542 esac ;;
16543 esac
16544 ac_abs_top_builddir=$ac_pwd
16545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16546 # for backward compatibility:
16547 ac_top_builddir=$ac_top_build_prefix
16548
16549 case $srcdir in
16550 .) # We are building in place.
16551 ac_srcdir=.
16552 ac_top_srcdir=$ac_top_builddir_sub
16553 ac_abs_top_srcdir=$ac_pwd ;;
16554 [\\/]* | ?:[\\/]* ) # Absolute name.
16555 ac_srcdir=$srcdir$ac_dir_suffix;
16556 ac_top_srcdir=$srcdir
16557 ac_abs_top_srcdir=$srcdir ;;
16558 *) # Relative name.
16559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16560 ac_top_srcdir=$ac_top_build_prefix$srcdir
16561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16562 esac
16563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16564
16565
16566 case $ac_mode in
16567 :F)
16568 #
16569 # CONFIG_FILE
16570 #
16571
16572 case $INSTALL in
16573 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16574 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16575 esac
16576 ac_MKDIR_P=$MKDIR_P
16577 case $MKDIR_P in
16578 [\\/$]* | ?:[\\/]* ) ;;
16579 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16580 esac
16581 _ACEOF
16582
16583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16584 # If the template does not know about datarootdir, expand it.
16585 # FIXME: This hack should be removed a few years after 2.60.
16586 ac_datarootdir_hack=; ac_datarootdir_seen=
16587 ac_sed_dataroot='
16588 /datarootdir/ {
16589 p
16590 q
16591 }
16592 /@datadir@/p
16593 /@docdir@/p
16594 /@infodir@/p
16595 /@localedir@/p
16596 /@mandir@/p'
16597 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16598 *datarootdir*) ac_datarootdir_seen=yes;;
16599 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16601 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16602 _ACEOF
16603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16604 ac_datarootdir_hack='
16605 s&@datadir@&$datadir&g
16606 s&@docdir@&$docdir&g
16607 s&@infodir@&$infodir&g
16608 s&@localedir@&$localedir&g
16609 s&@mandir@&$mandir&g
16610 s&\\\${datarootdir}&$datarootdir&g' ;;
16611 esac
16612 _ACEOF
16613
16614 # Neutralize VPATH when `$srcdir' = `.'.
16615 # Shell code in configure.ac might set extrasub.
16616 # FIXME: do we really want to maintain this feature?
16617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16618 ac_sed_extra="$ac_vpsub
16619 $extrasub
16620 _ACEOF
16621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16622 :t
16623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16624 s|@configure_input@|$ac_sed_conf_input|;t t
16625 s&@top_builddir@&$ac_top_builddir_sub&;t t
16626 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16627 s&@srcdir@&$ac_srcdir&;t t
16628 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16629 s&@top_srcdir@&$ac_top_srcdir&;t t
16630 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16631 s&@builddir@&$ac_builddir&;t t
16632 s&@abs_builddir@&$ac_abs_builddir&;t t
16633 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16634 s&@INSTALL@&$ac_INSTALL&;t t
16635 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16636 $ac_datarootdir_hack
16637 "
16638 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16639 || as_fn_error "could not create $ac_file" "$LINENO" 5
16640
16641 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16642 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16645 which seems to be undefined. Please make sure it is defined." >&5
16646 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16647 which seems to be undefined. Please make sure it is defined." >&2;}
16648
16649 rm -f "$tmp/stdin"
16650 case $ac_file in
16651 -) cat "$tmp/out" && rm -f "$tmp/out";;
16652 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16653 esac \
16654 || as_fn_error "could not create $ac_file" "$LINENO" 5
16655 ;;
16656 :H)
16657 #
16658 # CONFIG_HEADER
16659 #
16660 if test x"$ac_file" != x-; then
16661 {
16662 $as_echo "/* $configure_input */" \
16663 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16664 } >"$tmp/config.h" \
16665 || as_fn_error "could not create $ac_file" "$LINENO" 5
16666 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16668 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16669 else
16670 rm -f "$ac_file"
16671 mv "$tmp/config.h" "$ac_file" \
16672 || as_fn_error "could not create $ac_file" "$LINENO" 5
16673 fi
16674 else
16675 $as_echo "/* $configure_input */" \
16676 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16677 || as_fn_error "could not create -" "$LINENO" 5
16678 fi
16679 # Compute "$ac_file"'s index in $config_headers.
16680 _am_arg="$ac_file"
16681 _am_stamp_count=1
16682 for _am_header in $config_headers :; do
16683 case $_am_header in
16684 $_am_arg | $_am_arg:* )
16685 break ;;
16686 * )
16687 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16688 esac
16689 done
16690 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16691 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16692 X"$_am_arg" : 'X\(//\)[^/]' \| \
16693 X"$_am_arg" : 'X\(//\)$' \| \
16694 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16695 $as_echo X"$_am_arg" |
16696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16697 s//\1/
16698 q
16699 }
16700 /^X\(\/\/\)[^/].*/{
16701 s//\1/
16702 q
16703 }
16704 /^X\(\/\/\)$/{
16705 s//\1/
16706 q
16707 }
16708 /^X\(\/\).*/{
16709 s//\1/
16710 q
16711 }
16712 s/.*/./; q'`/stamp-h$_am_stamp_count
16713 ;;
16714
16715 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16716 $as_echo "$as_me: executing $ac_file commands" >&6;}
16717 ;;
16718 esac
16719
16720
16721 case $ac_file$ac_mode in
16722 "default-1":C)
16723 # Only add multilib support code if we just rebuilt the top-level
16724 # Makefile.
16725 case " $CONFIG_FILES " in
16726 *" Makefile "*)
16727 ac_file=Makefile . ${multi_basedir}/config-ml.in
16728 ;;
16729 esac ;;
16730 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16731 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16732 # are listed without --file. Let's play safe and only enable the eval
16733 # if we detect the quoting.
16734 case $CONFIG_FILES in
16735 *\'*) eval set x "$CONFIG_FILES" ;;
16736 *) set x $CONFIG_FILES ;;
16737 esac
16738 shift
16739 for mf
16740 do
16741 # Strip MF so we end up with the name of the file.
16742 mf=`echo "$mf" | sed -e 's/:.*$//'`
16743 # Check whether this is an Automake generated Makefile or not.
16744 # We used to match only the files named `Makefile.in', but
16745 # some people rename them; so instead we look at the file content.
16746 # Grep'ing the first line is not enough: some people post-process
16747 # each Makefile.in and add a new line on top of each file to say so.
16748 # Grep'ing the whole file is not good either: AIX grep has a line
16749 # limit of 2048, but all sed's we know have understand at least 4000.
16750 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16751 dirpart=`$as_dirname -- "$mf" ||
16752 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16753 X"$mf" : 'X\(//\)[^/]' \| \
16754 X"$mf" : 'X\(//\)$' \| \
16755 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16756 $as_echo X"$mf" |
16757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16758 s//\1/
16759 q
16760 }
16761 /^X\(\/\/\)[^/].*/{
16762 s//\1/
16763 q
16764 }
16765 /^X\(\/\/\)$/{
16766 s//\1/
16767 q
16768 }
16769 /^X\(\/\).*/{
16770 s//\1/
16771 q
16772 }
16773 s/.*/./; q'`
16774 else
16775 continue
16776 fi
16777 # Extract the definition of DEPDIR, am__include, and am__quote
16778 # from the Makefile without running `make'.
16779 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16780 test -z "$DEPDIR" && continue
16781 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16782 test -z "am__include" && continue
16783 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16784 # When using ansi2knr, U may be empty or an underscore; expand it
16785 U=`sed -n 's/^U = //p' < "$mf"`
16786 # Find all dependency output files, they are included files with
16787 # $(DEPDIR) in their names. We invoke sed twice because it is the
16788 # simplest approach to changing $(DEPDIR) to its actual value in the
16789 # expansion.
16790 for file in `sed -n "
16791 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16792 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16793 # Make sure the directory exists.
16794 test -f "$dirpart/$file" && continue
16795 fdir=`$as_dirname -- "$file" ||
16796 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16797 X"$file" : 'X\(//\)[^/]' \| \
16798 X"$file" : 'X\(//\)$' \| \
16799 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16800 $as_echo X"$file" |
16801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16802 s//\1/
16803 q
16804 }
16805 /^X\(\/\/\)[^/].*/{
16806 s//\1/
16807 q
16808 }
16809 /^X\(\/\/\)$/{
16810 s//\1/
16811 q
16812 }
16813 /^X\(\/\).*/{
16814 s//\1/
16815 q
16816 }
16817 s/.*/./; q'`
16818 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16819 # echo "creating $dirpart/$file"
16820 echo '# dummy' > "$dirpart/$file"
16821 done
16822 done
16823 }
16824 ;;
16825 "libtool":C)
16826
16827 # See if we are running on zsh, and set the options which allow our
16828 # commands through without removal of \ escapes.
16829 if test -n "${ZSH_VERSION+set}" ; then
16830 setopt NO_GLOB_SUBST
16831 fi
16832
16833 cfgfile="${ofile}T"
16834 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16835 $RM "$cfgfile"
16836
16837 cat <<_LT_EOF >> "$cfgfile"
16838 #! $SHELL
16839
16840 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16841 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16842 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16843 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16844 #
16845 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16846 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16847 # Written by Gordon Matzigkeit, 1996
16848 #
16849 # This file is part of GNU Libtool.
16850 #
16851 # GNU Libtool is free software; you can redistribute it and/or
16852 # modify it under the terms of the GNU General Public License as
16853 # published by the Free Software Foundation; either version 2 of
16854 # the License, or (at your option) any later version.
16855 #
16856 # As a special exception to the GNU General Public License,
16857 # if you distribute this file as part of a program or library that
16858 # is built using GNU Libtool, you may include this file under the
16859 # same distribution terms that you use for the rest of that program.
16860 #
16861 # GNU Libtool is distributed in the hope that it will be useful,
16862 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16863 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16864 # GNU General Public License for more details.
16865 #
16866 # You should have received a copy of the GNU General Public License
16867 # along with GNU Libtool; see the file COPYING. If not, a copy
16868 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16869 # obtained by writing to the Free Software Foundation, Inc.,
16870 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16871
16872
16873 # The names of the tagged configurations supported by this script.
16874 available_tags=""
16875
16876 # ### BEGIN LIBTOOL CONFIG
16877
16878 # Which release of libtool.m4 was used?
16879 macro_version=$macro_version
16880 macro_revision=$macro_revision
16881
16882 # Whether or not to build shared libraries.
16883 build_libtool_libs=$enable_shared
16884
16885 # Whether or not to build static libraries.
16886 build_old_libs=$enable_static
16887
16888 # What type of objects to build.
16889 pic_mode=$pic_mode
16890
16891 # Whether or not to optimize for fast installation.
16892 fast_install=$enable_fast_install
16893
16894 # Shell to use when invoking shell scripts.
16895 SHELL=$lt_SHELL
16896
16897 # An echo program that protects backslashes.
16898 ECHO=$lt_ECHO
16899
16900 # The host system.
16901 host_alias=$host_alias
16902 host=$host
16903 host_os=$host_os
16904
16905 # The build system.
16906 build_alias=$build_alias
16907 build=$build
16908 build_os=$build_os
16909
16910 # A sed program that does not truncate output.
16911 SED=$lt_SED
16912
16913 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16914 Xsed="\$SED -e 1s/^X//"
16915
16916 # A grep program that handles long lines.
16917 GREP=$lt_GREP
16918
16919 # An ERE matcher.
16920 EGREP=$lt_EGREP
16921
16922 # A literal string matcher.
16923 FGREP=$lt_FGREP
16924
16925 # A BSD- or MS-compatible name lister.
16926 NM=$lt_NM
16927
16928 # Whether we need soft or hard links.
16929 LN_S=$lt_LN_S
16930
16931 # What is the maximum length of a command?
16932 max_cmd_len=$max_cmd_len
16933
16934 # Object file suffix (normally "o").
16935 objext=$ac_objext
16936
16937 # Executable file suffix (normally "").
16938 exeext=$exeext
16939
16940 # whether the shell understands "unset".
16941 lt_unset=$lt_unset
16942
16943 # turn spaces into newlines.
16944 SP2NL=$lt_lt_SP2NL
16945
16946 # turn newlines into spaces.
16947 NL2SP=$lt_lt_NL2SP
16948
16949 # An object symbol dumper.
16950 OBJDUMP=$lt_OBJDUMP
16951
16952 # Method to check whether dependent libraries are shared objects.
16953 deplibs_check_method=$lt_deplibs_check_method
16954
16955 # Command to use when deplibs_check_method == "file_magic".
16956 file_magic_cmd=$lt_file_magic_cmd
16957
16958 # The archiver.
16959 AR=$lt_AR
16960 AR_FLAGS=$lt_AR_FLAGS
16961
16962 # A symbol stripping program.
16963 STRIP=$lt_STRIP
16964
16965 # Commands used to install an old-style archive.
16966 RANLIB=$lt_RANLIB
16967 old_postinstall_cmds=$lt_old_postinstall_cmds
16968 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16969
16970 # Whether to use a lock for old archive extraction.
16971 lock_old_archive_extraction=$lock_old_archive_extraction
16972
16973 # A C compiler.
16974 LTCC=$lt_CC
16975
16976 # LTCC compiler flags.
16977 LTCFLAGS=$lt_CFLAGS
16978
16979 # Take the output of nm and produce a listing of raw symbols and C names.
16980 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16981
16982 # Transform the output of nm in a proper C declaration.
16983 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16984
16985 # Transform the output of nm in a C name address pair.
16986 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16987
16988 # Transform the output of nm in a C name address pair when lib prefix is needed.
16989 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16990
16991 # The name of the directory that contains temporary libtool files.
16992 objdir=$objdir
16993
16994 # Used to examine libraries when file_magic_cmd begins with "file".
16995 MAGIC_CMD=$MAGIC_CMD
16996
16997 # Must we lock files when doing compilation?
16998 need_locks=$lt_need_locks
16999
17000 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17001 DSYMUTIL=$lt_DSYMUTIL
17002
17003 # Tool to change global to local symbols on Mac OS X.
17004 NMEDIT=$lt_NMEDIT
17005
17006 # Tool to manipulate fat objects and archives on Mac OS X.
17007 LIPO=$lt_LIPO
17008
17009 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17010 OTOOL=$lt_OTOOL
17011
17012 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17013 OTOOL64=$lt_OTOOL64
17014
17015 # Old archive suffix (normally "a").
17016 libext=$libext
17017
17018 # Shared library suffix (normally ".so").
17019 shrext_cmds=$lt_shrext_cmds
17020
17021 # The commands to extract the exported symbol list from a shared archive.
17022 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17023
17024 # Variables whose values should be saved in libtool wrapper scripts and
17025 # restored at link time.
17026 variables_saved_for_relink=$lt_variables_saved_for_relink
17027
17028 # Do we need the "lib" prefix for modules?
17029 need_lib_prefix=$need_lib_prefix
17030
17031 # Do we need a version for libraries?
17032 need_version=$need_version
17033
17034 # Library versioning type.
17035 version_type=$version_type
17036
17037 # Shared library runtime path variable.
17038 runpath_var=$runpath_var
17039
17040 # Shared library path variable.
17041 shlibpath_var=$shlibpath_var
17042
17043 # Is shlibpath searched before the hard-coded library search path?
17044 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17045
17046 # Format of library name prefix.
17047 libname_spec=$lt_libname_spec
17048
17049 # List of archive names. First name is the real one, the rest are links.
17050 # The last name is the one that the linker finds with -lNAME
17051 library_names_spec=$lt_library_names_spec
17052
17053 # The coded name of the library, if different from the real name.
17054 soname_spec=$lt_soname_spec
17055
17056 # Permission mode override for installation of shared libraries.
17057 install_override_mode=$lt_install_override_mode
17058
17059 # Command to use after installation of a shared archive.
17060 postinstall_cmds=$lt_postinstall_cmds
17061
17062 # Command to use after uninstallation of a shared archive.
17063 postuninstall_cmds=$lt_postuninstall_cmds
17064
17065 # Commands used to finish a libtool library installation in a directory.
17066 finish_cmds=$lt_finish_cmds
17067
17068 # As "finish_cmds", except a single script fragment to be evaled but
17069 # not shown.
17070 finish_eval=$lt_finish_eval
17071
17072 # Whether we should hardcode library paths into libraries.
17073 hardcode_into_libs=$hardcode_into_libs
17074
17075 # Compile-time system search path for libraries.
17076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17077
17078 # Run-time system search path for libraries.
17079 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17080
17081 # Whether dlopen is supported.
17082 dlopen_support=$enable_dlopen
17083
17084 # Whether dlopen of programs is supported.
17085 dlopen_self=$enable_dlopen_self
17086
17087 # Whether dlopen of statically linked programs is supported.
17088 dlopen_self_static=$enable_dlopen_self_static
17089
17090 # Commands to strip libraries.
17091 old_striplib=$lt_old_striplib
17092 striplib=$lt_striplib
17093
17094
17095 # The linker used to build libraries.
17096 LD=$lt_LD
17097
17098 # How to create reloadable object files.
17099 reload_flag=$lt_reload_flag
17100 reload_cmds=$lt_reload_cmds
17101
17102 # Commands used to build an old-style archive.
17103 old_archive_cmds=$lt_old_archive_cmds
17104
17105 # A language specific compiler.
17106 CC=$lt_compiler
17107
17108 # Is the compiler the GNU compiler?
17109 with_gcc=$GCC
17110
17111 # Compiler flag to turn off builtin functions.
17112 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17113
17114 # How to pass a linker flag through the compiler.
17115 wl=$lt_lt_prog_compiler_wl
17116
17117 # Additional compiler flags for building library objects.
17118 pic_flag=$lt_lt_prog_compiler_pic
17119
17120 # Compiler flag to prevent dynamic linking.
17121 link_static_flag=$lt_lt_prog_compiler_static
17122
17123 # Does compiler simultaneously support -c and -o options?
17124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17125
17126 # Whether or not to add -lc for building shared libraries.
17127 build_libtool_need_lc=$archive_cmds_need_lc
17128
17129 # Whether or not to disallow shared libs when runtime libs are static.
17130 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17131
17132 # Compiler flag to allow reflexive dlopens.
17133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17134
17135 # Compiler flag to generate shared objects directly from archives.
17136 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17137
17138 # Whether the compiler copes with passing no objects directly.
17139 compiler_needs_object=$lt_compiler_needs_object
17140
17141 # Create an old-style archive from a shared archive.
17142 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17143
17144 # Create a temporary old-style archive to link instead of a shared archive.
17145 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17146
17147 # Commands used to build a shared archive.
17148 archive_cmds=$lt_archive_cmds
17149 archive_expsym_cmds=$lt_archive_expsym_cmds
17150
17151 # Commands used to build a loadable module if different from building
17152 # a shared archive.
17153 module_cmds=$lt_module_cmds
17154 module_expsym_cmds=$lt_module_expsym_cmds
17155
17156 # Whether we are building with GNU ld or not.
17157 with_gnu_ld=$lt_with_gnu_ld
17158
17159 # Flag that allows shared libraries with undefined symbols to be built.
17160 allow_undefined_flag=$lt_allow_undefined_flag
17161
17162 # Flag that enforces no undefined symbols.
17163 no_undefined_flag=$lt_no_undefined_flag
17164
17165 # Flag to hardcode \$libdir into a binary during linking.
17166 # This must work even if \$libdir does not exist
17167 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17168
17169 # If ld is used when linking, flag to hardcode \$libdir into a binary
17170 # during linking. This must work even if \$libdir does not exist.
17171 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17172
17173 # Whether we need a single "-rpath" flag with a separated argument.
17174 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17175
17176 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17177 # DIR into the resulting binary.
17178 hardcode_direct=$hardcode_direct
17179
17180 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17181 # DIR into the resulting binary and the resulting library dependency is
17182 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17183 # library is relocated.
17184 hardcode_direct_absolute=$hardcode_direct_absolute
17185
17186 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17187 # into the resulting binary.
17188 hardcode_minus_L=$hardcode_minus_L
17189
17190 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17191 # into the resulting binary.
17192 hardcode_shlibpath_var=$hardcode_shlibpath_var
17193
17194 # Set to "yes" if building a shared library automatically hardcodes DIR
17195 # into the library and all subsequent libraries and executables linked
17196 # against it.
17197 hardcode_automatic=$hardcode_automatic
17198
17199 # Set to yes if linker adds runtime paths of dependent libraries
17200 # to runtime path list.
17201 inherit_rpath=$inherit_rpath
17202
17203 # Whether libtool must link a program against all its dependency libraries.
17204 link_all_deplibs=$link_all_deplibs
17205
17206 # Fix the shell variable \$srcfile for the compiler.
17207 fix_srcfile_path=$lt_fix_srcfile_path
17208
17209 # Set to "yes" if exported symbols are required.
17210 always_export_symbols=$always_export_symbols
17211
17212 # The commands to list exported symbols.
17213 export_symbols_cmds=$lt_export_symbols_cmds
17214
17215 # Symbols that should not be listed in the preloaded symbols.
17216 exclude_expsyms=$lt_exclude_expsyms
17217
17218 # Symbols that must always be exported.
17219 include_expsyms=$lt_include_expsyms
17220
17221 # Commands necessary for linking programs (against libraries) with templates.
17222 prelink_cmds=$lt_prelink_cmds
17223
17224 # Specify filename containing input files.
17225 file_list_spec=$lt_file_list_spec
17226
17227 # How to hardcode a shared library path into an executable.
17228 hardcode_action=$hardcode_action
17229
17230 # ### END LIBTOOL CONFIG
17231
17232 _LT_EOF
17233
17234 case $host_os in
17235 aix3*)
17236 cat <<\_LT_EOF >> "$cfgfile"
17237 # AIX sometimes has problems with the GCC collect2 program. For some
17238 # reason, if we set the COLLECT_NAMES environment variable, the problems
17239 # vanish in a puff of smoke.
17240 if test "X${COLLECT_NAMES+set}" != Xset; then
17241 COLLECT_NAMES=
17242 export COLLECT_NAMES
17243 fi
17244 _LT_EOF
17245 ;;
17246 esac
17247
17248
17249 ltmain="$ac_aux_dir/ltmain.sh"
17250
17251
17252 # We use sed instead of cat because bash on DJGPP gets confused if
17253 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17254 # text mode, it properly converts lines to CR/LF. This bash problem
17255 # is reportedly fixed, but why not run on old versions too?
17256 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17257 || (rm -f "$cfgfile"; exit 1)
17258
17259 case $xsi_shell in
17260 yes)
17261 cat << \_LT_EOF >> "$cfgfile"
17262
17263 # func_dirname file append nondir_replacement
17264 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17265 # otherwise set result to NONDIR_REPLACEMENT.
17266 func_dirname ()
17267 {
17268 case ${1} in
17269 */*) func_dirname_result="${1%/*}${2}" ;;
17270 * ) func_dirname_result="${3}" ;;
17271 esac
17272 }
17273
17274 # func_basename file
17275 func_basename ()
17276 {
17277 func_basename_result="${1##*/}"
17278 }
17279
17280 # func_dirname_and_basename file append nondir_replacement
17281 # perform func_basename and func_dirname in a single function
17282 # call:
17283 # dirname: Compute the dirname of FILE. If nonempty,
17284 # add APPEND to the result, otherwise set result
17285 # to NONDIR_REPLACEMENT.
17286 # value returned in "$func_dirname_result"
17287 # basename: Compute filename of FILE.
17288 # value retuned in "$func_basename_result"
17289 # Implementation must be kept synchronized with func_dirname
17290 # and func_basename. For efficiency, we do not delegate to
17291 # those functions but instead duplicate the functionality here.
17292 func_dirname_and_basename ()
17293 {
17294 case ${1} in
17295 */*) func_dirname_result="${1%/*}${2}" ;;
17296 * ) func_dirname_result="${3}" ;;
17297 esac
17298 func_basename_result="${1##*/}"
17299 }
17300
17301 # func_stripname prefix suffix name
17302 # strip PREFIX and SUFFIX off of NAME.
17303 # PREFIX and SUFFIX must not contain globbing or regex special
17304 # characters, hashes, percent signs, but SUFFIX may contain a leading
17305 # dot (in which case that matches only a dot).
17306 func_stripname ()
17307 {
17308 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17309 # positional parameters, so assign one to ordinary parameter first.
17310 func_stripname_result=${3}
17311 func_stripname_result=${func_stripname_result#"${1}"}
17312 func_stripname_result=${func_stripname_result%"${2}"}
17313 }
17314
17315 # func_opt_split
17316 func_opt_split ()
17317 {
17318 func_opt_split_opt=${1%%=*}
17319 func_opt_split_arg=${1#*=}
17320 }
17321
17322 # func_lo2o object
17323 func_lo2o ()
17324 {
17325 case ${1} in
17326 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17327 *) func_lo2o_result=${1} ;;
17328 esac
17329 }
17330
17331 # func_xform libobj-or-source
17332 func_xform ()
17333 {
17334 func_xform_result=${1%.*}.lo
17335 }
17336
17337 # func_arith arithmetic-term...
17338 func_arith ()
17339 {
17340 func_arith_result=$(( $* ))
17341 }
17342
17343 # func_len string
17344 # STRING may not start with a hyphen.
17345 func_len ()
17346 {
17347 func_len_result=${#1}
17348 }
17349
17350 _LT_EOF
17351 ;;
17352 *) # Bourne compatible functions.
17353 cat << \_LT_EOF >> "$cfgfile"
17354
17355 # func_dirname file append nondir_replacement
17356 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17357 # otherwise set result to NONDIR_REPLACEMENT.
17358 func_dirname ()
17359 {
17360 # Extract subdirectory from the argument.
17361 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17362 if test "X$func_dirname_result" = "X${1}"; then
17363 func_dirname_result="${3}"
17364 else
17365 func_dirname_result="$func_dirname_result${2}"
17366 fi
17367 }
17368
17369 # func_basename file
17370 func_basename ()
17371 {
17372 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17373 }
17374
17375
17376 # func_stripname prefix suffix name
17377 # strip PREFIX and SUFFIX off of NAME.
17378 # PREFIX and SUFFIX must not contain globbing or regex special
17379 # characters, hashes, percent signs, but SUFFIX may contain a leading
17380 # dot (in which case that matches only a dot).
17381 # func_strip_suffix prefix name
17382 func_stripname ()
17383 {
17384 case ${2} in
17385 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17386 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17387 esac
17388 }
17389
17390 # sed scripts:
17391 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17392 my_sed_long_arg='1s/^-[^=]*=//'
17393
17394 # func_opt_split
17395 func_opt_split ()
17396 {
17397 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17398 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17399 }
17400
17401 # func_lo2o object
17402 func_lo2o ()
17403 {
17404 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17405 }
17406
17407 # func_xform libobj-or-source
17408 func_xform ()
17409 {
17410 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17411 }
17412
17413 # func_arith arithmetic-term...
17414 func_arith ()
17415 {
17416 func_arith_result=`expr "$@"`
17417 }
17418
17419 # func_len string
17420 # STRING may not start with a hyphen.
17421 func_len ()
17422 {
17423 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17424 }
17425
17426 _LT_EOF
17427 esac
17428
17429 case $lt_shell_append in
17430 yes)
17431 cat << \_LT_EOF >> "$cfgfile"
17432
17433 # func_append var value
17434 # Append VALUE to the end of shell variable VAR.
17435 func_append ()
17436 {
17437 eval "$1+=\$2"
17438 }
17439 _LT_EOF
17440 ;;
17441 *)
17442 cat << \_LT_EOF >> "$cfgfile"
17443
17444 # func_append var value
17445 # Append VALUE to the end of shell variable VAR.
17446 func_append ()
17447 {
17448 eval "$1=\$$1\$2"
17449 }
17450
17451 _LT_EOF
17452 ;;
17453 esac
17454
17455
17456 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17457 || (rm -f "$cfgfile"; exit 1)
17458
17459 mv -f "$cfgfile" "$ofile" ||
17460 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17461 chmod +x "$ofile"
17462
17463 ;;
17464 "gstdint.h":C)
17465 if test "$GCC" = yes; then
17466 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
17467 else
17468 echo "/* generated for $CC */" > tmp-stdint.h
17469 fi
17470
17471 sed 's/^ *//' >> tmp-stdint.h <<EOF
17472
17473 #ifndef GCC_GENERATED_STDINT_H
17474 #define GCC_GENERATED_STDINT_H 1
17475
17476 #include <sys/types.h>
17477 EOF
17478
17479 if test "$acx_cv_header_stdint" != stdint.h; then
17480 echo "#include <stddef.h>" >> tmp-stdint.h
17481 fi
17482 if test "$acx_cv_header_stdint" != stddef.h; then
17483 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
17484 fi
17485
17486 sed 's/^ *//' >> tmp-stdint.h <<EOF
17487 /* glibc uses these symbols as guards to prevent redefinitions. */
17488 #ifdef __int8_t_defined
17489 #define _INT8_T
17490 #define _INT16_T
17491 #define _INT32_T
17492 #endif
17493 #ifdef __uint32_t_defined
17494 #define _UINT32_T
17495 #endif
17496
17497 EOF
17498
17499 # ----------------- done header, emit basic int types -------------
17500 if test "$acx_cv_header_stdint" = stddef.h; then
17501 sed 's/^ *//' >> tmp-stdint.h <<EOF
17502
17503 #ifndef _UINT8_T
17504 #define _UINT8_T
17505 #ifndef __uint8_t_defined
17506 #define __uint8_t_defined
17507 #ifndef uint8_t
17508 typedef unsigned $acx_cv_type_int8_t uint8_t;
17509 #endif
17510 #endif
17511 #endif
17512
17513 #ifndef _UINT16_T
17514 #define _UINT16_T
17515 #ifndef __uint16_t_defined
17516 #define __uint16_t_defined
17517 #ifndef uint16_t
17518 typedef unsigned $acx_cv_type_int16_t uint16_t;
17519 #endif
17520 #endif
17521 #endif
17522
17523 #ifndef _UINT32_T
17524 #define _UINT32_T
17525 #ifndef __uint32_t_defined
17526 #define __uint32_t_defined
17527 #ifndef uint32_t
17528 typedef unsigned $acx_cv_type_int32_t uint32_t;
17529 #endif
17530 #endif
17531 #endif
17532
17533 #ifndef _INT8_T
17534 #define _INT8_T
17535 #ifndef __int8_t_defined
17536 #define __int8_t_defined
17537 #ifndef int8_t
17538 typedef $acx_cv_type_int8_t int8_t;
17539 #endif
17540 #endif
17541 #endif
17542
17543 #ifndef _INT16_T
17544 #define _INT16_T
17545 #ifndef __int16_t_defined
17546 #define __int16_t_defined
17547 #ifndef int16_t
17548 typedef $acx_cv_type_int16_t int16_t;
17549 #endif
17550 #endif
17551 #endif
17552
17553 #ifndef _INT32_T
17554 #define _INT32_T
17555 #ifndef __int32_t_defined
17556 #define __int32_t_defined
17557 #ifndef int32_t
17558 typedef $acx_cv_type_int32_t int32_t;
17559 #endif
17560 #endif
17561 #endif
17562 EOF
17563 elif test "$ac_cv_type_u_int32_t" = yes; then
17564 sed 's/^ *//' >> tmp-stdint.h <<EOF
17565
17566 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
17567 #ifndef _INT8_T
17568 #define _INT8_T
17569 #endif
17570 #ifndef _INT16_T
17571 #define _INT16_T
17572 #endif
17573 #ifndef _INT32_T
17574 #define _INT32_T
17575 #endif
17576
17577 #ifndef _UINT8_T
17578 #define _UINT8_T
17579 #ifndef __uint8_t_defined
17580 #define __uint8_t_defined
17581 #ifndef uint8_t
17582 typedef u_int8_t uint8_t;
17583 #endif
17584 #endif
17585 #endif
17586
17587 #ifndef _UINT16_T
17588 #define _UINT16_T
17589 #ifndef __uint16_t_defined
17590 #define __uint16_t_defined
17591 #ifndef uint16_t
17592 typedef u_int16_t uint16_t;
17593 #endif
17594 #endif
17595 #endif
17596
17597 #ifndef _UINT32_T
17598 #define _UINT32_T
17599 #ifndef __uint32_t_defined
17600 #define __uint32_t_defined
17601 #ifndef uint32_t
17602 typedef u_int32_t uint32_t;
17603 #endif
17604 #endif
17605 #endif
17606 EOF
17607 else
17608 sed 's/^ *//' >> tmp-stdint.h <<EOF
17609
17610 /* Some systems have guard macros to prevent redefinitions, define them. */
17611 #ifndef _INT8_T
17612 #define _INT8_T
17613 #endif
17614 #ifndef _INT16_T
17615 #define _INT16_T
17616 #endif
17617 #ifndef _INT32_T
17618 #define _INT32_T
17619 #endif
17620 #ifndef _UINT8_T
17621 #define _UINT8_T
17622 #endif
17623 #ifndef _UINT16_T
17624 #define _UINT16_T
17625 #endif
17626 #ifndef _UINT32_T
17627 #define _UINT32_T
17628 #endif
17629 EOF
17630 fi
17631
17632 # ------------- done basic int types, emit int64_t types ------------
17633 if test "$ac_cv_type_uint64_t" = yes; then
17634 sed 's/^ *//' >> tmp-stdint.h <<EOF
17635
17636 /* system headers have good uint64_t and int64_t */
17637 #ifndef _INT64_T
17638 #define _INT64_T
17639 #endif
17640 #ifndef _UINT64_T
17641 #define _UINT64_T
17642 #endif
17643 EOF
17644 elif test "$ac_cv_type_u_int64_t" = yes; then
17645 sed 's/^ *//' >> tmp-stdint.h <<EOF
17646
17647 /* system headers have an u_int64_t (and int64_t) */
17648 #ifndef _INT64_T
17649 #define _INT64_T
17650 #endif
17651 #ifndef _UINT64_T
17652 #define _UINT64_T
17653 #ifndef __uint64_t_defined
17654 #define __uint64_t_defined
17655 #ifndef uint64_t
17656 typedef u_int64_t uint64_t;
17657 #endif
17658 #endif
17659 #endif
17660 EOF
17661 elif test -n "$acx_cv_type_int64_t"; then
17662 sed 's/^ *//' >> tmp-stdint.h <<EOF
17663
17664 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
17665 #ifndef _INT64_T
17666 #define _INT64_T
17667 #ifndef int64_t
17668 typedef $acx_cv_type_int64_t int64_t;
17669 #endif
17670 #endif
17671 #ifndef _UINT64_T
17672 #define _UINT64_T
17673 #ifndef __uint64_t_defined
17674 #define __uint64_t_defined
17675 #ifndef uint64_t
17676 typedef unsigned $acx_cv_type_int64_t uint64_t;
17677 #endif
17678 #endif
17679 #endif
17680 EOF
17681 else
17682 sed 's/^ *//' >> tmp-stdint.h <<EOF
17683
17684 /* some common heuristics for int64_t, using compiler-specific tests */
17685 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
17686 #ifndef _INT64_T
17687 #define _INT64_T
17688 #ifndef __int64_t_defined
17689 #ifndef int64_t
17690 typedef long long int64_t;
17691 #endif
17692 #endif
17693 #endif
17694 #ifndef _UINT64_T
17695 #define _UINT64_T
17696 #ifndef uint64_t
17697 typedef unsigned long long uint64_t;
17698 #endif
17699 #endif
17700
17701 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17702 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17703 does not implement __extension__. But that compiler doesn't define
17704 __GNUC_MINOR__. */
17705 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17706 # define __extension__
17707 # endif
17708
17709 # ifndef _INT64_T
17710 # define _INT64_T
17711 # ifndef int64_t
17712 __extension__ typedef long long int64_t;
17713 # endif
17714 # endif
17715 # ifndef _UINT64_T
17716 # define _UINT64_T
17717 # ifndef uint64_t
17718 __extension__ typedef unsigned long long uint64_t;
17719 # endif
17720 # endif
17721
17722 #elif !defined __STRICT_ANSI__
17723 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17724
17725 # ifndef _INT64_T
17726 # define _INT64_T
17727 # ifndef int64_t
17728 typedef __int64 int64_t;
17729 # endif
17730 # endif
17731 # ifndef _UINT64_T
17732 # define _UINT64_T
17733 # ifndef uint64_t
17734 typedef unsigned __int64 uint64_t;
17735 # endif
17736 # endif
17737 # endif /* compiler */
17738
17739 #endif /* ANSI version */
17740 EOF
17741 fi
17742
17743 # ------------- done int64_t types, emit intptr types ------------
17744 if test "$ac_cv_type_uintptr_t" != yes; then
17745 sed 's/^ *//' >> tmp-stdint.h <<EOF
17746
17747 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17748 #ifndef __uintptr_t_defined
17749 #ifndef uintptr_t
17750 typedef u$acx_cv_type_intptr_t uintptr_t;
17751 #endif
17752 #endif
17753 #ifndef __intptr_t_defined
17754 #ifndef intptr_t
17755 typedef $acx_cv_type_intptr_t intptr_t;
17756 #endif
17757 #endif
17758 EOF
17759 fi
17760
17761 # ------------- done intptr types, emit int_least types ------------
17762 if test "$ac_cv_type_int_least32_t" != yes; then
17763 sed 's/^ *//' >> tmp-stdint.h <<EOF
17764
17765 /* Define int_least types */
17766 typedef int8_t int_least8_t;
17767 typedef int16_t int_least16_t;
17768 typedef int32_t int_least32_t;
17769 #ifdef _INT64_T
17770 typedef int64_t int_least64_t;
17771 #endif
17772
17773 typedef uint8_t uint_least8_t;
17774 typedef uint16_t uint_least16_t;
17775 typedef uint32_t uint_least32_t;
17776 #ifdef _UINT64_T
17777 typedef uint64_t uint_least64_t;
17778 #endif
17779 EOF
17780 fi
17781
17782 # ------------- done intptr types, emit int_fast types ------------
17783 if test "$ac_cv_type_int_fast32_t" != yes; then
17784 sed 's/^ *//' >> tmp-stdint.h <<EOF
17785
17786 /* Define int_fast types. short is often slow */
17787 typedef int8_t int_fast8_t;
17788 typedef int int_fast16_t;
17789 typedef int32_t int_fast32_t;
17790 #ifdef _INT64_T
17791 typedef int64_t int_fast64_t;
17792 #endif
17793
17794 typedef uint8_t uint_fast8_t;
17795 typedef unsigned int uint_fast16_t;
17796 typedef uint32_t uint_fast32_t;
17797 #ifdef _UINT64_T
17798 typedef uint64_t uint_fast64_t;
17799 #endif
17800 EOF
17801 fi
17802
17803 if test "$ac_cv_type_uintmax_t" != yes; then
17804 sed 's/^ *//' >> tmp-stdint.h <<EOF
17805
17806 /* Define intmax based on what we found */
17807 #ifndef intmax_t
17808 #ifdef _INT64_T
17809 typedef int64_t intmax_t;
17810 #else
17811 typedef long intmax_t;
17812 #endif
17813 #endif
17814 #ifndef uintmax_t
17815 #ifdef _UINT64_T
17816 typedef uint64_t uintmax_t;
17817 #else
17818 typedef unsigned long uintmax_t;
17819 #endif
17820 #endif
17821 EOF
17822 fi
17823
17824 sed 's/^ *//' >> tmp-stdint.h <<EOF
17825
17826 #endif /* GCC_GENERATED_STDINT_H */
17827 EOF
17828
17829 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
17830 rm -f tmp-stdint.h
17831 else
17832 mv -f tmp-stdint.h gstdint.h
17833 fi
17834
17835 ;;
17836
17837 esac
17838 done # for ac_tag
17839
17840
17841 as_fn_exit 0
17842 _ACEOF
17843 ac_clean_files=$ac_clean_files_save
17844
17845 test $ac_write_fail = 0 ||
17846 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17847
17848
17849 # configure is writing to config.log, and then calls config.status.
17850 # config.status does its own redirection, appending to config.log.
17851 # Unfortunately, on DOS this fails, as config.log is still kept open
17852 # by configure, so config.status won't be able to write to it; its
17853 # output is simply discarded. So we exec the FD to /dev/null,
17854 # effectively closing config.log, so it can be properly (re)opened and
17855 # appended to by config.status. When coming back to configure, we
17856 # need to make the FD available again.
17857 if test "$no_create" != yes; then
17858 ac_cs_success=:
17859 ac_config_status_args=
17860 test "$silent" = yes &&
17861 ac_config_status_args="$ac_config_status_args --quiet"
17862 exec 5>/dev/null
17863 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17864 exec 5>>config.log
17865 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17866 # would make configure fail if this is the last instruction.
17867 $ac_cs_success || as_fn_exit $?
17868 fi
17869 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17871 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17872 fi
17873