]> git.ipfire.org Git - thirdparty/gcc.git/blame - libitm/configure
aarch64: Fix gcc.target/aarch64/sve/loop_add_6.c for LLP64 targets
[thirdparty/gcc.git] / libitm / configure
CommitLineData
0a35513e
AH
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for GNU TM Runtime Library 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
0a35513e 7#
0a35513e
AH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
0a35513e
AH
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
0a35513e
AH
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
0a35513e
AH
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
0a35513e
AH
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
0a35513e
AH
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
0a35513e
AH
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
0a35513e
AH
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
0a35513e
AH
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
0a35513e 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
0a35513e
AH
424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
0a35513e
AH
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
0a35513e 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
0a35513e
AH
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
0a35513e
AH
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
0a35513e
AH
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
0a35513e
AH
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
0a35513e
AH
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
0a35513e
AH
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='GNU TM Runtime Library'
589PACKAGE_TARNAME='libitm'
590PACKAGE_VERSION='1.0'
591PACKAGE_STRING='GNU TM Runtime Library 1.0'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL='http://www.gnu.org/software/libitm/'
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609# include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
3c36aa6b 635get_gcc_base_ver
0a35513e
AH
636ARCH_FUTEX_FALSE
637ARCH_FUTEX_TRUE
d4b17902
RH
638ARCH_X86_AVX_FALSE
639ARCH_X86_AVX_TRUE
0a35513e
AH
640ARCH_X86_FALSE
641ARCH_X86_TRUE
aebac0ca
RH
642ARCH_ARM_FALSE
643ARCH_ARM_TRUE
0a35513e
AH
644link_itm
645XLDFLAGS
646XCFLAGS
647config_path
adcd36bc
RO
648LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
649LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
650LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
651LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
0a35513e
AH
652LIBITM_BUILD_VERSIONED_SHLIB_FALSE
653LIBITM_BUILD_VERSIONED_SHLIB_TRUE
654OPT_LDFLAGS
655SECTION_LDFLAGS
9ce91011
RO
656HAVE_HWCAP_FALSE
657HAVE_HWCAP_TRUE
658HWCAP_LDFLAGS
0a35513e
AH
659libtool_VERSION
660MAINT
661MAINTAINER_MODE_FALSE
662MAINTAINER_MODE_TRUE
6a6d3817
IS
663ENABLE_DARWIN_AT_RPATH_FALSE
664ENABLE_DARWIN_AT_RPATH_TRUE
0a35513e
AH
665enable_static
666enable_shared
667CXXCPP
668CPP
669OTOOL64
670OTOOL
671LIPO
672NMEDIT
673DSYMUTIL
674OBJDUMP
675LN_S
676ac_ct_DUMPBIN
677DUMPBIN
678LD
679FGREP
680EGREP
681GREP
682SED
683LIBTOOL
684BUILD_INFO_FALSE
685BUILD_INFO_TRUE
0a35513e
AH
686RANLIB
687NM
688AR
689am__fastdepCCAS_FALSE
690am__fastdepCCAS_TRUE
691CCASDEPMODE
692CCASFLAGS
693CCAS
694am__fastdepCXX_FALSE
695am__fastdepCXX_TRUE
696CXXDEPMODE
697ac_ct_CXX
698CXXFLAGS
699CXX
700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
503902f9 703am__nodep
0a35513e
AH
704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717toolexeclibdir
718toolexecdir
719multi_basedir
22e05272
JM
720AM_BACKSLASH
721AM_DEFAULT_VERBOSITY
722AM_DEFAULT_V
723AM_V
0a35513e
AH
724am__untar
725am__tar
726AMTAR
727am__leading_dot
728SET_MAKE
729AWK
730mkdir_p
731MKDIR_P
732INSTALL_STRIP_PROGRAM
733STRIP
734install_sh
735MAKEINFO
736AUTOHEADER
737AUTOMAKE
738AUTOCONF
739ACLOCAL
740VERSION
741PACKAGE
742CYGPATH_W
743am__isrc
744INSTALL_DATA
745INSTALL_SCRIPT
746INSTALL_PROGRAM
747target_os
748target_vendor
749target_cpu
750target
751host_os
752host_vendor
753host_cpu
754host
755build_os
756build_vendor
757build_cpu
758build
759GENINSRC_FALSE
760GENINSRC_TRUE
761target_alias
762host_alias
763build_alias
764LIBS
765ECHO_T
766ECHO_N
767ECHO_C
768DEFS
769mandir
770localedir
771libdir
772psdir
773pdfdir
774dvidir
775htmldir
776infodir
777docdir
778oldincludedir
779includedir
780localstatedir
781sharedstatedir
782sysconfdir
783datadir
784datarootdir
785libexecdir
786sbindir
787bindir
788program_transform_name
789prefix
790exec_prefix
791PACKAGE_URL
792PACKAGE_BUGREPORT
793PACKAGE_STRING
794PACKAGE_VERSION
795PACKAGE_TARNAME
796PACKAGE_NAME
797PATH_SEPARATOR
798SHELL'
799ac_subst_files=''
800ac_user_opts='
801enable_option_checking
802enable_version_specific_runtime_libs
803enable_generated_files_in_srcdir
22e05272 804enable_silent_rules
0a35513e 805enable_multilib
e8e66971 806with_toolexeclibdir
0a35513e
AH
807enable_dependency_tracking
808enable_shared
809enable_static
810with_pic
811enable_fast_install
812with_gnu_ld
813enable_libtool_lock
6a6d3817 814enable_darwin_at_rpath
0a35513e
AH
815enable_maintainer_mode
816enable_linux_futex
817enable_tls
818enable_symvers
45ba6bf2 819enable_werror
c51081fc 820enable_cet
3c36aa6b 821with_gcc_major_version_only
0a35513e
AH
822'
823 ac_precious_vars='build_alias
824host_alias
825target_alias
826CPP
827CPPFLAGS
828CXXCPP'
829
830
831# Initialize some variables set by options.
832ac_init_help=
833ac_init_version=false
834ac_unrecognized_opts=
835ac_unrecognized_sep=
836# The variables have the same names as the options, with
837# dashes changed to underlines.
838cache_file=/dev/null
839exec_prefix=NONE
840no_create=
841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
849verbose=
850x_includes=NONE
851x_libraries=NONE
852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
858# (The list follows the same order as the GNU Coding Standards.)
859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
867includedir='${prefix}/include'
868oldincludedir='/usr/include'
869docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870infodir='${datarootdir}/info'
871htmldir='${docdir}'
872dvidir='${docdir}'
873pdfdir='${docdir}'
874psdir='${docdir}'
875libdir='${exec_prefix}/lib'
876localedir='${datarootdir}/locale'
877mandir='${datarootdir}/man'
878
879ac_prev=
880ac_dashdash=
881for ac_option
882do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
22e05272
JM
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
0a35513e
AH
894 esac
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 938 as_fn_error $? "invalid feature name: $ac_useropt"
0a35513e
AH
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 964 as_fn_error $? "invalid feature name: $ac_useropt"
0a35513e
AH
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969"enable_$ac_useropt"
970"*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1168 as_fn_error $? "invalid package name: $ac_useropt"
0a35513e
AH
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1184 as_fn_error $? "invalid package name: $ac_useropt"
0a35513e
AH
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
22e05272
JM
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215Try \`$0 --help' for more information"
0a35513e
AH
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
0a35513e
AH
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
0a35513e
AH
1234 ;;
1235
1236 esac
1237done
1238
1239if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1241 as_fn_error $? "missing argument to $ac_option"
0a35513e
AH
1242fi
1243
1244if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
22e05272 1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
0a35513e
AH
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250fi
1251
1252# Check all directory arguments for consistency.
1253for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1257do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
22e05272 1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
0a35513e
AH
1271done
1272
1273# There might be people who depend on the old broken behavior: `$host'
1274# used to hold the argument of --host etc.
1275# FIXME: To remove some day.
1276build=$build_alias
1277host=$host_alias
1278target=$target_alias
1279
1280# FIXME: To remove some day.
1281if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
0a35513e
AH
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287fi
1288
1289ac_tool_prefix=
1290test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292test "$silent" = yes && exec 6>/dev/null
1293
1294
1295ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296ac_ls_di=`ls -di .` &&
1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1298 as_fn_error $? "working directory cannot be determined"
0a35513e 1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1300 as_fn_error $? "pwd does not report name of working directory"
0a35513e
AH
1301
1302
1303# Find the source files, if location was not specified.
1304if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312$as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334else
1335 ac_srcdir_defaulted=no
1336fi
1337if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
0a35513e
AH
1340fi
1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342ac_abs_confdir=`(
22e05272 1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
0a35513e
AH
1344 pwd)`
1345# When building in place, set srcdir=.
1346if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348fi
1349# Remove unnecessary trailing slashes from srcdir.
1350# Double slashes in file names in object file debugging info
1351# mess up M-x gdb in Emacs.
1352case $srcdir in
1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354esac
1355for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360done
1361
1362#
1363# Report the --help message.
1364#
1365if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369\`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1370
1371Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376Defaults for the options are specified in brackets.
1377
1378Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
22e05272 1383 -q, --quiet, --silent do not print \`checking ...' messages
0a35513e
AH
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388
1389Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1394
1395By default, \`make install' will install all the files in
1396\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398for instance \`--prefix=\$HOME'.
1399
1400For better control, use the options below.
1401
1402Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422_ACEOF
1423
1424 cat <<\_ACEOF
1425
1426Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 --target=TARGET configure for building compilers for TARGET [HOST]
1435_ACEOF
1436fi
1437
1438if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1441 esac
1442 cat <<\_ACEOF
1443
1444Optional Features:
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-version-specific-runtime-libs
1449 Specify that runtime libraries should be installed
1450 in a compiler-specific directory [default=no]
1451 --enable-generated-files-in-srcdir
1452 put copies of generated files in source dir intended
1453 for creating source tarballs for users without
1454 texinfo bison or flex. [default=no]
22e05272
JM
1455 --enable-silent-rules less verbose build output (undo: "make V=1")
1456 --disable-silent-rules verbose build output (undo: "make V=0")
0a35513e 1457 --enable-multilib build many library versions (default)
22e05272
JM
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
0a35513e
AH
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
6a6d3817
IS
1467 --enable-darwin-at-rpath
1468 install libraries with @rpath/library-name, requires
1469 rpaths to be added to executables
22e05272
JM
1470 --enable-maintainer-mode
1471 enable make rules and dependencies not useful (and
1472 sometimes confusing) to the casual installer
0a35513e
AH
1473 --enable-linux-futex use the Linux futex system call [default=default]
1474 --enable-tls Use thread-local storage [default=yes]
1475 --enable-symvers=STYLE enables symbol versioning of the shared library
1476 [default=yes]
45ba6bf2 1477 --disable-werror disable building with -Werror
8d286dd1 1478 --enable-cet enable Intel CET in target libraries [default=auto]
0a35513e
AH
1479
1480Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
e8e66971
MR
1483 --with-toolexeclibdir=DIR
1484 install libraries built with a cross compiler within
1485 DIR
0a35513e
AH
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3c36aa6b
JJ
1489 --with-gcc-major-version-only
1490 use only GCC major number in filesystem paths
0a35513e
AH
1491
1492Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
0a35513e
AH
1499 you have headers in a nonstandard directory <include dir>
1500 CXX C++ compiler command
1501 CXXFLAGS C++ compiler flags
1502 CCAS assembler compiler command (defaults to CC)
1503 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1504 CPP C preprocessor
1505 CXXCPP C++ preprocessor
1506
1507Use these variables to override the choices made by `configure' or to help
1508it to find libraries and programs with nonstandard names/locations.
1509
1510Report bugs to the package provider.
1511GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1512General help using GNU software: <http://www.gnu.org/gethelp/>.
1513_ACEOF
1514ac_status=$?
1515fi
1516
1517if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 continue
1523 ac_builddir=.
1524
1525case "$ac_dir" in
1526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527*)
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535esac
1536ac_abs_top_builddir=$ac_pwd
1537ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538# for backward compatibility:
1539ac_top_builddir=$ac_top_build_prefix
1540
1541case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554esac
1555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1570fi
1571
1572test -n "$ac_init_help" && exit $ac_status
1573if $ac_init_version; then
1574 cat <<\_ACEOF
1575GNU TM Runtime Library configure 1.0
22e05272 1576generated by GNU Autoconf 2.69
0a35513e 1577
22e05272 1578Copyright (C) 2012 Free Software Foundation, Inc.
0a35513e
AH
1579This configure script is free software; the Free Software Foundation
1580gives unlimited permission to copy, distribute and modify it.
1581_ACEOF
1582 exit
1583fi
1584
1585## ------------------------ ##
1586## Autoconf initialization. ##
1587## ------------------------ ##
1588
1589# ac_fn_c_try_compile LINENO
1590# --------------------------
1591# Try to compile conftest.$ac_ext, and return whether this succeeded.
1592ac_fn_c_try_compile ()
1593{
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext
1596 if { { ac_try="$ac_compile"
1597case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext; then :
1615 ac_retval=0
1616else
1617 $as_echo "$as_me: failed program was:" >&5
1618sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621fi
22e05272
JM
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
0a35513e
AH
1624
1625} # ac_fn_c_try_compile
1626
1627# ac_fn_cxx_try_compile LINENO
1628# ----------------------------
1629# Try to compile conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_cxx_try_compile ()
1631{
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1635case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_cxx_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1653 ac_retval=0
1654else
1655 $as_echo "$as_me: failed program was:" >&5
1656sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659fi
22e05272
JM
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
0a35513e
AH
1662
1663} # ac_fn_cxx_try_compile
1664
1665# ac_fn_c_try_link LINENO
1666# -----------------------
1667# Try to link conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_link ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext conftest$ac_exeext
1672 if { { ac_try="$ac_link"
1673case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
22e05272 1692 test -x conftest$ac_exeext
0a35513e
AH
1693 }; then :
1694 ac_retval=0
1695else
1696 $as_echo "$as_me: failed program was:" >&5
1697sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700fi
1701 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703 # interfere with the next link command; also delete a directory that is
1704 # left behind by Apple's compiler. We do this before executing the actions.
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
0a35513e
AH
1708
1709} # ac_fn_c_try_link
1710
1711# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1712# -------------------------------------------------------
1713# Tests whether HEADER exists and can be compiled using the include files in
1714# INCLUDES, setting the cache variable VAR accordingly.
1715ac_fn_c_check_header_compile ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719$as_echo_n "checking for $2... " >&6; }
22e05272 1720if eval \${$3+:} false; then :
0a35513e
AH
1721 $as_echo_n "(cached) " >&6
1722else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724/* end confdefs.h. */
1725$4
1726#include <$2>
1727_ACEOF
1728if ac_fn_c_try_compile "$LINENO"; then :
1729 eval "$3=yes"
1730else
1731 eval "$3=no"
1732fi
1733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734fi
1735eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737$as_echo "$ac_res" >&6; }
22e05272 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0a35513e
AH
1739
1740} # ac_fn_c_check_header_compile
1741
1742# ac_fn_c_try_cpp LINENO
1743# ----------------------
1744# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745ac_fn_c_try_cpp ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_cpp conftest.$ac_ext"
1749case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1763 test $ac_status = 0; } > conftest.i && {
0a35513e
AH
1764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 }; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773fi
22e05272
JM
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
0a35513e
AH
1776
1777} # ac_fn_c_try_cpp
1778
1779# ac_fn_c_try_run LINENO
1780# ----------------------
1781# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1782# that executables *can* be run.
1783ac_fn_c_try_run ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_link"
1787case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>&5
1794 ac_status=$?
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1797 { { case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_try") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; }; }; then :
1807 ac_retval=0
1808else
1809 $as_echo "$as_me: program exited with status $ac_status" >&5
1810 $as_echo "$as_me: failed program was:" >&5
1811sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=$ac_status
1814fi
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
0a35513e
AH
1818
1819} # ac_fn_c_try_run
1820
1821# ac_fn_c_check_func LINENO FUNC VAR
1822# ----------------------------------
1823# Tests whether FUNC exists, setting the cache variable VAR accordingly
1824ac_fn_c_check_func ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
22e05272 1829if eval \${$3+:} false; then :
0a35513e
AH
1830 $as_echo_n "(cached) " >&6
1831else
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1836#define $2 innocuous_$2
1837
1838/* System header to define __stub macros and hopefully few prototypes,
1839 which can conflict with char $2 (); below.
1840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1841 <limits.h> exists even on freestanding compilers. */
1842
1843#ifdef __STDC__
1844# include <limits.h>
1845#else
1846# include <assert.h>
1847#endif
1848
1849#undef $2
1850
1851/* Override any GCC internal prototype to avoid an error.
1852 Use char because int might match the return type of a GCC
1853 builtin and then its argument prototype would still apply. */
1854#ifdef __cplusplus
1855extern "C"
1856#endif
1857char $2 ();
1858/* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861#if defined __stub_$2 || defined __stub___$2
1862choke me
1863#endif
1864
1865int
1866main ()
1867{
1868return $2 ();
1869 ;
1870 return 0;
1871}
1872_ACEOF
1873if ac_fn_c_try_link "$LINENO"; then :
1874 eval "$3=yes"
1875else
1876 eval "$3=no"
1877fi
1878rm -f core conftest.err conftest.$ac_objext \
1879 conftest$ac_exeext conftest.$ac_ext
1880fi
1881eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883$as_echo "$ac_res" >&6; }
22e05272 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0a35513e
AH
1885
1886} # ac_fn_c_check_func
1887
1888# ac_fn_cxx_try_cpp LINENO
1889# ------------------------
1890# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1891ac_fn_cxx_try_cpp ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_cpp conftest.$ac_ext"
1895case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1909 test $ac_status = 0; } > conftest.i && {
0a35513e
AH
1910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1911 test ! -s conftest.err
1912 }; then :
1913 ac_retval=0
1914else
1915 $as_echo "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919fi
22e05272
JM
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
0a35513e
AH
1922
1923} # ac_fn_cxx_try_cpp
1924
1925# ac_fn_cxx_try_link LINENO
1926# -------------------------
1927# Try to link conftest.$ac_ext, and return whether this succeeded.
1928ac_fn_cxx_try_link ()
1929{
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1933case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936esac
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938$as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1945 fi
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_cxx_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest$ac_exeext && {
1951 test "$cross_compiling" = yes ||
22e05272 1952 test -x conftest$ac_exeext
0a35513e
AH
1953 }; then :
1954 ac_retval=0
1955else
1956 $as_echo "$as_me: failed program was:" >&5
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_retval=1
1960fi
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963 # interfere with the next link command; also delete a directory that is
1964 # left behind by Apple's compiler. We do this before executing the actions.
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
0a35513e
AH
1968
1969} # ac_fn_cxx_try_link
1970
1971# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1972# -------------------------------------------------------
1973# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1974# the include files in INCLUDES and setting the cache variable VAR
1975# accordingly.
1976ac_fn_c_check_header_mongrel ()
1977{
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1979 if eval \${$3+:} false; then :
0a35513e
AH
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981$as_echo_n "checking for $2... " >&6; }
22e05272 1982if eval \${$3+:} false; then :
0a35513e
AH
1983 $as_echo_n "(cached) " >&6
1984fi
1985eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
1988else
1989 # Is the header compilable?
1990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1991$as_echo_n "checking $2 usability... " >&6; }
1992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h. */
1994$4
1995#include <$2>
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_header_compiler=yes
1999else
2000 ac_header_compiler=no
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2004$as_echo "$ac_header_compiler" >&6; }
2005
2006# Is the header present?
2007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2008$as_echo_n "checking $2 presence... " >&6; }
2009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h. */
2011#include <$2>
2012_ACEOF
2013if ac_fn_c_try_cpp "$LINENO"; then :
2014 ac_header_preproc=yes
2015else
2016 ac_header_preproc=no
2017fi
22e05272 2018rm -f conftest.err conftest.i conftest.$ac_ext
0a35513e
AH
2019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2020$as_echo "$ac_header_preproc" >&6; }
2021
2022# So? What about this header?
2023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2024 yes:no: )
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2026$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029 ;;
2030 no:yes:* )
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2032$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2034$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2036$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2038$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041 ;;
2042esac
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044$as_echo_n "checking for $2... " >&6; }
22e05272 2045if eval \${$3+:} false; then :
0a35513e
AH
2046 $as_echo_n "(cached) " >&6
2047else
2048 eval "$3=\$ac_header_compiler"
2049fi
2050eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052$as_echo "$ac_res" >&6; }
2053fi
22e05272 2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0a35513e
AH
2055
2056} # ac_fn_c_check_header_mongrel
2057
2058# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059# -------------------------------------------
2060# Tests whether TYPE exists after having included INCLUDES, setting cache
2061# variable VAR accordingly.
2062ac_fn_c_check_type ()
2063{
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
22e05272 2067if eval \${$3+:} false; then :
0a35513e
AH
2068 $as_echo_n "(cached) " >&6
2069else
2070 eval "$3=no"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h. */
2073$4
2074int
2075main ()
2076{
2077if (sizeof ($2))
2078 return 0;
2079 ;
2080 return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087int
2088main ()
2089{
2090if (sizeof (($2)))
2091 return 0;
2092 ;
2093 return 0;
2094}
2095_ACEOF
2096if ac_fn_c_try_compile "$LINENO"; then :
2097
2098else
2099 eval "$3=yes"
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104fi
2105eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107$as_echo "$ac_res" >&6; }
22e05272 2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0a35513e
AH
2109
2110} # ac_fn_c_check_type
2111
2112# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2113# --------------------------------------------
2114# Tries to find the compile-time value of EXPR in a program that includes
2115# INCLUDES, setting VAR accordingly. Returns whether the value could be
2116# computed
2117ac_fn_c_compute_int ()
2118{
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 if test "$cross_compiling" = yes; then
2121 # Depending upon the size, compute the lo and hi bounds.
2122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123/* end confdefs.h. */
2124$4
2125int
2126main ()
2127{
2128static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
2129test_array [0] = 0;
2130return test_array [0];
0a35513e
AH
2131
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=0 ac_mid=0
2138 while :; do
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h. */
2141$4
2142int
2143main ()
2144{
2145static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2146test_array [0] = 0;
2147return test_array [0];
0a35513e
AH
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_hi=$ac_mid; break
2155else
2156 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2157 if test $ac_lo -le $ac_mid; then
2158 ac_lo= ac_hi=
2159 break
2160 fi
2161 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 done
2165else
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h. */
2168$4
2169int
2170main ()
2171{
2172static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2173test_array [0] = 0;
2174return test_array [0];
0a35513e
AH
2175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_hi=-1 ac_mid=-1
2182 while :; do
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h. */
2185$4
2186int
2187main ()
2188{
2189static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2190test_array [0] = 0;
2191return test_array [0];
0a35513e
AH
2192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_lo=$ac_mid; break
2199else
2200 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2201 if test $ac_mid -le $ac_hi; then
2202 ac_lo= ac_hi=
2203 break
2204 fi
2205 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 done
2209else
2210 ac_lo= ac_hi=
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213fi
2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215# Binary search between lo and hi bounds.
2216while test "x$ac_lo" != "x$ac_hi"; do
2217 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$4
2221int
2222main ()
2223{
2224static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2225test_array [0] = 0;
2226return test_array [0];
0a35513e
AH
2227
2228 ;
2229 return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233 ac_hi=$ac_mid
2234else
2235 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238done
2239case $ac_lo in #((
2240?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2241'') ac_retval=1 ;;
2242esac
2243 else
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245/* end confdefs.h. */
2246$4
2247static long int longval () { return $2; }
2248static unsigned long int ulongval () { return $2; }
2249#include <stdio.h>
2250#include <stdlib.h>
2251int
2252main ()
2253{
2254
2255 FILE *f = fopen ("conftest.val", "w");
2256 if (! f)
2257 return 1;
2258 if (($2) < 0)
2259 {
2260 long int i = longval ();
2261 if (i != ($2))
2262 return 1;
2263 fprintf (f, "%ld", i);
2264 }
2265 else
2266 {
2267 unsigned long int i = ulongval ();
2268 if (i != ($2))
2269 return 1;
2270 fprintf (f, "%lu", i);
2271 }
2272 /* Do not output a trailing newline, as this causes \r\n confusion
2273 on some platforms. */
2274 return ferror (f) || fclose (f) != 0;
2275
2276 ;
2277 return 0;
2278}
2279_ACEOF
2280if ac_fn_c_try_run "$LINENO"; then :
2281 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2282else
2283 ac_retval=1
2284fi
2285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2286 conftest.$ac_objext conftest.beam conftest.$ac_ext
2287rm -f conftest.val
2288
2289 fi
22e05272
JM
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 as_fn_set_status $ac_retval
0a35513e
AH
2292
2293} # ac_fn_c_compute_int
9ce91011 2294
22e05272
JM
2295# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2296# ---------------------------------------------
2297# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2298# accordingly.
9ce91011
RO
2299ac_fn_c_check_decl ()
2300{
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 as_decl_name=`echo $2|sed 's/ *(.*//'`
2303 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2305$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
22e05272 2306if eval \${$3+:} false; then :
9ce91011
RO
2307 $as_echo_n "(cached) " >&6
2308else
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310/* end confdefs.h. */
2311$4
2312int
2313main ()
2314{
2315#ifndef $as_decl_name
2316#ifdef __cplusplus
2317 (void) $as_decl_use;
2318#else
2319 (void) $as_decl_name;
2320#endif
2321#endif
2322
2323 ;
2324 return 0;
2325}
2326_ACEOF
2327if ac_fn_c_try_compile "$LINENO"; then :
2328 eval "$3=yes"
2329else
2330 eval "$3=no"
2331fi
2332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333fi
2334eval ac_res=\$$3
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336$as_echo "$ac_res" >&6; }
22e05272 2337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9ce91011
RO
2338
2339} # ac_fn_c_check_decl
0a35513e
AH
2340cat >config.log <<_ACEOF
2341This file contains any messages produced by compilers while
2342running configure, to aid debugging if configure makes a mistake.
2343
2344It was created by GNU TM Runtime Library $as_me 1.0, which was
22e05272 2345generated by GNU Autoconf 2.69. Invocation command line was
0a35513e
AH
2346
2347 $ $0 $@
2348
2349_ACEOF
2350exec 5>>config.log
2351{
2352cat <<_ASUNAME
2353## --------- ##
2354## Platform. ##
2355## --------- ##
2356
2357hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2358uname -m = `(uname -m) 2>/dev/null || echo unknown`
2359uname -r = `(uname -r) 2>/dev/null || echo unknown`
2360uname -s = `(uname -s) 2>/dev/null || echo unknown`
2361uname -v = `(uname -v) 2>/dev/null || echo unknown`
2362
2363/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2364/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2365
2366/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2367/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2368/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2369/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2370/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2371/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2372/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2373
2374_ASUNAME
2375
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 $as_echo "PATH: $as_dir"
2382 done
2383IFS=$as_save_IFS
2384
2385} >&5
2386
2387cat >&5 <<_ACEOF
2388
2389
2390## ----------- ##
2391## Core tests. ##
2392## ----------- ##
2393
2394_ACEOF
2395
2396
2397# Keep a trace of the command line.
2398# Strip out --no-create and --no-recursion so they do not pile up.
2399# Strip out --silent because we don't want to record it for future runs.
2400# Also quote any args containing shell meta-characters.
2401# Make two passes to allow for proper duplicate-argument suppression.
2402ac_configure_args=
2403ac_configure_args0=
2404ac_configure_args1=
2405ac_must_keep_next=false
2406for ac_pass in 1 2
2407do
2408 for ac_arg
2409 do
2410 case $ac_arg in
2411 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2413 | -silent | --silent | --silen | --sile | --sil)
2414 continue ;;
2415 *\'*)
2416 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 esac
2418 case $ac_pass in
2419 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2420 2)
2421 as_fn_append ac_configure_args1 " '$ac_arg'"
2422 if test $ac_must_keep_next = true; then
2423 ac_must_keep_next=false # Got value, back to normal.
2424 else
2425 case $ac_arg in
2426 *=* | --config-cache | -C | -disable-* | --disable-* \
2427 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2428 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2429 | -with-* | --with-* | -without-* | --without-* | --x)
2430 case "$ac_configure_args0 " in
2431 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2432 esac
2433 ;;
2434 -* ) ac_must_keep_next=true ;;
2435 esac
2436 fi
2437 as_fn_append ac_configure_args " '$ac_arg'"
2438 ;;
2439 esac
2440 done
2441done
2442{ ac_configure_args0=; unset ac_configure_args0;}
2443{ ac_configure_args1=; unset ac_configure_args1;}
2444
2445# When interrupted or exit'd, cleanup temporary files, and complete
2446# config.log. We remove comments because anyway the quotes in there
2447# would cause problems or look ugly.
2448# WARNING: Use '\'' to represent an apostrophe within the trap.
2449# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2450trap 'exit_status=$?
2451 # Save into config.log some information that might help in debugging.
2452 {
2453 echo
2454
22e05272 2455 $as_echo "## ---------------- ##
0a35513e 2456## Cache variables. ##
22e05272 2457## ---------------- ##"
0a35513e
AH
2458 echo
2459 # The following way of writing the cache mishandles newlines in values,
2460(
2461 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2462 eval ac_val=\$$ac_var
2463 case $ac_val in #(
2464 *${as_nl}*)
2465 case $ac_var in #(
2466 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2467$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2468 esac
2469 case $ac_var in #(
2470 _ | IFS | as_nl) ;; #(
2471 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2472 *) { eval $ac_var=; unset $ac_var;} ;;
2473 esac ;;
2474 esac
2475 done
2476 (set) 2>&1 |
2477 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2478 *${as_nl}ac_space=\ *)
2479 sed -n \
2480 "s/'\''/'\''\\\\'\'''\''/g;
2481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2482 ;; #(
2483 *)
2484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2485 ;;
2486 esac |
2487 sort
2488)
2489 echo
2490
22e05272 2491 $as_echo "## ----------------- ##
0a35513e 2492## Output variables. ##
22e05272 2493## ----------------- ##"
0a35513e
AH
2494 echo
2495 for ac_var in $ac_subst_vars
2496 do
2497 eval ac_val=\$$ac_var
2498 case $ac_val in
2499 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500 esac
2501 $as_echo "$ac_var='\''$ac_val'\''"
2502 done | sort
2503 echo
2504
2505 if test -n "$ac_subst_files"; then
22e05272 2506 $as_echo "## ------------------- ##
0a35513e 2507## File substitutions. ##
22e05272 2508## ------------------- ##"
0a35513e
AH
2509 echo
2510 for ac_var in $ac_subst_files
2511 do
2512 eval ac_val=\$$ac_var
2513 case $ac_val in
2514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515 esac
2516 $as_echo "$ac_var='\''$ac_val'\''"
2517 done | sort
2518 echo
2519 fi
2520
2521 if test -s confdefs.h; then
22e05272 2522 $as_echo "## ----------- ##
0a35513e 2523## confdefs.h. ##
22e05272 2524## ----------- ##"
0a35513e
AH
2525 echo
2526 cat confdefs.h
2527 echo
2528 fi
2529 test "$ac_signal" != 0 &&
2530 $as_echo "$as_me: caught signal $ac_signal"
2531 $as_echo "$as_me: exit $exit_status"
2532 } >&5
2533 rm -f core *.core core.conftest.* &&
2534 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2535 exit $exit_status
2536' 0
2537for ac_signal in 1 2 13 15; do
2538 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2539done
2540ac_signal=0
2541
2542# confdefs.h avoids OS command line length limits that DEFS can exceed.
2543rm -f -r conftest* confdefs.h
2544
2545$as_echo "/* confdefs.h */" > confdefs.h
2546
2547# Predefined preprocessor variables.
2548
2549cat >>confdefs.h <<_ACEOF
2550#define PACKAGE_NAME "$PACKAGE_NAME"
2551_ACEOF
2552
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2555_ACEOF
2556
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_VERSION "$PACKAGE_VERSION"
2559_ACEOF
2560
2561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_STRING "$PACKAGE_STRING"
2563_ACEOF
2564
2565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2567_ACEOF
2568
2569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_URL "$PACKAGE_URL"
2571_ACEOF
2572
2573
2574# Let the site file select an alternate cache file if it wants to.
2575# Prefer an explicitly selected file to automatically selected ones.
2576ac_site_file1=NONE
2577ac_site_file2=NONE
2578if test -n "$CONFIG_SITE"; then
22e05272
JM
2579 # We do not want a PATH search for config.site.
2580 case $CONFIG_SITE in #((
2581 -*) ac_site_file1=./$CONFIG_SITE;;
2582 */*) ac_site_file1=$CONFIG_SITE;;
2583 *) ac_site_file1=./$CONFIG_SITE;;
2584 esac
0a35513e
AH
2585elif test "x$prefix" != xNONE; then
2586 ac_site_file1=$prefix/share/config.site
2587 ac_site_file2=$prefix/etc/config.site
2588else
2589 ac_site_file1=$ac_default_prefix/share/config.site
2590 ac_site_file2=$ac_default_prefix/etc/config.site
2591fi
2592for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2593do
2594 test "x$ac_site_file" = xNONE && continue
22e05272 2595 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
0a35513e
AH
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2597$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2598 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2599 . "$ac_site_file" \
2600 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602as_fn_error $? "failed to load site script $ac_site_file
2603See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
2604 fi
2605done
2606
2607if test -r "$cache_file"; then
22e05272
JM
2608 # Some versions of bash will fail to source /dev/null (special files
2609 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2610 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
0a35513e
AH
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2612$as_echo "$as_me: loading cache $cache_file" >&6;}
2613 case $cache_file in
2614 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2615 *) . "./$cache_file";;
2616 esac
2617 fi
2618else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2620$as_echo "$as_me: creating cache $cache_file" >&6;}
2621 >$cache_file
2622fi
2623
2624# Check that the precious variables saved in the cache have kept the same
2625# value.
2626ac_cache_corrupted=false
2627for ac_var in $ac_precious_vars; do
2628 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2629 eval ac_new_set=\$ac_env_${ac_var}_set
2630 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2631 eval ac_new_val=\$ac_env_${ac_var}_value
2632 case $ac_old_set,$ac_new_set in
2633 set,)
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2635$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2637 ,set)
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2639$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2640 ac_cache_corrupted=: ;;
2641 ,);;
2642 *)
2643 if test "x$ac_old_val" != "x$ac_new_val"; then
2644 # differences in whitespace do not lead to failure.
2645 ac_old_val_w=`echo x $ac_old_val`
2646 ac_new_val_w=`echo x $ac_new_val`
2647 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2649$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2650 ac_cache_corrupted=:
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2653$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2654 eval $ac_var=\$ac_old_val
2655 fi
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2657$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2659$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2660 fi;;
2661 esac
2662 # Pass precious variables to config.status.
2663 if test "$ac_new_set" = set; then
2664 case $ac_new_val in
2665 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2666 *) ac_arg=$ac_var=$ac_new_val ;;
2667 esac
2668 case " $ac_configure_args " in
2669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2670 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2671 esac
2672 fi
2673done
2674if $ac_cache_corrupted; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2678$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2679 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
0a35513e
AH
2680fi
2681## -------------------- ##
2682## Main body of script. ##
2683## -------------------- ##
2684
2685ac_ext=c
2686ac_cpp='$CPP $CPPFLAGS'
2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692
2693
2694
2695ac_config_headers="$ac_config_headers config.h"
2696
2697
2698# -------
2699# Options
2700# -------
2701
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2703$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2704 # Check whether --enable-version-specific-runtime-libs was given.
2705if test "${enable_version_specific_runtime_libs+set}" = set; then :
2706 enableval=$enable_version_specific_runtime_libs;
2707 case "$enableval" in
2708 yes|no) ;;
22e05272 2709 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
0a35513e
AH
2710 esac
2711
2712else
2713 enable_version_specific_runtime_libs=no
2714fi
2715
2716
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2718$as_echo "$enable_version_specific_runtime_libs" >&6; }
2719
2720# We would like our source tree to be readonly. However when releases or
2721# pre-releases are generated, the flex/bison generated files as well as the
2722# various formats of manuals need to be included along with the rest of the
2723# sources. Therefore we have --enable-generated-files-in-srcdir to do
2724# just that.
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2726$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2727 # Check whether --enable-generated-files-in-srcdir was given.
2728if test "${enable_generated_files_in_srcdir+set}" = set; then :
2729 enableval=$enable_generated_files_in_srcdir;
2730 case "$enableval" in
2731 yes|no) ;;
22e05272 2732 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
0a35513e
AH
2733 esac
2734
2735else
2736 enable_generated_files_in_srcdir=no
2737fi
2738
2739
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2741$as_echo "$enable_generated_files_in_srcdir" >&6; }
2742 if test "$enable_generated_files_in_srcdir" = yes; then
2743 GENINSRC_TRUE=
2744 GENINSRC_FALSE='#'
2745else
2746 GENINSRC_TRUE='#'
2747 GENINSRC_FALSE=
2748fi
2749
2750
2751
2752# -------
2753# -------
2754
2755# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2756#
2757# You will slowly go insane if you do not grok the following fact: when
2758# building this library, the top-level /target/ becomes the library's /host/.
2759#
2760# configure then causes --target to default to --host, exactly like any
2761# other package using autoconf. Therefore, 'target' and 'host' will
2762# always be the same. This makes sense both for native and cross compilers
2763# just think about it for a little while. :-)
2764#
2765# Also, if this library is being configured as part of a cross compiler, the
2766# top-level configure script will pass the "real" host as $with_cross_host.
2767#
2768# Do not delete or change the following two lines. For why, see
2769# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2770ac_aux_dir=
2771for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2772 if test -f "$ac_dir/install-sh"; then
2773 ac_aux_dir=$ac_dir
2774 ac_install_sh="$ac_aux_dir/install-sh -c"
2775 break
2776 elif test -f "$ac_dir/install.sh"; then
2777 ac_aux_dir=$ac_dir
2778 ac_install_sh="$ac_aux_dir/install.sh -c"
2779 break
2780 elif test -f "$ac_dir/shtool"; then
2781 ac_aux_dir=$ac_dir
2782 ac_install_sh="$ac_aux_dir/shtool install -c"
2783 break
2784 fi
0a35513e
AH
2785done
2786if test -z "$ac_aux_dir"; then
22e05272 2787 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
0a35513e
AH
2788fi
2789
2790# These three variables are undocumented and unsupported,
2791# and are intended to be withdrawn in a future Autoconf release.
2792# They can cause serious problems if a builder's source tree is in a directory
2793# whose full name contains unusual characters.
2794ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2795ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2796ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2797
2798
2799# Make sure we can run config.sub.
2800$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2801 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
0a35513e
AH
2802
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2804$as_echo_n "checking build system type... " >&6; }
22e05272 2805if ${ac_cv_build+:} false; then :
0a35513e
AH
2806 $as_echo_n "(cached) " >&6
2807else
2808 ac_build_alias=$build_alias
2809test "x$ac_build_alias" = x &&
2810 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2811test "x$ac_build_alias" = x &&
22e05272 2812 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
0a35513e 2813ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2814 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
0a35513e
AH
2815
2816fi
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2818$as_echo "$ac_cv_build" >&6; }
2819case $ac_cv_build in
2820*-*-*) ;;
22e05272 2821*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
0a35513e
AH
2822esac
2823build=$ac_cv_build
2824ac_save_IFS=$IFS; IFS='-'
2825set x $ac_cv_build
2826shift
2827build_cpu=$1
2828build_vendor=$2
2829shift; shift
2830# Remember, the first character of IFS is used to create $*,
2831# except with old shells:
2832build_os=$*
2833IFS=$ac_save_IFS
2834case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2835
2836
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2838$as_echo_n "checking host system type... " >&6; }
22e05272 2839if ${ac_cv_host+:} false; then :
0a35513e
AH
2840 $as_echo_n "(cached) " >&6
2841else
2842 if test "x$host_alias" = x; then
2843 ac_cv_host=$ac_cv_build
2844else
2845 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
0a35513e
AH
2847fi
2848
2849fi
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2851$as_echo "$ac_cv_host" >&6; }
2852case $ac_cv_host in
2853*-*-*) ;;
22e05272 2854*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
0a35513e
AH
2855esac
2856host=$ac_cv_host
2857ac_save_IFS=$IFS; IFS='-'
2858set x $ac_cv_host
2859shift
2860host_cpu=$1
2861host_vendor=$2
2862shift; shift
2863# Remember, the first character of IFS is used to create $*,
2864# except with old shells:
2865host_os=$*
2866IFS=$ac_save_IFS
2867case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2868
2869
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2871$as_echo_n "checking target system type... " >&6; }
22e05272 2872if ${ac_cv_target+:} false; then :
0a35513e
AH
2873 $as_echo_n "(cached) " >&6
2874else
2875 if test "x$target_alias" = x; then
2876 ac_cv_target=$ac_cv_host
2877else
2878 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2879 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
0a35513e
AH
2880fi
2881
2882fi
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2884$as_echo "$ac_cv_target" >&6; }
2885case $ac_cv_target in
2886*-*-*) ;;
22e05272 2887*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
0a35513e
AH
2888esac
2889target=$ac_cv_target
2890ac_save_IFS=$IFS; IFS='-'
2891set x $ac_cv_target
2892shift
2893target_cpu=$1
2894target_vendor=$2
2895shift; shift
2896# Remember, the first character of IFS is used to create $*,
2897# except with old shells:
2898target_os=$*
2899IFS=$ac_save_IFS
2900case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2901
2902
2903# The aliases save the names the user supplied, while $host etc.
2904# will get canonicalized.
2905test -n "$target_alias" &&
2906 test "$program_prefix$program_suffix$program_transform_name" = \
2907 NONENONEs,x,x, &&
2908 program_prefix=${target_alias}-
2909
2910target_alias=${target_alias-$host_alias}
2911
2912# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2913# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2914# 1.9.0: minimum required version
2915# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2916# of other PACKAGE_* variables will, however, and there's nothing
2917# we can do about that; they come from AC_INIT).
c0758df9 2918# no-dist: we don't want 'dist' and related rules.
0a35513e
AH
2919# foreign: we don't follow the normal rules for GNU packages (no COPYING
2920# file in the top srcdir, etc, etc), so stop complaining.
2921# -Wall: turns on all automake warnings...
2922# -Wno-portability: ...except this one, since GNU make is required.
2923# -Wno-override: ... and this one, since we do want this in testsuite.
22e05272 2924am__api_version='1.15'
0a35513e
AH
2925
2926# Find a good install program. We prefer a C program (faster),
2927# so one script is as good as another. But avoid the broken or
2928# incompatible versions:
2929# SysV /etc/install, /usr/sbin/install
2930# SunOS /usr/etc/install
2931# IRIX /sbin/install
2932# AIX /bin/install
2933# AmigaOS /C/install, which installs bootblocks on floppy discs
2934# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2935# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2936# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2937# OS/2's system install, which has a completely different semantic
2938# ./install, which can be erroneously created by make from ./install.sh.
2939# Reject install programs that cannot install multiple files.
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2941$as_echo_n "checking for a BSD-compatible install... " >&6; }
2942if test -z "$INSTALL"; then
22e05272 2943if ${ac_cv_path_install+:} false; then :
0a35513e
AH
2944 $as_echo_n "(cached) " >&6
2945else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 # Account for people who put trailing slashes in PATH elements.
2952case $as_dir/ in #((
2953 ./ | .// | /[cC]/* | \
2954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2955 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2956 /usr/ucb/* ) ;;
2957 *)
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2960 # by default.
2961 for ac_prog in ginstall scoinst install; do
2962 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2963 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
0a35513e
AH
2964 if test $ac_prog = install &&
2965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966 # AIX install. It has an incompatible calling convention.
2967 :
2968 elif test $ac_prog = install &&
2969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970 # program-specific install script used by HP pwplus--don't use.
2971 :
2972 else
2973 rm -rf conftest.one conftest.two conftest.dir
2974 echo one > conftest.one
2975 echo two > conftest.two
2976 mkdir conftest.dir
2977 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2978 test -s conftest.one && test -s conftest.two &&
2979 test -s conftest.dir/conftest.one &&
2980 test -s conftest.dir/conftest.two
2981 then
2982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2983 break 3
2984 fi
2985 fi
2986 fi
2987 done
2988 done
2989 ;;
2990esac
2991
2992 done
2993IFS=$as_save_IFS
2994
2995rm -rf conftest.one conftest.two conftest.dir
2996
2997fi
2998 if test "${ac_cv_path_install+set}" = set; then
2999 INSTALL=$ac_cv_path_install
3000 else
3001 # As a last resort, use the slow shell script. Don't cache a
3002 # value for INSTALL within a source directory, because that will
3003 # break other packages using the cache if that directory is
3004 # removed, or if the value is a relative name.
3005 INSTALL=$ac_install_sh
3006 fi
3007fi
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3009$as_echo "$INSTALL" >&6; }
3010
3011# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3012# It thinks the first close brace ends the variable substitution.
3013test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3014
3015test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3016
3017test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3018
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3020$as_echo_n "checking whether build environment is sane... " >&6; }
0a35513e
AH
3021# Reject unsafe characters in $srcdir or the absolute working directory
3022# name. Accept space and tab only in the latter.
3023am_lf='
3024'
3025case `pwd` in
3026 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 3027 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
0a35513e
AH
3028esac
3029case $srcdir in
3030 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 3031 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
0a35513e
AH
3032esac
3033
22e05272 3034# Do 'set' in a subshell so we don't clobber the current shell's
0a35513e
AH
3035# arguments. Must try -L first in case configure is actually a
3036# symlink; some systems play weird games with the mod time of symlinks
3037# (eg FreeBSD returns the mod time of the symlink's containing
3038# directory).
3039if (
22e05272
JM
3040 am_has_slept=no
3041 for am_try in 1 2; do
3042 echo "timestamp, slept: $am_has_slept" > conftest.file
3043 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3044 if test "$*" = "X"; then
3045 # -L didn't work.
3046 set X `ls -t "$srcdir/configure" conftest.file`
3047 fi
3048 if test "$*" != "X $srcdir/configure conftest.file" \
3049 && test "$*" != "X conftest.file $srcdir/configure"; then
3050
3051 # If neither matched, then we have a broken ls. This can happen
3052 # if, for instance, CONFIG_SHELL is bash and it inherits a
3053 # broken ls alias from the environment. This has actually
3054 # happened. Such a system could not be considered "sane".
3055 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3056 alias in your environment" "$LINENO" 5
3057 fi
3058 if test "$2" = conftest.file || test $am_try -eq 2; then
3059 break
3060 fi
3061 # Just in case.
3062 sleep 1
3063 am_has_slept=yes
3064 done
0a35513e
AH
3065 test "$2" = conftest.file
3066 )
3067then
3068 # Ok.
3069 :
3070else
22e05272 3071 as_fn_error $? "newly created file is older than distributed files!
0a35513e
AH
3072Check your system clock" "$LINENO" 5
3073fi
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3075$as_echo "yes" >&6; }
22e05272
JM
3076# If we didn't sleep, we still need to ensure time stamps of config.status and
3077# generated files are strictly newer.
3078am_sleep_pid=
3079if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3080 ( sleep 1 ) &
3081 am_sleep_pid=$!
3082fi
3083
3084rm -f conftest.file
3085
0a35513e
AH
3086test "$program_prefix" != NONE &&
3087 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3088# Use a double $ so make ignores it.
3089test "$program_suffix" != NONE &&
3090 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3091# Double any \ or $.
3092# By default was `s,x,x', remove it if useless.
3093ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3094program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3095
22e05272
JM
3096# Expand $ac_aux_dir to an absolute path.
3097am_aux_dir=`cd "$ac_aux_dir" && pwd`
0a35513e
AH
3098
3099if test x"${MISSING+set}" != xset; then
3100 case $am_aux_dir in
3101 *\ * | *\ *)
3102 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3103 *)
3104 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3105 esac
3106fi
3107# Use eval to expand $SHELL
22e05272
JM
3108if eval "$MISSING --is-lightweight"; then
3109 am_missing_run="$MISSING "
0a35513e
AH
3110else
3111 am_missing_run=
22e05272
JM
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3113$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
0a35513e
AH
3114fi
3115
22e05272 3116if test x"${install_sh+set}" != xset; then
0a35513e
AH
3117 case $am_aux_dir in
3118 *\ * | *\ *)
3119 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3120 *)
3121 install_sh="\${SHELL} $am_aux_dir/install-sh"
3122 esac
3123fi
3124
22e05272
JM
3125# Installed binaries are usually stripped using 'strip' when the user
3126# run "make install-strip". However 'strip' might not be the right
0a35513e 3127# tool to use in cross-compilation environments, therefore Automake
22e05272 3128# will honor the 'STRIP' environment variable to overrule this program.
0a35513e
AH
3129if test "$cross_compiling" != no; then
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3132set dummy ${ac_tool_prefix}strip; ac_word=$2
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3135if ${ac_cv_prog_STRIP+:} false; then :
0a35513e
AH
3136 $as_echo_n "(cached) " >&6
3137else
3138 if test -n "$STRIP"; then
3139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
3148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152done
3153 done
3154IFS=$as_save_IFS
3155
3156fi
3157fi
3158STRIP=$ac_cv_prog_STRIP
3159if test -n "$STRIP"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3161$as_echo "$STRIP" >&6; }
3162else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164$as_echo "no" >&6; }
3165fi
3166
3167
3168fi
3169if test -z "$ac_cv_prog_STRIP"; then
3170 ac_ct_STRIP=$STRIP
3171 # Extract the first word of "strip", so it can be a program name with args.
3172set dummy strip; ac_word=$2
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3175if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
0a35513e
AH
3176 $as_echo_n "(cached) " >&6
3177else
3178 if test -n "$ac_ct_STRIP"; then
3179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
3188 ac_cv_prog_ac_ct_STRIP="strip"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192done
3193 done
3194IFS=$as_save_IFS
3195
3196fi
3197fi
3198ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3199if test -n "$ac_ct_STRIP"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3201$as_echo "$ac_ct_STRIP" >&6; }
3202else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205fi
3206
3207 if test "x$ac_ct_STRIP" = x; then
3208 STRIP=":"
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211yes:)
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214ac_tool_warned=yes ;;
3215esac
3216 STRIP=$ac_ct_STRIP
3217 fi
3218else
3219 STRIP="$ac_cv_prog_STRIP"
3220fi
3221
3222fi
3223INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3224
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3226$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3227if test -z "$MKDIR_P"; then
22e05272 3228 if ${ac_cv_path_mkdir+:} false; then :
0a35513e
AH
3229 $as_echo_n "(cached) " >&6
3230else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_prog in mkdir gmkdir; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3238 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
0a35513e
AH
3239 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3240 'mkdir (GNU coreutils) '* | \
3241 'mkdir (coreutils) '* | \
3242 'mkdir (fileutils) '4.1*)
3243 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3244 break 3;;
3245 esac
3246 done
3247 done
3248 done
3249IFS=$as_save_IFS
3250
3251fi
3252
22e05272 3253 test -d ./--version && rmdir ./--version
0a35513e
AH
3254 if test "${ac_cv_path_mkdir+set}" = set; then
3255 MKDIR_P="$ac_cv_path_mkdir -p"
3256 else
3257 # As a last resort, use the slow shell script. Don't cache a
3258 # value for MKDIR_P within a source directory, because that will
3259 # break other packages using the cache if that directory is
3260 # removed, or if the value is a relative name.
0a35513e
AH
3261 MKDIR_P="$ac_install_sh -d"
3262 fi
3263fi
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3265$as_echo "$MKDIR_P" >&6; }
3266
0a35513e
AH
3267for ac_prog in gawk mawk nawk awk
3268do
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270set dummy $ac_prog; ac_word=$2
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3273if ${ac_cv_prog_AWK+:} false; then :
0a35513e
AH
3274 $as_echo_n "(cached) " >&6
3275else
3276 if test -n "$AWK"; then
3277 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
3286 ac_cv_prog_AWK="$ac_prog"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290done
3291 done
3292IFS=$as_save_IFS
3293
3294fi
3295fi
3296AWK=$ac_cv_prog_AWK
3297if test -n "$AWK"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3299$as_echo "$AWK" >&6; }
3300else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
3304
3305
3306 test -n "$AWK" && break
3307done
3308
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3310$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3311set x ${MAKE-make}
3312ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 3313if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
0a35513e
AH
3314 $as_echo_n "(cached) " >&6
3315else
3316 cat >conftest.make <<\_ACEOF
3317SHELL = /bin/sh
3318all:
3319 @echo '@@@%%%=$(MAKE)=@@@%%%'
3320_ACEOF
22e05272 3321# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
0a35513e
AH
3322case `${MAKE-make} -f conftest.make 2>/dev/null` in
3323 *@@@%%%=?*=@@@%%%*)
3324 eval ac_cv_prog_make_${ac_make}_set=yes;;
3325 *)
3326 eval ac_cv_prog_make_${ac_make}_set=no;;
3327esac
3328rm -f conftest.make
3329fi
3330if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332$as_echo "yes" >&6; }
3333 SET_MAKE=
3334else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336$as_echo "no" >&6; }
3337 SET_MAKE="MAKE=${MAKE-make}"
3338fi
3339
3340rm -rf .tst 2>/dev/null
3341mkdir .tst 2>/dev/null
3342if test -d .tst; then
3343 am__leading_dot=.
3344else
3345 am__leading_dot=_
3346fi
3347rmdir .tst 2>/dev/null
3348
22e05272
JM
3349# Check whether --enable-silent-rules was given.
3350if test "${enable_silent_rules+set}" = set; then :
3351 enableval=$enable_silent_rules;
3352fi
3353
3354case $enable_silent_rules in # (((
3355 yes) AM_DEFAULT_VERBOSITY=0;;
3356 no) AM_DEFAULT_VERBOSITY=1;;
3357 *) AM_DEFAULT_VERBOSITY=1;;
3358esac
3359am_make=${MAKE-make}
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3361$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3362if ${am_cv_make_support_nested_variables+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364else
3365 if $as_echo 'TRUE=$(BAR$(V))
3366BAR0=false
3367BAR1=true
3368V=1
3369am__doit:
3370 @$(TRUE)
3371.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3372 am_cv_make_support_nested_variables=yes
3373else
3374 am_cv_make_support_nested_variables=no
3375fi
3376fi
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3378$as_echo "$am_cv_make_support_nested_variables" >&6; }
3379if test $am_cv_make_support_nested_variables = yes; then
3380 AM_V='$(V)'
3381 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3382else
3383 AM_V=$AM_DEFAULT_VERBOSITY
3384 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3385fi
3386AM_BACKSLASH='\'
3387
0a35513e
AH
3388if test "`cd $srcdir && pwd`" != "`pwd`"; then
3389 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3390 # is not polluted with repeated "-I."
3391 am__isrc=' -I$(srcdir)'
3392 # test to see if srcdir already configured
3393 if test -f $srcdir/config.status; then
22e05272 3394 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
0a35513e
AH
3395 fi
3396fi
3397
3398# test whether we have cygpath
3399if test -z "$CYGPATH_W"; then
3400 if (cygpath --version) >/dev/null 2>/dev/null; then
3401 CYGPATH_W='cygpath -w'
3402 else
3403 CYGPATH_W=echo
3404 fi
3405fi
3406
3407
3408# Define the identity of the package.
3409 PACKAGE='libitm'
3410 VERSION='1.0'
3411
3412
3413cat >>confdefs.h <<_ACEOF
3414#define PACKAGE "$PACKAGE"
3415_ACEOF
3416
3417
3418cat >>confdefs.h <<_ACEOF
3419#define VERSION "$VERSION"
3420_ACEOF
3421
3422# Some tools Automake needs.
3423
3424ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3425
3426
3427AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3428
3429
3430AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3431
3432
3433AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3434
3435
3436MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3437
22e05272
JM
3438# For better backward compatibility. To be removed once Automake 1.9.x
3439# dies out for good. For more background, see:
3440# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3441# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3442mkdir_p='$(MKDIR_P)'
3443
3444# We need awk for the "check" target (and possibly the TAP driver). The
3445# system "awk" is bad on some platforms.
503902f9
MH
3446# Always define AMTAR for backward compatibility. Yes, it's still used
3447# in the wild :-( We should find a proper way to deprecate it ...
3448AMTAR='$${TAR-tar}'
0a35513e 3449
22e05272
JM
3450
3451# We'll loop over all known methods to create a tar archive until one works.
3452_am_tools='gnutar pax cpio none'
3453
503902f9 3454am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
0a35513e
AH
3455
3456
3457
3458
3459
22e05272
JM
3460
3461# POSIX will say in a future version that running "rm -f" with no argument
3462# is OK; and we want to be able to make that assumption in our Makefile
3463# recipes. So use an aggressive probe to check that the usage we want is
3464# actually supported "in the wild" to an acceptable degree.
3465# See automake bug#10828.
3466# To make any issue more visible, cause the running configure to be aborted
3467# by default if the 'rm' program in use doesn't match our expectations; the
3468# user can still override this though.
3469if rm -f && rm -fr && rm -rf; then : OK; else
3470 cat >&2 <<'END'
3471Oops!
3472
3473Your 'rm' program seems unable to run without file operands specified
3474on the command line, even when the '-f' option is present. This is contrary
3475to the behaviour of most rm programs out there, and not conforming with
3476the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3477
3478Please tell bug-automake@gnu.org about your system, including the value
3479of your $PATH and any error possibly output before this message. This
3480can help us improve future automake versions.
3481
3482END
3483 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3484 echo 'Configuration will proceed anyway, since you have set the' >&2
3485 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3486 echo >&2
3487 else
3488 cat >&2 <<'END'
3489Aborting the configuration process, to ensure you take notice of the issue.
3490
3491You can download and install GNU coreutils to get an 'rm' implementation
3492that behaves properly: <http://www.gnu.org/software/coreutils/>.
3493
3494If you want to complete the configuration process using your problematic
3495'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3496to "yes", and re-run configure.
3497
3498END
3499 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3500 fi
3501fi
3502
0a35513e
AH
3503# Default to --enable-multilib
3504# Check whether --enable-multilib was given.
3505if test "${enable_multilib+set}" = set; then :
3506 enableval=$enable_multilib; case "$enableval" in
3507 yes) multilib=yes ;;
3508 no) multilib=no ;;
22e05272 3509 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
0a35513e
AH
3510 esac
3511else
3512 multilib=yes
3513fi
3514
3515
3516# We may get other options which we leave undocumented:
3517# --with-target-subdir, --with-multisrctop, --with-multisubdir
3518# See config-ml.in if you want the gory details.
3519
3520if test "$srcdir" = "."; then
3521 if test "$with_target_subdir" != "."; then
3522 multi_basedir="$srcdir/$with_multisrctop../.."
3523 else
3524 multi_basedir="$srcdir/$with_multisrctop.."
3525 fi
3526else
3527 multi_basedir="$srcdir/.."
3528fi
3529
3530
3531# Even if the default multilib is not a cross compilation,
3532# it may be that some of the other multilibs are.
3533if test $cross_compiling = no && test $multilib = yes \
3534 && test "x${with_multisubdir}" != x ; then
3535 cross_compiling=maybe
3536fi
3537
3538ac_config_commands="$ac_config_commands default-1"
3539
3540
e8e66971
MR
3541
3542# Check whether --with-toolexeclibdir was given.
3543if test "${with_toolexeclibdir+set}" = set; then :
3544 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3545 /)
3546 ;;
3547 */)
3548 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3549 ;;
3550esac
3551else
3552 with_toolexeclibdir=no
3553fi
3554
3555
3556
0a35513e
AH
3557# Calculate toolexeclibdir
3558# Also toolexecdir, though it's only used in toolexeclibdir
3559case ${enable_version_specific_runtime_libs} in
3560 yes)
3561 # Need the gcc compiler version to know where to install libraries
3562 # and header files if --enable-version-specific-runtime-libs option
3563 # is selected.
3564 toolexecdir='$(libdir)/gcc/$(target_alias)'
3565 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3566 ;;
3567 no)
3568 if test -n "$with_cross_host" &&
3569 test x"$with_cross_host" != x"no"; then
3570 # Install a library built with a cross compiler in tooldir, not libdir.
3571 toolexecdir='$(exec_prefix)/$(target_alias)'
e8e66971
MR
3572 case ${with_toolexeclibdir} in
3573 no)
3574 toolexeclibdir='$(toolexecdir)/lib'
3575 ;;
3576 *)
3577 toolexeclibdir=${with_toolexeclibdir}
3578 ;;
3579 esac
0a35513e
AH
3580 else
3581 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3582 toolexeclibdir='$(libdir)'
3583 fi
3584 multi_os_directory=`$CC -print-multi-os-directory`
3585 case $multi_os_directory in
3586 .) ;; # Avoid trailing /.
3587 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3588 esac
3589 ;;
3590esac
3591
3592
3593
3594# Check the compiler.
3595# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3596# We must force CC to /not/ be precious variables; otherwise
3597# the wrong, non-multilib-adjusted value will be used in multilibs.
3598# As a side effect, we have to subst CFLAGS ourselves.
3599
3600
3601
3602ac_ext=c
3603ac_cpp='$CPP $CPPFLAGS'
3604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3609set dummy ${ac_tool_prefix}gcc; ac_word=$2
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3612if ${ac_cv_prog_CC+:} false; then :
0a35513e
AH
3613 $as_echo_n "(cached) " >&6
3614else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617else
3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619for as_dir in $PATH
3620do
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
3625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3628 fi
3629done
3630 done
3631IFS=$as_save_IFS
3632
3633fi
3634fi
3635CC=$ac_cv_prog_CC
3636if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638$as_echo "$CC" >&6; }
3639else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641$as_echo "no" >&6; }
3642fi
3643
3644
3645fi
3646if test -z "$ac_cv_prog_CC"; then
3647 ac_ct_CC=$CC
3648 # Extract the first word of "gcc", so it can be a program name with args.
3649set dummy gcc; ac_word=$2
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3652if ${ac_cv_prog_ac_ct_CC+:} false; then :
0a35513e
AH
3653 $as_echo_n "(cached) " >&6
3654else
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657else
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
3665 ac_cv_prog_ac_ct_CC="gcc"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669done
3670 done
3671IFS=$as_save_IFS
3672
3673fi
3674fi
3675ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676if test -n "$ac_ct_CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678$as_echo "$ac_ct_CC" >&6; }
3679else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681$as_echo "no" >&6; }
3682fi
3683
3684 if test "x$ac_ct_CC" = x; then
3685 CC=""
3686 else
3687 case $cross_compiling:$ac_tool_warned in
3688yes:)
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691ac_tool_warned=yes ;;
3692esac
3693 CC=$ac_ct_CC
3694 fi
3695else
3696 CC="$ac_cv_prog_CC"
3697fi
3698
3699if test -z "$CC"; then
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3702set dummy ${ac_tool_prefix}cc; ac_word=$2
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3705if ${ac_cv_prog_CC+:} false; then :
0a35513e
AH
3706 $as_echo_n "(cached) " >&6
3707else
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3710else
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
3718 ac_cv_prog_CC="${ac_tool_prefix}cc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722done
3723 done
3724IFS=$as_save_IFS
3725
3726fi
3727fi
3728CC=$ac_cv_prog_CC
3729if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731$as_echo "$CC" >&6; }
3732else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734$as_echo "no" >&6; }
3735fi
3736
3737
3738 fi
3739fi
3740if test -z "$CC"; then
3741 # Extract the first word of "cc", so it can be a program name with args.
3742set dummy cc; ac_word=$2
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3745if ${ac_cv_prog_CC+:} false; then :
0a35513e
AH
3746 $as_echo_n "(cached) " >&6
3747else
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC="$CC" # Let the user override the test.
3750else
3751 ac_prog_rejected=no
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
3759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3760 ac_prog_rejected=yes
3761 continue
3762 fi
3763 ac_cv_prog_CC="cc"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3766 fi
3767done
3768 done
3769IFS=$as_save_IFS
3770
3771if test $ac_prog_rejected = yes; then
3772 # We found a bogon in the path, so make sure we never use it.
3773 set dummy $ac_cv_prog_CC
3774 shift
3775 if test $# != 0; then
3776 # We chose a different compiler from the bogus one.
3777 # However, it has the same basename, so the bogon will be chosen
3778 # first if we set CC to just the basename; use the full file name.
3779 shift
3780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3781 fi
3782fi
3783fi
3784fi
3785CC=$ac_cv_prog_CC
3786if test -n "$CC"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3788$as_echo "$CC" >&6; }
3789else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791$as_echo "no" >&6; }
3792fi
3793
3794
3795fi
3796if test -z "$CC"; then
3797 if test -n "$ac_tool_prefix"; then
3798 for ac_prog in cl.exe
3799 do
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3804if ${ac_cv_prog_CC+:} false; then :
0a35513e
AH
3805 $as_echo_n "(cached) " >&6
3806else
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
3817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821done
3822 done
3823IFS=$as_save_IFS
3824
3825fi
3826fi
3827CC=$ac_cv_prog_CC
3828if test -n "$CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830$as_echo "$CC" >&6; }
3831else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833$as_echo "no" >&6; }
3834fi
3835
3836
3837 test -n "$CC" && break
3838 done
3839fi
3840if test -z "$CC"; then
3841 ac_ct_CC=$CC
3842 for ac_prog in cl.exe
3843do
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845set dummy $ac_prog; ac_word=$2
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3848if ${ac_cv_prog_ac_ct_CC+:} false; then :
0a35513e
AH
3849 $as_echo_n "(cached) " >&6
3850else
3851 if test -n "$ac_ct_CC"; then
3852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3853else
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
3861 ac_cv_prog_ac_ct_CC="$ac_prog"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3864 fi
3865done
3866 done
3867IFS=$as_save_IFS
3868
3869fi
3870fi
3871ac_ct_CC=$ac_cv_prog_ac_ct_CC
3872if test -n "$ac_ct_CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3874$as_echo "$ac_ct_CC" >&6; }
3875else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877$as_echo "no" >&6; }
3878fi
3879
3880
3881 test -n "$ac_ct_CC" && break
3882done
3883
3884 if test "x$ac_ct_CC" = x; then
3885 CC=""
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888yes:)
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891ac_tool_warned=yes ;;
3892esac
3893 CC=$ac_ct_CC
3894 fi
3895fi
3896
3897fi
3898
3899
3900test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3902as_fn_error $? "no acceptable C compiler found in \$PATH
3903See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
3904
3905# Provide some information about the compiler.
3906$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3907set X $ac_compile
3908ac_compiler=$2
3909for ac_option in --version -v -V -qversion; do
3910 { { ac_try="$ac_compiler $ac_option >&5"
3911case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916$as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3918 ac_status=$?
3919 if test -s conftest.err; then
3920 sed '10a\
3921... rest of stderr output deleted ...
3922 10q' conftest.err >conftest.er1
3923 cat conftest.er1 >&5
0a35513e 3924 fi
22e05272 3925 rm -f conftest.er1 conftest.err
0a35513e
AH
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3928done
3929
3930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h. */
3932
3933int
3934main ()
3935{
3936
3937 ;
3938 return 0;
3939}
3940_ACEOF
3941ac_clean_files_save=$ac_clean_files
22e05272 3942ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
0a35513e
AH
3943# Try to create an executable without -o first, disregard a.out.
3944# It will help us diagnose broken compilers, and finding out an intuition
3945# of exeext.
22e05272
JM
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3947$as_echo_n "checking whether the C compiler works... " >&6; }
0a35513e
AH
3948ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3949
3950# The possible output files:
3951ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3952
3953ac_rmfiles=
3954for ac_file in $ac_files
3955do
3956 case $ac_file in
3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3958 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3959 esac
3960done
3961rm -f $ac_rmfiles
3962
3963if { { ac_try="$ac_link_default"
3964case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969$as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link_default") 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3975# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3976# in a Makefile. We should not override ac_cv_exeext if it was cached,
3977# so that the user can short-circuit this test for compilers unknown to
3978# Autoconf.
3979for ac_file in $ac_files ''
3980do
3981 test -f "$ac_file" || continue
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3984 ;;
3985 [ab].out )
3986 # We found the default executable, but exeext='' is most
3987 # certainly right.
3988 break;;
3989 *.* )
3990 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3991 then :; else
3992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3993 fi
3994 # We set ac_cv_exeext here because the later test for it is not
3995 # safe: cross compilers may not add the suffix if given an `-o'
3996 # argument, so we may need to know it at that point already.
3997 # Even if this section looks crufty: it has the advantage of
3998 # actually working.
3999 break;;
4000 * )
4001 break;;
4002 esac
4003done
4004test "$ac_cv_exeext" = no && ac_cv_exeext=
4005
4006else
4007 ac_file=''
4008fi
0a35513e 4009if test -z "$ac_file"; then :
22e05272
JM
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011$as_echo "no" >&6; }
4012$as_echo "$as_me: failed program was:" >&5
0a35513e
AH
4013sed 's/^/| /' conftest.$ac_ext >&5
4014
4015{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4017as_fn_error 77 "C compiler cannot create executables
4018See \`config.log' for more details" "$LINENO" 5; }
4019else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021$as_echo "yes" >&6; }
0a35513e 4022fi
22e05272
JM
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4024$as_echo_n "checking for C compiler default output file name... " >&6; }
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4026$as_echo "$ac_file" >&6; }
0a35513e
AH
4027ac_exeext=$ac_cv_exeext
4028
22e05272 4029rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
0a35513e 4030ac_clean_files=$ac_clean_files_save
0a35513e
AH
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4032$as_echo_n "checking for suffix of executables... " >&6; }
4033if { { ac_try="$ac_link"
4034case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037esac
4038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039$as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_link") 2>&5
4041 ac_status=$?
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; then :
4044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4045# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4046# work properly (i.e., refer to `conftest.exe'), while it won't with
4047# `rm'.
4048for ac_file in conftest.exe conftest conftest.*; do
4049 test -f "$ac_file" || continue
4050 case $ac_file in
4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4053 break;;
4054 * ) break;;
4055 esac
4056done
4057else
4058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4060as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4061See \`config.log' for more details" "$LINENO" 5; }
0a35513e 4062fi
22e05272 4063rm -f conftest conftest$ac_cv_exeext
0a35513e
AH
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4065$as_echo "$ac_cv_exeext" >&6; }
4066
4067rm -f conftest.$ac_ext
4068EXEEXT=$ac_cv_exeext
4069ac_exeext=$EXEEXT
22e05272
JM
4070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h. */
4072#include <stdio.h>
4073int
4074main ()
4075{
4076FILE *f = fopen ("conftest.out", "w");
4077 return ferror (f) || fclose (f) != 0;
4078
4079 ;
4080 return 0;
4081}
4082_ACEOF
4083ac_clean_files="$ac_clean_files conftest.out"
4084# Check that the compiler produces executables we can run. If not, either
4085# the compiler is broken, or we cross compile.
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4087$as_echo_n "checking whether we are cross compiling... " >&6; }
4088if test "$cross_compiling" != yes; then
4089 { { ac_try="$ac_link"
4090case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093esac
4094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095$as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_link") 2>&5
4097 ac_status=$?
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }
4100 if { ac_try='./conftest$ac_cv_exeext'
4101 { { case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106$as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_try") 2>&5
4108 ac_status=$?
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }; }; then
4111 cross_compiling=no
4112 else
4113 if test "$cross_compiling" = maybe; then
4114 cross_compiling=yes
4115 else
4116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4118as_fn_error $? "cannot run C compiled programs.
4119If you meant to cross compile, use \`--host'.
4120See \`config.log' for more details" "$LINENO" 5; }
4121 fi
4122 fi
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4125$as_echo "$cross_compiling" >&6; }
4126
4127rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4128ac_clean_files=$ac_clean_files_save
0a35513e
AH
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4130$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4131if ${ac_cv_objext+:} false; then :
0a35513e
AH
4132 $as_echo_n "(cached) " >&6
4133else
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135/* end confdefs.h. */
4136
4137int
4138main ()
4139{
4140
4141 ;
4142 return 0;
4143}
4144_ACEOF
4145rm -f conftest.o conftest.obj
4146if { { ac_try="$ac_compile"
4147case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4152$as_echo "$ac_try_echo"; } >&5
4153 (eval "$ac_compile") 2>&5
4154 ac_status=$?
4155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4156 test $ac_status = 0; }; then :
4157 for ac_file in conftest.o conftest.obj conftest.*; do
4158 test -f "$ac_file" || continue;
4159 case $ac_file in
4160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4161 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4162 break;;
4163 esac
4164done
4165else
4166 $as_echo "$as_me: failed program was:" >&5
4167sed 's/^/| /' conftest.$ac_ext >&5
4168
4169{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4171as_fn_error $? "cannot compute suffix of object files: cannot compile
4172See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
4173fi
4174rm -f conftest.$ac_cv_objext conftest.$ac_ext
4175fi
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4177$as_echo "$ac_cv_objext" >&6; }
4178OBJEXT=$ac_cv_objext
4179ac_objext=$OBJEXT
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4181$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4182if ${ac_cv_c_compiler_gnu+:} false; then :
0a35513e
AH
4183 $as_echo_n "(cached) " >&6
4184else
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h. */
4187
4188int
4189main ()
4190{
4191#ifndef __GNUC__
4192 choke me
4193#endif
4194
4195 ;
4196 return 0;
4197}
4198_ACEOF
4199if ac_fn_c_try_compile "$LINENO"; then :
4200 ac_compiler_gnu=yes
4201else
4202 ac_compiler_gnu=no
4203fi
4204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205ac_cv_c_compiler_gnu=$ac_compiler_gnu
4206
4207fi
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4209$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4210if test $ac_compiler_gnu = yes; then
4211 GCC=yes
4212else
4213 GCC=
4214fi
4215ac_test_CFLAGS=${CFLAGS+set}
4216ac_save_CFLAGS=$CFLAGS
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4218$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4219if ${ac_cv_prog_cc_g+:} false; then :
0a35513e
AH
4220 $as_echo_n "(cached) " >&6
4221else
4222 ac_save_c_werror_flag=$ac_c_werror_flag
4223 ac_c_werror_flag=yes
4224 ac_cv_prog_cc_g=no
4225 CFLAGS="-g"
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227/* end confdefs.h. */
4228
4229int
4230main ()
4231{
4232
4233 ;
4234 return 0;
4235}
4236_ACEOF
4237if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_prog_cc_g=yes
4239else
4240 CFLAGS=""
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h. */
4243
4244int
4245main ()
4246{
4247
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252if ac_fn_c_try_compile "$LINENO"; then :
4253
4254else
4255 ac_c_werror_flag=$ac_save_c_werror_flag
4256 CFLAGS="-g"
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h. */
4259
4260int
4261main ()
4262{
4263
4264 ;
4265 return 0;
4266}
4267_ACEOF
4268if ac_fn_c_try_compile "$LINENO"; then :
4269 ac_cv_prog_cc_g=yes
4270fi
4271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272fi
4273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274fi
4275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 ac_c_werror_flag=$ac_save_c_werror_flag
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4279$as_echo "$ac_cv_prog_cc_g" >&6; }
4280if test "$ac_test_CFLAGS" = set; then
4281 CFLAGS=$ac_save_CFLAGS
4282elif test $ac_cv_prog_cc_g = yes; then
4283 if test "$GCC" = yes; then
4284 CFLAGS="-g -O2"
4285 else
4286 CFLAGS="-g"
4287 fi
4288else
4289 if test "$GCC" = yes; then
4290 CFLAGS="-O2"
4291 else
4292 CFLAGS=
4293 fi
4294fi
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4296$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4297if ${ac_cv_prog_cc_c89+:} false; then :
0a35513e
AH
4298 $as_echo_n "(cached) " >&6
4299else
4300 ac_cv_prog_cc_c89=no
4301ac_save_CC=$CC
4302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h. */
4304#include <stdarg.h>
4305#include <stdio.h>
22e05272 4306struct stat;
0a35513e
AH
4307/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4308struct buf { int x; };
4309FILE * (*rcsopen) (struct buf *, struct stat *, int);
4310static char *e (p, i)
4311 char **p;
4312 int i;
4313{
4314 return p[i];
4315}
4316static char *f (char * (*g) (char **, int), char **p, ...)
4317{
4318 char *s;
4319 va_list v;
4320 va_start (v,p);
4321 s = g (p, va_arg (v,int));
4322 va_end (v);
4323 return s;
4324}
4325
4326/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4327 function prototypes and stuff, but not '\xHH' hex character constants.
4328 These don't provoke an error unfortunately, instead are silently treated
4329 as 'x'. The following induces an error, until -std is added to get
4330 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4331 array size at least. It's necessary to write '\x00'==0 to get something
4332 that's true only with -std. */
4333int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4334
4335/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4336 inside strings and character constants. */
4337#define FOO(x) 'x'
4338int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4339
4340int test (int i, double x);
4341struct s1 {int (*f) (int a);};
4342struct s2 {int (*f) (double a);};
4343int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4344int argc;
4345char **argv;
4346int
4347main ()
4348{
4349return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4355 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4356do
4357 CC="$ac_save_CC $ac_arg"
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_cv_prog_cc_c89=$ac_arg
4360fi
4361rm -f core conftest.err conftest.$ac_objext
4362 test "x$ac_cv_prog_cc_c89" != "xno" && break
4363done
4364rm -f conftest.$ac_ext
4365CC=$ac_save_CC
4366
4367fi
4368# AC_CACHE_VAL
4369case "x$ac_cv_prog_cc_c89" in
4370 x)
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4372$as_echo "none needed" >&6; } ;;
4373 xno)
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4375$as_echo "unsupported" >&6; } ;;
4376 *)
4377 CC="$CC $ac_cv_prog_cc_c89"
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4379$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4380esac
4381if test "x$ac_cv_prog_cc_c89" != xno; then :
4382
4383fi
4384
4385ac_ext=c
4386ac_cpp='$CPP $CPPFLAGS'
4387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389ac_compiler_gnu=$ac_cv_c_compiler_gnu
22e05272
JM
4390
4391ac_ext=c
4392ac_cpp='$CPP $CPPFLAGS'
4393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4397$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4398if ${am_cv_prog_cc_c_o+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400else
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402/* end confdefs.h. */
4403
4404int
4405main ()
4406{
4407
4408 ;
4409 return 0;
4410}
4411_ACEOF
4412 # Make sure it works both with $CC and with simple cc.
4413 # Following AC_PROG_CC_C_O, we do the test twice because some
4414 # compilers refuse to overwrite an existing .o file with -o,
4415 # though they will create one.
4416 am_cv_prog_cc_c_o=yes
4417 for am_i in 1 2; do
4418 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4419 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } \
4423 && test -f conftest2.$ac_objext; then
4424 : OK
4425 else
4426 am_cv_prog_cc_c_o=no
4427 break
4428 fi
4429 done
4430 rm -f core conftest*
4431 unset am_i
4432fi
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4434$as_echo "$am_cv_prog_cc_c_o" >&6; }
4435if test "$am_cv_prog_cc_c_o" != yes; then
4436 # Losing compiler, so override with the script.
4437 # FIXME: It is wrong to rewrite CC.
4438 # But if we don't then we get into trouble of one sort or another.
4439 # A longer-term fix would be to have automake use am__CC in this case,
4440 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4441 CC="$am_aux_dir/compile $CC"
4442fi
4443ac_ext=c
4444ac_cpp='$CPP $CPPFLAGS'
4445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448
0a35513e
AH
4449DEPDIR="${am__leading_dot}deps"
4450
4451ac_config_commands="$ac_config_commands depfiles"
4452
4453
4454am_make=${MAKE-make}
4455cat > confinc << 'END'
4456am__doit:
4457 @echo this is the am__doit target
4458.PHONY: am__doit
4459END
4460# If we don't find an include directive, just comment out the code.
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4462$as_echo_n "checking for style of include used by $am_make... " >&6; }
4463am__include="#"
4464am__quote=
4465_am_result=none
4466# First try GNU make style include.
4467echo "include confinc" > confmf
22e05272 4468# Ignore all kinds of additional output from 'make'.
0a35513e
AH
4469case `$am_make -s -f confmf 2> /dev/null` in #(
4470*the\ am__doit\ target*)
4471 am__include=include
4472 am__quote=
4473 _am_result=GNU
4474 ;;
4475esac
4476# Now try BSD make style include.
4477if test "$am__include" = "#"; then
4478 echo '.include "confinc"' > confmf
4479 case `$am_make -s -f confmf 2> /dev/null` in #(
4480 *the\ am__doit\ target*)
4481 am__include=.include
4482 am__quote="\""
4483 _am_result=BSD
4484 ;;
4485 esac
4486fi
4487
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4490$as_echo "$_am_result" >&6; }
4491rm -f confinc confmf
4492
4493# Check whether --enable-dependency-tracking was given.
4494if test "${enable_dependency_tracking+set}" = set; then :
4495 enableval=$enable_dependency_tracking;
4496fi
4497
4498if test "x$enable_dependency_tracking" != xno; then
4499 am_depcomp="$ac_aux_dir/depcomp"
4500 AMDEPBACKSLASH='\'
503902f9 4501 am__nodep='_no'
0a35513e
AH
4502fi
4503 if test "x$enable_dependency_tracking" != xno; then
4504 AMDEP_TRUE=
4505 AMDEP_FALSE='#'
4506else
4507 AMDEP_TRUE='#'
4508 AMDEP_FALSE=
4509fi
4510
4511
4512
4513depcc="$CC" am_compiler_list=
4514
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4516$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4517if ${am_cv_CC_dependencies_compiler_type+:} false; then :
0a35513e
AH
4518 $as_echo_n "(cached) " >&6
4519else
4520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4521 # We make a subdir and do the tests there. Otherwise we can end up
4522 # making bogus files that we don't know about and never remove. For
4523 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4524 # making a dummy file named 'D' -- because '-MD' means "put the output
4525 # in D".
503902f9 4526 rm -rf conftest.dir
0a35513e
AH
4527 mkdir conftest.dir
4528 # Copy depcomp to subdir because otherwise we won't find it if we're
4529 # using a relative directory.
4530 cp "$am_depcomp" conftest.dir
4531 cd conftest.dir
4532 # We will build objects and dependencies in a subdirectory because
4533 # it helps to detect inapplicable dependency modes. For instance
4534 # both Tru64's cc and ICC support -MD to output dependencies as a
4535 # side effect of compilation, but ICC will put the dependencies in
4536 # the current directory while Tru64 will put them in the object
4537 # directory.
4538 mkdir sub
4539
4540 am_cv_CC_dependencies_compiler_type=none
4541 if test "$am_compiler_list" = ""; then
4542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4543 fi
4544 am__universal=false
4545 case " $depcc " in #(
4546 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4547 esac
4548
4549 for depmode in $am_compiler_list; do
4550 # Setup a source with many dependencies, because some compilers
4551 # like to wrap large dependency lists on column 80 (with \), and
4552 # we should not choose a depcomp mode which is confused by this.
4553 #
4554 # We need to recreate these files for each test, as the compiler may
4555 # overwrite some of them when testing with obscure command lines.
4556 # This happens at least with the AIX C compiler.
4557 : > sub/conftest.c
4558 for i in 1 2 3 4 5 6; do
4559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4560 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4561 # Solaris 10 /bin/sh.
4562 echo '/* dummy */' > sub/conftst$i.h
0a35513e
AH
4563 done
4564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4565
22e05272 4566 # We check with '-c' and '-o' for the sake of the "dashmstdout"
0a35513e 4567 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4568 # handle '-M -o', and we need to detect this. Also, some Intel
4569 # versions had trouble with output in subdirs.
0a35513e
AH
4570 am__obj=sub/conftest.${OBJEXT-o}
4571 am__minus_obj="-o $am__obj"
4572 case $depmode in
4573 gcc)
4574 # This depmode causes a compiler race in universal mode.
4575 test "$am__universal" = false || continue
4576 ;;
4577 nosideeffect)
22e05272
JM
4578 # After this tag, mechanisms are not by side-effect, so they'll
4579 # only be used when explicitly requested.
0a35513e
AH
4580 if test "x$enable_dependency_tracking" = xyes; then
4581 continue
4582 else
4583 break
4584 fi
4585 ;;
503902f9 4586 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4587 # This compiler won't grok '-c -o', but also, the minuso test has
0a35513e
AH
4588 # not run yet. These depmodes are late enough in the game, and
4589 # so weak that their functioning should not be impacted.
4590 am__obj=conftest.${OBJEXT-o}
4591 am__minus_obj=
4592 ;;
4593 none) break ;;
4594 esac
4595 if depmode=$depmode \
4596 source=sub/conftest.c object=$am__obj \
4597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4598 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4599 >/dev/null 2>conftest.err &&
4600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4602 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4604 # icc doesn't choke on unknown options, it will just issue warnings
4605 # or remarks (even with -Werror). So we grep stderr for any message
4606 # that says an option was ignored or not supported.
4607 # When given -MP, icc 7.0 and 7.1 complain thusly:
4608 # icc: Command line warning: ignoring option '-M'; no argument required
4609 # The diagnosis changed in icc 8.0:
4610 # icc: Command line remark: option '-MP' not supported
4611 if (grep 'ignoring option' conftest.err ||
4612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4613 am_cv_CC_dependencies_compiler_type=$depmode
4614 break
4615 fi
4616 fi
4617 done
4618
4619 cd ..
4620 rm -rf conftest.dir
4621else
4622 am_cv_CC_dependencies_compiler_type=none
4623fi
4624
4625fi
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4627$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4628CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4629
4630 if
4631 test "x$enable_dependency_tracking" != xno \
4632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4633 am__fastdepCC_TRUE=
4634 am__fastdepCC_FALSE='#'
4635else
4636 am__fastdepCC_TRUE='#'
4637 am__fastdepCC_FALSE=
4638fi
4639
4640
4641ac_ext=cpp
4642ac_cpp='$CXXCPP $CPPFLAGS'
4643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4646if test -z "$CXX"; then
4647 if test -n "$CCC"; then
4648 CXX=$CCC
4649 else
4650 if test -n "$ac_tool_prefix"; then
4651 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4652 do
4653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4657if ${ac_cv_prog_CXX+:} false; then :
0a35513e
AH
4658 $as_echo_n "(cached) " >&6
4659else
4660 if test -n "$CXX"; then
4661 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
4670 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674done
4675 done
4676IFS=$as_save_IFS
4677
4678fi
4679fi
4680CXX=$ac_cv_prog_CXX
4681if test -n "$CXX"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4683$as_echo "$CXX" >&6; }
4684else
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686$as_echo "no" >&6; }
4687fi
4688
4689
4690 test -n "$CXX" && break
4691 done
4692fi
4693if test -z "$CXX"; then
4694 ac_ct_CXX=$CXX
4695 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4696do
4697 # Extract the first word of "$ac_prog", so it can be a program name with args.
4698set dummy $ac_prog; ac_word=$2
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4701if ${ac_cv_prog_ac_ct_CXX+:} false; then :
0a35513e
AH
4702 $as_echo_n "(cached) " >&6
4703else
4704 if test -n "$ac_ct_CXX"; then
4705 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
4714 ac_cv_prog_ac_ct_CXX="$ac_prog"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718done
4719 done
4720IFS=$as_save_IFS
4721
4722fi
4723fi
4724ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4725if test -n "$ac_ct_CXX"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4727$as_echo "$ac_ct_CXX" >&6; }
4728else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730$as_echo "no" >&6; }
4731fi
4732
4733
4734 test -n "$ac_ct_CXX" && break
4735done
4736
4737 if test "x$ac_ct_CXX" = x; then
4738 CXX="g++"
4739 else
4740 case $cross_compiling:$ac_tool_warned in
4741yes:)
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4744ac_tool_warned=yes ;;
4745esac
4746 CXX=$ac_ct_CXX
4747 fi
4748fi
4749
4750 fi
4751fi
4752# Provide some information about the compiler.
4753$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4754set X $ac_compile
4755ac_compiler=$2
4756for ac_option in --version -v -V -qversion; do
4757 { { ac_try="$ac_compiler $ac_option >&5"
4758case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761esac
4762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4763$as_echo "$ac_try_echo"; } >&5
4764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4765 ac_status=$?
4766 if test -s conftest.err; then
4767 sed '10a\
4768... rest of stderr output deleted ...
4769 10q' conftest.err >conftest.er1
4770 cat conftest.er1 >&5
0a35513e 4771 fi
22e05272 4772 rm -f conftest.er1 conftest.err
0a35513e
AH
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }
4775done
4776
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4778$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 4779if ${ac_cv_cxx_compiler_gnu+:} false; then :
0a35513e
AH
4780 $as_echo_n "(cached) " >&6
4781else
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783/* end confdefs.h. */
4784
4785int
4786main ()
4787{
4788#ifndef __GNUC__
4789 choke me
4790#endif
4791
4792 ;
4793 return 0;
4794}
4795_ACEOF
4796if ac_fn_cxx_try_compile "$LINENO"; then :
4797 ac_compiler_gnu=yes
4798else
4799 ac_compiler_gnu=no
4800fi
4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4803
4804fi
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4806$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4807if test $ac_compiler_gnu = yes; then
4808 GXX=yes
4809else
4810 GXX=
4811fi
4812ac_test_CXXFLAGS=${CXXFLAGS+set}
4813ac_save_CXXFLAGS=$CXXFLAGS
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4815$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 4816if ${ac_cv_prog_cxx_g+:} false; then :
0a35513e
AH
4817 $as_echo_n "(cached) " >&6
4818else
4819 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4820 ac_cxx_werror_flag=yes
4821 ac_cv_prog_cxx_g=no
4822 CXXFLAGS="-g"
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824/* end confdefs.h. */
4825
4826int
4827main ()
4828{
4829
4830 ;
4831 return 0;
4832}
4833_ACEOF
4834if ac_fn_cxx_try_compile "$LINENO"; then :
4835 ac_cv_prog_cxx_g=yes
4836else
4837 CXXFLAGS=""
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839/* end confdefs.h. */
4840
4841int
4842main ()
4843{
4844
4845 ;
4846 return 0;
4847}
4848_ACEOF
4849if ac_fn_cxx_try_compile "$LINENO"; then :
4850
4851else
4852 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4853 CXXFLAGS="-g"
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h. */
4856
4857int
4858main ()
4859{
4860
4861 ;
4862 return 0;
4863}
4864_ACEOF
4865if ac_fn_cxx_try_compile "$LINENO"; then :
4866 ac_cv_prog_cxx_g=yes
4867fi
4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869fi
4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871fi
4872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4876$as_echo "$ac_cv_prog_cxx_g" >&6; }
4877if test "$ac_test_CXXFLAGS" = set; then
4878 CXXFLAGS=$ac_save_CXXFLAGS
4879elif test $ac_cv_prog_cxx_g = yes; then
4880 if test "$GXX" = yes; then
4881 CXXFLAGS="-g -O2"
4882 else
4883 CXXFLAGS="-g"
4884 fi
4885else
4886 if test "$GXX" = yes; then
4887 CXXFLAGS="-O2"
4888 else
4889 CXXFLAGS=
4890 fi
4891fi
4892ac_ext=c
4893ac_cpp='$CPP $CPPFLAGS'
4894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896ac_compiler_gnu=$ac_cv_c_compiler_gnu
4897
4898depcc="$CXX" am_compiler_list=
4899
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4901$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4902if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
0a35513e
AH
4903 $as_echo_n "(cached) " >&6
4904else
4905 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4906 # We make a subdir and do the tests there. Otherwise we can end up
4907 # making bogus files that we don't know about and never remove. For
4908 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4909 # making a dummy file named 'D' -- because '-MD' means "put the output
4910 # in D".
503902f9 4911 rm -rf conftest.dir
0a35513e
AH
4912 mkdir conftest.dir
4913 # Copy depcomp to subdir because otherwise we won't find it if we're
4914 # using a relative directory.
4915 cp "$am_depcomp" conftest.dir
4916 cd conftest.dir
4917 # We will build objects and dependencies in a subdirectory because
4918 # it helps to detect inapplicable dependency modes. For instance
4919 # both Tru64's cc and ICC support -MD to output dependencies as a
4920 # side effect of compilation, but ICC will put the dependencies in
4921 # the current directory while Tru64 will put them in the object
4922 # directory.
4923 mkdir sub
4924
4925 am_cv_CXX_dependencies_compiler_type=none
4926 if test "$am_compiler_list" = ""; then
4927 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4928 fi
4929 am__universal=false
4930 case " $depcc " in #(
4931 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4932 esac
4933
4934 for depmode in $am_compiler_list; do
4935 # Setup a source with many dependencies, because some compilers
4936 # like to wrap large dependency lists on column 80 (with \), and
4937 # we should not choose a depcomp mode which is confused by this.
4938 #
4939 # We need to recreate these files for each test, as the compiler may
4940 # overwrite some of them when testing with obscure command lines.
4941 # This happens at least with the AIX C compiler.
4942 : > sub/conftest.c
4943 for i in 1 2 3 4 5 6; do
4944 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4945 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4946 # Solaris 10 /bin/sh.
4947 echo '/* dummy */' > sub/conftst$i.h
0a35513e
AH
4948 done
4949 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4950
22e05272 4951 # We check with '-c' and '-o' for the sake of the "dashmstdout"
0a35513e 4952 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4953 # handle '-M -o', and we need to detect this. Also, some Intel
4954 # versions had trouble with output in subdirs.
0a35513e
AH
4955 am__obj=sub/conftest.${OBJEXT-o}
4956 am__minus_obj="-o $am__obj"
4957 case $depmode in
4958 gcc)
4959 # This depmode causes a compiler race in universal mode.
4960 test "$am__universal" = false || continue
4961 ;;
4962 nosideeffect)
22e05272
JM
4963 # After this tag, mechanisms are not by side-effect, so they'll
4964 # only be used when explicitly requested.
0a35513e
AH
4965 if test "x$enable_dependency_tracking" = xyes; then
4966 continue
4967 else
4968 break
4969 fi
4970 ;;
503902f9 4971 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4972 # This compiler won't grok '-c -o', but also, the minuso test has
0a35513e
AH
4973 # not run yet. These depmodes are late enough in the game, and
4974 # so weak that their functioning should not be impacted.
4975 am__obj=conftest.${OBJEXT-o}
4976 am__minus_obj=
4977 ;;
4978 none) break ;;
4979 esac
4980 if depmode=$depmode \
4981 source=sub/conftest.c object=$am__obj \
4982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4983 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4984 >/dev/null 2>conftest.err &&
4985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4987 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4989 # icc doesn't choke on unknown options, it will just issue warnings
4990 # or remarks (even with -Werror). So we grep stderr for any message
4991 # that says an option was ignored or not supported.
4992 # When given -MP, icc 7.0 and 7.1 complain thusly:
4993 # icc: Command line warning: ignoring option '-M'; no argument required
4994 # The diagnosis changed in icc 8.0:
4995 # icc: Command line remark: option '-MP' not supported
4996 if (grep 'ignoring option' conftest.err ||
4997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4998 am_cv_CXX_dependencies_compiler_type=$depmode
4999 break
5000 fi
5001 fi
5002 done
5003
5004 cd ..
5005 rm -rf conftest.dir
5006else
5007 am_cv_CXX_dependencies_compiler_type=none
5008fi
5009
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5012$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5013CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5014
5015 if
5016 test "x$enable_dependency_tracking" != xno \
5017 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5018 am__fastdepCXX_TRUE=
5019 am__fastdepCXX_FALSE='#'
5020else
5021 am__fastdepCXX_TRUE='#'
5022 am__fastdepCXX_FALSE=
5023fi
5024
5025
5026# By default we simply use the C compiler to build assembly code.
5027
5028test "${CCAS+set}" = set || CCAS=$CC
5029test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5030
5031
5032
5033depcc="$CCAS" am_compiler_list=
5034
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5036$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5037if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
0a35513e
AH
5038 $as_echo_n "(cached) " >&6
5039else
5040 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5041 # We make a subdir and do the tests there. Otherwise we can end up
5042 # making bogus files that we don't know about and never remove. For
5043 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5044 # making a dummy file named 'D' -- because '-MD' means "put the output
5045 # in D".
503902f9 5046 rm -rf conftest.dir
0a35513e
AH
5047 mkdir conftest.dir
5048 # Copy depcomp to subdir because otherwise we won't find it if we're
5049 # using a relative directory.
5050 cp "$am_depcomp" conftest.dir
5051 cd conftest.dir
5052 # We will build objects and dependencies in a subdirectory because
5053 # it helps to detect inapplicable dependency modes. For instance
5054 # both Tru64's cc and ICC support -MD to output dependencies as a
5055 # side effect of compilation, but ICC will put the dependencies in
5056 # the current directory while Tru64 will put them in the object
5057 # directory.
5058 mkdir sub
5059
5060 am_cv_CCAS_dependencies_compiler_type=none
5061 if test "$am_compiler_list" = ""; then
5062 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5063 fi
5064 am__universal=false
5065
5066
5067 for depmode in $am_compiler_list; do
5068 # Setup a source with many dependencies, because some compilers
5069 # like to wrap large dependency lists on column 80 (with \), and
5070 # we should not choose a depcomp mode which is confused by this.
5071 #
5072 # We need to recreate these files for each test, as the compiler may
5073 # overwrite some of them when testing with obscure command lines.
5074 # This happens at least with the AIX C compiler.
5075 : > sub/conftest.c
5076 for i in 1 2 3 4 5 6; do
5077 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5078 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5079 # Solaris 10 /bin/sh.
5080 echo '/* dummy */' > sub/conftst$i.h
0a35513e
AH
5081 done
5082 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5083
22e05272 5084 # We check with '-c' and '-o' for the sake of the "dashmstdout"
0a35513e 5085 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5086 # handle '-M -o', and we need to detect this. Also, some Intel
5087 # versions had trouble with output in subdirs.
0a35513e
AH
5088 am__obj=sub/conftest.${OBJEXT-o}
5089 am__minus_obj="-o $am__obj"
5090 case $depmode in
5091 gcc)
5092 # This depmode causes a compiler race in universal mode.
5093 test "$am__universal" = false || continue
5094 ;;
5095 nosideeffect)
22e05272
JM
5096 # After this tag, mechanisms are not by side-effect, so they'll
5097 # only be used when explicitly requested.
0a35513e
AH
5098 if test "x$enable_dependency_tracking" = xyes; then
5099 continue
5100 else
5101 break
5102 fi
5103 ;;
503902f9 5104 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 5105 # This compiler won't grok '-c -o', but also, the minuso test has
0a35513e
AH
5106 # not run yet. These depmodes are late enough in the game, and
5107 # so weak that their functioning should not be impacted.
5108 am__obj=conftest.${OBJEXT-o}
5109 am__minus_obj=
5110 ;;
5111 none) break ;;
5112 esac
5113 if depmode=$depmode \
5114 source=sub/conftest.c object=$am__obj \
5115 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5116 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5117 >/dev/null 2>conftest.err &&
5118 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5119 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5120 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5121 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5122 # icc doesn't choke on unknown options, it will just issue warnings
5123 # or remarks (even with -Werror). So we grep stderr for any message
5124 # that says an option was ignored or not supported.
5125 # When given -MP, icc 7.0 and 7.1 complain thusly:
5126 # icc: Command line warning: ignoring option '-M'; no argument required
5127 # The diagnosis changed in icc 8.0:
5128 # icc: Command line remark: option '-MP' not supported
5129 if (grep 'ignoring option' conftest.err ||
5130 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5131 am_cv_CCAS_dependencies_compiler_type=$depmode
5132 break
5133 fi
5134 fi
5135 done
5136
5137 cd ..
5138 rm -rf conftest.dir
5139else
5140 am_cv_CCAS_dependencies_compiler_type=none
5141fi
5142
5143fi
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5145$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5146CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5147
5148 if
5149 test "x$enable_dependency_tracking" != xno \
5150 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5151 am__fastdepCCAS_TRUE=
5152 am__fastdepCCAS_FALSE='#'
5153else
5154 am__fastdepCCAS_TRUE='#'
5155 am__fastdepCCAS_FALSE=
5156fi
5157
5158
5159
5160
5161
5162
5163# In order to override CFLAGS_FOR_TARGET, all of our special flags go
5164# in XCFLAGS. But we need them in CFLAGS during configury. So put them
5165# in both places for now and restore CFLAGS at the end of config.
5166save_CFLAGS="$CFLAGS"
5167
5168# Find other programs we need.
5169if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5171set dummy ${ac_tool_prefix}ar; ac_word=$2
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5174if ${ac_cv_prog_AR+:} false; then :
0a35513e
AH
5175 $as_echo_n "(cached) " >&6
5176else
5177 if test -n "$AR"; then
5178 ac_cv_prog_AR="$AR" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
5187 ac_cv_prog_AR="${ac_tool_prefix}ar"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191done
5192 done
5193IFS=$as_save_IFS
5194
5195fi
5196fi
5197AR=$ac_cv_prog_AR
5198if test -n "$AR"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5200$as_echo "$AR" >&6; }
5201else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5204fi
5205
5206
5207fi
5208if test -z "$ac_cv_prog_AR"; then
5209 ac_ct_AR=$AR
5210 # Extract the first word of "ar", so it can be a program name with args.
5211set dummy ar; ac_word=$2
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5214if ${ac_cv_prog_ac_ct_AR+:} false; then :
0a35513e
AH
5215 $as_echo_n "(cached) " >&6
5216else
5217 if test -n "$ac_ct_AR"; then
5218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5219else
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
5227 ac_cv_prog_ac_ct_AR="ar"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231done
5232 done
5233IFS=$as_save_IFS
5234
5235fi
5236fi
5237ac_ct_AR=$ac_cv_prog_ac_ct_AR
5238if test -n "$ac_ct_AR"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5240$as_echo "$ac_ct_AR" >&6; }
5241else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
5244fi
5245
5246 if test "x$ac_ct_AR" = x; then
5247 AR=""
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250yes:)
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253ac_tool_warned=yes ;;
5254esac
5255 AR=$ac_ct_AR
5256 fi
5257else
5258 AR="$ac_cv_prog_AR"
5259fi
5260
5261if test -n "$ac_tool_prefix"; then
5262 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5263set dummy ${ac_tool_prefix}nm; ac_word=$2
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5266if ${ac_cv_prog_NM+:} false; then :
0a35513e
AH
5267 $as_echo_n "(cached) " >&6
5268else
5269 if test -n "$NM"; then
5270 ac_cv_prog_NM="$NM" # Let the user override the test.
5271else
5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
5279 ac_cv_prog_NM="${ac_tool_prefix}nm"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5282 fi
5283done
5284 done
5285IFS=$as_save_IFS
5286
5287fi
5288fi
5289NM=$ac_cv_prog_NM
5290if test -n "$NM"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5292$as_echo "$NM" >&6; }
5293else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298
5299fi
5300if test -z "$ac_cv_prog_NM"; then
5301 ac_ct_NM=$NM
5302 # Extract the first word of "nm", so it can be a program name with args.
5303set dummy nm; ac_word=$2
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5306if ${ac_cv_prog_ac_ct_NM+:} false; then :
0a35513e
AH
5307 $as_echo_n "(cached) " >&6
5308else
5309 if test -n "$ac_ct_NM"; then
5310 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5311else
5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313for as_dir in $PATH
5314do
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
5319 ac_cv_prog_ac_ct_NM="nm"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 break 2
5322 fi
5323done
5324 done
5325IFS=$as_save_IFS
5326
5327fi
5328fi
5329ac_ct_NM=$ac_cv_prog_ac_ct_NM
5330if test -n "$ac_ct_NM"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5332$as_echo "$ac_ct_NM" >&6; }
5333else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335$as_echo "no" >&6; }
5336fi
5337
5338 if test "x$ac_ct_NM" = x; then
5339 NM=""
5340 else
5341 case $cross_compiling:$ac_tool_warned in
5342yes:)
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5345ac_tool_warned=yes ;;
5346esac
5347 NM=$ac_ct_NM
5348 fi
5349else
5350 NM="$ac_cv_prog_NM"
5351fi
5352
5353if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5355set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5358if ${ac_cv_prog_RANLIB+:} false; then :
0a35513e
AH
5359 $as_echo_n "(cached) " >&6
5360else
5361 if test -n "$RANLIB"; then
5362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5363else
5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
5371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375done
5376 done
5377IFS=$as_save_IFS
5378
5379fi
5380fi
5381RANLIB=$ac_cv_prog_RANLIB
5382if test -n "$RANLIB"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5384$as_echo "$RANLIB" >&6; }
5385else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387$as_echo "no" >&6; }
5388fi
5389
5390
5391fi
5392if test -z "$ac_cv_prog_RANLIB"; then
5393 ac_ct_RANLIB=$RANLIB
5394 # Extract the first word of "ranlib", so it can be a program name with args.
5395set dummy ranlib; ac_word=$2
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5398if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
0a35513e
AH
5399 $as_echo_n "(cached) " >&6
5400else
5401 if test -n "$ac_ct_RANLIB"; then
5402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5403else
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
5411 ac_cv_prog_ac_ct_RANLIB="ranlib"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415done
5416 done
5417IFS=$as_save_IFS
5418
5419fi
5420fi
5421ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5422if test -n "$ac_ct_RANLIB"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5424$as_echo "$ac_ct_RANLIB" >&6; }
5425else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427$as_echo "no" >&6; }
5428fi
5429
5430 if test "x$ac_ct_RANLIB" = x; then
5431 RANLIB="ranlib-not-found-in-path-error"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434yes:)
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439 RANLIB=$ac_ct_RANLIB
5440 fi
5441else
5442 RANLIB="$ac_cv_prog_RANLIB"
5443fi
5444
0a35513e
AH
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5446$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5447set x ${MAKE-make}
5448ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 5449if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
0a35513e
AH
5450 $as_echo_n "(cached) " >&6
5451else
5452 cat >conftest.make <<\_ACEOF
5453SHELL = /bin/sh
5454all:
5455 @echo '@@@%%%=$(MAKE)=@@@%%%'
5456_ACEOF
22e05272 5457# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
0a35513e
AH
5458case `${MAKE-make} -f conftest.make 2>/dev/null` in
5459 *@@@%%%=?*=@@@%%%*)
5460 eval ac_cv_prog_make_${ac_make}_set=yes;;
5461 *)
5462 eval ac_cv_prog_make_${ac_make}_set=no;;
5463esac
5464rm -f conftest.make
5465fi
5466if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5468$as_echo "yes" >&6; }
5469 SET_MAKE=
5470else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472$as_echo "no" >&6; }
5473 SET_MAKE="MAKE=${MAKE-make}"
5474fi
5475
5476
5477
5478# See if makeinfo has been installed and is modern enough
5479# that we can use it.
5480
5481 # Extract the first word of "makeinfo", so it can be a program name with args.
5482set dummy makeinfo; ac_word=$2
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5485if ${ac_cv_prog_MAKEINFO+:} false; then :
0a35513e
AH
5486 $as_echo_n "(cached) " >&6
5487else
5488 if test -n "$MAKEINFO"; then
5489 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5490else
5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH
5493do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
5498 ac_cv_prog_MAKEINFO="makeinfo"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5501 fi
5502done
5503 done
5504IFS=$as_save_IFS
5505
5506fi
5507fi
5508MAKEINFO=$ac_cv_prog_MAKEINFO
5509if test -n "$MAKEINFO"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5511$as_echo "$MAKEINFO" >&6; }
5512else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514$as_echo "no" >&6; }
5515fi
5516
5517
5518 if test -n "$MAKEINFO"; then
5519 # Found it, now check the version.
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5521$as_echo_n "checking for modern makeinfo... " >&6; }
22e05272 5522if ${gcc_cv_prog_makeinfo_modern+:} false; then :
0a35513e
AH
5523 $as_echo_n "(cached) " >&6
5524else
5525 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5526 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5527
5528 case $ac_prog_version in
5529 '') gcc_cv_prog_makeinfo_modern=no;;
5530 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5531 *) gcc_cv_prog_makeinfo_modern=no;;
5532 esac
5533
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5536$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5537 else
5538 gcc_cv_prog_makeinfo_modern=no
5539 fi
5540 if test $gcc_cv_prog_makeinfo_modern = no; then
5541 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5542 fi
5543
5544 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5545 BUILD_INFO_TRUE=
5546 BUILD_INFO_FALSE='#'
5547else
5548 BUILD_INFO_TRUE='#'
5549 BUILD_INFO_FALSE=
5550fi
5551
5552
5553
5554# Configure libtool
5555case `pwd` in
5556 *\ * | *\ *)
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5558$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5559esac
5560
5561
5562
5563macro_version='2.2.7a'
5564macro_revision='1.3134'
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578ltmain="$ac_aux_dir/ltmain.sh"
5579
5580# Backslashify metacharacters that are still active within
5581# double-quoted strings.
5582sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5583
5584# Same as above, but do not quote variable references.
5585double_quote_subst='s/\(["`\\]\)/\\\1/g'
5586
5587# Sed substitution to delay expansion of an escaped shell variable in a
5588# double_quote_subst'ed string.
5589delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5590
5591# Sed substitution to delay expansion of an escaped single quote.
5592delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5593
5594# Sed substitution to avoid accidental globbing in evaled expressions
5595no_glob_subst='s/\*/\\\*/g'
5596
5597ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5598ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5599ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5600
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5602$as_echo_n "checking how to print strings... " >&6; }
5603# Test print first, because it will be a builtin if present.
5604if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5605 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5606 ECHO='print -r --'
5607elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5608 ECHO='printf %s\n'
5609else
5610 # Use this function as a fallback that always works.
5611 func_fallback_echo ()
5612 {
5613 eval 'cat <<_LTECHO_EOF
5614$1
5615_LTECHO_EOF'
5616 }
5617 ECHO='func_fallback_echo'
5618fi
5619
5620# func_echo_all arg...
5621# Invoke $ECHO with all args, space-separated.
5622func_echo_all ()
5623{
5624 $ECHO ""
5625}
5626
5627case "$ECHO" in
5628 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5629$as_echo "printf" >&6; } ;;
5630 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5631$as_echo "print -r" >&6; } ;;
5632 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5633$as_echo "cat" >&6; } ;;
5634esac
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5650$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5651if ${ac_cv_path_SED+:} false; then :
0a35513e
AH
5652 $as_echo_n "(cached) " >&6
5653else
5654 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5655 for ac_i in 1 2 3 4 5 6 7; do
5656 ac_script="$ac_script$as_nl$ac_script"
5657 done
5658 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5659 { ac_script=; unset ac_script;}
5660 if test -z "$SED"; then
5661 ac_path_SED_found=false
5662 # Loop through the user's path and test for each of PROGNAME-LIST
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_prog in sed gsed; do
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5671 as_fn_executable_p "$ac_path_SED" || continue
0a35513e
AH
5672# Check for GNU ac_path_SED and select it if it is found.
5673 # Check for GNU $ac_path_SED
5674case `"$ac_path_SED" --version 2>&1` in
5675*GNU*)
5676 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5677*)
5678 ac_count=0
5679 $as_echo_n 0123456789 >"conftest.in"
5680 while :
5681 do
5682 cat "conftest.in" "conftest.in" >"conftest.tmp"
5683 mv "conftest.tmp" "conftest.in"
5684 cp "conftest.in" "conftest.nl"
5685 $as_echo '' >> "conftest.nl"
5686 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5688 as_fn_arith $ac_count + 1 && ac_count=$as_val
5689 if test $ac_count -gt ${ac_path_SED_max-0}; then
5690 # Best one so far, save it but keep looking for a better one
5691 ac_cv_path_SED="$ac_path_SED"
5692 ac_path_SED_max=$ac_count
5693 fi
5694 # 10*(2^10) chars as input seems more than enough
5695 test $ac_count -gt 10 && break
5696 done
5697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5698esac
5699
5700 $ac_path_SED_found && break 3
5701 done
5702 done
5703 done
5704IFS=$as_save_IFS
5705 if test -z "$ac_cv_path_SED"; then
22e05272 5706 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
0a35513e
AH
5707 fi
5708else
5709 ac_cv_path_SED=$SED
5710fi
5711
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5714$as_echo "$ac_cv_path_SED" >&6; }
5715 SED="$ac_cv_path_SED"
5716 rm -f conftest.sed
5717
5718test -z "$SED" && SED=sed
5719Xsed="$SED -e 1s/^X//"
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5732$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 5733if ${ac_cv_path_GREP+:} false; then :
0a35513e
AH
5734 $as_echo_n "(cached) " >&6
5735else
5736 if test -z "$GREP"; then
5737 ac_path_GREP_found=false
5738 # Loop through the user's path and test for each of PROGNAME-LIST
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5741do
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_prog in grep ggrep; do
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5747 as_fn_executable_p "$ac_path_GREP" || continue
0a35513e
AH
5748# Check for GNU ac_path_GREP and select it if it is found.
5749 # Check for GNU $ac_path_GREP
5750case `"$ac_path_GREP" --version 2>&1` in
5751*GNU*)
5752 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5753*)
5754 ac_count=0
5755 $as_echo_n 0123456789 >"conftest.in"
5756 while :
5757 do
5758 cat "conftest.in" "conftest.in" >"conftest.tmp"
5759 mv "conftest.tmp" "conftest.in"
5760 cp "conftest.in" "conftest.nl"
5761 $as_echo 'GREP' >> "conftest.nl"
5762 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5764 as_fn_arith $ac_count + 1 && ac_count=$as_val
5765 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5766 # Best one so far, save it but keep looking for a better one
5767 ac_cv_path_GREP="$ac_path_GREP"
5768 ac_path_GREP_max=$ac_count
5769 fi
5770 # 10*(2^10) chars as input seems more than enough
5771 test $ac_count -gt 10 && break
5772 done
5773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5774esac
5775
5776 $ac_path_GREP_found && break 3
5777 done
5778 done
5779 done
5780IFS=$as_save_IFS
5781 if test -z "$ac_cv_path_GREP"; then
22e05272 5782 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
0a35513e
AH
5783 fi
5784else
5785 ac_cv_path_GREP=$GREP
5786fi
5787
5788fi
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5790$as_echo "$ac_cv_path_GREP" >&6; }
5791 GREP="$ac_cv_path_GREP"
5792
5793
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5795$as_echo_n "checking for egrep... " >&6; }
22e05272 5796if ${ac_cv_path_EGREP+:} false; then :
0a35513e
AH
5797 $as_echo_n "(cached) " >&6
5798else
5799 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5800 then ac_cv_path_EGREP="$GREP -E"
5801 else
5802 if test -z "$EGREP"; then
5803 ac_path_EGREP_found=false
5804 # Loop through the user's path and test for each of PROGNAME-LIST
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5807do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_prog in egrep; do
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5813 as_fn_executable_p "$ac_path_EGREP" || continue
0a35513e
AH
5814# Check for GNU ac_path_EGREP and select it if it is found.
5815 # Check for GNU $ac_path_EGREP
5816case `"$ac_path_EGREP" --version 2>&1` in
5817*GNU*)
5818 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5819*)
5820 ac_count=0
5821 $as_echo_n 0123456789 >"conftest.in"
5822 while :
5823 do
5824 cat "conftest.in" "conftest.in" >"conftest.tmp"
5825 mv "conftest.tmp" "conftest.in"
5826 cp "conftest.in" "conftest.nl"
5827 $as_echo 'EGREP' >> "conftest.nl"
5828 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5830 as_fn_arith $ac_count + 1 && ac_count=$as_val
5831 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5832 # Best one so far, save it but keep looking for a better one
5833 ac_cv_path_EGREP="$ac_path_EGREP"
5834 ac_path_EGREP_max=$ac_count
5835 fi
5836 # 10*(2^10) chars as input seems more than enough
5837 test $ac_count -gt 10 && break
5838 done
5839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5840esac
5841
5842 $ac_path_EGREP_found && break 3
5843 done
5844 done
5845 done
5846IFS=$as_save_IFS
5847 if test -z "$ac_cv_path_EGREP"; then
22e05272 5848 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
0a35513e
AH
5849 fi
5850else
5851 ac_cv_path_EGREP=$EGREP
5852fi
5853
5854 fi
5855fi
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5857$as_echo "$ac_cv_path_EGREP" >&6; }
5858 EGREP="$ac_cv_path_EGREP"
5859
5860
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5862$as_echo_n "checking for fgrep... " >&6; }
22e05272 5863if ${ac_cv_path_FGREP+:} false; then :
0a35513e
AH
5864 $as_echo_n "(cached) " >&6
5865else
5866 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5867 then ac_cv_path_FGREP="$GREP -F"
5868 else
5869 if test -z "$FGREP"; then
5870 ac_path_FGREP_found=false
5871 # Loop through the user's path and test for each of PROGNAME-LIST
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5874do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_prog in fgrep; do
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5880 as_fn_executable_p "$ac_path_FGREP" || continue
0a35513e
AH
5881# Check for GNU ac_path_FGREP and select it if it is found.
5882 # Check for GNU $ac_path_FGREP
5883case `"$ac_path_FGREP" --version 2>&1` in
5884*GNU*)
5885 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5886*)
5887 ac_count=0
5888 $as_echo_n 0123456789 >"conftest.in"
5889 while :
5890 do
5891 cat "conftest.in" "conftest.in" >"conftest.tmp"
5892 mv "conftest.tmp" "conftest.in"
5893 cp "conftest.in" "conftest.nl"
5894 $as_echo 'FGREP' >> "conftest.nl"
5895 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5897 as_fn_arith $ac_count + 1 && ac_count=$as_val
5898 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5899 # Best one so far, save it but keep looking for a better one
5900 ac_cv_path_FGREP="$ac_path_FGREP"
5901 ac_path_FGREP_max=$ac_count
5902 fi
5903 # 10*(2^10) chars as input seems more than enough
5904 test $ac_count -gt 10 && break
5905 done
5906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5907esac
5908
5909 $ac_path_FGREP_found && break 3
5910 done
5911 done
5912 done
5913IFS=$as_save_IFS
5914 if test -z "$ac_cv_path_FGREP"; then
22e05272 5915 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
0a35513e
AH
5916 fi
5917else
5918 ac_cv_path_FGREP=$FGREP
5919fi
5920
5921 fi
5922fi
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5924$as_echo "$ac_cv_path_FGREP" >&6; }
5925 FGREP="$ac_cv_path_FGREP"
5926
5927
5928test -z "$GREP" && GREP=grep
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948# Check whether --with-gnu-ld was given.
5949if test "${with_gnu_ld+set}" = set; then :
5950 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5951else
5952 with_gnu_ld=no
5953fi
5954
5955ac_prog=ld
5956if test "$GCC" = yes; then
5957 # Check if gcc -print-prog-name=ld gives a path.
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5959$as_echo_n "checking for ld used by $CC... " >&6; }
5960 case $host in
5961 *-*-mingw*)
5962 # gcc leaves a trailing carriage return which upsets mingw
5963 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5964 *)
5965 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5966 esac
5967 case $ac_prog in
5968 # Accept absolute paths.
5969 [\\/]* | ?:[\\/]*)
5970 re_direlt='/[^/][^/]*/\.\./'
5971 # Canonicalize the pathname of ld
5972 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5973 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5974 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5975 done
5976 test -z "$LD" && LD="$ac_prog"
5977 ;;
5978 "")
5979 # If it fails, then pretend we aren't using GCC.
5980 ac_prog=ld
5981 ;;
5982 *)
5983 # If it is relative, then search for the first ld in PATH.
5984 with_gnu_ld=unknown
5985 ;;
5986 esac
5987elif test "$with_gnu_ld" = yes; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5989$as_echo_n "checking for GNU ld... " >&6; }
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5992$as_echo_n "checking for non-GNU ld... " >&6; }
5993fi
22e05272 5994if ${lt_cv_path_LD+:} false; then :
0a35513e
AH
5995 $as_echo_n "(cached) " >&6
5996else
5997 if test -z "$LD"; then
5998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5999 for ac_dir in $PATH; do
6000 IFS="$lt_save_ifs"
6001 test -z "$ac_dir" && ac_dir=.
6002 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6003 lt_cv_path_LD="$ac_dir/$ac_prog"
6004 # Check to see if the program is GNU ld. I'd rather use --version,
6005 # but apparently some variants of GNU ld only accept -v.
6006 # Break only if it was the GNU/non-GNU ld that we prefer.
6007 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6008 *GNU* | *'with BFD'*)
6009 test "$with_gnu_ld" != no && break
6010 ;;
6011 *)
6012 test "$with_gnu_ld" != yes && break
6013 ;;
6014 esac
6015 fi
6016 done
6017 IFS="$lt_save_ifs"
6018else
6019 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6020fi
6021fi
6022
6023LD="$lt_cv_path_LD"
6024if test -n "$LD"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6026$as_echo "$LD" >&6; }
6027else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029$as_echo "no" >&6; }
6030fi
22e05272 6031test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
0a35513e
AH
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6033$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6034if ${lt_cv_prog_gnu_ld+:} false; then :
0a35513e
AH
6035 $as_echo_n "(cached) " >&6
6036else
6037 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6038case `$LD -v 2>&1 </dev/null` in
6039*GNU* | *'with BFD'*)
6040 lt_cv_prog_gnu_ld=yes
6041 ;;
6042*)
6043 lt_cv_prog_gnu_ld=no
6044 ;;
6045esac
6046fi
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6048$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6049with_gnu_ld=$lt_cv_prog_gnu_ld
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6060$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 6061if ${lt_cv_path_NM+:} false; then :
0a35513e
AH
6062 $as_echo_n "(cached) " >&6
6063else
6064 if test -n "$NM"; then
ab422974
NA
6065 # Let the user override the nm to test.
6066 lt_nm_to_check="$NM"
6067 else
6068 lt_nm_to_check="${ac_tool_prefix}nm"
6069 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6070 lt_nm_to_check="$lt_nm_to_check nm"
6071 fi
6072 fi
f3307109 6073 for lt_tmp_nm in "$lt_nm_to_check"; do
ab422974
NA
6074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6075 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6076 IFS="$lt_save_ifs"
6077 test -z "$ac_dir" && ac_dir=.
f3307109
NA
6078 # Strip out any user-provided options from the nm to test twice,
6079 # the first time to test to see if nm (rather than its options) has
6080 # an explicit path, the second time to yield a file which can be
6081 # nm'ed itself.
6082 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6083 case "$tmp_nm_path" in
ab422974
NA
6084 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6085 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6086 esac
f3307109
NA
6087 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6088 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
ab422974
NA
6089 # Check to see if the nm accepts a BSD-compat flag.
6090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6091 # nm: unknown option "B" ignored
f3307109 6092 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
6093 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6094 break
6095 ;;
6096 *)
f3307109 6097 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
ab422974
NA
6098 *$tmp_nm*)
6099 lt_cv_path_NM="$tmp_nm -p"
6100 break
6101 ;;
6102 *)
6103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6104 continue # so that we can try to find one that supports BSD flags
6105 ;;
6106 esac
6107 ;;
6108 esac
6109 fi
6110 done
6111 IFS="$lt_save_ifs"
6112 done
6113 : ${lt_cv_path_NM=no}
0a35513e
AH
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6116$as_echo "$lt_cv_path_NM" >&6; }
6117if test "$lt_cv_path_NM" != "no"; then
6118 NM="$lt_cv_path_NM"
6119else
6120 # Didn't find any BSD compatible name lister, look for dumpbin.
6121 if test -n "$DUMPBIN"; then :
6122 # Let the user override the test.
6123 else
6124 if test -n "$ac_tool_prefix"; then
6125 for ac_prog in dumpbin "link -dump"
6126 do
6127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6128set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6131if ${ac_cv_prog_DUMPBIN+:} false; then :
0a35513e
AH
6132 $as_echo_n "(cached) " >&6
6133else
6134 if test -n "$DUMPBIN"; then
6135 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
6144 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148done
6149 done
6150IFS=$as_save_IFS
6151
6152fi
6153fi
6154DUMPBIN=$ac_cv_prog_DUMPBIN
6155if test -n "$DUMPBIN"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6157$as_echo "$DUMPBIN" >&6; }
6158else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160$as_echo "no" >&6; }
6161fi
6162
6163
6164 test -n "$DUMPBIN" && break
6165 done
6166fi
6167if test -z "$DUMPBIN"; then
6168 ac_ct_DUMPBIN=$DUMPBIN
6169 for ac_prog in dumpbin "link -dump"
6170do
6171 # Extract the first word of "$ac_prog", so it can be a program name with args.
6172set dummy $ac_prog; ac_word=$2
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6175if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
0a35513e
AH
6176 $as_echo_n "(cached) " >&6
6177else
6178 if test -n "$ac_ct_DUMPBIN"; then
6179 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
6188 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192done
6193 done
6194IFS=$as_save_IFS
6195
6196fi
6197fi
6198ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6199if test -n "$ac_ct_DUMPBIN"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6201$as_echo "$ac_ct_DUMPBIN" >&6; }
6202else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204$as_echo "no" >&6; }
6205fi
6206
6207
6208 test -n "$ac_ct_DUMPBIN" && break
6209done
6210
6211 if test "x$ac_ct_DUMPBIN" = x; then
6212 DUMPBIN=":"
6213 else
6214 case $cross_compiling:$ac_tool_warned in
6215yes:)
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6218ac_tool_warned=yes ;;
6219esac
6220 DUMPBIN=$ac_ct_DUMPBIN
6221 fi
6222fi
6223
6224 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6225 *COFF*)
6226 DUMPBIN="$DUMPBIN -symbols"
6227 ;;
6228 *)
6229 DUMPBIN=:
6230 ;;
6231 esac
6232 fi
6233
6234 if test "$DUMPBIN" != ":"; then
6235 NM="$DUMPBIN"
6236 fi
6237fi
6238test -z "$NM" && NM=nm
6239
6240
6241
6242
6243
6244
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6246$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 6247if ${lt_cv_nm_interface+:} false; then :
0a35513e
AH
6248 $as_echo_n "(cached) " >&6
6249else
6250 lt_cv_nm_interface="BSD nm"
6251 echo "int some_variable = 0;" > conftest.$ac_ext
6252 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6253 (eval "$ac_compile" 2>conftest.err)
6254 cat conftest.err >&5
6255 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6256 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6257 cat conftest.err >&5
6258 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6259 cat conftest.out >&5
6260 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6261 lt_cv_nm_interface="MS dumpbin"
6262 fi
6263 rm -f conftest*
6264fi
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6266$as_echo "$lt_cv_nm_interface" >&6; }
6267
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6269$as_echo_n "checking whether ln -s works... " >&6; }
6270LN_S=$as_ln_s
6271if test "$LN_S" = "ln -s"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6273$as_echo "yes" >&6; }
6274else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6276$as_echo "no, using $LN_S" >&6; }
6277fi
6278
6279# find the maximum length of command line arguments
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6281$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6282if ${lt_cv_sys_max_cmd_len+:} false; then :
0a35513e
AH
6283 $as_echo_n "(cached) " >&6
6284else
6285 i=0
6286 teststring="ABCD"
6287
6288 case $build_os in
6289 msdosdjgpp*)
6290 # On DJGPP, this test can blow up pretty badly due to problems in libc
6291 # (any single argument exceeding 2000 bytes causes a buffer overrun
6292 # during glob expansion). Even if it were fixed, the result of this
6293 # check would be larger than it should be.
6294 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6295 ;;
6296
6297 gnu*)
6298 # Under GNU Hurd, this test is not required because there is
6299 # no limit to the length of command line arguments.
6300 # Libtool will interpret -1 as no limit whatsoever
6301 lt_cv_sys_max_cmd_len=-1;
6302 ;;
6303
6304 cygwin* | mingw* | cegcc*)
6305 # On Win9x/ME, this test blows up -- it succeeds, but takes
6306 # about 5 minutes as the teststring grows exponentially.
6307 # Worse, since 9x/ME are not pre-emptively multitasking,
6308 # you end up with a "frozen" computer, even though with patience
6309 # the test eventually succeeds (with a max line length of 256k).
6310 # Instead, let's just punt: use the minimum linelength reported by
6311 # all of the supported platforms: 8192 (on NT/2K/XP).
6312 lt_cv_sys_max_cmd_len=8192;
6313 ;;
6314
6315 mint*)
6316 # On MiNT this can take a long time and run out of memory.
6317 lt_cv_sys_max_cmd_len=8192;
6318 ;;
6319
6320 amigaos*)
6321 # On AmigaOS with pdksh, this test takes hours, literally.
6322 # So we just punt and use a minimum line length of 8192.
6323 lt_cv_sys_max_cmd_len=8192;
6324 ;;
6325
6326 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6327 # This has been around since 386BSD, at least. Likely further.
6328 if test -x /sbin/sysctl; then
6329 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6330 elif test -x /usr/sbin/sysctl; then
6331 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6332 else
6333 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6334 fi
6335 # And add a safety zone
6336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6338 ;;
6339
6340 interix*)
6341 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6342 lt_cv_sys_max_cmd_len=196608
6343 ;;
6344
6345 osf*)
6346 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6347 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6348 # nice to cause kernel panics so lets avoid the loop below.
6349 # First set a reasonable default.
6350 lt_cv_sys_max_cmd_len=16384
6351 #
6352 if test -x /sbin/sysconfig; then
6353 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6354 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6355 esac
6356 fi
6357 ;;
6358 sco3.2v5*)
6359 lt_cv_sys_max_cmd_len=102400
6360 ;;
6361 sysv5* | sco5v6* | sysv4.2uw2*)
6362 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6363 if test -n "$kargmax"; then
6364 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6365 else
6366 lt_cv_sys_max_cmd_len=32768
6367 fi
6368 ;;
6369 *)
6370 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6371 if test -n "$lt_cv_sys_max_cmd_len"; then
6372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6374 else
6375 # Make teststring a little bigger before we do anything with it.
6376 # a 1K string should be a reasonable start.
6377 for i in 1 2 3 4 5 6 7 8 ; do
6378 teststring=$teststring$teststring
6379 done
6380 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6381 # If test is not a shell built-in, we'll probably end up computing a
6382 # maximum length that is only half of the actual maximum length, but
6383 # we can't tell.
6384 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6385 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6386 test $i != 17 # 1/2 MB should be enough
6387 do
6388 i=`expr $i + 1`
6389 teststring=$teststring$teststring
6390 done
6391 # Only check the string length outside the loop.
6392 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6393 teststring=
6394 # Add a significant safety factor because C++ compilers can tack on
6395 # massive amounts of additional arguments before passing them to the
6396 # linker. It appears as though 1/2 is a usable value.
6397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6398 fi
6399 ;;
6400 esac
6401
6402fi
6403
6404if test -n $lt_cv_sys_max_cmd_len ; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6406$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6407else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6409$as_echo "none" >&6; }
6410fi
6411max_cmd_len=$lt_cv_sys_max_cmd_len
6412
6413
6414
6415
6416
6417
6418: ${CP="cp -f"}
6419: ${MV="mv -f"}
6420: ${RM="rm -f"}
6421
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6423$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6424# Try some XSI features
6425xsi_shell=no
6426( _lt_dummy="a/b/c"
6427 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6428 = c,a/b,, \
6429 && eval 'test $(( 1 + 1 )) -eq 2 \
6430 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6431 && xsi_shell=yes
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6433$as_echo "$xsi_shell" >&6; }
6434
6435
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6437$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6438lt_shell_append=no
6439( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6440 >/dev/null 2>&1 \
6441 && lt_shell_append=yes
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6443$as_echo "$lt_shell_append" >&6; }
6444
6445
6446if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6447 lt_unset=unset
6448else
6449 lt_unset=false
6450fi
6451
6452
6453
6454
6455
6456# test EBCDIC or ASCII
6457case `echo X|tr X '\101'` in
6458 A) # ASCII based system
6459 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6460 lt_SP2NL='tr \040 \012'
6461 lt_NL2SP='tr \015\012 \040\040'
6462 ;;
6463 *) # EBCDIC based system
6464 lt_SP2NL='tr \100 \n'
6465 lt_NL2SP='tr \r\n \100\100'
6466 ;;
6467esac
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6478$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6479if ${lt_cv_ld_reload_flag+:} false; then :
0a35513e
AH
6480 $as_echo_n "(cached) " >&6
6481else
6482 lt_cv_ld_reload_flag='-r'
6483fi
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6485$as_echo "$lt_cv_ld_reload_flag" >&6; }
6486reload_flag=$lt_cv_ld_reload_flag
6487case $reload_flag in
6488"" | " "*) ;;
6489*) reload_flag=" $reload_flag" ;;
6490esac
6491reload_cmds='$LD$reload_flag -o $output$reload_objs'
6492case $host_os in
6493 darwin*)
6494 if test "$GCC" = yes; then
6495 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6496 else
6497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6498 fi
6499 ;;
6500esac
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6512set dummy ${ac_tool_prefix}objdump; ac_word=$2
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6515if ${ac_cv_prog_OBJDUMP+:} false; then :
0a35513e
AH
6516 $as_echo_n "(cached) " >&6
6517else
6518 if test -n "$OBJDUMP"; then
6519 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
6528 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532done
6533 done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538OBJDUMP=$ac_cv_prog_OBJDUMP
6539if test -n "$OBJDUMP"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6541$as_echo "$OBJDUMP" >&6; }
6542else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547
6548fi
6549if test -z "$ac_cv_prog_OBJDUMP"; then
6550 ac_ct_OBJDUMP=$OBJDUMP
6551 # Extract the first word of "objdump", so it can be a program name with args.
6552set dummy objdump; ac_word=$2
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6555if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
0a35513e
AH
6556 $as_echo_n "(cached) " >&6
6557else
6558 if test -n "$ac_ct_OBJDUMP"; then
6559 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
6568 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572done
6573 done
6574IFS=$as_save_IFS
6575
6576fi
6577fi
6578ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6579if test -n "$ac_ct_OBJDUMP"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6581$as_echo "$ac_ct_OBJDUMP" >&6; }
6582else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584$as_echo "no" >&6; }
6585fi
6586
6587 if test "x$ac_ct_OBJDUMP" = x; then
6588 OBJDUMP="false"
6589 else
6590 case $cross_compiling:$ac_tool_warned in
6591yes:)
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594ac_tool_warned=yes ;;
6595esac
6596 OBJDUMP=$ac_ct_OBJDUMP
6597 fi
6598else
6599 OBJDUMP="$ac_cv_prog_OBJDUMP"
6600fi
6601
6602test -z "$OBJDUMP" && OBJDUMP=objdump
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6613$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6614if ${lt_cv_deplibs_check_method+:} false; then :
0a35513e
AH
6615 $as_echo_n "(cached) " >&6
6616else
6617 lt_cv_file_magic_cmd='$MAGIC_CMD'
6618lt_cv_file_magic_test_file=
6619lt_cv_deplibs_check_method='unknown'
6620# Need to set the preceding variable on all platforms that support
6621# interlibrary dependencies.
6622# 'none' -- dependencies not supported.
6623# `unknown' -- same as none, but documents that we really don't know.
6624# 'pass_all' -- all dependencies passed with no checks.
6625# 'test_compile' -- check by making test program.
6626# 'file_magic [[regex]]' -- check by looking for files in library path
6627# which responds to the $file_magic_cmd with a given extended regex.
6628# If you have `file' or equivalent on your system and you're not sure
6629# whether `pass_all' will *always* work, you probably want this one.
6630
6631case $host_os in
6632aix[4-9]*)
6633 lt_cv_deplibs_check_method=pass_all
6634 ;;
6635
6636beos*)
6637 lt_cv_deplibs_check_method=pass_all
6638 ;;
6639
6640bsdi[45]*)
6641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6642 lt_cv_file_magic_cmd='/usr/bin/file -L'
6643 lt_cv_file_magic_test_file=/shlib/libc.so
6644 ;;
6645
6646cygwin*)
6647 # func_win32_libid is a shell function defined in ltmain.sh
6648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6649 lt_cv_file_magic_cmd='func_win32_libid'
6650 ;;
6651
6652mingw* | pw32*)
6653 # Base MSYS/MinGW do not provide the 'file' command needed by
6654 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6655 # unless we find 'file', for example because we are cross-compiling.
6656 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6657 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6658 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6659 lt_cv_file_magic_cmd='func_win32_libid'
6660 else
6661 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6662 lt_cv_file_magic_cmd='$OBJDUMP -f'
6663 fi
6664 ;;
6665
6666cegcc*)
6667 # use the weaker test based on 'objdump'. See mingw*.
6668 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6669 lt_cv_file_magic_cmd='$OBJDUMP -f'
6670 ;;
6671
6672darwin* | rhapsody*)
6673 lt_cv_deplibs_check_method=pass_all
6674 ;;
6675
6676freebsd* | dragonfly*)
6677 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6678 case $host_cpu in
6679 i*86 )
6680 # Not sure whether the presence of OpenBSD here was a mistake.
6681 # Let's accept both of them until this is cleared up.
6682 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6683 lt_cv_file_magic_cmd=/usr/bin/file
6684 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6685 ;;
6686 esac
6687 else
6688 lt_cv_deplibs_check_method=pass_all
6689 fi
6690 ;;
6691
6692gnu*)
6693 lt_cv_deplibs_check_method=pass_all
6694 ;;
6695
6696haiku*)
6697 lt_cv_deplibs_check_method=pass_all
6698 ;;
6699
6700hpux10.20* | hpux11*)
6701 lt_cv_file_magic_cmd=/usr/bin/file
6702 case $host_cpu in
6703 ia64*)
6704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6705 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6706 ;;
6707 hppa*64*)
6708 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]'
6709 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6710 ;;
6711 *)
6712 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6713 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6714 ;;
6715 esac
6716 ;;
6717
6718interix[3-9]*)
6719 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6721 ;;
6722
6723irix5* | irix6* | nonstopux*)
6724 case $LD in
6725 *-32|*"-32 ") libmagic=32-bit;;
6726 *-n32|*"-n32 ") libmagic=N32;;
6727 *-64|*"-64 ") libmagic=64-bit;;
6728 *) libmagic=never-match;;
6729 esac
6730 lt_cv_deplibs_check_method=pass_all
6731 ;;
6732
6733# This must be Linux ELF.
b1e21e5a 6734linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
0a35513e
AH
6735 lt_cv_deplibs_check_method=pass_all
6736 ;;
6737
6738netbsd*)
6739 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6741 else
6742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6743 fi
6744 ;;
6745
6746newos6*)
6747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6748 lt_cv_file_magic_cmd=/usr/bin/file
6749 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6750 ;;
6751
6752*nto* | *qnx*)
6753 lt_cv_deplibs_check_method=pass_all
6754 ;;
6755
6756openbsd*)
6757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6759 else
6760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6761 fi
6762 ;;
6763
6764osf3* | osf4* | osf5*)
6765 lt_cv_deplibs_check_method=pass_all
6766 ;;
6767
6768rdos*)
6769 lt_cv_deplibs_check_method=pass_all
6770 ;;
6771
6772solaris*)
6773 lt_cv_deplibs_check_method=pass_all
6774 ;;
6775
6776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6777 lt_cv_deplibs_check_method=pass_all
6778 ;;
6779
6780sysv4 | sysv4.3*)
6781 case $host_vendor in
6782 motorola)
6783 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]'
6784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6785 ;;
6786 ncr)
6787 lt_cv_deplibs_check_method=pass_all
6788 ;;
6789 sequent)
6790 lt_cv_file_magic_cmd='/bin/file'
6791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6792 ;;
6793 sni)
6794 lt_cv_file_magic_cmd='/bin/file'
6795 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6796 lt_cv_file_magic_test_file=/lib/libc.so
6797 ;;
6798 siemens)
6799 lt_cv_deplibs_check_method=pass_all
6800 ;;
6801 pc)
6802 lt_cv_deplibs_check_method=pass_all
6803 ;;
6804 esac
6805 ;;
6806
6807tpf*)
6808 lt_cv_deplibs_check_method=pass_all
6809 ;;
0ecd0f1c
OH
6810vxworks*)
6811 # Assume VxWorks cross toolchains are built on Linux, possibly
6812 # as canadian for Windows hosts.
6813 lt_cv_deplibs_check_method=pass_all
6814 ;;
0a35513e
AH
6815esac
6816
6817fi
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6819$as_echo "$lt_cv_deplibs_check_method" >&6; }
6820file_magic_cmd=$lt_cv_file_magic_cmd
6821deplibs_check_method=$lt_cv_deplibs_check_method
6822test -z "$deplibs_check_method" && deplibs_check_method=unknown
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
126f707e
L
6835plugin_option=
6836plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6837for plugin in $plugin_names; do
6838 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6839 if test x$plugin_so = x$plugin; then
6840 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6841 fi
6842 if test x$plugin_so != x$plugin; then
6843 plugin_option="--plugin $plugin_so"
6844 break
6845 fi
6846done
6847
0a35513e
AH
6848if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6850set dummy ${ac_tool_prefix}ar; ac_word=$2
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6853if ${ac_cv_prog_AR+:} false; then :
0a35513e
AH
6854 $as_echo_n "(cached) " >&6
6855else
6856 if test -n "$AR"; then
6857 ac_cv_prog_AR="$AR" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
6866 ac_cv_prog_AR="${ac_tool_prefix}ar"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871 done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876AR=$ac_cv_prog_AR
6877if test -n "$AR"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6879$as_echo "$AR" >&6; }
6880else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
6883fi
6884
6885
6886fi
6887if test -z "$ac_cv_prog_AR"; then
6888 ac_ct_AR=$AR
6889 # Extract the first word of "ar", so it can be a program name with args.
6890set dummy ar; ac_word=$2
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6893if ${ac_cv_prog_ac_ct_AR+:} false; then :
0a35513e
AH
6894 $as_echo_n "(cached) " >&6
6895else
6896 if test -n "$ac_ct_AR"; then
6897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
6906 ac_cv_prog_ac_ct_AR="ar"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911 done
6912IFS=$as_save_IFS
6913
6914fi
6915fi
6916ac_ct_AR=$ac_cv_prog_ac_ct_AR
6917if test -n "$ac_ct_AR"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6919$as_echo "$ac_ct_AR" >&6; }
6920else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922$as_echo "no" >&6; }
6923fi
6924
6925 if test "x$ac_ct_AR" = x; then
6926 AR="false"
6927 else
6928 case $cross_compiling:$ac_tool_warned in
6929yes:)
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932ac_tool_warned=yes ;;
6933esac
6934 AR=$ac_ct_AR
6935 fi
6936else
6937 AR="$ac_cv_prog_AR"
6938fi
6939
6940test -z "$AR" && AR=ar
126f707e
L
6941if test -n "$plugin_option"; then
6942 if $AR --help 2>&1 | grep -q "\--plugin"; then
9c7797a8
L
6943 touch conftest.c
6944 $AR $plugin_option rc conftest.a conftest.c
6945 if test "$?" != 0; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6947$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6948 else
6949 AR="$AR $plugin_option"
6950 fi
6951 rm -f conftest.*
126f707e
L
6952 fi
6953fi
0a35513e
AH
6954test -z "$AR_FLAGS" && AR_FLAGS=cru
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6968set dummy ${ac_tool_prefix}strip; ac_word=$2
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6971if ${ac_cv_prog_STRIP+:} false; then :
0a35513e
AH
6972 $as_echo_n "(cached) " >&6
6973else
6974 if test -n "$STRIP"; then
6975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6976else
6977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
6984 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988done
6989 done
6990IFS=$as_save_IFS
6991
6992fi
6993fi
6994STRIP=$ac_cv_prog_STRIP
6995if test -n "$STRIP"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6997$as_echo "$STRIP" >&6; }
6998else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000$as_echo "no" >&6; }
7001fi
7002
7003
7004fi
7005if test -z "$ac_cv_prog_STRIP"; then
7006 ac_ct_STRIP=$STRIP
7007 # Extract the first word of "strip", so it can be a program name with args.
7008set dummy strip; ac_word=$2
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7011if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
0a35513e
AH
7012 $as_echo_n "(cached) " >&6
7013else
7014 if test -n "$ac_ct_STRIP"; then
7015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7016else
7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
7024 ac_cv_prog_ac_ct_STRIP="strip"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028done
7029 done
7030IFS=$as_save_IFS
7031
7032fi
7033fi
7034ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7035if test -n "$ac_ct_STRIP"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7037$as_echo "$ac_ct_STRIP" >&6; }
7038else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040$as_echo "no" >&6; }
7041fi
7042
7043 if test "x$ac_ct_STRIP" = x; then
7044 STRIP=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047yes:)
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050ac_tool_warned=yes ;;
7051esac
7052 STRIP=$ac_ct_STRIP
7053 fi
7054else
7055 STRIP="$ac_cv_prog_STRIP"
7056fi
7057
7058test -z "$STRIP" && STRIP=:
7059
7060
7061
7062
7063
7064
7065if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7067set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7070if ${ac_cv_prog_RANLIB+:} false; then :
0a35513e
AH
7071 $as_echo_n "(cached) " >&6
7072else
7073 if test -n "$RANLIB"; then
7074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
7083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087done
7088 done
7089IFS=$as_save_IFS
7090
7091fi
7092fi
7093RANLIB=$ac_cv_prog_RANLIB
7094if test -n "$RANLIB"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7096$as_echo "$RANLIB" >&6; }
7097else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099$as_echo "no" >&6; }
7100fi
7101
7102
7103fi
7104if test -z "$ac_cv_prog_RANLIB"; then
7105 ac_ct_RANLIB=$RANLIB
7106 # Extract the first word of "ranlib", so it can be a program name with args.
7107set dummy ranlib; ac_word=$2
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7110if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
0a35513e
AH
7111 $as_echo_n "(cached) " >&6
7112else
7113 if test -n "$ac_ct_RANLIB"; then
7114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
7123 ac_cv_prog_ac_ct_RANLIB="ranlib"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127done
7128 done
7129IFS=$as_save_IFS
7130
7131fi
7132fi
7133ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7134if test -n "$ac_ct_RANLIB"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7136$as_echo "$ac_ct_RANLIB" >&6; }
7137else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139$as_echo "no" >&6; }
7140fi
7141
7142 if test "x$ac_ct_RANLIB" = x; then
7143 RANLIB=":"
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146yes:)
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149ac_tool_warned=yes ;;
7150esac
7151 RANLIB=$ac_ct_RANLIB
7152 fi
7153else
7154 RANLIB="$ac_cv_prog_RANLIB"
7155fi
7156
7157test -z "$RANLIB" && RANLIB=:
126f707e
L
7158if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7159 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7160 RANLIB="$RANLIB $plugin_option"
7161 fi
7162fi
0a35513e
AH
7163
7164
7165
7166
7167
7168
7169# Determine commands to create old-style static archives.
7170old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7171old_postinstall_cmds='chmod 644 $oldlib'
7172old_postuninstall_cmds=
7173
7174if test -n "$RANLIB"; then
7175 case $host_os in
7176 openbsd*)
7177 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7178 ;;
7179 *)
7180 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7181 ;;
7182 esac
7183 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7184fi
7185
7186case $host_os in
7187 darwin*)
7188 lock_old_archive_extraction=yes ;;
7189 *)
7190 lock_old_archive_extraction=no ;;
7191esac
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231# If no C compiler was specified, use CC.
7232LTCC=${LTCC-"$CC"}
7233
7234# If no C compiler flags were specified, use CFLAGS.
7235LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7236
7237# Allow CC to be a program name with arguments.
7238compiler=$CC
7239
7240
7241# Check for command to grab the raw symbol name followed by C symbol from nm.
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7243$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7244if ${lt_cv_sys_global_symbol_pipe+:} false; then :
0a35513e
AH
7245 $as_echo_n "(cached) " >&6
7246else
7247
7248# These are sane defaults that work on at least a few old systems.
7249# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7250
7251# Character class describing NM global symbol codes.
7252symcode='[BCDEGRST]'
7253
7254# Regexp to match symbols that can be accessed directly from C.
7255sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7256
7257# Define system-specific variables.
7258case $host_os in
7259aix*)
7260 symcode='[BCDT]'
7261 ;;
7262cygwin* | mingw* | pw32* | cegcc*)
7263 symcode='[ABCDGISTW]'
7264 ;;
7265hpux*)
7266 if test "$host_cpu" = ia64; then
7267 symcode='[ABCDEGRST]'
7268 fi
7269 ;;
7270irix* | nonstopux*)
7271 symcode='[BCDEGRST]'
7272 ;;
7273osf*)
7274 symcode='[BCDEGQRST]'
7275 ;;
7276solaris*)
dc17ceb3 7277 symcode='[BCDRT]'
0a35513e
AH
7278 ;;
7279sco3.2v5*)
7280 symcode='[DT]'
7281 ;;
7282sysv4.2uw2*)
7283 symcode='[DT]'
7284 ;;
7285sysv5* | sco5v6* | unixware* | OpenUNIX*)
7286 symcode='[ABDT]'
7287 ;;
7288sysv4)
7289 symcode='[DFNSTU]'
7290 ;;
7291esac
7292
7293# If we're using GNU nm, then use its standard symbol codes.
7294case `$NM -V 2>&1` in
7295*GNU* | *'with BFD'*)
7296 symcode='[ABCDGIRSTW]' ;;
7297esac
7298
7299# Transform an extracted symbol line into a proper C declaration.
7300# Some systems (esp. on ia64) link data and code symbols differently,
7301# so use this general approach.
7302lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7303
7304# Transform an extracted symbol line into symbol name and symbol address
7305lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7306lt_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'"
7307
7308# Handle CRLF in mingw tool chain
7309opt_cr=
7310case $build_os in
7311mingw*)
7312 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7313 ;;
7314esac
7315
7316# Try without a prefix underscore, then with it.
7317for ac_symprfx in "" "_"; do
7318
7319 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7320 symxfrm="\\1 $ac_symprfx\\2 \\2"
7321
7322 # Write the raw and C identifiers.
7323 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7324 # Fake it for dumpbin and say T for any non-static function
7325 # and D for any global variable.
7326 # Also find C++ and __fastcall symbols from MSVC++,
7327 # which start with @ or ?.
7328 lt_cv_sys_global_symbol_pipe="$AWK '"\
7329" {last_section=section; section=\$ 3};"\
7330" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7331" \$ 0!~/External *\|/{next};"\
7332" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7333" {if(hide[section]) next};"\
7334" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7335" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7336" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7337" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7338" ' prfx=^$ac_symprfx"
7339 else
7340 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7341 fi
7342
7343 # Check to see that the pipe works correctly.
7344 pipe_works=no
7345
7346 rm -f conftest*
7347 cat > conftest.$ac_ext <<_LT_EOF
7348#ifdef __cplusplus
7349extern "C" {
7350#endif
7351char nm_test_var;
7352void nm_test_func(void);
7353void nm_test_func(void){}
7354#ifdef __cplusplus
7355}
7356#endif
7357int main(){nm_test_var='a';nm_test_func();return(0);}
7358_LT_EOF
7359
7360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7361 (eval $ac_compile) 2>&5
7362 ac_status=$?
7363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7364 test $ac_status = 0; }; then
7365 # Now try to grab the symbols.
7366 nlist=conftest.nm
7367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7368 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7369 ac_status=$?
7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371 test $ac_status = 0; } && test -s "$nlist"; then
7372 # Try sorting and uniquifying the output.
7373 if sort "$nlist" | uniq > "$nlist"T; then
7374 mv -f "$nlist"T "$nlist"
7375 else
7376 rm -f "$nlist"T
7377 fi
7378
7379 # Make sure that we snagged all the symbols we need.
7380 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7381 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7382 cat <<_LT_EOF > conftest.$ac_ext
7383#ifdef __cplusplus
7384extern "C" {
7385#endif
7386
7387_LT_EOF
7388 # Now generate the symbol file.
7389 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7390
7391 cat <<_LT_EOF >> conftest.$ac_ext
7392
7393/* The mapping between symbol names and symbols. */
7394const struct {
7395 const char *name;
7396 void *address;
7397}
7398lt__PROGRAM__LTX_preloaded_symbols[] =
7399{
7400 { "@PROGRAM@", (void *) 0 },
7401_LT_EOF
7402 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7403 cat <<\_LT_EOF >> conftest.$ac_ext
7404 {0, (void *) 0}
7405};
7406
7407/* This works around a problem in FreeBSD linker */
7408#ifdef FREEBSD_WORKAROUND
7409static const void *lt_preloaded_setup() {
7410 return lt__PROGRAM__LTX_preloaded_symbols;
7411}
7412#endif
7413
7414#ifdef __cplusplus
7415}
7416#endif
7417_LT_EOF
7418 # Now try linking the two files.
7419 mv conftest.$ac_objext conftstm.$ac_objext
7420 lt_save_LIBS="$LIBS"
7421 lt_save_CFLAGS="$CFLAGS"
7422 LIBS="conftstm.$ac_objext"
7423 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7425 (eval $ac_link) 2>&5
7426 ac_status=$?
7427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7428 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7429 pipe_works=yes
7430 fi
7431 LIBS="$lt_save_LIBS"
7432 CFLAGS="$lt_save_CFLAGS"
7433 else
7434 echo "cannot find nm_test_func in $nlist" >&5
7435 fi
7436 else
7437 echo "cannot find nm_test_var in $nlist" >&5
7438 fi
7439 else
7440 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7441 fi
7442 else
7443 echo "$progname: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7445 fi
7446 rm -rf conftest* conftst*
7447
7448 # Do not use the global_symbol_pipe unless it works.
7449 if test "$pipe_works" = yes; then
7450 break
7451 else
7452 lt_cv_sys_global_symbol_pipe=
7453 fi
7454done
7455
7456fi
7457
7458if test -z "$lt_cv_sys_global_symbol_pipe"; then
7459 lt_cv_sys_global_symbol_to_cdecl=
7460fi
7461if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7463$as_echo "failed" >&6; }
7464else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7466$as_echo "ok" >&6; }
7467fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491# Check whether --enable-libtool-lock was given.
7492if test "${enable_libtool_lock+set}" = set; then :
7493 enableval=$enable_libtool_lock;
7494fi
7495
7496test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7497
7498# Some flags need to be propagated to the compiler or linker for good
7499# libtool support.
7500case $host in
7501ia64-*-hpux*)
7502 # Find out which ABI we are using.
7503 echo 'int i;' > conftest.$ac_ext
7504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7505 (eval $ac_compile) 2>&5
7506 ac_status=$?
7507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508 test $ac_status = 0; }; then
7509 case `/usr/bin/file conftest.$ac_objext` in
7510 *ELF-32*)
7511 HPUX_IA64_MODE="32"
7512 ;;
7513 *ELF-64*)
7514 HPUX_IA64_MODE="64"
7515 ;;
7516 esac
7517 fi
7518 rm -rf conftest*
7519 ;;
7520*-*-irix6*)
7521 # Find out which ABI we are using.
7522 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7524 (eval $ac_compile) 2>&5
7525 ac_status=$?
7526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7527 test $ac_status = 0; }; then
7528 if test "$lt_cv_prog_gnu_ld" = yes; then
7529 case `/usr/bin/file conftest.$ac_objext` in
7530 *32-bit*)
7531 LD="${LD-ld} -melf32bsmip"
7532 ;;
7533 *N32*)
7534 LD="${LD-ld} -melf32bmipn32"
7535 ;;
7536 *64-bit*)
7537 LD="${LD-ld} -melf64bmip"
7538 ;;
7539 esac
7540 else
7541 case `/usr/bin/file conftest.$ac_objext` in
7542 *32-bit*)
7543 LD="${LD-ld} -32"
7544 ;;
7545 *N32*)
7546 LD="${LD-ld} -n32"
7547 ;;
7548 *64-bit*)
7549 LD="${LD-ld} -64"
7550 ;;
7551 esac
7552 fi
7553 fi
7554 rm -rf conftest*
7555 ;;
7556
3cbe17f7 7557x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
0a35513e
AH
7558s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7559 # Find out which ABI we are using.
7560 echo 'int i;' > conftest.$ac_ext
7561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7562 (eval $ac_compile) 2>&5
7563 ac_status=$?
7564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565 test $ac_status = 0; }; then
7566 case `/usr/bin/file conftest.o` in
7567 *32-bit*)
7568 case $host in
7569 x86_64-*kfreebsd*-gnu)
7570 LD="${LD-ld} -m elf_i386_fbsd"
7571 ;;
7572 x86_64-*linux*)
e6d5f8c9
L
7573 case `/usr/bin/file conftest.o` in
7574 *x86-64*)
7575 LD="${LD-ld} -m elf32_x86_64"
7576 ;;
7577 *)
7578 LD="${LD-ld} -m elf_i386"
7579 ;;
7580 esac
0a35513e 7581 ;;
3cbe17f7
AM
7582 powerpc64le-*linux*)
7583 LD="${LD-ld} -m elf32lppclinux"
7584 ;;
7585 powerpc64-*linux*)
0a35513e
AH
7586 LD="${LD-ld} -m elf32ppclinux"
7587 ;;
7588 s390x-*linux*)
7589 LD="${LD-ld} -m elf_s390"
7590 ;;
7591 sparc64-*linux*)
7592 LD="${LD-ld} -m elf32_sparc"
7593 ;;
7594 esac
7595 ;;
7596 *64-bit*)
7597 case $host in
7598 x86_64-*kfreebsd*-gnu)
7599 LD="${LD-ld} -m elf_x86_64_fbsd"
7600 ;;
7601 x86_64-*linux*)
7602 LD="${LD-ld} -m elf_x86_64"
7603 ;;
3cbe17f7
AM
7604 powerpcle-*linux*)
7605 LD="${LD-ld} -m elf64lppc"
7606 ;;
7607 powerpc-*linux*)
0a35513e
AH
7608 LD="${LD-ld} -m elf64ppc"
7609 ;;
7610 s390*-*linux*|s390*-*tpf*)
7611 LD="${LD-ld} -m elf64_s390"
7612 ;;
7613 sparc*-*linux*)
7614 LD="${LD-ld} -m elf64_sparc"
7615 ;;
7616 esac
7617 ;;
7618 esac
7619 fi
7620 rm -rf conftest*
7621 ;;
7622
7623*-*-sco3.2v5*)
7624 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7625 SAVE_CFLAGS="$CFLAGS"
7626 CFLAGS="$CFLAGS -belf"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7628$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7629if ${lt_cv_cc_needs_belf+:} false; then :
0a35513e
AH
7630 $as_echo_n "(cached) " >&6
7631else
7632 ac_ext=c
7633ac_cpp='$CPP $CPPFLAGS'
7634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h. */
7640
7641int
7642main ()
7643{
7644
7645 ;
7646 return 0;
7647}
7648_ACEOF
7649if ac_fn_c_try_link "$LINENO"; then :
7650 lt_cv_cc_needs_belf=yes
7651else
7652 lt_cv_cc_needs_belf=no
7653fi
7654rm -f core conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
7656 ac_ext=c
7657ac_cpp='$CPP $CPPFLAGS'
7658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660ac_compiler_gnu=$ac_cv_c_compiler_gnu
7661
7662fi
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7664$as_echo "$lt_cv_cc_needs_belf" >&6; }
7665 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7666 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7667 CFLAGS="$SAVE_CFLAGS"
7668 fi
7669 ;;
7670sparc*-*solaris*)
7671 # Find out which ABI we are using.
7672 echo 'int i;' > conftest.$ac_ext
7673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7674 (eval $ac_compile) 2>&5
7675 ac_status=$?
7676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7677 test $ac_status = 0; }; then
7678 case `/usr/bin/file conftest.o` in
7679 *64-bit*)
7680 case $lt_cv_prog_gnu_ld in
7681 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7682 *)
7683 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7684 LD="${LD-ld} -64"
7685 fi
7686 ;;
7687 esac
7688 ;;
7689 esac
7690 fi
7691 rm -rf conftest*
7692 ;;
7693esac
7694
7695need_locks="$enable_libtool_lock"
7696
7697
7698 case $host_os in
7699 rhapsody* | darwin*)
7700 if test -n "$ac_tool_prefix"; then
7701 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7702set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7705if ${ac_cv_prog_DSYMUTIL+:} false; then :
0a35513e
AH
7706 $as_echo_n "(cached) " >&6
7707else
7708 if test -n "$DSYMUTIL"; then
7709 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7710else
7711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712for as_dir in $PATH
7713do
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
7718 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7721 fi
7722done
7723 done
7724IFS=$as_save_IFS
7725
7726fi
7727fi
7728DSYMUTIL=$ac_cv_prog_DSYMUTIL
7729if test -n "$DSYMUTIL"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7731$as_echo "$DSYMUTIL" >&6; }
7732else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734$as_echo "no" >&6; }
7735fi
7736
7737
7738fi
7739if test -z "$ac_cv_prog_DSYMUTIL"; then
7740 ac_ct_DSYMUTIL=$DSYMUTIL
7741 # Extract the first word of "dsymutil", so it can be a program name with args.
7742set dummy dsymutil; ac_word=$2
7743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7745if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
0a35513e
AH
7746 $as_echo_n "(cached) " >&6
7747else
7748 if test -n "$ac_ct_DSYMUTIL"; then
7749 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
7758 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7761 fi
7762done
7763 done
7764IFS=$as_save_IFS
7765
7766fi
7767fi
7768ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7769if test -n "$ac_ct_DSYMUTIL"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7771$as_echo "$ac_ct_DSYMUTIL" >&6; }
7772else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774$as_echo "no" >&6; }
7775fi
7776
7777 if test "x$ac_ct_DSYMUTIL" = x; then
7778 DSYMUTIL=":"
7779 else
7780 case $cross_compiling:$ac_tool_warned in
7781yes:)
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7784ac_tool_warned=yes ;;
7785esac
7786 DSYMUTIL=$ac_ct_DSYMUTIL
7787 fi
7788else
7789 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7790fi
7791
7792 if test -n "$ac_tool_prefix"; then
7793 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7794set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7797if ${ac_cv_prog_NMEDIT+:} false; then :
0a35513e
AH
7798 $as_echo_n "(cached) " >&6
7799else
7800 if test -n "$NMEDIT"; then
7801 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7802else
7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
7810 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7813 fi
7814done
7815 done
7816IFS=$as_save_IFS
7817
7818fi
7819fi
7820NMEDIT=$ac_cv_prog_NMEDIT
7821if test -n "$NMEDIT"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7823$as_echo "$NMEDIT" >&6; }
7824else
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
7827fi
7828
7829
7830fi
7831if test -z "$ac_cv_prog_NMEDIT"; then
7832 ac_ct_NMEDIT=$NMEDIT
7833 # Extract the first word of "nmedit", so it can be a program name with args.
7834set dummy nmedit; ac_word=$2
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7837if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
0a35513e
AH
7838 $as_echo_n "(cached) " >&6
7839else
7840 if test -n "$ac_ct_NMEDIT"; then
7841 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7842else
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
7850 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854done
7855 done
7856IFS=$as_save_IFS
7857
7858fi
7859fi
7860ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7861if test -n "$ac_ct_NMEDIT"; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7863$as_echo "$ac_ct_NMEDIT" >&6; }
7864else
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866$as_echo "no" >&6; }
7867fi
7868
7869 if test "x$ac_ct_NMEDIT" = x; then
7870 NMEDIT=":"
7871 else
7872 case $cross_compiling:$ac_tool_warned in
7873yes:)
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7876ac_tool_warned=yes ;;
7877esac
7878 NMEDIT=$ac_ct_NMEDIT
7879 fi
7880else
7881 NMEDIT="$ac_cv_prog_NMEDIT"
7882fi
7883
7884 if test -n "$ac_tool_prefix"; then
7885 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7886set dummy ${ac_tool_prefix}lipo; ac_word=$2
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7889if ${ac_cv_prog_LIPO+:} false; then :
0a35513e
AH
7890 $as_echo_n "(cached) " >&6
7891else
7892 if test -n "$LIPO"; then
7893 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7894else
7895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896for as_dir in $PATH
7897do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
7902 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2
7905 fi
7906done
7907 done
7908IFS=$as_save_IFS
7909
7910fi
7911fi
7912LIPO=$ac_cv_prog_LIPO
7913if test -n "$LIPO"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7915$as_echo "$LIPO" >&6; }
7916else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918$as_echo "no" >&6; }
7919fi
7920
7921
7922fi
7923if test -z "$ac_cv_prog_LIPO"; then
7924 ac_ct_LIPO=$LIPO
7925 # Extract the first word of "lipo", so it can be a program name with args.
7926set dummy lipo; ac_word=$2
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7929if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
0a35513e
AH
7930 $as_echo_n "(cached) " >&6
7931else
7932 if test -n "$ac_ct_LIPO"; then
7933 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7934else
7935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936for as_dir in $PATH
7937do
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
7942 ac_cv_prog_ac_ct_LIPO="lipo"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946done
7947 done
7948IFS=$as_save_IFS
7949
7950fi
7951fi
7952ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7953if test -n "$ac_ct_LIPO"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7955$as_echo "$ac_ct_LIPO" >&6; }
7956else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958$as_echo "no" >&6; }
7959fi
7960
7961 if test "x$ac_ct_LIPO" = x; then
7962 LIPO=":"
7963 else
7964 case $cross_compiling:$ac_tool_warned in
7965yes:)
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7968ac_tool_warned=yes ;;
7969esac
7970 LIPO=$ac_ct_LIPO
7971 fi
7972else
7973 LIPO="$ac_cv_prog_LIPO"
7974fi
7975
7976 if test -n "$ac_tool_prefix"; then
7977 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7978set dummy ${ac_tool_prefix}otool; ac_word=$2
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7981if ${ac_cv_prog_OTOOL+:} false; then :
0a35513e
AH
7982 $as_echo_n "(cached) " >&6
7983else
7984 if test -n "$OTOOL"; then
7985 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7986else
7987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988for as_dir in $PATH
7989do
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
7994 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7997 fi
7998done
7999 done
8000IFS=$as_save_IFS
8001
8002fi
8003fi
8004OTOOL=$ac_cv_prog_OTOOL
8005if test -n "$OTOOL"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8007$as_echo "$OTOOL" >&6; }
8008else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010$as_echo "no" >&6; }
8011fi
8012
8013
8014fi
8015if test -z "$ac_cv_prog_OTOOL"; then
8016 ac_ct_OTOOL=$OTOOL
8017 # Extract the first word of "otool", so it can be a program name with args.
8018set dummy otool; ac_word=$2
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8021if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
0a35513e
AH
8022 $as_echo_n "(cached) " >&6
8023else
8024 if test -n "$ac_ct_OTOOL"; then
8025 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8026else
8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
8034 ac_cv_prog_ac_ct_OTOOL="otool"
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 break 2
8037 fi
8038done
8039 done
8040IFS=$as_save_IFS
8041
8042fi
8043fi
8044ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8045if test -n "$ac_ct_OTOOL"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8047$as_echo "$ac_ct_OTOOL" >&6; }
8048else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050$as_echo "no" >&6; }
8051fi
8052
8053 if test "x$ac_ct_OTOOL" = x; then
8054 OTOOL=":"
8055 else
8056 case $cross_compiling:$ac_tool_warned in
8057yes:)
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8060ac_tool_warned=yes ;;
8061esac
8062 OTOOL=$ac_ct_OTOOL
8063 fi
8064else
8065 OTOOL="$ac_cv_prog_OTOOL"
8066fi
8067
8068 if test -n "$ac_tool_prefix"; then
8069 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8070set dummy ${ac_tool_prefix}otool64; ac_word=$2
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8073if ${ac_cv_prog_OTOOL64+:} false; then :
0a35513e
AH
8074 $as_echo_n "(cached) " >&6
8075else
8076 if test -n "$OTOOL64"; then
8077 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8078else
8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
8086 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090done
8091 done
8092IFS=$as_save_IFS
8093
8094fi
8095fi
8096OTOOL64=$ac_cv_prog_OTOOL64
8097if test -n "$OTOOL64"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8099$as_echo "$OTOOL64" >&6; }
8100else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102$as_echo "no" >&6; }
8103fi
8104
8105
8106fi
8107if test -z "$ac_cv_prog_OTOOL64"; then
8108 ac_ct_OTOOL64=$OTOOL64
8109 # Extract the first word of "otool64", so it can be a program name with args.
8110set dummy otool64; ac_word=$2
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8113if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
0a35513e
AH
8114 $as_echo_n "(cached) " >&6
8115else
8116 if test -n "$ac_ct_OTOOL64"; then
8117 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8118else
8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120for as_dir in $PATH
8121do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0a35513e
AH
8126 ac_cv_prog_ac_ct_OTOOL64="otool64"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8129 fi
8130done
8131 done
8132IFS=$as_save_IFS
8133
8134fi
8135fi
8136ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8137if test -n "$ac_ct_OTOOL64"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8139$as_echo "$ac_ct_OTOOL64" >&6; }
8140else
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142$as_echo "no" >&6; }
8143fi
8144
8145 if test "x$ac_ct_OTOOL64" = x; then
8146 OTOOL64=":"
8147 else
8148 case $cross_compiling:$ac_tool_warned in
8149yes:)
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8152ac_tool_warned=yes ;;
8153esac
8154 OTOOL64=$ac_ct_OTOOL64
8155 fi
8156else
8157 OTOOL64="$ac_cv_prog_OTOOL64"
8158fi
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8187$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 8188if ${lt_cv_apple_cc_single_mod+:} false; then :
0a35513e
AH
8189 $as_echo_n "(cached) " >&6
8190else
8191 lt_cv_apple_cc_single_mod=no
8192 if test -z "${LT_MULTI_MODULE}"; then
8193 # By default we will add the -single_module flag. You can override
8194 # by either setting the environment variable LT_MULTI_MODULE
8195 # non-empty at configure time, or by adding -multi_module to the
8196 # link flags.
8197 rm -rf libconftest.dylib*
8198 echo "int foo(void){return 1;}" > conftest.c
8199 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8200-dynamiclib -Wl,-single_module conftest.c" >&5
8201 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8202 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8203 _lt_result=$?
8204 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8205 lt_cv_apple_cc_single_mod=yes
8206 else
8207 cat conftest.err >&5
8208 fi
8209 rm -rf libconftest.dylib*
8210 rm -f conftest.*
8211 fi
8212fi
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8214$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8216$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 8217if ${lt_cv_ld_exported_symbols_list+:} false; then :
0a35513e
AH
8218 $as_echo_n "(cached) " >&6
8219else
8220 lt_cv_ld_exported_symbols_list=no
8221 save_LDFLAGS=$LDFLAGS
8222 echo "_main" > conftest.sym
8223 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h. */
8226
8227int
8228main ()
8229{
8230
8231 ;
8232 return 0;
8233}
8234_ACEOF
8235if ac_fn_c_try_link "$LINENO"; then :
8236 lt_cv_ld_exported_symbols_list=yes
8237else
8238 lt_cv_ld_exported_symbols_list=no
8239fi
8240rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 LDFLAGS="$save_LDFLAGS"
8243
8244fi
8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8246$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8248$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 8249if ${lt_cv_ld_force_load+:} false; then :
0a35513e
AH
8250 $as_echo_n "(cached) " >&6
8251else
8252 lt_cv_ld_force_load=no
8253 cat > conftest.c << _LT_EOF
8254int forced_loaded() { return 2;}
8255_LT_EOF
8256 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8257 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8258 echo "$AR cru libconftest.a conftest.o" >&5
8259 $AR cru libconftest.a conftest.o 2>&5
8260 cat > conftest.c << _LT_EOF
8261int main() { return 0;}
8262_LT_EOF
8263 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8264 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8265 _lt_result=$?
8266 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8267 lt_cv_ld_force_load=yes
8268 else
8269 cat conftest.err >&5
8270 fi
8271 rm -f conftest.err libconftest.a conftest conftest.c
8272 rm -rf conftest.dSYM
8273
8274fi
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8276$as_echo "$lt_cv_ld_force_load" >&6; }
1352bc88
IS
8277 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8278 # build without first building modern cctools / linker.
8279 case $host_cpu-$host_os in
8280 *-rhapsody* | *-darwin1.[012])
0a35513e 8281 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1352bc88 8282 *-darwin1.*)
0a35513e 8283 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1352bc88
IS
8284 *-darwin*)
8285 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8286 # deployment target is forced to an earlier version.
8287 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
6a6d3817 8288 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
1352bc88 8289 ;;
ebf6d33b 8290 10.[012][,.]*)
1352bc88
IS
8291 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8292 ;;
8293 *)
8294 ;;
8295 esac
0a35513e
AH
8296 ;;
8297 esac
8298 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8299 _lt_dar_single_mod='$single_module'
8300 fi
8301 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8302 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8303 else
8304 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8305 fi
8306 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8307 _lt_dsymutil='~$DSYMUTIL $lib || :'
8308 else
8309 _lt_dsymutil=
8310 fi
8311 ;;
8312 esac
8313
8314ac_ext=c
8315ac_cpp='$CPP $CPPFLAGS'
8316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318ac_compiler_gnu=$ac_cv_c_compiler_gnu
8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8320$as_echo_n "checking how to run the C preprocessor... " >&6; }
8321# On Suns, sometimes $CPP names a directory.
8322if test -n "$CPP" && test -d "$CPP"; then
8323 CPP=
8324fi
8325if test -z "$CPP"; then
22e05272 8326 if ${ac_cv_prog_CPP+:} false; then :
0a35513e
AH
8327 $as_echo_n "(cached) " >&6
8328else
8329 # Double quotes because CPP needs to be expanded
8330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8331 do
8332 ac_preproc_ok=false
8333for ac_c_preproc_warn_flag in '' yes
8334do
8335 # Use a header file that comes with gcc, so configuring glibc
8336 # with a fresh cross-compiler works.
8337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8338 # <limits.h> exists even on freestanding compilers.
8339 # On the NeXT, cc -E runs the code through the compiler's parser,
8340 # not just through cpp. "Syntax error" is here to catch this case.
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h. */
8343#ifdef __STDC__
8344# include <limits.h>
8345#else
8346# include <assert.h>
8347#endif
8348 Syntax error
8349_ACEOF
8350if ac_fn_c_try_cpp "$LINENO"; then :
8351
8352else
8353 # Broken: fails on valid input.
8354continue
8355fi
22e05272 8356rm -f conftest.err conftest.i conftest.$ac_ext
0a35513e
AH
8357
8358 # OK, works on sane cases. Now check whether nonexistent headers
8359 # can be detected and how.
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361/* end confdefs.h. */
8362#include <ac_nonexistent.h>
8363_ACEOF
8364if ac_fn_c_try_cpp "$LINENO"; then :
8365 # Broken: success on invalid input.
8366continue
8367else
8368 # Passes both tests.
8369ac_preproc_ok=:
8370break
8371fi
22e05272 8372rm -f conftest.err conftest.i conftest.$ac_ext
0a35513e
AH
8373
8374done
8375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 8376rm -f conftest.i conftest.err conftest.$ac_ext
0a35513e
AH
8377if $ac_preproc_ok; then :
8378 break
8379fi
8380
8381 done
8382 ac_cv_prog_CPP=$CPP
8383
8384fi
8385 CPP=$ac_cv_prog_CPP
8386else
8387 ac_cv_prog_CPP=$CPP
8388fi
8389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8390$as_echo "$CPP" >&6; }
8391ac_preproc_ok=false
8392for ac_c_preproc_warn_flag in '' yes
8393do
8394 # Use a header file that comes with gcc, so configuring glibc
8395 # with a fresh cross-compiler works.
8396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8397 # <limits.h> exists even on freestanding compilers.
8398 # On the NeXT, cc -E runs the code through the compiler's parser,
8399 # not just through cpp. "Syntax error" is here to catch this case.
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h. */
8402#ifdef __STDC__
8403# include <limits.h>
8404#else
8405# include <assert.h>
8406#endif
8407 Syntax error
8408_ACEOF
8409if ac_fn_c_try_cpp "$LINENO"; then :
8410
8411else
8412 # Broken: fails on valid input.
8413continue
8414fi
22e05272 8415rm -f conftest.err conftest.i conftest.$ac_ext
0a35513e
AH
8416
8417 # OK, works on sane cases. Now check whether nonexistent headers
8418 # can be detected and how.
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h. */
8421#include <ac_nonexistent.h>
8422_ACEOF
8423if ac_fn_c_try_cpp "$LINENO"; then :
8424 # Broken: success on invalid input.
8425continue
8426else
8427 # Passes both tests.
8428ac_preproc_ok=:
8429break
8430fi
22e05272 8431rm -f conftest.err conftest.i conftest.$ac_ext
0a35513e
AH
8432
8433done
8434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 8435rm -f conftest.i conftest.err conftest.$ac_ext
0a35513e
AH
8436if $ac_preproc_ok; then :
8437
8438else
8439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
8441as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8442See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
8443fi
8444
8445ac_ext=c
8446ac_cpp='$CPP $CPPFLAGS'
8447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8449ac_compiler_gnu=$ac_cv_c_compiler_gnu
8450
8451
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8453$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 8454if ${ac_cv_header_stdc+:} false; then :
0a35513e
AH
8455 $as_echo_n "(cached) " >&6
8456else
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458/* end confdefs.h. */
8459#include <stdlib.h>
8460#include <stdarg.h>
8461#include <string.h>
8462#include <float.h>
8463
8464int
8465main ()
8466{
8467
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472if ac_fn_c_try_compile "$LINENO"; then :
8473 ac_cv_header_stdc=yes
8474else
8475 ac_cv_header_stdc=no
8476fi
8477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478
8479if test $ac_cv_header_stdc = yes; then
8480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482/* end confdefs.h. */
8483#include <string.h>
8484
8485_ACEOF
8486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8487 $EGREP "memchr" >/dev/null 2>&1; then :
8488
8489else
8490 ac_cv_header_stdc=no
8491fi
8492rm -f conftest*
8493
8494fi
8495
8496if test $ac_cv_header_stdc = yes; then
8497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h. */
8500#include <stdlib.h>
8501
8502_ACEOF
8503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8504 $EGREP "free" >/dev/null 2>&1; then :
8505
8506else
8507 ac_cv_header_stdc=no
8508fi
8509rm -f conftest*
8510
8511fi
8512
8513if test $ac_cv_header_stdc = yes; then
8514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8515 if test "$cross_compiling" = yes; then :
8516 :
8517else
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h. */
8520#include <ctype.h>
8521#include <stdlib.h>
8522#if ((' ' & 0x0FF) == 0x020)
8523# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8524# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8525#else
8526# define ISLOWER(c) \
8527 (('a' <= (c) && (c) <= 'i') \
8528 || ('j' <= (c) && (c) <= 'r') \
8529 || ('s' <= (c) && (c) <= 'z'))
8530# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8531#endif
8532
8533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8534int
8535main ()
8536{
8537 int i;
8538 for (i = 0; i < 256; i++)
8539 if (XOR (islower (i), ISLOWER (i))
8540 || toupper (i) != TOUPPER (i))
8541 return 2;
8542 return 0;
8543}
8544_ACEOF
8545if ac_fn_c_try_run "$LINENO"; then :
8546
8547else
8548 ac_cv_header_stdc=no
8549fi
8550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8551 conftest.$ac_objext conftest.beam conftest.$ac_ext
8552fi
8553
8554fi
8555fi
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8557$as_echo "$ac_cv_header_stdc" >&6; }
8558if test $ac_cv_header_stdc = yes; then
8559
8560$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8561
8562fi
8563
8564# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8565for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8566 inttypes.h stdint.h unistd.h
8567do :
8568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8569ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8570"
22e05272 8571if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
0a35513e
AH
8572 cat >>confdefs.h <<_ACEOF
8573#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8574_ACEOF
8575
8576fi
8577
8578done
8579
8580
8581for ac_header in dlfcn.h
8582do :
8583 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8584"
22e05272 8585if test "x$ac_cv_header_dlfcn_h" = xyes; then :
0a35513e
AH
8586 cat >>confdefs.h <<_ACEOF
8587#define HAVE_DLFCN_H 1
8588_ACEOF
8589
8590fi
8591
8592done
8593
8594
8595
8596
8597
8598
8599# Set options
8600
8601
8602
8603 enable_dlopen=no
8604
8605
8606 enable_win32_dll=no
8607
8608
8609 # Check whether --enable-shared was given.
8610if test "${enable_shared+set}" = set; then :
8611 enableval=$enable_shared; p=${PACKAGE-default}
8612 case $enableval in
8613 yes) enable_shared=yes ;;
8614 no) enable_shared=no ;;
8615 *)
8616 enable_shared=no
8617 # Look at the argument we got. We use all the common list separators.
8618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8619 for pkg in $enableval; do
8620 IFS="$lt_save_ifs"
8621 if test "X$pkg" = "X$p"; then
8622 enable_shared=yes
8623 fi
8624 done
8625 IFS="$lt_save_ifs"
8626 ;;
8627 esac
8628else
8629 enable_shared=yes
8630fi
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640 # Check whether --enable-static was given.
8641if test "${enable_static+set}" = set; then :
8642 enableval=$enable_static; p=${PACKAGE-default}
8643 case $enableval in
8644 yes) enable_static=yes ;;
8645 no) enable_static=no ;;
8646 *)
8647 enable_static=no
8648 # Look at the argument we got. We use all the common list separators.
8649 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8650 for pkg in $enableval; do
8651 IFS="$lt_save_ifs"
8652 if test "X$pkg" = "X$p"; then
8653 enable_static=yes
8654 fi
8655 done
8656 IFS="$lt_save_ifs"
8657 ;;
8658 esac
8659else
8660 enable_static=yes
8661fi
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672# Check whether --with-pic was given.
8673if test "${with_pic+set}" = set; then :
8674 withval=$with_pic; pic_mode="$withval"
8675else
8676 pic_mode=default
8677fi
8678
8679
8680test -z "$pic_mode" && pic_mode=default
8681
8682
8683
8684
8685
8686
8687
8688 # Check whether --enable-fast-install was given.
8689if test "${enable_fast_install+set}" = set; then :
8690 enableval=$enable_fast_install; p=${PACKAGE-default}
8691 case $enableval in
8692 yes) enable_fast_install=yes ;;
8693 no) enable_fast_install=no ;;
8694 *)
8695 enable_fast_install=no
8696 # Look at the argument we got. We use all the common list separators.
8697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8698 for pkg in $enableval; do
8699 IFS="$lt_save_ifs"
8700 if test "X$pkg" = "X$p"; then
8701 enable_fast_install=yes
8702 fi
8703 done
8704 IFS="$lt_save_ifs"
8705 ;;
8706 esac
8707else
8708 enable_fast_install=yes
8709fi
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721# This can be used to rebuild libtool when needed
8722LIBTOOL_DEPS="$ltmain"
8723
8724# Always use our own libtool.
8725LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752test -z "$LN_S" && LN_S="ln -s"
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767if test -n "${ZSH_VERSION+set}" ; then
8768 setopt NO_GLOB_SUBST
8769fi
8770
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8772$as_echo_n "checking for objdir... " >&6; }
22e05272 8773if ${lt_cv_objdir+:} false; then :
0a35513e
AH
8774 $as_echo_n "(cached) " >&6
8775else
8776 rm -f .libs 2>/dev/null
8777mkdir .libs 2>/dev/null
8778if test -d .libs; then
8779 lt_cv_objdir=.libs
8780else
8781 # MS-DOS does not allow filenames that begin with a dot.
8782 lt_cv_objdir=_libs
8783fi
8784rmdir .libs 2>/dev/null
8785fi
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8787$as_echo "$lt_cv_objdir" >&6; }
8788objdir=$lt_cv_objdir
8789
8790
8791
8792
8793
8794cat >>confdefs.h <<_ACEOF
8795#define LT_OBJDIR "$lt_cv_objdir/"
8796_ACEOF
8797
8798
8799
8800
8801case $host_os in
8802aix3*)
8803 # AIX sometimes has problems with the GCC collect2 program. For some
8804 # reason, if we set the COLLECT_NAMES environment variable, the problems
8805 # vanish in a puff of smoke.
8806 if test "X${COLLECT_NAMES+set}" != Xset; then
8807 COLLECT_NAMES=
8808 export COLLECT_NAMES
8809 fi
8810 ;;
8811esac
8812
8813# Global variables:
8814ofile=libtool
8815can_build_shared=yes
8816
8817# All known linkers require a `.a' archive for static linking (except MSVC,
8818# which needs '.lib').
8819libext=a
8820
8821with_gnu_ld="$lt_cv_prog_gnu_ld"
8822
8823old_CC="$CC"
8824old_CFLAGS="$CFLAGS"
8825
8826# Set sane defaults for various variables
8827test -z "$CC" && CC=cc
8828test -z "$LTCC" && LTCC=$CC
8829test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8830test -z "$LD" && LD=ld
8831test -z "$ac_objext" && ac_objext=o
8832
8833for cc_temp in $compiler""; do
8834 case $cc_temp in
8835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8837 \-*) ;;
8838 *) break;;
8839 esac
8840done
8841cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8842
8843
8844# Only perform the check for file, if the check method requires it
8845test -z "$MAGIC_CMD" && MAGIC_CMD=file
8846case $deplibs_check_method in
8847file_magic*)
8848 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8850$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8851if ${lt_cv_path_MAGIC_CMD+:} false; then :
0a35513e
AH
8852 $as_echo_n "(cached) " >&6
8853else
8854 case $MAGIC_CMD in
8855[\\/*] | ?:[\\/]*)
8856 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8857 ;;
8858*)
8859 lt_save_MAGIC_CMD="$MAGIC_CMD"
8860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8861 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8862 for ac_dir in $ac_dummy; do
8863 IFS="$lt_save_ifs"
8864 test -z "$ac_dir" && ac_dir=.
8865 if test -f $ac_dir/${ac_tool_prefix}file; then
8866 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8867 if test -n "$file_magic_test_file"; then
8868 case $deplibs_check_method in
8869 "file_magic "*)
8870 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8872 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8873 $EGREP "$file_magic_regex" > /dev/null; then
8874 :
8875 else
8876 cat <<_LT_EOF 1>&2
8877
8878*** Warning: the command libtool uses to detect shared libraries,
8879*** $file_magic_cmd, produces output that libtool cannot recognize.
8880*** The result is that libtool may fail to recognize shared libraries
8881*** as such. This will affect the creation of libtool libraries that
8882*** depend on shared libraries, but programs linked with such libtool
8883*** libraries will work regardless of this problem. Nevertheless, you
8884*** may want to report the problem to your system manager and/or to
8885*** bug-libtool@gnu.org
8886
8887_LT_EOF
8888 fi ;;
8889 esac
8890 fi
8891 break
8892 fi
8893 done
8894 IFS="$lt_save_ifs"
8895 MAGIC_CMD="$lt_save_MAGIC_CMD"
8896 ;;
8897esac
8898fi
8899
8900MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8901if test -n "$MAGIC_CMD"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8903$as_echo "$MAGIC_CMD" >&6; }
8904else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
8907fi
8908
8909
8910
8911
8912
8913if test -z "$lt_cv_path_MAGIC_CMD"; then
8914 if test -n "$ac_tool_prefix"; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8916$as_echo_n "checking for file... " >&6; }
22e05272 8917if ${lt_cv_path_MAGIC_CMD+:} false; then :
0a35513e
AH
8918 $as_echo_n "(cached) " >&6
8919else
8920 case $MAGIC_CMD in
8921[\\/*] | ?:[\\/]*)
8922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8923 ;;
8924*)
8925 lt_save_MAGIC_CMD="$MAGIC_CMD"
8926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8928 for ac_dir in $ac_dummy; do
8929 IFS="$lt_save_ifs"
8930 test -z "$ac_dir" && ac_dir=.
8931 if test -f $ac_dir/file; then
8932 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8933 if test -n "$file_magic_test_file"; then
8934 case $deplibs_check_method in
8935 "file_magic "*)
8936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8939 $EGREP "$file_magic_regex" > /dev/null; then
8940 :
8941 else
8942 cat <<_LT_EOF 1>&2
8943
8944*** Warning: the command libtool uses to detect shared libraries,
8945*** $file_magic_cmd, produces output that libtool cannot recognize.
8946*** The result is that libtool may fail to recognize shared libraries
8947*** as such. This will affect the creation of libtool libraries that
8948*** depend on shared libraries, but programs linked with such libtool
8949*** libraries will work regardless of this problem. Nevertheless, you
8950*** may want to report the problem to your system manager and/or to
8951*** bug-libtool@gnu.org
8952
8953_LT_EOF
8954 fi ;;
8955 esac
8956 fi
8957 break
8958 fi
8959 done
8960 IFS="$lt_save_ifs"
8961 MAGIC_CMD="$lt_save_MAGIC_CMD"
8962 ;;
8963esac
8964fi
8965
8966MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8967if test -n "$MAGIC_CMD"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8969$as_echo "$MAGIC_CMD" >&6; }
8970else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
8973fi
8974
8975
8976 else
8977 MAGIC_CMD=:
8978 fi
8979fi
8980
8981 fi
8982 ;;
8983esac
8984
8985# Use C for the default configuration in the libtool script
8986
8987lt_save_CC="$CC"
8988ac_ext=c
8989ac_cpp='$CPP $CPPFLAGS'
8990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8992ac_compiler_gnu=$ac_cv_c_compiler_gnu
8993
8994
8995# Source file extension for C test sources.
8996ac_ext=c
8997
8998# Object file extension for compiled C test sources.
8999objext=o
9000objext=$objext
9001
9002# Code to be used in simple compile tests
9003lt_simple_compile_test_code="int some_variable = 0;"
9004
9005# Code to be used in simple link tests
9006lt_simple_link_test_code='int main(){return(0);}'
9007
9008
9009
9010
9011
9012
9013
9014# If no C compiler was specified, use CC.
9015LTCC=${LTCC-"$CC"}
9016
9017# If no C compiler flags were specified, use CFLAGS.
9018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9019
9020# Allow CC to be a program name with arguments.
9021compiler=$CC
9022
9023# Save the default compiler, since it gets overwritten when the other
9024# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9025compiler_DEFAULT=$CC
9026
9027# save warnings/boilerplate of simple test code
9028ac_outfile=conftest.$ac_objext
9029echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9030eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9031_lt_compiler_boilerplate=`cat conftest.err`
9032$RM conftest*
9033
9034ac_outfile=conftest.$ac_objext
9035echo "$lt_simple_link_test_code" >conftest.$ac_ext
9036eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9037_lt_linker_boilerplate=`cat conftest.err`
9038$RM -r conftest*
9039
9040
9041## CAVEAT EMPTOR:
9042## There is no encapsulation within the following macros, do not change
9043## the running order or otherwise move them around unless you know exactly
9044## what you are doing...
9045if test -n "$compiler"; then
9046
9047lt_prog_compiler_no_builtin_flag=
9048
9049if test "$GCC" = yes; then
9050 case $cc_basename in
9051 nvcc*)
9052 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9053 *)
9054 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9055 esac
9056
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9058$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9059if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
0a35513e
AH
9060 $as_echo_n "(cached) " >&6
9061else
9062 lt_cv_prog_compiler_rtti_exceptions=no
9063 ac_outfile=conftest.$ac_objext
9064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065 lt_compiler_flag="-fno-rtti -fno-exceptions"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 # The option is referenced via a variable to avoid confusing sed.
9071 lt_compile=`echo "$ac_compile" | $SED \
9072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9074 -e 's:$: $lt_compiler_flag:'`
9075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9076 (eval "$lt_compile" 2>conftest.err)
9077 ac_status=$?
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 if (exit $ac_status) && test -s "$ac_outfile"; then
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings other than the usual output.
9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler_rtti_exceptions=yes
9087 fi
9088 fi
9089 $RM conftest*
9090
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9093$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9094
9095if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9096 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9097else
9098 :
9099fi
9100
9101fi
9102
9103
9104
9105
9106
9107
9108 lt_prog_compiler_wl=
9109lt_prog_compiler_pic=
9110lt_prog_compiler_static=
9111
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9113$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9114
9115 if test "$GCC" = yes; then
9116 lt_prog_compiler_wl='-Wl,'
9117 lt_prog_compiler_static='-static'
9118
9119 case $host_os in
9120 aix*)
9121 # All AIX code is PIC.
9122 if test "$host_cpu" = ia64; then
9123 # AIX 5 now supports IA64 processor
9124 lt_prog_compiler_static='-Bstatic'
9125 fi
690c45b8 9126 lt_prog_compiler_pic='-fPIC'
0a35513e
AH
9127 ;;
9128
9129 amigaos*)
9130 case $host_cpu in
9131 powerpc)
9132 # see comment about AmigaOS4 .so support
9133 lt_prog_compiler_pic='-fPIC'
9134 ;;
9135 m68k)
9136 # FIXME: we need at least 68020 code to build shared libraries, but
9137 # adding the `-m68020' flag to GCC prevents building anything better,
9138 # like `-m68040'.
9139 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9140 ;;
9141 esac
9142 ;;
9143
9144 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9145 # PIC is the default for these OSes.
9146 ;;
9147
9148 mingw* | cygwin* | pw32* | os2* | cegcc*)
9149 # This hack is so that the source file can tell whether it is being
9150 # built for inclusion in a dll (and should export symbols for example).
9151 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9152 # (--disable-auto-import) libraries
9153 lt_prog_compiler_pic='-DDLL_EXPORT'
9154 ;;
9155
9156 darwin* | rhapsody*)
9157 # PIC is the default on this platform
9158 # Common symbols not allowed in MH_DYLIB files
9159 lt_prog_compiler_pic='-fno-common'
9160 ;;
9161
9162 haiku*)
9163 # PIC is the default for Haiku.
9164 # The "-static" flag exists, but is broken.
9165 lt_prog_compiler_static=
9166 ;;
9167
9168 hpux*)
9169 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9170 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9171 # sets the default TLS model and affects inlining.
9172 case $host_cpu in
9173 hppa*64*)
9174 # +Z the default
9175 ;;
9176 *)
9177 lt_prog_compiler_pic='-fPIC'
9178 ;;
9179 esac
9180 ;;
9181
9182 interix[3-9]*)
9183 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9184 # Instead, we relocate shared libraries at runtime.
9185 ;;
9186
9187 msdosdjgpp*)
9188 # Just because we use GCC doesn't mean we suddenly get shared libraries
9189 # on systems that don't support them.
9190 lt_prog_compiler_can_build_shared=no
9191 enable_shared=no
9192 ;;
9193
9194 *nto* | *qnx*)
9195 # QNX uses GNU C++, but need to define -shared option too, otherwise
9196 # it will coredump.
9197 lt_prog_compiler_pic='-fPIC -shared'
9198 ;;
9199
9200 sysv4*MP*)
9201 if test -d /usr/nec; then
9202 lt_prog_compiler_pic=-Kconform_pic
9203 fi
9204 ;;
9205
9206 *)
9207 lt_prog_compiler_pic='-fPIC'
9208 ;;
9209 esac
9210
9211 case $cc_basename in
9212 nvcc*) # Cuda Compiler Driver 2.2
9213 lt_prog_compiler_wl='-Xlinker '
9214 lt_prog_compiler_pic='-Xcompiler -fPIC'
9215 ;;
9216 esac
9217 else
9218 # PORTME Check for flag to pass linker flags through the system compiler.
9219 case $host_os in
9220 aix*)
9221 lt_prog_compiler_wl='-Wl,'
9222 if test "$host_cpu" = ia64; then
9223 # AIX 5 now supports IA64 processor
9224 lt_prog_compiler_static='-Bstatic'
9225 else
9226 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9227 fi
9228 ;;
9229
9230 mingw* | cygwin* | pw32* | os2* | cegcc*)
9231 # This hack is so that the source file can tell whether it is being
9232 # built for inclusion in a dll (and should export symbols for example).
9233 lt_prog_compiler_pic='-DDLL_EXPORT'
9234 ;;
9235
9236 hpux9* | hpux10* | hpux11*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9239 # not for PA HP-UX.
9240 case $host_cpu in
9241 hppa*64*|ia64*)
9242 # +Z the default
9243 ;;
9244 *)
9245 lt_prog_compiler_pic='+Z'
9246 ;;
9247 esac
9248 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9249 lt_prog_compiler_static='${wl}-a ${wl}archive'
9250 ;;
9251
9252 irix5* | irix6* | nonstopux*)
9253 lt_prog_compiler_wl='-Wl,'
9254 # PIC (with -KPIC) is the default.
9255 lt_prog_compiler_static='-non_shared'
9256 ;;
9257
9258 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9259 case $cc_basename in
9260 # old Intel for x86_64 which still supported -KPIC.
9261 ecc*)
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_pic='-KPIC'
9264 lt_prog_compiler_static='-static'
9265 ;;
9266 # icc used to be incompatible with GCC.
9267 # ICC 10 doesn't accept -KPIC any more.
9268 icc* | ifort*)
9269 lt_prog_compiler_wl='-Wl,'
9270 lt_prog_compiler_pic='-fPIC'
9271 lt_prog_compiler_static='-static'
9272 ;;
9273 # Lahey Fortran 8.1.
9274 lf95*)
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='--shared'
9277 lt_prog_compiler_static='--static'
9278 ;;
9279 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9280 # Portland Group compilers (*not* the Pentium gcc compiler,
9281 # which looks to be a dead project)
9282 lt_prog_compiler_wl='-Wl,'
9283 lt_prog_compiler_pic='-fpic'
9284 lt_prog_compiler_static='-Bstatic'
9285 ;;
9286 ccc*)
9287 lt_prog_compiler_wl='-Wl,'
9288 # All Alpha code is PIC.
9289 lt_prog_compiler_static='-non_shared'
9290 ;;
9291 xl* | bgxl* | bgf* | mpixl*)
9292 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9293 lt_prog_compiler_wl='-Wl,'
9294 lt_prog_compiler_pic='-qpic'
9295 lt_prog_compiler_static='-qstaticlink'
9296 ;;
9297 *)
9298 case `$CC -V 2>&1 | sed 5q` in
9299 *Sun\ F* | *Sun*Fortran*)
9300 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9301 lt_prog_compiler_pic='-KPIC'
9302 lt_prog_compiler_static='-Bstatic'
9303 lt_prog_compiler_wl=''
9304 ;;
9305 *Sun\ C*)
9306 # Sun C 5.9
9307 lt_prog_compiler_pic='-KPIC'
9308 lt_prog_compiler_static='-Bstatic'
9309 lt_prog_compiler_wl='-Wl,'
9310 ;;
9311 esac
9312 ;;
9313 esac
9314 ;;
9315
9316 newsos6)
9317 lt_prog_compiler_pic='-KPIC'
9318 lt_prog_compiler_static='-Bstatic'
9319 ;;
9320
9321 *nto* | *qnx*)
9322 # QNX uses GNU C++, but need to define -shared option too, otherwise
9323 # it will coredump.
9324 lt_prog_compiler_pic='-fPIC -shared'
9325 ;;
9326
9327 osf3* | osf4* | osf5*)
9328 lt_prog_compiler_wl='-Wl,'
9329 # All OSF/1 code is PIC.
9330 lt_prog_compiler_static='-non_shared'
9331 ;;
9332
9333 rdos*)
9334 lt_prog_compiler_static='-non_shared'
9335 ;;
9336
9337 solaris*)
9338 lt_prog_compiler_pic='-KPIC'
9339 lt_prog_compiler_static='-Bstatic'
9340 case $cc_basename in
9341 f77* | f90* | f95*)
9342 lt_prog_compiler_wl='-Qoption ld ';;
9343 *)
9344 lt_prog_compiler_wl='-Wl,';;
9345 esac
9346 ;;
9347
9348 sunos4*)
9349 lt_prog_compiler_wl='-Qoption ld '
9350 lt_prog_compiler_pic='-PIC'
9351 lt_prog_compiler_static='-Bstatic'
9352 ;;
9353
9354 sysv4 | sysv4.2uw2* | sysv4.3*)
9355 lt_prog_compiler_wl='-Wl,'
9356 lt_prog_compiler_pic='-KPIC'
9357 lt_prog_compiler_static='-Bstatic'
9358 ;;
9359
9360 sysv4*MP*)
9361 if test -d /usr/nec ;then
9362 lt_prog_compiler_pic='-Kconform_pic'
9363 lt_prog_compiler_static='-Bstatic'
9364 fi
9365 ;;
9366
9367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9368 lt_prog_compiler_wl='-Wl,'
9369 lt_prog_compiler_pic='-KPIC'
9370 lt_prog_compiler_static='-Bstatic'
9371 ;;
9372
9373 unicos*)
9374 lt_prog_compiler_wl='-Wl,'
9375 lt_prog_compiler_can_build_shared=no
9376 ;;
9377
9378 uts4*)
9379 lt_prog_compiler_pic='-pic'
9380 lt_prog_compiler_static='-Bstatic'
9381 ;;
9382
9383 *)
9384 lt_prog_compiler_can_build_shared=no
9385 ;;
9386 esac
9387 fi
9388
9389case $host_os in
9390 # For platforms which do not support PIC, -DPIC is meaningless:
9391 *djgpp*)
9392 lt_prog_compiler_pic=
9393 ;;
9394 *)
9395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9396 ;;
9397esac
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9399$as_echo "$lt_prog_compiler_pic" >&6; }
9400
9401
9402
9403
9404
9405
9406#
9407# Check to make sure the PIC flag actually works.
9408#
9409if test -n "$lt_prog_compiler_pic"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9411$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 9412if ${lt_cv_prog_compiler_pic_works+:} false; then :
0a35513e
AH
9413 $as_echo_n "(cached) " >&6
9414else
9415 lt_cv_prog_compiler_pic_works=no
9416 ac_outfile=conftest.$ac_objext
9417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9419 # Insert the option either (1) after the last *FLAGS variable, or
9420 # (2) before a word containing "conftest.", or (3) at the end.
9421 # Note that $ac_compile itself does not contain backslashes and begins
9422 # with a dollar sign (not a hyphen), so the echo should work correctly.
9423 # The option is referenced via a variable to avoid confusing sed.
9424 lt_compile=`echo "$ac_compile" | $SED \
9425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9427 -e 's:$: $lt_compiler_flag:'`
9428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9429 (eval "$lt_compile" 2>conftest.err)
9430 ac_status=$?
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 if (exit $ac_status) && test -s "$ac_outfile"; then
9434 # The compiler can only warn and ignore the option if not recognized
9435 # So say no if there are warnings other than the usual output.
9436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9439 lt_cv_prog_compiler_pic_works=yes
9440 fi
9441 fi
9442 $RM conftest*
9443
9444fi
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9446$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9447
9448if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9449 case $lt_prog_compiler_pic in
9450 "" | " "*) ;;
9451 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9452 esac
9453else
9454 lt_prog_compiler_pic=
9455 lt_prog_compiler_can_build_shared=no
9456fi
9457
9458fi
9459
9460
9461
9462
9463
9464
9465#
9466# Check to make sure the static flag actually works.
9467#
9468wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9470$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9471if ${lt_cv_prog_compiler_static_works+:} false; then :
0a35513e
AH
9472 $as_echo_n "(cached) " >&6
9473else
9474 lt_cv_prog_compiler_static_works=no
9475 save_LDFLAGS="$LDFLAGS"
9476 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9477 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9478 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9479 # The linker can only warn and ignore the option if not recognized
9480 # So say no if there are warnings
9481 if test -s conftest.err; then
9482 # Append any errors to the config.log.
9483 cat conftest.err 1>&5
9484 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9486 if diff conftest.exp conftest.er2 >/dev/null; then
9487 lt_cv_prog_compiler_static_works=yes
9488 fi
9489 else
9490 lt_cv_prog_compiler_static_works=yes
9491 fi
9492 fi
9493 $RM -r conftest*
9494 LDFLAGS="$save_LDFLAGS"
9495
9496fi
9497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9498$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9499
9500if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9501 :
9502else
9503 lt_prog_compiler_static=
9504fi
9505
9506
9507
9508
9509
9510
9511
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9513$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9514if ${lt_cv_prog_compiler_c_o+:} false; then :
0a35513e
AH
9515 $as_echo_n "(cached) " >&6
9516else
9517 lt_cv_prog_compiler_c_o=no
9518 $RM -r conftest 2>/dev/null
9519 mkdir conftest
9520 cd conftest
9521 mkdir out
9522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9523
9524 lt_compiler_flag="-o out/conftest2.$ac_objext"
9525 # Insert the option either (1) after the last *FLAGS variable, or
9526 # (2) before a word containing "conftest.", or (3) at the end.
9527 # Note that $ac_compile itself does not contain backslashes and begins
9528 # with a dollar sign (not a hyphen), so the echo should work correctly.
9529 lt_compile=`echo "$ac_compile" | $SED \
9530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9532 -e 's:$: $lt_compiler_flag:'`
9533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9534 (eval "$lt_compile" 2>out/conftest.err)
9535 ac_status=$?
9536 cat out/conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9539 then
9540 # The compiler can only warn and ignore the option if not recognized
9541 # So say no if there are warnings
9542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9545 lt_cv_prog_compiler_c_o=yes
9546 fi
9547 fi
9548 chmod u+w . 2>&5
9549 $RM conftest*
9550 # SGI C++ compiler will create directory out/ii_files/ for
9551 # template instantiation
9552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9553 $RM out/* && rmdir out
9554 cd ..
9555 $RM -r conftest
9556 $RM conftest*
9557
9558fi
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9560$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9561
9562
9563
9564
9565
9566
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9568$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9569if ${lt_cv_prog_compiler_c_o+:} false; then :
0a35513e
AH
9570 $as_echo_n "(cached) " >&6
9571else
9572 lt_cv_prog_compiler_c_o=no
9573 $RM -r conftest 2>/dev/null
9574 mkdir conftest
9575 cd conftest
9576 mkdir out
9577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9578
9579 lt_compiler_flag="-o out/conftest2.$ac_objext"
9580 # Insert the option either (1) after the last *FLAGS variable, or
9581 # (2) before a word containing "conftest.", or (3) at the end.
9582 # Note that $ac_compile itself does not contain backslashes and begins
9583 # with a dollar sign (not a hyphen), so the echo should work correctly.
9584 lt_compile=`echo "$ac_compile" | $SED \
9585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9587 -e 's:$: $lt_compiler_flag:'`
9588 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9589 (eval "$lt_compile" 2>out/conftest.err)
9590 ac_status=$?
9591 cat out/conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9594 then
9595 # The compiler can only warn and ignore the option if not recognized
9596 # So say no if there are warnings
9597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9598 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9599 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9600 lt_cv_prog_compiler_c_o=yes
9601 fi
9602 fi
9603 chmod u+w . 2>&5
9604 $RM conftest*
9605 # SGI C++ compiler will create directory out/ii_files/ for
9606 # template instantiation
9607 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9608 $RM out/* && rmdir out
9609 cd ..
9610 $RM -r conftest
9611 $RM conftest*
9612
9613fi
9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9615$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9616
9617
9618
9619
9620hard_links="nottested"
9621if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9622 # do not overwrite the value of need_locks provided by the user
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9624$as_echo_n "checking if we can lock with hard links... " >&6; }
9625 hard_links=yes
9626 $RM conftest*
9627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9628 touch conftest.a
9629 ln conftest.a conftest.b 2>&5 || hard_links=no
9630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9632$as_echo "$hard_links" >&6; }
9633 if test "$hard_links" = no; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9635$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9636 need_locks=warn
9637 fi
9638else
9639 need_locks=no
9640fi
9641
9642
9643
9644
9645
9646
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9648$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9649
9650 runpath_var=
9651 allow_undefined_flag=
9652 always_export_symbols=no
9653 archive_cmds=
9654 archive_expsym_cmds=
9655 compiler_needs_object=no
9656 enable_shared_with_static_runtimes=no
9657 export_dynamic_flag_spec=
9658 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9659 hardcode_automatic=no
9660 hardcode_direct=no
9661 hardcode_direct_absolute=no
9662 hardcode_libdir_flag_spec=
9663 hardcode_libdir_flag_spec_ld=
9664 hardcode_libdir_separator=
9665 hardcode_minus_L=no
9666 hardcode_shlibpath_var=unsupported
9667 inherit_rpath=no
9668 link_all_deplibs=unknown
9669 module_cmds=
9670 module_expsym_cmds=
9671 old_archive_from_new_cmds=
9672 old_archive_from_expsyms_cmds=
9673 thread_safe_flag_spec=
9674 whole_archive_flag_spec=
9675 # include_expsyms should be a list of space-separated symbols to be *always*
9676 # included in the symbol list
9677 include_expsyms=
9678 # exclude_expsyms can be an extended regexp of symbols to exclude
9679 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9680 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9681 # as well as any symbol that contains `d'.
9682 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9683 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9684 # platforms (ab)use it in PIC code, but their linkers get confused if
9685 # the symbol is explicitly referenced. Since portable code cannot
9686 # rely on this symbol name, it's probably fine to never include it in
9687 # preloaded symbol tables.
9688 # Exclude shared library initialization/finalization symbols.
9689 extract_expsyms_cmds=
9690
9691 case $host_os in
9692 cygwin* | mingw* | pw32* | cegcc*)
9693 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9694 # When not using gcc, we currently assume that we are using
9695 # Microsoft Visual C++.
9696 if test "$GCC" != yes; then
9697 with_gnu_ld=no
9698 fi
9699 ;;
9700 interix*)
9701 # we just hope/assume this is gcc and not c89 (= MSVC++)
9702 with_gnu_ld=yes
9703 ;;
9704 openbsd*)
9705 with_gnu_ld=no
9706 ;;
9707 esac
9708
9709 ld_shlibs=yes
9710
9711 # On some targets, GNU ld is compatible enough with the native linker
9712 # that we're better off using the native interface for both.
9713 lt_use_gnu_ld_interface=no
9714 if test "$with_gnu_ld" = yes; then
9715 case $host_os in
9716 aix*)
9717 # The AIX port of GNU ld has always aspired to compatibility
9718 # with the native linker. However, as the warning in the GNU ld
9719 # block says, versions before 2.19.5* couldn't really create working
9720 # shared libraries, regardless of the interface used.
9721 case `$LD -v 2>&1` in
9722 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9723 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9724 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9725 *)
9726 lt_use_gnu_ld_interface=yes
9727 ;;
9728 esac
9729 ;;
9730 *)
9731 lt_use_gnu_ld_interface=yes
9732 ;;
9733 esac
9734 fi
9735
9736 if test "$lt_use_gnu_ld_interface" = yes; then
9737 # If archive_cmds runs LD, not CC, wlarc should be empty
9738 wlarc='${wl}'
9739
9740 # Set some defaults for GNU ld with shared library support. These
9741 # are reset later if shared libraries are not supported. Putting them
9742 # here allows them to be overridden if necessary.
9743 runpath_var=LD_RUN_PATH
9744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9745 export_dynamic_flag_spec='${wl}--export-dynamic'
9746 # ancient GNU ld didn't support --whole-archive et. al.
9747 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9748 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9749 else
9750 whole_archive_flag_spec=
9751 fi
9752 supports_anon_versioning=no
9753 case `$LD -v 2>&1` in
9754 *GNU\ gold*) supports_anon_versioning=yes ;;
9755 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9756 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9757 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9758 *\ 2.11.*) ;; # other 2.11 versions
9759 *) supports_anon_versioning=yes ;;
9760 esac
9761
9762 # See if GNU ld supports shared libraries.
9763 case $host_os in
9764 aix[3-9]*)
9765 # On AIX/PPC, the GNU linker is very broken
9766 if test "$host_cpu" != ia64; then
9767 ld_shlibs=no
9768 cat <<_LT_EOF 1>&2
9769
9770*** Warning: the GNU linker, at least up to release 2.19, is reported
9771*** to be unable to reliably create shared libraries on AIX.
9772*** Therefore, libtool is disabling shared libraries support. If you
9773*** really care for shared libraries, you may want to install binutils
9774*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9775*** You will then need to restart the configuration process.
9776
9777_LT_EOF
9778 fi
9779 ;;
9780
9781 amigaos*)
9782 case $host_cpu in
9783 powerpc)
9784 # see comment about AmigaOS4 .so support
9785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9786 archive_expsym_cmds=''
9787 ;;
9788 m68k)
9789 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)'
9790 hardcode_libdir_flag_spec='-L$libdir'
9791 hardcode_minus_L=yes
9792 ;;
9793 esac
9794 ;;
9795
9796 beos*)
9797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9798 allow_undefined_flag=unsupported
9799 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9800 # support --undefined. This deserves some investigation. FIXME
9801 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 else
9803 ld_shlibs=no
9804 fi
9805 ;;
9806
9807 cygwin* | mingw* | pw32* | cegcc*)
9808 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9809 # as there is no search path for DLLs.
9810 hardcode_libdir_flag_spec='-L$libdir'
9811 export_dynamic_flag_spec='${wl}--export-all-symbols'
9812 allow_undefined_flag=unsupported
9813 always_export_symbols=no
9814 enable_shared_with_static_runtimes=yes
9815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9816
9817 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9819 # If the export-symbols file already is a .def file (1st line
9820 # is EXPORTS), use it as is; otherwise, prepend...
9821 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9822 cp $export_symbols $output_objdir/$soname.def;
9823 else
9824 echo EXPORTS > $output_objdir/$soname.def;
9825 cat $export_symbols >> $output_objdir/$soname.def;
9826 fi~
9827 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9828 else
9829 ld_shlibs=no
9830 fi
9831 ;;
9832
9833 haiku*)
9834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9835 link_all_deplibs=yes
9836 ;;
9837
9838 interix[3-9]*)
9839 hardcode_direct=no
9840 hardcode_shlibpath_var=no
9841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9842 export_dynamic_flag_spec='${wl}-E'
9843 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9844 # Instead, shared libraries are loaded at an image base (0x10000000 by
9845 # default) and relocated if they conflict, which is a slow very memory
9846 # consuming and fragmenting process. To avoid this, we pick a random,
9847 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9848 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9849 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9850 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'
9851 ;;
9852
b1e21e5a 9853 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
0a35513e
AH
9854 tmp_diet=no
9855 if test "$host_os" = linux-dietlibc; then
9856 case $cc_basename in
9857 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9858 esac
9859 fi
9860 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9861 && test "$tmp_diet" = no
9862 then
a699d672 9863 tmp_addflag=' $pic_flag'
0a35513e
AH
9864 tmp_sharedflag='-shared'
9865 case $cc_basename,$host_cpu in
9866 pgcc*) # Portland Group C compiler
9867 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'
9868 tmp_addflag=' $pic_flag'
9869 ;;
9870 pgf77* | pgf90* | pgf95* | pgfortran*)
9871 # Portland Group f77 and f90 compilers
9872 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'
9873 tmp_addflag=' $pic_flag -Mnomain' ;;
9874 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9875 tmp_addflag=' -i_dynamic' ;;
9876 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9877 tmp_addflag=' -i_dynamic -nofor_main' ;;
9878 ifc* | ifort*) # Intel Fortran compiler
9879 tmp_addflag=' -nofor_main' ;;
9880 lf95*) # Lahey Fortran 8.1
9881 whole_archive_flag_spec=
9882 tmp_sharedflag='--shared' ;;
9883 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9884 tmp_sharedflag='-qmkshrobj'
9885 tmp_addflag= ;;
9886 nvcc*) # Cuda Compiler Driver 2.2
9887 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'
9888 compiler_needs_object=yes
9889 ;;
9890 esac
9891 case `$CC -V 2>&1 | sed 5q` in
9892 *Sun\ C*) # Sun C 5.9
9893 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'
9894 compiler_needs_object=yes
9895 tmp_sharedflag='-G' ;;
9896 *Sun\ F*) # Sun Fortran 8.3
9897 tmp_sharedflag='-G' ;;
9898 esac
9899 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9900
9901 if test "x$supports_anon_versioning" = xyes; then
9902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9904 echo "local: *; };" >> $output_objdir/$libname.ver~
9905 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9906 fi
9907
9908 case $cc_basename in
9909 xlf* | bgf* | bgxlf* | mpixlf*)
9910 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9911 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9912 hardcode_libdir_flag_spec=
9913 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9914 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9915 if test "x$supports_anon_versioning" = xyes; then
9916 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9918 echo "local: *; };" >> $output_objdir/$libname.ver~
9919 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9920 fi
9921 ;;
9922 esac
9923 else
9924 ld_shlibs=no
9925 fi
9926 ;;
9927
9928 netbsd*)
9929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9930 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9931 wlarc=
9932 else
9933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9935 fi
9936 ;;
9937
9938 solaris*)
9939 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9940 ld_shlibs=no
9941 cat <<_LT_EOF 1>&2
9942
9943*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9944*** create shared libraries on Solaris systems. Therefore, libtool
9945*** is disabling shared libraries support. We urge you to upgrade GNU
9946*** binutils to release 2.9.1 or newer. Another option is to modify
9947*** your PATH or compiler configuration so that the native linker is
9948*** used, and then restart.
9949
9950_LT_EOF
9951 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9954 else
9955 ld_shlibs=no
9956 fi
9957 ;;
9958
9959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9960 case `$LD -v 2>&1` in
9961 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9962 ld_shlibs=no
9963 cat <<_LT_EOF 1>&2
9964
9965*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9966*** reliably create shared libraries on SCO systems. Therefore, libtool
9967*** is disabling shared libraries support. We urge you to upgrade GNU
9968*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9969*** your PATH or compiler configuration so that the native linker is
9970*** used, and then restart.
9971
9972_LT_EOF
9973 ;;
9974 *)
9975 # For security reasons, it is highly recommended that you always
9976 # use absolute paths for naming shared libraries, and exclude the
9977 # DT_RUNPATH tag from executables and libraries. But doing so
9978 # requires that you compile everything twice, which is a pain.
9979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983 else
9984 ld_shlibs=no
9985 fi
9986 ;;
9987 esac
9988 ;;
9989
9990 sunos4*)
9991 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9992 wlarc=
9993 hardcode_direct=yes
9994 hardcode_shlibpath_var=no
9995 ;;
9996
9997 *)
9998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10001 else
10002 ld_shlibs=no
10003 fi
10004 ;;
10005 esac
10006
10007 if test "$ld_shlibs" = no; then
10008 runpath_var=
10009 hardcode_libdir_flag_spec=
10010 export_dynamic_flag_spec=
10011 whole_archive_flag_spec=
10012 fi
10013 else
10014 # PORTME fill in a description of your system's linker (not GNU ld)
10015 case $host_os in
10016 aix3*)
10017 allow_undefined_flag=unsupported
10018 always_export_symbols=yes
10019 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'
10020 # Note: this linker hardcodes the directories in LIBPATH if there
10021 # are no directories specified by -L.
10022 hardcode_minus_L=yes
10023 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10024 # Neither direct hardcoding nor static linking is supported with a
10025 # broken collect2.
10026 hardcode_direct=unsupported
10027 fi
10028 ;;
10029
10030 aix[4-9]*)
10031 if test "$host_cpu" = ia64; then
10032 # On IA64, the linker does run time linking by default, so we don't
10033 # have to do anything special.
10034 aix_use_runtimelinking=no
10035 exp_sym_flag='-Bexport'
10036 no_entry_flag=""
10037 else
10038 # If we're using GNU nm, then we don't want the "-C" option.
10039 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10040 # Also, AIX nm treats weak defined symbols like other global
10041 # defined symbols, whereas GNU nm marks them as "W".
10042 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10043 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'
10044 else
84c1b9d3 10045 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
0a35513e
AH
10046 fi
10047 aix_use_runtimelinking=no
10048
10049 # Test if we are trying to use run time linking or normal
10050 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10051 # need to do runtime linking.
10052 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10053 for ld_flag in $LDFLAGS; do
10054 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10055 aix_use_runtimelinking=yes
10056 break
10057 fi
10058 done
10059 ;;
10060 esac
10061
10062 exp_sym_flag='-bexport'
10063 no_entry_flag='-bnoentry'
10064 fi
10065
10066 # When large executables or shared objects are built, AIX ld can
10067 # have problems creating the table of contents. If linking a library
10068 # or program results in "error TOC overflow" add -mminimal-toc to
10069 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10070 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10071
10072 archive_cmds=''
10073 hardcode_direct=yes
10074 hardcode_direct_absolute=yes
10075 hardcode_libdir_separator=':'
10076 link_all_deplibs=yes
10077 file_list_spec='${wl}-f,'
10078
10079 if test "$GCC" = yes; then
10080 case $host_os in aix4.[012]|aix4.[012].*)
10081 # We only want to do this on AIX 4.2 and lower, the check
10082 # below for broken collect2 doesn't work under 4.3+
10083 collect2name=`${CC} -print-prog-name=collect2`
10084 if test -f "$collect2name" &&
10085 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10086 then
10087 # We have reworked collect2
10088 :
10089 else
10090 # We have old collect2
10091 hardcode_direct=unsupported
10092 # It fails to find uninstalled libraries when the uninstalled
10093 # path is not listed in the libpath. Setting hardcode_minus_L
10094 # to unsupported forces relinking
10095 hardcode_minus_L=yes
10096 hardcode_libdir_flag_spec='-L$libdir'
10097 hardcode_libdir_separator=
10098 fi
10099 ;;
10100 esac
10101 shared_flag='-shared'
10102 if test "$aix_use_runtimelinking" = yes; then
10103 shared_flag="$shared_flag "'${wl}-G'
10104 fi
10105 else
10106 # not using gcc
10107 if test "$host_cpu" = ia64; then
10108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10109 # chokes on -Wl,-G. The following line is correct:
10110 shared_flag='-G'
10111 else
10112 if test "$aix_use_runtimelinking" = yes; then
10113 shared_flag='${wl}-G'
10114 else
10115 shared_flag='${wl}-bM:SRE'
10116 fi
10117 fi
10118 fi
10119
10120 export_dynamic_flag_spec='${wl}-bexpall'
10121 # It seems that -bexpall does not export symbols beginning with
10122 # underscore (_), so it is better to generate a list of symbols to export.
10123 always_export_symbols=yes
10124 if test "$aix_use_runtimelinking" = yes; then
10125 # Warning - without using the other runtime loading flags (-brtl),
10126 # -berok will link without error, but may produce a broken library.
10127 allow_undefined_flag='-berok'
10128 # Determine the default libpath from the value encoded in an
10129 # empty executable.
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131/* end confdefs.h. */
10132
10133int
10134main ()
10135{
10136
10137 ;
10138 return 0;
10139}
10140_ACEOF
10141if ac_fn_c_try_link "$LINENO"; then :
10142
10143lt_aix_libpath_sed='
10144 /Import File Strings/,/^$/ {
10145 /^0/ {
10146 s/^0 *\(.*\)$/\1/
10147 p
10148 }
10149 }'
10150aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10151# Check for a 64-bit object if we didn't find anything.
10152if test -z "$aix_libpath"; then
10153 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10154fi
10155fi
10156rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10159
10160 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10161 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"
10162 else
10163 if test "$host_cpu" = ia64; then
10164 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10165 allow_undefined_flag="-z nodefs"
10166 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"
10167 else
10168 # Determine the default libpath from the value encoded in an
10169 # empty executable.
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171/* end confdefs.h. */
10172
10173int
10174main ()
10175{
10176
10177 ;
10178 return 0;
10179}
10180_ACEOF
10181if ac_fn_c_try_link "$LINENO"; then :
10182
10183lt_aix_libpath_sed='
10184 /Import File Strings/,/^$/ {
10185 /^0/ {
10186 s/^0 *\(.*\)$/\1/
10187 p
10188 }
10189 }'
10190aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10191# Check for a 64-bit object if we didn't find anything.
10192if test -z "$aix_libpath"; then
10193 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10194fi
10195fi
10196rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10199
10200 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10201 # Warning - without using the other run time loading flags,
10202 # -berok will link without error, but may produce a broken library.
10203 no_undefined_flag=' ${wl}-bernotok'
10204 allow_undefined_flag=' ${wl}-berok'
10205 if test "$with_gnu_ld" = yes; then
10206 # We only use this code for GNU lds that support --whole-archive.
10207 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10208 else
10209 # Exported symbols can be pulled into shared objects from archives
10210 whole_archive_flag_spec='$convenience'
10211 fi
10212 archive_cmds_need_lc=yes
10213 # This is similar to how AIX traditionally builds its shared libraries.
10214 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'
10215 fi
10216 fi
10217 ;;
10218
10219 amigaos*)
10220 case $host_cpu in
10221 powerpc)
10222 # see comment about AmigaOS4 .so support
10223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10224 archive_expsym_cmds=''
10225 ;;
10226 m68k)
10227 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)'
10228 hardcode_libdir_flag_spec='-L$libdir'
10229 hardcode_minus_L=yes
10230 ;;
10231 esac
10232 ;;
10233
10234 bsdi[45]*)
10235 export_dynamic_flag_spec=-rdynamic
10236 ;;
10237
10238 cygwin* | mingw* | pw32* | cegcc*)
10239 # When not using gcc, we currently assume that we are using
10240 # Microsoft Visual C++.
10241 # hardcode_libdir_flag_spec is actually meaningless, as there is
10242 # no search path for DLLs.
10243 hardcode_libdir_flag_spec=' '
10244 allow_undefined_flag=unsupported
10245 # Tell ltmain to make .lib files, not .a files.
10246 libext=lib
10247 # Tell ltmain to make .dll files, not .so files.
10248 shrext_cmds=".dll"
10249 # FIXME: Setting linknames here is a bad hack.
10250 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10251 # The linker will automatically build a .lib file if we build a DLL.
10252 old_archive_from_new_cmds='true'
10253 # FIXME: Should let the user specify the lib program.
10254 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10255 fix_srcfile_path='`cygpath -w "$srcfile"`'
10256 enable_shared_with_static_runtimes=yes
10257 ;;
10258
10259 darwin* | rhapsody*)
10260
10261
6a6d3817
IS
10262
10263 # Publish an arg to allow the user to select that Darwin host (and target)
10264 # libraries should be given install-names like @rpath/libfoo.dylib. This
10265 # requires that the user of the library then adds an 'rpath' to the DSO that
10266 # needs access.
10267 # NOTE: there are defaults below, for systems that support rpaths. The person
10268 # configuring can override the defaults for any system version that supports
10269 # them - they are, however, forced off for system versions without support.
10270 # Check whether --enable-darwin-at-rpath was given.
10271if test "${enable_darwin_at_rpath+set}" = set; then :
10272 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10273 # This is not supported before macOS 10.5 / Darwin9.
10274 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10275 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10277$as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10278 enable_darwin_at_rpath=no
10279 ;;
10280 esac
10281 fi
10282else
10283 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10284 # As above, before 10.5 / Darwin9 this does not work.
10285 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10286 enable_darwin_at_rpath=no
10287 ;;
10288
10289 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10290 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10291 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10292 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10294$as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10295 enable_darwin_at_rpath=yes
10296 ;;
10297 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10298 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10299
10300 esac
10301
10302fi
10303
10304
0a35513e
AH
10305 archive_cmds_need_lc=no
10306 hardcode_direct=no
10307 hardcode_automatic=yes
10308 hardcode_shlibpath_var=unsupported
10309 if test "$lt_cv_ld_force_load" = "yes"; then
10310 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\"`'
10311 else
10312 whole_archive_flag_spec=''
10313 fi
10314 link_all_deplibs=yes
10315 allow_undefined_flag="$_lt_dar_allow_undefined"
10316 case $cc_basename in
10317 ifort*) _lt_dar_can_shared=yes ;;
10318 *) _lt_dar_can_shared=$GCC ;;
10319 esac
10320 if test "$_lt_dar_can_shared" = "yes"; then
10321 output_verbose_link_cmd=func_echo_all
6a6d3817
IS
10322 _lt_install_name='\$rpath/\$soname'
10323 if test "x$enable_darwin_at_rpath" = "xyes"; then
10324 _lt_install_name='@rpath/\$soname'
10325 fi
10326 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
0a35513e 10327 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6a6d3817 10328 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
0a35513e
AH
10329 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}"
10330
10331 else
10332 ld_shlibs=no
10333 fi
10334
10335 ;;
10336
10337 dgux*)
10338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_libdir_flag_spec='-L$libdir'
10340 hardcode_shlibpath_var=no
10341 ;;
10342
10343 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10344 # support. Future versions do this automatically, but an explicit c++rt0.o
10345 # does not break anything, and helps significantly (at the cost of a little
10346 # extra space).
10347 freebsd2.2*)
10348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10349 hardcode_libdir_flag_spec='-R$libdir'
10350 hardcode_direct=yes
10351 hardcode_shlibpath_var=no
10352 ;;
10353
10354 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10355 freebsd2.*)
0a35513e
AH
10356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10357 hardcode_direct=yes
10358 hardcode_minus_L=yes
10359 hardcode_shlibpath_var=no
10360 ;;
10361
10362 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10363 freebsd* | dragonfly*)
10364 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10365 hardcode_libdir_flag_spec='-R$libdir'
10366 hardcode_direct=yes
10367 hardcode_shlibpath_var=no
10368 ;;
10369
10370 hpux9*)
10371 if test "$GCC" = yes; then
10372 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'
10373 else
10374 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'
10375 fi
10376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10377 hardcode_libdir_separator=:
10378 hardcode_direct=yes
10379
10380 # hardcode_minus_L: Not really in the search PATH,
10381 # but as the default location of the library.
10382 hardcode_minus_L=yes
10383 export_dynamic_flag_spec='${wl}-E'
10384 ;;
10385
10386 hpux10*)
10387 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10388 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10389 else
10390 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10391 fi
10392 if test "$with_gnu_ld" = no; then
10393 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10394 hardcode_libdir_flag_spec_ld='+b $libdir'
10395 hardcode_libdir_separator=:
10396 hardcode_direct=yes
10397 hardcode_direct_absolute=yes
10398 export_dynamic_flag_spec='${wl}-E'
10399 # hardcode_minus_L: Not really in the search PATH,
10400 # but as the default location of the library.
10401 hardcode_minus_L=yes
10402 fi
10403 ;;
10404
10405 hpux11*)
10406 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10407 case $host_cpu in
10408 hppa*64*)
4e4ba647 10409 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
0a35513e
AH
10410 ;;
10411 ia64*)
10412 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10413 ;;
10414 *)
10415 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10416 ;;
10417 esac
10418 else
10419 case $host_cpu in
10420 hppa*64*)
4e4ba647 10421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
0a35513e
AH
10422 ;;
10423 ia64*)
10424 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10425 ;;
10426 *)
10427
10428 # Older versions of the 11.00 compiler do not understand -b yet
10429 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10431$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 10432if ${lt_cv_prog_compiler__b+:} false; then :
0a35513e
AH
10433 $as_echo_n "(cached) " >&6
10434else
10435 lt_cv_prog_compiler__b=no
10436 save_LDFLAGS="$LDFLAGS"
10437 LDFLAGS="$LDFLAGS -b"
10438 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10439 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10440 # The linker can only warn and ignore the option if not recognized
10441 # So say no if there are warnings
10442 if test -s conftest.err; then
10443 # Append any errors to the config.log.
10444 cat conftest.err 1>&5
10445 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10447 if diff conftest.exp conftest.er2 >/dev/null; then
10448 lt_cv_prog_compiler__b=yes
10449 fi
10450 else
10451 lt_cv_prog_compiler__b=yes
10452 fi
10453 fi
10454 $RM -r conftest*
10455 LDFLAGS="$save_LDFLAGS"
10456
10457fi
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10459$as_echo "$lt_cv_prog_compiler__b" >&6; }
10460
10461if test x"$lt_cv_prog_compiler__b" = xyes; then
10462 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10463else
10464 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10465fi
10466
10467 ;;
10468 esac
10469 fi
10470 if test "$with_gnu_ld" = no; then
10471 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10472 hardcode_libdir_separator=:
10473
10474 case $host_cpu in
10475 hppa*64*|ia64*)
10476 hardcode_direct=no
10477 hardcode_shlibpath_var=no
10478 ;;
10479 *)
10480 hardcode_direct=yes
10481 hardcode_direct_absolute=yes
10482 export_dynamic_flag_spec='${wl}-E'
10483
10484 # hardcode_minus_L: Not really in the search PATH,
10485 # but as the default location of the library.
10486 hardcode_minus_L=yes
10487 ;;
10488 esac
10489 fi
10490 ;;
10491
10492 irix5* | irix6* | nonstopux*)
10493 if test "$GCC" = yes; then
10494 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'
10495 # Try to use the -exported_symbol ld option, if it does not
10496 # work, assume that -exports_file does not work either and
10497 # implicitly export all symbols.
10498 save_LDFLAGS="$LDFLAGS"
10499 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501/* end confdefs.h. */
10502int foo(void) {}
10503_ACEOF
10504if ac_fn_c_try_link "$LINENO"; then :
10505 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'
10506
10507fi
10508rm -f core conftest.err conftest.$ac_objext \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LDFLAGS="$save_LDFLAGS"
10511 else
10512 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'
10513 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'
10514 fi
10515 archive_cmds_need_lc='no'
10516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10517 hardcode_libdir_separator=:
10518 inherit_rpath=yes
10519 link_all_deplibs=yes
10520 ;;
10521
10522 netbsd*)
10523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10525 else
10526 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10527 fi
10528 hardcode_libdir_flag_spec='-R$libdir'
10529 hardcode_direct=yes
10530 hardcode_shlibpath_var=no
10531 ;;
10532
10533 newsos6)
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_direct=yes
10536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10537 hardcode_libdir_separator=:
10538 hardcode_shlibpath_var=no
10539 ;;
10540
10541 *nto* | *qnx*)
10542 ;;
10543
10544 openbsd*)
10545 if test -f /usr/libexec/ld.so; then
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10548 hardcode_direct_absolute=yes
10549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10551 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10553 export_dynamic_flag_spec='${wl}-E'
10554 else
10555 case $host_os in
10556 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10558 hardcode_libdir_flag_spec='-R$libdir'
10559 ;;
10560 *)
10561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10563 ;;
10564 esac
10565 fi
10566 else
10567 ld_shlibs=no
10568 fi
10569 ;;
10570
10571 os2*)
10572 hardcode_libdir_flag_spec='-L$libdir'
10573 hardcode_minus_L=yes
10574 allow_undefined_flag=unsupported
10575 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'
10576 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10577 ;;
10578
10579 osf3*)
10580 if test "$GCC" = yes; then
10581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10582 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'
10583 else
10584 allow_undefined_flag=' -expect_unresolved \*'
10585 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'
10586 fi
10587 archive_cmds_need_lc='no'
10588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10589 hardcode_libdir_separator=:
10590 ;;
10591
10592 osf4* | osf5*) # as osf3* with the addition of -msym flag
10593 if test "$GCC" = yes; then
10594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10595 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'
10596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10597 else
10598 allow_undefined_flag=' -expect_unresolved \*'
10599 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'
10600 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~
10601 $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'
10602
10603 # Both c and cxx compiler support -rpath directly
10604 hardcode_libdir_flag_spec='-rpath $libdir'
10605 fi
10606 archive_cmds_need_lc='no'
10607 hardcode_libdir_separator=:
10608 ;;
10609
10610 solaris*)
10611 no_undefined_flag=' -z defs'
10612 if test "$GCC" = yes; then
10613 wlarc='${wl}'
10614 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10616 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10617 else
10618 case `$CC -V 2>&1` in
10619 *"Compilers 5.0"*)
10620 wlarc=''
10621 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10623 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10624 ;;
10625 *)
10626 wlarc='${wl}'
10627 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10629 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10630 ;;
10631 esac
10632 fi
10633 hardcode_libdir_flag_spec='-R$libdir'
10634 hardcode_shlibpath_var=no
10635 case $host_os in
10636 solaris2.[0-5] | solaris2.[0-5].*) ;;
10637 *)
10638 # The compiler driver will combine and reorder linker options,
10639 # but understands `-z linker_flag'. GCC discards it without `$wl',
10640 # but is careful enough not to reorder.
10641 # Supported since Solaris 2.6 (maybe 2.5.1?)
10642 if test "$GCC" = yes; then
10643 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10644 else
10645 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10646 fi
10647 ;;
10648 esac
10649 link_all_deplibs=yes
10650 ;;
10651
10652 sunos4*)
10653 if test "x$host_vendor" = xsequent; then
10654 # Use $CC to link under sequent, because it throws in some extra .o
10655 # files that make .init and .fini sections work.
10656 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10657 else
10658 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10659 fi
10660 hardcode_libdir_flag_spec='-L$libdir'
10661 hardcode_direct=yes
10662 hardcode_minus_L=yes
10663 hardcode_shlibpath_var=no
10664 ;;
10665
10666 sysv4)
10667 case $host_vendor in
10668 sni)
10669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10670 hardcode_direct=yes # is this really true???
10671 ;;
10672 siemens)
10673 ## LD is ld it makes a PLAMLIB
10674 ## CC just makes a GrossModule.
10675 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10676 reload_cmds='$CC -r -o $output$reload_objs'
10677 hardcode_direct=no
10678 ;;
10679 motorola)
10680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10681 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10682 ;;
10683 esac
10684 runpath_var='LD_RUN_PATH'
10685 hardcode_shlibpath_var=no
10686 ;;
10687
10688 sysv4.3*)
10689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10690 hardcode_shlibpath_var=no
10691 export_dynamic_flag_spec='-Bexport'
10692 ;;
10693
10694 sysv4*MP*)
10695 if test -d /usr/nec; then
10696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10697 hardcode_shlibpath_var=no
10698 runpath_var=LD_RUN_PATH
10699 hardcode_runpath_var=yes
10700 ld_shlibs=yes
10701 fi
10702 ;;
10703
10704 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10705 no_undefined_flag='${wl}-z,text'
10706 archive_cmds_need_lc=no
10707 hardcode_shlibpath_var=no
10708 runpath_var='LD_RUN_PATH'
10709
10710 if test "$GCC" = yes; then
10711 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10713 else
10714 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10716 fi
10717 ;;
10718
10719 sysv5* | sco3.2v5* | sco5v6*)
10720 # Note: We can NOT use -z defs as we might desire, because we do not
10721 # link with -lc, and that would cause any symbols used from libc to
10722 # always be unresolved, which means just about no library would
10723 # ever link correctly. If we're not using GNU ld we use -z text
10724 # though, which does catch some bad symbols but isn't as heavy-handed
10725 # as -z defs.
10726 no_undefined_flag='${wl}-z,text'
10727 allow_undefined_flag='${wl}-z,nodefs'
10728 archive_cmds_need_lc=no
10729 hardcode_shlibpath_var=no
10730 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10731 hardcode_libdir_separator=':'
10732 link_all_deplibs=yes
10733 export_dynamic_flag_spec='${wl}-Bexport'
10734 runpath_var='LD_RUN_PATH'
10735
10736 if test "$GCC" = yes; then
10737 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10739 else
10740 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10742 fi
10743 ;;
10744
10745 uts4*)
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_libdir_flag_spec='-L$libdir'
10748 hardcode_shlibpath_var=no
10749 ;;
10750
10751 *)
10752 ld_shlibs=no
10753 ;;
10754 esac
10755
10756 if test x$host_vendor = xsni; then
10757 case $host in
10758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10759 export_dynamic_flag_spec='${wl}-Blargedynsym'
10760 ;;
10761 esac
10762 fi
10763 fi
10764
10765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10766$as_echo "$ld_shlibs" >&6; }
10767test "$ld_shlibs" = no && can_build_shared=no
10768
10769with_gnu_ld=$with_gnu_ld
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785#
10786# Do we need to explicitly link libc?
10787#
10788case "x$archive_cmds_need_lc" in
10789x|xyes)
10790 # Assume -lc should be added
10791 archive_cmds_need_lc=yes
10792
10793 if test "$enable_shared" = yes && test "$GCC" = yes; then
10794 case $archive_cmds in
10795 *'~'*)
10796 # FIXME: we may have to deal with multi-command sequences.
10797 ;;
10798 '$CC '*)
10799 # Test whether the compiler implicitly links with -lc since on some
10800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10801 # to ld, don't add -lc before -lgcc.
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10803$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10804if ${lt_cv_archive_cmds_need_lc+:} false; then :
0a35513e
AH
10805 $as_echo_n "(cached) " >&6
10806else
10807 $RM conftest*
10808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10809
10810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10811 (eval $ac_compile) 2>&5
10812 ac_status=$?
10813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10814 test $ac_status = 0; } 2>conftest.err; then
10815 soname=conftest
10816 lib=conftest
10817 libobjs=conftest.$ac_objext
10818 deplibs=
10819 wl=$lt_prog_compiler_wl
10820 pic_flag=$lt_prog_compiler_pic
10821 compiler_flags=-v
10822 linker_flags=-v
10823 verstring=
10824 output_objdir=.
10825 libname=conftest
10826 lt_save_allow_undefined_flag=$allow_undefined_flag
10827 allow_undefined_flag=
10828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10829 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10830 ac_status=$?
10831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10832 test $ac_status = 0; }
10833 then
10834 lt_cv_archive_cmds_need_lc=no
10835 else
10836 lt_cv_archive_cmds_need_lc=yes
10837 fi
10838 allow_undefined_flag=$lt_save_allow_undefined_flag
10839 else
10840 cat conftest.err 1>&5
10841 fi
10842 $RM conftest*
10843
10844fi
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10846$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10847 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10848 ;;
10849 esac
10850 fi
10851 ;;
10852esac
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11011$as_echo_n "checking dynamic linker characteristics... " >&6; }
11012
11013if test "$GCC" = yes; then
11014 case $host_os in
11015 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11016 *) lt_awk_arg="/^libraries:/" ;;
11017 esac
11018 case $host_os in
11019 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11020 *) lt_sed_strip_eq="s,=/,/,g" ;;
11021 esac
11022 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11023 case $lt_search_path_spec in
11024 *\;*)
11025 # if the path contains ";" then we assume it to be the separator
11026 # otherwise default to the standard path separator (i.e. ":") - it is
11027 # assumed that no part of a normal pathname contains ";" but that should
11028 # okay in the real world where ";" in dirpaths is itself problematic.
11029 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11030 ;;
11031 *)
11032 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11033 ;;
11034 esac
11035 # Ok, now we have the path, separated by spaces, we can step through it
11036 # and add multilib dir if necessary.
11037 lt_tmp_lt_search_path_spec=
11038 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11039 for lt_sys_path in $lt_search_path_spec; do
11040 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11041 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11042 else
11043 test -d "$lt_sys_path" && \
11044 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11045 fi
11046 done
11047 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11048BEGIN {RS=" "; FS="/|\n";} {
11049 lt_foo="";
11050 lt_count=0;
11051 for (lt_i = NF; lt_i > 0; lt_i--) {
11052 if ($lt_i != "" && $lt_i != ".") {
11053 if ($lt_i == "..") {
11054 lt_count++;
11055 } else {
11056 if (lt_count == 0) {
11057 lt_foo="/" $lt_i lt_foo;
11058 } else {
11059 lt_count--;
11060 }
11061 }
11062 }
11063 }
11064 if (lt_foo != "") { lt_freq[lt_foo]++; }
11065 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11066}'`
11067 # AWK program above erroneously prepends '/' to C:/dos/paths
11068 # for these hosts.
11069 case $host_os in
11070 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11071 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11072 esac
11073 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11074else
11075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11076fi
11077library_names_spec=
11078libname_spec='lib$name'
11079soname_spec=
11080shrext_cmds=".so"
11081postinstall_cmds=
11082postuninstall_cmds=
11083finish_cmds=
11084finish_eval=
11085shlibpath_var=
11086shlibpath_overrides_runpath=unknown
11087version_type=none
11088dynamic_linker="$host_os ld.so"
11089sys_lib_dlsearch_path_spec="/lib /usr/lib"
11090need_lib_prefix=unknown
11091hardcode_into_libs=no
11092
11093# when you set need_version to no, make sure it does not cause -set_version
11094# flags to be left without arguments
11095need_version=unknown
11096
11097case $host_os in
11098aix3*)
11099 version_type=linux
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11101 shlibpath_var=LIBPATH
11102
11103 # AIX 3 has no versioning support, so we append a major version to the name.
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 ;;
11106
11107aix[4-9]*)
11108 version_type=linux
11109 need_lib_prefix=no
11110 need_version=no
11111 hardcode_into_libs=yes
11112 if test "$host_cpu" = ia64; then
11113 # AIX 5 supports IA64
11114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 else
11117 # With GCC up to 2.95.x, collect2 would create an import file
11118 # for dependence libraries. The import file would start with
11119 # the line `#! .'. This would cause the generated library to
11120 # depend on `.', always an invalid library. This was fixed in
11121 # development snapshots of GCC prior to 3.0.
11122 case $host_os in
11123 aix4 | aix4.[01] | aix4.[01].*)
11124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11125 echo ' yes '
11126 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11127 :
11128 else
11129 can_build_shared=no
11130 fi
11131 ;;
11132 esac
11133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11134 # soname into executable. Probably we can add versioning support to
11135 # collect2, so additional links can be useful in future.
11136 if test "$aix_use_runtimelinking" = yes; then
11137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11138 # instead of lib<name>.a to let people know that these are not
11139 # typical AIX shared libraries.
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141 else
11142 # We preserve .a as extension for shared libraries through AIX4.2
11143 # and later when we are not doing run time linking.
11144 library_names_spec='${libname}${release}.a $libname.a'
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 fi
11147 shlibpath_var=LIBPATH
11148 fi
11149 ;;
11150
11151amigaos*)
11152 case $host_cpu in
11153 powerpc)
11154 # Since July 2007 AmigaOS4 officially supports .so libraries.
11155 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 ;;
11158 m68k)
11159 library_names_spec='$libname.ixlibrary $libname.a'
11160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11161 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'
11162 ;;
11163 esac
11164 ;;
11165
11166beos*)
11167 library_names_spec='${libname}${shared_ext}'
11168 dynamic_linker="$host_os ld.so"
11169 shlibpath_var=LIBRARY_PATH
11170 ;;
11171
11172bsdi[45]*)
11173 version_type=linux
11174 need_version=no
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11181 # the default ld.so.conf also contains /usr/contrib/lib and
11182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11183 # libtool to hard-code these into programs
11184 ;;
11185
11186cygwin* | mingw* | pw32* | cegcc*)
11187 version_type=windows
11188 shrext_cmds=".dll"
11189 need_version=no
11190 need_lib_prefix=no
11191
11192 case $GCC,$host_os in
11193 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11194 library_names_spec='$libname.dll.a'
11195 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11196 postinstall_cmds='base_file=`basename \${file}`~
11197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11198 dldir=$destdir/`dirname \$dlpath`~
11199 test -d \$dldir || mkdir -p \$dldir~
11200 $install_prog $dir/$dlname \$dldir/$dlname~
11201 chmod a+x \$dldir/$dlname~
11202 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11203 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11204 fi'
11205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11206 dlpath=$dir/\$dldll~
11207 $RM \$dlpath'
11208 shlibpath_overrides_runpath=yes
11209
11210 case $host_os in
11211 cygwin*)
11212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11214
11215 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11216 ;;
11217 mingw* | cegcc*)
11218 # MinGW DLLs use traditional 'lib' prefix
11219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11220 ;;
11221 pw32*)
11222 # pw32 DLLs use 'pw' prefix rather than 'lib'
11223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11224 ;;
11225 esac
11226 ;;
11227
11228 *)
11229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11230 ;;
11231 esac
11232 dynamic_linker='Win32 ld.exe'
11233 # FIXME: first we should search . and the directory the executable is in
11234 shlibpath_var=PATH
11235 ;;
11236
11237darwin* | rhapsody*)
11238 dynamic_linker="$host_os dyld"
11239 version_type=darwin
11240 need_lib_prefix=no
11241 need_version=no
11242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11243 soname_spec='${libname}${release}${major}$shared_ext'
11244 shlibpath_overrides_runpath=yes
11245 shlibpath_var=DYLD_LIBRARY_PATH
11246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11247
11248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11250 ;;
11251
11252dgux*)
11253 version_type=linux
11254 need_lib_prefix=no
11255 need_version=no
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 ;;
11260
11261freebsd* | dragonfly*)
11262 # DragonFly does not have aout. When/if they implement a new
11263 # versioning mechanism, adjust this.
11264 if test -x /usr/bin/objformat; then
11265 objformat=`/usr/bin/objformat`
11266 else
11267 case $host_os in
c6084f68 11268 freebsd[23].*) objformat=aout ;;
0a35513e
AH
11269 *) objformat=elf ;;
11270 esac
11271 fi
11272 version_type=freebsd-$objformat
11273 case $version_type in
11274 freebsd-elf*)
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11276 need_version=no
11277 need_lib_prefix=no
11278 ;;
11279 freebsd-*)
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11281 need_version=yes
11282 ;;
11283 esac
11284 shlibpath_var=LD_LIBRARY_PATH
11285 case $host_os in
c6084f68 11286 freebsd2.*)
0a35513e
AH
11287 shlibpath_overrides_runpath=yes
11288 ;;
11289 freebsd3.[01]* | freebsdelf3.[01]*)
11290 shlibpath_overrides_runpath=yes
11291 hardcode_into_libs=yes
11292 ;;
11293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11295 shlibpath_overrides_runpath=no
11296 hardcode_into_libs=yes
11297 ;;
11298 *) # from 4.6 on, and DragonFly
11299 shlibpath_overrides_runpath=yes
11300 hardcode_into_libs=yes
11301 ;;
11302 esac
11303 ;;
11304
0a35513e
AH
11305haiku*)
11306 version_type=linux
11307 need_lib_prefix=no
11308 need_version=no
11309 dynamic_linker="$host_os runtime_loader"
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11311 soname_spec='${libname}${release}${shared_ext}$major'
11312 shlibpath_var=LIBRARY_PATH
11313 shlibpath_overrides_runpath=yes
ead5103c 11314 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
0a35513e
AH
11315 hardcode_into_libs=yes
11316 ;;
11317
11318hpux9* | hpux10* | hpux11*)
11319 # Give a soname corresponding to the major version so that dld.sl refuses to
11320 # link against other versions.
11321 version_type=sunos
11322 need_lib_prefix=no
11323 need_version=no
11324 case $host_cpu in
11325 ia64*)
11326 shrext_cmds='.so'
11327 hardcode_into_libs=yes
11328 dynamic_linker="$host_os dld.so"
11329 shlibpath_var=LD_LIBRARY_PATH
11330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 if test "X$HPUX_IA64_MODE" = X32; then
11334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11335 else
11336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11337 fi
11338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11339 ;;
11340 hppa*64*)
11341 shrext_cmds='.sl'
11342 hardcode_into_libs=yes
11343 dynamic_linker="$host_os dld.sl"
11344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11350 ;;
11351 *)
11352 shrext_cmds='.sl'
11353 dynamic_linker="$host_os dld.sl"
11354 shlibpath_var=SHLIB_PATH
11355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 ;;
11359 esac
11360 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11361 postinstall_cmds='chmod 555 $lib'
11362 # or fails outright, so override atomically:
11363 install_override_mode=555
11364 ;;
11365
11366interix[3-9]*)
11367 version_type=linux
11368 need_lib_prefix=no
11369 need_version=no
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 shlibpath_overrides_runpath=no
11375 hardcode_into_libs=yes
11376 ;;
11377
11378irix5* | irix6* | nonstopux*)
11379 case $host_os in
11380 nonstopux*) version_type=nonstopux ;;
11381 *)
11382 if test "$lt_cv_prog_gnu_ld" = yes; then
11383 version_type=linux
11384 else
11385 version_type=irix
11386 fi ;;
11387 esac
11388 need_lib_prefix=no
11389 need_version=no
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11392 case $host_os in
11393 irix5* | nonstopux*)
11394 libsuff= shlibsuff=
11395 ;;
11396 *)
11397 case $LD in # libtool.m4 will add one of these switches to LD
11398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11399 libsuff= shlibsuff= libmagic=32-bit;;
11400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11401 libsuff=32 shlibsuff=N32 libmagic=N32;;
11402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11403 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11404 *) libsuff= shlibsuff= libmagic=never-match;;
11405 esac
11406 ;;
11407 esac
11408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11409 shlibpath_overrides_runpath=no
11410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11412 hardcode_into_libs=yes
11413 ;;
11414
11415# No shared lib support for Linux oldld, aout, or coff.
11416linux*oldld* | linux*aout* | linux*coff*)
11417 dynamic_linker=no
11418 ;;
11419
11420# This must be Linux ELF.
b1e21e5a
CL
11421
11422# uclinux* changes (here and below) have been submitted to the libtool
11423# project, but have not yet been accepted: they are GCC-local changes
11424# for the time being. (See
11425# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 11426linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
0a35513e
AH
11427 version_type=linux
11428 need_lib_prefix=no
11429 need_version=no
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11433 shlibpath_var=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath=no
11435
11436 # Some binutils ld are patched to set DT_RUNPATH
22e05272 11437 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
0a35513e
AH
11438 $as_echo_n "(cached) " >&6
11439else
11440 lt_cv_shlibpath_overrides_runpath=no
11441 save_LDFLAGS=$LDFLAGS
11442 save_libdir=$libdir
11443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446/* end confdefs.h. */
11447
11448int
11449main ()
11450{
11451
11452 ;
11453 return 0;
11454}
11455_ACEOF
11456if ac_fn_c_try_link "$LINENO"; then :
11457 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11458 lt_cv_shlibpath_overrides_runpath=yes
11459fi
11460fi
11461rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LDFLAGS=$save_LDFLAGS
11464 libdir=$save_libdir
11465
11466fi
11467
11468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11469
11470 # This implies no fast_install, which is unacceptable.
11471 # Some rework will be needed to allow for fast_install
11472 # before this can be enabled.
11473 hardcode_into_libs=yes
11474
11475 # Append ld.so.conf contents to the search path
11476 if test -f /etc/ld.so.conf; then
11477 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' ' '`
11478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11479 fi
11480
11481 # We used to test for /lib/ld.so.1 and disable shared libraries on
11482 # powerpc, because MkLinux only supported shared libraries with the
11483 # GNU dynamic linker. Since this was broken with cross compilers,
11484 # most powerpc-linux boxes support dynamic linking these days and
11485 # people can always --disable-shared, the test was removed, and we
11486 # assume the GNU/Linux dynamic linker is in use.
11487 dynamic_linker='GNU/Linux ld.so'
11488 ;;
11489
11490netbsd*)
11491 version_type=sunos
11492 need_lib_prefix=no
11493 need_version=no
11494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497 dynamic_linker='NetBSD (a.out) ld.so'
11498 else
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 dynamic_linker='NetBSD ld.elf_so'
11502 fi
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11506 ;;
11507
11508newsos6)
11509 version_type=linux
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 shlibpath_overrides_runpath=yes
11513 ;;
11514
11515*nto* | *qnx*)
11516 version_type=qnx
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=no
11523 hardcode_into_libs=yes
11524 dynamic_linker='ldqnx.so'
11525 ;;
11526
11527openbsd*)
11528 version_type=sunos
11529 sys_lib_dlsearch_path_spec="/usr/lib"
11530 need_lib_prefix=no
11531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11532 case $host_os in
11533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11534 *) need_version=no ;;
11535 esac
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11540 case $host_os in
11541 openbsd2.[89] | openbsd2.[89].*)
11542 shlibpath_overrides_runpath=no
11543 ;;
11544 *)
11545 shlibpath_overrides_runpath=yes
11546 ;;
11547 esac
11548 else
11549 shlibpath_overrides_runpath=yes
11550 fi
11551 ;;
11552
11553os2*)
11554 libname_spec='$name'
11555 shrext_cmds=".dll"
11556 need_lib_prefix=no
11557 library_names_spec='$libname${shared_ext} $libname.a'
11558 dynamic_linker='OS/2 ld.exe'
11559 shlibpath_var=LIBPATH
11560 ;;
11561
11562osf3* | osf4* | osf5*)
11563 version_type=osf
11564 need_lib_prefix=no
11565 need_version=no
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11571 ;;
11572
11573rdos*)
11574 dynamic_linker=no
11575 ;;
11576
11577solaris*)
11578 version_type=linux
11579 need_lib_prefix=no
11580 need_version=no
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 shlibpath_overrides_runpath=yes
11585 hardcode_into_libs=yes
11586 # ldd complains unless libraries are executable
11587 postinstall_cmds='chmod +x $lib'
11588 ;;
11589
11590sunos4*)
11591 version_type=sunos
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 shlibpath_overrides_runpath=yes
11596 if test "$with_gnu_ld" = yes; then
11597 need_lib_prefix=no
11598 fi
11599 need_version=yes
11600 ;;
11601
11602sysv4 | sysv4.3*)
11603 version_type=linux
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605 soname_spec='${libname}${release}${shared_ext}$major'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 case $host_vendor in
11608 sni)
11609 shlibpath_overrides_runpath=no
11610 need_lib_prefix=no
11611 runpath_var=LD_RUN_PATH
11612 ;;
11613 siemens)
11614 need_lib_prefix=no
11615 ;;
11616 motorola)
11617 need_lib_prefix=no
11618 need_version=no
11619 shlibpath_overrides_runpath=no
11620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11621 ;;
11622 esac
11623 ;;
11624
11625sysv4*MP*)
11626 if test -d /usr/nec ;then
11627 version_type=linux
11628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11629 soname_spec='$libname${shared_ext}.$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11631 fi
11632 ;;
11633
11634sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11635 version_type=freebsd-elf
11636 need_lib_prefix=no
11637 need_version=no
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 shlibpath_overrides_runpath=yes
11642 hardcode_into_libs=yes
11643 if test "$with_gnu_ld" = yes; then
11644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11645 else
11646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11647 case $host_os in
11648 sco3.2v5*)
11649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11650 ;;
11651 esac
11652 fi
11653 sys_lib_dlsearch_path_spec='/usr/lib'
11654 ;;
11655
11656tpf*)
11657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11658 version_type=linux
11659 need_lib_prefix=no
11660 need_version=no
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=no
11664 hardcode_into_libs=yes
11665 ;;
11666
11667uts4*)
11668 version_type=linux
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 ;;
11673
0ecd0f1c
OH
11674# Shared libraries for VwWorks, >= 7 only at this stage
11675# and (fpic) still incompatible with "large" code models
11676# in a few configurations. Only for RTP mode in any case,
11677# and upon explicit request at configure time.
11678vxworks7*)
11679 dynamic_linker=no
11680 case ${with_multisubdir}-${enable_shared} in
11681 *large*)
11682 ;;
11683 *mrtp*-yes)
11684 version_type=linux
11685 need_lib_prefix=no
11686 need_version=no
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 soname_spec='${libname}${release}${shared_ext}$major'
11689 dynamic_linker="$host_os module_loader"
11690 ;;
11691 esac
11692 ;;
0a35513e
AH
11693*)
11694 dynamic_linker=no
11695 ;;
11696esac
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11698$as_echo "$dynamic_linker" >&6; }
11699test "$dynamic_linker" = no && can_build_shared=no
11700
11701variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11702if test "$GCC" = yes; then
11703 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11704fi
11705
11706if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11707 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11708fi
11709if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11710 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11711fi
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11805$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11806hardcode_action=
11807if test -n "$hardcode_libdir_flag_spec" ||
11808 test -n "$runpath_var" ||
11809 test "X$hardcode_automatic" = "Xyes" ; then
11810
11811 # We can hardcode non-existent directories.
11812 if test "$hardcode_direct" != no &&
11813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11814 # have to relink, otherwise we might link with an installed library
11815 # when we should be linking with a yet-to-be-installed one
11816 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11817 test "$hardcode_minus_L" != no; then
11818 # Linking always hardcodes the temporary library directory.
11819 hardcode_action=relink
11820 else
11821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11822 hardcode_action=immediate
11823 fi
11824else
11825 # We cannot hardcode anything, or else we can only hardcode existing
11826 # directories.
11827 hardcode_action=unsupported
11828fi
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11830$as_echo "$hardcode_action" >&6; }
11831
11832if test "$hardcode_action" = relink ||
11833 test "$inherit_rpath" = yes; then
11834 # Fast installation is not supported
11835 enable_fast_install=no
11836elif test "$shlibpath_overrides_runpath" = yes ||
11837 test "$enable_shared" = no; then
11838 # Fast installation is not necessary
11839 enable_fast_install=needless
11840fi
11841
11842
11843
11844
11845
11846
11847 if test "x$enable_dlopen" != xyes; then
11848 enable_dlopen=unknown
11849 enable_dlopen_self=unknown
11850 enable_dlopen_self_static=unknown
11851else
11852 lt_cv_dlopen=no
11853 lt_cv_dlopen_libs=
11854
11855 case $host_os in
11856 beos*)
11857 lt_cv_dlopen="load_add_on"
11858 lt_cv_dlopen_libs=
11859 lt_cv_dlopen_self=yes
11860 ;;
11861
11862 mingw* | pw32* | cegcc*)
11863 lt_cv_dlopen="LoadLibrary"
11864 lt_cv_dlopen_libs=
11865 ;;
11866
11867 cygwin*)
11868 lt_cv_dlopen="dlopen"
11869 lt_cv_dlopen_libs=
11870 ;;
11871
11872 darwin*)
11873 # if libdl is installed we need to link against it
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11875$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11876if ${ac_cv_lib_dl_dlopen+:} false; then :
0a35513e
AH
11877 $as_echo_n "(cached) " >&6
11878else
11879 ac_check_lib_save_LIBS=$LIBS
11880LIBS="-ldl $LIBS"
11881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882/* end confdefs.h. */
11883
11884/* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887#ifdef __cplusplus
11888extern "C"
11889#endif
11890char dlopen ();
11891int
11892main ()
11893{
11894return dlopen ();
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899if ac_fn_c_try_link "$LINENO"; then :
11900 ac_cv_lib_dl_dlopen=yes
11901else
11902 ac_cv_lib_dl_dlopen=no
11903fi
11904rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906LIBS=$ac_check_lib_save_LIBS
11907fi
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11909$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11910if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
0a35513e
AH
11911 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11912else
11913
11914 lt_cv_dlopen="dyld"
11915 lt_cv_dlopen_libs=
11916 lt_cv_dlopen_self=yes
11917
11918fi
11919
11920 ;;
11921
11922 *)
11923 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11924if test "x$ac_cv_func_shl_load" = xyes; then :
0a35513e
AH
11925 lt_cv_dlopen="shl_load"
11926else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11928$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11929if ${ac_cv_lib_dld_shl_load+:} false; then :
0a35513e
AH
11930 $as_echo_n "(cached) " >&6
11931else
11932 ac_check_lib_save_LIBS=$LIBS
11933LIBS="-ldld $LIBS"
11934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h. */
11936
11937/* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11940#ifdef __cplusplus
11941extern "C"
11942#endif
11943char shl_load ();
11944int
11945main ()
11946{
11947return shl_load ();
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_link "$LINENO"; then :
11953 ac_cv_lib_dld_shl_load=yes
11954else
11955 ac_cv_lib_dld_shl_load=no
11956fi
11957rm -f core conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959LIBS=$ac_check_lib_save_LIBS
11960fi
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11962$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11963if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
0a35513e
AH
11964 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11965else
11966 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11967if test "x$ac_cv_func_dlopen" = xyes; then :
0a35513e
AH
11968 lt_cv_dlopen="dlopen"
11969else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11971$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11972if ${ac_cv_lib_dl_dlopen+:} false; then :
0a35513e
AH
11973 $as_echo_n "(cached) " >&6
11974else
11975 ac_check_lib_save_LIBS=$LIBS
11976LIBS="-ldl $LIBS"
11977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978/* end confdefs.h. */
11979
11980/* Override any GCC internal prototype to avoid an error.
11981 Use char because int might match the return type of a GCC
11982 builtin and then its argument prototype would still apply. */
11983#ifdef __cplusplus
11984extern "C"
11985#endif
11986char dlopen ();
11987int
11988main ()
11989{
11990return dlopen ();
11991 ;
11992 return 0;
11993}
11994_ACEOF
11995if ac_fn_c_try_link "$LINENO"; then :
11996 ac_cv_lib_dl_dlopen=yes
11997else
11998 ac_cv_lib_dl_dlopen=no
11999fi
12000rm -f core conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext conftest.$ac_ext
12002LIBS=$ac_check_lib_save_LIBS
12003fi
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12005$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12006if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
0a35513e
AH
12007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12008else
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12010$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12011if ${ac_cv_lib_svld_dlopen+:} false; then :
0a35513e
AH
12012 $as_echo_n "(cached) " >&6
12013else
12014 ac_check_lib_save_LIBS=$LIBS
12015LIBS="-lsvld $LIBS"
12016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017/* end confdefs.h. */
12018
12019/* Override any GCC internal prototype to avoid an error.
12020 Use char because int might match the return type of a GCC
12021 builtin and then its argument prototype would still apply. */
12022#ifdef __cplusplus
12023extern "C"
12024#endif
12025char dlopen ();
12026int
12027main ()
12028{
12029return dlopen ();
12030 ;
12031 return 0;
12032}
12033_ACEOF
12034if ac_fn_c_try_link "$LINENO"; then :
12035 ac_cv_lib_svld_dlopen=yes
12036else
12037 ac_cv_lib_svld_dlopen=no
12038fi
12039rm -f core conftest.err conftest.$ac_objext \
12040 conftest$ac_exeext conftest.$ac_ext
12041LIBS=$ac_check_lib_save_LIBS
12042fi
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12044$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12045if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
0a35513e
AH
12046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12047else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12049$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12050if ${ac_cv_lib_dld_dld_link+:} false; then :
0a35513e
AH
12051 $as_echo_n "(cached) " >&6
12052else
12053 ac_check_lib_save_LIBS=$LIBS
12054LIBS="-ldld $LIBS"
12055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056/* end confdefs.h. */
12057
12058/* Override any GCC internal prototype to avoid an error.
12059 Use char because int might match the return type of a GCC
12060 builtin and then its argument prototype would still apply. */
12061#ifdef __cplusplus
12062extern "C"
12063#endif
12064char dld_link ();
12065int
12066main ()
12067{
12068return dld_link ();
12069 ;
12070 return 0;
12071}
12072_ACEOF
12073if ac_fn_c_try_link "$LINENO"; then :
12074 ac_cv_lib_dld_dld_link=yes
12075else
12076 ac_cv_lib_dld_dld_link=no
12077fi
12078rm -f core conftest.err conftest.$ac_objext \
12079 conftest$ac_exeext conftest.$ac_ext
12080LIBS=$ac_check_lib_save_LIBS
12081fi
12082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12083$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12084if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
0a35513e
AH
12085 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12086fi
12087
12088
12089fi
12090
12091
12092fi
12093
12094
12095fi
12096
12097
12098fi
12099
12100
12101fi
12102
12103 ;;
12104 esac
12105
12106 if test "x$lt_cv_dlopen" != xno; then
12107 enable_dlopen=yes
12108 else
12109 enable_dlopen=no
12110 fi
12111
12112 case $lt_cv_dlopen in
12113 dlopen)
12114 save_CPPFLAGS="$CPPFLAGS"
12115 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12116
12117 save_LDFLAGS="$LDFLAGS"
12118 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12119
12120 save_LIBS="$LIBS"
12121 LIBS="$lt_cv_dlopen_libs $LIBS"
12122
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12124$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12125if ${lt_cv_dlopen_self+:} false; then :
0a35513e
AH
12126 $as_echo_n "(cached) " >&6
12127else
12128 if test "$cross_compiling" = yes; then :
12129 lt_cv_dlopen_self=cross
12130else
12131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12132 lt_status=$lt_dlunknown
12133 cat > conftest.$ac_ext <<_LT_EOF
6a6d3817 12134#line 12134 "configure"
0a35513e
AH
12135#include "confdefs.h"
12136
12137#if HAVE_DLFCN_H
12138#include <dlfcn.h>
12139#endif
12140
12141#include <stdio.h>
12142
12143#ifdef RTLD_GLOBAL
12144# define LT_DLGLOBAL RTLD_GLOBAL
12145#else
12146# ifdef DL_GLOBAL
12147# define LT_DLGLOBAL DL_GLOBAL
12148# else
12149# define LT_DLGLOBAL 0
12150# endif
12151#endif
12152
12153/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12154 find out it does not work in some platform. */
12155#ifndef LT_DLLAZY_OR_NOW
12156# ifdef RTLD_LAZY
12157# define LT_DLLAZY_OR_NOW RTLD_LAZY
12158# else
12159# ifdef DL_LAZY
12160# define LT_DLLAZY_OR_NOW DL_LAZY
12161# else
12162# ifdef RTLD_NOW
12163# define LT_DLLAZY_OR_NOW RTLD_NOW
12164# else
12165# ifdef DL_NOW
12166# define LT_DLLAZY_OR_NOW DL_NOW
12167# else
12168# define LT_DLLAZY_OR_NOW 0
12169# endif
12170# endif
12171# endif
12172# endif
12173#endif
12174
12175/* When -fvisbility=hidden is used, assume the code has been annotated
12176 correspondingly for the symbols needed. */
12177#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12178void fnord () __attribute__((visibility("default")));
12179#endif
12180
12181void fnord () { int i=42; }
12182int main ()
12183{
12184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12185 int status = $lt_dlunknown;
12186
12187 if (self)
12188 {
12189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12190 else
12191 {
12192 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12193 else puts (dlerror ());
12194 }
12195 /* dlclose (self); */
12196 }
12197 else
12198 puts (dlerror ());
12199
12200 return status;
12201}
12202_LT_EOF
12203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12204 (eval $ac_link) 2>&5
12205 ac_status=$?
12206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12207 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12208 (./conftest; exit; ) >&5 2>/dev/null
12209 lt_status=$?
12210 case x$lt_status in
12211 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12212 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12213 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12214 esac
12215 else :
12216 # compilation failed
12217 lt_cv_dlopen_self=no
12218 fi
12219fi
12220rm -fr conftest*
12221
12222
12223fi
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12225$as_echo "$lt_cv_dlopen_self" >&6; }
12226
12227 if test "x$lt_cv_dlopen_self" = xyes; then
12228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12230$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12231if ${lt_cv_dlopen_self_static+:} false; then :
0a35513e
AH
12232 $as_echo_n "(cached) " >&6
12233else
12234 if test "$cross_compiling" = yes; then :
12235 lt_cv_dlopen_self_static=cross
12236else
12237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12238 lt_status=$lt_dlunknown
12239 cat > conftest.$ac_ext <<_LT_EOF
6a6d3817 12240#line 12240 "configure"
0a35513e
AH
12241#include "confdefs.h"
12242
12243#if HAVE_DLFCN_H
12244#include <dlfcn.h>
12245#endif
12246
12247#include <stdio.h>
12248
12249#ifdef RTLD_GLOBAL
12250# define LT_DLGLOBAL RTLD_GLOBAL
12251#else
12252# ifdef DL_GLOBAL
12253# define LT_DLGLOBAL DL_GLOBAL
12254# else
12255# define LT_DLGLOBAL 0
12256# endif
12257#endif
12258
12259/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12260 find out it does not work in some platform. */
12261#ifndef LT_DLLAZY_OR_NOW
12262# ifdef RTLD_LAZY
12263# define LT_DLLAZY_OR_NOW RTLD_LAZY
12264# else
12265# ifdef DL_LAZY
12266# define LT_DLLAZY_OR_NOW DL_LAZY
12267# else
12268# ifdef RTLD_NOW
12269# define LT_DLLAZY_OR_NOW RTLD_NOW
12270# else
12271# ifdef DL_NOW
12272# define LT_DLLAZY_OR_NOW DL_NOW
12273# else
12274# define LT_DLLAZY_OR_NOW 0
12275# endif
12276# endif
12277# endif
12278# endif
12279#endif
12280
12281/* When -fvisbility=hidden is used, assume the code has been annotated
12282 correspondingly for the symbols needed. */
12283#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12284void fnord () __attribute__((visibility("default")));
12285#endif
12286
12287void fnord () { int i=42; }
12288int main ()
12289{
12290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12291 int status = $lt_dlunknown;
12292
12293 if (self)
12294 {
12295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12296 else
12297 {
12298 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12299 else puts (dlerror ());
12300 }
12301 /* dlclose (self); */
12302 }
12303 else
12304 puts (dlerror ());
12305
12306 return status;
12307}
12308_LT_EOF
12309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12310 (eval $ac_link) 2>&5
12311 ac_status=$?
12312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12313 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12314 (./conftest; exit; ) >&5 2>/dev/null
12315 lt_status=$?
12316 case x$lt_status in
12317 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12318 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12319 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12320 esac
12321 else :
12322 # compilation failed
12323 lt_cv_dlopen_self_static=no
12324 fi
12325fi
12326rm -fr conftest*
12327
12328
12329fi
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12331$as_echo "$lt_cv_dlopen_self_static" >&6; }
12332 fi
12333
12334 CPPFLAGS="$save_CPPFLAGS"
12335 LDFLAGS="$save_LDFLAGS"
12336 LIBS="$save_LIBS"
12337 ;;
12338 esac
12339
12340 case $lt_cv_dlopen_self in
12341 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12342 *) enable_dlopen_self=unknown ;;
12343 esac
12344
12345 case $lt_cv_dlopen_self_static in
12346 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12347 *) enable_dlopen_self_static=unknown ;;
12348 esac
12349fi
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367striplib=
12368old_striplib=
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12370$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12371if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12372 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12373 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12375$as_echo "yes" >&6; }
12376else
12377# FIXME - insert some real tests, host_os isn't really good enough
12378 case $host_os in
12379 darwin*)
12380 if test -n "$STRIP" ; then
12381 striplib="$STRIP -x"
12382 old_striplib="$STRIP -S"
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12384$as_echo "yes" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388 fi
12389 ;;
12390 *)
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392$as_echo "no" >&6; }
12393 ;;
12394 esac
12395fi
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408 # Report which library types will actually be built
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12410$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12412$as_echo "$can_build_shared" >&6; }
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12415$as_echo_n "checking whether to build shared libraries... " >&6; }
12416 test "$can_build_shared" = "no" && enable_shared=no
12417
12418 # On AIX, shared libraries and static libraries use the same namespace, and
12419 # are all built from PIC.
12420 case $host_os in
12421 aix3*)
12422 test "$enable_shared" = yes && enable_static=no
12423 if test -n "$RANLIB"; then
12424 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12425 postinstall_cmds='$RANLIB $lib'
12426 fi
12427 ;;
12428
12429 aix[4-9]*)
12430 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12431 test "$enable_shared" = yes && enable_static=no
12432 fi
12433 ;;
12434 esac
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12436$as_echo "$enable_shared" >&6; }
12437
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12439$as_echo_n "checking whether to build static libraries... " >&6; }
12440 # Make sure either enable_shared or enable_static is yes.
12441 test "$enable_shared" = yes || enable_static=yes
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12443$as_echo "$enable_static" >&6; }
12444
12445
12446
12447
12448fi
12449ac_ext=c
12450ac_cpp='$CPP $CPPFLAGS'
12451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12453ac_compiler_gnu=$ac_cv_c_compiler_gnu
12454
12455CC="$lt_save_CC"
12456
12457 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12458 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12459 (test "X$CXX" != "Xg++"))) ; then
12460 ac_ext=cpp
12461ac_cpp='$CXXCPP $CPPFLAGS'
12462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12466$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12467if test -z "$CXXCPP"; then
22e05272 12468 if ${ac_cv_prog_CXXCPP+:} false; then :
0a35513e
AH
12469 $as_echo_n "(cached) " >&6
12470else
12471 # Double quotes because CXXCPP needs to be expanded
12472 for CXXCPP in "$CXX -E" "/lib/cpp"
12473 do
12474 ac_preproc_ok=false
12475for ac_cxx_preproc_warn_flag in '' yes
12476do
12477 # Use a header file that comes with gcc, so configuring glibc
12478 # with a fresh cross-compiler works.
12479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12480 # <limits.h> exists even on freestanding compilers.
12481 # On the NeXT, cc -E runs the code through the compiler's parser,
12482 # not just through cpp. "Syntax error" is here to catch this case.
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484/* end confdefs.h. */
12485#ifdef __STDC__
12486# include <limits.h>
12487#else
12488# include <assert.h>
12489#endif
12490 Syntax error
12491_ACEOF
12492if ac_fn_cxx_try_cpp "$LINENO"; then :
12493
12494else
12495 # Broken: fails on valid input.
12496continue
12497fi
22e05272 12498rm -f conftest.err conftest.i conftest.$ac_ext
0a35513e
AH
12499
12500 # OK, works on sane cases. Now check whether nonexistent headers
12501 # can be detected and how.
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503/* end confdefs.h. */
12504#include <ac_nonexistent.h>
12505_ACEOF
12506if ac_fn_cxx_try_cpp "$LINENO"; then :
12507 # Broken: success on invalid input.
12508continue
12509else
12510 # Passes both tests.
12511ac_preproc_ok=:
12512break
12513fi
22e05272 12514rm -f conftest.err conftest.i conftest.$ac_ext
0a35513e
AH
12515
12516done
12517# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12518rm -f conftest.i conftest.err conftest.$ac_ext
0a35513e
AH
12519if $ac_preproc_ok; then :
12520 break
12521fi
12522
12523 done
12524 ac_cv_prog_CXXCPP=$CXXCPP
12525
12526fi
12527 CXXCPP=$ac_cv_prog_CXXCPP
12528else
12529 ac_cv_prog_CXXCPP=$CXXCPP
12530fi
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12532$as_echo "$CXXCPP" >&6; }
12533ac_preproc_ok=false
12534for ac_cxx_preproc_warn_flag in '' yes
12535do
12536 # Use a header file that comes with gcc, so configuring glibc
12537 # with a fresh cross-compiler works.
12538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12539 # <limits.h> exists even on freestanding compilers.
12540 # On the NeXT, cc -E runs the code through the compiler's parser,
12541 # not just through cpp. "Syntax error" is here to catch this case.
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543/* end confdefs.h. */
12544#ifdef __STDC__
12545# include <limits.h>
12546#else
12547# include <assert.h>
12548#endif
12549 Syntax error
12550_ACEOF
12551if ac_fn_cxx_try_cpp "$LINENO"; then :
12552
12553else
12554 # Broken: fails on valid input.
12555continue
12556fi
22e05272 12557rm -f conftest.err conftest.i conftest.$ac_ext
0a35513e
AH
12558
12559 # OK, works on sane cases. Now check whether nonexistent headers
12560 # can be detected and how.
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562/* end confdefs.h. */
12563#include <ac_nonexistent.h>
12564_ACEOF
12565if ac_fn_cxx_try_cpp "$LINENO"; then :
12566 # Broken: success on invalid input.
12567continue
12568else
12569 # Passes both tests.
12570ac_preproc_ok=:
12571break
12572fi
22e05272 12573rm -f conftest.err conftest.i conftest.$ac_ext
0a35513e
AH
12574
12575done
12576# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 12577rm -f conftest.i conftest.err conftest.$ac_ext
0a35513e
AH
12578if $ac_preproc_ok; then :
12579
12580else
12581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12583as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12584See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
12585fi
12586
12587ac_ext=c
12588ac_cpp='$CPP $CPPFLAGS'
12589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591ac_compiler_gnu=$ac_cv_c_compiler_gnu
12592
12593else
12594 _lt_caught_CXX_error=yes
12595fi
12596
12597ac_ext=cpp
12598ac_cpp='$CXXCPP $CPPFLAGS'
12599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12602
12603archive_cmds_need_lc_CXX=no
12604allow_undefined_flag_CXX=
12605always_export_symbols_CXX=no
12606archive_expsym_cmds_CXX=
12607compiler_needs_object_CXX=no
12608export_dynamic_flag_spec_CXX=
12609hardcode_direct_CXX=no
12610hardcode_direct_absolute_CXX=no
12611hardcode_libdir_flag_spec_CXX=
12612hardcode_libdir_flag_spec_ld_CXX=
12613hardcode_libdir_separator_CXX=
12614hardcode_minus_L_CXX=no
12615hardcode_shlibpath_var_CXX=unsupported
12616hardcode_automatic_CXX=no
12617inherit_rpath_CXX=no
12618module_cmds_CXX=
12619module_expsym_cmds_CXX=
12620link_all_deplibs_CXX=unknown
12621old_archive_cmds_CXX=$old_archive_cmds
12622reload_flag_CXX=$reload_flag
12623reload_cmds_CXX=$reload_cmds
12624no_undefined_flag_CXX=
12625whole_archive_flag_spec_CXX=
12626enable_shared_with_static_runtimes_CXX=no
12627
12628# Source file extension for C++ test sources.
12629ac_ext=cpp
12630
12631# Object file extension for compiled C++ test sources.
12632objext=o
12633objext_CXX=$objext
12634
12635# No sense in running all these tests if we already determined that
12636# the CXX compiler isn't working. Some variables (like enable_shared)
12637# are currently assumed to apply to all compilers on this platform,
12638# and will be corrupted by setting them based on a non-working compiler.
12639if test "$_lt_caught_CXX_error" != yes; then
12640 # Code to be used in simple compile tests
12641 lt_simple_compile_test_code="int some_variable = 0;"
12642
12643 # Code to be used in simple link tests
12644 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12645
12646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12647
12648
12649
12650
12651
12652
12653# If no C compiler was specified, use CC.
12654LTCC=${LTCC-"$CC"}
12655
12656# If no C compiler flags were specified, use CFLAGS.
12657LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12658
12659# Allow CC to be a program name with arguments.
12660compiler=$CC
12661
12662
12663 # save warnings/boilerplate of simple test code
12664 ac_outfile=conftest.$ac_objext
12665echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12666eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12667_lt_compiler_boilerplate=`cat conftest.err`
12668$RM conftest*
12669
12670 ac_outfile=conftest.$ac_objext
12671echo "$lt_simple_link_test_code" >conftest.$ac_ext
12672eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12673_lt_linker_boilerplate=`cat conftest.err`
12674$RM -r conftest*
12675
12676
12677 # Allow CC to be a program name with arguments.
12678 lt_save_CC=$CC
12679 lt_save_LD=$LD
12680 lt_save_GCC=$GCC
12681 GCC=$GXX
12682 lt_save_with_gnu_ld=$with_gnu_ld
12683 lt_save_path_LD=$lt_cv_path_LD
12684 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12685 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12686 else
12687 $as_unset lt_cv_prog_gnu_ld
12688 fi
12689 if test -n "${lt_cv_path_LDCXX+set}"; then
12690 lt_cv_path_LD=$lt_cv_path_LDCXX
12691 else
12692 $as_unset lt_cv_path_LD
12693 fi
12694 test -z "${LDCXX+set}" || LD=$LDCXX
12695 CC=${CXX-"c++"}
12696 compiler=$CC
12697 compiler_CXX=$CC
12698 for cc_temp in $compiler""; do
12699 case $cc_temp in
12700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12702 \-*) ;;
12703 *) break;;
12704 esac
12705done
12706cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12707
12708
12709 if test -n "$compiler"; then
12710 # We don't want -fno-exception when compiling C++ code, so set the
12711 # no_builtin_flag separately
12712 if test "$GXX" = yes; then
12713 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12714 else
12715 lt_prog_compiler_no_builtin_flag_CXX=
12716 fi
12717
12718 if test "$GXX" = yes; then
12719 # Set up default GNU C++ configuration
12720
12721
12722
12723# Check whether --with-gnu-ld was given.
12724if test "${with_gnu_ld+set}" = set; then :
12725 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12726else
12727 with_gnu_ld=no
12728fi
12729
12730ac_prog=ld
12731if test "$GCC" = yes; then
12732 # Check if gcc -print-prog-name=ld gives a path.
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12734$as_echo_n "checking for ld used by $CC... " >&6; }
12735 case $host in
12736 *-*-mingw*)
12737 # gcc leaves a trailing carriage return which upsets mingw
12738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12739 *)
12740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12741 esac
12742 case $ac_prog in
12743 # Accept absolute paths.
12744 [\\/]* | ?:[\\/]*)
12745 re_direlt='/[^/][^/]*/\.\./'
12746 # Canonicalize the pathname of ld
12747 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12748 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12749 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12750 done
12751 test -z "$LD" && LD="$ac_prog"
12752 ;;
12753 "")
12754 # If it fails, then pretend we aren't using GCC.
12755 ac_prog=ld
12756 ;;
12757 *)
12758 # If it is relative, then search for the first ld in PATH.
12759 with_gnu_ld=unknown
12760 ;;
12761 esac
12762elif test "$with_gnu_ld" = yes; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12764$as_echo_n "checking for GNU ld... " >&6; }
12765else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12767$as_echo_n "checking for non-GNU ld... " >&6; }
12768fi
22e05272 12769if ${lt_cv_path_LD+:} false; then :
0a35513e
AH
12770 $as_echo_n "(cached) " >&6
12771else
12772 if test -z "$LD"; then
12773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12774 for ac_dir in $PATH; do
12775 IFS="$lt_save_ifs"
12776 test -z "$ac_dir" && ac_dir=.
12777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12778 lt_cv_path_LD="$ac_dir/$ac_prog"
12779 # Check to see if the program is GNU ld. I'd rather use --version,
12780 # but apparently some variants of GNU ld only accept -v.
12781 # Break only if it was the GNU/non-GNU ld that we prefer.
12782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12783 *GNU* | *'with BFD'*)
12784 test "$with_gnu_ld" != no && break
12785 ;;
12786 *)
12787 test "$with_gnu_ld" != yes && break
12788 ;;
12789 esac
12790 fi
12791 done
12792 IFS="$lt_save_ifs"
12793else
12794 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12795fi
12796fi
12797
12798LD="$lt_cv_path_LD"
12799if test -n "$LD"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12801$as_echo "$LD" >&6; }
12802else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
12805fi
22e05272 12806test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
0a35513e
AH
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12808$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 12809if ${lt_cv_prog_gnu_ld+:} false; then :
0a35513e
AH
12810 $as_echo_n "(cached) " >&6
12811else
12812 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12813case `$LD -v 2>&1 </dev/null` in
12814*GNU* | *'with BFD'*)
12815 lt_cv_prog_gnu_ld=yes
12816 ;;
12817*)
12818 lt_cv_prog_gnu_ld=no
12819 ;;
12820esac
12821fi
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12823$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12824with_gnu_ld=$lt_cv_prog_gnu_ld
12825
12826
12827
12828
12829
12830
12831
12832 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12833 # archiving commands below assume that GNU ld is being used.
12834 if test "$with_gnu_ld" = yes; then
a699d672
L
12835 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12836 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
0a35513e
AH
12837
12838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12839 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12840
12841 # If archive_cmds runs LD, not CC, wlarc should be empty
12842 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12843 # investigate it a little bit more. (MM)
12844 wlarc='${wl}'
12845
12846 # ancient GNU ld didn't support --whole-archive et. al.
12847 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12848 $GREP 'no-whole-archive' > /dev/null; then
12849 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12850 else
12851 whole_archive_flag_spec_CXX=
12852 fi
12853 else
12854 with_gnu_ld=no
12855 wlarc=
12856
12857 # A generic and very simple default shared library creation
12858 # command for GNU C++ for the case where it uses the native
12859 # linker, instead of GNU ld. If possible, this setting should
12860 # overridden to take advantage of the native linker features on
12861 # the platform it is being used on.
12862 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12863 fi
12864
12865 # Commands to make compiler produce verbose output that lists
12866 # what "hidden" libraries, object files and flags are used when
12867 # linking a shared library.
12868 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12869
12870 else
12871 GXX=no
12872 with_gnu_ld=no
12873 wlarc=
12874 fi
12875
12876 # PORTME: fill in a description of your system's C++ link characteristics
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12878$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12879 ld_shlibs_CXX=yes
12880 case $host_os in
12881 aix3*)
12882 # FIXME: insert proper C++ library support
12883 ld_shlibs_CXX=no
12884 ;;
12885 aix[4-9]*)
12886 if test "$host_cpu" = ia64; then
12887 # On IA64, the linker does run time linking by default, so we don't
12888 # have to do anything special.
12889 aix_use_runtimelinking=no
12890 exp_sym_flag='-Bexport'
12891 no_entry_flag=""
12892 else
12893 aix_use_runtimelinking=no
12894
12895 # Test if we are trying to use run time linking or normal
12896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12897 # need to do runtime linking.
12898 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12899 for ld_flag in $LDFLAGS; do
12900 case $ld_flag in
12901 *-brtl*)
12902 aix_use_runtimelinking=yes
12903 break
12904 ;;
12905 esac
12906 done
12907 ;;
12908 esac
12909
12910 exp_sym_flag='-bexport'
12911 no_entry_flag='-bnoentry'
12912 fi
12913
12914 # When large executables or shared objects are built, AIX ld can
12915 # have problems creating the table of contents. If linking a library
12916 # or program results in "error TOC overflow" add -mminimal-toc to
12917 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12918 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12919
12920 archive_cmds_CXX=''
12921 hardcode_direct_CXX=yes
12922 hardcode_direct_absolute_CXX=yes
12923 hardcode_libdir_separator_CXX=':'
12924 link_all_deplibs_CXX=yes
12925 file_list_spec_CXX='${wl}-f,'
12926
12927 if test "$GXX" = yes; then
12928 case $host_os in aix4.[012]|aix4.[012].*)
12929 # We only want to do this on AIX 4.2 and lower, the check
12930 # below for broken collect2 doesn't work under 4.3+
12931 collect2name=`${CC} -print-prog-name=collect2`
12932 if test -f "$collect2name" &&
12933 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12934 then
12935 # We have reworked collect2
12936 :
12937 else
12938 # We have old collect2
12939 hardcode_direct_CXX=unsupported
12940 # It fails to find uninstalled libraries when the uninstalled
12941 # path is not listed in the libpath. Setting hardcode_minus_L
12942 # to unsupported forces relinking
12943 hardcode_minus_L_CXX=yes
12944 hardcode_libdir_flag_spec_CXX='-L$libdir'
12945 hardcode_libdir_separator_CXX=
12946 fi
12947 esac
12948 shared_flag='-shared'
12949 if test "$aix_use_runtimelinking" = yes; then
12950 shared_flag="$shared_flag "'${wl}-G'
12951 fi
12952 else
12953 # not using gcc
12954 if test "$host_cpu" = ia64; then
12955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12956 # chokes on -Wl,-G. The following line is correct:
12957 shared_flag='-G'
12958 else
12959 if test "$aix_use_runtimelinking" = yes; then
12960 shared_flag='${wl}-G'
12961 else
12962 shared_flag='${wl}-bM:SRE'
12963 fi
12964 fi
12965 fi
12966
12967 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12968 # It seems that -bexpall does not export symbols beginning with
12969 # underscore (_), so it is better to generate a list of symbols to
12970 # export.
12971 always_export_symbols_CXX=yes
12972 if test "$aix_use_runtimelinking" = yes; then
12973 # Warning - without using the other runtime loading flags (-brtl),
12974 # -berok will link without error, but may produce a broken library.
12975 allow_undefined_flag_CXX='-berok'
12976 # Determine the default libpath from the value encoded in an empty
12977 # executable.
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979/* end confdefs.h. */
12980
12981int
12982main ()
12983{
12984
12985 ;
12986 return 0;
12987}
12988_ACEOF
12989if ac_fn_cxx_try_link "$LINENO"; then :
12990
12991lt_aix_libpath_sed='
12992 /Import File Strings/,/^$/ {
12993 /^0/ {
12994 s/^0 *\(.*\)$/\1/
12995 p
12996 }
12997 }'
12998aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12999# Check for a 64-bit object if we didn't find anything.
13000if test -z "$aix_libpath"; then
13001 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13002fi
13003fi
13004rm -f core conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13006if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13007
13008 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13009
13010 archive_expsym_cmds_CXX='$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"
13011 else
13012 if test "$host_cpu" = ia64; then
13013 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13014 allow_undefined_flag_CXX="-z nodefs"
13015 archive_expsym_cmds_CXX="\$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"
13016 else
13017 # Determine the default libpath from the value encoded in an
13018 # empty executable.
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020/* end confdefs.h. */
13021
13022int
13023main ()
13024{
13025
13026 ;
13027 return 0;
13028}
13029_ACEOF
13030if ac_fn_cxx_try_link "$LINENO"; then :
13031
13032lt_aix_libpath_sed='
13033 /Import File Strings/,/^$/ {
13034 /^0/ {
13035 s/^0 *\(.*\)$/\1/
13036 p
13037 }
13038 }'
13039aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13040# Check for a 64-bit object if we didn't find anything.
13041if test -z "$aix_libpath"; then
13042 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13043fi
13044fi
13045rm -f core conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13047if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13048
13049 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13050 # Warning - without using the other run time loading flags,
13051 # -berok will link without error, but may produce a broken library.
13052 no_undefined_flag_CXX=' ${wl}-bernotok'
13053 allow_undefined_flag_CXX=' ${wl}-berok'
13054 if test "$with_gnu_ld" = yes; then
13055 # We only use this code for GNU lds that support --whole-archive.
13056 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13057 else
13058 # Exported symbols can be pulled into shared objects from archives
13059 whole_archive_flag_spec_CXX='$convenience'
13060 fi
13061 archive_cmds_need_lc_CXX=yes
13062 # This is similar to how AIX traditionally builds its shared
13063 # libraries.
13064 archive_expsym_cmds_CXX="\$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'
13065 fi
13066 fi
13067 ;;
13068
13069 beos*)
13070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13071 allow_undefined_flag_CXX=unsupported
13072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13073 # support --undefined. This deserves some investigation. FIXME
13074 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13075 else
13076 ld_shlibs_CXX=no
13077 fi
13078 ;;
13079
13080 chorus*)
13081 case $cc_basename in
13082 *)
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13085 ;;
13086 esac
13087 ;;
13088
13089 cygwin* | mingw* | pw32* | cegcc*)
13090 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13091 # as there is no search path for DLLs.
13092 hardcode_libdir_flag_spec_CXX='-L$libdir'
13093 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13094 allow_undefined_flag_CXX=unsupported
13095 always_export_symbols_CXX=no
13096 enable_shared_with_static_runtimes_CXX=yes
13097
13098 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13099 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13100 # If the export-symbols file already is a .def file (1st line
13101 # is EXPORTS), use it as is; otherwise, prepend...
13102 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13103 cp $export_symbols $output_objdir/$soname.def;
13104 else
13105 echo EXPORTS > $output_objdir/$soname.def;
13106 cat $export_symbols >> $output_objdir/$soname.def;
13107 fi~
13108 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13109 else
13110 ld_shlibs_CXX=no
13111 fi
13112 ;;
13113 darwin* | rhapsody*)
13114
13115
6a6d3817
IS
13116
13117 # Publish an arg to allow the user to select that Darwin host (and target)
13118 # libraries should be given install-names like @rpath/libfoo.dylib. This
13119 # requires that the user of the library then adds an 'rpath' to the DSO that
13120 # needs access.
13121 # NOTE: there are defaults below, for systems that support rpaths. The person
13122 # configuring can override the defaults for any system version that supports
13123 # them - they are, however, forced off for system versions without support.
13124 # Check whether --enable-darwin-at-rpath was given.
13125if test "${enable_darwin_at_rpath+set}" = set; then :
13126 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13127 # This is not supported before macOS 10.5 / Darwin9.
13128 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13129 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13131$as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13132 enable_darwin_at_rpath=no
13133 ;;
13134 esac
13135 fi
13136else
13137 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13138 # As above, before 10.5 / Darwin9 this does not work.
13139 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13140 enable_darwin_at_rpath=no
13141 ;;
13142
13143 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13144 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13145 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13146 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13148$as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13149 enable_darwin_at_rpath=yes
13150 ;;
13151 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13152 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13153
13154 esac
13155
13156fi
13157
13158
0a35513e
AH
13159 archive_cmds_need_lc_CXX=no
13160 hardcode_direct_CXX=no
13161 hardcode_automatic_CXX=yes
13162 hardcode_shlibpath_var_CXX=unsupported
13163 if test "$lt_cv_ld_force_load" = "yes"; then
13164 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13165 else
13166 whole_archive_flag_spec_CXX=''
13167 fi
13168 link_all_deplibs_CXX=yes
13169 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13170 case $cc_basename in
13171 ifort*) _lt_dar_can_shared=yes ;;
13172 *) _lt_dar_can_shared=$GCC ;;
13173 esac
13174 if test "$_lt_dar_can_shared" = "yes"; then
13175 output_verbose_link_cmd=func_echo_all
6a6d3817
IS
13176 _lt_install_name='\$rpath/\$soname'
13177 if test "x$enable_darwin_at_rpath" = "xyes"; then
13178 _lt_install_name='@rpath/\$soname'
13179 fi
13180 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
0a35513e 13181 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6a6d3817 13182 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
0a35513e
AH
13183 module_expsym_cmds_CXX="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}"
13184 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
6a6d3817
IS
13185 _lt_install_name='\$rpath/\$soname'
13186 if test "x$enable_darwin_at_rpath" = "xyes"; then
13187 _lt_install_name='@rpath/\$soname'
13188 fi
13189 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
0a35513e
AH
13190 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13191 fi
13192
13193 else
13194 ld_shlibs_CXX=no
13195 fi
13196
13197 ;;
13198
13199 dgux*)
13200 case $cc_basename in
13201 ec++*)
13202 # FIXME: insert proper C++ library support
13203 ld_shlibs_CXX=no
13204 ;;
13205 ghcx*)
13206 # Green Hills C++ Compiler
13207 # FIXME: insert proper C++ library support
13208 ld_shlibs_CXX=no
13209 ;;
13210 *)
13211 # FIXME: insert proper C++ library support
13212 ld_shlibs_CXX=no
13213 ;;
13214 esac
13215 ;;
13216
c6084f68 13217 freebsd2.*)
0a35513e
AH
13218 # C++ shared libraries reported to be fairly broken before
13219 # switch to ELF
13220 ld_shlibs_CXX=no
13221 ;;
13222
13223 freebsd-elf*)
13224 archive_cmds_need_lc_CXX=no
13225 ;;
13226
13227 freebsd* | dragonfly*)
13228 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13229 # conventions
13230 ld_shlibs_CXX=yes
13231 ;;
13232
13233 gnu*)
13234 ;;
13235
13236 haiku*)
13237 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238 link_all_deplibs_CXX=yes
13239 ;;
13240
13241 hpux9*)
13242 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13243 hardcode_libdir_separator_CXX=:
13244 export_dynamic_flag_spec_CXX='${wl}-E'
13245 hardcode_direct_CXX=yes
13246 hardcode_minus_L_CXX=yes # Not in the search PATH,
13247 # but as the default
13248 # location of the library.
13249
13250 case $cc_basename in
13251 CC*)
13252 # FIXME: insert proper C++ library support
13253 ld_shlibs_CXX=no
13254 ;;
13255 aCC*)
13256 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13257 # Commands to make compiler produce verbose output that lists
13258 # what "hidden" libraries, object files and flags are used when
13259 # linking a shared library.
13260 #
13261 # There doesn't appear to be a way to prevent this compiler from
13262 # explicitly linking system object files so we need to strip them
13263 # from the output so that they don't get included in the library
13264 # dependencies.
13265 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13266 ;;
13267 *)
13268 if test "$GXX" = yes; then
13269 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13270 else
13271 # FIXME: insert proper C++ library support
13272 ld_shlibs_CXX=no
13273 fi
13274 ;;
13275 esac
13276 ;;
13277
13278 hpux10*|hpux11*)
13279 if test $with_gnu_ld = no; then
13280 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13281 hardcode_libdir_separator_CXX=:
13282
13283 case $host_cpu in
13284 hppa*64*|ia64*)
13285 ;;
13286 *)
13287 export_dynamic_flag_spec_CXX='${wl}-E'
13288 ;;
13289 esac
13290 fi
13291 case $host_cpu in
13292 hppa*64*|ia64*)
13293 hardcode_direct_CXX=no
13294 hardcode_shlibpath_var_CXX=no
13295 ;;
13296 *)
13297 hardcode_direct_CXX=yes
13298 hardcode_direct_absolute_CXX=yes
13299 hardcode_minus_L_CXX=yes # Not in the search PATH,
13300 # but as the default
13301 # location of the library.
13302 ;;
13303 esac
13304
13305 case $cc_basename in
13306 CC*)
13307 # FIXME: insert proper C++ library support
13308 ld_shlibs_CXX=no
13309 ;;
13310 aCC*)
13311 case $host_cpu in
13312 hppa*64*)
4e4ba647 13313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
0a35513e
AH
13314 ;;
13315 ia64*)
13316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13317 ;;
13318 *)
13319 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13320 ;;
13321 esac
13322 # Commands to make compiler produce verbose output that lists
13323 # what "hidden" libraries, object files and flags are used when
13324 # linking a shared library.
13325 #
13326 # There doesn't appear to be a way to prevent this compiler from
13327 # explicitly linking system object files so we need to strip them
13328 # from the output so that they don't get included in the library
13329 # dependencies.
13330 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13331 ;;
13332 *)
13333 if test "$GXX" = yes; then
13334 if test $with_gnu_ld = no; then
13335 case $host_cpu in
13336 hppa*64*)
4e4ba647 13337 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
0a35513e
AH
13338 ;;
13339 ia64*)
13340 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13341 ;;
13342 *)
13343 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13344 ;;
13345 esac
13346 fi
13347 else
13348 # FIXME: insert proper C++ library support
13349 ld_shlibs_CXX=no
13350 fi
13351 ;;
13352 esac
13353 ;;
13354
13355 interix[3-9]*)
13356 hardcode_direct_CXX=no
13357 hardcode_shlibpath_var_CXX=no
13358 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13359 export_dynamic_flag_spec_CXX='${wl}-E'
13360 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13361 # Instead, shared libraries are loaded at an image base (0x10000000 by
13362 # default) and relocated if they conflict, which is a slow very memory
13363 # consuming and fragmenting process. To avoid this, we pick a random,
13364 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13365 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13366 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13367 archive_expsym_cmds_CXX='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'
13368 ;;
13369 irix5* | irix6*)
13370 case $cc_basename in
13371 CC*)
13372 # SGI C++
13373 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13374
13375 # Archives containing C++ object files must be created using
13376 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13377 # necessary to make sure instantiated templates are included
13378 # in the archive.
13379 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13380 ;;
13381 *)
13382 if test "$GXX" = yes; then
13383 if test "$with_gnu_ld" = no; then
13384 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13385 else
13386 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13387 fi
13388 fi
13389 link_all_deplibs_CXX=yes
13390 ;;
13391 esac
13392 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13393 hardcode_libdir_separator_CXX=:
13394 inherit_rpath_CXX=yes
13395 ;;
13396
13397 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13398 case $cc_basename in
13399 KCC*)
13400 # Kuck and Associates, Inc. (KAI) C++ Compiler
13401
13402 # KCC will only create a shared library if the output file
13403 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13404 # to its proper name (with version) after linking.
13405 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13406 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13407 # Commands to make compiler produce verbose output that lists
13408 # what "hidden" libraries, object files and flags are used when
13409 # linking a shared library.
13410 #
13411 # There doesn't appear to be a way to prevent this compiler from
13412 # explicitly linking system object files so we need to strip them
13413 # from the output so that they don't get included in the library
13414 # dependencies.
13415 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13416
13417 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13419
13420 # Archives containing C++ object files must be created using
13421 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13422 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13423 ;;
13424 icpc* | ecpc* )
13425 # Intel C++
13426 with_gnu_ld=yes
13427 # version 8.0 and above of icpc choke on multiply defined symbols
13428 # if we add $predep_objects and $postdep_objects, however 7.1 and
13429 # earlier do not add the objects themselves.
13430 case `$CC -V 2>&1` in
13431 *"Version 7."*)
13432 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13433 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13434 ;;
13435 *) # Version 8.0 or newer
13436 tmp_idyn=
13437 case $host_cpu in
13438 ia64*) tmp_idyn=' -i_dynamic';;
13439 esac
13440 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13441 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13442 ;;
13443 esac
13444 archive_cmds_need_lc_CXX=no
13445 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13447 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13448 ;;
13449 pgCC* | pgcpp*)
13450 # Portland Group C++ compiler
13451 case `$CC -V` in
13452 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13453 prelink_cmds_CXX='tpldir=Template.dir~
13454 rm -rf $tpldir~
13455 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22e05272 13456 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
0a35513e
AH
13457 old_archive_cmds_CXX='tpldir=Template.dir~
13458 rm -rf $tpldir~
13459 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22e05272 13460 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
0a35513e
AH
13461 $RANLIB $oldlib'
13462 archive_cmds_CXX='tpldir=Template.dir~
13463 rm -rf $tpldir~
13464 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22e05272 13465 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
0a35513e
AH
13466 archive_expsym_cmds_CXX='tpldir=Template.dir~
13467 rm -rf $tpldir~
13468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22e05272 13469 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
0a35513e
AH
13470 ;;
13471 *) # Version 6 and above use weak symbols
13472 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13473 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13474 ;;
13475 esac
13476
13477 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13478 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13479 whole_archive_flag_spec_CXX='${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'
13480 ;;
13481 cxx*)
13482 # Compaq C++
13483 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13484 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13485
13486 runpath_var=LD_RUN_PATH
13487 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13488 hardcode_libdir_separator_CXX=:
13489
13490 # Commands to make compiler produce verbose output that lists
13491 # what "hidden" libraries, object files and flags are used when
13492 # linking a shared library.
13493 #
13494 # There doesn't appear to be a way to prevent this compiler from
13495 # explicitly linking system object files so we need to strip them
13496 # from the output so that they don't get included in the library
13497 # dependencies.
13498 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13499 ;;
13500 xl* | mpixl* | bgxl*)
13501 # IBM XL 8.0 on PPC, with GNU ld
13502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13503 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13504 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13505 if test "x$supports_anon_versioning" = xyes; then
13506 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13508 echo "local: *; };" >> $output_objdir/$libname.ver~
13509 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13510 fi
13511 ;;
13512 *)
13513 case `$CC -V 2>&1 | sed 5q` in
13514 *Sun\ C*)
13515 # Sun C++ 5.9
13516 no_undefined_flag_CXX=' -zdefs'
13517 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13518 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13519 hardcode_libdir_flag_spec_CXX='-R$libdir'
13520 whole_archive_flag_spec_CXX='${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'
13521 compiler_needs_object_CXX=yes
13522
13523 # Not sure whether something based on
13524 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13525 # would be better.
13526 output_verbose_link_cmd='func_echo_all'
13527
13528 # Archives containing C++ object files must be created using
13529 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13530 # necessary to make sure instantiated templates are included
13531 # in the archive.
13532 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13533 ;;
13534 esac
13535 ;;
13536 esac
13537 ;;
13538
13539 lynxos*)
13540 # FIXME: insert proper C++ library support
13541 ld_shlibs_CXX=no
13542 ;;
13543
13544 m88k*)
13545 # FIXME: insert proper C++ library support
13546 ld_shlibs_CXX=no
13547 ;;
13548
13549 mvs*)
13550 case $cc_basename in
13551 cxx*)
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13554 ;;
13555 *)
13556 # FIXME: insert proper C++ library support
13557 ld_shlibs_CXX=no
13558 ;;
13559 esac
13560 ;;
13561
13562 netbsd*)
13563 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13564 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13565 wlarc=
13566 hardcode_libdir_flag_spec_CXX='-R$libdir'
13567 hardcode_direct_CXX=yes
13568 hardcode_shlibpath_var_CXX=no
13569 fi
13570 # Workaround some broken pre-1.5 toolchains
13571 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13572 ;;
13573
13574 *nto* | *qnx*)
13575 ld_shlibs_CXX=yes
13576 ;;
13577
13578 openbsd2*)
13579 # C++ shared libraries are fairly broken
13580 ld_shlibs_CXX=no
13581 ;;
13582
13583 openbsd*)
13584 if test -f /usr/libexec/ld.so; then
13585 hardcode_direct_CXX=yes
13586 hardcode_shlibpath_var_CXX=no
13587 hardcode_direct_absolute_CXX=yes
13588 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13589 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13590 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13591 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13592 export_dynamic_flag_spec_CXX='${wl}-E'
13593 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13594 fi
13595 output_verbose_link_cmd=func_echo_all
13596 else
13597 ld_shlibs_CXX=no
13598 fi
13599 ;;
13600
13601 osf3* | osf4* | osf5*)
13602 case $cc_basename in
13603 KCC*)
13604 # Kuck and Associates, Inc. (KAI) C++ Compiler
13605
13606 # KCC will only create a shared library if the output file
13607 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13608 # to its proper name (with version) after linking.
13609 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13610
13611 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13612 hardcode_libdir_separator_CXX=:
13613
13614 # Archives containing C++ object files must be created using
13615 # the KAI C++ compiler.
13616 case $host in
13617 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13618 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13619 esac
13620 ;;
13621 RCC*)
13622 # Rational C++ 2.4.1
13623 # FIXME: insert proper C++ library support
13624 ld_shlibs_CXX=no
13625 ;;
13626 cxx*)
13627 case $host in
13628 osf3*)
13629 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13630 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13632 ;;
13633 *)
13634 allow_undefined_flag_CXX=' -expect_unresolved \*'
13635 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13636 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13637 echo "-hidden">> $lib.exp~
13638 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13639 $RM $lib.exp'
13640 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13641 ;;
13642 esac
13643
13644 hardcode_libdir_separator_CXX=:
13645
13646 # Commands to make compiler produce verbose output that lists
13647 # what "hidden" libraries, object files and flags are used when
13648 # linking a shared library.
13649 #
13650 # There doesn't appear to be a way to prevent this compiler from
13651 # explicitly linking system object files so we need to strip them
13652 # from the output so that they don't get included in the library
13653 # dependencies.
13654 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13655 ;;
13656 *)
13657 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13658 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13659 case $host in
13660 osf3*)
13661 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13662 ;;
13663 *)
13664 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13665 ;;
13666 esac
13667
13668 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13669 hardcode_libdir_separator_CXX=:
13670
13671 # Commands to make compiler produce verbose output that lists
13672 # what "hidden" libraries, object files and flags are used when
13673 # linking a shared library.
13674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13675
13676 else
13677 # FIXME: insert proper C++ library support
13678 ld_shlibs_CXX=no
13679 fi
13680 ;;
13681 esac
13682 ;;
13683
13684 psos*)
13685 # FIXME: insert proper C++ library support
13686 ld_shlibs_CXX=no
13687 ;;
13688
13689 sunos4*)
13690 case $cc_basename in
13691 CC*)
13692 # Sun C++ 4.x
13693 # FIXME: insert proper C++ library support
13694 ld_shlibs_CXX=no
13695 ;;
13696 lcc*)
13697 # Lucid
13698 # FIXME: insert proper C++ library support
13699 ld_shlibs_CXX=no
13700 ;;
13701 *)
13702 # FIXME: insert proper C++ library support
13703 ld_shlibs_CXX=no
13704 ;;
13705 esac
13706 ;;
13707
13708 solaris*)
13709 case $cc_basename in
13710 CC*)
13711 # Sun C++ 4.2, 5.x and Centerline C++
13712 archive_cmds_need_lc_CXX=yes
13713 no_undefined_flag_CXX=' -zdefs'
13714 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13715 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13716 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13717
13718 hardcode_libdir_flag_spec_CXX='-R$libdir'
13719 hardcode_shlibpath_var_CXX=no
13720 case $host_os in
13721 solaris2.[0-5] | solaris2.[0-5].*) ;;
13722 *)
13723 # The compiler driver will combine and reorder linker options,
13724 # but understands `-z linker_flag'.
13725 # Supported since Solaris 2.6 (maybe 2.5.1?)
13726 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13727 ;;
13728 esac
13729 link_all_deplibs_CXX=yes
13730
13731 output_verbose_link_cmd='func_echo_all'
13732
13733 # Archives containing C++ object files must be created using
13734 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13735 # necessary to make sure instantiated templates are included
13736 # in the archive.
13737 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13738 ;;
13739 gcx*)
13740 # Green Hills C++ Compiler
13741 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13742
13743 # The C++ compiler must be used to create the archive.
13744 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13745 ;;
13746 *)
13747 # GNU C++ compiler with Solaris linker
13748 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13749 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13750 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13751 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13752 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13753 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13754
13755 # Commands to make compiler produce verbose output that lists
13756 # what "hidden" libraries, object files and flags are used when
13757 # linking a shared library.
13758 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13759 else
13760 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13761 # platform.
13762 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13763 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13764 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13765
13766 # Commands to make compiler produce verbose output that lists
13767 # what "hidden" libraries, object files and flags are used when
13768 # linking a shared library.
13769 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13770 fi
13771
13772 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13773 case $host_os in
13774 solaris2.[0-5] | solaris2.[0-5].*) ;;
13775 *)
13776 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13777 ;;
13778 esac
13779 fi
13780 ;;
13781 esac
13782 ;;
13783
13784 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13785 no_undefined_flag_CXX='${wl}-z,text'
13786 archive_cmds_need_lc_CXX=no
13787 hardcode_shlibpath_var_CXX=no
13788 runpath_var='LD_RUN_PATH'
13789
13790 case $cc_basename in
13791 CC*)
13792 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13793 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13794 ;;
13795 *)
13796 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13797 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 ;;
13799 esac
13800 ;;
13801
13802 sysv5* | sco3.2v5* | sco5v6*)
13803 # Note: We can NOT use -z defs as we might desire, because we do not
13804 # link with -lc, and that would cause any symbols used from libc to
13805 # always be unresolved, which means just about no library would
13806 # ever link correctly. If we're not using GNU ld we use -z text
13807 # though, which does catch some bad symbols but isn't as heavy-handed
13808 # as -z defs.
13809 no_undefined_flag_CXX='${wl}-z,text'
13810 allow_undefined_flag_CXX='${wl}-z,nodefs'
13811 archive_cmds_need_lc_CXX=no
13812 hardcode_shlibpath_var_CXX=no
13813 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13814 hardcode_libdir_separator_CXX=':'
13815 link_all_deplibs_CXX=yes
13816 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13817 runpath_var='LD_RUN_PATH'
13818
13819 case $cc_basename in
13820 CC*)
13821 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13822 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13823 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13824 '"$old_archive_cmds_CXX"
13825 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13826 '"$reload_cmds_CXX"
13827 ;;
13828 *)
13829 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13831 ;;
13832 esac
13833 ;;
13834
13835 tandem*)
13836 case $cc_basename in
13837 NCC*)
13838 # NonStop-UX NCC 3.20
13839 # FIXME: insert proper C++ library support
13840 ld_shlibs_CXX=no
13841 ;;
13842 *)
13843 # FIXME: insert proper C++ library support
13844 ld_shlibs_CXX=no
13845 ;;
13846 esac
13847 ;;
13848
13849 vxworks*)
0ecd0f1c
OH
13850 # For VxWorks ports, we assume the use of a GNU linker with
13851 # standard elf conventions.
13852 ld_shlibs_CXX=yes
0a35513e
AH
13853 ;;
13854
13855 *)
13856 # FIXME: insert proper C++ library support
13857 ld_shlibs_CXX=no
13858 ;;
13859 esac
13860
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13862$as_echo "$ld_shlibs_CXX" >&6; }
13863 test "$ld_shlibs_CXX" = no && can_build_shared=no
13864
13865 GCC_CXX="$GXX"
13866 LD_CXX="$LD"
13867
13868 ## CAVEAT EMPTOR:
13869 ## There is no encapsulation within the following macros, do not change
13870 ## the running order or otherwise move them around unless you know exactly
13871 ## what you are doing...
13872 # Dependencies to place before and after the object being linked:
13873predep_objects_CXX=
13874postdep_objects_CXX=
13875predeps_CXX=
13876postdeps_CXX=
13877compiler_lib_search_path_CXX=
13878
13879cat > conftest.$ac_ext <<_LT_EOF
13880class Foo
13881{
13882public:
13883 Foo (void) { a = 0; }
13884private:
13885 int a;
13886};
13887_LT_EOF
13888
13889if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13890 (eval $ac_compile) 2>&5
13891 ac_status=$?
13892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 test $ac_status = 0; }; then
13894 # Parse the compiler output and extract the necessary
13895 # objects, libraries and library flags.
13896
13897 # Sentinel used to keep track of whether or not we are before
13898 # the conftest object file.
13899 pre_test_object_deps_done=no
13900
13901 for p in `eval "$output_verbose_link_cmd"`; do
13902 case $p in
13903
13904 -L* | -R* | -l*)
13905 # Some compilers place space between "-{L,R}" and the path.
13906 # Remove the space.
13907 if test $p = "-L" ||
13908 test $p = "-R"; then
13909 prev=$p
13910 continue
13911 else
13912 prev=
13913 fi
13914
13915 if test "$pre_test_object_deps_done" = no; then
13916 case $p in
13917 -L* | -R*)
13918 # Internal compiler library paths should come after those
13919 # provided the user. The postdeps already come after the
13920 # user supplied libs so there is no need to process them.
13921 if test -z "$compiler_lib_search_path_CXX"; then
13922 compiler_lib_search_path_CXX="${prev}${p}"
13923 else
13924 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13925 fi
13926 ;;
13927 # The "-l" case would never come before the object being
13928 # linked, so don't bother handling this case.
13929 esac
13930 else
13931 if test -z "$postdeps_CXX"; then
13932 postdeps_CXX="${prev}${p}"
13933 else
13934 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13935 fi
13936 fi
13937 ;;
13938
13939 *.$objext)
13940 # This assumes that the test object file only shows up
13941 # once in the compiler output.
13942 if test "$p" = "conftest.$objext"; then
13943 pre_test_object_deps_done=yes
13944 continue
13945 fi
13946
13947 if test "$pre_test_object_deps_done" = no; then
13948 if test -z "$predep_objects_CXX"; then
13949 predep_objects_CXX="$p"
13950 else
13951 predep_objects_CXX="$predep_objects_CXX $p"
13952 fi
13953 else
13954 if test -z "$postdep_objects_CXX"; then
13955 postdep_objects_CXX="$p"
13956 else
13957 postdep_objects_CXX="$postdep_objects_CXX $p"
13958 fi
13959 fi
13960 ;;
13961
13962 *) ;; # Ignore the rest.
13963
13964 esac
13965 done
13966
13967 # Clean up.
13968 rm -f a.out a.exe
13969else
13970 echo "libtool.m4: error: problem compiling CXX test program"
13971fi
13972
13973$RM -f confest.$objext
13974
13975# PORTME: override above test on systems where it is broken
13976case $host_os in
13977interix[3-9]*)
13978 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13979 # hack all around it, let's just trust "g++" to DTRT.
13980 predep_objects_CXX=
13981 postdep_objects_CXX=
13982 postdeps_CXX=
13983 ;;
13984
13985linux*)
13986 case `$CC -V 2>&1 | sed 5q` in
13987 *Sun\ C*)
13988 # Sun C++ 5.9
13989
13990 # The more standards-conforming stlport4 library is
13991 # incompatible with the Cstd library. Avoid specifying
13992 # it if it's in CXXFLAGS. Ignore libCrun as
13993 # -library=stlport4 depends on it.
13994 case " $CXX $CXXFLAGS " in
13995 *" -library=stlport4 "*)
13996 solaris_use_stlport4=yes
13997 ;;
13998 esac
13999
14000 if test "$solaris_use_stlport4" != yes; then
14001 postdeps_CXX='-library=Cstd -library=Crun'
14002 fi
14003 ;;
14004 esac
14005 ;;
14006
14007solaris*)
14008 case $cc_basename in
14009 CC*)
14010 # The more standards-conforming stlport4 library is
14011 # incompatible with the Cstd library. Avoid specifying
14012 # it if it's in CXXFLAGS. Ignore libCrun as
14013 # -library=stlport4 depends on it.
14014 case " $CXX $CXXFLAGS " in
14015 *" -library=stlport4 "*)
14016 solaris_use_stlport4=yes
14017 ;;
14018 esac
14019
14020 # Adding this requires a known-good setup of shared libraries for
14021 # Sun compiler versions before 5.6, else PIC objects from an old
14022 # archive will be linked into the output, leading to subtle bugs.
14023 if test "$solaris_use_stlport4" != yes; then
14024 postdeps_CXX='-library=Cstd -library=Crun'
14025 fi
14026 ;;
14027 esac
14028 ;;
14029esac
14030
14031
14032case " $postdeps_CXX " in
14033*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14034esac
14035 compiler_lib_search_dirs_CXX=
14036if test -n "${compiler_lib_search_path_CXX}"; then
14037 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14038fi
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070 lt_prog_compiler_wl_CXX=
14071lt_prog_compiler_pic_CXX=
14072lt_prog_compiler_static_CXX=
14073
14074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14075$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14076
14077 # C++ specific cases for pic, static, wl, etc.
14078 if test "$GXX" = yes; then
14079 lt_prog_compiler_wl_CXX='-Wl,'
14080 lt_prog_compiler_static_CXX='-static'
14081
14082 case $host_os in
14083 aix*)
14084 # All AIX code is PIC.
14085 if test "$host_cpu" = ia64; then
14086 # AIX 5 now supports IA64 processor
14087 lt_prog_compiler_static_CXX='-Bstatic'
14088 fi
690c45b8 14089 lt_prog_compiler_pic_CXX='-fPIC'
0a35513e
AH
14090 ;;
14091
14092 amigaos*)
14093 case $host_cpu in
14094 powerpc)
14095 # see comment about AmigaOS4 .so support
14096 lt_prog_compiler_pic_CXX='-fPIC'
14097 ;;
14098 m68k)
14099 # FIXME: we need at least 68020 code to build shared libraries, but
14100 # adding the `-m68020' flag to GCC prevents building anything better,
14101 # like `-m68040'.
14102 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14103 ;;
14104 esac
14105 ;;
14106
14107 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14108 # PIC is the default for these OSes.
14109 ;;
14110 mingw* | cygwin* | os2* | pw32* | cegcc*)
14111 # This hack is so that the source file can tell whether it is being
14112 # built for inclusion in a dll (and should export symbols for example).
14113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14114 # (--disable-auto-import) libraries
14115 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14116 ;;
14117 darwin* | rhapsody*)
14118 # PIC is the default on this platform
14119 # Common symbols not allowed in MH_DYLIB files
14120 lt_prog_compiler_pic_CXX='-fno-common'
14121 ;;
14122 *djgpp*)
14123 # DJGPP does not support shared libraries at all
14124 lt_prog_compiler_pic_CXX=
14125 ;;
14126 haiku*)
14127 # PIC is the default for Haiku.
14128 # The "-static" flag exists, but is broken.
14129 lt_prog_compiler_static_CXX=
14130 ;;
14131 interix[3-9]*)
14132 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14133 # Instead, we relocate shared libraries at runtime.
14134 ;;
14135 sysv4*MP*)
14136 if test -d /usr/nec; then
14137 lt_prog_compiler_pic_CXX=-Kconform_pic
14138 fi
14139 ;;
14140 hpux*)
14141 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14142 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14143 # sets the default TLS model and affects inlining.
14144 case $host_cpu in
14145 hppa*64*)
14146 ;;
14147 *)
14148 lt_prog_compiler_pic_CXX='-fPIC'
14149 ;;
14150 esac
14151 ;;
14152 *qnx* | *nto*)
14153 # QNX uses GNU C++, but need to define -shared option too, otherwise
14154 # it will coredump.
14155 lt_prog_compiler_pic_CXX='-fPIC -shared'
14156 ;;
14157 *)
14158 lt_prog_compiler_pic_CXX='-fPIC'
14159 ;;
14160 esac
14161 else
14162 case $host_os in
14163 aix[4-9]*)
14164 # All AIX code is PIC.
14165 if test "$host_cpu" = ia64; then
14166 # AIX 5 now supports IA64 processor
14167 lt_prog_compiler_static_CXX='-Bstatic'
14168 else
14169 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14170 fi
14171 ;;
14172 chorus*)
14173 case $cc_basename in
14174 cxch68*)
14175 # Green Hills C++ Compiler
14176 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14177 ;;
14178 esac
14179 ;;
14180 dgux*)
14181 case $cc_basename in
14182 ec++*)
14183 lt_prog_compiler_pic_CXX='-KPIC'
14184 ;;
14185 ghcx*)
14186 # Green Hills C++ Compiler
14187 lt_prog_compiler_pic_CXX='-pic'
14188 ;;
14189 *)
14190 ;;
14191 esac
14192 ;;
14193 freebsd* | dragonfly*)
14194 # FreeBSD uses GNU C++
14195 ;;
14196 hpux9* | hpux10* | hpux11*)
14197 case $cc_basename in
14198 CC*)
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14201 if test "$host_cpu" != ia64; then
14202 lt_prog_compiler_pic_CXX='+Z'
14203 fi
14204 ;;
14205 aCC*)
14206 lt_prog_compiler_wl_CXX='-Wl,'
14207 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14208 case $host_cpu in
14209 hppa*64*|ia64*)
14210 # +Z the default
14211 ;;
14212 *)
14213 lt_prog_compiler_pic_CXX='+Z'
14214 ;;
14215 esac
14216 ;;
14217 *)
14218 ;;
14219 esac
14220 ;;
14221 interix*)
14222 # This is c89, which is MS Visual C++ (no shared libs)
14223 # Anyone wants to do a port?
14224 ;;
14225 irix5* | irix6* | nonstopux*)
14226 case $cc_basename in
14227 CC*)
14228 lt_prog_compiler_wl_CXX='-Wl,'
14229 lt_prog_compiler_static_CXX='-non_shared'
14230 # CC pic flag -KPIC is the default.
14231 ;;
14232 *)
14233 ;;
14234 esac
14235 ;;
14236 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14237 case $cc_basename in
14238 KCC*)
14239 # KAI C++ Compiler
14240 lt_prog_compiler_wl_CXX='--backend -Wl,'
14241 lt_prog_compiler_pic_CXX='-fPIC'
14242 ;;
14243 ecpc* )
14244 # old Intel C++ for x86_64 which still supported -KPIC.
14245 lt_prog_compiler_wl_CXX='-Wl,'
14246 lt_prog_compiler_pic_CXX='-KPIC'
14247 lt_prog_compiler_static_CXX='-static'
14248 ;;
14249 icpc* )
14250 # Intel C++, used to be incompatible with GCC.
14251 # ICC 10 doesn't accept -KPIC any more.
14252 lt_prog_compiler_wl_CXX='-Wl,'
14253 lt_prog_compiler_pic_CXX='-fPIC'
14254 lt_prog_compiler_static_CXX='-static'
14255 ;;
14256 pgCC* | pgcpp*)
14257 # Portland Group C++ compiler
14258 lt_prog_compiler_wl_CXX='-Wl,'
14259 lt_prog_compiler_pic_CXX='-fpic'
14260 lt_prog_compiler_static_CXX='-Bstatic'
14261 ;;
14262 cxx*)
14263 # Compaq C++
14264 # Make sure the PIC flag is empty. It appears that all Alpha
14265 # Linux and Compaq Tru64 Unix objects are PIC.
14266 lt_prog_compiler_pic_CXX=
14267 lt_prog_compiler_static_CXX='-non_shared'
14268 ;;
14269 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14270 # IBM XL 8.0, 9.0 on PPC and BlueGene
14271 lt_prog_compiler_wl_CXX='-Wl,'
14272 lt_prog_compiler_pic_CXX='-qpic'
14273 lt_prog_compiler_static_CXX='-qstaticlink'
14274 ;;
14275 *)
14276 case `$CC -V 2>&1 | sed 5q` in
14277 *Sun\ C*)
14278 # Sun C++ 5.9
14279 lt_prog_compiler_pic_CXX='-KPIC'
14280 lt_prog_compiler_static_CXX='-Bstatic'
14281 lt_prog_compiler_wl_CXX='-Qoption ld '
14282 ;;
14283 esac
14284 ;;
14285 esac
14286 ;;
14287 lynxos*)
14288 ;;
14289 m88k*)
14290 ;;
14291 mvs*)
14292 case $cc_basename in
14293 cxx*)
14294 lt_prog_compiler_pic_CXX='-W c,exportall'
14295 ;;
14296 *)
14297 ;;
14298 esac
14299 ;;
14300 netbsd*)
14301 ;;
14302 *qnx* | *nto*)
14303 # QNX uses GNU C++, but need to define -shared option too, otherwise
14304 # it will coredump.
14305 lt_prog_compiler_pic_CXX='-fPIC -shared'
14306 ;;
14307 osf3* | osf4* | osf5*)
14308 case $cc_basename in
14309 KCC*)
14310 lt_prog_compiler_wl_CXX='--backend -Wl,'
14311 ;;
14312 RCC*)
14313 # Rational C++ 2.4.1
14314 lt_prog_compiler_pic_CXX='-pic'
14315 ;;
14316 cxx*)
14317 # Digital/Compaq C++
14318 lt_prog_compiler_wl_CXX='-Wl,'
14319 # Make sure the PIC flag is empty. It appears that all Alpha
14320 # Linux and Compaq Tru64 Unix objects are PIC.
14321 lt_prog_compiler_pic_CXX=
14322 lt_prog_compiler_static_CXX='-non_shared'
14323 ;;
14324 *)
14325 ;;
14326 esac
14327 ;;
14328 psos*)
14329 ;;
14330 solaris*)
14331 case $cc_basename in
14332 CC*)
14333 # Sun C++ 4.2, 5.x and Centerline C++
14334 lt_prog_compiler_pic_CXX='-KPIC'
14335 lt_prog_compiler_static_CXX='-Bstatic'
14336 lt_prog_compiler_wl_CXX='-Qoption ld '
14337 ;;
14338 gcx*)
14339 # Green Hills C++ Compiler
14340 lt_prog_compiler_pic_CXX='-PIC'
14341 ;;
14342 *)
14343 ;;
14344 esac
14345 ;;
14346 sunos4*)
14347 case $cc_basename in
14348 CC*)
14349 # Sun C++ 4.x
14350 lt_prog_compiler_pic_CXX='-pic'
14351 lt_prog_compiler_static_CXX='-Bstatic'
14352 ;;
14353 lcc*)
14354 # Lucid
14355 lt_prog_compiler_pic_CXX='-pic'
14356 ;;
14357 *)
14358 ;;
14359 esac
14360 ;;
14361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14362 case $cc_basename in
14363 CC*)
14364 lt_prog_compiler_wl_CXX='-Wl,'
14365 lt_prog_compiler_pic_CXX='-KPIC'
14366 lt_prog_compiler_static_CXX='-Bstatic'
14367 ;;
14368 esac
14369 ;;
14370 tandem*)
14371 case $cc_basename in
14372 NCC*)
14373 # NonStop-UX NCC 3.20
14374 lt_prog_compiler_pic_CXX='-KPIC'
14375 ;;
14376 *)
14377 ;;
14378 esac
14379 ;;
14380 vxworks*)
14381 ;;
14382 *)
14383 lt_prog_compiler_can_build_shared_CXX=no
14384 ;;
14385 esac
14386 fi
14387
14388case $host_os in
14389 # For platforms which do not support PIC, -DPIC is meaningless:
14390 *djgpp*)
14391 lt_prog_compiler_pic_CXX=
14392 ;;
14393 *)
14394 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14395 ;;
14396esac
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14398$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14399
14400
14401
14402#
14403# Check to make sure the PIC flag actually works.
14404#
14405if test -n "$lt_prog_compiler_pic_CXX"; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14407$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22e05272 14408if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
0a35513e
AH
14409 $as_echo_n "(cached) " >&6
14410else
14411 lt_cv_prog_compiler_pic_works_CXX=no
14412 ac_outfile=conftest.$ac_objext
14413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14414 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14415 # Insert the option either (1) after the last *FLAGS variable, or
14416 # (2) before a word containing "conftest.", or (3) at the end.
14417 # Note that $ac_compile itself does not contain backslashes and begins
14418 # with a dollar sign (not a hyphen), so the echo should work correctly.
14419 # The option is referenced via a variable to avoid confusing sed.
14420 lt_compile=`echo "$ac_compile" | $SED \
14421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14423 -e 's:$: $lt_compiler_flag:'`
14424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14425 (eval "$lt_compile" 2>conftest.err)
14426 ac_status=$?
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 if (exit $ac_status) && test -s "$ac_outfile"; then
14430 # The compiler can only warn and ignore the option if not recognized
14431 # So say no if there are warnings other than the usual output.
14432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14435 lt_cv_prog_compiler_pic_works_CXX=yes
14436 fi
14437 fi
14438 $RM conftest*
14439
14440fi
14441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14442$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14443
14444if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14445 case $lt_prog_compiler_pic_CXX in
14446 "" | " "*) ;;
14447 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14448 esac
14449else
14450 lt_prog_compiler_pic_CXX=
14451 lt_prog_compiler_can_build_shared_CXX=no
14452fi
14453
14454fi
14455
14456
14457
14458#
14459# Check to make sure the static flag actually works.
14460#
14461wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14463$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 14464if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
0a35513e
AH
14465 $as_echo_n "(cached) " >&6
14466else
14467 lt_cv_prog_compiler_static_works_CXX=no
14468 save_LDFLAGS="$LDFLAGS"
14469 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14470 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14471 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14472 # The linker can only warn and ignore the option if not recognized
14473 # So say no if there are warnings
14474 if test -s conftest.err; then
14475 # Append any errors to the config.log.
14476 cat conftest.err 1>&5
14477 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14479 if diff conftest.exp conftest.er2 >/dev/null; then
14480 lt_cv_prog_compiler_static_works_CXX=yes
14481 fi
14482 else
14483 lt_cv_prog_compiler_static_works_CXX=yes
14484 fi
14485 fi
14486 $RM -r conftest*
14487 LDFLAGS="$save_LDFLAGS"
14488
14489fi
14490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14491$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14492
14493if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14494 :
14495else
14496 lt_prog_compiler_static_CXX=
14497fi
14498
14499
14500
14501
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14503$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14504if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
0a35513e
AH
14505 $as_echo_n "(cached) " >&6
14506else
14507 lt_cv_prog_compiler_c_o_CXX=no
14508 $RM -r conftest 2>/dev/null
14509 mkdir conftest
14510 cd conftest
14511 mkdir out
14512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14513
14514 lt_compiler_flag="-o out/conftest2.$ac_objext"
14515 # Insert the option either (1) after the last *FLAGS variable, or
14516 # (2) before a word containing "conftest.", or (3) at the end.
14517 # Note that $ac_compile itself does not contain backslashes and begins
14518 # with a dollar sign (not a hyphen), so the echo should work correctly.
14519 lt_compile=`echo "$ac_compile" | $SED \
14520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14522 -e 's:$: $lt_compiler_flag:'`
14523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14524 (eval "$lt_compile" 2>out/conftest.err)
14525 ac_status=$?
14526 cat out/conftest.err >&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14529 then
14530 # The compiler can only warn and ignore the option if not recognized
14531 # So say no if there are warnings
14532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14533 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14534 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14535 lt_cv_prog_compiler_c_o_CXX=yes
14536 fi
14537 fi
14538 chmod u+w . 2>&5
14539 $RM conftest*
14540 # SGI C++ compiler will create directory out/ii_files/ for
14541 # template instantiation
14542 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14543 $RM out/* && rmdir out
14544 cd ..
14545 $RM -r conftest
14546 $RM conftest*
14547
14548fi
14549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14550$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14551
14552
14553
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14555$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 14556if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
0a35513e
AH
14557 $as_echo_n "(cached) " >&6
14558else
14559 lt_cv_prog_compiler_c_o_CXX=no
14560 $RM -r conftest 2>/dev/null
14561 mkdir conftest
14562 cd conftest
14563 mkdir out
14564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14565
14566 lt_compiler_flag="-o out/conftest2.$ac_objext"
14567 # Insert the option either (1) after the last *FLAGS variable, or
14568 # (2) before a word containing "conftest.", or (3) at the end.
14569 # Note that $ac_compile itself does not contain backslashes and begins
14570 # with a dollar sign (not a hyphen), so the echo should work correctly.
14571 lt_compile=`echo "$ac_compile" | $SED \
14572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14574 -e 's:$: $lt_compiler_flag:'`
14575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14576 (eval "$lt_compile" 2>out/conftest.err)
14577 ac_status=$?
14578 cat out/conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14581 then
14582 # The compiler can only warn and ignore the option if not recognized
14583 # So say no if there are warnings
14584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14585 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14586 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14587 lt_cv_prog_compiler_c_o_CXX=yes
14588 fi
14589 fi
14590 chmod u+w . 2>&5
14591 $RM conftest*
14592 # SGI C++ compiler will create directory out/ii_files/ for
14593 # template instantiation
14594 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14595 $RM out/* && rmdir out
14596 cd ..
14597 $RM -r conftest
14598 $RM conftest*
14599
14600fi
14601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14602$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14603
14604
14605
14606
14607hard_links="nottested"
14608if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14609 # do not overwrite the value of need_locks provided by the user
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14611$as_echo_n "checking if we can lock with hard links... " >&6; }
14612 hard_links=yes
14613 $RM conftest*
14614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14615 touch conftest.a
14616 ln conftest.a conftest.b 2>&5 || hard_links=no
14617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14619$as_echo "$hard_links" >&6; }
14620 if test "$hard_links" = no; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14622$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14623 need_locks=warn
14624 fi
14625else
14626 need_locks=no
14627fi
14628
14629
14630
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14632$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14633
14634 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14635 case $host_os in
14636 aix[4-9]*)
14637 # If we're using GNU nm, then we don't want the "-C" option.
14638 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14639 # Also, AIX nm treats weak defined symbols like other global defined
14640 # symbols, whereas GNU nm marks them as "W".
14641 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14642 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14643 else
84c1b9d3 14644 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
0a35513e
AH
14645 fi
14646 ;;
14647 pw32*)
14648 export_symbols_cmds_CXX="$ltdll_cmds"
14649 ;;
14650 cygwin* | mingw* | cegcc*)
14651 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14652 ;;
14653 *)
14654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14655 ;;
14656 esac
14657 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14658
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14660$as_echo "$ld_shlibs_CXX" >&6; }
14661test "$ld_shlibs_CXX" = no && can_build_shared=no
14662
14663with_gnu_ld_CXX=$with_gnu_ld
14664
14665
14666
14667
14668
14669
14670#
14671# Do we need to explicitly link libc?
14672#
14673case "x$archive_cmds_need_lc_CXX" in
14674x|xyes)
14675 # Assume -lc should be added
14676 archive_cmds_need_lc_CXX=yes
14677
14678 if test "$enable_shared" = yes && test "$GCC" = yes; then
14679 case $archive_cmds_CXX in
14680 *'~'*)
14681 # FIXME: we may have to deal with multi-command sequences.
14682 ;;
14683 '$CC '*)
14684 # Test whether the compiler implicitly links with -lc since on some
14685 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14686 # to ld, don't add -lc before -lgcc.
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14688$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 14689if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
0a35513e
AH
14690 $as_echo_n "(cached) " >&6
14691else
14692 $RM conftest*
14693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14694
14695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14696 (eval $ac_compile) 2>&5
14697 ac_status=$?
14698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14699 test $ac_status = 0; } 2>conftest.err; then
14700 soname=conftest
14701 lib=conftest
14702 libobjs=conftest.$ac_objext
14703 deplibs=
14704 wl=$lt_prog_compiler_wl_CXX
14705 pic_flag=$lt_prog_compiler_pic_CXX
14706 compiler_flags=-v
14707 linker_flags=-v
14708 verstring=
14709 output_objdir=.
14710 libname=conftest
14711 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14712 allow_undefined_flag_CXX=
14713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14714 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14715 ac_status=$?
14716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14717 test $ac_status = 0; }
14718 then
14719 lt_cv_archive_cmds_need_lc_CXX=no
14720 else
14721 lt_cv_archive_cmds_need_lc_CXX=yes
14722 fi
14723 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14724 else
14725 cat conftest.err 1>&5
14726 fi
14727 $RM conftest*
14728
14729fi
14730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14731$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14732 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14733 ;;
14734 esac
14735 fi
14736 ;;
14737esac
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14803$as_echo_n "checking dynamic linker characteristics... " >&6; }
14804
14805library_names_spec=
14806libname_spec='lib$name'
14807soname_spec=
14808shrext_cmds=".so"
14809postinstall_cmds=
14810postuninstall_cmds=
14811finish_cmds=
14812finish_eval=
14813shlibpath_var=
14814shlibpath_overrides_runpath=unknown
14815version_type=none
14816dynamic_linker="$host_os ld.so"
14817sys_lib_dlsearch_path_spec="/lib /usr/lib"
14818need_lib_prefix=unknown
14819hardcode_into_libs=no
14820
14821# when you set need_version to no, make sure it does not cause -set_version
14822# flags to be left without arguments
14823need_version=unknown
14824
14825case $host_os in
14826aix3*)
14827 version_type=linux
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14829 shlibpath_var=LIBPATH
14830
14831 # AIX 3 has no versioning support, so we append a major version to the name.
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 ;;
14834
14835aix[4-9]*)
14836 version_type=linux
14837 need_lib_prefix=no
14838 need_version=no
14839 hardcode_into_libs=yes
14840 if test "$host_cpu" = ia64; then
14841 # AIX 5 supports IA64
14842 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 else
14845 # With GCC up to 2.95.x, collect2 would create an import file
14846 # for dependence libraries. The import file would start with
14847 # the line `#! .'. This would cause the generated library to
14848 # depend on `.', always an invalid library. This was fixed in
14849 # development snapshots of GCC prior to 3.0.
14850 case $host_os in
14851 aix4 | aix4.[01] | aix4.[01].*)
14852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14853 echo ' yes '
14854 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14855 :
14856 else
14857 can_build_shared=no
14858 fi
14859 ;;
14860 esac
14861 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14862 # soname into executable. Probably we can add versioning support to
14863 # collect2, so additional links can be useful in future.
14864 if test "$aix_use_runtimelinking" = yes; then
14865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14866 # instead of lib<name>.a to let people know that these are not
14867 # typical AIX shared libraries.
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 else
14870 # We preserve .a as extension for shared libraries through AIX4.2
14871 # and later when we are not doing run time linking.
14872 library_names_spec='${libname}${release}.a $libname.a'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 fi
14875 shlibpath_var=LIBPATH
14876 fi
14877 ;;
14878
14879amigaos*)
14880 case $host_cpu in
14881 powerpc)
14882 # Since July 2007 AmigaOS4 officially supports .so libraries.
14883 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 ;;
14886 m68k)
14887 library_names_spec='$libname.ixlibrary $libname.a'
14888 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14889 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'
14890 ;;
14891 esac
14892 ;;
14893
14894beos*)
14895 library_names_spec='${libname}${shared_ext}'
14896 dynamic_linker="$host_os ld.so"
14897 shlibpath_var=LIBRARY_PATH
14898 ;;
14899
14900bsdi[45]*)
14901 version_type=linux
14902 need_version=no
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14908 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14909 # the default ld.so.conf also contains /usr/contrib/lib and
14910 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14911 # libtool to hard-code these into programs
14912 ;;
14913
14914cygwin* | mingw* | pw32* | cegcc*)
14915 version_type=windows
14916 shrext_cmds=".dll"
14917 need_version=no
14918 need_lib_prefix=no
14919
14920 case $GCC,$host_os in
14921 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14922 library_names_spec='$libname.dll.a'
14923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14924 postinstall_cmds='base_file=`basename \${file}`~
14925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14926 dldir=$destdir/`dirname \$dlpath`~
14927 test -d \$dldir || mkdir -p \$dldir~
14928 $install_prog $dir/$dlname \$dldir/$dlname~
14929 chmod a+x \$dldir/$dlname~
14930 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14931 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14932 fi'
14933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14934 dlpath=$dir/\$dldll~
14935 $RM \$dlpath'
14936 shlibpath_overrides_runpath=yes
14937
14938 case $host_os in
14939 cygwin*)
14940 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14942
14943 ;;
14944 mingw* | cegcc*)
14945 # MinGW DLLs use traditional 'lib' prefix
14946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14947 ;;
14948 pw32*)
14949 # pw32 DLLs use 'pw' prefix rather than 'lib'
14950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14951 ;;
14952 esac
14953 ;;
14954
14955 *)
14956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14957 ;;
14958 esac
14959 dynamic_linker='Win32 ld.exe'
14960 # FIXME: first we should search . and the directory the executable is in
14961 shlibpath_var=PATH
14962 ;;
14963
14964darwin* | rhapsody*)
14965 dynamic_linker="$host_os dyld"
14966 version_type=darwin
14967 need_lib_prefix=no
14968 need_version=no
14969 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14970 soname_spec='${libname}${release}${major}$shared_ext'
14971 shlibpath_overrides_runpath=yes
14972 shlibpath_var=DYLD_LIBRARY_PATH
14973 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14974
14975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14976 ;;
14977
14978dgux*)
14979 version_type=linux
14980 need_lib_prefix=no
14981 need_version=no
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 ;;
14986
14987freebsd* | dragonfly*)
14988 # DragonFly does not have aout. When/if they implement a new
14989 # versioning mechanism, adjust this.
14990 if test -x /usr/bin/objformat; then
14991 objformat=`/usr/bin/objformat`
14992 else
14993 case $host_os in
c6084f68 14994 freebsd[23].*) objformat=aout ;;
0a35513e
AH
14995 *) objformat=elf ;;
14996 esac
14997 fi
14998 version_type=freebsd-$objformat
14999 case $version_type in
15000 freebsd-elf*)
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15002 need_version=no
15003 need_lib_prefix=no
15004 ;;
15005 freebsd-*)
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15007 need_version=yes
15008 ;;
15009 esac
15010 shlibpath_var=LD_LIBRARY_PATH
15011 case $host_os in
c6084f68 15012 freebsd2.*)
0a35513e
AH
15013 shlibpath_overrides_runpath=yes
15014 ;;
15015 freebsd3.[01]* | freebsdelf3.[01]*)
15016 shlibpath_overrides_runpath=yes
15017 hardcode_into_libs=yes
15018 ;;
15019 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15020 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15021 shlibpath_overrides_runpath=no
15022 hardcode_into_libs=yes
15023 ;;
15024 *) # from 4.6 on, and DragonFly
15025 shlibpath_overrides_runpath=yes
15026 hardcode_into_libs=yes
15027 ;;
15028 esac
15029 ;;
15030
0a35513e
AH
15031haiku*)
15032 version_type=linux
15033 need_lib_prefix=no
15034 need_version=no
15035 dynamic_linker="$host_os runtime_loader"
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LIBRARY_PATH
15039 shlibpath_overrides_runpath=yes
ead5103c 15040 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
0a35513e
AH
15041 hardcode_into_libs=yes
15042 ;;
15043
15044hpux9* | hpux10* | hpux11*)
15045 # Give a soname corresponding to the major version so that dld.sl refuses to
15046 # link against other versions.
15047 version_type=sunos
15048 need_lib_prefix=no
15049 need_version=no
15050 case $host_cpu in
15051 ia64*)
15052 shrext_cmds='.so'
15053 hardcode_into_libs=yes
15054 dynamic_linker="$host_os dld.so"
15055 shlibpath_var=LD_LIBRARY_PATH
15056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058 soname_spec='${libname}${release}${shared_ext}$major'
15059 if test "X$HPUX_IA64_MODE" = X32; then
15060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15061 else
15062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15063 fi
15064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15065 ;;
15066 hppa*64*)
15067 shrext_cmds='.sl'
15068 hardcode_into_libs=yes
15069 dynamic_linker="$host_os dld.sl"
15070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15073 soname_spec='${libname}${release}${shared_ext}$major'
15074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15076 ;;
15077 *)
15078 shrext_cmds='.sl'
15079 dynamic_linker="$host_os dld.sl"
15080 shlibpath_var=SHLIB_PATH
15081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 ;;
15085 esac
15086 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15087 postinstall_cmds='chmod 555 $lib'
15088 # or fails outright, so override atomically:
15089 install_override_mode=555
15090 ;;
15091
15092interix[3-9]*)
15093 version_type=linux
15094 need_lib_prefix=no
15095 need_version=no
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15099 shlibpath_var=LD_LIBRARY_PATH
15100 shlibpath_overrides_runpath=no
15101 hardcode_into_libs=yes
15102 ;;
15103
15104irix5* | irix6* | nonstopux*)
15105 case $host_os in
15106 nonstopux*) version_type=nonstopux ;;
15107 *)
15108 if test "$lt_cv_prog_gnu_ld" = yes; then
15109 version_type=linux
15110 else
15111 version_type=irix
15112 fi ;;
15113 esac
15114 need_lib_prefix=no
15115 need_version=no
15116 soname_spec='${libname}${release}${shared_ext}$major'
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15118 case $host_os in
15119 irix5* | nonstopux*)
15120 libsuff= shlibsuff=
15121 ;;
15122 *)
15123 case $LD in # libtool.m4 will add one of these switches to LD
15124 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15125 libsuff= shlibsuff= libmagic=32-bit;;
15126 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15127 libsuff=32 shlibsuff=N32 libmagic=N32;;
15128 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15129 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15130 *) libsuff= shlibsuff= libmagic=never-match;;
15131 esac
15132 ;;
15133 esac
15134 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15135 shlibpath_overrides_runpath=no
15136 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15137 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15138 hardcode_into_libs=yes
15139 ;;
15140
15141# No shared lib support for Linux oldld, aout, or coff.
15142linux*oldld* | linux*aout* | linux*coff*)
15143 dynamic_linker=no
15144 ;;
15145
15146# This must be Linux ELF.
b1e21e5a
CL
15147
15148# uclinux* changes (here and below) have been submitted to the libtool
15149# project, but have not yet been accepted: they are GCC-local changes
15150# for the time being. (See
15151# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
c99a6eb0 15152linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
0a35513e
AH
15153 version_type=linux
15154 need_lib_prefix=no
15155 need_version=no
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 shlibpath_overrides_runpath=no
15161
15162 # Some binutils ld are patched to set DT_RUNPATH
22e05272 15163 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
0a35513e
AH
15164 $as_echo_n "(cached) " >&6
15165else
15166 lt_cv_shlibpath_overrides_runpath=no
15167 save_LDFLAGS=$LDFLAGS
15168 save_libdir=$libdir
15169 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15170 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172/* end confdefs.h. */
15173
15174int
15175main ()
15176{
15177
15178 ;
15179 return 0;
15180}
15181_ACEOF
15182if ac_fn_cxx_try_link "$LINENO"; then :
15183 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15184 lt_cv_shlibpath_overrides_runpath=yes
15185fi
15186fi
15187rm -f core conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
15189 LDFLAGS=$save_LDFLAGS
15190 libdir=$save_libdir
15191
15192fi
15193
15194 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15195
15196 # This implies no fast_install, which is unacceptable.
15197 # Some rework will be needed to allow for fast_install
15198 # before this can be enabled.
15199 hardcode_into_libs=yes
15200
15201 # Append ld.so.conf contents to the search path
15202 if test -f /etc/ld.so.conf; then
15203 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' ' '`
15204 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15205 fi
15206
15207 # We used to test for /lib/ld.so.1 and disable shared libraries on
15208 # powerpc, because MkLinux only supported shared libraries with the
15209 # GNU dynamic linker. Since this was broken with cross compilers,
15210 # most powerpc-linux boxes support dynamic linking these days and
15211 # people can always --disable-shared, the test was removed, and we
15212 # assume the GNU/Linux dynamic linker is in use.
15213 dynamic_linker='GNU/Linux ld.so'
15214 ;;
15215
15216netbsd*)
15217 version_type=sunos
15218 need_lib_prefix=no
15219 need_version=no
15220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15223 dynamic_linker='NetBSD (a.out) ld.so'
15224 else
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 dynamic_linker='NetBSD ld.elf_so'
15228 fi
15229 shlibpath_var=LD_LIBRARY_PATH
15230 shlibpath_overrides_runpath=yes
15231 hardcode_into_libs=yes
15232 ;;
15233
15234newsos6)
15235 version_type=linux
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 shlibpath_overrides_runpath=yes
15239 ;;
15240
15241*nto* | *qnx*)
15242 version_type=qnx
15243 need_lib_prefix=no
15244 need_version=no
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 shlibpath_overrides_runpath=no
15249 hardcode_into_libs=yes
15250 dynamic_linker='ldqnx.so'
15251 ;;
15252
15253openbsd*)
15254 version_type=sunos
15255 sys_lib_dlsearch_path_spec="/usr/lib"
15256 need_lib_prefix=no
15257 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15258 case $host_os in
15259 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15260 *) need_version=no ;;
15261 esac
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15266 case $host_os in
15267 openbsd2.[89] | openbsd2.[89].*)
15268 shlibpath_overrides_runpath=no
15269 ;;
15270 *)
15271 shlibpath_overrides_runpath=yes
15272 ;;
15273 esac
15274 else
15275 shlibpath_overrides_runpath=yes
15276 fi
15277 ;;
15278
15279os2*)
15280 libname_spec='$name'
15281 shrext_cmds=".dll"
15282 need_lib_prefix=no
15283 library_names_spec='$libname${shared_ext} $libname.a'
15284 dynamic_linker='OS/2 ld.exe'
15285 shlibpath_var=LIBPATH
15286 ;;
15287
15288osf3* | osf4* | osf5*)
15289 version_type=osf
15290 need_lib_prefix=no
15291 need_version=no
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 shlibpath_var=LD_LIBRARY_PATH
15295 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15296 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15297 ;;
15298
15299rdos*)
15300 dynamic_linker=no
15301 ;;
15302
15303solaris*)
15304 version_type=linux
15305 need_lib_prefix=no
15306 need_version=no
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 shlibpath_var=LD_LIBRARY_PATH
15310 shlibpath_overrides_runpath=yes
15311 hardcode_into_libs=yes
15312 # ldd complains unless libraries are executable
15313 postinstall_cmds='chmod +x $lib'
15314 ;;
15315
15316sunos4*)
15317 version_type=sunos
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15319 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=yes
15322 if test "$with_gnu_ld" = yes; then
15323 need_lib_prefix=no
15324 fi
15325 need_version=yes
15326 ;;
15327
15328sysv4 | sysv4.3*)
15329 version_type=linux
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 shlibpath_var=LD_LIBRARY_PATH
15333 case $host_vendor in
15334 sni)
15335 shlibpath_overrides_runpath=no
15336 need_lib_prefix=no
15337 runpath_var=LD_RUN_PATH
15338 ;;
15339 siemens)
15340 need_lib_prefix=no
15341 ;;
15342 motorola)
15343 need_lib_prefix=no
15344 need_version=no
15345 shlibpath_overrides_runpath=no
15346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15347 ;;
15348 esac
15349 ;;
15350
15351sysv4*MP*)
15352 if test -d /usr/nec ;then
15353 version_type=linux
15354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15355 soname_spec='$libname${shared_ext}.$major'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 fi
15358 ;;
15359
15360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15361 version_type=freebsd-elf
15362 need_lib_prefix=no
15363 need_version=no
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=yes
15368 hardcode_into_libs=yes
15369 if test "$with_gnu_ld" = yes; then
15370 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15371 else
15372 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15373 case $host_os in
15374 sco3.2v5*)
15375 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15376 ;;
15377 esac
15378 fi
15379 sys_lib_dlsearch_path_spec='/usr/lib'
15380 ;;
15381
15382tpf*)
15383 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15384 version_type=linux
15385 need_lib_prefix=no
15386 need_version=no
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388 shlibpath_var=LD_LIBRARY_PATH
15389 shlibpath_overrides_runpath=no
15390 hardcode_into_libs=yes
15391 ;;
15392
15393uts4*)
15394 version_type=linux
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 ;;
15399
0ecd0f1c
OH
15400# Shared libraries for VwWorks, >= 7 only at this stage
15401# and (fpic) still incompatible with "large" code models
15402# in a few configurations. Only for RTP mode in any case,
15403# and upon explicit request at configure time.
15404vxworks7*)
15405 dynamic_linker=no
15406 case ${with_multisubdir}-${enable_shared} in
15407 *large*)
15408 ;;
15409 *mrtp*-yes)
15410 version_type=linux
15411 need_lib_prefix=no
15412 need_version=no
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 dynamic_linker="$host_os module_loader"
15416 ;;
15417 esac
15418 ;;
0a35513e
AH
15419*)
15420 dynamic_linker=no
15421 ;;
15422esac
15423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15424$as_echo "$dynamic_linker" >&6; }
15425test "$dynamic_linker" = no && can_build_shared=no
15426
15427variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15428if test "$GCC" = yes; then
15429 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15430fi
15431
15432if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15433 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15434fi
15435if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15436 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15437fi
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15477$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15478hardcode_action_CXX=
15479if test -n "$hardcode_libdir_flag_spec_CXX" ||
15480 test -n "$runpath_var_CXX" ||
15481 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15482
15483 # We can hardcode non-existent directories.
15484 if test "$hardcode_direct_CXX" != no &&
15485 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15486 # have to relink, otherwise we might link with an installed library
15487 # when we should be linking with a yet-to-be-installed one
15488 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15489 test "$hardcode_minus_L_CXX" != no; then
15490 # Linking always hardcodes the temporary library directory.
15491 hardcode_action_CXX=relink
15492 else
15493 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15494 hardcode_action_CXX=immediate
15495 fi
15496else
15497 # We cannot hardcode anything, or else we can only hardcode existing
15498 # directories.
15499 hardcode_action_CXX=unsupported
15500fi
15501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15502$as_echo "$hardcode_action_CXX" >&6; }
15503
15504if test "$hardcode_action_CXX" = relink ||
15505 test "$inherit_rpath_CXX" = yes; then
15506 # Fast installation is not supported
15507 enable_fast_install=no
15508elif test "$shlibpath_overrides_runpath" = yes ||
15509 test "$enable_shared" = no; then
15510 # Fast installation is not necessary
15511 enable_fast_install=needless
15512fi
15513
15514
15515
15516
15517
15518
15519
15520 fi # test -n "$compiler"
15521
15522 CC=$lt_save_CC
15523 LDCXX=$LD
15524 LD=$lt_save_LD
15525 GCC=$lt_save_GCC
15526 with_gnu_ld=$lt_save_with_gnu_ld
15527 lt_cv_path_LDCXX=$lt_cv_path_LD
15528 lt_cv_path_LD=$lt_save_path_LD
15529 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15530 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15531fi # test "$_lt_caught_CXX_error" != yes
15532
15533ac_ext=c
15534ac_cpp='$CPP $CPPFLAGS'
15535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15537ac_compiler_gnu=$ac_cv_c_compiler_gnu
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551 ac_config_commands="$ac_config_commands libtool"
15552
15553
15554
15555
15556# Only expand once:
15557
15558
15559
15560
6a6d3817
IS
15561 if test x$enable_darwin_at_rpath = xyes; then
15562 ENABLE_DARWIN_AT_RPATH_TRUE=
15563 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15564else
15565 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15566 ENABLE_DARWIN_AT_RPATH_FALSE=
15567fi
15568
0a35513e
AH
15569
15570
15571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15572$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15573 # Check whether --enable-maintainer-mode was given.
15574if test "${enable_maintainer_mode+set}" = set; then :
15575 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15576else
15577 USE_MAINTAINER_MODE=no
15578fi
15579
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15581$as_echo "$USE_MAINTAINER_MODE" >&6; }
15582 if test $USE_MAINTAINER_MODE = yes; then
15583 MAINTAINER_MODE_TRUE=
15584 MAINTAINER_MODE_FALSE='#'
15585else
15586 MAINTAINER_MODE_TRUE='#'
15587 MAINTAINER_MODE_FALSE=
15588fi
15589
15590 MAINT=$MAINTAINER_MODE_TRUE
15591
15592
15593
15594# For libtool versioning info, format is CURRENT:REVISION:AGE
15595libtool_VERSION=1:0:0
15596
15597
15598# Check header files.
15599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15600$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 15601if ${ac_cv_header_stdc+:} false; then :
0a35513e
AH
15602 $as_echo_n "(cached) " >&6
15603else
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605/* end confdefs.h. */
15606#include <stdlib.h>
15607#include <stdarg.h>
15608#include <string.h>
15609#include <float.h>
15610
15611int
15612main ()
15613{
15614
15615 ;
15616 return 0;
15617}
15618_ACEOF
15619if ac_fn_c_try_compile "$LINENO"; then :
15620 ac_cv_header_stdc=yes
15621else
15622 ac_cv_header_stdc=no
15623fi
15624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625
15626if test $ac_cv_header_stdc = yes; then
15627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h. */
15630#include <string.h>
15631
15632_ACEOF
15633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15634 $EGREP "memchr" >/dev/null 2>&1; then :
15635
15636else
15637 ac_cv_header_stdc=no
15638fi
15639rm -f conftest*
15640
15641fi
15642
15643if test $ac_cv_header_stdc = yes; then
15644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646/* end confdefs.h. */
15647#include <stdlib.h>
15648
15649_ACEOF
15650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15651 $EGREP "free" >/dev/null 2>&1; then :
15652
15653else
15654 ac_cv_header_stdc=no
15655fi
15656rm -f conftest*
15657
15658fi
15659
15660if test $ac_cv_header_stdc = yes; then
15661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15662 if test "$cross_compiling" = yes; then :
15663 :
15664else
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666/* end confdefs.h. */
15667#include <ctype.h>
15668#include <stdlib.h>
15669#if ((' ' & 0x0FF) == 0x020)
15670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15672#else
15673# define ISLOWER(c) \
15674 (('a' <= (c) && (c) <= 'i') \
15675 || ('j' <= (c) && (c) <= 'r') \
15676 || ('s' <= (c) && (c) <= 'z'))
15677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15678#endif
15679
15680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15681int
15682main ()
15683{
15684 int i;
15685 for (i = 0; i < 256; i++)
15686 if (XOR (islower (i), ISLOWER (i))
15687 || toupper (i) != TOUPPER (i))
15688 return 2;
15689 return 0;
15690}
15691_ACEOF
15692if ac_fn_c_try_run "$LINENO"; then :
15693
15694else
15695 ac_cv_header_stdc=no
15696fi
15697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15698 conftest.$ac_objext conftest.beam conftest.$ac_ext
15699fi
15700
15701fi
15702fi
15703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15704$as_echo "$ac_cv_header_stdc" >&6; }
15705if test $ac_cv_header_stdc = yes; then
15706
15707$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15708
15709fi
15710
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15712$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22e05272 15713if ${ac_cv_header_time+:} false; then :
0a35513e
AH
15714 $as_echo_n "(cached) " >&6
15715else
15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717/* end confdefs.h. */
15718#include <sys/types.h>
15719#include <sys/time.h>
15720#include <time.h>
15721
15722int
15723main ()
15724{
15725if ((struct tm *) 0)
15726return 0;
15727 ;
15728 return 0;
15729}
15730_ACEOF
15731if ac_fn_c_try_compile "$LINENO"; then :
15732 ac_cv_header_time=yes
15733else
15734 ac_cv_header_time=no
15735fi
15736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15737fi
15738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15739$as_echo "$ac_cv_header_time" >&6; }
15740if test $ac_cv_header_time = yes; then
15741
15742$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15743
15744fi
15745
15746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15747$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
22e05272 15748if ${gcc_cv_header_string+:} false; then :
0a35513e
AH
15749 $as_echo_n "(cached) " >&6
15750else
15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752/* end confdefs.h. */
15753#include <string.h>
15754#include <strings.h>
15755int
15756main ()
15757{
15758
15759 ;
15760 return 0;
15761}
15762_ACEOF
15763if ac_fn_c_try_compile "$LINENO"; then :
15764 gcc_cv_header_string=yes
15765else
15766 gcc_cv_header_string=no
15767fi
15768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769fi
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15771$as_echo "$gcc_cv_header_string" >&6; }
15772if test $gcc_cv_header_string = yes; then
15773
15774$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15775
15776fi
15777
0258b6e4 15778for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
0a35513e
AH
15779do :
15780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15781ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22e05272 15782if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
0a35513e
AH
15783 cat >>confdefs.h <<_ACEOF
15784#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15785_ACEOF
15786
15787fi
15788
15789done
15790
15791
15792
15793
15794inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15795
15796acx_cv_header_stdint=stddef.h
15797acx_cv_header_stdint_kind="(already complete)"
15798for i in stdint.h $inttype_headers; do
15799 unset ac_cv_type_uintptr_t
15800 unset ac_cv_type_uintmax_t
15801 unset ac_cv_type_int_least32_t
15802 unset ac_cv_type_int_fast32_t
15803 unset ac_cv_type_uint64_t
15804 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15805 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15806#include <$i>
15807"
22e05272 15808if test "x$ac_cv_type_uintmax_t" = xyes; then :
0a35513e
AH
15809 acx_cv_header_stdint=$i
15810else
15811 continue
15812fi
15813
15814 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15815#include <$i>
15816"
22e05272 15817if test "x$ac_cv_type_uintptr_t" = xyes; then :
0a35513e
AH
15818
15819else
15820 acx_cv_header_stdint_kind="(mostly complete)"
15821fi
15822
15823 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15824#include <$i>
15825"
22e05272 15826if test "x$ac_cv_type_int_least32_t" = xyes; then :
0a35513e
AH
15827
15828else
15829 acx_cv_header_stdint_kind="(mostly complete)"
15830fi
15831
15832 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15833#include <$i>
15834"
22e05272 15835if test "x$ac_cv_type_int_fast32_t" = xyes; then :
0a35513e
AH
15836
15837else
15838 acx_cv_header_stdint_kind="(mostly complete)"
15839fi
15840
15841 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15842#include <$i>
15843"
22e05272 15844if test "x$ac_cv_type_uint64_t" = xyes; then :
0a35513e
AH
15845
15846else
15847 acx_cv_header_stdint_kind="(lacks uint64_t)"
15848fi
15849
15850 break
15851done
15852if test "$acx_cv_header_stdint" = stddef.h; then
15853 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15854 for i in stdint.h $inttype_headers; do
15855 unset ac_cv_type_uintptr_t
15856 unset ac_cv_type_uint32_t
15857 unset ac_cv_type_uint64_t
15858 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15859 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15860#include <$i>
15861"
22e05272 15862if test "x$ac_cv_type_uint32_t" = xyes; then :
0a35513e
AH
15863 acx_cv_header_stdint=$i
15864else
15865 continue
15866fi
15867
15868 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15869#include <$i>
15870"
22e05272 15871if test "x$ac_cv_type_uint64_t" = xyes; then :
0a35513e
AH
15872
15873fi
15874
15875 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15876#include <$i>
15877"
22e05272 15878if test "x$ac_cv_type_uintptr_t" = xyes; then :
0a35513e
AH
15879
15880fi
15881
15882 break
15883 done
15884fi
15885if test "$acx_cv_header_stdint" = stddef.h; then
15886 acx_cv_header_stdint_kind="(u_intXX_t style)"
15887 for i in sys/types.h $inttype_headers; do
15888 unset ac_cv_type_u_int32_t
15889 unset ac_cv_type_u_int64_t
15890 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15891 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15892#include <$i>
15893"
22e05272 15894if test "x$ac_cv_type_u_int32_t" = xyes; then :
0a35513e
AH
15895 acx_cv_header_stdint=$i
15896else
15897 continue
15898fi
15899
15900 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15901#include <$i>
15902"
22e05272 15903if test "x$ac_cv_type_u_int64_t" = xyes; then :
0a35513e
AH
15904
15905fi
15906
15907 break
15908 done
15909fi
15910if test "$acx_cv_header_stdint" = stddef.h; then
15911 acx_cv_header_stdint_kind="(using manual detection)"
15912fi
15913
15914test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15915test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15916test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15917test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15918test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15919
15920# ----------------- Summarize what we found so far
15921
15922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15923$as_echo_n "checking what to include in gstdint.h... " >&6; }
15924
15925case `$as_basename -- gstdint.h ||
15926$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15927 Xgstdint.h : 'X\(//\)$' \| \
15928 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15929$as_echo X/gstdint.h |
15930 sed '/^.*\/\([^/][^/]*\)\/*$/{
15931 s//\1/
15932 q
15933 }
15934 /^X\/\(\/\/\)$/{
15935 s//\1/
15936 q
15937 }
15938 /^X\/\(\/\).*/{
15939 s//\1/
15940 q
15941 }
15942 s/.*/./; q'` in
15943 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15944$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15945 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15946$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15947 *) ;;
15948esac
15949
15950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15951$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15952
15953# ----------------- done included file, check C basic types --------
15954
15955# Lacking an uintptr_t? Test size of void *
15956case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15957 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15958# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15959# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15960# This bug is HP SR number 8606223364.
15961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15962$as_echo_n "checking size of void *... " >&6; }
22e05272 15963if ${ac_cv_sizeof_void_p+:} false; then :
0a35513e
AH
15964 $as_echo_n "(cached) " >&6
15965else
15966 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15967
15968else
15969 if test "$ac_cv_type_void_p" = yes; then
15970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
15972as_fn_error 77 "cannot compute sizeof (void *)
15973See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
15974 else
15975 ac_cv_sizeof_void_p=0
15976 fi
15977fi
15978
15979fi
15980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15981$as_echo "$ac_cv_sizeof_void_p" >&6; }
15982
15983
15984
15985cat >>confdefs.h <<_ACEOF
15986#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15987_ACEOF
15988
15989 ;;
15990esac
15991
15992# Lacking an uint64_t? Test size of long
15993case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15994 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15995# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15996# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15997# This bug is HP SR number 8606223364.
15998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15999$as_echo_n "checking size of long... " >&6; }
22e05272 16000if ${ac_cv_sizeof_long+:} false; then :
0a35513e
AH
16001 $as_echo_n "(cached) " >&6
16002else
16003 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16004
16005else
16006 if test "$ac_cv_type_long" = yes; then
16007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16009as_fn_error 77 "cannot compute sizeof (long)
16010See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
16011 else
16012 ac_cv_sizeof_long=0
16013 fi
16014fi
16015
16016fi
16017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16018$as_echo "$ac_cv_sizeof_long" >&6; }
16019
16020
16021
16022cat >>confdefs.h <<_ACEOF
16023#define SIZEOF_LONG $ac_cv_sizeof_long
16024_ACEOF
16025
16026 ;;
16027esac
16028
16029if test $acx_cv_header_stdint = stddef.h; then
16030 # Lacking a good header? Test size of everything and deduce all types.
16031 # The cast to long int works around a bug in the HP C Compiler
16032# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16033# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16034# This bug is HP SR number 8606223364.
16035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16036$as_echo_n "checking size of int... " >&6; }
22e05272 16037if ${ac_cv_sizeof_int+:} false; then :
0a35513e
AH
16038 $as_echo_n "(cached) " >&6
16039else
16040 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16041
16042else
16043 if test "$ac_cv_type_int" = yes; then
16044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16046as_fn_error 77 "cannot compute sizeof (int)
16047See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
16048 else
16049 ac_cv_sizeof_int=0
16050 fi
16051fi
16052
16053fi
16054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16055$as_echo "$ac_cv_sizeof_int" >&6; }
16056
16057
16058
16059cat >>confdefs.h <<_ACEOF
16060#define SIZEOF_INT $ac_cv_sizeof_int
16061_ACEOF
16062
16063
16064 # The cast to long int works around a bug in the HP C Compiler
16065# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16066# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16067# This bug is HP SR number 8606223364.
16068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16069$as_echo_n "checking size of short... " >&6; }
22e05272 16070if ${ac_cv_sizeof_short+:} false; then :
0a35513e
AH
16071 $as_echo_n "(cached) " >&6
16072else
16073 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16074
16075else
16076 if test "$ac_cv_type_short" = yes; then
16077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16079as_fn_error 77 "cannot compute sizeof (short)
16080See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
16081 else
16082 ac_cv_sizeof_short=0
16083 fi
16084fi
16085
16086fi
16087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16088$as_echo "$ac_cv_sizeof_short" >&6; }
16089
16090
16091
16092cat >>confdefs.h <<_ACEOF
16093#define SIZEOF_SHORT $ac_cv_sizeof_short
16094_ACEOF
16095
16096
16097 # The cast to long int works around a bug in the HP C Compiler
16098# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16099# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16100# This bug is HP SR number 8606223364.
16101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16102$as_echo_n "checking size of char... " >&6; }
22e05272 16103if ${ac_cv_sizeof_char+:} false; then :
0a35513e
AH
16104 $as_echo_n "(cached) " >&6
16105else
16106 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16107
16108else
16109 if test "$ac_cv_type_char" = yes; then
16110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16112as_fn_error 77 "cannot compute sizeof (char)
16113See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
16114 else
16115 ac_cv_sizeof_char=0
16116 fi
16117fi
16118
16119fi
16120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16121$as_echo "$ac_cv_sizeof_char" >&6; }
16122
16123
16124
16125cat >>confdefs.h <<_ACEOF
16126#define SIZEOF_CHAR $ac_cv_sizeof_char
16127_ACEOF
16128
16129
16130
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16132$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16133 case "$ac_cv_sizeof_char" in
16134 1) acx_cv_type_int8_t=char ;;
22e05272 16135 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
0a35513e
AH
16136 esac
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16138$as_echo "$acx_cv_type_int8_t" >&6; }
16139
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16141$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16142 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16143 2:*) acx_cv_type_int16_t=int ;;
16144 *:2) acx_cv_type_int16_t=short ;;
22e05272 16145 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
0a35513e
AH
16146 esac
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16148$as_echo "$acx_cv_type_int16_t" >&6; }
16149
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16151$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16152 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16153 4:*) acx_cv_type_int32_t=int ;;
16154 *:4) acx_cv_type_int32_t=long ;;
22e05272 16155 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
0a35513e
AH
16156 esac
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16158$as_echo "$acx_cv_type_int32_t" >&6; }
16159fi
16160
16161# These tests are here to make the output prettier
16162
16163if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16164 case "$ac_cv_sizeof_long" in
16165 8) acx_cv_type_int64_t=long ;;
16166 esac
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16168$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16170$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16171fi
16172
16173# Now we can use the above types
16174
16175if test "$ac_cv_type_uintptr_t" != yes; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16177$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16178 case $ac_cv_sizeof_void_p in
16179 2) acx_cv_type_intptr_t=int16_t ;;
16180 4) acx_cv_type_intptr_t=int32_t ;;
16181 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 16182 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
0a35513e
AH
16183 esac
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16185$as_echo "$acx_cv_type_intptr_t" >&6; }
16186fi
16187
16188# ----------------- done all checks, emit header -------------
16189ac_config_commands="$ac_config_commands gstdint.h"
16190
16191
16192
16193
16194
16195ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
22e05272 16196if test "x$ac_cv_header_sys_mman_h" = xyes; then :
0a35513e
AH
16197 gcc_header_sys_mman_h=yes
16198else
16199 gcc_header_sys_mman_h=no
16200fi
16201
16202
16203ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22e05272 16204if test "x$ac_cv_func_mmap" = xyes; then :
0a35513e
AH
16205 gcc_func_mmap=yes
16206else
16207 gcc_func_mmap=no
16208fi
16209
16210if test "$gcc_header_sys_mman_h" != yes \
16211 || test "$gcc_func_mmap" != yes; then
16212 gcc_cv_func_mmap_file=no
16213 gcc_cv_func_mmap_dev_zero=no
16214 gcc_cv_func_mmap_anon=no
16215else
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
16217$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
22e05272 16218if ${gcc_cv_func_mmap_file+:} false; then :
0a35513e
AH
16219 $as_echo_n "(cached) " >&6
16220else
16221 # Add a system to this blacklist if
16222 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
16223 # memory area containing the same data that you'd get if you applied
16224 # read() to the same fd. The only system known to have a problem here
16225 # is VMS, where text files have record structure.
16226 case "$host_os" in
2f6935f4 16227 *vms* | ultrix*)
0a35513e
AH
16228 gcc_cv_func_mmap_file=no ;;
16229 *)
16230 gcc_cv_func_mmap_file=yes;;
16231 esac
16232fi
16233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
16234$as_echo "$gcc_cv_func_mmap_file" >&6; }
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
16236$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
22e05272 16237if ${gcc_cv_func_mmap_dev_zero+:} false; then :
0a35513e
AH
16238 $as_echo_n "(cached) " >&6
16239else
16240 # Add a system to this blacklist if it has mmap() but /dev/zero
16241 # does not exist, or if mmapping /dev/zero does not give anonymous
16242 # zeroed pages with both the following properties:
16243 # 1. If you map N consecutive pages in with one call, and then
16244 # unmap any subset of those pages, the pages that were not
16245 # explicitly unmapped remain accessible.
16246 # 2. If you map two adjacent blocks of memory and then unmap them
16247 # both at once, they must both go away.
16248 # Systems known to be in this category are Windows (all variants),
16249 # VMS, and Darwin.
16250 case "$host_os" in
ad8428c1 16251 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
0a35513e
AH
16252 gcc_cv_func_mmap_dev_zero=no ;;
16253 *)
16254 gcc_cv_func_mmap_dev_zero=yes;;
16255 esac
16256fi
16257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
16258$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
16259
16260 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
16262$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
22e05272 16263if ${gcc_cv_decl_map_anon+:} false; then :
0a35513e
AH
16264 $as_echo_n "(cached) " >&6
16265else
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267/* end confdefs.h. */
16268#include <sys/types.h>
16269#include <sys/mman.h>
16270#include <unistd.h>
16271
16272#ifndef MAP_ANONYMOUS
16273#define MAP_ANONYMOUS MAP_ANON
16274#endif
16275
16276int
16277main ()
16278{
16279int n = MAP_ANONYMOUS;
16280 ;
16281 return 0;
16282}
16283_ACEOF
16284if ac_fn_c_try_compile "$LINENO"; then :
16285 gcc_cv_decl_map_anon=yes
16286else
16287 gcc_cv_decl_map_anon=no
16288fi
16289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290fi
16291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
16292$as_echo "$gcc_cv_decl_map_anon" >&6; }
16293
16294 if test $gcc_cv_decl_map_anon = no; then
16295 gcc_cv_func_mmap_anon=no
16296 else
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
16298$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
22e05272 16299if ${gcc_cv_func_mmap_anon+:} false; then :
0a35513e
AH
16300 $as_echo_n "(cached) " >&6
16301else
16302 # Add a system to this blacklist if it has mmap() and MAP_ANON or
16303 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
16304 # doesn't give anonymous zeroed pages with the same properties listed
16305 # above for use of /dev/zero.
16306 # Systems known to be in this category are Windows, VMS, and SCO Unix.
16307 case "$host_os" in
2f6935f4 16308 *vms* | cygwin* | pe | mingw* | sco* | udk* )
0a35513e
AH
16309 gcc_cv_func_mmap_anon=no ;;
16310 *)
16311 gcc_cv_func_mmap_anon=yes;;
16312 esac
16313fi
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
16315$as_echo "$gcc_cv_func_mmap_anon" >&6; }
16316 fi
16317fi
16318
16319if test $gcc_cv_func_mmap_file = yes; then
16320
16321$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
16322
16323fi
16324if test $gcc_cv_func_mmap_dev_zero = yes; then
16325
16326$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
16327
16328fi
16329if test $gcc_cv_func_mmap_anon = yes; then
16330
16331$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
16332
16333fi
16334
16335
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16337$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22e05272 16338if ${ac_cv_c_bigendian+:} false; then :
0a35513e
AH
16339 $as_echo_n "(cached) " >&6
16340else
16341 ac_cv_c_bigendian=unknown
16342 # See if we're dealing with a universal compiler.
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344/* end confdefs.h. */
16345#ifndef __APPLE_CC__
16346 not a universal capable compiler
16347 #endif
16348 typedef int dummy;
16349
16350_ACEOF
16351if ac_fn_c_try_compile "$LINENO"; then :
16352
16353 # Check for potential -arch flags. It is not universal unless
16354 # there are at least two -arch flags with different values.
16355 ac_arch=
16356 ac_prev=
16357 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16358 if test -n "$ac_prev"; then
16359 case $ac_word in
16360 i?86 | x86_64 | ppc | ppc64)
16361 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16362 ac_arch=$ac_word
16363 else
16364 ac_cv_c_bigendian=universal
16365 break
16366 fi
16367 ;;
16368 esac
16369 ac_prev=
16370 elif test "x$ac_word" = "x-arch"; then
16371 ac_prev=arch
16372 fi
16373 done
16374fi
16375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376 if test $ac_cv_c_bigendian = unknown; then
16377 # See if sys/param.h defines the BYTE_ORDER macro.
16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379/* end confdefs.h. */
16380#include <sys/types.h>
16381 #include <sys/param.h>
16382
16383int
16384main ()
16385{
16386#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16387 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16388 && LITTLE_ENDIAN)
16389 bogus endian macros
16390 #endif
16391
16392 ;
16393 return 0;
16394}
16395_ACEOF
16396if ac_fn_c_try_compile "$LINENO"; then :
16397 # It does; now see whether it defined to BIG_ENDIAN or not.
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399/* end confdefs.h. */
16400#include <sys/types.h>
16401 #include <sys/param.h>
16402
16403int
16404main ()
16405{
16406#if BYTE_ORDER != BIG_ENDIAN
16407 not big endian
16408 #endif
16409
16410 ;
16411 return 0;
16412}
16413_ACEOF
16414if ac_fn_c_try_compile "$LINENO"; then :
16415 ac_cv_c_bigendian=yes
16416else
16417 ac_cv_c_bigendian=no
16418fi
16419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420fi
16421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16422 fi
16423 if test $ac_cv_c_bigendian = unknown; then
16424 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426/* end confdefs.h. */
16427#include <limits.h>
16428
16429int
16430main ()
16431{
16432#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16433 bogus endian macros
16434 #endif
16435
16436 ;
16437 return 0;
16438}
16439_ACEOF
16440if ac_fn_c_try_compile "$LINENO"; then :
16441 # It does; now see whether it defined to _BIG_ENDIAN or not.
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443/* end confdefs.h. */
16444#include <limits.h>
16445
16446int
16447main ()
16448{
16449#ifndef _BIG_ENDIAN
16450 not big endian
16451 #endif
16452
16453 ;
16454 return 0;
16455}
16456_ACEOF
16457if ac_fn_c_try_compile "$LINENO"; then :
16458 ac_cv_c_bigendian=yes
16459else
16460 ac_cv_c_bigendian=no
16461fi
16462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463fi
16464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 fi
16466 if test $ac_cv_c_bigendian = unknown; then
16467 # Compile a test program.
16468 if test "$cross_compiling" = yes; then :
16469 # Try to guess by grepping values from an object file.
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h. */
16472short int ascii_mm[] =
16473 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16474 short int ascii_ii[] =
16475 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16476 int use_ascii (int i) {
16477 return ascii_mm[i] + ascii_ii[i];
16478 }
16479 short int ebcdic_ii[] =
16480 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16481 short int ebcdic_mm[] =
16482 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16483 int use_ebcdic (int i) {
16484 return ebcdic_mm[i] + ebcdic_ii[i];
16485 }
16486 extern int foo;
16487
16488int
16489main ()
16490{
16491return use_ascii (foo) == use_ebcdic (foo);
16492 ;
16493 return 0;
16494}
16495_ACEOF
16496if ac_fn_c_try_compile "$LINENO"; then :
16497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16498 ac_cv_c_bigendian=yes
16499 fi
16500 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16501 if test "$ac_cv_c_bigendian" = unknown; then
16502 ac_cv_c_bigendian=no
16503 else
16504 # finding both strings is unlikely to happen, but who knows?
16505 ac_cv_c_bigendian=unknown
16506 fi
16507 fi
16508fi
16509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16510else
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512/* end confdefs.h. */
16513$ac_includes_default
16514int
16515main ()
16516{
16517
16518 /* Are we little or big endian? From Harbison&Steele. */
16519 union
16520 {
16521 long int l;
16522 char c[sizeof (long int)];
16523 } u;
16524 u.l = 1;
16525 return u.c[sizeof (long int) - 1] == 1;
16526
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531if ac_fn_c_try_run "$LINENO"; then :
16532 ac_cv_c_bigendian=no
16533else
16534 ac_cv_c_bigendian=yes
16535fi
16536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16537 conftest.$ac_objext conftest.beam conftest.$ac_ext
16538fi
16539
16540 fi
16541fi
16542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16543$as_echo "$ac_cv_c_bigendian" >&6; }
16544 case $ac_cv_c_bigendian in #(
16545 yes)
16546 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16547;; #(
16548 no)
16549 ;; #(
16550 universal)
16551
16552$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16553
16554 ;; #(
16555 *)
22e05272 16556 as_fn_error $? "unknown endianness
0a35513e
AH
16557 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16558 esac
16559
16560# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16561
16562
16563# Check to see if -pthread or -lpthread is needed. Prefer the former.
16564# In case the pthread.h system header is not found, this test will fail.
16565XPCFLAGS=""
16566CFLAGS="$CFLAGS -pthread"
16567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568/* end confdefs.h. */
16569#include <pthread.h>
16570 void *g(void *d) { return NULL; }
16571int
16572main ()
16573{
16574pthread_t t; pthread_create(&t,NULL,g,NULL);
16575 ;
16576 return 0;
16577}
16578_ACEOF
16579if ac_fn_c_try_link "$LINENO"; then :
16580 XPCFLAGS=" -Wc,-pthread"
16581else
16582 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584/* end confdefs.h. */
16585#include <pthread.h>
16586 void *g(void *d) { return NULL; }
16587int
16588main ()
16589{
16590pthread_t t; pthread_create(&t,NULL,g,NULL);
16591 ;
16592 return 0;
16593}
16594_ACEOF
16595if ac_fn_c_try_link "$LINENO"; then :
16596
16597else
22e05272 16598 as_fn_error $? "Pthreads are required to build libitm" "$LINENO" 5
0a35513e
AH
16599fi
16600rm -f core conftest.err conftest.$ac_objext \
16601 conftest$ac_exeext conftest.$ac_ext
16602fi
16603rm -f core conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16605
16606# Check for functions needed.
0258b6e4 16607for ac_func in strtoull memalign posix_memalign getauxval
0a35513e
AH
16608do :
16609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16610ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 16611if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
0a35513e
AH
16612 cat >>confdefs.h <<_ACEOF
16613#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16614_ACEOF
16615
16616fi
16617done
16618
16619
16620# Check for broken semaphore implementation on darwin.
16621# sem_init returns: sem_init error: Function not implemented.
16622case "$host" in
16623 *-darwin*)
16624
16625$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16626
16627 ;;
16628esac
16629
16630 # Check whether --enable-linux-futex was given.
16631if test "${enable_linux_futex+set}" = set; then :
16632 enableval=$enable_linux_futex;
16633 case "$enableval" in
16634 yes|no|default) ;;
22e05272 16635 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
0a35513e
AH
16636 esac
16637
16638else
16639 enable_linux_futex=default
16640fi
16641
16642
16643case "$target" in
b1e21e5a 16644 *-linux* | *-uclinux*)
0a35513e
AH
16645 case "$enable_linux_futex" in
16646 default)
16647 # If headers don't have gettid/futex syscalls definition, then
16648 # default to no, otherwise there will be compile time failures.
16649 # Otherwise, default to yes. If we don't detect we are
16650 # compiled/linked against NPTL and not cross-compiling, check
16651 # if programs are run by default against NPTL and if not, issue
16652 # a warning.
16653 enable_linux_futex=no
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655/* end confdefs.h. */
16656#include <sys/syscall.h>
3c086f8d 16657 #include <unistd.h>
0a35513e
AH
16658 int lk;
16659int
16660main ()
16661{
16662syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16663 ;
16664 return 0;
16665}
16666_ACEOF
16667if ac_fn_c_try_link "$LINENO"; then :
16668 save_LIBS="$LIBS"
16669 LIBS="-lpthread $LIBS"
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671/* end confdefs.h. */
16672#ifndef _GNU_SOURCE
16673 #define _GNU_SOURCE 1
16674 #endif
16675 #include <pthread.h>
16676 pthread_t th; void *status;
16677int
16678main ()
16679{
16680pthread_tryjoin_np (th, &status);
16681 ;
16682 return 0;
16683}
16684_ACEOF
16685if ac_fn_c_try_link "$LINENO"; then :
16686 enable_linux_futex=yes
16687else
16688 if test x$cross_compiling = xno; then
16689 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16690 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16692If so, please configure with --disable-linux-futex" >&5
16693$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16694If so, please configure with --disable-linux-futex" >&2;}
16695 fi
16696 fi
16697 enable_linux_futex=yes
16698fi
16699rm -f core conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16701 LIBS="$save_LIBS"
16702fi
16703rm -f core conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16705 ;;
16706 yes)
16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708/* end confdefs.h. */
16709#include <sys/syscall.h>
3c086f8d 16710 #include <unistd.h>
0a35513e
AH
16711 int lk;
16712int
16713main ()
16714{
16715syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16716 ;
16717 return 0;
16718}
16719_ACEOF
16720if ac_fn_c_try_link "$LINENO"; then :
16721
16722else
22e05272 16723 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
0a35513e
AH
16724fi
16725rm -f core conftest.err conftest.$ac_objext \
16726 conftest$ac_exeext conftest.$ac_ext
16727 ;;
16728 esac
16729 ;;
16730 *)
16731 enable_linux_futex=no
16732 ;;
16733esac
16734if test x$enable_linux_futex = xyes; then
16735 :
16736fi
16737
16738
16739# See if we support thread-local storage.
16740
16741
16742 # Check whether --enable-tls was given.
16743if test "${enable_tls+set}" = set; then :
16744 enableval=$enable_tls;
16745 case "$enableval" in
16746 yes|no) ;;
22e05272 16747 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
0a35513e
AH
16748 esac
16749
16750else
16751 enable_tls=yes
16752fi
16753
16754
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16756$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
22e05272 16757if ${gcc_cv_have_tls+:} false; then :
0a35513e
AH
16758 $as_echo_n "(cached) " >&6
16759else
16760
16761 if test "$cross_compiling" = yes; then :
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763/* end confdefs.h. */
16764__thread int a; int b; int main() { return a = b; }
16765_ACEOF
16766if ac_fn_c_try_link "$LINENO"; then :
16767 chktls_save_LDFLAGS="$LDFLAGS"
16768 case $host in
b1e21e5a 16769 *-*-linux* | -*-uclinuxfdpic*)
0a35513e
AH
16770 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16771 ;;
16772 esac
16773 chktls_save_CFLAGS="$CFLAGS"
16774 CFLAGS="-fPIC $CFLAGS"
16775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776/* end confdefs.h. */
16777int f() { return 0; }
16778_ACEOF
16779if ac_fn_c_try_link "$LINENO"; then :
16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781/* end confdefs.h. */
16782__thread int a; int b; int f() { return a = b; }
16783_ACEOF
16784if ac_fn_c_try_link "$LINENO"; then :
16785 gcc_cv_have_tls=yes
16786else
16787 gcc_cv_have_tls=no
16788fi
16789rm -f core conftest.err conftest.$ac_objext \
16790 conftest$ac_exeext conftest.$ac_ext
16791else
16792 gcc_cv_have_tls=yes
16793fi
16794rm -f core conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16796 CFLAGS="$chktls_save_CFLAGS"
16797 LDFLAGS="$chktls_save_LDFLAGS"
16798else
16799 gcc_cv_have_tls=no
16800fi
16801rm -f core conftest.err conftest.$ac_objext \
16802 conftest$ac_exeext conftest.$ac_ext
16803
16804
16805else
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807/* end confdefs.h. */
16808__thread int a; int b; int main() { return a = b; }
16809_ACEOF
16810if ac_fn_c_try_run "$LINENO"; then :
16811 chktls_save_LDFLAGS="$LDFLAGS"
16812 LDFLAGS="-static $LDFLAGS"
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814/* end confdefs.h. */
16815int main() { return 0; }
16816_ACEOF
16817if ac_fn_c_try_link "$LINENO"; then :
16818 if test "$cross_compiling" = yes; then :
16819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16821as_fn_error $? "cannot run test program while cross compiling
16822See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
16823else
16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825/* end confdefs.h. */
16826__thread int a; int b; int main() { return a = b; }
16827_ACEOF
16828if ac_fn_c_try_run "$LINENO"; then :
16829 gcc_cv_have_tls=yes
16830else
16831 gcc_cv_have_tls=no
16832fi
16833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16834 conftest.$ac_objext conftest.beam conftest.$ac_ext
16835fi
16836
16837else
16838 gcc_cv_have_tls=yes
16839fi
16840rm -f core conftest.err conftest.$ac_objext \
16841 conftest$ac_exeext conftest.$ac_ext
16842 LDFLAGS="$chktls_save_LDFLAGS"
16843 if test $gcc_cv_have_tls = yes; then
16844 chktls_save_CFLAGS="$CFLAGS"
16845 thread_CFLAGS=failed
16846 for flag in '' '-pthread' '-lpthread'; do
16847 CFLAGS="$flag $chktls_save_CFLAGS"
16848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849/* end confdefs.h. */
16850#include <pthread.h>
16851 void *g(void *d) { return NULL; }
16852int
16853main ()
16854{
16855pthread_t t; pthread_create(&t,NULL,g,NULL);
16856 ;
16857 return 0;
16858}
16859_ACEOF
16860if ac_fn_c_try_link "$LINENO"; then :
16861 thread_CFLAGS="$flag"
16862fi
16863rm -f core conftest.err conftest.$ac_objext \
16864 conftest$ac_exeext conftest.$ac_ext
16865 if test "X$thread_CFLAGS" != Xfailed; then
16866 break
16867 fi
16868 done
16869 CFLAGS="$chktls_save_CFLAGS"
16870 if test "X$thread_CFLAGS" != Xfailed; then
16871 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16872 if test "$cross_compiling" = yes; then :
16873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16875as_fn_error $? "cannot run test program while cross compiling
16876See \`config.log' for more details" "$LINENO" 5; }
0a35513e
AH
16877else
16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16879/* end confdefs.h. */
16880#include <pthread.h>
16881 __thread int a;
16882 static int *volatile a_in_other_thread;
16883 static void *
16884 thread_func (void *arg)
16885 {
16886 a_in_other_thread = &a;
16887 return (void *)0;
16888 }
16889int
16890main ()
16891{
16892pthread_t thread;
16893 void *thread_retval;
16894 int *volatile a_in_main_thread;
16895 a_in_main_thread = &a;
16896 if (pthread_create (&thread, (pthread_attr_t *)0,
16897 thread_func, (void *)0))
16898 return 0;
16899 if (pthread_join (thread, &thread_retval))
16900 return 0;
16901 return (a_in_other_thread == a_in_main_thread);
16902 ;
16903 return 0;
16904}
16905_ACEOF
16906if ac_fn_c_try_run "$LINENO"; then :
16907 gcc_cv_have_tls=yes
16908else
16909 gcc_cv_have_tls=no
16910fi
16911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16912 conftest.$ac_objext conftest.beam conftest.$ac_ext
16913fi
16914
16915 CFLAGS="$chktls_save_CFLAGS"
16916 fi
16917 fi
16918else
16919 gcc_cv_have_tls=no
16920fi
16921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16922 conftest.$ac_objext conftest.beam conftest.$ac_ext
16923fi
16924
16925fi
16926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16927$as_echo "$gcc_cv_have_tls" >&6; }
16928 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16929
16930$as_echo "#define HAVE_TLS 1" >>confdefs.h
16931
16932 fi
16933
9ce91011 16934# See what sort of export controls are available.
0a35513e
AH
16935
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16937$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
22e05272 16938if ${libitm_cv_have_attribute_visibility+:} false; then :
0a35513e
AH
16939 $as_echo_n "(cached) " >&6
16940else
16941
16942 save_CFLAGS="$CFLAGS"
16943 CFLAGS="$CFLAGS -Werror"
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945/* end confdefs.h. */
16946void __attribute__((visibility("hidden"))) foo(void) { }
16947int
16948main ()
16949{
16950
16951 ;
16952 return 0;
16953}
16954_ACEOF
16955if ac_fn_c_try_compile "$LINENO"; then :
16956 libitm_cv_have_attribute_visibility=yes
16957else
16958 libitm_cv_have_attribute_visibility=no
16959fi
16960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961 CFLAGS="$save_CFLAGS"
16962fi
16963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16964$as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16965 if test $libitm_cv_have_attribute_visibility = yes; then
16966
16967$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16968
16969 fi
16970
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16972$as_echo_n "checking whether the target supports dllexport... " >&6; }
22e05272 16973if ${libitm_cv_have_attribute_dllexport+:} false; then :
0a35513e
AH
16974 $as_echo_n "(cached) " >&6
16975else
16976
16977 save_CFLAGS="$CFLAGS"
16978 CFLAGS="$CFLAGS -Werror"
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980/* end confdefs.h. */
16981void __attribute__((dllexport)) foo(void) { }
16982int
16983main ()
16984{
16985
16986 ;
16987 return 0;
16988}
16989_ACEOF
16990if ac_fn_c_try_compile "$LINENO"; then :
16991 libitm_cv_have_attribute_dllexport=yes
16992else
16993 libitm_cv_have_attribute_dllexport=no
16994fi
16995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16996 CFLAGS="$save_CFLAGS"
16997fi
16998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16999$as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
17000 if test $libitm_cv_have_attribute_dllexport = yes; then
17001
17002$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
17003
17004 fi
17005
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
17007$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
22e05272 17008if ${libitm_cv_have_attribute_alias+:} false; then :
0a35513e
AH
17009 $as_echo_n "(cached) " >&6
17010else
17011
17012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17013/* end confdefs.h. */
17014
17015void foo(void) { }
17016extern void bar(void) __attribute__((alias("foo")));
17017int
17018main ()
17019{
17020bar();
17021 ;
17022 return 0;
17023}
17024_ACEOF
17025if ac_fn_c_try_link "$LINENO"; then :
17026 libitm_cv_have_attribute_alias=yes
17027else
17028 libitm_cv_have_attribute_alias=no
17029fi
17030rm -f core conftest.err conftest.$ac_objext \
17031 conftest$ac_exeext conftest.$ac_ext
17032fi
17033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
17034$as_echo "$libitm_cv_have_attribute_alias" >&6; }
17035 if test $libitm_cv_have_attribute_alias = yes; then
17036
17037$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
17038
17039 fi
17040
9ce91011
RO
17041# Check linker hardware capability support.
17042
0a35513e
AH
17043
17044# Check whether --with-gnu-ld was given.
17045if test "${with_gnu_ld+set}" = set; then :
17046 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17047else
17048 with_gnu_ld=no
17049fi
17050
17051ac_prog=ld
17052if test "$GCC" = yes; then
17053 # Check if gcc -print-prog-name=ld gives a path.
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17055$as_echo_n "checking for ld used by $CC... " >&6; }
17056 case $host in
17057 *-*-mingw*)
17058 # gcc leaves a trailing carriage return which upsets mingw
17059 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17060 *)
17061 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17062 esac
17063 case $ac_prog in
17064 # Accept absolute paths.
17065 [\\/]* | ?:[\\/]*)
17066 re_direlt='/[^/][^/]*/\.\./'
17067 # Canonicalize the pathname of ld
17068 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17069 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17070 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17071 done
17072 test -z "$LD" && LD="$ac_prog"
17073 ;;
17074 "")
17075 # If it fails, then pretend we aren't using GCC.
17076 ac_prog=ld
17077 ;;
17078 *)
17079 # If it is relative, then search for the first ld in PATH.
17080 with_gnu_ld=unknown
17081 ;;
17082 esac
17083elif test "$with_gnu_ld" = yes; then
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17085$as_echo_n "checking for GNU ld... " >&6; }
17086else
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17088$as_echo_n "checking for non-GNU ld... " >&6; }
17089fi
22e05272 17090if ${lt_cv_path_LD+:} false; then :
0a35513e
AH
17091 $as_echo_n "(cached) " >&6
17092else
17093 if test -z "$LD"; then
17094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17095 for ac_dir in $PATH; do
17096 IFS="$lt_save_ifs"
17097 test -z "$ac_dir" && ac_dir=.
17098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17099 lt_cv_path_LD="$ac_dir/$ac_prog"
17100 # Check to see if the program is GNU ld. I'd rather use --version,
17101 # but apparently some variants of GNU ld only accept -v.
17102 # Break only if it was the GNU/non-GNU ld that we prefer.
17103 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17104 *GNU* | *'with BFD'*)
17105 test "$with_gnu_ld" != no && break
17106 ;;
17107 *)
17108 test "$with_gnu_ld" != yes && break
17109 ;;
17110 esac
17111 fi
17112 done
17113 IFS="$lt_save_ifs"
17114else
17115 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17116fi
17117fi
17118
17119LD="$lt_cv_path_LD"
17120if test -n "$LD"; then
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17122$as_echo "$LD" >&6; }
17123else
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17125$as_echo "no" >&6; }
17126fi
22e05272 17127test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
0a35513e
AH
17128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17129$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 17130if ${lt_cv_prog_gnu_ld+:} false; then :
0a35513e
AH
17131 $as_echo_n "(cached) " >&6
17132else
17133 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17134case `$LD -v 2>&1 </dev/null` in
17135*GNU* | *'with BFD'*)
17136 lt_cv_prog_gnu_ld=yes
17137 ;;
17138*)
17139 lt_cv_prog_gnu_ld=no
17140 ;;
17141esac
17142fi
17143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17144$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17145with_gnu_ld=$lt_cv_prog_gnu_ld
17146
17147
17148
17149
17150
17151
17152
9ce91011
RO
17153 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
17154
17155
17156 ac_save_LDFLAGS="$LDFLAGS"
3c698bf0 17157 LDFLAGS="$LFLAGS -mclear-hwcap"
9ce91011 17158
3c698bf0
RO
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
17160$as_echo_n "checking for -mclear-hwcap... " >&6; }
9ce91011
RO
17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162/* end confdefs.h. */
17163
17164int
17165main ()
17166{
17167return 0;
17168 ;
17169 return 0;
17170}
17171_ACEOF
17172if ac_fn_c_try_link "$LINENO"; then :
17173 ac_hwcap_ldflags=yes
17174else
17175 ac_hwcap_ldflags=no
17176fi
17177rm -f core conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17179 if test "$ac_hwcap_ldflags" = "yes"; then
3c698bf0 17180 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
9ce91011
RO
17181 fi
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
17183$as_echo "$ac_hwcap_ldflags" >&6; }
17184
17185 LDFLAGS="$ac_save_LDFLAGS"
17186
17187
17188
17189 if test $ac_hwcap_ldflags != no; then
17190 HAVE_HWCAP_TRUE=
17191 HAVE_HWCAP_FALSE='#'
17192else
17193 HAVE_HWCAP_TRUE='#'
17194 HAVE_HWCAP_FALSE=
17195fi
17196
17197
17198# If defaulting to -mavx, don't clear hwcaps.
17199ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
22e05272 17200if test "x$ac_cv_have_decl___AVX__" = xyes; then :
9ce91011
RO
17201 HWCAP_LDFLAGS=''
17202fi
17203
17204
17205
0a35513e
AH
17206 # If we're not using GNU ld, then there's no point in even trying these
17207 # tests. Check for that first. We should have already tested for gld
17208 # by now (in libtool), but require it now just to be safe...
17209 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
17210 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
17211
17212
17213
17214 # The name set by libtool depends on the version of libtool. Shame on us
17215 # for depending on an impl detail, but c'est la vie. Older versions used
17216 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17217 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17218 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17219 # set (hence we're using an older libtool), then set it.
17220 if test x${with_gnu_ld+set} != xset; then
17221 if test x${ac_cv_prog_gnu_ld+set} != xset; then
17222 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17223 with_gnu_ld=no
17224 else
17225 with_gnu_ld=$ac_cv_prog_gnu_ld
17226 fi
17227 fi
17228
17229 # Start by getting the version number. I think the libtool test already
17230 # does some of this, but throws away the result.
adcd36bc 17231 libitm_ld_is_gold=no
c99a6eb0 17232 libitm_ld_is_mold=no
adcd36bc
RO
17233 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
17234 libitm_ld_is_gold=yes
c99a6eb0
ML
17235 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
17236 libitm_ld_is_mold=yes
adcd36bc 17237 fi
0a35513e 17238
adcd36bc 17239 ldver=`$LD --version 2>/dev/null |
c6c2d1bc 17240 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
0a35513e
AH
17241
17242 libitm_gnu_ld_version=`echo $ldver | \
17243 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17244
17245 # Set --gc-sections.
17246 if test "$with_gnu_ld" = "notbroken"; then
17247 # GNU ld it is! Joy and bunny rabbits!
17248
17249 # All these tests are for C++; save the language and the compiler flags.
17250 # Need to do this so that g++ won't try to link in libstdc++
17251 ac_test_CFLAGS="${CFLAGS+set}"
17252 ac_save_CFLAGS="$CFLAGS"
17253 CFLAGS='-x c++ -Wl,--gc-sections'
17254
17255 # Check for -Wl,--gc-sections
17256 # XXX This test is broken at the moment, as symbols required for linking
17257 # are now in libsupc++ (not built yet). In addition, this test has
17258 # cored on solaris in the past. In addition, --gc-sections doesn't
17259 # really work at the moment (keeps on discarding used sections, first
17260 # .eh_frame and now some of the glibc sections for iconv).
17261 # Bzzzzt. Thanks for playing, maybe next time.
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
17263$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
17264 if test "$cross_compiling" = yes; then :
17265 ac_sectionLDflags=yes
17266else
17267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268/* end confdefs.h. */
17269
17270 int main(void)
17271 {
17272 try { throw 1; }
17273 catch (...) { };
17274 return 0;
17275 }
17276
17277_ACEOF
17278if ac_fn_c_try_run "$LINENO"; then :
17279 ac_sectionLDflags=yes
17280else
17281 ac_sectionLDflags=no
17282fi
17283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17284 conftest.$ac_objext conftest.beam conftest.$ac_ext
17285fi
17286
17287 if test "$ac_test_CFLAGS" = set; then
17288 CFLAGS="$ac_save_CFLAGS"
17289 else
17290 # this is the suspicious part
17291 CFLAGS=''
17292 fi
17293 if test "$ac_sectionLDflags" = "yes"; then
17294 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
17295 fi
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
17297$as_echo "$ac_sectionLDflags" >&6; }
17298 fi
17299
17300 # Set linker optimization flags.
17301 if test x"$with_gnu_ld" = x"yes"; then
17302 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
17303 fi
17304
17305
17306
17307
17308
17309
17310 # Check whether --enable-symvers was given.
17311if test "${enable_symvers+set}" = set; then :
17312 enableval=$enable_symvers;
17313 case "$enableval" in
adcd36bc 17314 yes|no|gnu*|sun) ;;
22e05272 17315 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
0a35513e
AH
17316 esac
17317
17318else
17319 enable_symvers=yes
17320fi
17321
17322
17323
17324# If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
17325# don't know enough about $LD to do tricks...
17326
adcd36bc
RO
17327
17328# Turn a 'yes' into a suitable default.
17329if test x$enable_symvers = xyes ; then
17330 # FIXME The following test is too strict, in theory.
17331 if test $enable_shared = no || test "x$LD" = x; then
17332 enable_symvers=no
17333 else
17334 if test $with_gnu_ld = yes ; then
17335 enable_symvers=gnu
17336 else
17337 case ${target_os} in
17338 # Sun symbol versioning exists since Solaris 2.5.
17339 solaris2.[5-9]* | solaris2.1[0-9]*)
17340 enable_symvers=sun ;;
17341 *)
17342 enable_symvers=no ;;
17343 esac
17344 fi
17345 fi
17346fi
17347
17348# Check if 'sun' was requested on non-Solaris 2 platforms.
17349if test x$enable_symvers = xsun ; then
17350 case ${target_os} in
17351 solaris2*)
17352 # All fine.
17353 ;;
17354 *)
17355 # Unlikely to work.
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
17357$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
17359$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17361$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17362 enable_symvers=no
17363 ;;
17364 esac
0a35513e
AH
17365fi
17366
17367# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17368if test $enable_symvers != no; then
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
17370$as_echo_n "checking for shared libgcc... " >&6; }
17371 ac_save_CFLAGS="$CFLAGS"
17372 CFLAGS=' -lgcc_s'
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374/* end confdefs.h. */
17375
17376int
17377main ()
17378{
17379return 0;
17380 ;
17381 return 0;
17382}
17383_ACEOF
17384if ac_fn_c_try_link "$LINENO"; then :
17385 libitm_shared_libgcc=yes
17386else
17387 libitm_shared_libgcc=no
17388fi
17389rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17391 CFLAGS="$ac_save_CFLAGS"
17392 if test $libitm_shared_libgcc = no; then
17393 cat > conftest.c <<EOF
17394int main (void) { return 0; }
17395EOF
17396 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17397 -shared -shared-libgcc -o conftest.so \
17398 conftest.c -v 2>&1 >/dev/null \
17399 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17400 rm -f conftest.c conftest.so
17401 if test x${libitm_libgcc_s_suffix+set} = xset; then
17402 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
17403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404/* end confdefs.h. */
17405
17406int
17407main ()
17408{
17409return 0;
17410 ;
17411 return 0;
17412}
17413_ACEOF
17414if ac_fn_c_try_link "$LINENO"; then :
17415 libitm_shared_libgcc=yes
17416fi
17417rm -f core conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17419 CFLAGS="$ac_save_CFLAGS"
17420 fi
17421 fi
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17423$as_echo "$libitm_shared_libgcc" >&6; }
17424fi
17425
17426# For GNU ld, we need at least this version. The format is described in
17427# LIBITM_CHECK_LINKER_FEATURES above.
17428libitm_min_gnu_ld_version=21400
17429# XXXXXXXXXXX libitm_gnu_ld_version=21390
17430
17431# Check to see if unspecified "yes" value can win, given results above.
17432# Change "yes" into either "no" or a style name.
adcd36bc
RO
17433if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17434 if test $with_gnu_ld = yes; then
0a35513e
AH
17435 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17436 enable_symvers=gnu
adcd36bc
RO
17437 elif test $libitm_ld_is_gold = yes ; then
17438 enable_symvers=gnu
c99a6eb0
ML
17439 elif test $libitm_ld_is_mold = yes ; then
17440 enable_symvers=gnu
0a35513e
AH
17441 else
17442 # The right tools, the right setup, but too old. Fallbacks?
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17444$as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17446$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17448$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17450$as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17451 if test $libitm_gnu_ld_version -ge 21200 ; then
17452 # Globbing fix is present, proper block support is not.
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17454$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17455 enable_symvers=no
17456 else
17457 # 2.11 or older.
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17459$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17460 enable_symvers=no
17461 fi
17462 fi
adcd36bc
RO
17463 elif test $enable_symvers = sun; then
17464 : All interesting versions of Sun ld support sun style symbol versioning.
0a35513e
AH
17465 else
17466 # just fail for now
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17468$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17470$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17472$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17474$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17475 enable_symvers=no
17476 fi
17477fi
17478
17479 if test $enable_symvers != no; then
17480 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17481 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17482else
17483 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17484 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17485fi
17486
adcd36bc
RO
17487 if test $enable_symvers = gnu; then
17488 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17489 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17490else
17491 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17492 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17493fi
17494
17495 if test $enable_symvers = sun; then
17496 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17497 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17498else
17499 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17500 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17501fi
17502
0a35513e
AH
17503{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17504$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17505
0a35513e
AH
17506if test $enable_symvers = gnu; then
17507
17508$as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17509
17510fi
17511
4bdd090f
RH
17512# See if we can emit unwind info in the sjlj stub.
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17514$as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
22e05272 17515if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
4bdd090f
RH
17516 $as_echo_n "(cached) " >&6
17517else
17518
17519 gcc_cv_as_cfi_pseudo_op=unknown
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521/* end confdefs.h. */
17522asm (".cfi_startproc\n\t.cfi_endproc");
17523int
17524main ()
17525{
17526
17527 ;
17528 return 0;
17529}
17530_ACEOF
17531if ac_fn_c_try_compile "$LINENO"; then :
17532 gcc_cv_as_cfi_pseudo_op=yes
17533else
17534 gcc_cv_as_cfi_pseudo_op=no
17535fi
17536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17537
17538fi
17539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17540$as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17541 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17542
17543$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17544
17545 fi
17546
17547
0a35513e
AH
17548# Determine the proper ABI type for size_t.
17549
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17551$as_echo_n "checking how size_t is mangled... " >&6; }
22e05272 17552if ${libitm_cv_size_t_mangling+:} false; then :
0a35513e
AH
17553 $as_echo_n "(cached) " >&6
17554else
17555
17556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557/* end confdefs.h. */
17558
17559int
17560main ()
17561{
17562extern __SIZE_TYPE__ x; extern unsigned long x;
17563 ;
17564 return 0;
17565}
17566_ACEOF
17567if ac_fn_c_try_compile "$LINENO"; then :
17568 libitm_cv_size_t_mangling=m
17569else
17570
17571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h. */
17573
17574int
17575main ()
17576{
17577extern __SIZE_TYPE__ x; extern unsigned int x;
17578 ;
17579 return 0;
17580}
17581_ACEOF
17582if ac_fn_c_try_compile "$LINENO"; then :
17583 libitm_cv_size_t_mangling=j
17584else
17585
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587/* end confdefs.h. */
17588
17589int
17590main ()
17591{
17592extern __SIZE_TYPE__ x; extern unsigned long long x;
17593 ;
17594 return 0;
17595}
17596_ACEOF
17597if ac_fn_c_try_compile "$LINENO"; then :
17598 libitm_cv_size_t_mangling=y
17599else
17600
17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602/* end confdefs.h. */
17603
17604int
17605main ()
17606{
17607extern __SIZE_TYPE__ x; extern unsigned short x;
17608 ;
17609 return 0;
17610}
17611_ACEOF
17612if ac_fn_c_try_compile "$LINENO"; then :
17613 libitm_cv_size_t_mangling=t
17614else
17615 libitm_cv_size_t_mangling=x
17616fi
17617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17618
17619fi
17620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621
17622fi
17623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17624
17625fi
17626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17627
17628fi
17629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17630$as_echo "$libitm_cv_size_t_mangling" >&6; }
17631 if test $libitm_cv_size_t_mangling = x; then
22e05272 17632 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
0a35513e
AH
17633 fi
17634
17635cat >>confdefs.h <<_ACEOF
17636#define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17637_ACEOF
17638
17639
17640
17641# Get target configury.
17642. ${srcdir}/configure.tgt
01f3428c 17643if test -n "$UNSUPPORTED"; then
22e05272 17644 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
01f3428c
RH
17645fi
17646
0a35513e
AH
17647CFLAGS="$save_CFLAGS $XCFLAGS"
17648
17649# Check for __sync_val_compare_and_swap, but only after the target has
17650# had a chance to set XCFLAGS.
17651
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17653$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
22e05272 17654if ${libitm_cv_have_sync_builtins+:} false; then :
0a35513e
AH
17655 $as_echo_n "(cached) " >&6
17656else
17657
17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659/* end confdefs.h. */
17660
17661int
17662main ()
17663{
17664int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17665 ;
17666 return 0;
17667}
17668_ACEOF
17669if ac_fn_c_try_link "$LINENO"; then :
17670 libitm_cv_have_sync_builtins=yes
17671else
17672 libitm_cv_have_sync_builtins=no
17673fi
17674rm -f core conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17676fi
17677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17678$as_echo "$libitm_cv_have_sync_builtins" >&6; }
17679 if test $libitm_cv_have_sync_builtins = yes; then
17680
17681$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17682
17683 fi
17684
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17686$as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
22e05272 17687if ${libitm_cv_have_64bit_sync_builtins+:} false; then :
0a35513e
AH
17688 $as_echo_n "(cached) " >&6
17689else
17690
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692/* end confdefs.h. */
17693#include <stdint.h>
17694int
17695main ()
17696{
17697uint64_t foo, bar;
17698 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17699 ;
17700 return 0;
17701}
17702_ACEOF
17703if ac_fn_c_try_link "$LINENO"; then :
17704 libitm_cv_have_64bit_sync_builtins=yes
17705else
17706 libitm_cv_have_64bit_sync_builtins=no
17707fi
17708rm -f core conftest.err conftest.$ac_objext \
17709 conftest$ac_exeext conftest.$ac_ext
17710fi
17711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17712$as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17713 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17714
17715$as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17716
17717 fi
17718
430616e7 17719case "${target_cpu}" in
80713347 17720i[34567]86 | x86_64)
430616e7
RH
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17722$as_echo_n "checking if the assembler supports AVX... " >&6; }
22e05272 17723if ${libitm_cv_as_avx+:} false; then :
430616e7
RH
17724 $as_echo_n "(cached) " >&6
17725else
17726
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728/* end confdefs.h. */
17729
17730int
17731main ()
17732{
17733asm("vzeroupper");
17734 ;
17735 return 0;
17736}
17737_ACEOF
17738if ac_fn_c_try_compile "$LINENO"; then :
17739 libitm_cv_as_avx=yes
17740else
17741 libitm_cv_as_avx=no
17742fi
17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744
17745fi
17746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17747$as_echo "$libitm_cv_as_avx" >&6; }
17748 if test x$libitm_cv_as_avx = xyes; then
17749
17750$as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17751
17752 fi
17753 ;;
17754esac
17755
07d3b5c8
RH
17756case "${target_cpu}" in
17757i[34567]86 | x86_64)
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17759$as_echo_n "checking if the assembler supports RTM... " >&6; }
22e05272 17760if ${libitm_cv_as_rtm+:} false; then :
07d3b5c8
RH
17761 $as_echo_n "(cached) " >&6
17762else
17763
17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765/* end confdefs.h. */
17766
17767int
17768main ()
17769{
17770asm("1: xbegin 1b; xend");
17771 ;
17772 return 0;
17773}
17774_ACEOF
17775if ac_fn_c_try_compile "$LINENO"; then :
17776 libitm_cv_as_rtm=yes
17777else
17778 libitm_cv_as_rtm=no
17779fi
17780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17781
17782fi
17783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17784$as_echo "$libitm_cv_as_rtm" >&6; }
17785 if test x$libitm_cv_as_rtm = xyes; then
17786
17787$as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17788
17789 fi
17790 ;;
17791esac
17792
0258b6e4
PB
17793case "${target_cpu}" in
17794powerpc*)
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17796$as_echo_n "checking if the assembler supports HTM... " >&6; }
22e05272 17797if ${libitm_cv_as_htm+:} false; then :
0258b6e4
PB
17798 $as_echo_n "(cached) " >&6
17799else
17800
17801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17802/* end confdefs.h. */
17803
17804int
17805main ()
17806{
17807asm("tbegin. 0; tend. 0");
17808 ;
17809 return 0;
17810}
17811_ACEOF
17812if ac_fn_c_try_compile "$LINENO"; then :
17813 libitm_cv_as_htm=yes
17814else
17815 libitm_cv_as_htm=no
17816fi
17817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818
17819fi
17820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17821$as_echo "$libitm_cv_as_htm" >&6; }
17822 if test x$libitm_cv_as_htm = xyes; then
17823
167f68ed
AK
17824$as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17825
17826 fi
17827 ;;
17828s390*)
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17830$as_echo_n "checking if the assembler supports HTM... " >&6; }
22e05272 17831if ${libitm_cv_as_htm+:} false; then :
167f68ed
AK
17832 $as_echo_n "(cached) " >&6
17833else
17834
17835 save_CFLAGS="$CFLAGS"
17836 CFLAGS="$CFLAGS -march=zEC12"
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838/* end confdefs.h. */
17839
17840int
17841main ()
17842{
17843asm("tbegin 0,0; tend");
17844 ;
17845 return 0;
17846}
17847_ACEOF
17848if ac_fn_c_try_compile "$LINENO"; then :
17849 libitm_cv_as_htm=yes
17850else
17851 libitm_cv_as_htm=no
17852fi
17853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854 CFLAGS="$save_CFLAGS"
17855fi
17856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17857$as_echo "$libitm_cv_as_htm" >&6; }
17858 if test x$libitm_cv_as_htm = xyes; then
17859
0258b6e4
PB
17860$as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17861
17862 fi
17863 ;;
17864esac
17865
8cf36bb3
IS
17866
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17868$as_echo_n "checking whether weak refs work like ELF... " >&6; }
22e05272 17869if ${ac_cv_have_elf_style_weakref+:} false; then :
8cf36bb3
IS
17870 $as_echo_n "(cached) " >&6
17871else
17872
17873 weakref_m4_saved_CFLAGS="$CFLAGS"
17874 case "${host}" in
17875 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17876 *) ;;
17877 esac
17878 if test "$cross_compiling" = yes; then :
17879
17880case "${host}" in
8cf36bb3
IS
17881 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17882 *) ac_cv_have_elf_style_weakref=yes;;
17883esac
17884else
17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886/* end confdefs.h. */
17887
17888extern void fNotToBeFound(void) __attribute__((weak));
17889int main ()
17890{
17891 if (fNotToBeFound)
17892 return 1;
17893 else
17894 return 0;
17895}
17896
17897_ACEOF
17898if ac_fn_c_try_run "$LINENO"; then :
17899 ac_cv_have_elf_style_weakref=yes
17900else
17901 ac_cv_have_elf_style_weakref=no
17902fi
17903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17904 conftest.$ac_objext conftest.beam conftest.$ac_ext
17905fi
17906CFLAGS="$weakref_m4_saved_CFLAGS"
17907fi
17908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17909$as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17910if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17911
17912$as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17913
17914fi
17915
0a35513e
AH
17916# Cleanup and exit.
17917CFLAGS="$save_CFLAGS"
17918cat >confcache <<\_ACEOF
17919# This file is a shell script that caches the results of configure
17920# tests run on this system so they can be shared between configure
17921# scripts and configure runs, see configure's option --config-cache.
17922# It is not useful on other systems. If it contains results you don't
17923# want to keep, you may remove or edit it.
17924#
17925# config.status only pays attention to the cache file if you give it
17926# the --recheck option to rerun configure.
17927#
17928# `ac_cv_env_foo' variables (set or unset) will be overridden when
17929# loading this file, other *unset* `ac_cv_foo' will be assigned the
17930# following values.
17931
17932_ACEOF
17933
17934# The following way of writing the cache mishandles newlines in values,
17935# but we know of no workaround that is simple, portable, and efficient.
17936# So, we kill variables containing newlines.
17937# Ultrix sh set writes to stderr and can't be redirected directly,
17938# and sets the high bit in the cache file unless we assign to the vars.
17939(
17940 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17941 eval ac_val=\$$ac_var
17942 case $ac_val in #(
17943 *${as_nl}*)
17944 case $ac_var in #(
17945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17946$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17947 esac
17948 case $ac_var in #(
17949 _ | IFS | as_nl) ;; #(
17950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17951 *) { eval $ac_var=; unset $ac_var;} ;;
17952 esac ;;
17953 esac
17954 done
17955
17956 (set) 2>&1 |
17957 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17958 *${as_nl}ac_space=\ *)
17959 # `set' does not quote correctly, so add quotes: double-quote
17960 # substitution turns \\\\ into \\, and sed turns \\ into \.
17961 sed -n \
17962 "s/'/'\\\\''/g;
17963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17964 ;; #(
17965 *)
17966 # `set' quotes correctly as required by POSIX, so do not add quotes.
17967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17968 ;;
17969 esac |
17970 sort
17971) |
17972 sed '
17973 /^ac_cv_env_/b end
17974 t clear
17975 :clear
17976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17977 t end
17978 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17979 :end' >>confcache
17980if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17981 if test -w "$cache_file"; then
22e05272 17982 if test "x$cache_file" != "x/dev/null"; then
0a35513e
AH
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17984$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
17985 if test ! -f "$cache_file" || test -h "$cache_file"; then
17986 cat confcache >"$cache_file"
17987 else
17988 case $cache_file in #(
17989 */* | ?:*)
17990 mv -f confcache "$cache_file"$$ &&
17991 mv -f "$cache_file"$$ "$cache_file" ;; #(
17992 *)
17993 mv -f confcache "$cache_file" ;;
17994 esac
17995 fi
17996 fi
0a35513e
AH
17997 else
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17999$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18000 fi
18001fi
18002rm -f confcache
18003
45ba6bf2
DS
18004# Check whether --enable-werror was given.
18005if test "${enable_werror+set}" = set; then :
18006 enableval=$enable_werror;
18007fi
18008
0a35513e 18009# Add -Wall -Werror if we are using GCC.
45ba6bf2
DS
18010if test "x$GCC" = "xyes"; then :
18011 XCFLAGS="$XCFLAGS -Wall"
18012fi
18013if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
18014 XCFLAGS="$XCFLAGS -Werror"
0a35513e
AH
18015fi
18016
18017XCFLAGS="$XCFLAGS $XPCFLAGS"
18018
c51081fc
IT
18019# Add CET specific flags if CET is enabled
18020 # Check whether --enable-cet was given.
18021if test "${enable_cet+set}" = set; then :
18022 enableval=$enable_cet;
18023 case "$enableval" in
a0e1df88 18024 yes|no|auto) ;;
22e05272 18025 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
c51081fc
IT
18026 esac
18027
18028else
8d286dd1 18029 enable_cet=auto
c51081fc
IT
18030fi
18031
18032
14e335ed
IT
18033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
18034$as_echo_n "checking for CET support... " >&6; }
18035
9051b548 18036# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
c51081fc
IT
18037case "$host" in
18038 i[34567]86-*-linux* | x86_64-*-linux*)
18039 case "$enable_cet" in
a0e1df88 18040 auto)
14e335ed 18041 # Check if target supports multi-byte NOPs
c99a6eb0 18042 # and if compiler and assembler support CET insn.
9051b548 18043 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 18044 CFLAGS="$CFLAGS -fcf-protection"
c51081fc
IT
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046/* end confdefs.h. */
18047
18048int
18049main ()
18050{
14e335ed
IT
18051
18052#if !defined(__SSE2__)
18053#error target does not support multi-byte NOPs
18054#else
c51081fc 18055asm ("setssbsy");
14e335ed
IT
18056#endif
18057
c51081fc
IT
18058 ;
18059 return 0;
18060}
18061_ACEOF
18062if ac_fn_c_try_compile "$LINENO"; then :
18063 enable_cet=yes
18064else
18065 enable_cet=no
18066fi
18067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 18068 CFLAGS="$cet_save_CFLAGS"
c51081fc
IT
18069 ;;
18070 yes)
18071 # Check if assembler supports CET.
18072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18073/* end confdefs.h. */
18074
18075int
18076main ()
18077{
18078asm ("setssbsy");
18079 ;
18080 return 0;
18081}
18082_ACEOF
18083if ac_fn_c_try_compile "$LINENO"; then :
18084
18085else
22e05272 18086 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
c51081fc
IT
18087fi
18088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089 ;;
18090 esac
18091 ;;
18092 *)
18093 enable_cet=no
18094 ;;
18095esac
18096if test x$enable_cet = xyes; then
7b47ecf2 18097 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18099$as_echo "yes" >&6; }
18100else
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18102$as_echo "no" >&6; }
c51081fc
IT
18103fi
18104
18105XCFLAGS="$XCFLAGS $CET_FLAGS"
18106
0a35513e
AH
18107
18108
18109
18110
18111if test ${multilib} = yes; then
18112 multilib_arg="--enable-multilib"
18113else
18114 multilib_arg=
18115fi
18116
18117# Set up the set of libraries that we need to link against for libitm.
255a9a1b 18118# Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
0a35513e
AH
18119# which will force linkage against -lpthread (or equivalent for the system).
18120# That's not 100% ideal, but about the best we can do easily.
18121if test $enable_shared = yes; then
18122 link_itm="-litm %{static: $LIBS}"
18123else
18124 link_itm="-litm $LIBS"
18125fi
18126
18127
aebac0ca
RH
18128 if test "$ARCH" = arm; then
18129 ARCH_ARM_TRUE=
18130 ARCH_ARM_FALSE='#'
18131else
18132 ARCH_ARM_TRUE='#'
18133 ARCH_ARM_FALSE=
18134fi
18135
0a35513e
AH
18136 if test "$ARCH" = x86; then
18137 ARCH_X86_TRUE=
18138 ARCH_X86_FALSE='#'
18139else
18140 ARCH_X86_TRUE='#'
18141 ARCH_X86_FALSE=
18142fi
18143
d4b17902
RH
18144 if test "$libitm_cv_as_avx" = yes; then
18145 ARCH_X86_AVX_TRUE=
18146 ARCH_X86_AVX_FALSE='#'
18147else
18148 ARCH_X86_AVX_TRUE='#'
18149 ARCH_X86_AVX_FALSE=
18150fi
18151
0a35513e
AH
18152 if test $enable_linux_futex = yes; then
18153 ARCH_FUTEX_TRUE=
18154 ARCH_FUTEX_FALSE='#'
18155else
18156 ARCH_FUTEX_TRUE='#'
18157 ARCH_FUTEX_FALSE=
18158fi
18159
18160
3c36aa6b
JJ
18161# Determine what GCC version number to use in filesystem paths.
18162
18163 get_gcc_base_ver="cat"
18164
18165# Check whether --with-gcc-major-version-only was given.
18166if test "${with_gcc_major_version_only+set}" = set; then :
18167 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 18168 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
18169 fi
18170
18171fi
18172
18173
18174
18175
0a35513e
AH
18176ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
18177
18178cat >confcache <<\_ACEOF
18179# This file is a shell script that caches the results of configure
18180# tests run on this system so they can be shared between configure
18181# scripts and configure runs, see configure's option --config-cache.
18182# It is not useful on other systems. If it contains results you don't
18183# want to keep, you may remove or edit it.
18184#
18185# config.status only pays attention to the cache file if you give it
18186# the --recheck option to rerun configure.
18187#
18188# `ac_cv_env_foo' variables (set or unset) will be overridden when
18189# loading this file, other *unset* `ac_cv_foo' will be assigned the
18190# following values.
18191
18192_ACEOF
18193
18194# The following way of writing the cache mishandles newlines in values,
18195# but we know of no workaround that is simple, portable, and efficient.
18196# So, we kill variables containing newlines.
18197# Ultrix sh set writes to stderr and can't be redirected directly,
18198# and sets the high bit in the cache file unless we assign to the vars.
18199(
18200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18201 eval ac_val=\$$ac_var
18202 case $ac_val in #(
18203 *${as_nl}*)
18204 case $ac_var in #(
18205 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18206$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18207 esac
18208 case $ac_var in #(
18209 _ | IFS | as_nl) ;; #(
18210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18211 *) { eval $ac_var=; unset $ac_var;} ;;
18212 esac ;;
18213 esac
18214 done
18215
18216 (set) 2>&1 |
18217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18218 *${as_nl}ac_space=\ *)
18219 # `set' does not quote correctly, so add quotes: double-quote
18220 # substitution turns \\\\ into \\, and sed turns \\ into \.
18221 sed -n \
18222 "s/'/'\\\\''/g;
18223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18224 ;; #(
18225 *)
18226 # `set' quotes correctly as required by POSIX, so do not add quotes.
18227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18228 ;;
18229 esac |
18230 sort
18231) |
18232 sed '
18233 /^ac_cv_env_/b end
18234 t clear
18235 :clear
18236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18237 t end
18238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18239 :end' >>confcache
18240if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18241 if test -w "$cache_file"; then
22e05272 18242 if test "x$cache_file" != "x/dev/null"; then
0a35513e
AH
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18244$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18245 if test ! -f "$cache_file" || test -h "$cache_file"; then
18246 cat confcache >"$cache_file"
18247 else
18248 case $cache_file in #(
18249 */* | ?:*)
18250 mv -f confcache "$cache_file"$$ &&
18251 mv -f "$cache_file"$$ "$cache_file" ;; #(
18252 *)
18253 mv -f confcache "$cache_file" ;;
18254 esac
18255 fi
18256 fi
0a35513e
AH
18257 else
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18259$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18260 fi
18261fi
18262rm -f confcache
18263
18264test "x$prefix" = xNONE && prefix=$ac_default_prefix
18265# Let make expand exec_prefix.
18266test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18267
18268DEFS=-DHAVE_CONFIG_H
18269
18270ac_libobjs=
18271ac_ltlibobjs=
22e05272 18272U=
0a35513e
AH
18273for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18274 # 1. Remove the extension, and $U if already installed.
18275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18276 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18278 # will be set to the directory where LIBOBJS objects are built.
18279 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18280 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18281done
18282LIBOBJS=$ac_libobjs
18283
18284LTLIBOBJS=$ac_ltlibobjs
18285
18286
18287if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
22e05272 18288 as_fn_error $? "conditional \"GENINSRC\" was never defined.
0a35513e
AH
18289Usually this means the macro was only invoked conditionally." "$LINENO" 5
18290fi
22e05272
JM
18291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18292$as_echo_n "checking that generated files are newer than configure... " >&6; }
18293 if test -n "$am_sleep_pid"; then
18294 # Hide warnings about reused PIDs.
18295 wait $am_sleep_pid 2>/dev/null
18296 fi
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18298$as_echo "done" >&6; }
0a35513e
AH
18299 if test -n "$EXEEXT"; then
18300 am__EXEEXT_TRUE=
18301 am__EXEEXT_FALSE='#'
18302else
18303 am__EXEEXT_TRUE='#'
18304 am__EXEEXT_FALSE=
18305fi
18306
18307if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 18308 as_fn_error $? "conditional \"AMDEP\" was never defined.
0a35513e
AH
18309Usually this means the macro was only invoked conditionally." "$LINENO" 5
18310fi
18311if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 18312 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
0a35513e
AH
18313Usually this means the macro was only invoked conditionally." "$LINENO" 5
18314fi
18315if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22e05272 18316 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
0a35513e
AH
18317Usually this means the macro was only invoked conditionally." "$LINENO" 5
18318fi
18319if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22e05272 18320 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
0a35513e
AH
18321Usually this means the macro was only invoked conditionally." "$LINENO" 5
18322fi
18323if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
22e05272 18324 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
0a35513e
AH
18325Usually this means the macro was only invoked conditionally." "$LINENO" 5
18326fi
6a6d3817
IS
18327if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
18328 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
18329Usually this means the macro was only invoked conditionally." "$LINENO" 5
18330fi
0a35513e 18331if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 18332 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
0a35513e
AH
18333Usually this means the macro was only invoked conditionally." "$LINENO" 5
18334fi
18335
9ce91011 18336if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
22e05272 18337 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
9ce91011
RO
18338Usually this means the macro was only invoked conditionally." "$LINENO" 5
18339fi
0a35513e 18340if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
22e05272 18341 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
0a35513e
AH
18342Usually this means the macro was only invoked conditionally." "$LINENO" 5
18343fi
adcd36bc 18344if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
22e05272 18345 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
adcd36bc
RO
18346Usually this means the macro was only invoked conditionally." "$LINENO" 5
18347fi
18348if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
22e05272 18349 as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
adcd36bc
RO
18350Usually this means the macro was only invoked conditionally." "$LINENO" 5
18351fi
aebac0ca 18352if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
22e05272 18353 as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
aebac0ca
RH
18354Usually this means the macro was only invoked conditionally." "$LINENO" 5
18355fi
0a35513e 18356if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
22e05272 18357 as_fn_error $? "conditional \"ARCH_X86\" was never defined.
0a35513e
AH
18358Usually this means the macro was only invoked conditionally." "$LINENO" 5
18359fi
d4b17902 18360if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
22e05272 18361 as_fn_error $? "conditional \"ARCH_X86_AVX\" was never defined.
d4b17902
RH
18362Usually this means the macro was only invoked conditionally." "$LINENO" 5
18363fi
0a35513e 18364if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
22e05272 18365 as_fn_error $? "conditional \"ARCH_FUTEX\" was never defined.
0a35513e
AH
18366Usually this means the macro was only invoked conditionally." "$LINENO" 5
18367fi
18368
22e05272 18369: "${CONFIG_STATUS=./config.status}"
0a35513e
AH
18370ac_write_fail=0
18371ac_clean_files_save=$ac_clean_files
18372ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18373{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18374$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18375as_write_fail=0
18376cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18377#! $SHELL
18378# Generated by $as_me.
18379# Run this file to recreate the current configuration.
18380# Compiler output produced by configure, useful for debugging
18381# configure, is in config.log if it exists.
18382
18383debug=false
18384ac_cs_recheck=false
18385ac_cs_silent=false
18386
18387SHELL=\${CONFIG_SHELL-$SHELL}
18388export SHELL
18389_ASEOF
18390cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18391## -------------------- ##
18392## M4sh Initialization. ##
18393## -------------------- ##
18394
18395# Be more Bourne compatible
18396DUALCASE=1; export DUALCASE # for MKS sh
18397if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18398 emulate sh
18399 NULLCMD=:
18400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18401 # is contrary to our usage. Disable this feature.
18402 alias -g '${1+"$@"}'='"$@"'
18403 setopt NO_GLOB_SUBST
18404else
18405 case `(set -o) 2>/dev/null` in #(
18406 *posix*) :
18407 set -o posix ;; #(
18408 *) :
18409 ;;
18410esac
18411fi
18412
18413
18414as_nl='
18415'
18416export as_nl
18417# Printing a long string crashes Solaris 7 /usr/bin/printf.
18418as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18419as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18420as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18421# Prefer a ksh shell builtin over an external printf program on Solaris,
18422# but without wasting forks for bash or zsh.
18423if test -z "$BASH_VERSION$ZSH_VERSION" \
18424 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18425 as_echo='print -r --'
18426 as_echo_n='print -rn --'
18427elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18428 as_echo='printf %s\n'
18429 as_echo_n='printf %s'
18430else
18431 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18432 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18433 as_echo_n='/usr/ucb/echo -n'
18434 else
18435 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18436 as_echo_n_body='eval
18437 arg=$1;
18438 case $arg in #(
18439 *"$as_nl"*)
18440 expr "X$arg" : "X\\(.*\\)$as_nl";
18441 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18442 esac;
18443 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18444 '
18445 export as_echo_n_body
18446 as_echo_n='sh -c $as_echo_n_body as_echo'
18447 fi
18448 export as_echo_body
18449 as_echo='sh -c $as_echo_body as_echo'
18450fi
18451
18452# The user is always right.
18453if test "${PATH_SEPARATOR+set}" != set; then
18454 PATH_SEPARATOR=:
18455 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18456 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18457 PATH_SEPARATOR=';'
18458 }
18459fi
18460
18461
18462# IFS
18463# We need space, tab and new line, in precisely that order. Quoting is
18464# there to prevent editors from complaining about space-tab.
18465# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18466# splitting by setting IFS to empty value.)
18467IFS=" "" $as_nl"
18468
18469# Find who we are. Look in the path if we contain no directory separator.
22e05272 18470as_myself=
0a35513e
AH
18471case $0 in #((
18472 *[\\/]* ) as_myself=$0 ;;
18473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18474for as_dir in $PATH
18475do
18476 IFS=$as_save_IFS
18477 test -z "$as_dir" && as_dir=.
18478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18479 done
18480IFS=$as_save_IFS
18481
18482 ;;
18483esac
18484# We did not find ourselves, most probably we were run as `sh COMMAND'
18485# in which case we are not to be found in the path.
18486if test "x$as_myself" = x; then
18487 as_myself=$0
18488fi
18489if test ! -f "$as_myself"; then
18490 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18491 exit 1
18492fi
18493
18494# Unset variables that we do not need and which cause bugs (e.g. in
18495# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18496# suppresses any "Segmentation fault" message there. '((' could
18497# trigger a bug in pdksh 5.2.14.
18498for as_var in BASH_ENV ENV MAIL MAILPATH
18499do eval test x\${$as_var+set} = xset \
18500 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18501done
18502PS1='$ '
18503PS2='> '
18504PS4='+ '
18505
18506# NLS nuisances.
18507LC_ALL=C
18508export LC_ALL
18509LANGUAGE=C
18510export LANGUAGE
18511
18512# CDPATH.
18513(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18514
18515
22e05272
JM
18516# as_fn_error STATUS ERROR [LINENO LOG_FD]
18517# ----------------------------------------
0a35513e
AH
18518# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18519# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18520# script with STATUS, using 1 if that was 0.
0a35513e
AH
18521as_fn_error ()
18522{
22e05272
JM
18523 as_status=$1; test $as_status -eq 0 && as_status=1
18524 if test "$4"; then
18525 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18526 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
0a35513e 18527 fi
22e05272 18528 $as_echo "$as_me: error: $2" >&2
0a35513e
AH
18529 as_fn_exit $as_status
18530} # as_fn_error
18531
18532
18533# as_fn_set_status STATUS
18534# -----------------------
18535# Set $? to STATUS, without forking.
18536as_fn_set_status ()
18537{
18538 return $1
18539} # as_fn_set_status
18540
18541# as_fn_exit STATUS
18542# -----------------
18543# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18544as_fn_exit ()
18545{
18546 set +e
18547 as_fn_set_status $1
18548 exit $1
18549} # as_fn_exit
18550
18551# as_fn_unset VAR
18552# ---------------
18553# Portably unset VAR.
18554as_fn_unset ()
18555{
18556 { eval $1=; unset $1;}
18557}
18558as_unset=as_fn_unset
18559# as_fn_append VAR VALUE
18560# ----------------------
18561# Append the text in VALUE to the end of the definition contained in VAR. Take
18562# advantage of any shell optimizations that allow amortized linear growth over
18563# repeated appends, instead of the typical quadratic growth present in naive
18564# implementations.
18565if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18566 eval 'as_fn_append ()
18567 {
18568 eval $1+=\$2
18569 }'
18570else
18571 as_fn_append ()
18572 {
18573 eval $1=\$$1\$2
18574 }
18575fi # as_fn_append
18576
18577# as_fn_arith ARG...
18578# ------------------
18579# Perform arithmetic evaluation on the ARGs, and store the result in the
18580# global $as_val. Take advantage of shells that can avoid forks. The arguments
18581# must be portable across $(()) and expr.
18582if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18583 eval 'as_fn_arith ()
18584 {
18585 as_val=$(( $* ))
18586 }'
18587else
18588 as_fn_arith ()
18589 {
18590 as_val=`expr "$@" || test $? -eq 1`
18591 }
18592fi # as_fn_arith
18593
18594
18595if expr a : '\(a\)' >/dev/null 2>&1 &&
18596 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18597 as_expr=expr
18598else
18599 as_expr=false
18600fi
18601
18602if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18603 as_basename=basename
18604else
18605 as_basename=false
18606fi
18607
18608if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18609 as_dirname=dirname
18610else
18611 as_dirname=false
18612fi
18613
18614as_me=`$as_basename -- "$0" ||
18615$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18616 X"$0" : 'X\(//\)$' \| \
18617 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18618$as_echo X/"$0" |
18619 sed '/^.*\/\([^/][^/]*\)\/*$/{
18620 s//\1/
18621 q
18622 }
18623 /^X\/\(\/\/\)$/{
18624 s//\1/
18625 q
18626 }
18627 /^X\/\(\/\).*/{
18628 s//\1/
18629 q
18630 }
18631 s/.*/./; q'`
18632
18633# Avoid depending upon Character Ranges.
18634as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18635as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18636as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18637as_cr_digits='0123456789'
18638as_cr_alnum=$as_cr_Letters$as_cr_digits
18639
18640ECHO_C= ECHO_N= ECHO_T=
18641case `echo -n x` in #(((((
18642-n*)
18643 case `echo 'xy\c'` in
18644 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18645 xy) ECHO_C='\c';;
18646 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18647 ECHO_T=' ';;
18648 esac;;
18649*)
18650 ECHO_N='-n';;
18651esac
18652
18653rm -f conf$$ conf$$.exe conf$$.file
18654if test -d conf$$.dir; then
18655 rm -f conf$$.dir/conf$$.file
18656else
18657 rm -f conf$$.dir
18658 mkdir conf$$.dir 2>/dev/null
18659fi
18660if (echo >conf$$.file) 2>/dev/null; then
18661 if ln -s conf$$.file conf$$ 2>/dev/null; then
18662 as_ln_s='ln -s'
18663 # ... but there are two gotchas:
18664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 18666 # In both cases, we have to default to `cp -pR'.
0a35513e 18667 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 18668 as_ln_s='cp -pR'
0a35513e
AH
18669 elif ln conf$$.file conf$$ 2>/dev/null; then
18670 as_ln_s=ln
18671 else
22e05272 18672 as_ln_s='cp -pR'
0a35513e
AH
18673 fi
18674else
22e05272 18675 as_ln_s='cp -pR'
0a35513e
AH
18676fi
18677rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18678rmdir conf$$.dir 2>/dev/null
18679
18680
18681# as_fn_mkdir_p
18682# -------------
18683# Create "$as_dir" as a directory, including parents if necessary.
18684as_fn_mkdir_p ()
18685{
18686
18687 case $as_dir in #(
18688 -*) as_dir=./$as_dir;;
18689 esac
18690 test -d "$as_dir" || eval $as_mkdir_p || {
18691 as_dirs=
18692 while :; do
18693 case $as_dir in #(
18694 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18695 *) as_qdir=$as_dir;;
18696 esac
18697 as_dirs="'$as_qdir' $as_dirs"
18698 as_dir=`$as_dirname -- "$as_dir" ||
18699$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18700 X"$as_dir" : 'X\(//\)[^/]' \| \
18701 X"$as_dir" : 'X\(//\)$' \| \
18702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18703$as_echo X"$as_dir" |
18704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18705 s//\1/
18706 q
18707 }
18708 /^X\(\/\/\)[^/].*/{
18709 s//\1/
18710 q
18711 }
18712 /^X\(\/\/\)$/{
18713 s//\1/
18714 q
18715 }
18716 /^X\(\/\).*/{
18717 s//\1/
18718 q
18719 }
18720 s/.*/./; q'`
18721 test -d "$as_dir" && break
18722 done
18723 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 18724 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
0a35513e
AH
18725
18726
18727} # as_fn_mkdir_p
18728if mkdir -p . 2>/dev/null; then
18729 as_mkdir_p='mkdir -p "$as_dir"'
18730else
18731 test -d ./-p && rmdir ./-p
18732 as_mkdir_p=false
18733fi
18734
22e05272
JM
18735
18736# as_fn_executable_p FILE
18737# -----------------------
18738# Test if FILE is an executable regular file.
18739as_fn_executable_p ()
18740{
18741 test -f "$1" && test -x "$1"
18742} # as_fn_executable_p
18743as_test_x='test -x'
18744as_executable_p=as_fn_executable_p
0a35513e
AH
18745
18746# Sed expression to map a string onto a valid CPP name.
18747as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18748
18749# Sed expression to map a string onto a valid variable name.
18750as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18751
18752
18753exec 6>&1
18754## ----------------------------------- ##
18755## Main body of $CONFIG_STATUS script. ##
18756## ----------------------------------- ##
18757_ASEOF
18758test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18759
18760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18761# Save the log message, to keep $0 and so on meaningful, and to
18762# report actual input values of CONFIG_FILES etc. instead of their
18763# values after options handling.
18764ac_log="
18765This file was extended by GNU TM Runtime Library $as_me 1.0, which was
22e05272 18766generated by GNU Autoconf 2.69. Invocation command line was
0a35513e
AH
18767
18768 CONFIG_FILES = $CONFIG_FILES
18769 CONFIG_HEADERS = $CONFIG_HEADERS
18770 CONFIG_LINKS = $CONFIG_LINKS
18771 CONFIG_COMMANDS = $CONFIG_COMMANDS
18772 $ $0 $@
18773
18774on `(hostname || uname -n) 2>/dev/null | sed 1q`
18775"
18776
18777_ACEOF
18778
18779case $ac_config_files in *"
18780"*) set x $ac_config_files; shift; ac_config_files=$*;;
18781esac
18782
18783case $ac_config_headers in *"
18784"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18785esac
18786
18787
18788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18789# Files that config.status was made for.
18790config_files="$ac_config_files"
18791config_headers="$ac_config_headers"
18792config_commands="$ac_config_commands"
18793
18794_ACEOF
18795
18796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18797ac_cs_usage="\
18798\`$as_me' instantiates files and other configuration actions
18799from templates according to the current configuration. Unless the files
18800and actions are specified as TAGs, all are instantiated by default.
18801
18802Usage: $0 [OPTION]... [TAG]...
18803
18804 -h, --help print this help, then exit
18805 -V, --version print version number and configuration settings, then exit
22e05272 18806 --config print configuration, then exit
0a35513e
AH
18807 -q, --quiet, --silent
18808 do not print progress messages
18809 -d, --debug don't remove temporary files
18810 --recheck update $as_me by reconfiguring in the same conditions
18811 --file=FILE[:TEMPLATE]
18812 instantiate the configuration file FILE
18813 --header=FILE[:TEMPLATE]
18814 instantiate the configuration header FILE
18815
18816Configuration files:
18817$config_files
18818
18819Configuration headers:
18820$config_headers
18821
18822Configuration commands:
18823$config_commands
18824
18825Report bugs to the package provider.
18826GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18827General help using GNU software: <http://www.gnu.org/gethelp/>."
18828
18829_ACEOF
18830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18831ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
0a35513e
AH
18832ac_cs_version="\\
18833GNU TM Runtime Library config.status 1.0
22e05272
JM
18834configured by $0, generated by GNU Autoconf 2.69,
18835 with options \\"\$ac_cs_config\\"
0a35513e 18836
22e05272 18837Copyright (C) 2012 Free Software Foundation, Inc.
0a35513e
AH
18838This config.status script is free software; the Free Software Foundation
18839gives unlimited permission to copy, distribute and modify it."
18840
18841ac_pwd='$ac_pwd'
18842srcdir='$srcdir'
18843INSTALL='$INSTALL'
18844MKDIR_P='$MKDIR_P'
18845AWK='$AWK'
18846test -n "\$AWK" || AWK=awk
18847_ACEOF
18848
18849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18850# The default lists apply if the user does not specify any file.
18851ac_need_defaults=:
18852while test $# != 0
18853do
18854 case $1 in
22e05272 18855 --*=?*)
0a35513e
AH
18856 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18858 ac_shift=:
18859 ;;
22e05272
JM
18860 --*=)
18861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18862 ac_optarg=
18863 ac_shift=:
18864 ;;
0a35513e
AH
18865 *)
18866 ac_option=$1
18867 ac_optarg=$2
18868 ac_shift=shift
18869 ;;
18870 esac
18871
18872 case $ac_option in
18873 # Handling of the options.
18874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18875 ac_cs_recheck=: ;;
18876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18877 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
18878 --config | --confi | --conf | --con | --co | --c )
18879 $as_echo "$ac_cs_config"; exit ;;
0a35513e
AH
18880 --debug | --debu | --deb | --de | --d | -d )
18881 debug=: ;;
18882 --file | --fil | --fi | --f )
18883 $ac_shift
18884 case $ac_optarg in
18885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 18886 '') as_fn_error $? "missing file argument" ;;
0a35513e
AH
18887 esac
18888 as_fn_append CONFIG_FILES " '$ac_optarg'"
18889 ac_need_defaults=false;;
18890 --header | --heade | --head | --hea )
18891 $ac_shift
18892 case $ac_optarg in
18893 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18894 esac
18895 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18896 ac_need_defaults=false;;
18897 --he | --h)
18898 # Conflict between --help and --header
22e05272 18899 as_fn_error $? "ambiguous option: \`$1'
0a35513e
AH
18900Try \`$0 --help' for more information.";;
18901 --help | --hel | -h )
18902 $as_echo "$ac_cs_usage"; exit ;;
18903 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18904 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18905 ac_cs_silent=: ;;
18906
18907 # This is an error.
22e05272 18908 -*) as_fn_error $? "unrecognized option: \`$1'
0a35513e
AH
18909Try \`$0 --help' for more information." ;;
18910
18911 *) as_fn_append ac_config_targets " $1"
18912 ac_need_defaults=false ;;
18913
18914 esac
18915 shift
18916done
18917
18918ac_configure_extra_args=
18919
18920if $ac_cs_silent; then
18921 exec 6>/dev/null
18922 ac_configure_extra_args="$ac_configure_extra_args --silent"
18923fi
18924
18925_ACEOF
18926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18927if \$ac_cs_recheck; then
22e05272 18928 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
0a35513e
AH
18929 shift
18930 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18931 CONFIG_SHELL='$SHELL'
18932 export CONFIG_SHELL
18933 exec "\$@"
18934fi
18935
18936_ACEOF
18937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18938exec 5>>config.log
18939{
18940 echo
18941 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18942## Running $as_me. ##
18943_ASBOX
18944 $as_echo "$ac_log"
18945} >&5
18946
18947_ACEOF
18948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18949#
18950# INIT-COMMANDS
18951#
18952
18953srcdir="$srcdir"
18954host="$host"
18955target="$target"
18956with_multisubdir="$with_multisubdir"
18957with_multisrctop="$with_multisrctop"
18958with_target_subdir="$with_target_subdir"
18959ac_configure_args="${multilib_arg} ${ac_configure_args}"
18960multi_basedir="$multi_basedir"
18961CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18962CC="$CC"
18963CXX="$CXX"
18964GFORTRAN="$GFORTRAN"
22e05272 18965GDC="$GDC"
0a35513e
AH
18966AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18967
18968
18969# The HP-UX ksh and POSIX shell print the target directory to stdout
18970# if CDPATH is set.
18971(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18972
18973sed_quote_subst='$sed_quote_subst'
18974double_quote_subst='$double_quote_subst'
18975delay_variable_subst='$delay_variable_subst'
18976macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18977macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18978enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18979enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18980pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18981enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18982SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18983ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18984host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18985host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18986host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18987build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18988build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18989build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18990SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18991Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18992GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18993EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18994FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18995LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18996NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18997LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18998max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18999ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19000exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19001lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19002lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19003lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19004reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19005reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19006OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19007deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19008file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19009AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19010AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19011STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19012RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19013old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19014old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19015old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19016lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19017CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19018CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19019compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19020GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19021lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19022lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19023lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19024lt_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"`'
19025objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19026MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19027lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19028lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19029lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19030lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19031lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19032need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19033DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19034NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19035LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19036OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19037OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19038libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19039shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19040extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19041archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19042enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19043export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19044whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19045compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19046old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19047old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19048archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19049archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19050module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19051module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19052with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19053allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19054no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19055hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19056hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19057hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19058hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19059hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19060hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19061hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19062hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19063inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19064link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19065fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
19066always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19067export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19068exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19069include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19070prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19071file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19072variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19073need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19074need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19075version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19076runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19077shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19078shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19079libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19080library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19081soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19082install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19083postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19084postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19085finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19086finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19087hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19088sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19089sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19090hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19091enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19092enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19093enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19094old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19095striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19096compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19097predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19098postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19099predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19100postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19101compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19102LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19103reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19104reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19105old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19106compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19107GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19108lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19109lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19110lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19111lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19112lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19113archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19114enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19115export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19116whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19117compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19118old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19119old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19120archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19121archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19122module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19123module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19124with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19125allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19126no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19127hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19128hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19129hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19130hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19131hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19132hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19133hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19134hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19135inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19136link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19137fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
19138always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19139export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19140exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19141include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19142prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19143file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19144hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19145compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19146predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19147postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19148predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19149postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19150compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19151
19152LTCC='$LTCC'
19153LTCFLAGS='$LTCFLAGS'
19154compiler='$compiler_DEFAULT'
19155
19156# A function that is used when there is no print builtin or printf.
19157func_fallback_echo ()
19158{
19159 eval 'cat <<_LTECHO_EOF
19160\$1
19161_LTECHO_EOF'
19162}
19163
19164# Quote evaled strings.
19165for var in SHELL \
19166ECHO \
19167SED \
19168GREP \
19169EGREP \
19170FGREP \
19171LD \
19172NM \
19173LN_S \
19174lt_SP2NL \
19175lt_NL2SP \
19176reload_flag \
19177OBJDUMP \
19178deplibs_check_method \
19179file_magic_cmd \
19180AR \
19181AR_FLAGS \
19182STRIP \
19183RANLIB \
19184CC \
19185CFLAGS \
19186compiler \
19187lt_cv_sys_global_symbol_pipe \
19188lt_cv_sys_global_symbol_to_cdecl \
19189lt_cv_sys_global_symbol_to_c_name_address \
19190lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19191lt_prog_compiler_no_builtin_flag \
19192lt_prog_compiler_wl \
19193lt_prog_compiler_pic \
19194lt_prog_compiler_static \
19195lt_cv_prog_compiler_c_o \
19196need_locks \
19197DSYMUTIL \
19198NMEDIT \
19199LIPO \
19200OTOOL \
19201OTOOL64 \
19202shrext_cmds \
19203export_dynamic_flag_spec \
19204whole_archive_flag_spec \
19205compiler_needs_object \
19206with_gnu_ld \
19207allow_undefined_flag \
19208no_undefined_flag \
19209hardcode_libdir_flag_spec \
19210hardcode_libdir_flag_spec_ld \
19211hardcode_libdir_separator \
19212fix_srcfile_path \
19213exclude_expsyms \
19214include_expsyms \
19215file_list_spec \
19216variables_saved_for_relink \
19217libname_spec \
19218library_names_spec \
19219soname_spec \
19220install_override_mode \
19221finish_eval \
19222old_striplib \
19223striplib \
19224compiler_lib_search_dirs \
19225predep_objects \
19226postdep_objects \
19227predeps \
19228postdeps \
19229compiler_lib_search_path \
19230LD_CXX \
19231reload_flag_CXX \
19232compiler_CXX \
19233lt_prog_compiler_no_builtin_flag_CXX \
19234lt_prog_compiler_wl_CXX \
19235lt_prog_compiler_pic_CXX \
19236lt_prog_compiler_static_CXX \
19237lt_cv_prog_compiler_c_o_CXX \
19238export_dynamic_flag_spec_CXX \
19239whole_archive_flag_spec_CXX \
19240compiler_needs_object_CXX \
19241with_gnu_ld_CXX \
19242allow_undefined_flag_CXX \
19243no_undefined_flag_CXX \
19244hardcode_libdir_flag_spec_CXX \
19245hardcode_libdir_flag_spec_ld_CXX \
19246hardcode_libdir_separator_CXX \
19247fix_srcfile_path_CXX \
19248exclude_expsyms_CXX \
19249include_expsyms_CXX \
19250file_list_spec_CXX \
19251compiler_lib_search_dirs_CXX \
19252predep_objects_CXX \
19253postdep_objects_CXX \
19254predeps_CXX \
19255postdeps_CXX \
19256compiler_lib_search_path_CXX; do
19257 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19258 *[\\\\\\\`\\"\\\$]*)
19259 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19260 ;;
19261 *)
19262 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19263 ;;
19264 esac
19265done
19266
19267# Double-quote double-evaled strings.
19268for var in reload_cmds \
19269old_postinstall_cmds \
19270old_postuninstall_cmds \
19271old_archive_cmds \
19272extract_expsyms_cmds \
19273old_archive_from_new_cmds \
19274old_archive_from_expsyms_cmds \
19275archive_cmds \
19276archive_expsym_cmds \
19277module_cmds \
19278module_expsym_cmds \
19279export_symbols_cmds \
19280prelink_cmds \
19281postinstall_cmds \
19282postuninstall_cmds \
19283finish_cmds \
19284sys_lib_search_path_spec \
19285sys_lib_dlsearch_path_spec \
19286reload_cmds_CXX \
19287old_archive_cmds_CXX \
19288old_archive_from_new_cmds_CXX \
19289old_archive_from_expsyms_cmds_CXX \
19290archive_cmds_CXX \
19291archive_expsym_cmds_CXX \
19292module_cmds_CXX \
19293module_expsym_cmds_CXX \
19294export_symbols_cmds_CXX \
19295prelink_cmds_CXX; do
19296 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19297 *[\\\\\\\`\\"\\\$]*)
19298 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19299 ;;
19300 *)
19301 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19302 ;;
19303 esac
19304done
19305
19306ac_aux_dir='$ac_aux_dir'
19307xsi_shell='$xsi_shell'
19308lt_shell_append='$lt_shell_append'
19309
19310# See if we are running on zsh, and set the options which allow our
19311# commands through without removal of \ escapes INIT.
19312if test -n "\${ZSH_VERSION+set}" ; then
19313 setopt NO_GLOB_SUBST
19314fi
19315
19316
19317 PACKAGE='$PACKAGE'
19318 VERSION='$VERSION'
19319 TIMESTAMP='$TIMESTAMP'
19320 RM='$RM'
19321 ofile='$ofile'
19322
19323
19324
19325
19326
19327
19328GCC="$GCC"
19329CC="$CC"
19330acx_cv_header_stdint="$acx_cv_header_stdint"
19331acx_cv_type_int8_t="$acx_cv_type_int8_t"
19332acx_cv_type_int16_t="$acx_cv_type_int16_t"
19333acx_cv_type_int32_t="$acx_cv_type_int32_t"
19334acx_cv_type_int64_t="$acx_cv_type_int64_t"
19335acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
19336ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
19337ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
19338ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19339ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19340ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
19341ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19342ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19343ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
19344
19345
19346_ACEOF
19347
19348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19349
19350# Handling of arguments.
19351for ac_config_target in $ac_config_targets
19352do
19353 case $ac_config_target in
19354 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19355 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19356 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19357 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19358 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
19359 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19360 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
19361 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
19362
22e05272 19363 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
0a35513e
AH
19364 esac
19365done
19366
19367
19368# If the user did not use the arguments to specify the items to instantiate,
19369# then the envvar interface is used. Set only those that are not.
19370# We use the long form for the default assignment because of an extremely
19371# bizarre bug on SunOS 4.1.3.
19372if $ac_need_defaults; then
19373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19375 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19376fi
19377
19378# Have a temporary directory for convenience. Make it in the build tree
19379# simply because there is no reason against having it here, and in addition,
19380# creating and moving files from /tmp can sometimes cause problems.
19381# Hook for its removal unless debugging.
19382# Note that there is a small window in which the directory will not be cleaned:
19383# after its creation but before its name has been assigned to `$tmp'.
19384$debug ||
19385{
22e05272 19386 tmp= ac_tmp=
0a35513e 19387 trap 'exit_status=$?
22e05272
JM
19388 : "${ac_tmp:=$tmp}"
19389 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
0a35513e
AH
19390' 0
19391 trap 'as_fn_exit 1' 1 2 13 15
19392}
19393# Create a (secure) tmp directory for tmp files.
19394
19395{
19396 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 19397 test -d "$tmp"
0a35513e
AH
19398} ||
19399{
19400 tmp=./conf$$-$RANDOM
19401 (umask 077 && mkdir "$tmp")
22e05272
JM
19402} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19403ac_tmp=$tmp
0a35513e
AH
19404
19405# Set up the scripts for CONFIG_FILES section.
19406# No need to generate them if there are no CONFIG_FILES.
19407# This happens for instance with `./config.status config.h'.
19408if test -n "$CONFIG_FILES"; then
19409
19410
19411ac_cr=`echo X | tr X '\015'`
19412# On cygwin, bash can eat \r inside `` if the user requested igncr.
19413# But we know of no other shell where ac_cr would be empty at this
19414# point, so we can use a bashism as a fallback.
19415if test "x$ac_cr" = x; then
19416 eval ac_cr=\$\'\\r\'
19417fi
19418ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19419if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19420 ac_cs_awk_cr='\\r'
0a35513e
AH
19421else
19422 ac_cs_awk_cr=$ac_cr
19423fi
19424
22e05272 19425echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
0a35513e
AH
19426_ACEOF
19427
19428
19429{
19430 echo "cat >conf$$subs.awk <<_ACEOF" &&
19431 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19432 echo "_ACEOF"
19433} >conf$$subs.sh ||
22e05272
JM
19434 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19435ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
0a35513e
AH
19436ac_delim='%!_!# '
19437for ac_last_try in false false false false false :; do
19438 . ./conf$$subs.sh ||
22e05272 19439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
0a35513e
AH
19440
19441 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19442 if test $ac_delim_n = $ac_delim_num; then
19443 break
19444 elif $ac_last_try; then
22e05272 19445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
0a35513e
AH
19446 else
19447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19448 fi
19449done
19450rm -f conf$$subs.sh
19451
19452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19453cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
0a35513e
AH
19454_ACEOF
19455sed -n '
19456h
19457s/^/S["/; s/!.*/"]=/
19458p
19459g
19460s/^[^!]*!//
19461:repl
19462t repl
19463s/'"$ac_delim"'$//
19464t delim
19465:nl
19466h
22e05272 19467s/\(.\{148\}\)..*/\1/
0a35513e
AH
19468t more1
19469s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19470p
19471n
19472b repl
19473:more1
19474s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19475p
19476g
19477s/.\{148\}//
19478t nl
19479:delim
19480h
22e05272 19481s/\(.\{148\}\)..*/\1/
0a35513e
AH
19482t more2
19483s/["\\]/\\&/g; s/^/"/; s/$/"/
19484p
19485b
19486:more2
19487s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19488p
19489g
19490s/.\{148\}//
19491t delim
19492' <conf$$subs.awk | sed '
19493/^[^""]/{
19494 N
19495 s/\n//
19496}
19497' >>$CONFIG_STATUS || ac_write_fail=1
19498rm -f conf$$subs.awk
19499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19500_ACAWK
22e05272 19501cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
0a35513e
AH
19502 for (key in S) S_is_set[key] = 1
19503 FS = "\a"
19504
19505}
19506{
19507 line = $ 0
19508 nfields = split(line, field, "@")
19509 substed = 0
19510 len = length(field[1])
19511 for (i = 2; i < nfields; i++) {
19512 key = field[i]
19513 keylen = length(key)
19514 if (S_is_set[key]) {
19515 value = S[key]
19516 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19517 len += length(value) + length(field[++i])
19518 substed = 1
19519 } else
19520 len += 1 + keylen
19521 }
19522
19523 print line
19524}
19525
19526_ACAWK
19527_ACEOF
19528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19529if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19530 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19531else
19532 cat
22e05272
JM
19533fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19534 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
0a35513e
AH
19535_ACEOF
19536
22e05272
JM
19537# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19538# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
0a35513e
AH
19539# trailing colons and then remove the whole line if VPATH becomes empty
19540# (actually we leave an empty line to preserve line numbers).
19541if test "x$srcdir" = x.; then
22e05272
JM
19542 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19543h
19544s///
19545s/^/:/
19546s/[ ]*$/:/
19547s/:\$(srcdir):/:/g
19548s/:\${srcdir}:/:/g
19549s/:@srcdir@:/:/g
19550s/^:*//
0a35513e 19551s/:*$//
22e05272
JM
19552x
19553s/\(=[ ]*\).*/\1/
19554G
19555s/\n//
0a35513e
AH
19556s/^[^=]*=[ ]*$//
19557}'
19558fi
19559
19560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19561fi # test -n "$CONFIG_FILES"
19562
19563# Set up the scripts for CONFIG_HEADERS section.
19564# No need to generate them if there are no CONFIG_HEADERS.
19565# This happens for instance with `./config.status Makefile'.
19566if test -n "$CONFIG_HEADERS"; then
22e05272 19567cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
0a35513e
AH
19568BEGIN {
19569_ACEOF
19570
19571# Transform confdefs.h into an awk script `defines.awk', embedded as
19572# here-document in config.status, that substitutes the proper values into
19573# config.h.in to produce config.h.
19574
19575# Create a delimiter string that does not exist in confdefs.h, to ease
19576# handling of long lines.
19577ac_delim='%!_!# '
19578for ac_last_try in false false :; do
22e05272
JM
19579 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19580 if test -z "$ac_tt"; then
0a35513e
AH
19581 break
19582 elif $ac_last_try; then
22e05272 19583 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
0a35513e
AH
19584 else
19585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19586 fi
19587done
19588
19589# For the awk script, D is an array of macro values keyed by name,
19590# likewise P contains macro parameters if any. Preserve backslash
19591# newline sequences.
19592
19593ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19594sed -n '
19595s/.\{148\}/&'"$ac_delim"'/g
19596t rset
19597:rset
19598s/^[ ]*#[ ]*define[ ][ ]*/ /
19599t def
19600d
19601:def
19602s/\\$//
19603t bsnl
19604s/["\\]/\\&/g
19605s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19606D["\1"]=" \3"/p
19607s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19608d
19609:bsnl
19610s/["\\]/\\&/g
19611s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19612D["\1"]=" \3\\\\\\n"\\/p
19613t cont
19614s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19615t cont
19616d
19617:cont
19618n
19619s/.\{148\}/&'"$ac_delim"'/g
19620t clear
19621:clear
19622s/\\$//
19623t bsnlc
19624s/["\\]/\\&/g; s/^/"/; s/$/"/p
19625d
19626:bsnlc
19627s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19628b cont
19629' <confdefs.h | sed '
19630s/'"$ac_delim"'/"\\\
19631"/g' >>$CONFIG_STATUS || ac_write_fail=1
19632
19633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19634 for (key in D) D_is_set[key] = 1
19635 FS = "\a"
19636}
19637/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19638 line = \$ 0
19639 split(line, arg, " ")
19640 if (arg[1] == "#") {
19641 defundef = arg[2]
19642 mac1 = arg[3]
19643 } else {
19644 defundef = substr(arg[1], 2)
19645 mac1 = arg[2]
19646 }
19647 split(mac1, mac2, "(") #)
19648 macro = mac2[1]
19649 prefix = substr(line, 1, index(line, defundef) - 1)
19650 if (D_is_set[macro]) {
19651 # Preserve the white space surrounding the "#".
19652 print prefix "define", macro P[macro] D[macro]
19653 next
19654 } else {
19655 # Replace #undef with comments. This is necessary, for example,
19656 # in the case of _POSIX_SOURCE, which is predefined and required
19657 # on some systems where configure will not decide to define it.
19658 if (defundef == "undef") {
19659 print "/*", prefix defundef, macro, "*/"
19660 next
19661 }
19662 }
19663}
19664{ print }
19665_ACAWK
19666_ACEOF
19667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 19668 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
0a35513e
AH
19669fi # test -n "$CONFIG_HEADERS"
19670
19671
19672eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19673shift
19674for ac_tag
19675do
19676 case $ac_tag in
19677 :[FHLC]) ac_mode=$ac_tag; continue;;
19678 esac
19679 case $ac_mode$ac_tag in
19680 :[FHL]*:*);;
22e05272 19681 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
0a35513e
AH
19682 :[FH]-) ac_tag=-:-;;
19683 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19684 esac
19685 ac_save_IFS=$IFS
19686 IFS=:
19687 set x $ac_tag
19688 IFS=$ac_save_IFS
19689 shift
19690 ac_file=$1
19691 shift
19692
19693 case $ac_mode in
19694 :L) ac_source=$1;;
19695 :[FH])
19696 ac_file_inputs=
19697 for ac_f
19698 do
19699 case $ac_f in
22e05272 19700 -) ac_f="$ac_tmp/stdin";;
0a35513e
AH
19701 *) # Look for the file first in the build tree, then in the source tree
19702 # (if the path is not absolute). The absolute path cannot be DOS-style,
19703 # because $ac_f cannot contain `:'.
19704 test -f "$ac_f" ||
19705 case $ac_f in
19706 [\\/$]*) false;;
19707 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19708 esac ||
22e05272 19709 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
0a35513e
AH
19710 esac
19711 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19712 as_fn_append ac_file_inputs " '$ac_f'"
19713 done
19714
19715 # Let's still pretend it is `configure' which instantiates (i.e., don't
19716 # use $as_me), people would be surprised to read:
19717 # /* config.h. Generated by config.status. */
19718 configure_input='Generated from '`
19719 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19720 `' by configure.'
19721 if test x"$ac_file" != x-; then
19722 configure_input="$ac_file. $configure_input"
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19724$as_echo "$as_me: creating $ac_file" >&6;}
19725 fi
19726 # Neutralize special characters interpreted by sed in replacement strings.
19727 case $configure_input in #(
19728 *\&* | *\|* | *\\* )
19729 ac_sed_conf_input=`$as_echo "$configure_input" |
19730 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19731 *) ac_sed_conf_input=$configure_input;;
19732 esac
19733
19734 case $ac_tag in
22e05272
JM
19735 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
0a35513e
AH
19737 esac
19738 ;;
19739 esac
19740
19741 ac_dir=`$as_dirname -- "$ac_file" ||
19742$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19743 X"$ac_file" : 'X\(//\)[^/]' \| \
19744 X"$ac_file" : 'X\(//\)$' \| \
19745 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19746$as_echo X"$ac_file" |
19747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19748 s//\1/
19749 q
19750 }
19751 /^X\(\/\/\)[^/].*/{
19752 s//\1/
19753 q
19754 }
19755 /^X\(\/\/\)$/{
19756 s//\1/
19757 q
19758 }
19759 /^X\(\/\).*/{
19760 s//\1/
19761 q
19762 }
19763 s/.*/./; q'`
19764 as_dir="$ac_dir"; as_fn_mkdir_p
19765 ac_builddir=.
19766
19767case "$ac_dir" in
19768.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19769*)
19770 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19771 # A ".." for each directory in $ac_dir_suffix.
19772 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19773 case $ac_top_builddir_sub in
19774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19776 esac ;;
19777esac
19778ac_abs_top_builddir=$ac_pwd
19779ac_abs_builddir=$ac_pwd$ac_dir_suffix
19780# for backward compatibility:
19781ac_top_builddir=$ac_top_build_prefix
19782
19783case $srcdir in
19784 .) # We are building in place.
19785 ac_srcdir=.
19786 ac_top_srcdir=$ac_top_builddir_sub
19787 ac_abs_top_srcdir=$ac_pwd ;;
19788 [\\/]* | ?:[\\/]* ) # Absolute name.
19789 ac_srcdir=$srcdir$ac_dir_suffix;
19790 ac_top_srcdir=$srcdir
19791 ac_abs_top_srcdir=$srcdir ;;
19792 *) # Relative name.
19793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19794 ac_top_srcdir=$ac_top_build_prefix$srcdir
19795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19796esac
19797ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19798
19799
19800 case $ac_mode in
19801 :F)
19802 #
19803 # CONFIG_FILE
19804 #
19805
19806 case $INSTALL in
19807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19808 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19809 esac
19810 ac_MKDIR_P=$MKDIR_P
19811 case $MKDIR_P in
19812 [\\/$]* | ?:[\\/]* ) ;;
19813 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19814 esac
19815_ACEOF
19816
19817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19818# If the template does not know about datarootdir, expand it.
19819# FIXME: This hack should be removed a few years after 2.60.
19820ac_datarootdir_hack=; ac_datarootdir_seen=
19821ac_sed_dataroot='
19822/datarootdir/ {
19823 p
19824 q
19825}
19826/@datadir@/p
19827/@docdir@/p
19828/@infodir@/p
19829/@localedir@/p
19830/@mandir@/p'
19831case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19832*datarootdir*) ac_datarootdir_seen=yes;;
19833*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19835$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19836_ACEOF
19837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19838 ac_datarootdir_hack='
19839 s&@datadir@&$datadir&g
19840 s&@docdir@&$docdir&g
19841 s&@infodir@&$infodir&g
19842 s&@localedir@&$localedir&g
19843 s&@mandir@&$mandir&g
19844 s&\\\${datarootdir}&$datarootdir&g' ;;
19845esac
19846_ACEOF
19847
19848# Neutralize VPATH when `$srcdir' = `.'.
19849# Shell code in configure.ac might set extrasub.
19850# FIXME: do we really want to maintain this feature?
19851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19852ac_sed_extra="$ac_vpsub
19853$extrasub
19854_ACEOF
19855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19856:t
19857/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19858s|@configure_input@|$ac_sed_conf_input|;t t
19859s&@top_builddir@&$ac_top_builddir_sub&;t t
19860s&@top_build_prefix@&$ac_top_build_prefix&;t t
19861s&@srcdir@&$ac_srcdir&;t t
19862s&@abs_srcdir@&$ac_abs_srcdir&;t t
19863s&@top_srcdir@&$ac_top_srcdir&;t t
19864s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19865s&@builddir@&$ac_builddir&;t t
19866s&@abs_builddir@&$ac_abs_builddir&;t t
19867s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19868s&@INSTALL@&$ac_INSTALL&;t t
19869s&@MKDIR_P@&$ac_MKDIR_P&;t t
19870$ac_datarootdir_hack
19871"
22e05272
JM
19872eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19873 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
0a35513e
AH
19874
19875test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19876 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19877 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19878 "$ac_tmp/out"`; test -z "$ac_out"; } &&
0a35513e 19879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19880which seems to be undefined. Please make sure it is defined" >&5
0a35513e 19881$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19882which seems to be undefined. Please make sure it is defined" >&2;}
0a35513e 19883
22e05272 19884 rm -f "$ac_tmp/stdin"
0a35513e 19885 case $ac_file in
22e05272
JM
19886 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19887 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
0a35513e 19888 esac \
22e05272 19889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
0a35513e
AH
19890 ;;
19891 :H)
19892 #
19893 # CONFIG_HEADER
19894 #
19895 if test x"$ac_file" != x-; then
19896 {
19897 $as_echo "/* $configure_input */" \
22e05272
JM
19898 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19899 } >"$ac_tmp/config.h" \
19900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19901 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
0a35513e
AH
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19903$as_echo "$as_me: $ac_file is unchanged" >&6;}
19904 else
19905 rm -f "$ac_file"
22e05272
JM
19906 mv "$ac_tmp/config.h" "$ac_file" \
19907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
0a35513e
AH
19908 fi
19909 else
19910 $as_echo "/* $configure_input */" \
22e05272
JM
19911 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19912 || as_fn_error $? "could not create -" "$LINENO" 5
0a35513e
AH
19913 fi
19914# Compute "$ac_file"'s index in $config_headers.
19915_am_arg="$ac_file"
19916_am_stamp_count=1
19917for _am_header in $config_headers :; do
19918 case $_am_header in
19919 $_am_arg | $_am_arg:* )
19920 break ;;
19921 * )
19922 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19923 esac
19924done
19925echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19926$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19927 X"$_am_arg" : 'X\(//\)[^/]' \| \
19928 X"$_am_arg" : 'X\(//\)$' \| \
19929 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19930$as_echo X"$_am_arg" |
19931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19932 s//\1/
19933 q
19934 }
19935 /^X\(\/\/\)[^/].*/{
19936 s//\1/
19937 q
19938 }
19939 /^X\(\/\/\)$/{
19940 s//\1/
19941 q
19942 }
19943 /^X\(\/\).*/{
19944 s//\1/
19945 q
19946 }
19947 s/.*/./; q'`/stamp-h$_am_stamp_count
19948 ;;
19949
19950 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19951$as_echo "$as_me: executing $ac_file commands" >&6;}
19952 ;;
19953 esac
19954
19955
19956 case $ac_file$ac_mode in
19957 "default-1":C)
19958# Only add multilib support code if we just rebuilt the top-level
19959# Makefile.
19960case " $CONFIG_FILES " in
19961 *" Makefile "*)
19962 ac_file=Makefile . ${multi_basedir}/config-ml.in
19963 ;;
19964esac ;;
19965 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 19966 # Older Autoconf quotes --file arguments for eval, but not when files
0a35513e
AH
19967 # are listed without --file. Let's play safe and only enable the eval
19968 # if we detect the quoting.
19969 case $CONFIG_FILES in
19970 *\'*) eval set x "$CONFIG_FILES" ;;
19971 *) set x $CONFIG_FILES ;;
19972 esac
19973 shift
19974 for mf
19975 do
19976 # Strip MF so we end up with the name of the file.
19977 mf=`echo "$mf" | sed -e 's/:.*$//'`
19978 # Check whether this is an Automake generated Makefile or not.
22e05272 19979 # We used to match only the files named 'Makefile.in', but
0a35513e
AH
19980 # some people rename them; so instead we look at the file content.
19981 # Grep'ing the first line is not enough: some people post-process
19982 # each Makefile.in and add a new line on top of each file to say so.
19983 # Grep'ing the whole file is not good either: AIX grep has a line
19984 # limit of 2048, but all sed's we know have understand at least 4000.
19985 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19986 dirpart=`$as_dirname -- "$mf" ||
19987$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19988 X"$mf" : 'X\(//\)[^/]' \| \
19989 X"$mf" : 'X\(//\)$' \| \
19990 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19991$as_echo X"$mf" |
19992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19993 s//\1/
19994 q
19995 }
19996 /^X\(\/\/\)[^/].*/{
19997 s//\1/
19998 q
19999 }
20000 /^X\(\/\/\)$/{
20001 s//\1/
20002 q
20003 }
20004 /^X\(\/\).*/{
20005 s//\1/
20006 q
20007 }
20008 s/.*/./; q'`
20009 else
20010 continue
20011 fi
20012 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 20013 # from the Makefile without running 'make'.
0a35513e
AH
20014 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20015 test -z "$DEPDIR" && continue
20016 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 20017 test -z "$am__include" && continue
0a35513e 20018 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
0a35513e
AH
20019 # Find all dependency output files, they are included files with
20020 # $(DEPDIR) in their names. We invoke sed twice because it is the
20021 # simplest approach to changing $(DEPDIR) to its actual value in the
20022 # expansion.
20023 for file in `sed -n "
20024 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 20025 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
0a35513e
AH
20026 # Make sure the directory exists.
20027 test -f "$dirpart/$file" && continue
20028 fdir=`$as_dirname -- "$file" ||
20029$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20030 X"$file" : 'X\(//\)[^/]' \| \
20031 X"$file" : 'X\(//\)$' \| \
20032 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20033$as_echo X"$file" |
20034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20035 s//\1/
20036 q
20037 }
20038 /^X\(\/\/\)[^/].*/{
20039 s//\1/
20040 q
20041 }
20042 /^X\(\/\/\)$/{
20043 s//\1/
20044 q
20045 }
20046 /^X\(\/\).*/{
20047 s//\1/
20048 q
20049 }
20050 s/.*/./; q'`
20051 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20052 # echo "creating $dirpart/$file"
20053 echo '# dummy' > "$dirpart/$file"
20054 done
20055 done
20056}
20057 ;;
20058 "libtool":C)
20059
20060 # See if we are running on zsh, and set the options which allow our
20061 # commands through without removal of \ escapes.
20062 if test -n "${ZSH_VERSION+set}" ; then
20063 setopt NO_GLOB_SUBST
20064 fi
20065
20066 cfgfile="${ofile}T"
20067 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20068 $RM "$cfgfile"
20069
20070 cat <<_LT_EOF >> "$cfgfile"
20071#! $SHELL
20072
20073# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20074# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20075# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20076# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20077#
20078# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20079# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
20080# Written by Gordon Matzigkeit, 1996
20081#
20082# This file is part of GNU Libtool.
20083#
20084# GNU Libtool is free software; you can redistribute it and/or
20085# modify it under the terms of the GNU General Public License as
20086# published by the Free Software Foundation; either version 2 of
20087# the License, or (at your option) any later version.
20088#
20089# As a special exception to the GNU General Public License,
20090# if you distribute this file as part of a program or library that
20091# is built using GNU Libtool, you may include this file under the
20092# same distribution terms that you use for the rest of that program.
20093#
20094# GNU Libtool is distributed in the hope that it will be useful,
20095# but WITHOUT ANY WARRANTY; without even the implied warranty of
20096# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20097# GNU General Public License for more details.
20098#
20099# You should have received a copy of the GNU General Public License
20100# along with GNU Libtool; see the file COPYING. If not, a copy
20101# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20102# obtained by writing to the Free Software Foundation, Inc.,
20103# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20104
20105
20106# The names of the tagged configurations supported by this script.
20107available_tags="CXX "
20108
20109# ### BEGIN LIBTOOL CONFIG
20110
20111# Which release of libtool.m4 was used?
20112macro_version=$macro_version
20113macro_revision=$macro_revision
20114
20115# Whether or not to build shared libraries.
20116build_libtool_libs=$enable_shared
20117
20118# Whether or not to build static libraries.
20119build_old_libs=$enable_static
20120
20121# What type of objects to build.
20122pic_mode=$pic_mode
20123
20124# Whether or not to optimize for fast installation.
20125fast_install=$enable_fast_install
20126
20127# Shell to use when invoking shell scripts.
20128SHELL=$lt_SHELL
20129
20130# An echo program that protects backslashes.
20131ECHO=$lt_ECHO
20132
20133# The host system.
20134host_alias=$host_alias
20135host=$host
20136host_os=$host_os
20137
20138# The build system.
20139build_alias=$build_alias
20140build=$build
20141build_os=$build_os
20142
20143# A sed program that does not truncate output.
20144SED=$lt_SED
20145
20146# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20147Xsed="\$SED -e 1s/^X//"
20148
20149# A grep program that handles long lines.
20150GREP=$lt_GREP
20151
20152# An ERE matcher.
20153EGREP=$lt_EGREP
20154
20155# A literal string matcher.
20156FGREP=$lt_FGREP
20157
20158# A BSD- or MS-compatible name lister.
20159NM=$lt_NM
20160
20161# Whether we need soft or hard links.
20162LN_S=$lt_LN_S
20163
20164# What is the maximum length of a command?
20165max_cmd_len=$max_cmd_len
20166
20167# Object file suffix (normally "o").
20168objext=$ac_objext
20169
20170# Executable file suffix (normally "").
20171exeext=$exeext
20172
20173# whether the shell understands "unset".
20174lt_unset=$lt_unset
20175
20176# turn spaces into newlines.
20177SP2NL=$lt_lt_SP2NL
20178
20179# turn newlines into spaces.
20180NL2SP=$lt_lt_NL2SP
20181
20182# An object symbol dumper.
20183OBJDUMP=$lt_OBJDUMP
20184
20185# Method to check whether dependent libraries are shared objects.
20186deplibs_check_method=$lt_deplibs_check_method
20187
20188# Command to use when deplibs_check_method == "file_magic".
20189file_magic_cmd=$lt_file_magic_cmd
20190
20191# The archiver.
20192AR=$lt_AR
20193AR_FLAGS=$lt_AR_FLAGS
20194
20195# A symbol stripping program.
20196STRIP=$lt_STRIP
20197
20198# Commands used to install an old-style archive.
20199RANLIB=$lt_RANLIB
20200old_postinstall_cmds=$lt_old_postinstall_cmds
20201old_postuninstall_cmds=$lt_old_postuninstall_cmds
20202
20203# Whether to use a lock for old archive extraction.
20204lock_old_archive_extraction=$lock_old_archive_extraction
20205
20206# A C compiler.
20207LTCC=$lt_CC
20208
20209# LTCC compiler flags.
20210LTCFLAGS=$lt_CFLAGS
20211
20212# Take the output of nm and produce a listing of raw symbols and C names.
20213global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20214
20215# Transform the output of nm in a proper C declaration.
20216global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20217
20218# Transform the output of nm in a C name address pair.
20219global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20220
20221# Transform the output of nm in a C name address pair when lib prefix is needed.
20222global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20223
20224# The name of the directory that contains temporary libtool files.
20225objdir=$objdir
20226
20227# Used to examine libraries when file_magic_cmd begins with "file".
20228MAGIC_CMD=$MAGIC_CMD
20229
20230# Must we lock files when doing compilation?
20231need_locks=$lt_need_locks
20232
20233# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20234DSYMUTIL=$lt_DSYMUTIL
20235
20236# Tool to change global to local symbols on Mac OS X.
20237NMEDIT=$lt_NMEDIT
20238
20239# Tool to manipulate fat objects and archives on Mac OS X.
20240LIPO=$lt_LIPO
20241
20242# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20243OTOOL=$lt_OTOOL
20244
20245# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20246OTOOL64=$lt_OTOOL64
20247
20248# Old archive suffix (normally "a").
20249libext=$libext
20250
20251# Shared library suffix (normally ".so").
20252shrext_cmds=$lt_shrext_cmds
20253
20254# The commands to extract the exported symbol list from a shared archive.
20255extract_expsyms_cmds=$lt_extract_expsyms_cmds
20256
20257# Variables whose values should be saved in libtool wrapper scripts and
20258# restored at link time.
20259variables_saved_for_relink=$lt_variables_saved_for_relink
20260
20261# Do we need the "lib" prefix for modules?
20262need_lib_prefix=$need_lib_prefix
20263
20264# Do we need a version for libraries?
20265need_version=$need_version
20266
20267# Library versioning type.
20268version_type=$version_type
20269
20270# Shared library runtime path variable.
20271runpath_var=$runpath_var
20272
20273# Shared library path variable.
20274shlibpath_var=$shlibpath_var
20275
20276# Is shlibpath searched before the hard-coded library search path?
20277shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20278
20279# Format of library name prefix.
20280libname_spec=$lt_libname_spec
20281
20282# List of archive names. First name is the real one, the rest are links.
20283# The last name is the one that the linker finds with -lNAME
20284library_names_spec=$lt_library_names_spec
20285
20286# The coded name of the library, if different from the real name.
20287soname_spec=$lt_soname_spec
20288
20289# Permission mode override for installation of shared libraries.
20290install_override_mode=$lt_install_override_mode
20291
20292# Command to use after installation of a shared archive.
20293postinstall_cmds=$lt_postinstall_cmds
20294
20295# Command to use after uninstallation of a shared archive.
20296postuninstall_cmds=$lt_postuninstall_cmds
20297
20298# Commands used to finish a libtool library installation in a directory.
20299finish_cmds=$lt_finish_cmds
20300
20301# As "finish_cmds", except a single script fragment to be evaled but
20302# not shown.
20303finish_eval=$lt_finish_eval
20304
20305# Whether we should hardcode library paths into libraries.
20306hardcode_into_libs=$hardcode_into_libs
20307
20308# Compile-time system search path for libraries.
20309sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20310
20311# Run-time system search path for libraries.
20312sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20313
20314# Whether dlopen is supported.
20315dlopen_support=$enable_dlopen
20316
20317# Whether dlopen of programs is supported.
20318dlopen_self=$enable_dlopen_self
20319
20320# Whether dlopen of statically linked programs is supported.
20321dlopen_self_static=$enable_dlopen_self_static
20322
20323# Commands to strip libraries.
20324old_striplib=$lt_old_striplib
20325striplib=$lt_striplib
20326
20327
20328# The linker used to build libraries.
20329LD=$lt_LD
20330
20331# How to create reloadable object files.
20332reload_flag=$lt_reload_flag
20333reload_cmds=$lt_reload_cmds
20334
20335# Commands used to build an old-style archive.
20336old_archive_cmds=$lt_old_archive_cmds
20337
20338# A language specific compiler.
20339CC=$lt_compiler
20340
20341# Is the compiler the GNU compiler?
20342with_gcc=$GCC
20343
20344# Compiler flag to turn off builtin functions.
20345no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20346
20347# How to pass a linker flag through the compiler.
20348wl=$lt_lt_prog_compiler_wl
20349
20350# Additional compiler flags for building library objects.
20351pic_flag=$lt_lt_prog_compiler_pic
20352
20353# Compiler flag to prevent dynamic linking.
20354link_static_flag=$lt_lt_prog_compiler_static
20355
20356# Does compiler simultaneously support -c and -o options?
20357compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20358
20359# Whether or not to add -lc for building shared libraries.
20360build_libtool_need_lc=$archive_cmds_need_lc
20361
20362# Whether or not to disallow shared libs when runtime libs are static.
20363allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20364
20365# Compiler flag to allow reflexive dlopens.
20366export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20367
20368# Compiler flag to generate shared objects directly from archives.
20369whole_archive_flag_spec=$lt_whole_archive_flag_spec
20370
20371# Whether the compiler copes with passing no objects directly.
20372compiler_needs_object=$lt_compiler_needs_object
20373
20374# Create an old-style archive from a shared archive.
20375old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20376
20377# Create a temporary old-style archive to link instead of a shared archive.
20378old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20379
20380# Commands used to build a shared archive.
20381archive_cmds=$lt_archive_cmds
20382archive_expsym_cmds=$lt_archive_expsym_cmds
20383
20384# Commands used to build a loadable module if different from building
20385# a shared archive.
20386module_cmds=$lt_module_cmds
20387module_expsym_cmds=$lt_module_expsym_cmds
20388
20389# Whether we are building with GNU ld or not.
20390with_gnu_ld=$lt_with_gnu_ld
20391
20392# Flag that allows shared libraries with undefined symbols to be built.
20393allow_undefined_flag=$lt_allow_undefined_flag
20394
20395# Flag that enforces no undefined symbols.
20396no_undefined_flag=$lt_no_undefined_flag
20397
20398# Flag to hardcode \$libdir into a binary during linking.
20399# This must work even if \$libdir does not exist
20400hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20401
20402# If ld is used when linking, flag to hardcode \$libdir into a binary
20403# during linking. This must work even if \$libdir does not exist.
20404hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20405
20406# Whether we need a single "-rpath" flag with a separated argument.
20407hardcode_libdir_separator=$lt_hardcode_libdir_separator
20408
20409# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20410# DIR into the resulting binary.
20411hardcode_direct=$hardcode_direct
20412
20413# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20414# DIR into the resulting binary and the resulting library dependency is
20415# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20416# library is relocated.
20417hardcode_direct_absolute=$hardcode_direct_absolute
20418
20419# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20420# into the resulting binary.
20421hardcode_minus_L=$hardcode_minus_L
20422
20423# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20424# into the resulting binary.
20425hardcode_shlibpath_var=$hardcode_shlibpath_var
20426
20427# Set to "yes" if building a shared library automatically hardcodes DIR
20428# into the library and all subsequent libraries and executables linked
20429# against it.
20430hardcode_automatic=$hardcode_automatic
20431
20432# Set to yes if linker adds runtime paths of dependent libraries
20433# to runtime path list.
20434inherit_rpath=$inherit_rpath
20435
20436# Whether libtool must link a program against all its dependency libraries.
20437link_all_deplibs=$link_all_deplibs
20438
20439# Fix the shell variable \$srcfile for the compiler.
20440fix_srcfile_path=$lt_fix_srcfile_path
20441
20442# Set to "yes" if exported symbols are required.
20443always_export_symbols=$always_export_symbols
20444
20445# The commands to list exported symbols.
20446export_symbols_cmds=$lt_export_symbols_cmds
20447
20448# Symbols that should not be listed in the preloaded symbols.
20449exclude_expsyms=$lt_exclude_expsyms
20450
20451# Symbols that must always be exported.
20452include_expsyms=$lt_include_expsyms
20453
20454# Commands necessary for linking programs (against libraries) with templates.
20455prelink_cmds=$lt_prelink_cmds
20456
20457# Specify filename containing input files.
20458file_list_spec=$lt_file_list_spec
20459
20460# How to hardcode a shared library path into an executable.
20461hardcode_action=$hardcode_action
20462
20463# The directories searched by this compiler when creating a shared library.
20464compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20465
20466# Dependencies to place before and after the objects being linked to
20467# create a shared library.
20468predep_objects=$lt_predep_objects
20469postdep_objects=$lt_postdep_objects
20470predeps=$lt_predeps
20471postdeps=$lt_postdeps
20472
20473# The library search path used internally by the compiler when linking
20474# a shared library.
20475compiler_lib_search_path=$lt_compiler_lib_search_path
20476
20477# ### END LIBTOOL CONFIG
20478
20479_LT_EOF
20480
20481 case $host_os in
20482 aix3*)
20483 cat <<\_LT_EOF >> "$cfgfile"
20484# AIX sometimes has problems with the GCC collect2 program. For some
20485# reason, if we set the COLLECT_NAMES environment variable, the problems
20486# vanish in a puff of smoke.
20487if test "X${COLLECT_NAMES+set}" != Xset; then
20488 COLLECT_NAMES=
20489 export COLLECT_NAMES
20490fi
20491_LT_EOF
20492 ;;
20493 esac
20494
20495
20496ltmain="$ac_aux_dir/ltmain.sh"
20497
20498
20499 # We use sed instead of cat because bash on DJGPP gets confused if
20500 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20501 # text mode, it properly converts lines to CR/LF. This bash problem
20502 # is reportedly fixed, but why not run on old versions too?
20503 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20504 || (rm -f "$cfgfile"; exit 1)
20505
20506 case $xsi_shell in
20507 yes)
20508 cat << \_LT_EOF >> "$cfgfile"
20509
20510# func_dirname file append nondir_replacement
20511# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20512# otherwise set result to NONDIR_REPLACEMENT.
20513func_dirname ()
20514{
20515 case ${1} in
20516 */*) func_dirname_result="${1%/*}${2}" ;;
20517 * ) func_dirname_result="${3}" ;;
20518 esac
20519}
20520
20521# func_basename file
20522func_basename ()
20523{
20524 func_basename_result="${1##*/}"
20525}
20526
20527# func_dirname_and_basename file append nondir_replacement
20528# perform func_basename and func_dirname in a single function
20529# call:
20530# dirname: Compute the dirname of FILE. If nonempty,
20531# add APPEND to the result, otherwise set result
20532# to NONDIR_REPLACEMENT.
20533# value returned in "$func_dirname_result"
20534# basename: Compute filename of FILE.
20535# value retuned in "$func_basename_result"
20536# Implementation must be kept synchronized with func_dirname
20537# and func_basename. For efficiency, we do not delegate to
20538# those functions but instead duplicate the functionality here.
20539func_dirname_and_basename ()
20540{
20541 case ${1} in
20542 */*) func_dirname_result="${1%/*}${2}" ;;
20543 * ) func_dirname_result="${3}" ;;
20544 esac
20545 func_basename_result="${1##*/}"
20546}
20547
20548# func_stripname prefix suffix name
20549# strip PREFIX and SUFFIX off of NAME.
20550# PREFIX and SUFFIX must not contain globbing or regex special
20551# characters, hashes, percent signs, but SUFFIX may contain a leading
20552# dot (in which case that matches only a dot).
20553func_stripname ()
20554{
20555 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20556 # positional parameters, so assign one to ordinary parameter first.
20557 func_stripname_result=${3}
20558 func_stripname_result=${func_stripname_result#"${1}"}
20559 func_stripname_result=${func_stripname_result%"${2}"}
20560}
20561
20562# func_opt_split
20563func_opt_split ()
20564{
20565 func_opt_split_opt=${1%%=*}
20566 func_opt_split_arg=${1#*=}
20567}
20568
20569# func_lo2o object
20570func_lo2o ()
20571{
20572 case ${1} in
20573 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20574 *) func_lo2o_result=${1} ;;
20575 esac
20576}
20577
20578# func_xform libobj-or-source
20579func_xform ()
20580{
20581 func_xform_result=${1%.*}.lo
20582}
20583
20584# func_arith arithmetic-term...
20585func_arith ()
20586{
20587 func_arith_result=$(( $* ))
20588}
20589
20590# func_len string
20591# STRING may not start with a hyphen.
20592func_len ()
20593{
20594 func_len_result=${#1}
20595}
20596
20597_LT_EOF
20598 ;;
20599 *) # Bourne compatible functions.
20600 cat << \_LT_EOF >> "$cfgfile"
20601
20602# func_dirname file append nondir_replacement
20603# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20604# otherwise set result to NONDIR_REPLACEMENT.
20605func_dirname ()
20606{
20607 # Extract subdirectory from the argument.
20608 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20609 if test "X$func_dirname_result" = "X${1}"; then
20610 func_dirname_result="${3}"
20611 else
20612 func_dirname_result="$func_dirname_result${2}"
20613 fi
20614}
20615
20616# func_basename file
20617func_basename ()
20618{
20619 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20620}
20621
20622
20623# func_stripname prefix suffix name
20624# strip PREFIX and SUFFIX off of NAME.
20625# PREFIX and SUFFIX must not contain globbing or regex special
20626# characters, hashes, percent signs, but SUFFIX may contain a leading
20627# dot (in which case that matches only a dot).
20628# func_strip_suffix prefix name
20629func_stripname ()
20630{
20631 case ${2} in
20632 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20633 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20634 esac
20635}
20636
20637# sed scripts:
20638my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20639my_sed_long_arg='1s/^-[^=]*=//'
20640
20641# func_opt_split
20642func_opt_split ()
20643{
20644 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20645 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20646}
20647
20648# func_lo2o object
20649func_lo2o ()
20650{
20651 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20652}
20653
20654# func_xform libobj-or-source
20655func_xform ()
20656{
20657 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20658}
20659
20660# func_arith arithmetic-term...
20661func_arith ()
20662{
20663 func_arith_result=`expr "$@"`
20664}
20665
20666# func_len string
20667# STRING may not start with a hyphen.
20668func_len ()
20669{
20670 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20671}
20672
20673_LT_EOF
20674esac
20675
20676case $lt_shell_append in
20677 yes)
20678 cat << \_LT_EOF >> "$cfgfile"
20679
20680# func_append var value
20681# Append VALUE to the end of shell variable VAR.
20682func_append ()
20683{
20684 eval "$1+=\$2"
20685}
20686_LT_EOF
20687 ;;
20688 *)
20689 cat << \_LT_EOF >> "$cfgfile"
20690
20691# func_append var value
20692# Append VALUE to the end of shell variable VAR.
20693func_append ()
20694{
20695 eval "$1=\$$1\$2"
20696}
20697
20698_LT_EOF
20699 ;;
20700 esac
20701
20702
20703 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20704 || (rm -f "$cfgfile"; exit 1)
20705
20706 mv -f "$cfgfile" "$ofile" ||
20707 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20708 chmod +x "$ofile"
20709
20710
20711 cat <<_LT_EOF >> "$ofile"
20712
20713# ### BEGIN LIBTOOL TAG CONFIG: CXX
20714
20715# The linker used to build libraries.
20716LD=$lt_LD_CXX
20717
20718# How to create reloadable object files.
20719reload_flag=$lt_reload_flag_CXX
20720reload_cmds=$lt_reload_cmds_CXX
20721
20722# Commands used to build an old-style archive.
20723old_archive_cmds=$lt_old_archive_cmds_CXX
20724
20725# A language specific compiler.
20726CC=$lt_compiler_CXX
20727
20728# Is the compiler the GNU compiler?
20729with_gcc=$GCC_CXX
20730
20731# Compiler flag to turn off builtin functions.
20732no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20733
20734# How to pass a linker flag through the compiler.
20735wl=$lt_lt_prog_compiler_wl_CXX
20736
20737# Additional compiler flags for building library objects.
20738pic_flag=$lt_lt_prog_compiler_pic_CXX
20739
20740# Compiler flag to prevent dynamic linking.
20741link_static_flag=$lt_lt_prog_compiler_static_CXX
20742
20743# Does compiler simultaneously support -c and -o options?
20744compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20745
20746# Whether or not to add -lc for building shared libraries.
20747build_libtool_need_lc=$archive_cmds_need_lc_CXX
20748
20749# Whether or not to disallow shared libs when runtime libs are static.
20750allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20751
20752# Compiler flag to allow reflexive dlopens.
20753export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20754
20755# Compiler flag to generate shared objects directly from archives.
20756whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20757
20758# Whether the compiler copes with passing no objects directly.
20759compiler_needs_object=$lt_compiler_needs_object_CXX
20760
20761# Create an old-style archive from a shared archive.
20762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20763
20764# Create a temporary old-style archive to link instead of a shared archive.
20765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20766
20767# Commands used to build a shared archive.
20768archive_cmds=$lt_archive_cmds_CXX
20769archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20770
20771# Commands used to build a loadable module if different from building
20772# a shared archive.
20773module_cmds=$lt_module_cmds_CXX
20774module_expsym_cmds=$lt_module_expsym_cmds_CXX
20775
20776# Whether we are building with GNU ld or not.
20777with_gnu_ld=$lt_with_gnu_ld_CXX
20778
20779# Flag that allows shared libraries with undefined symbols to be built.
20780allow_undefined_flag=$lt_allow_undefined_flag_CXX
20781
20782# Flag that enforces no undefined symbols.
20783no_undefined_flag=$lt_no_undefined_flag_CXX
20784
20785# Flag to hardcode \$libdir into a binary during linking.
20786# This must work even if \$libdir does not exist
20787hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20788
20789# If ld is used when linking, flag to hardcode \$libdir into a binary
20790# during linking. This must work even if \$libdir does not exist.
20791hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20792
20793# Whether we need a single "-rpath" flag with a separated argument.
20794hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20795
20796# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20797# DIR into the resulting binary.
20798hardcode_direct=$hardcode_direct_CXX
20799
20800# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20801# DIR into the resulting binary and the resulting library dependency is
20802# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20803# library is relocated.
20804hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20805
20806# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20807# into the resulting binary.
20808hardcode_minus_L=$hardcode_minus_L_CXX
20809
20810# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20811# into the resulting binary.
20812hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20813
20814# Set to "yes" if building a shared library automatically hardcodes DIR
20815# into the library and all subsequent libraries and executables linked
20816# against it.
20817hardcode_automatic=$hardcode_automatic_CXX
20818
20819# Set to yes if linker adds runtime paths of dependent libraries
20820# to runtime path list.
20821inherit_rpath=$inherit_rpath_CXX
20822
20823# Whether libtool must link a program against all its dependency libraries.
20824link_all_deplibs=$link_all_deplibs_CXX
20825
20826# Fix the shell variable \$srcfile for the compiler.
20827fix_srcfile_path=$lt_fix_srcfile_path_CXX
20828
20829# Set to "yes" if exported symbols are required.
20830always_export_symbols=$always_export_symbols_CXX
20831
20832# The commands to list exported symbols.
20833export_symbols_cmds=$lt_export_symbols_cmds_CXX
20834
20835# Symbols that should not be listed in the preloaded symbols.
20836exclude_expsyms=$lt_exclude_expsyms_CXX
20837
20838# Symbols that must always be exported.
20839include_expsyms=$lt_include_expsyms_CXX
20840
20841# Commands necessary for linking programs (against libraries) with templates.
20842prelink_cmds=$lt_prelink_cmds_CXX
20843
20844# Specify filename containing input files.
20845file_list_spec=$lt_file_list_spec_CXX
20846
20847# How to hardcode a shared library path into an executable.
20848hardcode_action=$hardcode_action_CXX
20849
20850# The directories searched by this compiler when creating a shared library.
20851compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20852
20853# Dependencies to place before and after the objects being linked to
20854# create a shared library.
20855predep_objects=$lt_predep_objects_CXX
20856postdep_objects=$lt_postdep_objects_CXX
20857predeps=$lt_predeps_CXX
20858postdeps=$lt_postdeps_CXX
20859
20860# The library search path used internally by the compiler when linking
20861# a shared library.
20862compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20863
20864# ### END LIBTOOL TAG CONFIG: CXX
20865_LT_EOF
20866
20867 ;;
20868 "gstdint.h":C)
20869if test "$GCC" = yes; then
20870 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20871else
20872 echo "/* generated for $CC */" > tmp-stdint.h
20873fi
20874
20875sed 's/^ *//' >> tmp-stdint.h <<EOF
20876
20877 #ifndef GCC_GENERATED_STDINT_H
20878 #define GCC_GENERATED_STDINT_H 1
20879
20880 #include <sys/types.h>
20881EOF
20882
20883if test "$acx_cv_header_stdint" != stdint.h; then
20884 echo "#include <stddef.h>" >> tmp-stdint.h
20885fi
20886if test "$acx_cv_header_stdint" != stddef.h; then
20887 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20888fi
20889
20890sed 's/^ *//' >> tmp-stdint.h <<EOF
20891 /* glibc uses these symbols as guards to prevent redefinitions. */
20892 #ifdef __int8_t_defined
20893 #define _INT8_T
20894 #define _INT16_T
20895 #define _INT32_T
20896 #endif
20897 #ifdef __uint32_t_defined
20898 #define _UINT32_T
20899 #endif
20900
20901EOF
20902
20903# ----------------- done header, emit basic int types -------------
20904if test "$acx_cv_header_stdint" = stddef.h; then
20905 sed 's/^ *//' >> tmp-stdint.h <<EOF
20906
20907 #ifndef _UINT8_T
20908 #define _UINT8_T
20909 #ifndef __uint8_t_defined
20910 #define __uint8_t_defined
20911 #ifndef uint8_t
20912 typedef unsigned $acx_cv_type_int8_t uint8_t;
20913 #endif
20914 #endif
20915 #endif
20916
20917 #ifndef _UINT16_T
20918 #define _UINT16_T
20919 #ifndef __uint16_t_defined
20920 #define __uint16_t_defined
20921 #ifndef uint16_t
20922 typedef unsigned $acx_cv_type_int16_t uint16_t;
20923 #endif
20924 #endif
20925 #endif
20926
20927 #ifndef _UINT32_T
20928 #define _UINT32_T
20929 #ifndef __uint32_t_defined
20930 #define __uint32_t_defined
20931 #ifndef uint32_t
20932 typedef unsigned $acx_cv_type_int32_t uint32_t;
20933 #endif
20934 #endif
20935 #endif
20936
20937 #ifndef _INT8_T
20938 #define _INT8_T
20939 #ifndef __int8_t_defined
20940 #define __int8_t_defined
20941 #ifndef int8_t
20942 typedef $acx_cv_type_int8_t int8_t;
20943 #endif
20944 #endif
20945 #endif
20946
20947 #ifndef _INT16_T
20948 #define _INT16_T
20949 #ifndef __int16_t_defined
20950 #define __int16_t_defined
20951 #ifndef int16_t
20952 typedef $acx_cv_type_int16_t int16_t;
20953 #endif
20954 #endif
20955 #endif
20956
20957 #ifndef _INT32_T
20958 #define _INT32_T
20959 #ifndef __int32_t_defined
20960 #define __int32_t_defined
20961 #ifndef int32_t
20962 typedef $acx_cv_type_int32_t int32_t;
20963 #endif
20964 #endif
20965 #endif
20966EOF
20967elif test "$ac_cv_type_u_int32_t" = yes; then
20968 sed 's/^ *//' >> tmp-stdint.h <<EOF
20969
20970 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20971 #ifndef _INT8_T
20972 #define _INT8_T
20973 #endif
20974 #ifndef _INT16_T
20975 #define _INT16_T
20976 #endif
20977 #ifndef _INT32_T
20978 #define _INT32_T
20979 #endif
20980
20981 #ifndef _UINT8_T
20982 #define _UINT8_T
20983 #ifndef __uint8_t_defined
20984 #define __uint8_t_defined
20985 #ifndef uint8_t
20986 typedef u_int8_t uint8_t;
20987 #endif
20988 #endif
20989 #endif
20990
20991 #ifndef _UINT16_T
20992 #define _UINT16_T
20993 #ifndef __uint16_t_defined
20994 #define __uint16_t_defined
20995 #ifndef uint16_t
20996 typedef u_int16_t uint16_t;
20997 #endif
20998 #endif
20999 #endif
21000
21001 #ifndef _UINT32_T
21002 #define _UINT32_T
21003 #ifndef __uint32_t_defined
21004 #define __uint32_t_defined
21005 #ifndef uint32_t
21006 typedef u_int32_t uint32_t;
21007 #endif
21008 #endif
21009 #endif
21010EOF
21011else
21012 sed 's/^ *//' >> tmp-stdint.h <<EOF
21013
21014 /* Some systems have guard macros to prevent redefinitions, define them. */
21015 #ifndef _INT8_T
21016 #define _INT8_T
21017 #endif
21018 #ifndef _INT16_T
21019 #define _INT16_T
21020 #endif
21021 #ifndef _INT32_T
21022 #define _INT32_T
21023 #endif
21024 #ifndef _UINT8_T
21025 #define _UINT8_T
21026 #endif
21027 #ifndef _UINT16_T
21028 #define _UINT16_T
21029 #endif
21030 #ifndef _UINT32_T
21031 #define _UINT32_T
21032 #endif
21033EOF
21034fi
21035
21036# ------------- done basic int types, emit int64_t types ------------
21037if test "$ac_cv_type_uint64_t" = yes; then
21038 sed 's/^ *//' >> tmp-stdint.h <<EOF
21039
21040 /* system headers have good uint64_t and int64_t */
21041 #ifndef _INT64_T
21042 #define _INT64_T
21043 #endif
21044 #ifndef _UINT64_T
21045 #define _UINT64_T
21046 #endif
21047EOF
21048elif test "$ac_cv_type_u_int64_t" = yes; then
21049 sed 's/^ *//' >> tmp-stdint.h <<EOF
21050
21051 /* system headers have an u_int64_t (and int64_t) */
21052 #ifndef _INT64_T
21053 #define _INT64_T
21054 #endif
21055 #ifndef _UINT64_T
21056 #define _UINT64_T
21057 #ifndef __uint64_t_defined
21058 #define __uint64_t_defined
21059 #ifndef uint64_t
21060 typedef u_int64_t uint64_t;
21061 #endif
21062 #endif
21063 #endif
21064EOF
21065elif test -n "$acx_cv_type_int64_t"; then
21066 sed 's/^ *//' >> tmp-stdint.h <<EOF
21067
21068 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
21069 #ifndef _INT64_T
21070 #define _INT64_T
21071 #ifndef int64_t
21072 typedef $acx_cv_type_int64_t int64_t;
21073 #endif
21074 #endif
21075 #ifndef _UINT64_T
21076 #define _UINT64_T
21077 #ifndef __uint64_t_defined
21078 #define __uint64_t_defined
21079 #ifndef uint64_t
21080 typedef unsigned $acx_cv_type_int64_t uint64_t;
21081 #endif
21082 #endif
21083 #endif
21084EOF
21085else
21086 sed 's/^ *//' >> tmp-stdint.h <<EOF
21087
21088 /* some common heuristics for int64_t, using compiler-specific tests */
21089 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
21090 #ifndef _INT64_T
21091 #define _INT64_T
21092 #ifndef __int64_t_defined
21093 #ifndef int64_t
21094 typedef long long int64_t;
21095 #endif
21096 #endif
21097 #endif
21098 #ifndef _UINT64_T
21099 #define _UINT64_T
21100 #ifndef uint64_t
21101 typedef unsigned long long uint64_t;
21102 #endif
21103 #endif
21104
21105 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
21106 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
21107 does not implement __extension__. But that compiler doesn't define
21108 __GNUC_MINOR__. */
21109 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
21110 # define __extension__
21111 # endif
21112
21113 # ifndef _INT64_T
21114 # define _INT64_T
21115 # ifndef int64_t
21116 __extension__ typedef long long int64_t;
21117 # endif
21118 # endif
21119 # ifndef _UINT64_T
21120 # define _UINT64_T
21121 # ifndef uint64_t
21122 __extension__ typedef unsigned long long uint64_t;
21123 # endif
21124 # endif
21125
21126 #elif !defined __STRICT_ANSI__
21127 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
21128
21129 # ifndef _INT64_T
21130 # define _INT64_T
21131 # ifndef int64_t
21132 typedef __int64 int64_t;
21133 # endif
21134 # endif
21135 # ifndef _UINT64_T
21136 # define _UINT64_T
21137 # ifndef uint64_t
21138 typedef unsigned __int64 uint64_t;
21139 # endif
21140 # endif
21141 # endif /* compiler */
21142
21143 #endif /* ANSI version */
21144EOF
21145fi
21146
21147# ------------- done int64_t types, emit intptr types ------------
21148if test "$ac_cv_type_uintptr_t" != yes; then
21149 sed 's/^ *//' >> tmp-stdint.h <<EOF
21150
21151 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
21152 #ifndef __uintptr_t_defined
21153 #ifndef uintptr_t
21154 typedef u$acx_cv_type_intptr_t uintptr_t;
21155 #endif
21156 #endif
21157 #ifndef __intptr_t_defined
21158 #ifndef intptr_t
21159 typedef $acx_cv_type_intptr_t intptr_t;
21160 #endif
21161 #endif
21162EOF
21163fi
21164
21165# ------------- done intptr types, emit int_least types ------------
21166if test "$ac_cv_type_int_least32_t" != yes; then
21167 sed 's/^ *//' >> tmp-stdint.h <<EOF
21168
21169 /* Define int_least types */
21170 typedef int8_t int_least8_t;
21171 typedef int16_t int_least16_t;
21172 typedef int32_t int_least32_t;
21173 #ifdef _INT64_T
21174 typedef int64_t int_least64_t;
21175 #endif
21176
21177 typedef uint8_t uint_least8_t;
21178 typedef uint16_t uint_least16_t;
21179 typedef uint32_t uint_least32_t;
21180 #ifdef _UINT64_T
21181 typedef uint64_t uint_least64_t;
21182 #endif
21183EOF
21184fi
21185
21186# ------------- done intptr types, emit int_fast types ------------
21187if test "$ac_cv_type_int_fast32_t" != yes; then
21188 sed 's/^ *//' >> tmp-stdint.h <<EOF
21189
21190 /* Define int_fast types. short is often slow */
21191 typedef int8_t int_fast8_t;
21192 typedef int int_fast16_t;
21193 typedef int32_t int_fast32_t;
21194 #ifdef _INT64_T
21195 typedef int64_t int_fast64_t;
21196 #endif
21197
21198 typedef uint8_t uint_fast8_t;
21199 typedef unsigned int uint_fast16_t;
21200 typedef uint32_t uint_fast32_t;
21201 #ifdef _UINT64_T
21202 typedef uint64_t uint_fast64_t;
21203 #endif
21204EOF
21205fi
21206
21207if test "$ac_cv_type_uintmax_t" != yes; then
21208 sed 's/^ *//' >> tmp-stdint.h <<EOF
21209
21210 /* Define intmax based on what we found */
21211 #ifndef intmax_t
21212 #ifdef _INT64_T
21213 typedef int64_t intmax_t;
21214 #else
21215 typedef long intmax_t;
21216 #endif
21217 #endif
21218 #ifndef uintmax_t
21219 #ifdef _UINT64_T
21220 typedef uint64_t uintmax_t;
21221 #else
21222 typedef unsigned long uintmax_t;
21223 #endif
21224 #endif
21225EOF
21226fi
21227
21228sed 's/^ *//' >> tmp-stdint.h <<EOF
21229
21230 #endif /* GCC_GENERATED_STDINT_H */
21231EOF
21232
21233if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
21234 rm -f tmp-stdint.h
21235else
21236 mv -f tmp-stdint.h gstdint.h
21237fi
21238
21239 ;;
21240
21241 esac
21242done # for ac_tag
21243
21244
21245as_fn_exit 0
21246_ACEOF
21247ac_clean_files=$ac_clean_files_save
21248
21249test $ac_write_fail = 0 ||
22e05272 21250 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
0a35513e
AH
21251
21252
21253# configure is writing to config.log, and then calls config.status.
21254# config.status does its own redirection, appending to config.log.
21255# Unfortunately, on DOS this fails, as config.log is still kept open
21256# by configure, so config.status won't be able to write to it; its
21257# output is simply discarded. So we exec the FD to /dev/null,
21258# effectively closing config.log, so it can be properly (re)opened and
21259# appended to by config.status. When coming back to configure, we
21260# need to make the FD available again.
21261if test "$no_create" != yes; then
21262 ac_cs_success=:
21263 ac_config_status_args=
21264 test "$silent" = yes &&
21265 ac_config_status_args="$ac_config_status_args --quiet"
21266 exec 5>/dev/null
21267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21268 exec 5>>config.log
21269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21270 # would make configure fail if this is the last instruction.
22e05272 21271 $ac_cs_success || as_fn_exit 1
0a35513e
AH
21272fi
21273if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21275$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21276fi
21277