]> gcc.gnu.org Git - gcc.git/blame - lto-plugin/configure
GCC: Check if AR works with --plugin and rc
[gcc.git] / lto-plugin / configure
CommitLineData
d7f09764
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for LTO plugin for ld 0.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
d7f09764 7#
d7f09764
DN
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=
d7f09764
DN
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;}
d7f09764
DN
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"
d7f09764
DN
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
dcbc9df9 199test \$(( 1 + 1 )) = 2 || exit 1
52327858
L
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
dcbc9df9 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
d7f09764
DN
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
d7f09764
DN
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"
d7f09764
DN
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
d7f09764
DN
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# ----------------------------------------
d7f09764
DN
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.
d7f09764
DN
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
d7f09764 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
d7f09764
DN
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
d7f09764
DN
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'.
d7f09764 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
d7f09764
DN
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
d7f09764
DN
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
d7f09764
DN
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
d7f09764
DN
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
d7f09764
DN
564SHELL=${CONFIG_SHELL-/bin/sh}
565
d7f09764 566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
d7f09764
DN
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d7f09764
DN
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='LTO plugin for ld'
589PACKAGE_TARNAME='lto-plugin'
590PACKAGE_VERSION='0.1'
591PACKAGE_STRING='LTO plugin for ld 0.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
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
635target_noncanonical
7de6ba7a 636lt_host_flags
d7f09764
DN
637OTOOL64
638OTOOL
639LIPO
640NMEDIT
641DSYMUTIL
d7f09764
DN
642RANLIB
643AR
644OBJDUMP
645LN_S
646NM
647ac_ct_DUMPBIN
648DUMPBIN
649LD
650FGREP
d7f09764 651SED
d7f09764 652LIBTOOL
29f40a80 653ac_lto_plugin_extra_ldflags
6ee58926
JJ
654LTO_PLUGIN_USE_SYMVER_SUN_FALSE
655LTO_PLUGIN_USE_SYMVER_SUN_TRUE
656LTO_PLUGIN_USE_SYMVER_GNU_FALSE
657LTO_PLUGIN_USE_SYMVER_GNU_TRUE
658LTO_PLUGIN_USE_SYMVER_FALSE
659LTO_PLUGIN_USE_SYMVER_TRUE
3c36aa6b 660get_gcc_base_ver
85c64bbe
BS
661real_target_noncanonical
662accel_dir_suffix
43f4a446 663gcc_build_dir
8fc8bf80 664CET_HOST_FLAGS
5523efdf 665ac_lto_plugin_ldflags
33ebb0df 666enable_host_bind_now
f3016c47 667ac_lto_plugin_warn_cflags
dcbc9df9
UB
668EGREP
669GREP
670CPP
d7f09764
DN
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
ed9b4ae3 674am__nodep
d7f09764
DN
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
2a7a8388 688with_libiberty
03428d41
RG
689MAINT
690MAINTAINER_MODE_FALSE
691MAINTAINER_MODE_TRUE
22e05272
JM
692AM_BACKSLASH
693AM_DEFAULT_VERBOSITY
694AM_DEFAULT_V
695AM_V
d7f09764
DN
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_subdir
720host_subdir
721build_subdir
722build_libsubdir
73d5e770
L
723target_os
724target_vendor
725target_cpu
726target
727host_os
728host_vendor
729host_cpu
730host
d7f09764
DN
731build_os
732build_vendor
733build_cpu
734build
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
773ac_subst_files=''
774ac_user_opts='
775enable_option_checking
776with_build_libsubdir
22e05272 777enable_silent_rules
03428d41 778enable_maintainer_mode
2a7a8388 779with_libiberty
d7f09764 780enable_dependency_tracking
4c0f4b0b 781enable_largefile
33ebb0df 782enable_host_bind_now
8fc8bf80 783enable_cet
3c36aa6b 784with_gcc_major_version_only
d7f09764
DN
785enable_shared
786enable_static
787with_pic
788enable_fast_install
789with_gnu_ld
790enable_libtool_lock
d7f09764
DN
791'
792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
d7f09764
DN
800CPP'
801
802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806ac_unrecognized_opts=
807ac_unrecognized_sep=
808# The variables have the same names as the options, with
809# dashes changed to underlines.
810cache_file=/dev/null
811exec_prefix=NONE
812no_create=
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
820srcdir=
821verbose=
822x_includes=NONE
823x_libraries=NONE
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
830# (The list follows the same order as the GNU Coding Standards.)
831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
839includedir='${prefix}/include'
840oldincludedir='/usr/include'
841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
850
851ac_prev=
852ac_dashdash=
853for ac_option
854do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
22e05272
JM
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
d7f09764
DN
866 esac
867
868 # Accept the important Cygnus configure options, so we can diagnose typos.
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 910 as_fn_error $? "invalid feature name: $ac_useropt"
d7f09764
DN
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915"enable_$ac_useropt"
916"*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 936 as_fn_error $? "invalid feature name: $ac_useropt"
d7f09764
DN
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1140 as_fn_error $? "invalid package name: $ac_useropt"
d7f09764
DN
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145"with_$ac_useropt"
1146"*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1151
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1156 as_fn_error $? "invalid package name: $ac_useropt"
d7f09764
DN
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161"with_$ac_useropt"
1162"*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1167
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1171
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1178
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1185
22e05272
JM
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187Try \`$0 --help' for more information"
d7f09764
DN
1188 ;;
1189
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
d7f09764
DN
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1199
1200 *)
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d7f09764
DN
1206 ;;
1207
1208 esac
1209done
1210
1211if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1213 as_fn_error $? "missing argument to $ac_option"
d7f09764
DN
1214fi
1215
1216if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
22e05272 1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
d7f09764
DN
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1222fi
1223
1224# Check all directory arguments for consistency.
1225for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1229do
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
22e05272 1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d7f09764
DN
1243done
1244
1245# There might be people who depend on the old broken behavior: `$host'
1246# used to hold the argument of --host etc.
1247# FIXME: To remove some day.
1248build=$build_alias
1249host=$host_alias
1250target=$target_alias
1251
1252# FIXME: To remove some day.
1253if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
d7f09764
DN
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1258 fi
1259fi
1260
1261ac_tool_prefix=
1262test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264test "$silent" = yes && exec 6>/dev/null
1265
1266
1267ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268ac_ls_di=`ls -di .` &&
1269ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1270 as_fn_error $? "working directory cannot be determined"
d7f09764 1271test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1272 as_fn_error $? "pwd does not report name of working directory"
d7f09764
DN
1273
1274
1275# Find the source files, if location was not specified.
1276if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284$as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\).*/{
1298 s//\1/
1299 q
1300 }
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1305 fi
1306else
1307 ac_srcdir_defaulted=no
1308fi
1309if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d7f09764
DN
1312fi
1313ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314ac_abs_confdir=`(
22e05272 1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
d7f09764
DN
1316 pwd)`
1317# When building in place, set srcdir=.
1318if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1320fi
1321# Remove unnecessary trailing slashes from srcdir.
1322# Double slashes in file names in object file debugging info
1323# mess up M-x gdb in Emacs.
1324case $srcdir in
1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326esac
1327for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332done
1333
1334#
1335# Report the --help message.
1336#
1337if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341\`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1342
1343Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346VAR=VALUE. See below for descriptions of some of the useful variables.
1347
1348Defaults for the options are specified in brackets.
1349
1350Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
22e05272 1355 -q, --quiet, --silent do not print \`checking ...' messages
d7f09764
DN
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360
1361Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1366
1367By default, \`make install' will install all the files in
1368\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370for instance \`--prefix=\$HOME'.
1371
1372For better control, use the options below.
1373
1374Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394_ACEOF
1395
1396 cat <<\_ACEOF
1397
1398Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
73d5e770 1406 --target=TARGET configure for building compilers for TARGET [HOST]
d7f09764
DN
1407_ACEOF
1408fi
1409
1410if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1413 esac
1414 cat <<\_ACEOF
1415
1416Optional Features:
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
22e05272
JM
1420 --enable-silent-rules less verbose build output (undo: "make V=1")
1421 --disable-silent-rules verbose build output (undo: "make V=0")
1422 --enable-maintainer-mode
1423 enable make rules and dependencies not useful (and
1424 sometimes confusing) to the casual installer
1425 --enable-dependency-tracking
1426 do not reject slow dependency extractors
1427 --disable-dependency-tracking
1428 speeds up one-time build
4c0f4b0b 1429 --disable-largefile omit support for large files
33ebb0df 1430 --enable-host-bind-now link host code as BIND_NOW
8fc8bf80 1431 --enable-cet enable Intel CET in host libraries [default=auto]
d7f09764
DN
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-static[=PKGS] build static libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --disable-libtool-lock avoid locking (might break parallel builds)
d7f09764
DN
1437
1438Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-build-libsubdir=DIR Directory where to find libraries for build system
2a7a8388
TS
1442 --with-libiberty=PATH specify the directory where to find libiberty
1443 [../libiberty]
3c36aa6b
JJ
1444 --with-gcc-major-version-only
1445 use only GCC major number in filesystem paths
d7f09764
DN
1446 --with-pic try to use only PIC/non-PIC objects [default=use
1447 both]
1448 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1449
1450Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
d7f09764 1457 you have headers in a nonstandard directory <include dir>
d7f09764
DN
1458 CPP C preprocessor
1459
1460Use these variables to override the choices made by `configure' or to help
1461it to find libraries and programs with nonstandard names/locations.
1462
1463Report bugs to the package provider.
1464_ACEOF
1465ac_status=$?
1466fi
1467
1468if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1475
1476case "$ac_dir" in
1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478*)
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486esac
1487ac_abs_top_builddir=$ac_pwd
1488ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489# for backward compatibility:
1490ac_top_builddir=$ac_top_build_prefix
1491
1492case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505esac
1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1521fi
1522
1523test -n "$ac_init_help" && exit $ac_status
1524if $ac_init_version; then
1525 cat <<\_ACEOF
1526LTO plugin for ld configure 0.1
22e05272 1527generated by GNU Autoconf 2.69
d7f09764 1528
22e05272 1529Copyright (C) 2012 Free Software Foundation, Inc.
d7f09764
DN
1530This configure script is free software; the Free Software Foundation
1531gives unlimited permission to copy, distribute and modify it.
1532_ACEOF
1533 exit
1534fi
1535
1536## ------------------------ ##
1537## Autoconf initialization. ##
1538## ------------------------ ##
1539
1540# ac_fn_c_try_compile LINENO
1541# --------------------------
1542# Try to compile conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_c_try_compile ()
1544{
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567else
1568 $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572fi
22e05272
JM
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
d7f09764
DN
1575
1576} # ac_fn_c_try_compile
1577
dcbc9df9
UB
1578# ac_fn_c_try_cpp LINENO
1579# ----------------------
1580# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_cpp ()
d7f09764
DN
1582{
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
dcbc9df9 1584 if { { ac_try="$ac_cpp conftest.$ac_ext"
d7f09764
DN
1585case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
dcbc9df9 1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
d7f09764
DN
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1599 test $ac_status = 0; } > conftest.i && {
dcbc9df9 1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
d7f09764 1601 test ! -s conftest.err
d7f09764
DN
1602 }; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
dcbc9df9 1608 ac_retval=1
d7f09764 1609fi
22e05272
JM
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
d7f09764 1612
dcbc9df9 1613} # ac_fn_c_try_cpp
d7f09764 1614
dcbc9df9 1615# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
d7f09764 1616# -------------------------------------------------------
dcbc9df9
UB
1617# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1618# the include files in INCLUDES and setting the cache variable VAR
1619# accordingly.
1620ac_fn_c_check_header_mongrel ()
d7f09764
DN
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1623 if eval \${$3+:} false; then :
d7f09764
DN
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625$as_echo_n "checking for $2... " >&6; }
22e05272 1626if eval \${$3+:} false; then :
d7f09764 1627 $as_echo_n "(cached) " >&6
dcbc9df9
UB
1628fi
1629eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631$as_echo "$ac_res" >&6; }
d7f09764 1632else
dcbc9df9
UB
1633 # Is the header compilable?
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1635$as_echo_n "checking $2 usability... " >&6; }
1636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f09764
DN
1637/* end confdefs.h. */
1638$4
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_compile "$LINENO"; then :
dcbc9df9 1642 ac_header_compiler=yes
d7f09764 1643else
dcbc9df9 1644 ac_header_compiler=no
d7f09764
DN
1645fi
1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dcbc9df9
UB
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1648$as_echo "$ac_header_compiler" >&6; }
1649
1650# Is the header present?
1651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1652$as_echo_n "checking $2 presence... " >&6; }
1653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h. */
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_cpp "$LINENO"; then :
1658 ac_header_preproc=yes
1659else
1660 ac_header_preproc=no
1661fi
22e05272 1662rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1664$as_echo "$ac_header_preproc" >&6; }
1665
1666# So? What about this header?
1667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1668 yes:no: )
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1670$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 ;;
1674 no:yes:* )
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1676$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1678$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1680$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1682$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685 ;;
1686esac
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688$as_echo_n "checking for $2... " >&6; }
22e05272 1689if eval \${$3+:} false; then :
dcbc9df9
UB
1690 $as_echo_n "(cached) " >&6
1691else
1692 eval "$3=\$ac_header_compiler"
d7f09764
DN
1693fi
1694eval ac_res=\$$3
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696$as_echo "$ac_res" >&6; }
d7f09764 1697fi
22e05272 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d7f09764 1699
dcbc9df9 1700} # ac_fn_c_check_header_mongrel
d7f09764
DN
1701
1702# ac_fn_c_try_run LINENO
1703# ----------------------
1704# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705# that executables *can* be run.
1706ac_fn_c_try_run ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1730 ac_retval=0
1731else
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=$ac_status
1737fi
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
d7f09764
DN
1741
1742} # ac_fn_c_try_run
1743
dcbc9df9
UB
1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745# -------------------------------------------------------
1746# Tests whether HEADER exists and can be compiled using the include files in
1747# INCLUDES, setting the cache variable VAR accordingly.
1748ac_fn_c_check_header_compile ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
22e05272 1753if eval \${$3+:} false; then :
dcbc9df9
UB
1754 $as_echo_n "(cached) " >&6
1755else
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h. */
1758$4
1759#include <$2>
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762 eval "$3=yes"
1763else
1764 eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
22e05272 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
dcbc9df9
UB
1772
1773} # ac_fn_c_check_header_compile
1774
1775# ac_fn_c_try_link LINENO
1776# -----------------------
1777# Try to link conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_link ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
22e05272 1802 test -x conftest$ac_exeext
dcbc9df9
UB
1803 }; then :
1804 ac_retval=0
1805else
1806 $as_echo "$as_me: failed program was:" >&5
1807sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810fi
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
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
dcbc9df9
UB
1818
1819} # ac_fn_c_try_link
1820
d7f09764
DN
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 :
d7f09764
DN
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
d7f09764
DN
1885
1886} # ac_fn_c_check_func
21750c78 1887
d19e0f01
DK
1888# ac_fn_c_find_intX_t LINENO BITS VAR
1889# -----------------------------------
1890# Finds a signed integer type with width BITS, setting cache variable VAR
1891# accordingly.
1892ac_fn_c_find_intX_t ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1896$as_echo_n "checking for int$2_t... " >&6; }
22e05272 1897if eval \${$3+:} false; then :
d19e0f01
DK
1898 $as_echo_n "(cached) " >&6
1899else
1900 eval "$3=no"
22e05272
JM
1901 # Order is important - never check a type that is potentially smaller
1902 # than half of the expected target width.
d19e0f01
DK
1903 for ac_type in int$2_t 'int' 'long int' \
1904 'long long int' 'short int' 'signed char'; do
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h. */
1907$ac_includes_default
22e05272 1908 enum { N = $2 / 2 - 1 };
d19e0f01
DK
1909int
1910main ()
1911{
22e05272
JM
1912static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1913test_array [0] = 0;
1914return test_array [0];
d19e0f01
DK
1915
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_compile "$LINENO"; then :
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h. */
1923$ac_includes_default
22e05272 1924 enum { N = $2 / 2 - 1 };
d19e0f01
DK
1925int
1926main ()
1927{
22e05272
JM
1928static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1929 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1930test_array [0] = 0;
1931return test_array [0];
d19e0f01
DK
1932
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938
1939else
1940 case $ac_type in #(
1941 int$2_t) :
1942 eval "$3=yes" ;; #(
1943 *) :
1944 eval "$3=\$ac_type" ;;
1945esac
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22e05272 1950 if eval test \"x\$"$3"\" = x"no"; then :
d19e0f01
DK
1951
1952else
1953 break
1954fi
1955 done
1956fi
1957eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
22e05272 1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d19e0f01
DK
1961
1962} # ac_fn_c_find_intX_t
1963
21750c78
RE
1964# ac_fn_c_find_uintX_t LINENO BITS VAR
1965# ------------------------------------
1966# Finds an unsigned integer type with width BITS, setting cache variable VAR
1967# accordingly.
1968ac_fn_c_find_uintX_t ()
1969{
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1972$as_echo_n "checking for uint$2_t... " >&6; }
22e05272 1973if eval \${$3+:} false; then :
21750c78
RE
1974 $as_echo_n "(cached) " >&6
1975else
1976 eval "$3=no"
22e05272
JM
1977 # Order is important - never check a type that is potentially smaller
1978 # than half of the expected target width.
21750c78
RE
1979 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1980 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h. */
1983$ac_includes_default
1984int
1985main ()
1986{
22e05272
JM
1987static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1988test_array [0] = 0;
1989return test_array [0];
21750c78
RE
1990
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_compile "$LINENO"; then :
1996 case $ac_type in #(
1997 uint$2_t) :
1998 eval "$3=yes" ;; #(
1999 *) :
2000 eval "$3=\$ac_type" ;;
2001esac
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22e05272 2004 if eval test \"x\$"$3"\" = x"no"; then :
21750c78
RE
2005
2006else
2007 break
2008fi
2009 done
2010fi
2011eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
22e05272 2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
21750c78
RE
2015
2016} # ac_fn_c_find_uintX_t
d7f09764
DN
2017cat >config.log <<_ACEOF
2018This file contains any messages produced by compilers while
2019running configure, to aid debugging if configure makes a mistake.
2020
2021It was created by LTO plugin for ld $as_me 0.1, which was
22e05272 2022generated by GNU Autoconf 2.69. Invocation command line was
d7f09764
DN
2023
2024 $ $0 $@
2025
2026_ACEOF
2027exec 5>>config.log
2028{
2029cat <<_ASUNAME
2030## --------- ##
2031## Platform. ##
2032## --------- ##
2033
2034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2035uname -m = `(uname -m) 2>/dev/null || echo unknown`
2036uname -r = `(uname -r) 2>/dev/null || echo unknown`
2037uname -s = `(uname -s) 2>/dev/null || echo unknown`
2038uname -v = `(uname -v) 2>/dev/null || echo unknown`
2039
2040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2042
2043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2046/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2050
2051_ASUNAME
2052
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 $as_echo "PATH: $as_dir"
2059 done
2060IFS=$as_save_IFS
2061
2062} >&5
2063
2064cat >&5 <<_ACEOF
2065
2066
2067## ----------- ##
2068## Core tests. ##
2069## ----------- ##
2070
2071_ACEOF
2072
2073
2074# Keep a trace of the command line.
2075# Strip out --no-create and --no-recursion so they do not pile up.
2076# Strip out --silent because we don't want to record it for future runs.
2077# Also quote any args containing shell meta-characters.
2078# Make two passes to allow for proper duplicate-argument suppression.
2079ac_configure_args=
2080ac_configure_args0=
2081ac_configure_args1=
2082ac_must_keep_next=false
2083for ac_pass in 1 2
2084do
2085 for ac_arg
2086 do
2087 case $ac_arg in
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2091 continue ;;
2092 *\'*)
2093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2094 esac
2095 case $ac_pass in
2096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2097 2)
2098 as_fn_append ac_configure_args1 " '$ac_arg'"
2099 if test $ac_must_keep_next = true; then
2100 ac_must_keep_next=false # Got value, back to normal.
2101 else
2102 case $ac_arg in
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 esac
2110 ;;
2111 -* ) ac_must_keep_next=true ;;
2112 esac
2113 fi
2114 as_fn_append ac_configure_args " '$ac_arg'"
2115 ;;
2116 esac
2117 done
2118done
2119{ ac_configure_args0=; unset ac_configure_args0;}
2120{ ac_configure_args1=; unset ac_configure_args1;}
2121
2122# When interrupted or exit'd, cleanup temporary files, and complete
2123# config.log. We remove comments because anyway the quotes in there
2124# would cause problems or look ugly.
2125# WARNING: Use '\'' to represent an apostrophe within the trap.
2126# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2127trap 'exit_status=$?
2128 # Save into config.log some information that might help in debugging.
2129 {
2130 echo
2131
22e05272 2132 $as_echo "## ---------------- ##
d7f09764 2133## Cache variables. ##
22e05272 2134## ---------------- ##"
d7f09764
DN
2135 echo
2136 # The following way of writing the cache mishandles newlines in values,
2137(
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in #(
2141 *${as_nl}*)
2142 case $ac_var in #(
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 esac
2146 case $ac_var in #(
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2150 esac ;;
2151 esac
2152 done
2153 (set) 2>&1 |
2154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
2156 sed -n \
2157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 ;; #(
2160 *)
2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162 ;;
2163 esac |
2164 sort
2165)
2166 echo
2167
22e05272 2168 $as_echo "## ----------------- ##
d7f09764 2169## Output variables. ##
22e05272 2170## ----------------- ##"
d7f09764
DN
2171 echo
2172 for ac_var in $ac_subst_vars
2173 do
2174 eval ac_val=\$$ac_var
2175 case $ac_val in
2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 esac
2178 $as_echo "$ac_var='\''$ac_val'\''"
2179 done | sort
2180 echo
2181
2182 if test -n "$ac_subst_files"; then
22e05272 2183 $as_echo "## ------------------- ##
d7f09764 2184## File substitutions. ##
22e05272 2185## ------------------- ##"
d7f09764
DN
2186 echo
2187 for ac_var in $ac_subst_files
2188 do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2196 fi
2197
2198 if test -s confdefs.h; then
22e05272 2199 $as_echo "## ----------- ##
d7f09764 2200## confdefs.h. ##
22e05272 2201## ----------- ##"
d7f09764
DN
2202 echo
2203 cat confdefs.h
2204 echo
2205 fi
2206 test "$ac_signal" != 0 &&
2207 $as_echo "$as_me: caught signal $ac_signal"
2208 $as_echo "$as_me: exit $exit_status"
2209 } >&5
2210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2212 exit $exit_status
2213' 0
2214for ac_signal in 1 2 13 15; do
2215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2216done
2217ac_signal=0
2218
2219# confdefs.h avoids OS command line length limits that DEFS can exceed.
2220rm -f -r conftest* confdefs.h
2221
2222$as_echo "/* confdefs.h */" > confdefs.h
2223
2224# Predefined preprocessor variables.
2225
2226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_NAME "$PACKAGE_NAME"
2228_ACEOF
2229
2230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232_ACEOF
2233
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_VERSION "$PACKAGE_VERSION"
2236_ACEOF
2237
2238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_STRING "$PACKAGE_STRING"
2240_ACEOF
2241
2242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244_ACEOF
2245
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_URL "$PACKAGE_URL"
2248_ACEOF
2249
2250
2251# Let the site file select an alternate cache file if it wants to.
2252# Prefer an explicitly selected file to automatically selected ones.
2253ac_site_file1=NONE
2254ac_site_file2=NONE
2255if test -n "$CONFIG_SITE"; then
22e05272
JM
2256 # We do not want a PATH search for config.site.
2257 case $CONFIG_SITE in #((
2258 -*) ac_site_file1=./$CONFIG_SITE;;
2259 */*) ac_site_file1=$CONFIG_SITE;;
2260 *) ac_site_file1=./$CONFIG_SITE;;
2261 esac
d7f09764
DN
2262elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2265else
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
2268fi
2269for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270do
2271 test "x$ac_site_file" = xNONE && continue
22e05272 2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
d7f09764
DN
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2276 . "$ac_site_file" \
2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279as_fn_error $? "failed to load site script $ac_site_file
2280See \`config.log' for more details" "$LINENO" 5; }
d7f09764
DN
2281 fi
2282done
2283
2284if test -r "$cache_file"; then
22e05272
JM
2285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
d7f09764
DN
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289$as_echo "$as_me: loading cache $cache_file" >&6;}
2290 case $cache_file in
2291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
2293 esac
2294 fi
2295else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297$as_echo "$as_me: creating cache $cache_file" >&6;}
2298 >$cache_file
2299fi
2300
2301# Check that the precious variables saved in the cache have kept the same
2302# value.
2303ac_cache_corrupted=false
2304for ac_var in $ac_precious_vars; do
2305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
2307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
2309 case $ac_old_set,$ac_new_set in
2310 set,)
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2314 ,set)
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2317 ac_cache_corrupted=: ;;
2318 ,);;
2319 *)
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
2321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2337 fi;;
2338 esac
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2341 case $ac_new_val in
2342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 *) ac_arg=$ac_var=$ac_new_val ;;
2344 esac
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2348 esac
2349 fi
2350done
2351if $ac_cache_corrupted; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2356 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d7f09764
DN
2357fi
2358## -------------------- ##
2359## Main body of script. ##
2360## -------------------- ##
2361
2362ac_ext=c
2363ac_cpp='$CPP $CPPFLAGS'
2364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367
2368
2369
2370
2371
2372ac_aux_dir=
2373for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2374 if test -f "$ac_dir/install-sh"; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$ac_aux_dir/install-sh -c"
2377 break
2378 elif test -f "$ac_dir/install.sh"; then
2379 ac_aux_dir=$ac_dir
2380 ac_install_sh="$ac_aux_dir/install.sh -c"
2381 break
2382 elif test -f "$ac_dir/shtool"; then
2383 ac_aux_dir=$ac_dir
2384 ac_install_sh="$ac_aux_dir/shtool install -c"
2385 break
2386 fi
d7f09764
DN
2387done
2388if test -z "$ac_aux_dir"; then
22e05272 2389 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
d7f09764
DN
2390fi
2391
2392# These three variables are undocumented and unsupported,
2393# and are intended to be withdrawn in a future Autoconf release.
2394# They can cause serious problems if a builder's source tree is in a directory
2395# whose full name contains unusual characters.
2396ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2397ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2398ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2399
2400
2401# Make sure we can run config.sub.
2402$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2403 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d7f09764
DN
2404
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2406$as_echo_n "checking build system type... " >&6; }
22e05272 2407if ${ac_cv_build+:} false; then :
d7f09764
DN
2408 $as_echo_n "(cached) " >&6
2409else
2410 ac_build_alias=$build_alias
2411test "x$ac_build_alias" = x &&
2412 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2413test "x$ac_build_alias" = x &&
22e05272 2414 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
d7f09764 2415ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2416 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d7f09764
DN
2417
2418fi
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2420$as_echo "$ac_cv_build" >&6; }
2421case $ac_cv_build in
2422*-*-*) ;;
22e05272 2423*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
d7f09764
DN
2424esac
2425build=$ac_cv_build
2426ac_save_IFS=$IFS; IFS='-'
2427set x $ac_cv_build
2428shift
2429build_cpu=$1
2430build_vendor=$2
2431shift; shift
2432# Remember, the first character of IFS is used to create $*,
2433# except with old shells:
2434build_os=$*
2435IFS=$ac_save_IFS
2436case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2437
2438
73d5e770
L
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440$as_echo_n "checking host system type... " >&6; }
22e05272 2441if ${ac_cv_host+:} false; then :
73d5e770
L
2442 $as_echo_n "(cached) " >&6
2443else
2444 if test "x$host_alias" = x; then
2445 ac_cv_host=$ac_cv_build
2446else
2447 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
73d5e770
L
2449fi
2450
2451fi
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453$as_echo "$ac_cv_host" >&6; }
2454case $ac_cv_host in
2455*-*-*) ;;
22e05272 2456*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
73d5e770
L
2457esac
2458host=$ac_cv_host
2459ac_save_IFS=$IFS; IFS='-'
2460set x $ac_cv_host
2461shift
2462host_cpu=$1
2463host_vendor=$2
2464shift; shift
2465# Remember, the first character of IFS is used to create $*,
2466# except with old shells:
2467host_os=$*
2468IFS=$ac_save_IFS
2469case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2470
2471
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473$as_echo_n "checking target system type... " >&6; }
22e05272 2474if ${ac_cv_target+:} false; then :
73d5e770
L
2475 $as_echo_n "(cached) " >&6
2476else
2477 if test "x$target_alias" = x; then
2478 ac_cv_target=$ac_cv_host
2479else
2480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
73d5e770
L
2482fi
2483
2484fi
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486$as_echo "$ac_cv_target" >&6; }
2487case $ac_cv_target in
2488*-*-*) ;;
22e05272 2489*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
73d5e770
L
2490esac
2491target=$ac_cv_target
2492ac_save_IFS=$IFS; IFS='-'
2493set x $ac_cv_target
2494shift
2495target_cpu=$1
2496target_vendor=$2
2497shift; shift
2498# Remember, the first character of IFS is used to create $*,
2499# except with old shells:
2500target_os=$*
2501IFS=$ac_save_IFS
2502case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2503
2504
2505# The aliases save the names the user supplied, while $host etc.
2506# will get canonicalized.
2507test -n "$target_alias" &&
2508 test "$program_prefix$program_suffix$program_transform_name" = \
2509 NONENONEs,x,x, &&
2510 program_prefix=${target_alias}-
2511
d7f09764
DN
2512 case ${build_alias} in
2513 "") build_noncanonical=${build} ;;
2514 *) build_noncanonical=${build_alias} ;;
2515esac
2516
2517 case ${host_alias} in
2518 "") host_noncanonical=${build_noncanonical} ;;
2519 *) host_noncanonical=${host_alias} ;;
2520esac
2521
2522 case ${target_alias} in
2523 "") target_noncanonical=${host_noncanonical} ;;
2524 *) target_noncanonical=${target_alias} ;;
2525esac
2526
2527
2528# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2529# have matching libraries, they should use host libraries: Makefile.tpl
2530# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2531# However, they still use the build modules, because the corresponding
2532# host modules (e.g. bison) are only built for the host when bootstrap
2533# finishes. So:
2534# - build_subdir is where we find build modules, and never changes.
2535# - build_libsubdir is where we find build libraries, and can be overridden.
2536
2537# Prefix 'build-' so this never conflicts with target_subdir.
2538build_subdir="build-${build_noncanonical}"
2539
2540# Check whether --with-build-libsubdir was given.
2541if test "${with_build_libsubdir+set}" = set; then :
2542 withval=$with_build_libsubdir; build_libsubdir="$withval"
2543else
2544 build_libsubdir="$build_subdir"
2545fi
2546
2547# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2548if ( test $srcdir = . && test -d gcc ) \
2549 || test -d $srcdir/../host-${host_noncanonical}; then
2550 host_subdir="host-${host_noncanonical}"
2551else
2552 host_subdir=.
2553fi
2554# No prefix.
2555target_subdir=${target_noncanonical}
2556
22e05272 2557am__api_version='1.15'
d7f09764
DN
2558
2559# Find a good install program. We prefer a C program (faster),
2560# so one script is as good as another. But avoid the broken or
2561# incompatible versions:
2562# SysV /etc/install, /usr/sbin/install
2563# SunOS /usr/etc/install
2564# IRIX /sbin/install
2565# AIX /bin/install
2566# AmigaOS /C/install, which installs bootblocks on floppy discs
2567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2568# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2570# OS/2's system install, which has a completely different semantic
2571# ./install, which can be erroneously created by make from ./install.sh.
2572# Reject install programs that cannot install multiple files.
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2574$as_echo_n "checking for a BSD-compatible install... " >&6; }
2575if test -z "$INSTALL"; then
22e05272 2576if ${ac_cv_path_install+:} false; then :
d7f09764
DN
2577 $as_echo_n "(cached) " >&6
2578else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 # Account for people who put trailing slashes in PATH elements.
2585case $as_dir/ in #((
2586 ./ | .// | /[cC]/* | \
2587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2589 /usr/ucb/* ) ;;
2590 *)
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2593 # by default.
2594 for ac_prog in ginstall scoinst install; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2596 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d7f09764
DN
2597 if test $ac_prog = install &&
2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # AIX install. It has an incompatible calling convention.
2600 :
2601 elif test $ac_prog = install &&
2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # program-specific install script used by HP pwplus--don't use.
2604 :
2605 else
2606 rm -rf conftest.one conftest.two conftest.dir
2607 echo one > conftest.one
2608 echo two > conftest.two
2609 mkdir conftest.dir
2610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2611 test -s conftest.one && test -s conftest.two &&
2612 test -s conftest.dir/conftest.one &&
2613 test -s conftest.dir/conftest.two
2614 then
2615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2616 break 3
2617 fi
2618 fi
2619 fi
2620 done
2621 done
2622 ;;
2623esac
2624
2625 done
2626IFS=$as_save_IFS
2627
2628rm -rf conftest.one conftest.two conftest.dir
2629
2630fi
2631 if test "${ac_cv_path_install+set}" = set; then
2632 INSTALL=$ac_cv_path_install
2633 else
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for INSTALL within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 INSTALL=$ac_install_sh
2639 fi
2640fi
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2642$as_echo "$INSTALL" >&6; }
2643
2644# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2645# It thinks the first close brace ends the variable substitution.
2646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2647
2648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2649
2650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2651
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2653$as_echo_n "checking whether build environment is sane... " >&6; }
d7f09764
DN
2654# Reject unsafe characters in $srcdir or the absolute working directory
2655# name. Accept space and tab only in the latter.
2656am_lf='
2657'
2658case `pwd` in
2659 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
d7f09764
DN
2661esac
2662case $srcdir in
2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2664 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d7f09764
DN
2665esac
2666
22e05272 2667# Do 'set' in a subshell so we don't clobber the current shell's
d7f09764
DN
2668# arguments. Must try -L first in case configure is actually a
2669# symlink; some systems play weird games with the mod time of symlinks
2670# (eg FreeBSD returns the mod time of the symlink's containing
2671# directory).
2672if (
22e05272
JM
2673 am_has_slept=no
2674 for am_try in 1 2; do
2675 echo "timestamp, slept: $am_has_slept" > conftest.file
2676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2677 if test "$*" = "X"; then
2678 # -L didn't work.
2679 set X `ls -t "$srcdir/configure" conftest.file`
2680 fi
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2683
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2689 alias in your environment" "$LINENO" 5
2690 fi
2691 if test "$2" = conftest.file || test $am_try -eq 2; then
2692 break
2693 fi
2694 # Just in case.
2695 sleep 1
2696 am_has_slept=yes
2697 done
d7f09764
DN
2698 test "$2" = conftest.file
2699 )
2700then
2701 # Ok.
2702 :
2703else
22e05272 2704 as_fn_error $? "newly created file is older than distributed files!
d7f09764
DN
2705Check your system clock" "$LINENO" 5
2706fi
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708$as_echo "yes" >&6; }
22e05272
JM
2709# If we didn't sleep, we still need to ensure time stamps of config.status and
2710# generated files are strictly newer.
2711am_sleep_pid=
2712if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2713 ( sleep 1 ) &
2714 am_sleep_pid=$!
2715fi
2716
2717rm -f conftest.file
2718
d7f09764
DN
2719test "$program_prefix" != NONE &&
2720 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721# Use a double $ so make ignores it.
2722test "$program_suffix" != NONE &&
2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724# Double any \ or $.
2725# By default was `s,x,x', remove it if useless.
2726ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2728
22e05272
JM
2729# Expand $ac_aux_dir to an absolute path.
2730am_aux_dir=`cd "$ac_aux_dir" && pwd`
d7f09764
DN
2731
2732if test x"${MISSING+set}" != xset; then
2733 case $am_aux_dir in
2734 *\ * | *\ *)
2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2736 *)
2737 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738 esac
2739fi
2740# Use eval to expand $SHELL
22e05272
JM
2741if eval "$MISSING --is-lightweight"; then
2742 am_missing_run="$MISSING "
d7f09764
DN
2743else
2744 am_missing_run=
22e05272
JM
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2746$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d7f09764
DN
2747fi
2748
22e05272 2749if test x"${install_sh+set}" != xset; then
d7f09764
DN
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2753 *)
2754 install_sh="\${SHELL} $am_aux_dir/install-sh"
2755 esac
2756fi
2757
22e05272
JM
2758# Installed binaries are usually stripped using 'strip' when the user
2759# run "make install-strip". However 'strip' might not be the right
d7f09764 2760# tool to use in cross-compilation environments, therefore Automake
22e05272 2761# will honor the 'STRIP' environment variable to overrule this program.
d7f09764
DN
2762if test "$cross_compiling" != no; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}strip; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2768if ${ac_cv_prog_STRIP+:} false; then :
d7f09764
DN
2769 $as_echo_n "(cached) " >&6
2770else
2771 if test -n "$STRIP"; then
2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
2786 done
2787IFS=$as_save_IFS
2788
2789fi
2790fi
2791STRIP=$ac_cv_prog_STRIP
2792if test -n "$STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794$as_echo "$STRIP" >&6; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800
2801fi
2802if test -z "$ac_cv_prog_STRIP"; then
2803 ac_ct_STRIP=$STRIP
2804 # Extract the first word of "strip", so it can be a program name with args.
2805set dummy strip; ac_word=$2
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2808if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d7f09764
DN
2809 $as_echo_n "(cached) " >&6
2810else
2811 if test -n "$ac_ct_STRIP"; then
2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
2821 ac_cv_prog_ac_ct_STRIP="strip"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826 done
2827IFS=$as_save_IFS
2828
2829fi
2830fi
2831ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832if test -n "$ac_ct_STRIP"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834$as_echo "$ac_ct_STRIP" >&6; }
2835else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837$as_echo "no" >&6; }
2838fi
2839
2840 if test "x$ac_ct_STRIP" = x; then
2841 STRIP=":"
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844yes:)
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847ac_tool_warned=yes ;;
2848esac
2849 STRIP=$ac_ct_STRIP
2850 fi
2851else
2852 STRIP="$ac_cv_prog_STRIP"
2853fi
2854
2855fi
2856INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2857
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860if test -z "$MKDIR_P"; then
22e05272 2861 if ${ac_cv_path_mkdir+:} false; then :
d7f09764
DN
2862 $as_echo_n "(cached) " >&6
2863else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in mkdir gmkdir; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2871 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d7f09764
DN
2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873 'mkdir (GNU coreutils) '* | \
2874 'mkdir (coreutils) '* | \
2875 'mkdir (fileutils) '4.1*)
2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877 break 3;;
2878 esac
2879 done
2880 done
2881 done
2882IFS=$as_save_IFS
2883
2884fi
2885
22e05272 2886 test -d ./--version && rmdir ./--version
d7f09764
DN
2887 if test "${ac_cv_path_mkdir+set}" = set; then
2888 MKDIR_P="$ac_cv_path_mkdir -p"
2889 else
2890 # As a last resort, use the slow shell script. Don't cache a
2891 # value for MKDIR_P within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the value is a relative name.
d7f09764
DN
2894 MKDIR_P="$ac_install_sh -d"
2895 fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898$as_echo "$MKDIR_P" >&6; }
2899
d7f09764
DN
2900for ac_prog in gawk mawk nawk awk
2901do
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903set dummy $ac_prog; ac_word=$2
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2906if ${ac_cv_prog_AWK+:} false; then :
d7f09764
DN
2907 $as_echo_n "(cached) " >&6
2908else
2909 if test -n "$AWK"; then
2910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
2919 ac_cv_prog_AWK="$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923done
2924 done
2925IFS=$as_save_IFS
2926
2927fi
2928fi
2929AWK=$ac_cv_prog_AWK
2930if test -n "$AWK"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932$as_echo "$AWK" >&6; }
2933else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935$as_echo "no" >&6; }
2936fi
2937
2938
2939 test -n "$AWK" && break
2940done
2941
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944set x ${MAKE-make}
2945ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 2946if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
d7f09764
DN
2947 $as_echo_n "(cached) " >&6
2948else
2949 cat >conftest.make <<\_ACEOF
2950SHELL = /bin/sh
2951all:
2952 @echo '@@@%%%=$(MAKE)=@@@%%%'
2953_ACEOF
22e05272 2954# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
d7f09764
DN
2955case `${MAKE-make} -f conftest.make 2>/dev/null` in
2956 *@@@%%%=?*=@@@%%%*)
2957 eval ac_cv_prog_make_${ac_make}_set=yes;;
2958 *)
2959 eval ac_cv_prog_make_${ac_make}_set=no;;
2960esac
2961rm -f conftest.make
2962fi
2963if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965$as_echo "yes" >&6; }
2966 SET_MAKE=
2967else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969$as_echo "no" >&6; }
2970 SET_MAKE="MAKE=${MAKE-make}"
2971fi
2972
2973rm -rf .tst 2>/dev/null
2974mkdir .tst 2>/dev/null
2975if test -d .tst; then
2976 am__leading_dot=.
2977else
2978 am__leading_dot=_
2979fi
2980rmdir .tst 2>/dev/null
2981
22e05272
JM
2982# Check whether --enable-silent-rules was given.
2983if test "${enable_silent_rules+set}" = set; then :
2984 enableval=$enable_silent_rules;
2985fi
2986
2987case $enable_silent_rules in # (((
2988 yes) AM_DEFAULT_VERBOSITY=0;;
2989 no) AM_DEFAULT_VERBOSITY=1;;
2990 *) AM_DEFAULT_VERBOSITY=1;;
2991esac
2992am_make=${MAKE-make}
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2994$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2995if ${am_cv_make_support_nested_variables+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997else
2998 if $as_echo 'TRUE=$(BAR$(V))
2999BAR0=false
3000BAR1=true
3001V=1
3002am__doit:
3003 @$(TRUE)
3004.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3005 am_cv_make_support_nested_variables=yes
3006else
3007 am_cv_make_support_nested_variables=no
3008fi
3009fi
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3011$as_echo "$am_cv_make_support_nested_variables" >&6; }
3012if test $am_cv_make_support_nested_variables = yes; then
3013 AM_V='$(V)'
3014 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3015else
3016 AM_V=$AM_DEFAULT_VERBOSITY
3017 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3018fi
3019AM_BACKSLASH='\'
3020
d7f09764
DN
3021if test "`cd $srcdir && pwd`" != "`pwd`"; then
3022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3023 # is not polluted with repeated "-I."
3024 am__isrc=' -I$(srcdir)'
3025 # test to see if srcdir already configured
3026 if test -f $srcdir/config.status; then
22e05272 3027 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
d7f09764
DN
3028 fi
3029fi
3030
3031# test whether we have cygpath
3032if test -z "$CYGPATH_W"; then
3033 if (cygpath --version) >/dev/null 2>/dev/null; then
3034 CYGPATH_W='cygpath -w'
3035 else
3036 CYGPATH_W=echo
3037 fi
3038fi
3039
3040
3041# Define the identity of the package.
3042 PACKAGE='lto-plugin'
3043 VERSION='0.1'
3044
3045
3046cat >>confdefs.h <<_ACEOF
3047#define PACKAGE "$PACKAGE"
3048_ACEOF
3049
3050
3051cat >>confdefs.h <<_ACEOF
3052#define VERSION "$VERSION"
3053_ACEOF
3054
3055# Some tools Automake needs.
3056
3057ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3058
3059
3060AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3061
3062
3063AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3064
3065
3066AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3067
3068
3069MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3070
22e05272
JM
3071# For better backward compatibility. To be removed once Automake 1.9.x
3072# dies out for good. For more background, see:
3073# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3074# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3075mkdir_p='$(MKDIR_P)'
3076
3077# We need awk for the "check" target (and possibly the TAP driver). The
3078# system "awk" is bad on some platforms.
ed9b4ae3
MH
3079# Always define AMTAR for backward compatibility. Yes, it's still used
3080# in the wild :-( We should find a proper way to deprecate it ...
3081AMTAR='$${TAR-tar}'
d7f09764 3082
22e05272
JM
3083
3084# We'll loop over all known methods to create a tar archive until one works.
3085_am_tools='gnutar pax cpio none'
3086
ed9b4ae3 3087am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d7f09764
DN
3088
3089
3090
3091
3092
03428d41 3093
22e05272
JM
3094# POSIX will say in a future version that running "rm -f" with no argument
3095# is OK; and we want to be able to make that assumption in our Makefile
3096# recipes. So use an aggressive probe to check that the usage we want is
3097# actually supported "in the wild" to an acceptable degree.
3098# See automake bug#10828.
3099# To make any issue more visible, cause the running configure to be aborted
3100# by default if the 'rm' program in use doesn't match our expectations; the
3101# user can still override this though.
3102if rm -f && rm -fr && rm -rf; then : OK; else
3103 cat >&2 <<'END'
3104Oops!
3105
3106Your 'rm' program seems unable to run without file operands specified
3107on the command line, even when the '-f' option is present. This is contrary
3108to the behaviour of most rm programs out there, and not conforming with
3109the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3110
3111Please tell bug-automake@gnu.org about your system, including the value
3112of your $PATH and any error possibly output before this message. This
3113can help us improve future automake versions.
3114
3115END
3116 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3117 echo 'Configuration will proceed anyway, since you have set the' >&2
3118 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3119 echo >&2
3120 else
3121 cat >&2 <<'END'
3122Aborting the configuration process, to ensure you take notice of the issue.
3123
3124You can download and install GNU coreutils to get an 'rm' implementation
3125that behaves properly: <http://www.gnu.org/software/coreutils/>.
3126
3127If you want to complete the configuration process using your problematic
3128'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3129to "yes", and re-run configure.
3130
3131END
3132 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3133 fi
3134fi
3135
3136
03428d41
RG
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3138$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3139 # Check whether --enable-maintainer-mode was given.
3140if test "${enable_maintainer_mode+set}" = set; then :
3141 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3142else
3143 USE_MAINTAINER_MODE=no
3144fi
3145
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3147$as_echo "$USE_MAINTAINER_MODE" >&6; }
3148 if test $USE_MAINTAINER_MODE = yes; then
3149 MAINTAINER_MODE_TRUE=
3150 MAINTAINER_MODE_FALSE='#'
3151else
3152 MAINTAINER_MODE_TRUE='#'
3153 MAINTAINER_MODE_FALSE=
3154fi
3155
3156 MAINT=$MAINTAINER_MODE_TRUE
3157
3158
2a7a8388
TS
3159
3160# Check whether --with-libiberty was given.
3161if test "${with_libiberty+set}" = set; then :
3162 withval=$with_libiberty;
3163else
3164 with_libiberty=../libiberty
3165fi
3166
3167
dcbc9df9
UB
3168DEPDIR="${am__leading_dot}deps"
3169
3170ac_config_commands="$ac_config_commands depfiles"
3171
3172
3173am_make=${MAKE-make}
3174cat > confinc << 'END'
3175am__doit:
3176 @echo this is the am__doit target
3177.PHONY: am__doit
3178END
3179# If we don't find an include directive, just comment out the code.
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3181$as_echo_n "checking for style of include used by $am_make... " >&6; }
3182am__include="#"
3183am__quote=
3184_am_result=none
3185# First try GNU make style include.
3186echo "include confinc" > confmf
22e05272 3187# Ignore all kinds of additional output from 'make'.
dcbc9df9
UB
3188case `$am_make -s -f confmf 2> /dev/null` in #(
3189*the\ am__doit\ target*)
3190 am__include=include
3191 am__quote=
3192 _am_result=GNU
3193 ;;
3194esac
3195# Now try BSD make style include.
3196if test "$am__include" = "#"; then
3197 echo '.include "confinc"' > confmf
3198 case `$am_make -s -f confmf 2> /dev/null` in #(
3199 *the\ am__doit\ target*)
3200 am__include=.include
3201 am__quote="\""
3202 _am_result=BSD
3203 ;;
3204 esac
3205fi
3206
3207
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3209$as_echo "$_am_result" >&6; }
3210rm -f confinc confmf
3211
3212# Check whether --enable-dependency-tracking was given.
3213if test "${enable_dependency_tracking+set}" = set; then :
3214 enableval=$enable_dependency_tracking;
3215fi
3216
3217if test "x$enable_dependency_tracking" != xno; then
3218 am_depcomp="$ac_aux_dir/depcomp"
3219 AMDEPBACKSLASH='\'
3220 am__nodep='_no'
3221fi
3222 if test "x$enable_dependency_tracking" != xno; then
3223 AMDEP_TRUE=
3224 AMDEP_FALSE='#'
3225else
3226 AMDEP_TRUE='#'
3227 AMDEP_FALSE=
3228fi
3229
3230
d7f09764
DN
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3238set dummy ${ac_tool_prefix}gcc; ac_word=$2
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3241if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3242 $as_echo_n "(cached) " >&6
3243else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246else
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3254 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258done
3259 done
3260IFS=$as_save_IFS
3261
3262fi
3263fi
3264CC=$ac_cv_prog_CC
3265if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267$as_echo "$CC" >&6; }
3268else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270$as_echo "no" >&6; }
3271fi
3272
3273
3274fi
3275if test -z "$ac_cv_prog_CC"; then
3276 ac_ct_CC=$CC
3277 # Extract the first word of "gcc", so it can be a program name with args.
3278set dummy gcc; ac_word=$2
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3281if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
3282 $as_echo_n "(cached) " >&6
3283else
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3294 ac_cv_prog_ac_ct_CC="gcc"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298done
3299 done
3300IFS=$as_save_IFS
3301
3302fi
3303fi
3304ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305if test -n "$ac_ct_CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307$as_echo "$ac_ct_CC" >&6; }
3308else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311fi
3312
3313 if test "x$ac_ct_CC" = x; then
3314 CC=""
3315 else
3316 case $cross_compiling:$ac_tool_warned in
3317yes:)
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320ac_tool_warned=yes ;;
3321esac
3322 CC=$ac_ct_CC
3323 fi
3324else
3325 CC="$ac_cv_prog_CC"
3326fi
3327
3328if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3331set dummy ${ac_tool_prefix}cc; ac_word=$2
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3334if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3335 $as_echo_n "(cached) " >&6
3336else
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3347 ac_cv_prog_CC="${ac_tool_prefix}cc"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3350 fi
3351done
3352 done
3353IFS=$as_save_IFS
3354
3355fi
3356fi
3357CC=$ac_cv_prog_CC
3358if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360$as_echo "$CC" >&6; }
3361else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
3364fi
3365
3366
3367 fi
3368fi
3369if test -z "$CC"; then
3370 # Extract the first word of "cc", so it can be a program name with args.
3371set dummy cc; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3374if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3375 $as_echo_n "(cached) " >&6
3376else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379else
3380 ac_prog_rejected=no
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3388 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3389 ac_prog_rejected=yes
3390 continue
3391 fi
3392 ac_cv_prog_CC="cc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396done
3397 done
3398IFS=$as_save_IFS
3399
3400if test $ac_prog_rejected = yes; then
3401 # We found a bogon in the path, so make sure we never use it.
3402 set dummy $ac_cv_prog_CC
3403 shift
3404 if test $# != 0; then
3405 # We chose a different compiler from the bogus one.
3406 # However, it has the same basename, so the bogon will be chosen
3407 # first if we set CC to just the basename; use the full file name.
3408 shift
3409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3410 fi
3411fi
3412fi
3413fi
3414CC=$ac_cv_prog_CC
3415if test -n "$CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417$as_echo "$CC" >&6; }
3418else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420$as_echo "no" >&6; }
3421fi
3422
3423
3424fi
3425if test -z "$CC"; then
3426 if test -n "$ac_tool_prefix"; then
3427 for ac_prog in cl.exe
3428 do
3429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3430set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3433if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
3434 $as_echo_n "(cached) " >&6
3435else
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450done
3451 done
3452IFS=$as_save_IFS
3453
3454fi
3455fi
3456CC=$ac_cv_prog_CC
3457if test -n "$CC"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459$as_echo "$CC" >&6; }
3460else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3463fi
3464
3465
3466 test -n "$CC" && break
3467 done
3468fi
3469if test -z "$CC"; then
3470 ac_ct_CC=$CC
3471 for ac_prog in cl.exe
3472do
3473 # Extract the first word of "$ac_prog", so it can be a program name with args.
3474set dummy $ac_prog; ac_word=$2
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3477if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
3478 $as_echo_n "(cached) " >&6
3479else
3480 if test -n "$ac_ct_CC"; then
3481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
3490 ac_cv_prog_ac_ct_CC="$ac_prog"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494done
3495 done
3496IFS=$as_save_IFS
3497
3498fi
3499fi
3500ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501if test -n "$ac_ct_CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503$as_echo "$ac_ct_CC" >&6; }
3504else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3507fi
3508
3509
3510 test -n "$ac_ct_CC" && break
3511done
3512
3513 if test "x$ac_ct_CC" = x; then
3514 CC=""
3515 else
3516 case $cross_compiling:$ac_tool_warned in
3517yes:)
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3520ac_tool_warned=yes ;;
3521esac
3522 CC=$ac_ct_CC
3523 fi
3524fi
3525
3526fi
3527
3528
3529test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3531as_fn_error $? "no acceptable C compiler found in \$PATH
3532See \`config.log' for more details" "$LINENO" 5; }
d7f09764
DN
3533
3534# Provide some information about the compiler.
3535$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3536set X $ac_compile
3537ac_compiler=$2
3538for ac_option in --version -v -V -qversion; do
3539 { { ac_try="$ac_compiler $ac_option >&5"
3540case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543esac
3544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545$as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3547 ac_status=$?
3548 if test -s conftest.err; then
3549 sed '10a\
3550... rest of stderr output deleted ...
3551 10q' conftest.err >conftest.er1
3552 cat conftest.er1 >&5
d7f09764 3553 fi
22e05272 3554 rm -f conftest.er1 conftest.err
d7f09764
DN
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }
3557done
3558
3559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h. */
3561
3562int
3563main ()
3564{
3565
3566 ;
3567 return 0;
3568}
3569_ACEOF
3570ac_clean_files_save=$ac_clean_files
22e05272 3571ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d7f09764
DN
3572# Try to create an executable without -o first, disregard a.out.
3573# It will help us diagnose broken compilers, and finding out an intuition
3574# of exeext.
22e05272
JM
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3576$as_echo_n "checking whether the C compiler works... " >&6; }
d7f09764
DN
3577ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3578
3579# The possible output files:
3580ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3581
3582ac_rmfiles=
3583for ac_file in $ac_files
3584do
3585 case $ac_file in
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3587 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3588 esac
3589done
3590rm -f $ac_rmfiles
3591
3592if { { ac_try="$ac_link_default"
3593case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_link_default") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; then :
3603 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3604# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3605# in a Makefile. We should not override ac_cv_exeext if it was cached,
3606# so that the user can short-circuit this test for compilers unknown to
3607# Autoconf.
3608for ac_file in $ac_files ''
3609do
3610 test -f "$ac_file" || continue
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3613 ;;
3614 [ab].out )
3615 # We found the default executable, but exeext='' is most
3616 # certainly right.
3617 break;;
3618 *.* )
3619 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3620 then :; else
3621 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3622 fi
3623 # We set ac_cv_exeext here because the later test for it is not
3624 # safe: cross compilers may not add the suffix if given an `-o'
3625 # argument, so we may need to know it at that point already.
3626 # Even if this section looks crufty: it has the advantage of
3627 # actually working.
3628 break;;
3629 * )
3630 break;;
3631 esac
3632done
3633test "$ac_cv_exeext" = no && ac_cv_exeext=
3634
3635else
3636 ac_file=''
3637fi
d7f09764 3638if test -z "$ac_file"; then :
22e05272
JM
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640$as_echo "no" >&6; }
3641$as_echo "$as_me: failed program was:" >&5
d7f09764
DN
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3646as_fn_error 77 "C compiler cannot create executables
3647See \`config.log' for more details" "$LINENO" 5; }
3648else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3650$as_echo "yes" >&6; }
d7f09764 3651fi
22e05272
JM
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3653$as_echo_n "checking for C compiler default output file name... " >&6; }
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3655$as_echo "$ac_file" >&6; }
d7f09764
DN
3656ac_exeext=$ac_cv_exeext
3657
22e05272 3658rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d7f09764 3659ac_clean_files=$ac_clean_files_save
d7f09764
DN
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3661$as_echo_n "checking for suffix of executables... " >&6; }
3662if { { ac_try="$ac_link"
3663case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666esac
3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668$as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3674# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3675# work properly (i.e., refer to `conftest.exe'), while it won't with
3676# `rm'.
3677for ac_file in conftest.exe conftest conftest.*; do
3678 test -f "$ac_file" || continue
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682 break;;
3683 * ) break;;
3684 esac
3685done
3686else
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3689as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3690See \`config.log' for more details" "$LINENO" 5; }
d7f09764 3691fi
22e05272 3692rm -f conftest conftest$ac_cv_exeext
d7f09764
DN
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3694$as_echo "$ac_cv_exeext" >&6; }
3695
3696rm -f conftest.$ac_ext
3697EXEEXT=$ac_cv_exeext
3698ac_exeext=$EXEEXT
22e05272
JM
3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h. */
3701#include <stdio.h>
3702int
3703main ()
3704{
3705FILE *f = fopen ("conftest.out", "w");
3706 return ferror (f) || fclose (f) != 0;
3707
3708 ;
3709 return 0;
3710}
3711_ACEOF
3712ac_clean_files="$ac_clean_files conftest.out"
3713# Check that the compiler produces executables we can run. If not, either
3714# the compiler is broken, or we cross compile.
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3716$as_echo_n "checking whether we are cross compiling... " >&6; }
3717if test "$cross_compiling" != yes; then
3718 { { ac_try="$ac_link"
3719case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_link") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }
3729 if { ac_try='./conftest$ac_cv_exeext'
3730 { { case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733esac
3734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735$as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_try") 2>&5
3737 ac_status=$?
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }; }; then
3740 cross_compiling=no
3741 else
3742 if test "$cross_compiling" = maybe; then
3743 cross_compiling=yes
3744 else
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747as_fn_error $? "cannot run C compiled programs.
3748If you meant to cross compile, use \`--host'.
3749See \`config.log' for more details" "$LINENO" 5; }
3750 fi
3751 fi
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3754$as_echo "$cross_compiling" >&6; }
3755
3756rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3757ac_clean_files=$ac_clean_files_save
d7f09764
DN
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3759$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3760if ${ac_cv_objext+:} false; then :
d7f09764
DN
3761 $as_echo_n "(cached) " >&6
3762else
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h. */
3765
3766int
3767main ()
3768{
3769
3770 ;
3771 return 0;
3772}
3773_ACEOF
3774rm -f conftest.o conftest.obj
3775if { { ac_try="$ac_compile"
3776case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779esac
3780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781$as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_compile") 2>&5
3783 ac_status=$?
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }; then :
3786 for ac_file in conftest.o conftest.obj conftest.*; do
3787 test -f "$ac_file" || continue;
3788 case $ac_file in
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3790 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3791 break;;
3792 esac
3793done
3794else
3795 $as_echo "$as_me: failed program was:" >&5
3796sed 's/^/| /' conftest.$ac_ext >&5
3797
3798{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3800as_fn_error $? "cannot compute suffix of object files: cannot compile
3801See \`config.log' for more details" "$LINENO" 5; }
d7f09764
DN
3802fi
3803rm -f conftest.$ac_cv_objext conftest.$ac_ext
3804fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3806$as_echo "$ac_cv_objext" >&6; }
3807OBJEXT=$ac_cv_objext
3808ac_objext=$OBJEXT
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3810$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3811if ${ac_cv_c_compiler_gnu+:} false; then :
d7f09764
DN
3812 $as_echo_n "(cached) " >&6
3813else
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h. */
3816
3817int
3818main ()
3819{
3820#ifndef __GNUC__
3821 choke me
3822#endif
3823
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828if ac_fn_c_try_compile "$LINENO"; then :
3829 ac_compiler_gnu=yes
3830else
3831 ac_compiler_gnu=no
3832fi
3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834ac_cv_c_compiler_gnu=$ac_compiler_gnu
3835
3836fi
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3838$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3839if test $ac_compiler_gnu = yes; then
3840 GCC=yes
3841else
3842 GCC=
3843fi
3844ac_test_CFLAGS=${CFLAGS+set}
3845ac_save_CFLAGS=$CFLAGS
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3847$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3848if ${ac_cv_prog_cc_g+:} false; then :
d7f09764
DN
3849 $as_echo_n "(cached) " >&6
3850else
3851 ac_save_c_werror_flag=$ac_c_werror_flag
3852 ac_c_werror_flag=yes
3853 ac_cv_prog_cc_g=no
3854 CFLAGS="-g"
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h. */
3857
3858int
3859main ()
3860{
3861
3862 ;
3863 return 0;
3864}
3865_ACEOF
3866if ac_fn_c_try_compile "$LINENO"; then :
3867 ac_cv_prog_cc_g=yes
3868else
3869 CFLAGS=""
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h. */
3872
3873int
3874main ()
3875{
3876
3877 ;
3878 return 0;
3879}
3880_ACEOF
3881if ac_fn_c_try_compile "$LINENO"; then :
3882
3883else
3884 ac_c_werror_flag=$ac_save_c_werror_flag
3885 CFLAGS="-g"
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h. */
3888
3889int
3890main ()
3891{
3892
3893 ;
3894 return 0;
3895}
3896_ACEOF
3897if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_prog_cc_g=yes
3899fi
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 ac_c_werror_flag=$ac_save_c_werror_flag
3906fi
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3908$as_echo "$ac_cv_prog_cc_g" >&6; }
3909if test "$ac_test_CFLAGS" = set; then
3910 CFLAGS=$ac_save_CFLAGS
3911elif test $ac_cv_prog_cc_g = yes; then
3912 if test "$GCC" = yes; then
3913 CFLAGS="-g -O2"
3914 else
3915 CFLAGS="-g"
3916 fi
3917else
3918 if test "$GCC" = yes; then
3919 CFLAGS="-O2"
3920 else
3921 CFLAGS=
3922 fi
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3925$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3926if ${ac_cv_prog_cc_c89+:} false; then :
d7f09764
DN
3927 $as_echo_n "(cached) " >&6
3928else
3929 ac_cv_prog_cc_c89=no
3930ac_save_CC=$CC
3931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932/* end confdefs.h. */
3933#include <stdarg.h>
3934#include <stdio.h>
22e05272 3935struct stat;
d7f09764
DN
3936/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3937struct buf { int x; };
3938FILE * (*rcsopen) (struct buf *, struct stat *, int);
3939static char *e (p, i)
3940 char **p;
3941 int i;
3942{
3943 return p[i];
3944}
3945static char *f (char * (*g) (char **, int), char **p, ...)
3946{
3947 char *s;
3948 va_list v;
3949 va_start (v,p);
3950 s = g (p, va_arg (v,int));
3951 va_end (v);
3952 return s;
3953}
3954
3955/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3956 function prototypes and stuff, but not '\xHH' hex character constants.
3957 These don't provoke an error unfortunately, instead are silently treated
3958 as 'x'. The following induces an error, until -std is added to get
3959 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3960 array size at least. It's necessary to write '\x00'==0 to get something
3961 that's true only with -std. */
3962int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3963
3964/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3965 inside strings and character constants. */
3966#define FOO(x) 'x'
3967int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3968
3969int test (int i, double x);
3970struct s1 {int (*f) (int a);};
3971struct s2 {int (*f) (double a);};
3972int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3973int argc;
3974char **argv;
3975int
3976main ()
3977{
3978return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3979 ;
3980 return 0;
3981}
3982_ACEOF
3983for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3984 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3985do
3986 CC="$ac_save_CC $ac_arg"
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_prog_cc_c89=$ac_arg
3989fi
3990rm -f core conftest.err conftest.$ac_objext
3991 test "x$ac_cv_prog_cc_c89" != "xno" && break
3992done
3993rm -f conftest.$ac_ext
3994CC=$ac_save_CC
3995
3996fi
3997# AC_CACHE_VAL
3998case "x$ac_cv_prog_cc_c89" in
3999 x)
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4001$as_echo "none needed" >&6; } ;;
4002 xno)
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4004$as_echo "unsupported" >&6; } ;;
4005 *)
4006 CC="$CC $ac_cv_prog_cc_c89"
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4008$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4009esac
4010if test "x$ac_cv_prog_cc_c89" != xno; then :
4011
4012fi
4013
4014ac_ext=c
4015ac_cpp='$CPP $CPPFLAGS'
4016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7f09764 4019
22e05272
JM
4020ac_ext=c
4021ac_cpp='$CPP $CPPFLAGS'
4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4026$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4027if ${am_cv_prog_cc_c_o+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029else
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h. */
4032
4033int
4034main ()
4035{
4036
4037 ;
4038 return 0;
4039}
4040_ACEOF
4041 # Make sure it works both with $CC and with simple cc.
4042 # Following AC_PROG_CC_C_O, we do the test twice because some
4043 # compilers refuse to overwrite an existing .o file with -o,
4044 # though they will create one.
4045 am_cv_prog_cc_c_o=yes
4046 for am_i in 1 2; do
4047 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4048 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } \
4052 && test -f conftest2.$ac_objext; then
4053 : OK
4054 else
4055 am_cv_prog_cc_c_o=no
4056 break
4057 fi
4058 done
4059 rm -f core conftest*
4060 unset am_i
4061fi
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4063$as_echo "$am_cv_prog_cc_c_o" >&6; }
4064if test "$am_cv_prog_cc_c_o" != yes; then
4065 # Losing compiler, so override with the script.
4066 # FIXME: It is wrong to rewrite CC.
4067 # But if we don't then we get into trouble of one sort or another.
4068 # A longer-term fix would be to have automake use am__CC in this case,
4069 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4070 CC="$am_aux_dir/compile $CC"
4071fi
4072ac_ext=c
4073ac_cpp='$CPP $CPPFLAGS'
4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078
dcbc9df9 4079depcc="$CC" am_compiler_list=
d7f09764
DN
4080
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4082$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4083if ${am_cv_CC_dependencies_compiler_type+:} false; then :
d7f09764
DN
4084 $as_echo_n "(cached) " >&6
4085else
4086 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4087 # We make a subdir and do the tests there. Otherwise we can end up
4088 # making bogus files that we don't know about and never remove. For
4089 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4090 # making a dummy file named 'D' -- because '-MD' means "put the output
4091 # in D".
ed9b4ae3 4092 rm -rf conftest.dir
d7f09764
DN
4093 mkdir conftest.dir
4094 # Copy depcomp to subdir because otherwise we won't find it if we're
4095 # using a relative directory.
4096 cp "$am_depcomp" conftest.dir
4097 cd conftest.dir
4098 # We will build objects and dependencies in a subdirectory because
4099 # it helps to detect inapplicable dependency modes. For instance
4100 # both Tru64's cc and ICC support -MD to output dependencies as a
4101 # side effect of compilation, but ICC will put the dependencies in
4102 # the current directory while Tru64 will put them in the object
4103 # directory.
4104 mkdir sub
4105
4106 am_cv_CC_dependencies_compiler_type=none
4107 if test "$am_compiler_list" = ""; then
4108 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4109 fi
4110 am__universal=false
4111 case " $depcc " in #(
4112 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4113 esac
4114
4115 for depmode in $am_compiler_list; do
4116 # Setup a source with many dependencies, because some compilers
4117 # like to wrap large dependency lists on column 80 (with \), and
4118 # we should not choose a depcomp mode which is confused by this.
4119 #
4120 # We need to recreate these files for each test, as the compiler may
4121 # overwrite some of them when testing with obscure command lines.
4122 # This happens at least with the AIX C compiler.
4123 : > sub/conftest.c
4124 for i in 1 2 3 4 5 6; do
4125 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4126 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4127 # Solaris 10 /bin/sh.
4128 echo '/* dummy */' > sub/conftst$i.h
d7f09764
DN
4129 done
4130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4131
22e05272 4132 # We check with '-c' and '-o' for the sake of the "dashmstdout"
d7f09764 4133 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4134 # handle '-M -o', and we need to detect this. Also, some Intel
4135 # versions had trouble with output in subdirs.
d7f09764
DN
4136 am__obj=sub/conftest.${OBJEXT-o}
4137 am__minus_obj="-o $am__obj"
4138 case $depmode in
4139 gcc)
4140 # This depmode causes a compiler race in universal mode.
4141 test "$am__universal" = false || continue
4142 ;;
4143 nosideeffect)
22e05272
JM
4144 # After this tag, mechanisms are not by side-effect, so they'll
4145 # only be used when explicitly requested.
d7f09764
DN
4146 if test "x$enable_dependency_tracking" = xyes; then
4147 continue
4148 else
4149 break
4150 fi
4151 ;;
ed9b4ae3 4152 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4153 # This compiler won't grok '-c -o', but also, the minuso test has
d7f09764
DN
4154 # not run yet. These depmodes are late enough in the game, and
4155 # so weak that their functioning should not be impacted.
4156 am__obj=conftest.${OBJEXT-o}
4157 am__minus_obj=
4158 ;;
4159 none) break ;;
4160 esac
4161 if depmode=$depmode \
4162 source=sub/conftest.c object=$am__obj \
4163 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4164 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4165 >/dev/null 2>conftest.err &&
4166 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4168 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4170 # icc doesn't choke on unknown options, it will just issue warnings
4171 # or remarks (even with -Werror). So we grep stderr for any message
4172 # that says an option was ignored or not supported.
4173 # When given -MP, icc 7.0 and 7.1 complain thusly:
4174 # icc: Command line warning: ignoring option '-M'; no argument required
4175 # The diagnosis changed in icc 8.0:
4176 # icc: Command line remark: option '-MP' not supported
4177 if (grep 'ignoring option' conftest.err ||
4178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4179 am_cv_CC_dependencies_compiler_type=$depmode
4180 break
4181 fi
4182 fi
4183 done
4184
4185 cd ..
4186 rm -rf conftest.dir
4187else
4188 am_cv_CC_dependencies_compiler_type=none
4189fi
4190
4191fi
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4193$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4194CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4195
4196 if
4197 test "x$enable_dependency_tracking" != xno \
4198 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4199 am__fastdepCC_TRUE=
4200 am__fastdepCC_FALSE='#'
4201else
4202 am__fastdepCC_TRUE='#'
4203 am__fastdepCC_FALSE=
4204fi
4205
4206
4207
dcbc9df9
UB
4208ac_ext=c
4209ac_cpp='$CPP $CPPFLAGS'
4210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4214$as_echo_n "checking how to run the C preprocessor... " >&6; }
4215# On Suns, sometimes $CPP names a directory.
4216if test -n "$CPP" && test -d "$CPP"; then
4217 CPP=
4c0f4b0b 4218fi
dcbc9df9 4219if test -z "$CPP"; then
22e05272 4220 if ${ac_cv_prog_CPP+:} false; then :
4c0f4b0b
DG
4221 $as_echo_n "(cached) " >&6
4222else
dcbc9df9
UB
4223 # Double quotes because CPP needs to be expanded
4224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4225 do
4226 ac_preproc_ok=false
4227for ac_c_preproc_warn_flag in '' yes
4228do
4229 # Use a header file that comes with gcc, so configuring glibc
4230 # with a fresh cross-compiler works.
4231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232 # <limits.h> exists even on freestanding compilers.
4233 # On the NeXT, cc -E runs the code through the compiler's parser,
4234 # not just through cpp. "Syntax error" is here to catch this case.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4c0f4b0b 4236/* end confdefs.h. */
dcbc9df9
UB
4237#ifdef __STDC__
4238# include <limits.h>
4239#else
4240# include <assert.h>
4241#endif
4242 Syntax error
4c0f4b0b 4243_ACEOF
dcbc9df9
UB
4244if ac_fn_c_try_cpp "$LINENO"; then :
4245
4246else
4247 # Broken: fails on valid input.
4248continue
4c0f4b0b 4249fi
22e05272 4250rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
4251
4252 # OK, works on sane cases. Now check whether nonexistent headers
4253 # can be detected and how.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255/* end confdefs.h. */
4256#include <ac_nonexistent.h>
4257_ACEOF
4258if ac_fn_c_try_cpp "$LINENO"; then :
4259 # Broken: success on invalid input.
4260continue
4261else
4262 # Passes both tests.
4263ac_preproc_ok=:
4264break
4c0f4b0b 4265fi
22e05272 4266rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
4267
4268done
4269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4270rm -f conftest.i conftest.err conftest.$ac_ext
dcbc9df9
UB
4271if $ac_preproc_ok; then :
4272 break
4c0f4b0b 4273fi
4c0f4b0b 4274
dcbc9df9
UB
4275 done
4276 ac_cv_prog_CPP=$CPP
4277
4278fi
4279 CPP=$ac_cv_prog_CPP
4c0f4b0b 4280else
dcbc9df9
UB
4281 ac_cv_prog_CPP=$CPP
4282fi
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4284$as_echo "$CPP" >&6; }
4285ac_preproc_ok=false
4286for ac_c_preproc_warn_flag in '' yes
4287do
4288 # Use a header file that comes with gcc, so configuring glibc
4289 # with a fresh cross-compiler works.
4290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291 # <limits.h> exists even on freestanding compilers.
4292 # On the NeXT, cc -E runs the code through the compiler's parser,
4293 # not just through cpp. "Syntax error" is here to catch this case.
4c0f4b0b
DG
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295/* end confdefs.h. */
dcbc9df9
UB
4296#ifdef __STDC__
4297# include <limits.h>
4298#else
4299# include <assert.h>
4300#endif
4301 Syntax error
4c0f4b0b 4302_ACEOF
dcbc9df9
UB
4303if ac_fn_c_try_cpp "$LINENO"; then :
4304
4305else
4306 # Broken: fails on valid input.
4307continue
4c0f4b0b 4308fi
22e05272 4309rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9
UB
4310
4311 # OK, works on sane cases. Now check whether nonexistent headers
4312 # can be detected and how.
4c0f4b0b
DG
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314/* end confdefs.h. */
dcbc9df9 4315#include <ac_nonexistent.h>
4c0f4b0b 4316_ACEOF
dcbc9df9
UB
4317if ac_fn_c_try_cpp "$LINENO"; then :
4318 # Broken: success on invalid input.
4319continue
4320else
4321 # Passes both tests.
4322ac_preproc_ok=:
4323break
4c0f4b0b 4324fi
22e05272 4325rm -f conftest.err conftest.i conftest.$ac_ext
dcbc9df9 4326
4c0f4b0b 4327done
dcbc9df9 4328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4329rm -f conftest.i conftest.err conftest.$ac_ext
dcbc9df9
UB
4330if $ac_preproc_ok; then :
4331
4332else
4333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4335as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4336See \`config.log' for more details" "$LINENO" 5; }
4c0f4b0b 4337fi
dcbc9df9
UB
4338
4339ac_ext=c
4340ac_cpp='$CPP $CPPFLAGS'
4341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
4345
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4347$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4348if ${ac_cv_path_GREP+:} false; then :
4c0f4b0b
DG
4349 $as_echo_n "(cached) " >&6
4350else
dcbc9df9
UB
4351 if test -z "$GREP"; then
4352 ac_path_GREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in grep ggrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4362 as_fn_executable_p "$ac_path_GREP" || continue
dcbc9df9
UB
4363# Check for GNU ac_path_GREP and select it if it is found.
4364 # Check for GNU $ac_path_GREP
4365case `"$ac_path_GREP" --version 2>&1` in
4366*GNU*)
4367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4368*)
4369 ac_count=0
4370 $as_echo_n 0123456789 >"conftest.in"
4371 while :
4372 do
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'GREP' >> "conftest.nl"
4377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 as_fn_arith $ac_count + 1 && ac_count=$as_val
4380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_GREP="$ac_path_GREP"
4383 ac_path_GREP_max=$ac_count
4384 fi
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4387 done
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389esac
4c0f4b0b 4390
dcbc9df9
UB
4391 $ac_path_GREP_found && break 3
4392 done
4393 done
4394 done
4395IFS=$as_save_IFS
4396 if test -z "$ac_cv_path_GREP"; then
22e05272 4397 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
dcbc9df9
UB
4398 fi
4399else
4400 ac_cv_path_GREP=$GREP
4c0f4b0b 4401fi
4c0f4b0b 4402
4c0f4b0b 4403fi
dcbc9df9
UB
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4405$as_echo "$ac_cv_path_GREP" >&6; }
4406 GREP="$ac_cv_path_GREP"
4407
4408
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4410$as_echo_n "checking for egrep... " >&6; }
22e05272 4411if ${ac_cv_path_EGREP+:} false; then :
dcbc9df9
UB
4412 $as_echo_n "(cached) " >&6
4413else
4414 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4415 then ac_cv_path_EGREP="$GREP -E"
4416 else
4417 if test -z "$EGREP"; then
4418 ac_path_EGREP_found=false
4419 # Loop through the user's path and test for each of PROGNAME-LIST
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4422do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_prog in egrep; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4428 as_fn_executable_p "$ac_path_EGREP" || continue
dcbc9df9
UB
4429# Check for GNU ac_path_EGREP and select it if it is found.
4430 # Check for GNU $ac_path_EGREP
4431case `"$ac_path_EGREP" --version 2>&1` in
4432*GNU*)
4433 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4434*)
4435 ac_count=0
4436 $as_echo_n 0123456789 >"conftest.in"
4437 while :
4438 do
4439 cat "conftest.in" "conftest.in" >"conftest.tmp"
4440 mv "conftest.tmp" "conftest.in"
4441 cp "conftest.in" "conftest.nl"
4442 $as_echo 'EGREP' >> "conftest.nl"
4443 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445 as_fn_arith $ac_count + 1 && ac_count=$as_val
4446 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4447 # Best one so far, save it but keep looking for a better one
4448 ac_cv_path_EGREP="$ac_path_EGREP"
4449 ac_path_EGREP_max=$ac_count
4450 fi
4451 # 10*(2^10) chars as input seems more than enough
4452 test $ac_count -gt 10 && break
4453 done
4454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4c0f4b0b 4455esac
dcbc9df9
UB
4456
4457 $ac_path_EGREP_found && break 3
4458 done
4459 done
4460 done
4461IFS=$as_save_IFS
4462 if test -z "$ac_cv_path_EGREP"; then
22e05272 4463 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4c0f4b0b 4464 fi
dcbc9df9
UB
4465else
4466 ac_cv_path_EGREP=$EGREP
4c0f4b0b
DG
4467fi
4468
dcbc9df9
UB
4469 fi
4470fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4472$as_echo "$ac_cv_path_EGREP" >&6; }
4473 EGREP="$ac_cv_path_EGREP"
f3016c47 4474
dcbc9df9
UB
4475
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4477$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4478if ${ac_cv_header_stdc+:} false; then :
f3016c47
RG
4479 $as_echo_n "(cached) " >&6
4480else
dcbc9df9 4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f3016c47 4482/* end confdefs.h. */
dcbc9df9
UB
4483#include <stdlib.h>
4484#include <stdarg.h>
4485#include <string.h>
4486#include <float.h>
f3016c47
RG
4487
4488int
4489main ()
4490{
4491
4492 ;
4493 return 0;
4494}
4495_ACEOF
4496if ac_fn_c_try_compile "$LINENO"; then :
dcbc9df9 4497 ac_cv_header_stdc=yes
f3016c47 4498else
dcbc9df9 4499 ac_cv_header_stdc=no
f3016c47
RG
4500fi
4501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502
dcbc9df9
UB
4503if test $ac_cv_header_stdc = yes; then
4504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a2555c65 4506/* end confdefs.h. */
dcbc9df9 4507#include <string.h>
a2555c65 4508
a2555c65 4509_ACEOF
dcbc9df9
UB
4510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511 $EGREP "memchr" >/dev/null 2>&1; then :
4512
a2555c65 4513else
dcbc9df9 4514 ac_cv_header_stdc=no
a2555c65 4515fi
dcbc9df9
UB
4516rm -f conftest*
4517
a2555c65
RO
4518fi
4519
dcbc9df9
UB
4520if test $ac_cv_header_stdc = yes; then
4521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523/* end confdefs.h. */
4524#include <stdlib.h>
4525
4526_ACEOF
4527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528 $EGREP "free" >/dev/null 2>&1; then :
5523efdf 4529
43f4a446 4530else
dcbc9df9 4531 ac_cv_header_stdc=no
43f4a446 4532fi
dcbc9df9 4533rm -f conftest*
43f4a446 4534
85c64bbe
BS
4535fi
4536
dcbc9df9
UB
4537if test $ac_cv_header_stdc = yes; then
4538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4539 if test "$cross_compiling" = yes; then :
4540 :
4541else
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h. */
4544#include <ctype.h>
4545#include <stdlib.h>
4546#if ((' ' & 0x0FF) == 0x020)
4547# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4548# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4549#else
4550# define ISLOWER(c) \
4551 (('a' <= (c) && (c) <= 'i') \
4552 || ('j' <= (c) && (c) <= 'r') \
4553 || ('s' <= (c) && (c) <= 'z'))
4554# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4555#endif
85c64bbe 4556
dcbc9df9
UB
4557#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4558int
4559main ()
4560{
4561 int i;
4562 for (i = 0; i < 256; i++)
4563 if (XOR (islower (i), ISLOWER (i))
4564 || toupper (i) != TOUPPER (i))
4565 return 2;
4566 return 0;
4567}
4568_ACEOF
4569if ac_fn_c_try_run "$LINENO"; then :
85c64bbe 4570
dcbc9df9
UB
4571else
4572 ac_cv_header_stdc=no
4573fi
4574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4575 conftest.$ac_objext conftest.beam conftest.$ac_ext
4576fi
d7f09764 4577
dcbc9df9
UB
4578fi
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4581$as_echo "$ac_cv_header_stdc" >&6; }
4582if test $ac_cv_header_stdc = yes; then
d7f09764 4583
dcbc9df9 4584$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7f09764 4585
dcbc9df9 4586fi
d7f09764 4587
dcbc9df9
UB
4588# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4589for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4590 inttypes.h stdint.h unistd.h
4591do :
4592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4593ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4594"
22e05272 4595if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
dcbc9df9
UB
4596 cat >>confdefs.h <<_ACEOF
4597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4598_ACEOF
d7f09764 4599
dcbc9df9 4600fi
d7f09764 4601
dcbc9df9 4602done
d7f09764
DN
4603
4604
4605
dcbc9df9 4606 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 4607if test "x$ac_cv_header_minix_config_h" = xyes; then :
dcbc9df9
UB
4608 MINIX=yes
4609else
4610 MINIX=
4611fi
d7f09764
DN
4612
4613
dcbc9df9 4614 if test "$MINIX" = yes; then
d7f09764 4615
dcbc9df9 4616$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7f09764 4617
52327858 4618
dcbc9df9 4619$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
52327858 4620
52327858 4621
dcbc9df9 4622$as_echo "#define _MINIX 1" >>confdefs.h
52327858 4623
dcbc9df9 4624 fi
52327858 4625
52327858 4626
dcbc9df9
UB
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4628$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 4629if ${ac_cv_safe_to_define___extensions__+:} false; then :
dcbc9df9 4630 $as_echo_n "(cached) " >&6
52327858 4631else
dcbc9df9
UB
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h. */
52327858 4634
22e05272
JM
4635# define __EXTENSIONS__ 1
4636 $ac_includes_default
dcbc9df9
UB
4637int
4638main ()
52327858 4639{
52327858 4640
dcbc9df9
UB
4641 ;
4642 return 0;
4643}
4644_ACEOF
4645if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_safe_to_define___extensions__=yes
4647else
4648 ac_cv_safe_to_define___extensions__=no
4649fi
4650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651fi
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4653$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4654 test $ac_cv_safe_to_define___extensions__ = yes &&
4655 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
52327858 4656
dcbc9df9 4657 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
52327858 4658
dcbc9df9 4659 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
52327858 4660
dcbc9df9 4661 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
52327858 4662
dcbc9df9 4663 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
52327858
L
4664
4665
dcbc9df9
UB
4666ac_ext=c
4667ac_cpp='$CPP $CPPFLAGS'
4668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671if test -n "$ac_tool_prefix"; then
4672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4673set dummy ${ac_tool_prefix}gcc; ac_word=$2
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4676if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4677 $as_echo_n "(cached) " >&6
4678else
dcbc9df9
UB
4679 if test -n "$CC"; then
4680 ac_cv_prog_CC="$CC" # Let the user override the test.
4681else
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d7f09764
DN
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
d7f09764 4687 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4689 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693done
d7f09764
DN
4694 done
4695IFS=$as_save_IFS
dcbc9df9
UB
4696
4697fi
4698fi
4699CC=$ac_cv_prog_CC
4700if test -n "$CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702$as_echo "$CC" >&6; }
d7f09764 4703else
dcbc9df9
UB
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705$as_echo "no" >&6; }
d7f09764
DN
4706fi
4707
dcbc9df9 4708
d7f09764 4709fi
dcbc9df9
UB
4710if test -z "$ac_cv_prog_CC"; then
4711 ac_ct_CC=$CC
4712 # Extract the first word of "gcc", so it can be a program name with args.
4713set dummy gcc; ac_word=$2
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4716if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
4717 $as_echo_n "(cached) " >&6
4718else
dcbc9df9
UB
4719 if test -n "$ac_ct_CC"; then
4720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4721else
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
d7f09764
DN
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
d7f09764 4727 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4729 ac_cv_prog_ac_ct_CC="gcc"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733done
d7f09764
DN
4734 done
4735IFS=$as_save_IFS
dcbc9df9
UB
4736
4737fi
4738fi
4739ac_ct_CC=$ac_cv_prog_ac_ct_CC
4740if test -n "$ac_ct_CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4742$as_echo "$ac_ct_CC" >&6; }
d7f09764 4743else
dcbc9df9
UB
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745$as_echo "no" >&6; }
d7f09764
DN
4746fi
4747
dcbc9df9
UB
4748 if test "x$ac_ct_CC" = x; then
4749 CC=""
4750 else
4751 case $cross_compiling:$ac_tool_warned in
4752yes:)
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755ac_tool_warned=yes ;;
4756esac
4757 CC=$ac_ct_CC
4758 fi
4759else
4760 CC="$ac_cv_prog_CC"
d7f09764 4761fi
d7f09764 4762
dcbc9df9
UB
4763if test -z "$CC"; then
4764 if test -n "$ac_tool_prefix"; then
4765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4766set dummy ${ac_tool_prefix}cc; ac_word=$2
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4769if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4770 $as_echo_n "(cached) " >&6
4771else
dcbc9df9
UB
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774else
4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776for as_dir in $PATH
d7f09764
DN
4777do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
d7f09764 4780 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4782 ac_cv_prog_CC="${ac_tool_prefix}cc"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4785 fi
4786done
d7f09764
DN
4787 done
4788IFS=$as_save_IFS
d7f09764 4789
d7f09764 4790fi
dcbc9df9
UB
4791fi
4792CC=$ac_cv_prog_CC
4793if test -n "$CC"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4795$as_echo "$CC" >&6; }
4796else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798$as_echo "no" >&6; }
4799fi
d7f09764
DN
4800
4801
dcbc9df9
UB
4802 fi
4803fi
4804if test -z "$CC"; then
4805 # Extract the first word of "cc", so it can be a program name with args.
4806set dummy cc; ac_word=$2
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4809if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4810 $as_echo_n "(cached) " >&6
4811else
dcbc9df9
UB
4812 if test -n "$CC"; then
4813 ac_cv_prog_CC="$CC" # Let the user override the test.
4814else
4815 ac_prog_rejected=no
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
d7f09764
DN
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
d7f09764 4821 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
4823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4824 ac_prog_rejected=yes
4825 continue
4826 fi
4827 ac_cv_prog_CC="cc"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831done
d7f09764 4832 done
dcbc9df9 4833IFS=$as_save_IFS
d7f09764 4834
dcbc9df9
UB
4835if test $ac_prog_rejected = yes; then
4836 # We found a bogon in the path, so make sure we never use it.
4837 set dummy $ac_cv_prog_CC
4838 shift
4839 if test $# != 0; then
4840 # We chose a different compiler from the bogus one.
4841 # However, it has the same basename, so the bogon will be chosen
4842 # first if we set CC to just the basename; use the full file name.
4843 shift
4844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
d7f09764 4845 fi
d7f09764 4846fi
d7f09764
DN
4847fi
4848fi
dcbc9df9
UB
4849CC=$ac_cv_prog_CC
4850if test -n "$CC"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4852$as_echo "$CC" >&6; }
d7f09764
DN
4853else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855$as_echo "no" >&6; }
4856fi
d7f09764
DN
4857
4858
d7f09764 4859fi
dcbc9df9
UB
4860if test -z "$CC"; then
4861 if test -n "$ac_tool_prefix"; then
4862 for ac_prog in cl.exe
d7f09764
DN
4863 do
4864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4865set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4868if ${ac_cv_prog_CC+:} false; then :
d7f09764
DN
4869 $as_echo_n "(cached) " >&6
4870else
dcbc9df9
UB
4871 if test -n "$CC"; then
4872 ac_cv_prog_CC="$CC" # Let the user override the test.
d7f09764
DN
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 4881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
d7f09764
DN
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885done
4886 done
4887IFS=$as_save_IFS
4888
4889fi
4890fi
dcbc9df9
UB
4891CC=$ac_cv_prog_CC
4892if test -n "$CC"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4894$as_echo "$CC" >&6; }
d7f09764
DN
4895else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897$as_echo "no" >&6; }
4898fi
4899
4900
dcbc9df9 4901 test -n "$CC" && break
d7f09764
DN
4902 done
4903fi
dcbc9df9
UB
4904if test -z "$CC"; then
4905 ac_ct_CC=$CC
4906 for ac_prog in cl.exe
d7f09764
DN
4907do
4908 # Extract the first word of "$ac_prog", so it can be a program name with args.
4909set dummy $ac_prog; ac_word=$2
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4912if ${ac_cv_prog_ac_ct_CC+:} false; then :
d7f09764
DN
4913 $as_echo_n "(cached) " >&6
4914else
dcbc9df9
UB
4915 if test -n "$ac_ct_CC"; then
4916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7f09764
DN
4917else
4918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919for as_dir in $PATH
4920do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 4925 ac_cv_prog_ac_ct_CC="$ac_prog"
d7f09764
DN
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929done
4930 done
4931IFS=$as_save_IFS
4932
4933fi
4934fi
dcbc9df9
UB
4935ac_ct_CC=$ac_cv_prog_ac_ct_CC
4936if test -n "$ac_ct_CC"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4938$as_echo "$ac_ct_CC" >&6; }
d7f09764
DN
4939else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941$as_echo "no" >&6; }
4942fi
4943
4944
dcbc9df9 4945 test -n "$ac_ct_CC" && break
d7f09764
DN
4946done
4947
dcbc9df9
UB
4948 if test "x$ac_ct_CC" = x; then
4949 CC=""
d7f09764
DN
4950 else
4951 case $cross_compiling:$ac_tool_warned in
4952yes:)
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4955ac_tool_warned=yes ;;
4956esac
dcbc9df9 4957 CC=$ac_ct_CC
d7f09764
DN
4958 fi
4959fi
4960
d7f09764 4961fi
d7f09764
DN
4962
4963
dcbc9df9
UB
4964test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4966as_fn_error $? "no acceptable C compiler found in \$PATH
4967See \`config.log' for more details" "$LINENO" 5; }
d7f09764 4968
dcbc9df9
UB
4969# Provide some information about the compiler.
4970$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4971set X $ac_compile
4972ac_compiler=$2
4973for ac_option in --version -v -V -qversion; do
4974 { { ac_try="$ac_compiler $ac_option >&5"
4975case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978esac
4979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980$as_echo "$ac_try_echo"; } >&5
4981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4982 ac_status=$?
4983 if test -s conftest.err; then
4984 sed '10a\
4985... rest of stderr output deleted ...
4986 10q' conftest.err >conftest.er1
4987 cat conftest.er1 >&5
dcbc9df9 4988 fi
22e05272 4989 rm -f conftest.er1 conftest.err
dcbc9df9
UB
4990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4991 test $ac_status = 0; }
4992done
d7f09764 4993
dcbc9df9
UB
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4995$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4996if ${ac_cv_c_compiler_gnu+:} false; then :
dcbc9df9
UB
4997 $as_echo_n "(cached) " >&6
4998else
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h. */
d7f09764 5001
dcbc9df9
UB
5002int
5003main ()
5004{
5005#ifndef __GNUC__
5006 choke me
5007#endif
d7f09764 5008
dcbc9df9
UB
5009 ;
5010 return 0;
5011}
5012_ACEOF
5013if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_compiler_gnu=yes
d7f09764 5015else
dcbc9df9 5016 ac_compiler_gnu=no
d7f09764 5017fi
dcbc9df9
UB
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7f09764 5020
dcbc9df9
UB
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5023$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5024if test $ac_compiler_gnu = yes; then
5025 GCC=yes
d7f09764 5026else
dcbc9df9 5027 GCC=
d7f09764 5028fi
dcbc9df9
UB
5029ac_test_CFLAGS=${CFLAGS+set}
5030ac_save_CFLAGS=$CFLAGS
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5032$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5033if ${ac_cv_prog_cc_g+:} false; then :
d7f09764
DN
5034 $as_echo_n "(cached) " >&6
5035else
dcbc9df9
UB
5036 ac_save_c_werror_flag=$ac_c_werror_flag
5037 ac_c_werror_flag=yes
5038 ac_cv_prog_cc_g=no
5039 CFLAGS="-g"
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041/* end confdefs.h. */
d7f09764 5042
dcbc9df9
UB
5043int
5044main ()
5045{
d7f09764 5046
dcbc9df9
UB
5047 ;
5048 return 0;
5049}
5050_ACEOF
5051if ac_fn_c_try_compile "$LINENO"; then :
5052 ac_cv_prog_cc_g=yes
5053else
5054 CFLAGS=""
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h. */
d7f09764 5057
dcbc9df9
UB
5058int
5059main ()
5060{
52327858 5061
dcbc9df9
UB
5062 ;
5063 return 0;
5064}
5065_ACEOF
5066if ac_fn_c_try_compile "$LINENO"; then :
d7f09764 5067
dcbc9df9
UB
5068else
5069 ac_c_werror_flag=$ac_save_c_werror_flag
5070 CFLAGS="-g"
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h. */
d7f09764 5073
dcbc9df9
UB
5074int
5075main ()
5076{
d7f09764 5077
dcbc9df9
UB
5078 ;
5079 return 0;
5080}
5081_ACEOF
5082if ac_fn_c_try_compile "$LINENO"; then :
5083 ac_cv_prog_cc_g=yes
5084fi
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086fi
5087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088fi
5089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 ac_c_werror_flag=$ac_save_c_werror_flag
5091fi
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5093$as_echo "$ac_cv_prog_cc_g" >&6; }
5094if test "$ac_test_CFLAGS" = set; then
5095 CFLAGS=$ac_save_CFLAGS
5096elif test $ac_cv_prog_cc_g = yes; then
5097 if test "$GCC" = yes; then
5098 CFLAGS="-g -O2"
5099 else
5100 CFLAGS="-g"
5101 fi
5102else
5103 if test "$GCC" = yes; then
5104 CFLAGS="-O2"
5105 else
5106 CFLAGS=
5107 fi
5108fi
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5110$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5111if ${ac_cv_prog_cc_c89+:} false; then :
dcbc9df9
UB
5112 $as_echo_n "(cached) " >&6
5113else
5114 ac_cv_prog_cc_c89=no
5115ac_save_CC=$CC
5116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h. */
5118#include <stdarg.h>
5119#include <stdio.h>
22e05272 5120struct stat;
dcbc9df9
UB
5121/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5122struct buf { int x; };
5123FILE * (*rcsopen) (struct buf *, struct stat *, int);
5124static char *e (p, i)
5125 char **p;
5126 int i;
5127{
5128 return p[i];
5129}
5130static char *f (char * (*g) (char **, int), char **p, ...)
5131{
5132 char *s;
5133 va_list v;
5134 va_start (v,p);
5135 s = g (p, va_arg (v,int));
5136 va_end (v);
5137 return s;
5138}
5139
5140/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5141 function prototypes and stuff, but not '\xHH' hex character constants.
5142 These don't provoke an error unfortunately, instead are silently treated
5143 as 'x'. The following induces an error, until -std is added to get
5144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5145 array size at least. It's necessary to write '\x00'==0 to get something
5146 that's true only with -std. */
5147int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5148
5149/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5150 inside strings and character constants. */
5151#define FOO(x) 'x'
5152int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5153
5154int test (int i, double x);
5155struct s1 {int (*f) (int a);};
5156struct s2 {int (*f) (double a);};
5157int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5158int argc;
5159char **argv;
5160int
5161main ()
5162{
5163return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5164 ;
5165 return 0;
5166}
5167_ACEOF
5168for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5170do
5171 CC="$ac_save_CC $ac_arg"
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173 ac_cv_prog_cc_c89=$ac_arg
5174fi
5175rm -f core conftest.err conftest.$ac_objext
5176 test "x$ac_cv_prog_cc_c89" != "xno" && break
5177done
5178rm -f conftest.$ac_ext
5179CC=$ac_save_CC
5180
5181fi
5182# AC_CACHE_VAL
5183case "x$ac_cv_prog_cc_c89" in
5184 x)
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5186$as_echo "none needed" >&6; } ;;
5187 xno)
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5189$as_echo "unsupported" >&6; } ;;
5190 *)
5191 CC="$CC $ac_cv_prog_cc_c89"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5193$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5194esac
5195if test "x$ac_cv_prog_cc_c89" != xno; then :
5196
5197fi
5198
5199ac_ext=c
5200ac_cpp='$CPP $CPPFLAGS'
5201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204
22e05272
JM
5205ac_ext=c
5206ac_cpp='$CPP $CPPFLAGS'
5207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5211$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5212if ${am_cv_prog_cc_c_o+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h. */
5217
5218int
5219main ()
5220{
5221
5222 ;
5223 return 0;
5224}
5225_ACEOF
5226 # Make sure it works both with $CC and with simple cc.
5227 # Following AC_PROG_CC_C_O, we do the test twice because some
5228 # compilers refuse to overwrite an existing .o file with -o,
5229 # though they will create one.
5230 am_cv_prog_cc_c_o=yes
5231 for am_i in 1 2; do
5232 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5233 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } \
5237 && test -f conftest2.$ac_objext; then
5238 : OK
5239 else
5240 am_cv_prog_cc_c_o=no
5241 break
5242 fi
5243 done
5244 rm -f core conftest*
5245 unset am_i
5246fi
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5248$as_echo "$am_cv_prog_cc_c_o" >&6; }
5249if test "$am_cv_prog_cc_c_o" != yes; then
5250 # Losing compiler, so override with the script.
5251 # FIXME: It is wrong to rewrite CC.
5252 # But if we don't then we get into trouble of one sort or another.
5253 # A longer-term fix would be to have automake use am__CC in this case,
5254 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5255 CC="$am_aux_dir/compile $CC"
5256fi
5257ac_ext=c
5258ac_cpp='$CPP $CPPFLAGS'
5259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262
5263
dcbc9df9
UB
5264depcc="$CC" am_compiler_list=
5265
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5267$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 5268if ${am_cv_CC_dependencies_compiler_type+:} false; then :
dcbc9df9
UB
5269 $as_echo_n "(cached) " >&6
5270else
5271 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5272 # We make a subdir and do the tests there. Otherwise we can end up
5273 # making bogus files that we don't know about and never remove. For
5274 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
5275 # making a dummy file named 'D' -- because '-MD' means "put the output
5276 # in D".
dcbc9df9
UB
5277 rm -rf conftest.dir
5278 mkdir conftest.dir
5279 # Copy depcomp to subdir because otherwise we won't find it if we're
5280 # using a relative directory.
5281 cp "$am_depcomp" conftest.dir
5282 cd conftest.dir
5283 # We will build objects and dependencies in a subdirectory because
5284 # it helps to detect inapplicable dependency modes. For instance
5285 # both Tru64's cc and ICC support -MD to output dependencies as a
5286 # side effect of compilation, but ICC will put the dependencies in
5287 # the current directory while Tru64 will put them in the object
5288 # directory.
5289 mkdir sub
5290
5291 am_cv_CC_dependencies_compiler_type=none
5292 if test "$am_compiler_list" = ""; then
5293 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5294 fi
5295 am__universal=false
5296 case " $depcc " in #(
5297 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5298 esac
5299
5300 for depmode in $am_compiler_list; do
5301 # Setup a source with many dependencies, because some compilers
5302 # like to wrap large dependency lists on column 80 (with \), and
5303 # we should not choose a depcomp mode which is confused by this.
5304 #
5305 # We need to recreate these files for each test, as the compiler may
5306 # overwrite some of them when testing with obscure command lines.
5307 # This happens at least with the AIX C compiler.
5308 : > sub/conftest.c
5309 for i in 1 2 3 4 5 6; do
5310 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
5311 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5312 # Solaris 10 /bin/sh.
5313 echo '/* dummy */' > sub/conftst$i.h
dcbc9df9
UB
5314 done
5315 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5316
22e05272 5317 # We check with '-c' and '-o' for the sake of the "dashmstdout"
dcbc9df9 5318 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
5319 # handle '-M -o', and we need to detect this. Also, some Intel
5320 # versions had trouble with output in subdirs.
dcbc9df9
UB
5321 am__obj=sub/conftest.${OBJEXT-o}
5322 am__minus_obj="-o $am__obj"
5323 case $depmode in
5324 gcc)
5325 # This depmode causes a compiler race in universal mode.
5326 test "$am__universal" = false || continue
5327 ;;
5328 nosideeffect)
22e05272
JM
5329 # After this tag, mechanisms are not by side-effect, so they'll
5330 # only be used when explicitly requested.
dcbc9df9
UB
5331 if test "x$enable_dependency_tracking" = xyes; then
5332 continue
5333 else
5334 break
5335 fi
5336 ;;
5337 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 5338 # This compiler won't grok '-c -o', but also, the minuso test has
dcbc9df9
UB
5339 # not run yet. These depmodes are late enough in the game, and
5340 # so weak that their functioning should not be impacted.
5341 am__obj=conftest.${OBJEXT-o}
5342 am__minus_obj=
5343 ;;
5344 none) break ;;
5345 esac
5346 if depmode=$depmode \
5347 source=sub/conftest.c object=$am__obj \
5348 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5349 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5350 >/dev/null 2>conftest.err &&
5351 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5352 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5353 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5354 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5355 # icc doesn't choke on unknown options, it will just issue warnings
5356 # or remarks (even with -Werror). So we grep stderr for any message
5357 # that says an option was ignored or not supported.
5358 # When given -MP, icc 7.0 and 7.1 complain thusly:
5359 # icc: Command line warning: ignoring option '-M'; no argument required
5360 # The diagnosis changed in icc 8.0:
5361 # icc: Command line remark: option '-MP' not supported
5362 if (grep 'ignoring option' conftest.err ||
5363 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5364 am_cv_CC_dependencies_compiler_type=$depmode
5365 break
5366 fi
5367 fi
5368 done
5369
5370 cd ..
5371 rm -rf conftest.dir
5372else
5373 am_cv_CC_dependencies_compiler_type=none
5374fi
5375
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5378$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5379CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5380
5381 if
5382 test "x$enable_dependency_tracking" != xno \
5383 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5384 am__fastdepCC_TRUE=
5385 am__fastdepCC_FALSE='#'
5386else
5387 am__fastdepCC_TRUE='#'
5388 am__fastdepCC_FALSE=
5389fi
5390
5391
5392# Check whether --enable-largefile was given.
5393if test "${enable_largefile+set}" = set; then :
5394 enableval=$enable_largefile;
5395fi
5396
5397if test "$enable_largefile" != no; then
5398
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5400$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 5401if ${ac_cv_sys_largefile_CC+:} false; then :
dcbc9df9
UB
5402 $as_echo_n "(cached) " >&6
5403else
5404 ac_cv_sys_largefile_CC=no
5405 if test "$GCC" != yes; then
5406 ac_save_CC=$CC
5407 while :; do
5408 # IRIX 6.2 and later do not support large files by default,
5409 # so use the C compiler's -n32 option if that helps.
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h. */
5412#include <sys/types.h>
5413 /* Check that off_t can represent 2**63 - 1 correctly.
5414 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5415 since some C++ compilers masquerading as C compilers
5416 incorrectly reject 9223372036854775807. */
5417#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5418 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5419 && LARGE_OFF_T % 2147483647 == 1)
5420 ? 1 : -1];
5421int
5422main ()
5423{
5424
5425 ;
5426 return 0;
5427}
5428_ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 break
5431fi
5432rm -f core conftest.err conftest.$ac_objext
5433 CC="$CC -n32"
5434 if ac_fn_c_try_compile "$LINENO"; then :
5435 ac_cv_sys_largefile_CC=' -n32'; break
5436fi
5437rm -f core conftest.err conftest.$ac_objext
5438 break
5439 done
5440 CC=$ac_save_CC
5441 rm -f conftest.$ac_ext
5442 fi
5443fi
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5445$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5446 if test "$ac_cv_sys_largefile_CC" != no; then
5447 CC=$CC$ac_cv_sys_largefile_CC
5448 fi
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5451$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 5452if ${ac_cv_sys_file_offset_bits+:} false; then :
dcbc9df9
UB
5453 $as_echo_n "(cached) " >&6
5454else
5455 while :; do
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h. */
5458#include <sys/types.h>
5459 /* Check that off_t can represent 2**63 - 1 correctly.
5460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5461 since some C++ compilers masquerading as C compilers
5462 incorrectly reject 9223372036854775807. */
5463#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5465 && LARGE_OFF_T % 2147483647 == 1)
5466 ? 1 : -1];
5467int
5468main ()
5469{
5470
5471 ;
5472 return 0;
5473}
5474_ACEOF
5475if ac_fn_c_try_compile "$LINENO"; then :
5476 ac_cv_sys_file_offset_bits=no; break
5477fi
5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h. */
5481#define _FILE_OFFSET_BITS 64
5482#include <sys/types.h>
5483 /* Check that off_t can represent 2**63 - 1 correctly.
5484 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5485 since some C++ compilers masquerading as C compilers
5486 incorrectly reject 9223372036854775807. */
5487#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5488 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5489 && LARGE_OFF_T % 2147483647 == 1)
5490 ? 1 : -1];
5491int
5492main ()
5493{
5494
5495 ;
5496 return 0;
5497}
5498_ACEOF
5499if ac_fn_c_try_compile "$LINENO"; then :
5500 ac_cv_sys_file_offset_bits=64; break
5501fi
5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_cv_sys_file_offset_bits=unknown
5504 break
5505done
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5508$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5509case $ac_cv_sys_file_offset_bits in #(
5510 no | unknown) ;;
5511 *)
5512cat >>confdefs.h <<_ACEOF
5513#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5514_ACEOF
5515;;
5516esac
5517rm -rf conftest*
5518 if test $ac_cv_sys_file_offset_bits = unknown; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5520$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 5521if ${ac_cv_sys_large_files+:} false; then :
dcbc9df9
UB
5522 $as_echo_n "(cached) " >&6
5523else
5524 while :; do
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h. */
5527#include <sys/types.h>
5528 /* Check that off_t can represent 2**63 - 1 correctly.
5529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5530 since some C++ compilers masquerading as C compilers
5531 incorrectly reject 9223372036854775807. */
5532#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5534 && LARGE_OFF_T % 2147483647 == 1)
5535 ? 1 : -1];
5536int
5537main ()
5538{
5539
5540 ;
5541 return 0;
5542}
5543_ACEOF
5544if ac_fn_c_try_compile "$LINENO"; then :
5545 ac_cv_sys_large_files=no; break
5546fi
5547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h. */
5550#define _LARGE_FILES 1
5551#include <sys/types.h>
5552 /* Check that off_t can represent 2**63 - 1 correctly.
5553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5554 since some C++ compilers masquerading as C compilers
5555 incorrectly reject 9223372036854775807. */
5556#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5558 && LARGE_OFF_T % 2147483647 == 1)
5559 ? 1 : -1];
5560int
5561main ()
5562{
5563
5564 ;
5565 return 0;
5566}
5567_ACEOF
5568if ac_fn_c_try_compile "$LINENO"; then :
5569 ac_cv_sys_large_files=1; break
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 ac_cv_sys_large_files=unknown
5573 break
5574done
5575fi
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5577$as_echo "$ac_cv_sys_large_files" >&6; }
5578case $ac_cv_sys_large_files in #(
5579 no | unknown) ;;
5580 *)
5581cat >>confdefs.h <<_ACEOF
5582#define _LARGE_FILES $ac_cv_sys_large_files
5583_ACEOF
5584;;
5585esac
5586rm -rf conftest*
5587 fi
22e05272
JM
5588
5589
dcbc9df9
UB
5590fi
5591
5592ac_ext=c
5593ac_cpp='$CPP $CPPFLAGS'
5594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5596ac_compiler_gnu=$ac_cv_c_compiler_gnu
5597
5598ac_lto_plugin_warn_cflags=
5599save_CFLAGS="$CFLAGS"
5600for real_option in -Wall; do
5601 # Do the check with the no- prefix removed since gcc silently
5602 # accepts any -Wno-* option on purpose
5603 case $real_option in
5604 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5605 *) option=$real_option ;;
5606 esac
5607 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5610$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 5611if eval \${$as_acx_Woption+:} false; then :
dcbc9df9
UB
5612 $as_echo_n "(cached) " >&6
5613else
5614 CFLAGS="$option"
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h. */
5617
5618int
5619main ()
5620{
5621
5622 ;
5623 return 0;
5624}
5625_ACEOF
5626if ac_fn_c_try_compile "$LINENO"; then :
5627 eval "$as_acx_Woption=yes"
5628else
5629 eval "$as_acx_Woption=no"
5630fi
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632
5633fi
5634eval ac_res=\$$as_acx_Woption
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5636$as_echo "$ac_res" >&6; }
5637 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5638 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5639fi
5640 done
5641CFLAGS="$save_CFLAGS"
5642ac_ext=c
5643ac_cpp='$CPP $CPPFLAGS'
5644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647
5648
5649
5650# Check whether -static-libgcc is supported.
5651saved_LDFLAGS="$LDFLAGS"
5652LDFLAGS="$LDFLAGS -static-libgcc"
5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5654$as_echo_n "checking for -static-libgcc... " >&6; }
5655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h. */
5657
5658 int main() {}
5659_ACEOF
5660if ac_fn_c_try_link "$LINENO"; then :
5661 have_static_libgcc=yes
5662else
5663 have_static_libgcc=no
5664fi
5665rm -f core conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5668$as_echo "$have_static_libgcc" >&6; };
5669LDFLAGS="$saved_LDFLAGS"
5670# Need -Wc to get it through libtool.
5671if test "x$have_static_libgcc" = xyes; then
5672 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5673fi
5674
33ebb0df
MP
5675# Enable --enable-host-bind-now
5676# Check whether --enable-host-bind-now was given.
5677if test "${enable_host_bind_now+set}" = set; then :
5678 enableval=$enable_host_bind_now;
5679fi
5680
5681
5682
5683if test x$enable_host_bind_now = xyes; then
5684 ac_lto_plugin_ldflags="$ac_lto_plugin_ldflags -Wl,-z,now"
5685fi
5686
5687
dcbc9df9 5688
8fc8bf80
L
5689 # Check whether --enable-cet was given.
5690if test "${enable_cet+set}" = set; then :
5691 enableval=$enable_cet;
5692 case "$enableval" in
5693 yes|no|auto) ;;
5694 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5695 esac
5696
5697else
5698 enable_cet=auto
5699fi
5700
5701
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5703$as_echo_n "checking for CET support... " >&6; }
5704
5705case "$host" in
5706 i[34567]86-*-linux* | x86_64-*-linux*)
5707 may_have_cet=yes
9051b548 5708 cet_save_CFLAGS="$CFLAGS"
8fc8bf80
L
5709 CFLAGS="$CFLAGS -fcf-protection"
5710 case "$enable_cet" in
5711 auto)
5712 # Check if target supports multi-byte NOPs
4712bde3 5713 # and if compiler and assembler support CET.
8fc8bf80
L
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715/* end confdefs.h. */
5716
5717int
5718main ()
5719{
5720
5721#if !defined(__SSE2__)
5722#error target does not support multi-byte NOPs
5723#else
5724asm ("setssbsy");
5725#endif
5726
5727 ;
5728 return 0;
5729}
5730_ACEOF
5731if ac_fn_c_try_compile "$LINENO"; then :
5732 enable_cet=yes
5733else
5734 enable_cet=no
5735fi
5736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 ;;
5738 yes)
4712bde3 5739 # Check if compiler and assembler support CET.
8fc8bf80
L
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h. */
5742
5743int
5744main ()
5745{
5746asm ("setssbsy");
5747 ;
5748 return 0;
5749}
5750_ACEOF
5751if ac_fn_c_try_compile "$LINENO"; then :
4712bde3 5752 support_cet=yes
8fc8bf80 5753else
4712bde3 5754 support_cet=no
8fc8bf80
L
5755fi
5756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712bde3
L
5757 if test $support_cet = "no"; then
5758 if test x$enable_bootstrap != xno \
5759 && test -z "${with_build_subdir}" \
5760 && (test ! -f ../stage_current \
5761 || test `cat ../stage_current` != "stage1"); then
5762 # Require CET support only for the final GCC build.
5763 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
5764 else
5765 # Don't enable CET without CET support for non-bootstrap
5766 # build, in stage1 nor for build support.
5767 enable_cet=no
5768 fi
5769 fi
8fc8bf80
L
5770 ;;
5771 esac
9051b548 5772 CFLAGS="$cet_save_CFLAGS"
8fc8bf80
L
5773 ;;
5774 *)
5775 may_have_cet=no
5776 enable_cet=no
5777 ;;
5778esac
5779
9051b548 5780cet_save_CFLAGS="$CFLAGS"
eedc73a2 5781CFLAGS="$CFLAGS -fcf-protection=none"
9051b548 5782cet_save_LDFLAGS="$LDFLAGS"
eedc73a2
L
5783LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
5784if test x$may_have_cet = xyes; then
5785 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h. */
5788
5789int
5790main ()
5791{
5792return 0;
5793 ;
5794 return 0;
5795}
5796_ACEOF
5797if ac_fn_c_try_link "$LINENO"; then :
5798 may_have_cet=yes
5799else
5800 may_have_cet=no
5801fi
5802rm -f core conftest.err conftest.$ac_objext \
5803 conftest$ac_exeext conftest.$ac_ext
5804fi
5805
8fc8bf80 5806if test x$may_have_cet = xyes; then
d17cdc17
L
5807 if test x$cross_compiling = xno; then
5808 if test "$cross_compiling" = yes; then :
8fc8bf80
L
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811as_fn_error $? "cannot run test program while cross compiling
5812See \`config.log' for more details" "$LINENO" 5; }
5813else
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815/* end confdefs.h. */
5816
3f570621
L
5817int
5818main ()
5819{
5820 asm ("endbr32");
5821 return 0;
5822}
5823
5824_ACEOF
5825if ac_fn_c_try_run "$LINENO"; then :
5826 have_multi_byte_nop=yes
5827else
5828 have_multi_byte_nop=no
5829fi
5830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5831 conftest.$ac_objext conftest.beam conftest.$ac_ext
5832fi
5833
5834 have_cet=no
5835 if test x$have_multi_byte_nop = xyes; then
5836 if test "$cross_compiling" = yes; then :
5837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5839as_fn_error $? "cannot run test program while cross compiling
5840See \`config.log' for more details" "$LINENO" 5; }
5841else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h. */
5844
8fc8bf80
L
5845static void
5846foo (void)
5847{
5848}
5849
5850static void
5851__attribute__ ((noinline, noclone))
5852xxx (void (*f) (void))
5853{
5854 f ();
5855}
5856
5857static void
5858__attribute__ ((noinline, noclone))
5859bar (void)
5860{
5861 xxx (foo);
5862}
5863
5864int
5865main ()
5866{
5867 bar ();
5868 return 0;
5869}
5870
5871_ACEOF
5872if ac_fn_c_try_run "$LINENO"; then :
5873 have_cet=no
5874else
5875 have_cet=yes
5876fi
5877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5878 conftest.$ac_objext conftest.beam conftest.$ac_ext
5879fi
5880
3f570621 5881 fi
d17cdc17
L
5882 if test x$enable_cet = xno -a x$have_cet = xyes; then
5883 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5884 fi
8fc8bf80 5885 fi
d17cdc17
L
5886else
5887 # Enable CET in cross compiler if possible so that it will run on both
5888 # CET and non-CET hosts.
5889 have_cet=yes
8fc8bf80
L
5890fi
5891if test x$enable_cet = xyes; then
5892 CET_HOST_FLAGS="-fcf-protection"
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5894$as_echo "yes" >&6; }
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
9051b548
L
5899CFLAGS="$cet_save_CFLAGS"
5900LDFLAGS="$cet_save_LDFLAGS"
8fc8bf80
L
5901
5902
5903
dcbc9df9
UB
5904if test x"$host_subdir" = x.; then
5905 gcc_build_dir=../gcc
5906else
5907 gcc_build_dir=../../$host_subdir/gcc
5908fi
5909
5910
5911# Used for constructing correct paths for offload compilers.
5912accel_dir_suffix=
5913real_target_noncanonical=${target_noncanonical}
5914if test x"$enable_as_accelerator_for" != x; then
5915 accel_dir_suffix=/accel/${target_noncanonical}
5916 real_target_noncanonical=${enable_as_accelerator_for}
5917fi
5918
5919
5920
3c36aa6b
JJ
5921# Determine what GCC version number to use in filesystem paths.
5922
5923 get_gcc_base_ver="cat"
5924
5925# Check whether --with-gcc-major-version-only was given.
5926if test "${with_gcc_major_version_only+set}" = set; then :
5927 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 5928 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
5929 fi
5930
5931fi
5932
5933
5934
5935
6ee58926
JJ
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5937$as_echo_n "checking whether symbol versioning is supported... " >&6; }
5938lto_plugin_use_symver=no
5939if test x$gcc_no_link = xyes; then
5940 # If we cannot link, we cannot build shared libraries, so do not use
5941 # symbol versioning.
5942 lto_plugin_use_symver=no
5943else
5944 save_LDFLAGS="$LDFLAGS"
5945 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5946 cat > conftest.map <<EOF
5947{
5948 global: *foo*; bar; local: *;
5949};
5950EOF
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h. */
5953int foo;
5954int
5955main ()
5956{
5957
5958 ;
5959 return 0;
5960}
5961_ACEOF
5962if ac_fn_c_try_link "$LINENO"; then :
5963 lto_plugin_use_symver=gnu
5964else
5965 lto_plugin_use_symver=no
5966fi
5967rm -f core conftest.err conftest.$ac_objext \
5968 conftest$ac_exeext conftest.$ac_ext
5969 if test x$lto_plugin_use_symver = xno; then
5970 case "$target_os" in
5971 solaris2*)
5972 LDFLAGS="$save_LDFLAGS"
5973 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5974 # Sun ld cannot handle wildcards and treats all entries as undefined.
5975 cat > conftest.map <<EOF
5976{
5977 global: foo; local: *;
5978};
5979EOF
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981/* end confdefs.h. */
5982int foo;
5983int
5984main ()
5985{
5986
5987 ;
5988 return 0;
5989}
5990_ACEOF
5991if ac_fn_c_try_link "$LINENO"; then :
5992 lto_plugin_use_symver=sun
5993else
5994 lto_plugin_use_symver=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext \
5997 conftest$ac_exeext conftest.$ac_ext
5998 ;;
5999 esac
6000 fi
6001 LDFLAGS="$save_LDFLAGS"
6002fi
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lto_plugin_use_symver" >&5
6004$as_echo "$lto_plugin_use_symver" >&6; }
6005 if test "x$lto_plugin_use_symver" != xno; then
6006 LTO_PLUGIN_USE_SYMVER_TRUE=
6007 LTO_PLUGIN_USE_SYMVER_FALSE='#'
6008else
6009 LTO_PLUGIN_USE_SYMVER_TRUE='#'
6010 LTO_PLUGIN_USE_SYMVER_FALSE=
6011fi
6012
6013 if test "x$lto_plugin_use_symver" = xgnu; then
6014 LTO_PLUGIN_USE_SYMVER_GNU_TRUE=
6015 LTO_PLUGIN_USE_SYMVER_GNU_FALSE='#'
6016else
6017 LTO_PLUGIN_USE_SYMVER_GNU_TRUE='#'
6018 LTO_PLUGIN_USE_SYMVER_GNU_FALSE=
6019fi
6020
6021 if test "x$lto_plugin_use_symver" = xsun; then
6022 LTO_PLUGIN_USE_SYMVER_SUN_TRUE=
6023 LTO_PLUGIN_USE_SYMVER_SUN_FALSE='#'
6024else
6025 LTO_PLUGIN_USE_SYMVER_SUN_TRUE='#'
6026 LTO_PLUGIN_USE_SYMVER_SUN_FALSE=
6027fi
6028
6029
2669cae0 6030# Check for thread headers.
d89fa97f 6031use_locking=no
29f40a80 6032ac_lto_plugin_extra_ldflags=
d89fa97f 6033
5d863720 6034case $host in
d89fa97f
ML
6035 riscv*)
6036 # do not use locking as pthread depends on libatomic
6037 ;;
6038 *-linux*)
6039 use_locking=yes
6040 ;;
6041esac
6042
6043if test x$use_locking = xyes; then
6044 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
2669cae0
ML
6045if test "x$ac_cv_header_pthread_h" = xyes; then :
6046
d89fa97f 6047$as_echo "#define HAVE_PTHREAD_LOCKING 1" >>confdefs.h
2669cae0
ML
6048
6049fi
6050
6051
29f40a80
ML
6052
6053 ac_lto_plugin_extra_ldflags="-pthread"
d89fa97f 6054fi
2669cae0 6055
29f40a80
ML
6056
6057
dcbc9df9
UB
6058case `pwd` in
6059 *\ * | *\ *)
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6061$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6062esac
6063
6064
6065
6066macro_version='2.2.7a'
6067macro_revision='1.3134'
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081ltmain="$ac_aux_dir/ltmain.sh"
6082
6083# Backslashify metacharacters that are still active within
6084# double-quoted strings.
6085sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6086
6087# Same as above, but do not quote variable references.
6088double_quote_subst='s/\(["`\\]\)/\\\1/g'
6089
6090# Sed substitution to delay expansion of an escaped shell variable in a
6091# double_quote_subst'ed string.
6092delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6093
6094# Sed substitution to delay expansion of an escaped single quote.
6095delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6096
6097# Sed substitution to avoid accidental globbing in evaled expressions
6098no_glob_subst='s/\*/\\\*/g'
6099
6100ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6101ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6102ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6103
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6105$as_echo_n "checking how to print strings... " >&6; }
6106# Test print first, because it will be a builtin if present.
6107if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6108 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6109 ECHO='print -r --'
6110elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6111 ECHO='printf %s\n'
6112else
6113 # Use this function as a fallback that always works.
6114 func_fallback_echo ()
6115 {
6116 eval 'cat <<_LTECHO_EOF
6117$1
6118_LTECHO_EOF'
6119 }
6120 ECHO='func_fallback_echo'
6121fi
6122
6123# func_echo_all arg...
6124# Invoke $ECHO with all args, space-separated.
6125func_echo_all ()
6126{
6127 $ECHO ""
6128}
6129
6130case "$ECHO" in
6131 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6132$as_echo "printf" >&6; } ;;
6133 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6134$as_echo "print -r" >&6; } ;;
6135 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6136$as_echo "cat" >&6; } ;;
6137esac
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6153$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 6154if ${ac_cv_path_SED+:} false; then :
dcbc9df9
UB
6155 $as_echo_n "(cached) " >&6
6156else
6157 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6158 for ac_i in 1 2 3 4 5 6 7; do
6159 ac_script="$ac_script$as_nl$ac_script"
6160 done
6161 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6162 { ac_script=; unset ac_script;}
6163 if test -z "$SED"; then
6164 ac_path_SED_found=false
6165 # Loop through the user's path and test for each of PROGNAME-LIST
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_prog in sed gsed; do
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6174 as_fn_executable_p "$ac_path_SED" || continue
dcbc9df9
UB
6175# Check for GNU ac_path_SED and select it if it is found.
6176 # Check for GNU $ac_path_SED
6177case `"$ac_path_SED" --version 2>&1` in
6178*GNU*)
6179 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6180*)
6181 ac_count=0
6182 $as_echo_n 0123456789 >"conftest.in"
6183 while :
6184 do
6185 cat "conftest.in" "conftest.in" >"conftest.tmp"
6186 mv "conftest.tmp" "conftest.in"
6187 cp "conftest.in" "conftest.nl"
6188 $as_echo '' >> "conftest.nl"
6189 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6191 as_fn_arith $ac_count + 1 && ac_count=$as_val
6192 if test $ac_count -gt ${ac_path_SED_max-0}; then
6193 # Best one so far, save it but keep looking for a better one
6194 ac_cv_path_SED="$ac_path_SED"
6195 ac_path_SED_max=$ac_count
6196 fi
6197 # 10*(2^10) chars as input seems more than enough
6198 test $ac_count -gt 10 && break
6199 done
6200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6201esac
6202
6203 $ac_path_SED_found && break 3
6204 done
6205 done
6206 done
6207IFS=$as_save_IFS
6208 if test -z "$ac_cv_path_SED"; then
22e05272 6209 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
dcbc9df9
UB
6210 fi
6211else
6212 ac_cv_path_SED=$SED
6213fi
6214
6215fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6217$as_echo "$ac_cv_path_SED" >&6; }
6218 SED="$ac_cv_path_SED"
6219 rm -f conftest.sed
6220
6221test -z "$SED" && SED=sed
6222Xsed="$SED -e 1s/^X//"
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6235$as_echo_n "checking for fgrep... " >&6; }
22e05272 6236if ${ac_cv_path_FGREP+:} false; then :
dcbc9df9
UB
6237 $as_echo_n "(cached) " >&6
6238else
6239 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6240 then ac_cv_path_FGREP="$GREP -F"
6241 else
6242 if test -z "$FGREP"; then
6243 ac_path_FGREP_found=false
6244 # Loop through the user's path and test for each of PROGNAME-LIST
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_prog in fgrep; do
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 6253 as_fn_executable_p "$ac_path_FGREP" || continue
dcbc9df9
UB
6254# Check for GNU ac_path_FGREP and select it if it is found.
6255 # Check for GNU $ac_path_FGREP
6256case `"$ac_path_FGREP" --version 2>&1` in
6257*GNU*)
6258 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6259*)
6260 ac_count=0
6261 $as_echo_n 0123456789 >"conftest.in"
6262 while :
6263 do
6264 cat "conftest.in" "conftest.in" >"conftest.tmp"
6265 mv "conftest.tmp" "conftest.in"
6266 cp "conftest.in" "conftest.nl"
6267 $as_echo 'FGREP' >> "conftest.nl"
6268 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6270 as_fn_arith $ac_count + 1 && ac_count=$as_val
6271 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6272 # Best one so far, save it but keep looking for a better one
6273 ac_cv_path_FGREP="$ac_path_FGREP"
6274 ac_path_FGREP_max=$ac_count
6275 fi
6276 # 10*(2^10) chars as input seems more than enough
6277 test $ac_count -gt 10 && break
6278 done
6279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6280esac
6281
6282 $ac_path_FGREP_found && break 3
6283 done
6284 done
6285 done
6286IFS=$as_save_IFS
6287 if test -z "$ac_cv_path_FGREP"; then
22e05272 6288 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
dcbc9df9
UB
6289 fi
6290else
6291 ac_cv_path_FGREP=$FGREP
6292fi
6293
6294 fi
6295fi
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6297$as_echo "$ac_cv_path_FGREP" >&6; }
6298 FGREP="$ac_cv_path_FGREP"
6299
6300
6301test -z "$GREP" && GREP=grep
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321# Check whether --with-gnu-ld was given.
6322if test "${with_gnu_ld+set}" = set; then :
6323 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6324else
6325 with_gnu_ld=no
6326fi
6327
6328ac_prog=ld
6329if test "$GCC" = yes; then
6330 # Check if gcc -print-prog-name=ld gives a path.
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6332$as_echo_n "checking for ld used by $CC... " >&6; }
6333 case $host in
6334 *-*-mingw*)
6335 # gcc leaves a trailing carriage return which upsets mingw
6336 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6337 *)
6338 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6339 esac
6340 case $ac_prog in
6341 # Accept absolute paths.
6342 [\\/]* | ?:[\\/]*)
6343 re_direlt='/[^/][^/]*/\.\./'
6344 # Canonicalize the pathname of ld
6345 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6346 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6347 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6348 done
6349 test -z "$LD" && LD="$ac_prog"
6350 ;;
6351 "")
6352 # If it fails, then pretend we aren't using GCC.
6353 ac_prog=ld
6354 ;;
6355 *)
6356 # If it is relative, then search for the first ld in PATH.
6357 with_gnu_ld=unknown
6358 ;;
6359 esac
6360elif test "$with_gnu_ld" = yes; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6362$as_echo_n "checking for GNU ld... " >&6; }
6363else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6365$as_echo_n "checking for non-GNU ld... " >&6; }
6366fi
22e05272 6367if ${lt_cv_path_LD+:} false; then :
dcbc9df9
UB
6368 $as_echo_n "(cached) " >&6
6369else
6370 if test -z "$LD"; then
6371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6372 for ac_dir in $PATH; do
6373 IFS="$lt_save_ifs"
6374 test -z "$ac_dir" && ac_dir=.
6375 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6376 lt_cv_path_LD="$ac_dir/$ac_prog"
6377 # Check to see if the program is GNU ld. I'd rather use --version,
6378 # but apparently some variants of GNU ld only accept -v.
6379 # Break only if it was the GNU/non-GNU ld that we prefer.
6380 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6381 *GNU* | *'with BFD'*)
6382 test "$with_gnu_ld" != no && break
6383 ;;
6384 *)
6385 test "$with_gnu_ld" != yes && break
6386 ;;
6387 esac
6388 fi
6389 done
6390 IFS="$lt_save_ifs"
6391else
6392 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6393fi
6394fi
6395
6396LD="$lt_cv_path_LD"
6397if test -n "$LD"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6399$as_echo "$LD" >&6; }
6400else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402$as_echo "no" >&6; }
6403fi
22e05272 6404test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
dcbc9df9
UB
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6406$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 6407if ${lt_cv_prog_gnu_ld+:} false; then :
dcbc9df9
UB
6408 $as_echo_n "(cached) " >&6
6409else
6410 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6411case `$LD -v 2>&1 </dev/null` in
6412*GNU* | *'with BFD'*)
6413 lt_cv_prog_gnu_ld=yes
6414 ;;
6415*)
6416 lt_cv_prog_gnu_ld=no
6417 ;;
6418esac
6419fi
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6421$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6422with_gnu_ld=$lt_cv_prog_gnu_ld
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6433$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 6434if ${lt_cv_path_NM+:} false; then :
dcbc9df9
UB
6435 $as_echo_n "(cached) " >&6
6436else
6437 if test -n "$NM"; then
6438 # Let the user override the test.
6439 lt_cv_path_NM="$NM"
6440else
6441 lt_nm_to_check="${ac_tool_prefix}nm"
6442 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6443 lt_nm_to_check="$lt_nm_to_check nm"
6444 fi
6445 for lt_tmp_nm in $lt_nm_to_check; do
6446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6447 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6448 IFS="$lt_save_ifs"
6449 test -z "$ac_dir" && ac_dir=.
6450 tmp_nm="$ac_dir/$lt_tmp_nm"
6451 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6452 # Check to see if the nm accepts a BSD-compat flag.
6453 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6454 # nm: unknown option "B" ignored
6455 # Tru64's nm complains that /dev/null is an invalid object file
6456 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6457 */dev/null* | *'Invalid file or object type'*)
6458 lt_cv_path_NM="$tmp_nm -B"
6459 break
6460 ;;
6461 *)
6462 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6463 */dev/null*)
6464 lt_cv_path_NM="$tmp_nm -p"
6465 break
6466 ;;
6467 *)
6468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6469 continue # so that we can try to find one that supports BSD flags
6470 ;;
6471 esac
6472 ;;
6473 esac
6474 fi
6475 done
6476 IFS="$lt_save_ifs"
6477 done
6478 : ${lt_cv_path_NM=no}
6479fi
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6482$as_echo "$lt_cv_path_NM" >&6; }
6483if test "$lt_cv_path_NM" != "no"; then
6484 NM="$lt_cv_path_NM"
6485else
6486 # Didn't find any BSD compatible name lister, look for dumpbin.
6487 if test -n "$DUMPBIN"; then :
6488 # Let the user override the test.
6489 else
6490 if test -n "$ac_tool_prefix"; then
6491 for ac_prog in dumpbin "link -dump"
6492 do
6493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6494set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6497if ${ac_cv_prog_DUMPBIN+:} false; then :
dcbc9df9
UB
6498 $as_echo_n "(cached) " >&6
6499else
6500 if test -n "$DUMPBIN"; then
6501 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
6510 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514done
6515 done
6516IFS=$as_save_IFS
6517
6518fi
6519fi
6520DUMPBIN=$ac_cv_prog_DUMPBIN
6521if test -n "$DUMPBIN"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6523$as_echo "$DUMPBIN" >&6; }
6524else
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526$as_echo "no" >&6; }
6527fi
6528
6529
6530 test -n "$DUMPBIN" && break
6531 done
6532fi
6533if test -z "$DUMPBIN"; then
6534 ac_ct_DUMPBIN=$DUMPBIN
6535 for ac_prog in dumpbin "link -dump"
6536do
6537 # Extract the first word of "$ac_prog", so it can be a program name with args.
6538set dummy $ac_prog; ac_word=$2
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6541if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
dcbc9df9
UB
6542 $as_echo_n "(cached) " >&6
6543else
6544 if test -n "$ac_ct_DUMPBIN"; then
6545 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
6554 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6557 fi
6558done
6559 done
6560IFS=$as_save_IFS
6561
6562fi
6563fi
6564ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6565if test -n "$ac_ct_DUMPBIN"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6567$as_echo "$ac_ct_DUMPBIN" >&6; }
6568else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573
6574 test -n "$ac_ct_DUMPBIN" && break
6575done
6576
6577 if test "x$ac_ct_DUMPBIN" = x; then
6578 DUMPBIN=":"
6579 else
6580 case $cross_compiling:$ac_tool_warned in
6581yes:)
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584ac_tool_warned=yes ;;
6585esac
6586 DUMPBIN=$ac_ct_DUMPBIN
6587 fi
6588fi
6589
6590 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6591 *COFF*)
6592 DUMPBIN="$DUMPBIN -symbols"
6593 ;;
6594 *)
6595 DUMPBIN=:
6596 ;;
6597 esac
6598 fi
6599
6600 if test "$DUMPBIN" != ":"; then
6601 NM="$DUMPBIN"
6602 fi
6603fi
6604test -z "$NM" && NM=nm
6605
6606
6607
6608
6609
6610
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6612$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 6613if ${lt_cv_nm_interface+:} false; then :
dcbc9df9
UB
6614 $as_echo_n "(cached) " >&6
6615else
6616 lt_cv_nm_interface="BSD nm"
6617 echo "int some_variable = 0;" > conftest.$ac_ext
6618 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6619 (eval "$ac_compile" 2>conftest.err)
6620 cat conftest.err >&5
6621 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6622 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6623 cat conftest.err >&5
6624 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6625 cat conftest.out >&5
6626 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6627 lt_cv_nm_interface="MS dumpbin"
6628 fi
6629 rm -f conftest*
6630fi
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6632$as_echo "$lt_cv_nm_interface" >&6; }
6633
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6635$as_echo_n "checking whether ln -s works... " >&6; }
6636LN_S=$as_ln_s
6637if test "$LN_S" = "ln -s"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6639$as_echo "yes" >&6; }
6640else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6642$as_echo "no, using $LN_S" >&6; }
6643fi
6644
6645# find the maximum length of command line arguments
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6647$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6648if ${lt_cv_sys_max_cmd_len+:} false; then :
dcbc9df9
UB
6649 $as_echo_n "(cached) " >&6
6650else
6651 i=0
6652 teststring="ABCD"
6653
6654 case $build_os in
6655 msdosdjgpp*)
6656 # On DJGPP, this test can blow up pretty badly due to problems in libc
6657 # (any single argument exceeding 2000 bytes causes a buffer overrun
6658 # during glob expansion). Even if it were fixed, the result of this
6659 # check would be larger than it should be.
6660 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6661 ;;
6662
6663 gnu*)
6664 # Under GNU Hurd, this test is not required because there is
6665 # no limit to the length of command line arguments.
6666 # Libtool will interpret -1 as no limit whatsoever
6667 lt_cv_sys_max_cmd_len=-1;
6668 ;;
6669
6670 cygwin* | mingw* | cegcc*)
6671 # On Win9x/ME, this test blows up -- it succeeds, but takes
6672 # about 5 minutes as the teststring grows exponentially.
6673 # Worse, since 9x/ME are not pre-emptively multitasking,
6674 # you end up with a "frozen" computer, even though with patience
6675 # the test eventually succeeds (with a max line length of 256k).
6676 # Instead, let's just punt: use the minimum linelength reported by
6677 # all of the supported platforms: 8192 (on NT/2K/XP).
6678 lt_cv_sys_max_cmd_len=8192;
6679 ;;
6680
6681 mint*)
6682 # On MiNT this can take a long time and run out of memory.
6683 lt_cv_sys_max_cmd_len=8192;
6684 ;;
6685
6686 amigaos*)
6687 # On AmigaOS with pdksh, this test takes hours, literally.
6688 # So we just punt and use a minimum line length of 8192.
6689 lt_cv_sys_max_cmd_len=8192;
6690 ;;
6691
6692 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6693 # This has been around since 386BSD, at least. Likely further.
6694 if test -x /sbin/sysctl; then
6695 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6696 elif test -x /usr/sbin/sysctl; then
6697 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6698 else
6699 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6700 fi
6701 # And add a safety zone
6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6704 ;;
6705
6706 interix*)
6707 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6708 lt_cv_sys_max_cmd_len=196608
6709 ;;
6710
6711 osf*)
6712 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6713 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6714 # nice to cause kernel panics so lets avoid the loop below.
6715 # First set a reasonable default.
6716 lt_cv_sys_max_cmd_len=16384
6717 #
6718 if test -x /sbin/sysconfig; then
6719 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6720 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6721 esac
6722 fi
6723 ;;
6724 sco3.2v5*)
6725 lt_cv_sys_max_cmd_len=102400
6726 ;;
6727 sysv5* | sco5v6* | sysv4.2uw2*)
6728 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6729 if test -n "$kargmax"; then
6730 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6731 else
6732 lt_cv_sys_max_cmd_len=32768
6733 fi
6734 ;;
6735 *)
6736 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6737 if test -n "$lt_cv_sys_max_cmd_len"; then
6738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6740 else
6741 # Make teststring a little bigger before we do anything with it.
6742 # a 1K string should be a reasonable start.
6743 for i in 1 2 3 4 5 6 7 8 ; do
6744 teststring=$teststring$teststring
6745 done
6746 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6747 # If test is not a shell built-in, we'll probably end up computing a
6748 # maximum length that is only half of the actual maximum length, but
6749 # we can't tell.
6750 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6751 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6752 test $i != 17 # 1/2 MB should be enough
6753 do
6754 i=`expr $i + 1`
6755 teststring=$teststring$teststring
6756 done
6757 # Only check the string length outside the loop.
6758 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6759 teststring=
6760 # Add a significant safety factor because C++ compilers can tack on
6761 # massive amounts of additional arguments before passing them to the
6762 # linker. It appears as though 1/2 is a usable value.
6763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6764 fi
6765 ;;
d7f09764
DN
6766 esac
6767
6768fi
6769
6770if test -n $lt_cv_sys_max_cmd_len ; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6772$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6773else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6775$as_echo "none" >&6; }
6776fi
6777max_cmd_len=$lt_cv_sys_max_cmd_len
6778
6779
6780
6781
6782
6783
6784: ${CP="cp -f"}
6785: ${MV="mv -f"}
6786: ${RM="rm -f"}
6787
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6789$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6790# Try some XSI features
6791xsi_shell=no
6792( _lt_dummy="a/b/c"
6793 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6794 = c,a/b,, \
6795 && eval 'test $(( 1 + 1 )) -eq 2 \
6796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6797 && xsi_shell=yes
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6799$as_echo "$xsi_shell" >&6; }
6800
6801
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6803$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6804lt_shell_append=no
6805( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6806 >/dev/null 2>&1 \
6807 && lt_shell_append=yes
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6809$as_echo "$lt_shell_append" >&6; }
6810
6811
6812if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6813 lt_unset=unset
6814else
6815 lt_unset=false
6816fi
6817
6818
6819
6820
6821
6822# test EBCDIC or ASCII
6823case `echo X|tr X '\101'` in
6824 A) # ASCII based system
6825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6826 lt_SP2NL='tr \040 \012'
6827 lt_NL2SP='tr \015\012 \040\040'
6828 ;;
6829 *) # EBCDIC based system
6830 lt_SP2NL='tr \100 \n'
6831 lt_NL2SP='tr \r\n \100\100'
6832 ;;
6833esac
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6844$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6845if ${lt_cv_ld_reload_flag+:} false; then :
d7f09764
DN
6846 $as_echo_n "(cached) " >&6
6847else
6848 lt_cv_ld_reload_flag='-r'
6849fi
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6851$as_echo "$lt_cv_ld_reload_flag" >&6; }
6852reload_flag=$lt_cv_ld_reload_flag
6853case $reload_flag in
6854"" | " "*) ;;
6855*) reload_flag=" $reload_flag" ;;
6856esac
6857reload_cmds='$LD$reload_flag -o $output$reload_objs'
6858case $host_os in
6859 darwin*)
6860 if test "$GCC" = yes; then
6861 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6862 else
6863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6864 fi
6865 ;;
6866esac
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876if test -n "$ac_tool_prefix"; then
6877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6878set dummy ${ac_tool_prefix}objdump; ac_word=$2
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6881if ${ac_cv_prog_OBJDUMP+:} false; then :
d7f09764
DN
6882 $as_echo_n "(cached) " >&6
6883else
6884 if test -n "$OBJDUMP"; then
6885 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
6894 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898done
6899 done
6900IFS=$as_save_IFS
6901
6902fi
6903fi
6904OBJDUMP=$ac_cv_prog_OBJDUMP
6905if test -n "$OBJDUMP"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6907$as_echo "$OBJDUMP" >&6; }
6908else
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910$as_echo "no" >&6; }
6911fi
6912
6913
6914fi
6915if test -z "$ac_cv_prog_OBJDUMP"; then
6916 ac_ct_OBJDUMP=$OBJDUMP
6917 # Extract the first word of "objdump", so it can be a program name with args.
6918set dummy objdump; ac_word=$2
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6921if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
d7f09764
DN
6922 $as_echo_n "(cached) " >&6
6923else
6924 if test -n "$ac_ct_OBJDUMP"; then
6925 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6926else
6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH
6929do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
6934 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938done
6939 done
6940IFS=$as_save_IFS
6941
6942fi
6943fi
6944ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6945if test -n "$ac_ct_OBJDUMP"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6947$as_echo "$ac_ct_OBJDUMP" >&6; }
6948else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950$as_echo "no" >&6; }
6951fi
6952
6953 if test "x$ac_ct_OBJDUMP" = x; then
6954 OBJDUMP="false"
6955 else
6956 case $cross_compiling:$ac_tool_warned in
6957yes:)
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960ac_tool_warned=yes ;;
6961esac
6962 OBJDUMP=$ac_ct_OBJDUMP
6963 fi
6964else
6965 OBJDUMP="$ac_cv_prog_OBJDUMP"
6966fi
6967
6968test -z "$OBJDUMP" && OBJDUMP=objdump
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6979$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6980if ${lt_cv_deplibs_check_method+:} false; then :
d7f09764
DN
6981 $as_echo_n "(cached) " >&6
6982else
6983 lt_cv_file_magic_cmd='$MAGIC_CMD'
6984lt_cv_file_magic_test_file=
6985lt_cv_deplibs_check_method='unknown'
6986# Need to set the preceding variable on all platforms that support
6987# interlibrary dependencies.
6988# 'none' -- dependencies not supported.
6989# `unknown' -- same as none, but documents that we really don't know.
6990# 'pass_all' -- all dependencies passed with no checks.
6991# 'test_compile' -- check by making test program.
6992# 'file_magic [[regex]]' -- check by looking for files in library path
6993# which responds to the $file_magic_cmd with a given extended regex.
6994# If you have `file' or equivalent on your system and you're not sure
6995# whether `pass_all' will *always* work, you probably want this one.
6996
6997case $host_os in
6998aix[4-9]*)
6999 lt_cv_deplibs_check_method=pass_all
7000 ;;
7001
7002beos*)
7003 lt_cv_deplibs_check_method=pass_all
7004 ;;
7005
7006bsdi[45]*)
7007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7008 lt_cv_file_magic_cmd='/usr/bin/file -L'
7009 lt_cv_file_magic_test_file=/shlib/libc.so
7010 ;;
7011
7012cygwin*)
7013 # func_win32_libid is a shell function defined in ltmain.sh
7014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7015 lt_cv_file_magic_cmd='func_win32_libid'
7016 ;;
7017
7018mingw* | pw32*)
7019 # Base MSYS/MinGW do not provide the 'file' command needed by
7020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7021 # unless we find 'file', for example because we are cross-compiling.
52327858
L
7022 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7023 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7f09764
DN
7024 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7025 lt_cv_file_magic_cmd='func_win32_libid'
7026 else
7027 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7028 lt_cv_file_magic_cmd='$OBJDUMP -f'
7029 fi
7030 ;;
7031
52327858 7032cegcc*)
d7f09764
DN
7033 # use the weaker test based on 'objdump'. See mingw*.
7034 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7035 lt_cv_file_magic_cmd='$OBJDUMP -f'
7036 ;;
7037
7038darwin* | rhapsody*)
7039 lt_cv_deplibs_check_method=pass_all
7040 ;;
7041
7042freebsd* | dragonfly*)
7043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7044 case $host_cpu in
7045 i*86 )
7046 # Not sure whether the presence of OpenBSD here was a mistake.
7047 # Let's accept both of them until this is cleared up.
7048 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7049 lt_cv_file_magic_cmd=/usr/bin/file
7050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7051 ;;
7052 esac
7053 else
7054 lt_cv_deplibs_check_method=pass_all
7055 fi
7056 ;;
7057
7058gnu*)
7059 lt_cv_deplibs_check_method=pass_all
7060 ;;
7061
52327858
L
7062haiku*)
7063 lt_cv_deplibs_check_method=pass_all
7064 ;;
7065
d7f09764
DN
7066hpux10.20* | hpux11*)
7067 lt_cv_file_magic_cmd=/usr/bin/file
7068 case $host_cpu in
7069 ia64*)
7070 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7071 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7072 ;;
7073 hppa*64*)
52327858 7074 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]'
d7f09764
DN
7075 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7076 ;;
7077 *)
52327858 7078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7f09764
DN
7079 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7080 ;;
7081 esac
7082 ;;
7083
7084interix[3-9]*)
7085 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7087 ;;
7088
7089irix5* | irix6* | nonstopux*)
7090 case $LD in
7091 *-32|*"-32 ") libmagic=32-bit;;
7092 *-n32|*"-n32 ") libmagic=N32;;
7093 *-64|*"-64 ") libmagic=64-bit;;
7094 *) libmagic=never-match;;
7095 esac
7096 lt_cv_deplibs_check_method=pass_all
7097 ;;
7098
7099# This must be Linux ELF.
e9085da5 7100linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
d7f09764
DN
7101 lt_cv_deplibs_check_method=pass_all
7102 ;;
7103
7104netbsd*)
7105 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7107 else
7108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7109 fi
7110 ;;
7111
7112newos6*)
7113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7114 lt_cv_file_magic_cmd=/usr/bin/file
7115 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7116 ;;
7117
7118*nto* | *qnx*)
7119 lt_cv_deplibs_check_method=pass_all
7120 ;;
7121
7122openbsd*)
7123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7125 else
7126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7127 fi
7128 ;;
7129
7130osf3* | osf4* | osf5*)
7131 lt_cv_deplibs_check_method=pass_all
7132 ;;
7133
7134rdos*)
7135 lt_cv_deplibs_check_method=pass_all
7136 ;;
7137
7138solaris*)
7139 lt_cv_deplibs_check_method=pass_all
7140 ;;
7141
7142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7143 lt_cv_deplibs_check_method=pass_all
7144 ;;
7145
7146sysv4 | sysv4.3*)
7147 case $host_vendor in
7148 motorola)
7149 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]'
7150 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7151 ;;
7152 ncr)
7153 lt_cv_deplibs_check_method=pass_all
7154 ;;
7155 sequent)
7156 lt_cv_file_magic_cmd='/bin/file'
7157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7158 ;;
7159 sni)
7160 lt_cv_file_magic_cmd='/bin/file'
7161 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7162 lt_cv_file_magic_test_file=/lib/libc.so
7163 ;;
7164 siemens)
7165 lt_cv_deplibs_check_method=pass_all
7166 ;;
7167 pc)
7168 lt_cv_deplibs_check_method=pass_all
7169 ;;
7170 esac
7171 ;;
7172
7173tpf*)
7174 lt_cv_deplibs_check_method=pass_all
7175 ;;
0ecd0f1c
OH
7176vxworks*)
7177 # Assume VxWorks cross toolchains are built on Linux, possibly
7178 # as canadian for Windows hosts.
7179 lt_cv_deplibs_check_method=pass_all
7180 ;;
d7f09764
DN
7181esac
7182
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7185$as_echo "$lt_cv_deplibs_check_method" >&6; }
7186file_magic_cmd=$lt_cv_file_magic_cmd
7187deplibs_check_method=$lt_cv_deplibs_check_method
7188test -z "$deplibs_check_method" && deplibs_check_method=unknown
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
126f707e
L
7201plugin_option=
7202plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7203for plugin in $plugin_names; do
7204 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7205 if test x$plugin_so = x$plugin; then
7206 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7207 fi
7208 if test x$plugin_so != x$plugin; then
7209 plugin_option="--plugin $plugin_so"
7210 break
7211 fi
7212done
7213
d7f09764
DN
7214if test -n "$ac_tool_prefix"; then
7215 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7216set dummy ${ac_tool_prefix}ar; ac_word=$2
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7219if ${ac_cv_prog_AR+:} false; then :
d7f09764
DN
7220 $as_echo_n "(cached) " >&6
7221else
7222 if test -n "$AR"; then
7223 ac_cv_prog_AR="$AR" # Let the user override the test.
7224else
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7232 ac_cv_prog_AR="${ac_tool_prefix}ar"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236done
7237 done
7238IFS=$as_save_IFS
7239
7240fi
7241fi
7242AR=$ac_cv_prog_AR
7243if test -n "$AR"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7245$as_echo "$AR" >&6; }
7246else
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248$as_echo "no" >&6; }
7249fi
7250
7251
7252fi
7253if test -z "$ac_cv_prog_AR"; then
7254 ac_ct_AR=$AR
7255 # Extract the first word of "ar", so it can be a program name with args.
7256set dummy ar; ac_word=$2
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7259if ${ac_cv_prog_ac_ct_AR+:} false; then :
d7f09764
DN
7260 $as_echo_n "(cached) " >&6
7261else
7262 if test -n "$ac_ct_AR"; then
7263 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7272 ac_cv_prog_ac_ct_AR="ar"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7275 fi
7276done
7277 done
7278IFS=$as_save_IFS
7279
7280fi
7281fi
7282ac_ct_AR=$ac_cv_prog_ac_ct_AR
7283if test -n "$ac_ct_AR"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7285$as_echo "$ac_ct_AR" >&6; }
7286else
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288$as_echo "no" >&6; }
7289fi
7290
7291 if test "x$ac_ct_AR" = x; then
7292 AR="false"
7293 else
7294 case $cross_compiling:$ac_tool_warned in
7295yes:)
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7298ac_tool_warned=yes ;;
7299esac
7300 AR=$ac_ct_AR
7301 fi
7302else
7303 AR="$ac_cv_prog_AR"
7304fi
7305
7306test -z "$AR" && AR=ar
126f707e
L
7307if test -n "$plugin_option"; then
7308 if $AR --help 2>&1 | grep -q "\--plugin"; then
9c7797a8
L
7309 touch conftest.c
7310 $AR $plugin_option rc conftest.a conftest.c
7311 if test "$?" != 0; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7313$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7314 else
7315 AR="$AR $plugin_option"
7316 fi
7317 rm -f conftest.*
126f707e
L
7318 fi
7319fi
d7f09764
DN
7320test -z "$AR_FLAGS" && AR_FLAGS=cru
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332if test -n "$ac_tool_prefix"; then
7333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7334set dummy ${ac_tool_prefix}strip; ac_word=$2
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7337if ${ac_cv_prog_STRIP+:} false; then :
d7f09764
DN
7338 $as_echo_n "(cached) " >&6
7339else
7340 if test -n "$STRIP"; then
7341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354done
7355 done
7356IFS=$as_save_IFS
7357
7358fi
7359fi
7360STRIP=$ac_cv_prog_STRIP
7361if test -n "$STRIP"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7363$as_echo "$STRIP" >&6; }
7364else
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366$as_echo "no" >&6; }
7367fi
7368
7369
7370fi
7371if test -z "$ac_cv_prog_STRIP"; then
7372 ac_ct_STRIP=$STRIP
7373 # Extract the first word of "strip", so it can be a program name with args.
7374set dummy strip; ac_word=$2
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7377if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d7f09764
DN
7378 $as_echo_n "(cached) " >&6
7379else
7380 if test -n "$ac_ct_STRIP"; then
7381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7382else
7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7390 ac_cv_prog_ac_ct_STRIP="strip"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394done
7395 done
7396IFS=$as_save_IFS
7397
7398fi
7399fi
7400ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7401if test -n "$ac_ct_STRIP"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7403$as_echo "$ac_ct_STRIP" >&6; }
7404else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406$as_echo "no" >&6; }
7407fi
7408
7409 if test "x$ac_ct_STRIP" = x; then
7410 STRIP=":"
7411 else
7412 case $cross_compiling:$ac_tool_warned in
7413yes:)
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416ac_tool_warned=yes ;;
7417esac
7418 STRIP=$ac_ct_STRIP
7419 fi
7420else
7421 STRIP="$ac_cv_prog_STRIP"
7422fi
7423
7424test -z "$STRIP" && STRIP=:
7425
7426
7427
7428
7429
7430
7431if test -n "$ac_tool_prefix"; then
7432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7433set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7436if ${ac_cv_prog_RANLIB+:} false; then :
d7f09764
DN
7437 $as_echo_n "(cached) " >&6
7438else
7439 if test -n "$RANLIB"; then
7440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7441else
7442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454 done
7455IFS=$as_save_IFS
7456
7457fi
7458fi
7459RANLIB=$ac_cv_prog_RANLIB
7460if test -n "$RANLIB"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7462$as_echo "$RANLIB" >&6; }
7463else
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465$as_echo "no" >&6; }
7466fi
7467
7468
7469fi
7470if test -z "$ac_cv_prog_RANLIB"; then
7471 ac_ct_RANLIB=$RANLIB
7472 # Extract the first word of "ranlib", so it can be a program name with args.
7473set dummy ranlib; ac_word=$2
7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7476if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d7f09764
DN
7477 $as_echo_n "(cached) " >&6
7478else
7479 if test -n "$ac_ct_RANLIB"; then
7480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7481else
7482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483for as_dir in $PATH
7484do
7485 IFS=$as_save_IFS
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
7489 ac_cv_prog_ac_ct_RANLIB="ranlib"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 break 2
7492 fi
7493done
7494 done
7495IFS=$as_save_IFS
7496
7497fi
7498fi
7499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7500if test -n "$ac_ct_RANLIB"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7502$as_echo "$ac_ct_RANLIB" >&6; }
7503else
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505$as_echo "no" >&6; }
7506fi
7507
7508 if test "x$ac_ct_RANLIB" = x; then
7509 RANLIB=":"
7510 else
7511 case $cross_compiling:$ac_tool_warned in
7512yes:)
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7515ac_tool_warned=yes ;;
7516esac
7517 RANLIB=$ac_ct_RANLIB
7518 fi
7519else
7520 RANLIB="$ac_cv_prog_RANLIB"
7521fi
7522
7523test -z "$RANLIB" && RANLIB=:
126f707e
L
7524if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7525 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7526 RANLIB="$RANLIB $plugin_option"
7527 fi
7528fi
d7f09764
DN
7529
7530
7531
7532
7533
7534
7535# Determine commands to create old-style static archives.
7536old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7537old_postinstall_cmds='chmod 644 $oldlib'
7538old_postuninstall_cmds=
7539
7540if test -n "$RANLIB"; then
7541 case $host_os in
7542 openbsd*)
7543 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7544 ;;
7545 *)
7546 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7547 ;;
7548 esac
7549 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7550fi
7551
52327858
L
7552case $host_os in
7553 darwin*)
7554 lock_old_archive_extraction=yes ;;
7555 *)
7556 lock_old_archive_extraction=no ;;
7557esac
7558
7559
7560
7561
7562
7563
d7f09764
DN
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597# If no C compiler was specified, use CC.
7598LTCC=${LTCC-"$CC"}
7599
7600# If no C compiler flags were specified, use CFLAGS.
7601LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7602
7603# Allow CC to be a program name with arguments.
7604compiler=$CC
7605
7606
7607# Check for command to grab the raw symbol name followed by C symbol from nm.
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7609$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 7610if ${lt_cv_sys_global_symbol_pipe+:} false; then :
d7f09764
DN
7611 $as_echo_n "(cached) " >&6
7612else
7613
7614# These are sane defaults that work on at least a few old systems.
7615# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7616
7617# Character class describing NM global symbol codes.
7618symcode='[BCDEGRST]'
7619
7620# Regexp to match symbols that can be accessed directly from C.
7621sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7622
7623# Define system-specific variables.
7624case $host_os in
7625aix*)
7626 symcode='[BCDT]'
7627 ;;
7628cygwin* | mingw* | pw32* | cegcc*)
7629 symcode='[ABCDGISTW]'
7630 ;;
7631hpux*)
7632 if test "$host_cpu" = ia64; then
7633 symcode='[ABCDEGRST]'
7634 fi
7635 ;;
7636irix* | nonstopux*)
7637 symcode='[BCDEGRST]'
7638 ;;
7639osf*)
7640 symcode='[BCDEGQRST]'
7641 ;;
7642solaris*)
7643 symcode='[BDRT]'
7644 ;;
7645sco3.2v5*)
7646 symcode='[DT]'
7647 ;;
7648sysv4.2uw2*)
7649 symcode='[DT]'
7650 ;;
7651sysv5* | sco5v6* | unixware* | OpenUNIX*)
7652 symcode='[ABDT]'
7653 ;;
7654sysv4)
7655 symcode='[DFNSTU]'
7656 ;;
7657esac
7658
7659# If we're using GNU nm, then use its standard symbol codes.
7660case `$NM -V 2>&1` in
7661*GNU* | *'with BFD'*)
7662 symcode='[ABCDGIRSTW]' ;;
7663esac
7664
7665# Transform an extracted symbol line into a proper C declaration.
7666# Some systems (esp. on ia64) link data and code symbols differently,
7667# so use this general approach.
7668lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7669
7670# Transform an extracted symbol line into symbol name and symbol address
7671lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7672lt_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'"
7673
7674# Handle CRLF in mingw tool chain
7675opt_cr=
7676case $build_os in
7677mingw*)
7678 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7679 ;;
7680esac
7681
7682# Try without a prefix underscore, then with it.
7683for ac_symprfx in "" "_"; do
7684
7685 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7686 symxfrm="\\1 $ac_symprfx\\2 \\2"
7687
7688 # Write the raw and C identifiers.
7689 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7690 # Fake it for dumpbin and say T for any non-static function
7691 # and D for any global variable.
7692 # Also find C++ and __fastcall symbols from MSVC++,
7693 # which start with @ or ?.
7694 lt_cv_sys_global_symbol_pipe="$AWK '"\
7695" {last_section=section; section=\$ 3};"\
7696" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7697" \$ 0!~/External *\|/{next};"\
7698" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7699" {if(hide[section]) next};"\
7700" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7701" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7702" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7703" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7704" ' prfx=^$ac_symprfx"
7705 else
7706 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7707 fi
7708
7709 # Check to see that the pipe works correctly.
7710 pipe_works=no
7711
7712 rm -f conftest*
7713 cat > conftest.$ac_ext <<_LT_EOF
7714#ifdef __cplusplus
7715extern "C" {
7716#endif
7717char nm_test_var;
7718void nm_test_func(void);
7719void nm_test_func(void){}
7720#ifdef __cplusplus
7721}
7722#endif
7723int main(){nm_test_var='a';nm_test_func();return(0);}
7724_LT_EOF
7725
7726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727 (eval $ac_compile) 2>&5
7728 ac_status=$?
7729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; }; then
7731 # Now try to grab the symbols.
7732 nlist=conftest.nm
52327858
L
7733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7734 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d7f09764
DN
7735 ac_status=$?
7736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737 test $ac_status = 0; } && test -s "$nlist"; then
7738 # Try sorting and uniquifying the output.
7739 if sort "$nlist" | uniq > "$nlist"T; then
7740 mv -f "$nlist"T "$nlist"
7741 else
7742 rm -f "$nlist"T
7743 fi
7744
7745 # Make sure that we snagged all the symbols we need.
7746 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7747 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7748 cat <<_LT_EOF > conftest.$ac_ext
7749#ifdef __cplusplus
7750extern "C" {
7751#endif
7752
7753_LT_EOF
7754 # Now generate the symbol file.
7755 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7756
7757 cat <<_LT_EOF >> conftest.$ac_ext
7758
7759/* The mapping between symbol names and symbols. */
7760const struct {
7761 const char *name;
7762 void *address;
7763}
7764lt__PROGRAM__LTX_preloaded_symbols[] =
7765{
7766 { "@PROGRAM@", (void *) 0 },
7767_LT_EOF
7768 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7769 cat <<\_LT_EOF >> conftest.$ac_ext
7770 {0, (void *) 0}
7771};
7772
7773/* This works around a problem in FreeBSD linker */
7774#ifdef FREEBSD_WORKAROUND
7775static const void *lt_preloaded_setup() {
7776 return lt__PROGRAM__LTX_preloaded_symbols;
7777}
7778#endif
7779
7780#ifdef __cplusplus
7781}
7782#endif
7783_LT_EOF
7784 # Now try linking the two files.
7785 mv conftest.$ac_objext conftstm.$ac_objext
7786 lt_save_LIBS="$LIBS"
7787 lt_save_CFLAGS="$CFLAGS"
7788 LIBS="conftstm.$ac_objext"
7789 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7791 (eval $ac_link) 2>&5
7792 ac_status=$?
7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7795 pipe_works=yes
7796 fi
7797 LIBS="$lt_save_LIBS"
7798 CFLAGS="$lt_save_CFLAGS"
7799 else
7800 echo "cannot find nm_test_func in $nlist" >&5
7801 fi
7802 else
7803 echo "cannot find nm_test_var in $nlist" >&5
7804 fi
7805 else
7806 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7807 fi
7808 else
7809 echo "$progname: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7811 fi
7812 rm -rf conftest* conftst*
7813
7814 # Do not use the global_symbol_pipe unless it works.
7815 if test "$pipe_works" = yes; then
7816 break
7817 else
7818 lt_cv_sys_global_symbol_pipe=
7819 fi
7820done
7821
7822fi
7823
7824if test -z "$lt_cv_sys_global_symbol_pipe"; then
7825 lt_cv_sys_global_symbol_to_cdecl=
7826fi
7827if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7829$as_echo "failed" >&6; }
7830else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7832$as_echo "ok" >&6; }
7833fi
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
d7f09764
DN
7854
7855
7856# Check whether --enable-libtool-lock was given.
7857if test "${enable_libtool_lock+set}" = set; then :
7858 enableval=$enable_libtool_lock;
7859fi
7860
7861test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7862
7863# Some flags need to be propagated to the compiler or linker for good
7864# libtool support.
7865case $host in
7866ia64-*-hpux*)
7867 # Find out which ABI we are using.
7868 echo 'int i;' > conftest.$ac_ext
7869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7870 (eval $ac_compile) 2>&5
7871 ac_status=$?
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; }; then
7874 case `/usr/bin/file conftest.$ac_objext` in
7875 *ELF-32*)
7876 HPUX_IA64_MODE="32"
7877 ;;
7878 *ELF-64*)
7879 HPUX_IA64_MODE="64"
7880 ;;
7881 esac
7882 fi
7883 rm -rf conftest*
7884 ;;
7885*-*-irix6*)
7886 # Find out which ABI we are using.
52327858 7887 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
d7f09764
DN
7888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7889 (eval $ac_compile) 2>&5
7890 ac_status=$?
7891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7892 test $ac_status = 0; }; then
7893 if test "$lt_cv_prog_gnu_ld" = yes; then
7894 case `/usr/bin/file conftest.$ac_objext` in
7895 *32-bit*)
7896 LD="${LD-ld} -melf32bsmip"
7897 ;;
7898 *N32*)
7899 LD="${LD-ld} -melf32bmipn32"
7900 ;;
7901 *64-bit*)
7902 LD="${LD-ld} -melf64bmip"
7903 ;;
7904 esac
7905 else
7906 case `/usr/bin/file conftest.$ac_objext` in
7907 *32-bit*)
7908 LD="${LD-ld} -32"
7909 ;;
7910 *N32*)
7911 LD="${LD-ld} -n32"
7912 ;;
7913 *64-bit*)
7914 LD="${LD-ld} -64"
7915 ;;
7916 esac
7917 fi
7918 fi
7919 rm -rf conftest*
7920 ;;
7921
3cbe17f7 7922x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
d7f09764
DN
7923s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7924 # Find out which ABI we are using.
7925 echo 'int i;' > conftest.$ac_ext
7926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7927 (eval $ac_compile) 2>&5
7928 ac_status=$?
7929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7930 test $ac_status = 0; }; then
7931 case `/usr/bin/file conftest.o` in
7932 *32-bit*)
7933 case $host in
7934 x86_64-*kfreebsd*-gnu)
7935 LD="${LD-ld} -m elf_i386_fbsd"
7936 ;;
7937 x86_64-*linux*)
e6d5f8c9
L
7938 case `/usr/bin/file conftest.o` in
7939 *x86-64*)
7940 LD="${LD-ld} -m elf32_x86_64"
7941 ;;
7942 *)
7943 LD="${LD-ld} -m elf_i386"
7944 ;;
7945 esac
d7f09764 7946 ;;
3cbe17f7
AM
7947 powerpc64le-*linux*)
7948 LD="${LD-ld} -m elf32lppclinux"
7949 ;;
7950 powerpc64-*linux*)
d7f09764
DN
7951 LD="${LD-ld} -m elf32ppclinux"
7952 ;;
7953 s390x-*linux*)
7954 LD="${LD-ld} -m elf_s390"
7955 ;;
7956 sparc64-*linux*)
7957 LD="${LD-ld} -m elf32_sparc"
7958 ;;
7959 esac
7960 ;;
7961 *64-bit*)
7962 case $host in
7963 x86_64-*kfreebsd*-gnu)
7964 LD="${LD-ld} -m elf_x86_64_fbsd"
7965 ;;
7966 x86_64-*linux*)
7967 LD="${LD-ld} -m elf_x86_64"
7968 ;;
3cbe17f7
AM
7969 powerpcle-*linux*)
7970 LD="${LD-ld} -m elf64lppc"
7971 ;;
7972 powerpc-*linux*)
d7f09764
DN
7973 LD="${LD-ld} -m elf64ppc"
7974 ;;
7975 s390*-*linux*|s390*-*tpf*)
7976 LD="${LD-ld} -m elf64_s390"
7977 ;;
7978 sparc*-*linux*)
7979 LD="${LD-ld} -m elf64_sparc"
7980 ;;
7981 esac
7982 ;;
7983 esac
7984 fi
7985 rm -rf conftest*
7986 ;;
7987
7988*-*-sco3.2v5*)
7989 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7990 SAVE_CFLAGS="$CFLAGS"
7991 CFLAGS="$CFLAGS -belf"
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7993$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7994if ${lt_cv_cc_needs_belf+:} false; then :
d7f09764
DN
7995 $as_echo_n "(cached) " >&6
7996else
7997 ac_ext=c
7998ac_cpp='$CPP $CPPFLAGS'
7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h. */
8005
8006int
8007main ()
8008{
8009
8010 ;
8011 return 0;
8012}
8013_ACEOF
8014if ac_fn_c_try_link "$LINENO"; then :
8015 lt_cv_cc_needs_belf=yes
8016else
8017 lt_cv_cc_needs_belf=no
8018fi
8019rm -f core conftest.err conftest.$ac_objext \
8020 conftest$ac_exeext conftest.$ac_ext
8021 ac_ext=c
8022ac_cpp='$CPP $CPPFLAGS'
8023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8025ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8029$as_echo "$lt_cv_cc_needs_belf" >&6; }
8030 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8031 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8032 CFLAGS="$SAVE_CFLAGS"
8033 fi
8034 ;;
8035sparc*-*solaris*)
8036 # Find out which ABI we are using.
8037 echo 'int i;' > conftest.$ac_ext
8038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8039 (eval $ac_compile) 2>&5
8040 ac_status=$?
8041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8042 test $ac_status = 0; }; then
8043 case `/usr/bin/file conftest.o` in
8044 *64-bit*)
8045 case $lt_cv_prog_gnu_ld in
8046 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8047 *)
8048 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8049 LD="${LD-ld} -64"
8050 fi
8051 ;;
8052 esac
8053 ;;
8054 esac
8055 fi
8056 rm -rf conftest*
8057 ;;
8058esac
8059
8060need_locks="$enable_libtool_lock"
8061
8062
8063 case $host_os in
8064 rhapsody* | darwin*)
8065 if test -n "$ac_tool_prefix"; then
8066 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8067set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8070if ${ac_cv_prog_DSYMUTIL+:} false; then :
d7f09764
DN
8071 $as_echo_n "(cached) " >&6
8072else
8073 if test -n "$DSYMUTIL"; then
8074 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8075else
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7f09764
DN
8083 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8086 fi
8087done
8088 done
8089IFS=$as_save_IFS
8090
8091fi
8092fi
8093DSYMUTIL=$ac_cv_prog_DSYMUTIL
8094if test -n "$DSYMUTIL"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8096$as_echo "$DSYMUTIL" >&6; }
8097else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
8100fi
8101
8102
8103fi
dcbc9df9
UB
8104if test -z "$ac_cv_prog_DSYMUTIL"; then
8105 ac_ct_DSYMUTIL=$DSYMUTIL
8106 # Extract the first word of "dsymutil", so it can be a program name with args.
8107set dummy dsymutil; ac_word=$2
d7f09764
DN
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8110if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
d7f09764
DN
8111 $as_echo_n "(cached) " >&6
8112else
dcbc9df9
UB
8113 if test -n "$ac_ct_DSYMUTIL"; then
8114 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
d7f09764
DN
8115else
8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117for as_dir in $PATH
8118do
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 8123 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
d7f09764
DN
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8126 fi
8127done
8128 done
8129IFS=$as_save_IFS
8130
8131fi
8132fi
dcbc9df9
UB
8133ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8134if test -n "$ac_ct_DSYMUTIL"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8136$as_echo "$ac_ct_DSYMUTIL" >&6; }
d7f09764
DN
8137else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139$as_echo "no" >&6; }
8140fi
8141
dcbc9df9
UB
8142 if test "x$ac_ct_DSYMUTIL" = x; then
8143 DSYMUTIL=":"
d7f09764
DN
8144 else
8145 case $cross_compiling:$ac_tool_warned in
8146yes:)
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8149ac_tool_warned=yes ;;
8150esac
dcbc9df9 8151 DSYMUTIL=$ac_ct_DSYMUTIL
d7f09764
DN
8152 fi
8153else
dcbc9df9 8154 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d7f09764
DN
8155fi
8156
8157 if test -n "$ac_tool_prefix"; then
dcbc9df9
UB
8158 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8159set dummy ${ac_tool_prefix}nmedit; ac_word=$2
d7f09764
DN
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8162if ${ac_cv_prog_NMEDIT+:} false; then :
d7f09764
DN
8163 $as_echo_n "(cached) " >&6
8164else
dcbc9df9
UB
8165 if test -n "$NMEDIT"; then
8166 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d7f09764
DN
8167else
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 8175 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
d7f09764
DN
8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179done
8180 done
8181IFS=$as_save_IFS
8182
8183fi
8184fi
dcbc9df9
UB
8185NMEDIT=$ac_cv_prog_NMEDIT
8186if test -n "$NMEDIT"; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8188$as_echo "$NMEDIT" >&6; }
d7f09764
DN
8189else
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191$as_echo "no" >&6; }
8192fi
8193
8194
8195fi
dcbc9df9
UB
8196if test -z "$ac_cv_prog_NMEDIT"; then
8197 ac_ct_NMEDIT=$NMEDIT
8198 # Extract the first word of "nmedit", so it can be a program name with args.
8199set dummy nmedit; ac_word=$2
d7f09764
DN
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8202if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
d7f09764
DN
8203 $as_echo_n "(cached) " >&6
8204else
dcbc9df9
UB
8205 if test -n "$ac_ct_NMEDIT"; then
8206 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d7f09764
DN
8207else
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 8215 ac_cv_prog_ac_ct_NMEDIT="nmedit"
d7f09764
DN
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8218 fi
8219done
8220 done
8221IFS=$as_save_IFS
8222
8223fi
8224fi
dcbc9df9
UB
8225ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8226if test -n "$ac_ct_NMEDIT"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8228$as_echo "$ac_ct_NMEDIT" >&6; }
d7f09764
DN
8229else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231$as_echo "no" >&6; }
8232fi
8233
dcbc9df9
UB
8234 if test "x$ac_ct_NMEDIT" = x; then
8235 NMEDIT=":"
d7f09764
DN
8236 else
8237 case $cross_compiling:$ac_tool_warned in
8238yes:)
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8241ac_tool_warned=yes ;;
8242esac
dcbc9df9 8243 NMEDIT=$ac_ct_NMEDIT
d7f09764
DN
8244 fi
8245else
dcbc9df9 8246 NMEDIT="$ac_cv_prog_NMEDIT"
d7f09764
DN
8247fi
8248
8249 if test -n "$ac_tool_prefix"; then
dcbc9df9
UB
8250 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8251set dummy ${ac_tool_prefix}lipo; ac_word=$2
d7f09764
DN
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8254if ${ac_cv_prog_LIPO+:} false; then :
d7f09764
DN
8255 $as_echo_n "(cached) " >&6
8256else
dcbc9df9
UB
8257 if test -n "$LIPO"; then
8258 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d7f09764
DN
8259else
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 8267 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
d7f09764
DN
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8270 fi
8271done
8272 done
8273IFS=$as_save_IFS
8274
8275fi
8276fi
dcbc9df9
UB
8277LIPO=$ac_cv_prog_LIPO
8278if test -n "$LIPO"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8280$as_echo "$LIPO" >&6; }
d7f09764
DN
8281else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284fi
8285
8286
8287fi
dcbc9df9
UB
8288if test -z "$ac_cv_prog_LIPO"; then
8289 ac_ct_LIPO=$LIPO
8290 # Extract the first word of "lipo", so it can be a program name with args.
8291set dummy lipo; ac_word=$2
d7f09764
DN
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8294if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
d7f09764
DN
8295 $as_echo_n "(cached) " >&6
8296else
dcbc9df9
UB
8297 if test -n "$ac_ct_LIPO"; then
8298 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d7f09764
DN
8299else
8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9 8307 ac_cv_prog_ac_ct_LIPO="lipo"
d7f09764
DN
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8310 fi
8311done
8312 done
8313IFS=$as_save_IFS
8314
8315fi
8316fi
dcbc9df9
UB
8317ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8318if test -n "$ac_ct_LIPO"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8320$as_echo "$ac_ct_LIPO" >&6; }
d7f09764
DN
8321else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323$as_echo "no" >&6; }
8324fi
8325
dcbc9df9
UB
8326 if test "x$ac_ct_LIPO" = x; then
8327 LIPO=":"
d7f09764
DN
8328 else
8329 case $cross_compiling:$ac_tool_warned in
8330yes:)
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8333ac_tool_warned=yes ;;
8334esac
dcbc9df9 8335 LIPO=$ac_ct_LIPO
d7f09764
DN
8336 fi
8337else
dcbc9df9 8338 LIPO="$ac_cv_prog_LIPO"
d7f09764
DN
8339fi
8340
dcbc9df9
UB
8341 if test -n "$ac_tool_prefix"; then
8342 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8343set dummy ${ac_tool_prefix}otool; ac_word=$2
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8346if ${ac_cv_prog_OTOOL+:} false; then :
d7f09764
DN
8347 $as_echo_n "(cached) " >&6
8348else
dcbc9df9
UB
8349 if test -n "$OTOOL"; then
8350 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
52327858 8351else
dcbc9df9
UB
8352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353for as_dir in $PATH
8354do
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8359 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8362 fi
8363done
8364 done
8365IFS=$as_save_IFS
52327858
L
8366
8367fi
dcbc9df9
UB
8368fi
8369OTOOL=$ac_cv_prog_OTOOL
8370if test -n "$OTOOL"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8372$as_echo "$OTOOL" >&6; }
8373else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
8376fi
8377
d7f09764 8378
d7f09764 8379fi
dcbc9df9
UB
8380if test -z "$ac_cv_prog_OTOOL"; then
8381 ac_ct_OTOOL=$OTOOL
8382 # Extract the first word of "otool", so it can be a program name with args.
8383set dummy otool; ac_word=$2
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8386if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
d7f09764
DN
8387 $as_echo_n "(cached) " >&6
8388else
dcbc9df9
UB
8389 if test -n "$ac_ct_OTOOL"; then
8390 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8391else
8392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393for as_dir in $PATH
d7f09764 8394do
dcbc9df9
UB
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8399 ac_cv_prog_ac_ct_OTOOL="otool"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8402 fi
8403done
8404 done
8405IFS=$as_save_IFS
d7f09764 8406
dcbc9df9
UB
8407fi
8408fi
8409ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8410if test -n "$ac_ct_OTOOL"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8412$as_echo "$ac_ct_OTOOL" >&6; }
d7f09764 8413else
dcbc9df9
UB
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
d7f09764 8416fi
d7f09764 8417
dcbc9df9
UB
8418 if test "x$ac_ct_OTOOL" = x; then
8419 OTOOL=":"
8420 else
8421 case $cross_compiling:$ac_tool_warned in
8422yes:)
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8425ac_tool_warned=yes ;;
8426esac
8427 OTOOL=$ac_ct_OTOOL
8428 fi
d7f09764 8429else
dcbc9df9 8430 OTOOL="$ac_cv_prog_OTOOL"
d7f09764 8431fi
d7f09764 8432
dcbc9df9
UB
8433 if test -n "$ac_tool_prefix"; then
8434 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8435set dummy ${ac_tool_prefix}otool64; ac_word=$2
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8438if ${ac_cv_prog_OTOOL64+:} false; then :
dcbc9df9
UB
8439 $as_echo_n "(cached) " >&6
8440else
8441 if test -n "$OTOOL64"; then
8442 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8443else
8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445for as_dir in $PATH
8446do
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8451 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8454 fi
d7f09764 8455done
dcbc9df9
UB
8456 done
8457IFS=$as_save_IFS
8458
8459fi
8460fi
8461OTOOL64=$ac_cv_prog_OTOOL64
8462if test -n "$OTOOL64"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8464$as_echo "$OTOOL64" >&6; }
8465else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467$as_echo "no" >&6; }
d7f09764
DN
8468fi
8469
d7f09764
DN
8470
8471fi
dcbc9df9
UB
8472if test -z "$ac_cv_prog_OTOOL64"; then
8473 ac_ct_OTOOL64=$OTOOL64
8474 # Extract the first word of "otool64", so it can be a program name with args.
8475set dummy otool64; ac_word=$2
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8478if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
dcbc9df9 8479 $as_echo_n "(cached) " >&6
d7f09764 8480else
dcbc9df9
UB
8481 if test -n "$ac_ct_OTOOL64"; then
8482 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8483else
8484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
d7f09764 8486do
dcbc9df9
UB
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dcbc9df9
UB
8491 ac_cv_prog_ac_ct_OTOOL64="otool64"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8494 fi
8495done
8496 done
8497IFS=$as_save_IFS
d7f09764 8498
dcbc9df9
UB
8499fi
8500fi
8501ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8502if test -n "$ac_ct_OTOOL64"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8504$as_echo "$ac_ct_OTOOL64" >&6; }
d7f09764 8505else
dcbc9df9
UB
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507$as_echo "no" >&6; }
d7f09764 8508fi
d7f09764 8509
dcbc9df9
UB
8510 if test "x$ac_ct_OTOOL64" = x; then
8511 OTOOL64=":"
8512 else
8513 case $cross_compiling:$ac_tool_warned in
8514yes:)
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8517ac_tool_warned=yes ;;
8518esac
8519 OTOOL64=$ac_ct_OTOOL64
8520 fi
d7f09764 8521else
dcbc9df9 8522 OTOOL64="$ac_cv_prog_OTOOL64"
d7f09764 8523fi
d7f09764 8524
d7f09764 8525
d7f09764 8526
d7f09764
DN
8527
8528
d7f09764 8529
d7f09764 8530
d7f09764 8531
d7f09764 8532
d7f09764 8533
d7f09764 8534
d7f09764 8535
d7f09764 8536
d7f09764 8537
d7f09764 8538
d7f09764 8539
dcbc9df9
UB
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8552$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 8553if ${lt_cv_apple_cc_single_mod+:} false; then :
dcbc9df9 8554 $as_echo_n "(cached) " >&6
d7f09764 8555else
dcbc9df9
UB
8556 lt_cv_apple_cc_single_mod=no
8557 if test -z "${LT_MULTI_MODULE}"; then
8558 # By default we will add the -single_module flag. You can override
8559 # by either setting the environment variable LT_MULTI_MODULE
8560 # non-empty at configure time, or by adding -multi_module to the
8561 # link flags.
8562 rm -rf libconftest.dylib*
8563 echo "int foo(void){return 1;}" > conftest.c
8564 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8565-dynamiclib -Wl,-single_module conftest.c" >&5
8566 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8567 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8568 _lt_result=$?
8569 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8570 lt_cv_apple_cc_single_mod=yes
8571 else
8572 cat conftest.err >&5
8573 fi
8574 rm -rf libconftest.dylib*
8575 rm -f conftest.*
8576 fi
8577fi
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8579$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8581$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 8582if ${lt_cv_ld_exported_symbols_list+:} false; then :
dcbc9df9
UB
8583 $as_echo_n "(cached) " >&6
8584else
8585 lt_cv_ld_exported_symbols_list=no
8586 save_LDFLAGS=$LDFLAGS
8587 echo "_main" > conftest.sym
8588 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f09764 8590/* end confdefs.h. */
d7f09764 8591
d7f09764
DN
8592int
8593main ()
8594{
dcbc9df9
UB
8595
8596 ;
d7f09764
DN
8597 return 0;
8598}
8599_ACEOF
dcbc9df9
UB
8600if ac_fn_c_try_link "$LINENO"; then :
8601 lt_cv_ld_exported_symbols_list=yes
d7f09764 8602else
dcbc9df9 8603 lt_cv_ld_exported_symbols_list=no
d7f09764 8604fi
dcbc9df9
UB
8605rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8607 LDFLAGS="$save_LDFLAGS"
d7f09764
DN
8608
8609fi
dcbc9df9
UB
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8611$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8613$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 8614if ${lt_cv_ld_force_load+:} false; then :
dcbc9df9
UB
8615 $as_echo_n "(cached) " >&6
8616else
8617 lt_cv_ld_force_load=no
8618 cat > conftest.c << _LT_EOF
8619int forced_loaded() { return 2;}
8620_LT_EOF
8621 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8622 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8623 echo "$AR cru libconftest.a conftest.o" >&5
8624 $AR cru libconftest.a conftest.o 2>&5
8625 cat > conftest.c << _LT_EOF
8626int main() { return 0;}
8627_LT_EOF
8628 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8629 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8630 _lt_result=$?
8631 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8632 lt_cv_ld_force_load=yes
8633 else
8634 cat conftest.err >&5
8635 fi
8636 rm -f conftest.err libconftest.a conftest conftest.c
8637 rm -rf conftest.dSYM
d7f09764
DN
8638
8639fi
dcbc9df9
UB
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8641$as_echo "$lt_cv_ld_force_load" >&6; }
3f570621
L
8642 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8643 # build without first building modern cctools / linker.
8644 case $host_cpu-$host_os in
8645 *-rhapsody* | *-darwin1.[012])
dcbc9df9 8646 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
3f570621 8647 *-darwin1.*)
dcbc9df9 8648 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
3f570621
L
8649 *-darwin*)
8650 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8651 # deployment target is forced to an earlier version.
8652 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8653 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8654 ;;
dcbc9df9 8655 10.[012][,.]*)
3f570621
L
8656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8657 ;;
8658 *)
8659 ;;
8660 esac
dcbc9df9
UB
8661 ;;
8662 esac
8663 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8664 _lt_dar_single_mod='$single_module'
8665 fi
8666 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8667 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8668 else
8669 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8670 fi
8671 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8672 _lt_dsymutil='~$DSYMUTIL $lib || :'
8673 else
8674 _lt_dsymutil=
8675 fi
8676 ;;
8677 esac
d7f09764
DN
8678
8679for ac_header in dlfcn.h
8680do :
8681 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8682"
22e05272 8683if test "x$ac_cv_header_dlfcn_h" = xyes; then :
d7f09764
DN
8684 cat >>confdefs.h <<_ACEOF
8685#define HAVE_DLFCN_H 1
8686_ACEOF
8687
8688fi
8689
8690done
8691
8692
8693
52327858
L
8694
8695
d7f09764
DN
8696# Set options
8697
8698
8699
8700 enable_dlopen=no
8701
8702
8703 enable_win32_dll=no
8704
8705
8706 # Check whether --enable-shared was given.
8707if test "${enable_shared+set}" = set; then :
8708 enableval=$enable_shared; p=${PACKAGE-default}
8709 case $enableval in
8710 yes) enable_shared=yes ;;
8711 no) enable_shared=no ;;
8712 *)
8713 enable_shared=no
8714 # Look at the argument we got. We use all the common list separators.
8715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8716 for pkg in $enableval; do
8717 IFS="$lt_save_ifs"
8718 if test "X$pkg" = "X$p"; then
8719 enable_shared=yes
8720 fi
8721 done
8722 IFS="$lt_save_ifs"
8723 ;;
8724 esac
8725else
8726 enable_shared=yes
8727fi
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737 # Check whether --enable-static was given.
8738if test "${enable_static+set}" = set; then :
8739 enableval=$enable_static; p=${PACKAGE-default}
8740 case $enableval in
8741 yes) enable_static=yes ;;
8742 no) enable_static=no ;;
8743 *)
8744 enable_static=no
8745 # Look at the argument we got. We use all the common list separators.
8746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8747 for pkg in $enableval; do
8748 IFS="$lt_save_ifs"
8749 if test "X$pkg" = "X$p"; then
8750 enable_static=yes
8751 fi
8752 done
8753 IFS="$lt_save_ifs"
8754 ;;
8755 esac
8756else
8757 enable_static=yes
8758fi
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769# Check whether --with-pic was given.
8770if test "${with_pic+set}" = set; then :
8771 withval=$with_pic; pic_mode="$withval"
8772else
8773 pic_mode=default
8774fi
8775
8776
8777test -z "$pic_mode" && pic_mode=default
8778
8779
8780
8781
8782
8783
8784
8785 # Check whether --enable-fast-install was given.
8786if test "${enable_fast_install+set}" = set; then :
8787 enableval=$enable_fast_install; p=${PACKAGE-default}
8788 case $enableval in
8789 yes) enable_fast_install=yes ;;
8790 no) enable_fast_install=no ;;
8791 *)
8792 enable_fast_install=no
8793 # Look at the argument we got. We use all the common list separators.
8794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8795 for pkg in $enableval; do
8796 IFS="$lt_save_ifs"
8797 if test "X$pkg" = "X$p"; then
8798 enable_fast_install=yes
8799 fi
8800 done
8801 IFS="$lt_save_ifs"
8802 ;;
8803 esac
8804else
8805 enable_fast_install=yes
8806fi
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818# This can be used to rebuild libtool when needed
8819LIBTOOL_DEPS="$ltmain"
8820
8821# Always use our own libtool.
8822LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
52327858 8846
d7f09764
DN
8847
8848
8849test -z "$LN_S" && LN_S="ln -s"
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864if test -n "${ZSH_VERSION+set}" ; then
8865 setopt NO_GLOB_SUBST
8866fi
8867
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8869$as_echo_n "checking for objdir... " >&6; }
22e05272 8870if ${lt_cv_objdir+:} false; then :
d7f09764
DN
8871 $as_echo_n "(cached) " >&6
8872else
8873 rm -f .libs 2>/dev/null
8874mkdir .libs 2>/dev/null
8875if test -d .libs; then
8876 lt_cv_objdir=.libs
8877else
8878 # MS-DOS does not allow filenames that begin with a dot.
8879 lt_cv_objdir=_libs
8880fi
8881rmdir .libs 2>/dev/null
8882fi
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8884$as_echo "$lt_cv_objdir" >&6; }
8885objdir=$lt_cv_objdir
8886
8887
8888
8889
8890
8891cat >>confdefs.h <<_ACEOF
8892#define LT_OBJDIR "$lt_cv_objdir/"
8893_ACEOF
8894
8895
8896
8897
d7f09764
DN
8898case $host_os in
8899aix3*)
8900 # AIX sometimes has problems with the GCC collect2 program. For some
8901 # reason, if we set the COLLECT_NAMES environment variable, the problems
8902 # vanish in a puff of smoke.
8903 if test "X${COLLECT_NAMES+set}" != Xset; then
8904 COLLECT_NAMES=
8905 export COLLECT_NAMES
8906 fi
8907 ;;
8908esac
8909
d7f09764
DN
8910# Global variables:
8911ofile=libtool
8912can_build_shared=yes
8913
8914# All known linkers require a `.a' archive for static linking (except MSVC,
8915# which needs '.lib').
8916libext=a
8917
8918with_gnu_ld="$lt_cv_prog_gnu_ld"
8919
8920old_CC="$CC"
8921old_CFLAGS="$CFLAGS"
8922
8923# Set sane defaults for various variables
8924test -z "$CC" && CC=cc
8925test -z "$LTCC" && LTCC=$CC
8926test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8927test -z "$LD" && LD=ld
8928test -z "$ac_objext" && ac_objext=o
8929
8930for cc_temp in $compiler""; do
8931 case $cc_temp in
8932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8934 \-*) ;;
8935 *) break;;
8936 esac
8937done
52327858 8938cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7f09764
DN
8939
8940
8941# Only perform the check for file, if the check method requires it
8942test -z "$MAGIC_CMD" && MAGIC_CMD=file
8943case $deplibs_check_method in
8944file_magic*)
8945 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8947$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8948if ${lt_cv_path_MAGIC_CMD+:} false; then :
d7f09764
DN
8949 $as_echo_n "(cached) " >&6
8950else
8951 case $MAGIC_CMD in
8952[\\/*] | ?:[\\/]*)
8953 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8954 ;;
8955*)
8956 lt_save_MAGIC_CMD="$MAGIC_CMD"
8957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8958 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8959 for ac_dir in $ac_dummy; do
8960 IFS="$lt_save_ifs"
8961 test -z "$ac_dir" && ac_dir=.
8962 if test -f $ac_dir/${ac_tool_prefix}file; then
8963 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8964 if test -n "$file_magic_test_file"; then
8965 case $deplibs_check_method in
8966 "file_magic "*)
8967 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8969 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8970 $EGREP "$file_magic_regex" > /dev/null; then
8971 :
8972 else
8973 cat <<_LT_EOF 1>&2
8974
8975*** Warning: the command libtool uses to detect shared libraries,
8976*** $file_magic_cmd, produces output that libtool cannot recognize.
8977*** The result is that libtool may fail to recognize shared libraries
8978*** as such. This will affect the creation of libtool libraries that
8979*** depend on shared libraries, but programs linked with such libtool
8980*** libraries will work regardless of this problem. Nevertheless, you
8981*** may want to report the problem to your system manager and/or to
8982*** bug-libtool@gnu.org
8983
8984_LT_EOF
8985 fi ;;
8986 esac
8987 fi
8988 break
8989 fi
8990 done
8991 IFS="$lt_save_ifs"
8992 MAGIC_CMD="$lt_save_MAGIC_CMD"
8993 ;;
8994esac
8995fi
8996
8997MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8998if test -n "$MAGIC_CMD"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9000$as_echo "$MAGIC_CMD" >&6; }
9001else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003$as_echo "no" >&6; }
9004fi
9005
9006
9007
9008
9009
9010if test -z "$lt_cv_path_MAGIC_CMD"; then
9011 if test -n "$ac_tool_prefix"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9013$as_echo_n "checking for file... " >&6; }
22e05272 9014if ${lt_cv_path_MAGIC_CMD+:} false; then :
d7f09764
DN
9015 $as_echo_n "(cached) " >&6
9016else
9017 case $MAGIC_CMD in
9018[\\/*] | ?:[\\/]*)
9019 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9020 ;;
9021*)
9022 lt_save_MAGIC_CMD="$MAGIC_CMD"
9023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9024 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9025 for ac_dir in $ac_dummy; do
9026 IFS="$lt_save_ifs"
9027 test -z "$ac_dir" && ac_dir=.
9028 if test -f $ac_dir/file; then
9029 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9030 if test -n "$file_magic_test_file"; then
9031 case $deplibs_check_method in
9032 "file_magic "*)
9033 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9036 $EGREP "$file_magic_regex" > /dev/null; then
9037 :
9038 else
9039 cat <<_LT_EOF 1>&2
9040
9041*** Warning: the command libtool uses to detect shared libraries,
9042*** $file_magic_cmd, produces output that libtool cannot recognize.
9043*** The result is that libtool may fail to recognize shared libraries
9044*** as such. This will affect the creation of libtool libraries that
9045*** depend on shared libraries, but programs linked with such libtool
9046*** libraries will work regardless of this problem. Nevertheless, you
9047*** may want to report the problem to your system manager and/or to
9048*** bug-libtool@gnu.org
9049
9050_LT_EOF
9051 fi ;;
9052 esac
9053 fi
9054 break
9055 fi
9056 done
9057 IFS="$lt_save_ifs"
9058 MAGIC_CMD="$lt_save_MAGIC_CMD"
9059 ;;
9060esac
9061fi
9062
9063MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9064if test -n "$MAGIC_CMD"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9066$as_echo "$MAGIC_CMD" >&6; }
9067else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069$as_echo "no" >&6; }
9070fi
9071
9072
9073 else
9074 MAGIC_CMD=:
9075 fi
9076fi
9077
9078 fi
9079 ;;
9080esac
9081
9082# Use C for the default configuration in the libtool script
9083
9084lt_save_CC="$CC"
9085ac_ext=c
9086ac_cpp='$CPP $CPPFLAGS'
9087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9089ac_compiler_gnu=$ac_cv_c_compiler_gnu
9090
9091
9092# Source file extension for C test sources.
9093ac_ext=c
9094
9095# Object file extension for compiled C test sources.
9096objext=o
9097objext=$objext
9098
9099# Code to be used in simple compile tests
9100lt_simple_compile_test_code="int some_variable = 0;"
9101
9102# Code to be used in simple link tests
9103lt_simple_link_test_code='int main(){return(0);}'
9104
9105
9106
9107
9108
9109
9110
9111# If no C compiler was specified, use CC.
9112LTCC=${LTCC-"$CC"}
9113
9114# If no C compiler flags were specified, use CFLAGS.
9115LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9116
9117# Allow CC to be a program name with arguments.
9118compiler=$CC
9119
9120# Save the default compiler, since it gets overwritten when the other
9121# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9122compiler_DEFAULT=$CC
9123
9124# save warnings/boilerplate of simple test code
9125ac_outfile=conftest.$ac_objext
9126echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9127eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9128_lt_compiler_boilerplate=`cat conftest.err`
9129$RM conftest*
9130
9131ac_outfile=conftest.$ac_objext
9132echo "$lt_simple_link_test_code" >conftest.$ac_ext
9133eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9134_lt_linker_boilerplate=`cat conftest.err`
9135$RM -r conftest*
9136
9137
9138## CAVEAT EMPTOR:
9139## There is no encapsulation within the following macros, do not change
9140## the running order or otherwise move them around unless you know exactly
9141## what you are doing...
9142if test -n "$compiler"; then
9143
9144lt_prog_compiler_no_builtin_flag=
9145
9146if test "$GCC" = yes; then
52327858
L
9147 case $cc_basename in
9148 nvcc*)
9149 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9150 *)
9151 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9152 esac
d7f09764
DN
9153
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9155$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 9156if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
d7f09764
DN
9157 $as_echo_n "(cached) " >&6
9158else
9159 lt_cv_prog_compiler_rtti_exceptions=no
9160 ac_outfile=conftest.$ac_objext
9161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9162 lt_compiler_flag="-fno-rtti -fno-exceptions"
9163 # Insert the option either (1) after the last *FLAGS variable, or
9164 # (2) before a word containing "conftest.", or (3) at the end.
9165 # Note that $ac_compile itself does not contain backslashes and begins
9166 # with a dollar sign (not a hyphen), so the echo should work correctly.
9167 # The option is referenced via a variable to avoid confusing sed.
9168 lt_compile=`echo "$ac_compile" | $SED \
9169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9171 -e 's:$: $lt_compiler_flag:'`
52327858 9172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9173 (eval "$lt_compile" 2>conftest.err)
9174 ac_status=$?
9175 cat conftest.err >&5
52327858 9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9177 if (exit $ac_status) && test -s "$ac_outfile"; then
9178 # The compiler can only warn and ignore the option if not recognized
9179 # So say no if there are warnings other than the usual output.
52327858 9180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
9181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9183 lt_cv_prog_compiler_rtti_exceptions=yes
9184 fi
9185 fi
9186 $RM conftest*
9187
9188fi
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9190$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9191
9192if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9193 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9194else
9195 :
9196fi
9197
9198fi
9199
9200
9201
9202
9203
9204
9205 lt_prog_compiler_wl=
9206lt_prog_compiler_pic=
9207lt_prog_compiler_static=
9208
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9210$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9211
9212 if test "$GCC" = yes; then
9213 lt_prog_compiler_wl='-Wl,'
9214 lt_prog_compiler_static='-static'
9215
9216 case $host_os in
9217 aix*)
9218 # All AIX code is PIC.
9219 if test "$host_cpu" = ia64; then
9220 # AIX 5 now supports IA64 processor
9221 lt_prog_compiler_static='-Bstatic'
9222 fi
de973ab7 9223 lt_prog_compiler_pic='-fPIC'
d7f09764
DN
9224 ;;
9225
9226 amigaos*)
9227 case $host_cpu in
9228 powerpc)
9229 # see comment about AmigaOS4 .so support
9230 lt_prog_compiler_pic='-fPIC'
9231 ;;
9232 m68k)
9233 # FIXME: we need at least 68020 code to build shared libraries, but
9234 # adding the `-m68020' flag to GCC prevents building anything better,
9235 # like `-m68040'.
9236 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9237 ;;
9238 esac
9239 ;;
9240
9241 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9242 # PIC is the default for these OSes.
9243 ;;
9244
9245 mingw* | cygwin* | pw32* | os2* | cegcc*)
9246 # This hack is so that the source file can tell whether it is being
9247 # built for inclusion in a dll (and should export symbols for example).
9248 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9249 # (--disable-auto-import) libraries
9250 lt_prog_compiler_pic='-DDLL_EXPORT'
9251 ;;
9252
9253 darwin* | rhapsody*)
9254 # PIC is the default on this platform
9255 # Common symbols not allowed in MH_DYLIB files
9256 lt_prog_compiler_pic='-fno-common'
9257 ;;
9258
52327858
L
9259 haiku*)
9260 # PIC is the default for Haiku.
9261 # The "-static" flag exists, but is broken.
9262 lt_prog_compiler_static=
9263 ;;
9264
d7f09764
DN
9265 hpux*)
9266 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9267 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9268 # sets the default TLS model and affects inlining.
9269 case $host_cpu in
9270 hppa*64*)
9271 # +Z the default
9272 ;;
9273 *)
9274 lt_prog_compiler_pic='-fPIC'
9275 ;;
9276 esac
9277 ;;
9278
9279 interix[3-9]*)
9280 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9281 # Instead, we relocate shared libraries at runtime.
9282 ;;
9283
9284 msdosdjgpp*)
9285 # Just because we use GCC doesn't mean we suddenly get shared libraries
9286 # on systems that don't support them.
9287 lt_prog_compiler_can_build_shared=no
9288 enable_shared=no
9289 ;;
9290
9291 *nto* | *qnx*)
9292 # QNX uses GNU C++, but need to define -shared option too, otherwise
9293 # it will coredump.
9294 lt_prog_compiler_pic='-fPIC -shared'
9295 ;;
9296
9297 sysv4*MP*)
9298 if test -d /usr/nec; then
9299 lt_prog_compiler_pic=-Kconform_pic
9300 fi
9301 ;;
9302
9303 *)
9304 lt_prog_compiler_pic='-fPIC'
9305 ;;
9306 esac
52327858
L
9307
9308 case $cc_basename in
9309 nvcc*) # Cuda Compiler Driver 2.2
9310 lt_prog_compiler_wl='-Xlinker '
9311 lt_prog_compiler_pic='-Xcompiler -fPIC'
9312 ;;
9313 esac
d7f09764
DN
9314 else
9315 # PORTME Check for flag to pass linker flags through the system compiler.
9316 case $host_os in
9317 aix*)
9318 lt_prog_compiler_wl='-Wl,'
9319 if test "$host_cpu" = ia64; then
9320 # AIX 5 now supports IA64 processor
9321 lt_prog_compiler_static='-Bstatic'
9322 else
9323 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9324 fi
9325 ;;
9326
9327 mingw* | cygwin* | pw32* | os2* | cegcc*)
9328 # This hack is so that the source file can tell whether it is being
9329 # built for inclusion in a dll (and should export symbols for example).
9330 lt_prog_compiler_pic='-DDLL_EXPORT'
9331 ;;
9332
9333 hpux9* | hpux10* | hpux11*)
9334 lt_prog_compiler_wl='-Wl,'
9335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9336 # not for PA HP-UX.
9337 case $host_cpu in
9338 hppa*64*|ia64*)
9339 # +Z the default
9340 ;;
9341 *)
9342 lt_prog_compiler_pic='+Z'
9343 ;;
9344 esac
9345 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9346 lt_prog_compiler_static='${wl}-a ${wl}archive'
9347 ;;
9348
9349 irix5* | irix6* | nonstopux*)
9350 lt_prog_compiler_wl='-Wl,'
9351 # PIC (with -KPIC) is the default.
9352 lt_prog_compiler_static='-non_shared'
9353 ;;
9354
9355 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9356 case $cc_basename in
9357 # old Intel for x86_64 which still supported -KPIC.
9358 ecc*)
9359 lt_prog_compiler_wl='-Wl,'
9360 lt_prog_compiler_pic='-KPIC'
9361 lt_prog_compiler_static='-static'
9362 ;;
9363 # icc used to be incompatible with GCC.
9364 # ICC 10 doesn't accept -KPIC any more.
9365 icc* | ifort*)
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_pic='-fPIC'
9368 lt_prog_compiler_static='-static'
9369 ;;
9370 # Lahey Fortran 8.1.
9371 lf95*)
9372 lt_prog_compiler_wl='-Wl,'
9373 lt_prog_compiler_pic='--shared'
9374 lt_prog_compiler_static='--static'
9375 ;;
52327858 9376 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7f09764
DN
9377 # Portland Group compilers (*not* the Pentium gcc compiler,
9378 # which looks to be a dead project)
9379 lt_prog_compiler_wl='-Wl,'
9380 lt_prog_compiler_pic='-fpic'
9381 lt_prog_compiler_static='-Bstatic'
9382 ;;
9383 ccc*)
9384 lt_prog_compiler_wl='-Wl,'
9385 # All Alpha code is PIC.
9386 lt_prog_compiler_static='-non_shared'
9387 ;;
52327858
L
9388 xl* | bgxl* | bgf* | mpixl*)
9389 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
d7f09764
DN
9390 lt_prog_compiler_wl='-Wl,'
9391 lt_prog_compiler_pic='-qpic'
9392 lt_prog_compiler_static='-qstaticlink'
9393 ;;
9394 *)
9395 case `$CC -V 2>&1 | sed 5q` in
52327858
L
9396 *Sun\ F* | *Sun*Fortran*)
9397 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7f09764
DN
9398 lt_prog_compiler_pic='-KPIC'
9399 lt_prog_compiler_static='-Bstatic'
52327858 9400 lt_prog_compiler_wl=''
d7f09764 9401 ;;
52327858
L
9402 *Sun\ C*)
9403 # Sun C 5.9
d7f09764
DN
9404 lt_prog_compiler_pic='-KPIC'
9405 lt_prog_compiler_static='-Bstatic'
52327858 9406 lt_prog_compiler_wl='-Wl,'
d7f09764
DN
9407 ;;
9408 esac
9409 ;;
9410 esac
9411 ;;
9412
9413 newsos6)
9414 lt_prog_compiler_pic='-KPIC'
9415 lt_prog_compiler_static='-Bstatic'
9416 ;;
9417
9418 *nto* | *qnx*)
9419 # QNX uses GNU C++, but need to define -shared option too, otherwise
9420 # it will coredump.
9421 lt_prog_compiler_pic='-fPIC -shared'
9422 ;;
9423
9424 osf3* | osf4* | osf5*)
9425 lt_prog_compiler_wl='-Wl,'
9426 # All OSF/1 code is PIC.
9427 lt_prog_compiler_static='-non_shared'
9428 ;;
9429
9430 rdos*)
9431 lt_prog_compiler_static='-non_shared'
9432 ;;
9433
9434 solaris*)
9435 lt_prog_compiler_pic='-KPIC'
9436 lt_prog_compiler_static='-Bstatic'
9437 case $cc_basename in
9438 f77* | f90* | f95*)
9439 lt_prog_compiler_wl='-Qoption ld ';;
9440 *)
9441 lt_prog_compiler_wl='-Wl,';;
9442 esac
9443 ;;
9444
9445 sunos4*)
9446 lt_prog_compiler_wl='-Qoption ld '
9447 lt_prog_compiler_pic='-PIC'
9448 lt_prog_compiler_static='-Bstatic'
9449 ;;
9450
9451 sysv4 | sysv4.2uw2* | sysv4.3*)
9452 lt_prog_compiler_wl='-Wl,'
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 ;;
9456
9457 sysv4*MP*)
9458 if test -d /usr/nec ;then
9459 lt_prog_compiler_pic='-Kconform_pic'
9460 lt_prog_compiler_static='-Bstatic'
9461 fi
9462 ;;
9463
9464 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9465 lt_prog_compiler_wl='-Wl,'
9466 lt_prog_compiler_pic='-KPIC'
9467 lt_prog_compiler_static='-Bstatic'
9468 ;;
9469
9470 unicos*)
9471 lt_prog_compiler_wl='-Wl,'
9472 lt_prog_compiler_can_build_shared=no
9473 ;;
9474
9475 uts4*)
9476 lt_prog_compiler_pic='-pic'
9477 lt_prog_compiler_static='-Bstatic'
9478 ;;
9479
9480 *)
9481 lt_prog_compiler_can_build_shared=no
9482 ;;
9483 esac
9484 fi
9485
9486case $host_os in
9487 # For platforms which do not support PIC, -DPIC is meaningless:
9488 *djgpp*)
9489 lt_prog_compiler_pic=
9490 ;;
9491 *)
9492 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9493 ;;
9494esac
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9496$as_echo "$lt_prog_compiler_pic" >&6; }
9497
9498
9499
9500
9501
9502
9503#
9504# Check to make sure the PIC flag actually works.
9505#
9506if test -n "$lt_prog_compiler_pic"; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9508$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 9509if ${lt_cv_prog_compiler_pic_works+:} false; then :
d7f09764
DN
9510 $as_echo_n "(cached) " >&6
9511else
9512 lt_cv_prog_compiler_pic_works=no
9513 ac_outfile=conftest.$ac_objext
9514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9515 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9516 # Insert the option either (1) after the last *FLAGS variable, or
9517 # (2) before a word containing "conftest.", or (3) at the end.
9518 # Note that $ac_compile itself does not contain backslashes and begins
9519 # with a dollar sign (not a hyphen), so the echo should work correctly.
9520 # The option is referenced via a variable to avoid confusing sed.
9521 lt_compile=`echo "$ac_compile" | $SED \
9522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9524 -e 's:$: $lt_compiler_flag:'`
52327858 9525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9526 (eval "$lt_compile" 2>conftest.err)
9527 ac_status=$?
9528 cat conftest.err >&5
52327858 9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9530 if (exit $ac_status) && test -s "$ac_outfile"; then
9531 # The compiler can only warn and ignore the option if not recognized
9532 # So say no if there are warnings other than the usual output.
52327858 9533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7f09764
DN
9534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9536 lt_cv_prog_compiler_pic_works=yes
9537 fi
9538 fi
9539 $RM conftest*
9540
9541fi
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9543$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9544
9545if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9546 case $lt_prog_compiler_pic in
9547 "" | " "*) ;;
9548 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9549 esac
9550else
9551 lt_prog_compiler_pic=
9552 lt_prog_compiler_can_build_shared=no
9553fi
9554
9555fi
9556
9557
9558
9559
9560
9561
9562#
9563# Check to make sure the static flag actually works.
9564#
9565wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9567$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 9568if ${lt_cv_prog_compiler_static_works+:} false; then :
d7f09764
DN
9569 $as_echo_n "(cached) " >&6
9570else
9571 lt_cv_prog_compiler_static_works=no
9572 save_LDFLAGS="$LDFLAGS"
9573 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9574 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9575 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9576 # The linker can only warn and ignore the option if not recognized
9577 # So say no if there are warnings
9578 if test -s conftest.err; then
9579 # Append any errors to the config.log.
9580 cat conftest.err 1>&5
52327858 9581 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7f09764
DN
9582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9583 if diff conftest.exp conftest.er2 >/dev/null; then
9584 lt_cv_prog_compiler_static_works=yes
9585 fi
9586 else
9587 lt_cv_prog_compiler_static_works=yes
9588 fi
9589 fi
9590 $RM -r conftest*
9591 LDFLAGS="$save_LDFLAGS"
9592
9593fi
9594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9595$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9596
9597if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9598 :
9599else
9600 lt_prog_compiler_static=
9601fi
9602
9603
9604
9605
9606
9607
9608
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9610$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9611if ${lt_cv_prog_compiler_c_o+:} false; then :
d7f09764
DN
9612 $as_echo_n "(cached) " >&6
9613else
9614 lt_cv_prog_compiler_c_o=no
9615 $RM -r conftest 2>/dev/null
9616 mkdir conftest
9617 cd conftest
9618 mkdir out
9619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9620
9621 lt_compiler_flag="-o out/conftest2.$ac_objext"
9622 # Insert the option either (1) after the last *FLAGS variable, or
9623 # (2) before a word containing "conftest.", or (3) at the end.
9624 # Note that $ac_compile itself does not contain backslashes and begins
9625 # with a dollar sign (not a hyphen), so the echo should work correctly.
9626 lt_compile=`echo "$ac_compile" | $SED \
9627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9629 -e 's:$: $lt_compiler_flag:'`
52327858 9630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9631 (eval "$lt_compile" 2>out/conftest.err)
9632 ac_status=$?
9633 cat out/conftest.err >&5
52327858 9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9635 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9636 then
9637 # The compiler can only warn and ignore the option if not recognized
9638 # So say no if there are warnings
52327858 9639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
9640 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9641 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9642 lt_cv_prog_compiler_c_o=yes
9643 fi
9644 fi
9645 chmod u+w . 2>&5
9646 $RM conftest*
9647 # SGI C++ compiler will create directory out/ii_files/ for
9648 # template instantiation
9649 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9650 $RM out/* && rmdir out
9651 cd ..
9652 $RM -r conftest
9653 $RM conftest*
9654
9655fi
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9657$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9658
9659
9660
9661
9662
9663
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9665$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 9666if ${lt_cv_prog_compiler_c_o+:} false; then :
d7f09764
DN
9667 $as_echo_n "(cached) " >&6
9668else
9669 lt_cv_prog_compiler_c_o=no
9670 $RM -r conftest 2>/dev/null
9671 mkdir conftest
9672 cd conftest
9673 mkdir out
9674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9675
9676 lt_compiler_flag="-o out/conftest2.$ac_objext"
9677 # Insert the option either (1) after the last *FLAGS variable, or
9678 # (2) before a word containing "conftest.", or (3) at the end.
9679 # Note that $ac_compile itself does not contain backslashes and begins
9680 # with a dollar sign (not a hyphen), so the echo should work correctly.
9681 lt_compile=`echo "$ac_compile" | $SED \
9682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9684 -e 's:$: $lt_compiler_flag:'`
52327858 9685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7f09764
DN
9686 (eval "$lt_compile" 2>out/conftest.err)
9687 ac_status=$?
9688 cat out/conftest.err >&5
52327858 9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7f09764
DN
9690 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9691 then
9692 # The compiler can only warn and ignore the option if not recognized
9693 # So say no if there are warnings
52327858 9694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7f09764
DN
9695 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9696 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9697 lt_cv_prog_compiler_c_o=yes
9698 fi
9699 fi
9700 chmod u+w . 2>&5
9701 $RM conftest*
9702 # SGI C++ compiler will create directory out/ii_files/ for
9703 # template instantiation
9704 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9705 $RM out/* && rmdir out
9706 cd ..
9707 $RM -r conftest
9708 $RM conftest*
9709
9710fi
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9712$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9713
9714
9715
9716
9717hard_links="nottested"
9718if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9719 # do not overwrite the value of need_locks provided by the user
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9721$as_echo_n "checking if we can lock with hard links... " >&6; }
9722 hard_links=yes
9723 $RM conftest*
9724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9725 touch conftest.a
9726 ln conftest.a conftest.b 2>&5 || hard_links=no
9727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9729$as_echo "$hard_links" >&6; }
9730 if test "$hard_links" = no; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9732$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9733 need_locks=warn
9734 fi
9735else
9736 need_locks=no
9737fi
9738
9739
9740
9741
9742
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9745$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9746
9747 runpath_var=
9748 allow_undefined_flag=
9749 always_export_symbols=no
9750 archive_cmds=
9751 archive_expsym_cmds=
9752 compiler_needs_object=no
9753 enable_shared_with_static_runtimes=no
9754 export_dynamic_flag_spec=
9755 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9756 hardcode_automatic=no
9757 hardcode_direct=no
9758 hardcode_direct_absolute=no
9759 hardcode_libdir_flag_spec=
9760 hardcode_libdir_flag_spec_ld=
9761 hardcode_libdir_separator=
9762 hardcode_minus_L=no
9763 hardcode_shlibpath_var=unsupported
9764 inherit_rpath=no
9765 link_all_deplibs=unknown
9766 module_cmds=
9767 module_expsym_cmds=
9768 old_archive_from_new_cmds=
9769 old_archive_from_expsyms_cmds=
9770 thread_safe_flag_spec=
9771 whole_archive_flag_spec=
9772 # include_expsyms should be a list of space-separated symbols to be *always*
9773 # included in the symbol list
9774 include_expsyms=
9775 # exclude_expsyms can be an extended regexp of symbols to exclude
9776 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9777 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9778 # as well as any symbol that contains `d'.
9779 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9780 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9781 # platforms (ab)use it in PIC code, but their linkers get confused if
9782 # the symbol is explicitly referenced. Since portable code cannot
9783 # rely on this symbol name, it's probably fine to never include it in
9784 # preloaded symbol tables.
9785 # Exclude shared library initialization/finalization symbols.
9786 extract_expsyms_cmds=
9787
9788 case $host_os in
9789 cygwin* | mingw* | pw32* | cegcc*)
9790 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9791 # When not using gcc, we currently assume that we are using
9792 # Microsoft Visual C++.
9793 if test "$GCC" != yes; then
9794 with_gnu_ld=no
9795 fi
9796 ;;
9797 interix*)
9798 # we just hope/assume this is gcc and not c89 (= MSVC++)
9799 with_gnu_ld=yes
9800 ;;
9801 openbsd*)
9802 with_gnu_ld=no
9803 ;;
9804 esac
9805
9806 ld_shlibs=yes
52327858
L
9807
9808 # On some targets, GNU ld is compatible enough with the native linker
9809 # that we're better off using the native interface for both.
9810 lt_use_gnu_ld_interface=no
d7f09764 9811 if test "$with_gnu_ld" = yes; then
52327858
L
9812 case $host_os in
9813 aix*)
9814 # The AIX port of GNU ld has always aspired to compatibility
9815 # with the native linker. However, as the warning in the GNU ld
9816 # block says, versions before 2.19.5* couldn't really create working
9817 # shared libraries, regardless of the interface used.
9818 case `$LD -v 2>&1` in
9819 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9820 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9821 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9822 *)
9823 lt_use_gnu_ld_interface=yes
9824 ;;
9825 esac
9826 ;;
9827 *)
9828 lt_use_gnu_ld_interface=yes
9829 ;;
9830 esac
9831 fi
9832
9833 if test "$lt_use_gnu_ld_interface" = yes; then
d7f09764
DN
9834 # If archive_cmds runs LD, not CC, wlarc should be empty
9835 wlarc='${wl}'
9836
9837 # Set some defaults for GNU ld with shared library support. These
9838 # are reset later if shared libraries are not supported. Putting them
9839 # here allows them to be overridden if necessary.
9840 runpath_var=LD_RUN_PATH
9841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9842 export_dynamic_flag_spec='${wl}--export-dynamic'
9843 # ancient GNU ld didn't support --whole-archive et. al.
9844 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9845 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9846 else
9847 whole_archive_flag_spec=
9848 fi
9849 supports_anon_versioning=no
9850 case `$LD -v 2>&1` in
52327858 9851 *GNU\ gold*) supports_anon_versioning=yes ;;
d7f09764
DN
9852 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9853 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9854 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9855 *\ 2.11.*) ;; # other 2.11 versions
9856 *) supports_anon_versioning=yes ;;
9857 esac
9858
9859 # See if GNU ld supports shared libraries.
9860 case $host_os in
9861 aix[3-9]*)
9862 # On AIX/PPC, the GNU linker is very broken
9863 if test "$host_cpu" != ia64; then
9864 ld_shlibs=no
9865 cat <<_LT_EOF 1>&2
9866
52327858 9867*** Warning: the GNU linker, at least up to release 2.19, is reported
d7f09764
DN
9868*** to be unable to reliably create shared libraries on AIX.
9869*** Therefore, libtool is disabling shared libraries support. If you
52327858
L
9870*** really care for shared libraries, you may want to install binutils
9871*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9872*** You will then need to restart the configuration process.
d7f09764
DN
9873
9874_LT_EOF
9875 fi
9876 ;;
9877
9878 amigaos*)
9879 case $host_cpu in
9880 powerpc)
9881 # see comment about AmigaOS4 .so support
9882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883 archive_expsym_cmds=''
9884 ;;
9885 m68k)
9886 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)'
9887 hardcode_libdir_flag_spec='-L$libdir'
9888 hardcode_minus_L=yes
9889 ;;
9890 esac
9891 ;;
9892
9893 beos*)
9894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9895 allow_undefined_flag=unsupported
9896 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9897 # support --undefined. This deserves some investigation. FIXME
9898 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899 else
9900 ld_shlibs=no
9901 fi
9902 ;;
9903
9904 cygwin* | mingw* | pw32* | cegcc*)
9905 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9906 # as there is no search path for DLLs.
9907 hardcode_libdir_flag_spec='-L$libdir'
52327858 9908 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7f09764
DN
9909 allow_undefined_flag=unsupported
9910 always_export_symbols=no
9911 enable_shared_with_static_runtimes=yes
9912 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9913
9914 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9916 # If the export-symbols file already is a .def file (1st line
9917 # is EXPORTS), use it as is; otherwise, prepend...
9918 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9919 cp $export_symbols $output_objdir/$soname.def;
9920 else
9921 echo EXPORTS > $output_objdir/$soname.def;
9922 cat $export_symbols >> $output_objdir/$soname.def;
9923 fi~
9924 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9925 else
9926 ld_shlibs=no
9927 fi
9928 ;;
9929
52327858
L
9930 haiku*)
9931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9932 link_all_deplibs=yes
9933 ;;
9934
d7f09764
DN
9935 interix[3-9]*)
9936 hardcode_direct=no
9937 hardcode_shlibpath_var=no
9938 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9939 export_dynamic_flag_spec='${wl}-E'
9940 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9941 # Instead, shared libraries are loaded at an image base (0x10000000 by
9942 # default) and relocated if they conflict, which is a slow very memory
9943 # consuming and fragmenting process. To avoid this, we pick a random,
9944 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9945 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9946 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9947 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'
9948 ;;
9949
e9085da5 9950 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
d7f09764
DN
9951 tmp_diet=no
9952 if test "$host_os" = linux-dietlibc; then
9953 case $cc_basename in
9954 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9955 esac
9956 fi
9957 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9958 && test "$tmp_diet" = no
9959 then
a699d672 9960 tmp_addflag=' $pic_flag'
d7f09764
DN
9961 tmp_sharedflag='-shared'
9962 case $cc_basename,$host_cpu in
9963 pgcc*) # Portland Group C compiler
52327858 9964 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'
d7f09764
DN
9965 tmp_addflag=' $pic_flag'
9966 ;;
52327858
L
9967 pgf77* | pgf90* | pgf95* | pgfortran*)
9968 # Portland Group f77 and f90 compilers
9969 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'
d7f09764
DN
9970 tmp_addflag=' $pic_flag -Mnomain' ;;
9971 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9972 tmp_addflag=' -i_dynamic' ;;
9973 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9974 tmp_addflag=' -i_dynamic -nofor_main' ;;
9975 ifc* | ifort*) # Intel Fortran compiler
9976 tmp_addflag=' -nofor_main' ;;
9977 lf95*) # Lahey Fortran 8.1
9978 whole_archive_flag_spec=
9979 tmp_sharedflag='--shared' ;;
52327858 9980 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
d7f09764
DN
9981 tmp_sharedflag='-qmkshrobj'
9982 tmp_addflag= ;;
52327858
L
9983 nvcc*) # Cuda Compiler Driver 2.2
9984 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'
9985 compiler_needs_object=yes
9986 ;;
d7f09764
DN
9987 esac
9988 case `$CC -V 2>&1 | sed 5q` in
9989 *Sun\ C*) # Sun C 5.9
52327858 9990 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'
d7f09764
DN
9991 compiler_needs_object=yes
9992 tmp_sharedflag='-G' ;;
9993 *Sun\ F*) # Sun Fortran 8.3
9994 tmp_sharedflag='-G' ;;
9995 esac
9996 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9997
9998 if test "x$supports_anon_versioning" = xyes; then
9999 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10001 echo "local: *; };" >> $output_objdir/$libname.ver~
10002 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10003 fi
10004
10005 case $cc_basename in
52327858 10006 xlf* | bgf* | bgxlf* | mpixlf*)
d7f09764
DN
10007 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10008 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10009 hardcode_libdir_flag_spec=
10010 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10011 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10012 if test "x$supports_anon_versioning" = xyes; then
10013 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10015 echo "local: *; };" >> $output_objdir/$libname.ver~
10016 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10017 fi
10018 ;;
10019 esac
10020 else
10021 ld_shlibs=no
10022 fi
10023 ;;
10024
10025 netbsd*)
10026 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10027 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10028 wlarc=
10029 else
10030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10032 fi
10033 ;;
10034
10035 solaris*)
10036 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10037 ld_shlibs=no
10038 cat <<_LT_EOF 1>&2
10039
10040*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10041*** create shared libraries on Solaris systems. Therefore, libtool
10042*** is disabling shared libraries support. We urge you to upgrade GNU
10043*** binutils to release 2.9.1 or newer. Another option is to modify
10044*** your PATH or compiler configuration so that the native linker is
10045*** used, and then restart.
10046
10047_LT_EOF
10048 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10051 else
10052 ld_shlibs=no
10053 fi
10054 ;;
10055
10056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10057 case `$LD -v 2>&1` in
10058 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10059 ld_shlibs=no
10060 cat <<_LT_EOF 1>&2
10061
10062*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10063*** reliably create shared libraries on SCO systems. Therefore, libtool
10064*** is disabling shared libraries support. We urge you to upgrade GNU
10065*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10066*** your PATH or compiler configuration so that the native linker is
10067*** used, and then restart.
10068
10069_LT_EOF
10070 ;;
10071 *)
10072 # For security reasons, it is highly recommended that you always
10073 # use absolute paths for naming shared libraries, and exclude the
10074 # DT_RUNPATH tag from executables and libraries. But doing so
10075 # requires that you compile everything twice, which is a pain.
10076 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10080 else
10081 ld_shlibs=no
10082 fi
10083 ;;
10084 esac
10085 ;;
10086
10087 sunos4*)
10088 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10089 wlarc=
10090 hardcode_direct=yes
10091 hardcode_shlibpath_var=no
10092 ;;
10093
10094 *)
10095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10098 else
10099 ld_shlibs=no
10100 fi
10101 ;;
10102 esac
10103
10104 if test "$ld_shlibs" = no; then
10105 runpath_var=
10106 hardcode_libdir_flag_spec=
10107 export_dynamic_flag_spec=
10108 whole_archive_flag_spec=
10109 fi
10110 else
10111 # PORTME fill in a description of your system's linker (not GNU ld)
10112 case $host_os in
10113 aix3*)
10114 allow_undefined_flag=unsupported
10115 always_export_symbols=yes
10116 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'
10117 # Note: this linker hardcodes the directories in LIBPATH if there
10118 # are no directories specified by -L.
10119 hardcode_minus_L=yes
10120 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10121 # Neither direct hardcoding nor static linking is supported with a
10122 # broken collect2.
10123 hardcode_direct=unsupported
10124 fi
10125 ;;
10126
10127 aix[4-9]*)
10128 if test "$host_cpu" = ia64; then
10129 # On IA64, the linker does run time linking by default, so we don't
10130 # have to do anything special.
10131 aix_use_runtimelinking=no
10132 exp_sym_flag='-Bexport'
10133 no_entry_flag=""
10134 else
10135 # If we're using GNU nm, then we don't want the "-C" option.
10136 # -C means demangle to AIX nm, but means don't demangle with GNU nm
52327858
L
10137 # Also, AIX nm treats weak defined symbols like other global
10138 # defined symbols, whereas GNU nm marks them as "W".
d7f09764 10139 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
52327858 10140 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'
d7f09764 10141 else
84c1b9d3 10142 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'
d7f09764
DN
10143 fi
10144 aix_use_runtimelinking=no
10145
10146 # Test if we are trying to use run time linking or normal
10147 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10148 # need to do runtime linking.
10149 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10150 for ld_flag in $LDFLAGS; do
10151 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10152 aix_use_runtimelinking=yes
10153 break
10154 fi
10155 done
10156 ;;
10157 esac
10158
10159 exp_sym_flag='-bexport'
10160 no_entry_flag='-bnoentry'
10161 fi
10162
10163 # When large executables or shared objects are built, AIX ld can
10164 # have problems creating the table of contents. If linking a library
10165 # or program results in "error TOC overflow" add -mminimal-toc to
10166 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10167 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10168
10169 archive_cmds=''
10170 hardcode_direct=yes
10171 hardcode_direct_absolute=yes
10172 hardcode_libdir_separator=':'
10173 link_all_deplibs=yes
10174 file_list_spec='${wl}-f,'
10175
10176 if test "$GCC" = yes; then
10177 case $host_os in aix4.[012]|aix4.[012].*)
10178 # We only want to do this on AIX 4.2 and lower, the check
10179 # below for broken collect2 doesn't work under 4.3+
10180 collect2name=`${CC} -print-prog-name=collect2`
10181 if test -f "$collect2name" &&
10182 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10183 then
10184 # We have reworked collect2
10185 :
10186 else
10187 # We have old collect2
10188 hardcode_direct=unsupported
10189 # It fails to find uninstalled libraries when the uninstalled
10190 # path is not listed in the libpath. Setting hardcode_minus_L
10191 # to unsupported forces relinking
10192 hardcode_minus_L=yes
10193 hardcode_libdir_flag_spec='-L$libdir'
10194 hardcode_libdir_separator=
10195 fi
10196 ;;
10197 esac
10198 shared_flag='-shared'
10199 if test "$aix_use_runtimelinking" = yes; then
10200 shared_flag="$shared_flag "'${wl}-G'
10201 fi
10202 else
10203 # not using gcc
10204 if test "$host_cpu" = ia64; then
10205 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10206 # chokes on -Wl,-G. The following line is correct:
10207 shared_flag='-G'
10208 else
10209 if test "$aix_use_runtimelinking" = yes; then
10210 shared_flag='${wl}-G'
10211 else
10212 shared_flag='${wl}-bM:SRE'
10213 fi
10214 fi
10215 fi
10216
10217 export_dynamic_flag_spec='${wl}-bexpall'
10218 # It seems that -bexpall does not export symbols beginning with
10219 # underscore (_), so it is better to generate a list of symbols to export.
10220 always_export_symbols=yes
10221 if test "$aix_use_runtimelinking" = yes; then
10222 # Warning - without using the other runtime loading flags (-brtl),
10223 # -berok will link without error, but may produce a broken library.
10224 allow_undefined_flag='-berok'
10225 # Determine the default libpath from the value encoded in an
10226 # empty executable.
10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228/* end confdefs.h. */
10229
10230int
10231main ()
10232{
10233
10234 ;
10235 return 0;
10236}
10237_ACEOF
10238if ac_fn_c_try_link "$LINENO"; then :
10239
10240lt_aix_libpath_sed='
10241 /Import File Strings/,/^$/ {
10242 /^0/ {
10243 s/^0 *\(.*\)$/\1/
10244 p
10245 }
10246 }'
10247aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10248# Check for a 64-bit object if we didn't find anything.
10249if test -z "$aix_libpath"; then
10250 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10251fi
10252fi
10253rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10256
10257 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
52327858 10258 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"
d7f09764
DN
10259 else
10260 if test "$host_cpu" = ia64; then
10261 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10262 allow_undefined_flag="-z nodefs"
10263 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"
10264 else
10265 # Determine the default libpath from the value encoded in an
10266 # empty executable.
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268/* end confdefs.h. */
10269
10270int
10271main ()
10272{
10273
10274 ;
10275 return 0;
10276}
10277_ACEOF
10278if ac_fn_c_try_link "$LINENO"; then :
10279
10280lt_aix_libpath_sed='
10281 /Import File Strings/,/^$/ {
10282 /^0/ {
10283 s/^0 *\(.*\)$/\1/
10284 p
10285 }
10286 }'
10287aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10288# Check for a 64-bit object if we didn't find anything.
10289if test -z "$aix_libpath"; then
10290 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10291fi
10292fi
10293rm -f core conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10295if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10296
10297 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10298 # Warning - without using the other run time loading flags,
10299 # -berok will link without error, but may produce a broken library.
10300 no_undefined_flag=' ${wl}-bernotok'
10301 allow_undefined_flag=' ${wl}-berok'
52327858
L
10302 if test "$with_gnu_ld" = yes; then
10303 # We only use this code for GNU lds that support --whole-archive.
10304 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10305 else
10306 # Exported symbols can be pulled into shared objects from archives
10307 whole_archive_flag_spec='$convenience'
10308 fi
d7f09764
DN
10309 archive_cmds_need_lc=yes
10310 # This is similar to how AIX traditionally builds its shared libraries.
10311 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'
10312 fi
10313 fi
10314 ;;
10315
10316 amigaos*)
10317 case $host_cpu in
10318 powerpc)
10319 # see comment about AmigaOS4 .so support
10320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10321 archive_expsym_cmds=''
10322 ;;
10323 m68k)
10324 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)'
10325 hardcode_libdir_flag_spec='-L$libdir'
10326 hardcode_minus_L=yes
10327 ;;
10328 esac
10329 ;;
10330
10331 bsdi[45]*)
10332 export_dynamic_flag_spec=-rdynamic
10333 ;;
10334
10335 cygwin* | mingw* | pw32* | cegcc*)
10336 # When not using gcc, we currently assume that we are using
10337 # Microsoft Visual C++.
10338 # hardcode_libdir_flag_spec is actually meaningless, as there is
10339 # no search path for DLLs.
10340 hardcode_libdir_flag_spec=' '
10341 allow_undefined_flag=unsupported
10342 # Tell ltmain to make .lib files, not .a files.
10343 libext=lib
10344 # Tell ltmain to make .dll files, not .so files.
10345 shrext_cmds=".dll"
10346 # FIXME: Setting linknames here is a bad hack.
52327858 10347 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
d7f09764
DN
10348 # The linker will automatically build a .lib file if we build a DLL.
10349 old_archive_from_new_cmds='true'
10350 # FIXME: Should let the user specify the lib program.
10351 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10352 fix_srcfile_path='`cygpath -w "$srcfile"`'
10353 enable_shared_with_static_runtimes=yes
10354 ;;
10355
10356 darwin* | rhapsody*)
10357
10358
10359 archive_cmds_need_lc=no
10360 hardcode_direct=no
10361 hardcode_automatic=yes
10362 hardcode_shlibpath_var=unsupported
52327858
L
10363 if test "$lt_cv_ld_force_load" = "yes"; then
10364 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\"`'
10365 else
10366 whole_archive_flag_spec=''
10367 fi
d7f09764
DN
10368 link_all_deplibs=yes
10369 allow_undefined_flag="$_lt_dar_allow_undefined"
10370 case $cc_basename in
10371 ifort*) _lt_dar_can_shared=yes ;;
10372 *) _lt_dar_can_shared=$GCC ;;
10373 esac
10374 if test "$_lt_dar_can_shared" = "yes"; then
52327858 10375 output_verbose_link_cmd=func_echo_all
d7f09764
DN
10376 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10377 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10378 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10379 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}"
10380
10381 else
10382 ld_shlibs=no
10383 fi
10384
10385 ;;
10386
10387 dgux*)
10388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10389 hardcode_libdir_flag_spec='-L$libdir'
10390 hardcode_shlibpath_var=no
10391 ;;
10392
d7f09764
DN
10393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10394 # support. Future versions do this automatically, but an explicit c++rt0.o
10395 # does not break anything, and helps significantly (at the cost of a little
10396 # extra space).
10397 freebsd2.2*)
10398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10399 hardcode_libdir_flag_spec='-R$libdir'
10400 hardcode_direct=yes
10401 hardcode_shlibpath_var=no
10402 ;;
10403
10404 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 10405 freebsd2.*)
d7f09764
DN
10406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10407 hardcode_direct=yes
10408 hardcode_minus_L=yes
10409 hardcode_shlibpath_var=no
10410 ;;
10411
10412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10413 freebsd* | dragonfly*)
10414 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10415 hardcode_libdir_flag_spec='-R$libdir'
10416 hardcode_direct=yes
10417 hardcode_shlibpath_var=no
10418 ;;
10419
10420 hpux9*)
10421 if test "$GCC" = yes; then
10422 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'
10423 else
10424 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'
10425 fi
10426 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10427 hardcode_libdir_separator=:
10428 hardcode_direct=yes
10429
10430 # hardcode_minus_L: Not really in the search PATH,
10431 # but as the default location of the library.
10432 hardcode_minus_L=yes
10433 export_dynamic_flag_spec='${wl}-E'
10434 ;;
10435
10436 hpux10*)
52327858 10437 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
10438 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10439 else
10440 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10441 fi
10442 if test "$with_gnu_ld" = no; then
10443 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10444 hardcode_libdir_flag_spec_ld='+b $libdir'
10445 hardcode_libdir_separator=:
10446 hardcode_direct=yes
10447 hardcode_direct_absolute=yes
10448 export_dynamic_flag_spec='${wl}-E'
10449 # hardcode_minus_L: Not really in the search PATH,
10450 # but as the default location of the library.
10451 hardcode_minus_L=yes
10452 fi
10453 ;;
10454
10455 hpux11*)
52327858 10456 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7f09764
DN
10457 case $host_cpu in
10458 hppa*64*)
4e4ba647 10459 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7f09764
DN
10460 ;;
10461 ia64*)
10462 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10463 ;;
10464 *)
10465 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10466 ;;
10467 esac
10468 else
10469 case $host_cpu in
10470 hppa*64*)
4e4ba647 10471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7f09764
DN
10472 ;;
10473 ia64*)
10474 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10475 ;;
10476 *)
52327858
L
10477
10478 # Older versions of the 11.00 compiler do not understand -b yet
10479 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10481$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 10482if ${lt_cv_prog_compiler__b+:} false; then :
52327858
L
10483 $as_echo_n "(cached) " >&6
10484else
10485 lt_cv_prog_compiler__b=no
10486 save_LDFLAGS="$LDFLAGS"
10487 LDFLAGS="$LDFLAGS -b"
10488 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10490 # The linker can only warn and ignore the option if not recognized
10491 # So say no if there are warnings
10492 if test -s conftest.err; then
10493 # Append any errors to the config.log.
10494 cat conftest.err 1>&5
10495 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10497 if diff conftest.exp conftest.er2 >/dev/null; then
10498 lt_cv_prog_compiler__b=yes
10499 fi
10500 else
10501 lt_cv_prog_compiler__b=yes
10502 fi
10503 fi
10504 $RM -r conftest*
10505 LDFLAGS="$save_LDFLAGS"
10506
10507fi
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10509$as_echo "$lt_cv_prog_compiler__b" >&6; }
10510
10511if test x"$lt_cv_prog_compiler__b" = xyes; then
10512 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10513else
10514 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10515fi
10516
d7f09764
DN
10517 ;;
10518 esac
10519 fi
10520 if test "$with_gnu_ld" = no; then
10521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10522 hardcode_libdir_separator=:
10523
10524 case $host_cpu in
10525 hppa*64*|ia64*)
10526 hardcode_direct=no
10527 hardcode_shlibpath_var=no
10528 ;;
10529 *)
10530 hardcode_direct=yes
10531 hardcode_direct_absolute=yes
10532 export_dynamic_flag_spec='${wl}-E'
10533
10534 # hardcode_minus_L: Not really in the search PATH,
10535 # but as the default location of the library.
10536 hardcode_minus_L=yes
10537 ;;
10538 esac
10539 fi
10540 ;;
10541
10542 irix5* | irix6* | nonstopux*)
10543 if test "$GCC" = yes; then
52327858 10544 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'
d7f09764
DN
10545 # Try to use the -exported_symbol ld option, if it does not
10546 # work, assume that -exports_file does not work either and
10547 # implicitly export all symbols.
10548 save_LDFLAGS="$LDFLAGS"
10549 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551/* end confdefs.h. */
10552int foo(void) {}
10553_ACEOF
10554if ac_fn_c_try_link "$LINENO"; then :
52327858 10555 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'
d7f09764
DN
10556
10557fi
10558rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LDFLAGS="$save_LDFLAGS"
10561 else
52327858
L
10562 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'
10563 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'
d7f09764
DN
10564 fi
10565 archive_cmds_need_lc='no'
10566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10567 hardcode_libdir_separator=:
10568 inherit_rpath=yes
10569 link_all_deplibs=yes
10570 ;;
10571
10572 netbsd*)
10573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10574 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10575 else
10576 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10577 fi
10578 hardcode_libdir_flag_spec='-R$libdir'
10579 hardcode_direct=yes
10580 hardcode_shlibpath_var=no
10581 ;;
10582
10583 newsos6)
10584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585 hardcode_direct=yes
10586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10587 hardcode_libdir_separator=:
10588 hardcode_shlibpath_var=no
10589 ;;
10590
10591 *nto* | *qnx*)
10592 ;;
10593
10594 openbsd*)
10595 if test -f /usr/libexec/ld.so; then
10596 hardcode_direct=yes
10597 hardcode_shlibpath_var=no
10598 hardcode_direct_absolute=yes
10599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10601 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10602 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10603 export_dynamic_flag_spec='${wl}-E'
10604 else
10605 case $host_os in
10606 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10608 hardcode_libdir_flag_spec='-R$libdir'
10609 ;;
10610 *)
10611 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10612 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10613 ;;
10614 esac
10615 fi
10616 else
10617 ld_shlibs=no
10618 fi
10619 ;;
10620
10621 os2*)
10622 hardcode_libdir_flag_spec='-L$libdir'
10623 hardcode_minus_L=yes
10624 allow_undefined_flag=unsupported
52327858 10625 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'
d7f09764
DN
10626 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10627 ;;
10628
10629 osf3*)
10630 if test "$GCC" = yes; then
10631 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 10632 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'
d7f09764
DN
10633 else
10634 allow_undefined_flag=' -expect_unresolved \*'
52327858 10635 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'
d7f09764
DN
10636 fi
10637 archive_cmds_need_lc='no'
10638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10639 hardcode_libdir_separator=:
10640 ;;
10641
10642 osf4* | osf5*) # as osf3* with the addition of -msym flag
10643 if test "$GCC" = yes; then
10644 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
52327858 10645 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'
d7f09764
DN
10646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10647 else
10648 allow_undefined_flag=' -expect_unresolved \*'
52327858 10649 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'
d7f09764 10650 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~
52327858 10651 $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'
d7f09764
DN
10652
10653 # Both c and cxx compiler support -rpath directly
10654 hardcode_libdir_flag_spec='-rpath $libdir'
10655 fi
10656 archive_cmds_need_lc='no'
10657 hardcode_libdir_separator=:
10658 ;;
10659
10660 solaris*)
10661 no_undefined_flag=' -z defs'
10662 if test "$GCC" = yes; then
10663 wlarc='${wl}'
10664 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10666 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10667 else
10668 case `$CC -V 2>&1` in
10669 *"Compilers 5.0"*)
10670 wlarc=''
10671 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10672 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10673 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10674 ;;
10675 *)
10676 wlarc='${wl}'
10677 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10678 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10679 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10680 ;;
10681 esac
10682 fi
10683 hardcode_libdir_flag_spec='-R$libdir'
10684 hardcode_shlibpath_var=no
10685 case $host_os in
10686 solaris2.[0-5] | solaris2.[0-5].*) ;;
10687 *)
10688 # The compiler driver will combine and reorder linker options,
10689 # but understands `-z linker_flag'. GCC discards it without `$wl',
10690 # but is careful enough not to reorder.
10691 # Supported since Solaris 2.6 (maybe 2.5.1?)
10692 if test "$GCC" = yes; then
10693 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10694 else
10695 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10696 fi
10697 ;;
10698 esac
10699 link_all_deplibs=yes
10700 ;;
10701
10702 sunos4*)
10703 if test "x$host_vendor" = xsequent; then
10704 # Use $CC to link under sequent, because it throws in some extra .o
10705 # files that make .init and .fini sections work.
10706 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10707 else
10708 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10709 fi
10710 hardcode_libdir_flag_spec='-L$libdir'
10711 hardcode_direct=yes
10712 hardcode_minus_L=yes
10713 hardcode_shlibpath_var=no
10714 ;;
10715
10716 sysv4)
10717 case $host_vendor in
10718 sni)
10719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10720 hardcode_direct=yes # is this really true???
10721 ;;
10722 siemens)
10723 ## LD is ld it makes a PLAMLIB
10724 ## CC just makes a GrossModule.
10725 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10726 reload_cmds='$CC -r -o $output$reload_objs'
10727 hardcode_direct=no
10728 ;;
10729 motorola)
10730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10731 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10732 ;;
10733 esac
10734 runpath_var='LD_RUN_PATH'
10735 hardcode_shlibpath_var=no
10736 ;;
10737
10738 sysv4.3*)
10739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10740 hardcode_shlibpath_var=no
10741 export_dynamic_flag_spec='-Bexport'
10742 ;;
10743
10744 sysv4*MP*)
10745 if test -d /usr/nec; then
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_shlibpath_var=no
10748 runpath_var=LD_RUN_PATH
10749 hardcode_runpath_var=yes
10750 ld_shlibs=yes
10751 fi
10752 ;;
10753
10754 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10755 no_undefined_flag='${wl}-z,text'
10756 archive_cmds_need_lc=no
10757 hardcode_shlibpath_var=no
10758 runpath_var='LD_RUN_PATH'
10759
10760 if test "$GCC" = yes; then
10761 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 else
10764 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10765 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766 fi
10767 ;;
10768
10769 sysv5* | sco3.2v5* | sco5v6*)
10770 # Note: We can NOT use -z defs as we might desire, because we do not
10771 # link with -lc, and that would cause any symbols used from libc to
10772 # always be unresolved, which means just about no library would
10773 # ever link correctly. If we're not using GNU ld we use -z text
10774 # though, which does catch some bad symbols but isn't as heavy-handed
10775 # as -z defs.
10776 no_undefined_flag='${wl}-z,text'
10777 allow_undefined_flag='${wl}-z,nodefs'
10778 archive_cmds_need_lc=no
10779 hardcode_shlibpath_var=no
10780 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10781 hardcode_libdir_separator=':'
10782 link_all_deplibs=yes
10783 export_dynamic_flag_spec='${wl}-Bexport'
10784 runpath_var='LD_RUN_PATH'
10785
10786 if test "$GCC" = yes; then
10787 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 else
10790 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792 fi
10793 ;;
10794
10795 uts4*)
10796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10797 hardcode_libdir_flag_spec='-L$libdir'
10798 hardcode_shlibpath_var=no
10799 ;;
10800
10801 *)
10802 ld_shlibs=no
10803 ;;
10804 esac
10805
10806 if test x$host_vendor = xsni; then
10807 case $host in
10808 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10809 export_dynamic_flag_spec='${wl}-Blargedynsym'
10810 ;;
10811 esac
10812 fi
10813 fi
10814
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10816$as_echo "$ld_shlibs" >&6; }
10817test "$ld_shlibs" = no && can_build_shared=no
10818
10819with_gnu_ld=$with_gnu_ld
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835#
10836# Do we need to explicitly link libc?
10837#
10838case "x$archive_cmds_need_lc" in
10839x|xyes)
10840 # Assume -lc should be added
10841 archive_cmds_need_lc=yes
10842
10843 if test "$enable_shared" = yes && test "$GCC" = yes; then
10844 case $archive_cmds in
10845 *'~'*)
10846 # FIXME: we may have to deal with multi-command sequences.
10847 ;;
10848 '$CC '*)
10849 # Test whether the compiler implicitly links with -lc since on some
10850 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10851 # to ld, don't add -lc before -lgcc.
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10853$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10854if ${lt_cv_archive_cmds_need_lc+:} false; then :
d7f09764
DN
10855 $as_echo_n "(cached) " >&6
10856else
10857 $RM conftest*
10858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10859
10860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10861 (eval $ac_compile) 2>&5
10862 ac_status=$?
10863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10864 test $ac_status = 0; } 2>conftest.err; then
10865 soname=conftest
10866 lib=conftest
10867 libobjs=conftest.$ac_objext
10868 deplibs=
10869 wl=$lt_prog_compiler_wl
10870 pic_flag=$lt_prog_compiler_pic
10871 compiler_flags=-v
10872 linker_flags=-v
10873 verstring=
10874 output_objdir=.
10875 libname=conftest
10876 lt_save_allow_undefined_flag=$allow_undefined_flag
10877 allow_undefined_flag=
10878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10879 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10880 ac_status=$?
10881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10882 test $ac_status = 0; }
10883 then
10884 lt_cv_archive_cmds_need_lc=no
10885 else
10886 lt_cv_archive_cmds_need_lc=yes
10887 fi
10888 allow_undefined_flag=$lt_save_allow_undefined_flag
10889 else
10890 cat conftest.err 1>&5
10891 fi
10892 $RM conftest*
10893
10894fi
10895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10896$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10897 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10898 ;;
10899 esac
10900 fi
10901 ;;
10902esac
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
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11061$as_echo_n "checking dynamic linker characteristics... " >&6; }
11062
11063if test "$GCC" = yes; then
11064 case $host_os in
11065 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11066 *) lt_awk_arg="/^libraries:/" ;;
11067 esac
52327858
L
11068 case $host_os in
11069 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11070 *) lt_sed_strip_eq="s,=/,/,g" ;;
11071 esac
11072 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11073 case $lt_search_path_spec in
11074 *\;*)
d7f09764
DN
11075 # if the path contains ";" then we assume it to be the separator
11076 # otherwise default to the standard path separator (i.e. ":") - it is
11077 # assumed that no part of a normal pathname contains ";" but that should
11078 # okay in the real world where ";" in dirpaths is itself problematic.
52327858
L
11079 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11080 ;;
11081 *)
11082 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11083 ;;
11084 esac
d7f09764
DN
11085 # Ok, now we have the path, separated by spaces, we can step through it
11086 # and add multilib dir if necessary.
11087 lt_tmp_lt_search_path_spec=
11088 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11089 for lt_sys_path in $lt_search_path_spec; do
11090 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11091 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11092 else
11093 test -d "$lt_sys_path" && \
11094 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11095 fi
11096 done
52327858 11097 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7f09764
DN
11098BEGIN {RS=" "; FS="/|\n";} {
11099 lt_foo="";
11100 lt_count=0;
11101 for (lt_i = NF; lt_i > 0; lt_i--) {
11102 if ($lt_i != "" && $lt_i != ".") {
11103 if ($lt_i == "..") {
11104 lt_count++;
11105 } else {
11106 if (lt_count == 0) {
11107 lt_foo="/" $lt_i lt_foo;
11108 } else {
11109 lt_count--;
11110 }
11111 }
11112 }
11113 }
11114 if (lt_foo != "") { lt_freq[lt_foo]++; }
11115 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11116}'`
52327858
L
11117 # AWK program above erroneously prepends '/' to C:/dos/paths
11118 # for these hosts.
11119 case $host_os in
11120 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11121 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11122 esac
11123 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7f09764
DN
11124else
11125 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11126fi
11127library_names_spec=
11128libname_spec='lib$name'
11129soname_spec=
11130shrext_cmds=".so"
11131postinstall_cmds=
11132postuninstall_cmds=
11133finish_cmds=
11134finish_eval=
11135shlibpath_var=
11136shlibpath_overrides_runpath=unknown
11137version_type=none
11138dynamic_linker="$host_os ld.so"
11139sys_lib_dlsearch_path_spec="/lib /usr/lib"
11140need_lib_prefix=unknown
11141hardcode_into_libs=no
11142
11143# when you set need_version to no, make sure it does not cause -set_version
11144# flags to be left without arguments
11145need_version=unknown
11146
11147case $host_os in
11148aix3*)
11149 version_type=linux
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11151 shlibpath_var=LIBPATH
11152
11153 # AIX 3 has no versioning support, so we append a major version to the name.
11154 soname_spec='${libname}${release}${shared_ext}$major'
11155 ;;
11156
11157aix[4-9]*)
11158 version_type=linux
11159 need_lib_prefix=no
11160 need_version=no
11161 hardcode_into_libs=yes
11162 if test "$host_cpu" = ia64; then
11163 # AIX 5 supports IA64
11164 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 else
11167 # With GCC up to 2.95.x, collect2 would create an import file
11168 # for dependence libraries. The import file would start with
11169 # the line `#! .'. This would cause the generated library to
11170 # depend on `.', always an invalid library. This was fixed in
11171 # development snapshots of GCC prior to 3.0.
11172 case $host_os in
11173 aix4 | aix4.[01] | aix4.[01].*)
11174 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11175 echo ' yes '
11176 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11177 :
11178 else
11179 can_build_shared=no
11180 fi
11181 ;;
11182 esac
11183 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11184 # soname into executable. Probably we can add versioning support to
11185 # collect2, so additional links can be useful in future.
11186 if test "$aix_use_runtimelinking" = yes; then
11187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11188 # instead of lib<name>.a to let people know that these are not
11189 # typical AIX shared libraries.
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191 else
11192 # We preserve .a as extension for shared libraries through AIX4.2
11193 # and later when we are not doing run time linking.
11194 library_names_spec='${libname}${release}.a $libname.a'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 fi
11197 shlibpath_var=LIBPATH
11198 fi
11199 ;;
11200
11201amigaos*)
11202 case $host_cpu in
11203 powerpc)
11204 # Since July 2007 AmigaOS4 officially supports .so libraries.
11205 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 ;;
11208 m68k)
11209 library_names_spec='$libname.ixlibrary $libname.a'
11210 # Create ${libname}_ixlibrary.a entries in /sys/libs.
52327858 11211 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'
d7f09764
DN
11212 ;;
11213 esac
11214 ;;
11215
11216beos*)
11217 library_names_spec='${libname}${shared_ext}'
11218 dynamic_linker="$host_os ld.so"
11219 shlibpath_var=LIBRARY_PATH
11220 ;;
11221
11222bsdi[45]*)
11223 version_type=linux
11224 need_version=no
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11230 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11231 # the default ld.so.conf also contains /usr/contrib/lib and
11232 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11233 # libtool to hard-code these into programs
11234 ;;
11235
11236cygwin* | mingw* | pw32* | cegcc*)
11237 version_type=windows
11238 shrext_cmds=".dll"
11239 need_version=no
11240 need_lib_prefix=no
11241
11242 case $GCC,$host_os in
11243 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11244 library_names_spec='$libname.dll.a'
11245 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11246 postinstall_cmds='base_file=`basename \${file}`~
11247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11248 dldir=$destdir/`dirname \$dlpath`~
11249 test -d \$dldir || mkdir -p \$dldir~
11250 $install_prog $dir/$dlname \$dldir/$dlname~
11251 chmod a+x \$dldir/$dlname~
11252 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11253 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11254 fi'
11255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11256 dlpath=$dir/\$dldll~
11257 $RM \$dlpath'
11258 shlibpath_overrides_runpath=yes
11259
11260 case $host_os in
11261 cygwin*)
11262 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11263 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
52327858
L
11264
11265 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7f09764
DN
11266 ;;
11267 mingw* | cegcc*)
11268 # MinGW DLLs use traditional 'lib' prefix
11269 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7f09764
DN
11270 ;;
11271 pw32*)
11272 # pw32 DLLs use 'pw' prefix rather than 'lib'
11273 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11274 ;;
11275 esac
11276 ;;
11277
11278 *)
11279 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11280 ;;
11281 esac
11282 dynamic_linker='Win32 ld.exe'
11283 # FIXME: first we should search . and the directory the executable is in
11284 shlibpath_var=PATH
11285 ;;
11286
11287darwin* | rhapsody*)
11288 dynamic_linker="$host_os dyld"
11289 version_type=darwin
11290 need_lib_prefix=no
11291 need_version=no
11292 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11293 soname_spec='${libname}${release}${major}$shared_ext'
11294 shlibpath_overrides_runpath=yes
11295 shlibpath_var=DYLD_LIBRARY_PATH
11296 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11297
11298 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11299 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11300 ;;
11301
11302dgux*)
11303 version_type=linux
11304 need_lib_prefix=no
11305 need_version=no
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11307 soname_spec='${libname}${release}${shared_ext}$major'
11308 shlibpath_var=LD_LIBRARY_PATH
11309 ;;
11310
d7f09764
DN
11311freebsd* | dragonfly*)
11312 # DragonFly does not have aout. When/if they implement a new
11313 # versioning mechanism, adjust this.
11314 if test -x /usr/bin/objformat; then
11315 objformat=`/usr/bin/objformat`
11316 else
11317 case $host_os in
c6084f68 11318 freebsd[23].*) objformat=aout ;;
d7f09764
DN
11319 *) objformat=elf ;;
11320 esac
11321 fi
11322 version_type=freebsd-$objformat
11323 case $version_type in
11324 freebsd-elf*)
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11326 need_version=no
11327 need_lib_prefix=no
11328 ;;
11329 freebsd-*)
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11331 need_version=yes
11332 ;;
11333 esac
11334 shlibpath_var=LD_LIBRARY_PATH
11335 case $host_os in
c6084f68 11336 freebsd2.*)
d7f09764
DN
11337 shlibpath_overrides_runpath=yes
11338 ;;
11339 freebsd3.[01]* | freebsdelf3.[01]*)
11340 shlibpath_overrides_runpath=yes
11341 hardcode_into_libs=yes
11342 ;;
11343 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11344 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11345 shlibpath_overrides_runpath=no
11346 hardcode_into_libs=yes
11347 ;;
11348 *) # from 4.6 on, and DragonFly
11349 shlibpath_overrides_runpath=yes
11350 hardcode_into_libs=yes
11351 ;;
11352 esac
11353 ;;
11354
52327858
L
11355haiku*)
11356 version_type=linux
11357 need_lib_prefix=no
11358 need_version=no
11359 dynamic_linker="$host_os runtime_loader"
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 shlibpath_var=LIBRARY_PATH
11363 shlibpath_overrides_runpath=yes
11364 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11365 hardcode_into_libs=yes
11366 ;;
11367
d7f09764
DN
11368hpux9* | hpux10* | hpux11*)
11369 # Give a soname corresponding to the major version so that dld.sl refuses to
11370 # link against other versions.
11371 version_type=sunos
11372 need_lib_prefix=no
11373 need_version=no
11374 case $host_cpu in
11375 ia64*)
11376 shrext_cmds='.so'
11377 hardcode_into_libs=yes
11378 dynamic_linker="$host_os dld.so"
11379 shlibpath_var=LD_LIBRARY_PATH
11380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 if test "X$HPUX_IA64_MODE" = X32; then
11384 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11385 else
11386 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11387 fi
11388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11389 ;;
11390 hppa*64*)
11391 shrext_cmds='.sl'
11392 hardcode_into_libs=yes
11393 dynamic_linker="$host_os dld.sl"
11394 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11395 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11400 ;;
11401 *)
11402 shrext_cmds='.sl'
11403 dynamic_linker="$host_os dld.sl"
11404 shlibpath_var=SHLIB_PATH
11405 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 ;;
11409 esac
52327858 11410 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7f09764 11411 postinstall_cmds='chmod 555 $lib'
52327858
L
11412 # or fails outright, so override atomically:
11413 install_override_mode=555
d7f09764
DN
11414 ;;
11415
11416interix[3-9]*)
11417 version_type=linux
11418 need_lib_prefix=no
11419 need_version=no
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 shlibpath_overrides_runpath=no
11425 hardcode_into_libs=yes
11426 ;;
11427
11428irix5* | irix6* | nonstopux*)
11429 case $host_os in
11430 nonstopux*) version_type=nonstopux ;;
11431 *)
11432 if test "$lt_cv_prog_gnu_ld" = yes; then
11433 version_type=linux
11434 else
11435 version_type=irix
11436 fi ;;
11437 esac
11438 need_lib_prefix=no
11439 need_version=no
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11442 case $host_os in
11443 irix5* | nonstopux*)
11444 libsuff= shlibsuff=
11445 ;;
11446 *)
11447 case $LD in # libtool.m4 will add one of these switches to LD
11448 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11449 libsuff= shlibsuff= libmagic=32-bit;;
11450 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11451 libsuff=32 shlibsuff=N32 libmagic=N32;;
11452 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11453 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11454 *) libsuff= shlibsuff= libmagic=never-match;;
11455 esac
11456 ;;
11457 esac
11458 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11459 shlibpath_overrides_runpath=no
11460 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11461 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11462 hardcode_into_libs=yes
11463 ;;
11464
11465# No shared lib support for Linux oldld, aout, or coff.
11466linux*oldld* | linux*aout* | linux*coff*)
11467 dynamic_linker=no
11468 ;;
11469
11470# This must be Linux ELF.
e9085da5
MR
11471
11472# uclinux* changes (here and below) have been submitted to the libtool
11473# project, but have not yet been accepted: they are GCC-local changes
11474# for the time being. (See
11475# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
f56de355 11476linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
d7f09764
DN
11477 version_type=linux
11478 need_lib_prefix=no
11479 need_version=no
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481 soname_spec='${libname}${release}${shared_ext}$major'
11482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath=no
11485
11486 # Some binutils ld are patched to set DT_RUNPATH
22e05272 11487 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
d7f09764
DN
11488 $as_echo_n "(cached) " >&6
11489else
11490 lt_cv_shlibpath_overrides_runpath=no
11491 save_LDFLAGS=$LDFLAGS
11492 save_libdir=$libdir
11493 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11494 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496/* end confdefs.h. */
11497
11498int
11499main ()
11500{
11501
11502 ;
11503 return 0;
11504}
11505_ACEOF
11506if ac_fn_c_try_link "$LINENO"; then :
11507 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11508 lt_cv_shlibpath_overrides_runpath=yes
11509fi
11510fi
11511rm -f core conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513 LDFLAGS=$save_LDFLAGS
11514 libdir=$save_libdir
11515
11516fi
11517
11518 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11519
11520 # This implies no fast_install, which is unacceptable.
11521 # Some rework will be needed to allow for fast_install
11522 # before this can be enabled.
11523 hardcode_into_libs=yes
11524
11525 # Append ld.so.conf contents to the search path
11526 if test -f /etc/ld.so.conf; then
52327858 11527 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' ' '`
d7f09764
DN
11528 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11529 fi
11530
11531 # We used to test for /lib/ld.so.1 and disable shared libraries on
11532 # powerpc, because MkLinux only supported shared libraries with the
11533 # GNU dynamic linker. Since this was broken with cross compilers,
11534 # most powerpc-linux boxes support dynamic linking these days and
11535 # people can always --disable-shared, the test was removed, and we
11536 # assume the GNU/Linux dynamic linker is in use.
11537 dynamic_linker='GNU/Linux ld.so'
11538 ;;
11539
11540netbsd*)
11541 version_type=sunos
11542 need_lib_prefix=no
11543 need_version=no
11544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11547 dynamic_linker='NetBSD (a.out) ld.so'
11548 else
11549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11550 soname_spec='${libname}${release}${shared_ext}$major'
11551 dynamic_linker='NetBSD ld.elf_so'
11552 fi
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes
11555 hardcode_into_libs=yes
11556 ;;
11557
11558newsos6)
11559 version_type=linux
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 shlibpath_overrides_runpath=yes
11563 ;;
11564
11565*nto* | *qnx*)
11566 version_type=qnx
11567 need_lib_prefix=no
11568 need_version=no
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=no
11573 hardcode_into_libs=yes
11574 dynamic_linker='ldqnx.so'
11575 ;;
11576
11577openbsd*)
11578 version_type=sunos
11579 sys_lib_dlsearch_path_spec="/usr/lib"
11580 need_lib_prefix=no
11581 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11582 case $host_os in
11583 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11584 *) need_version=no ;;
11585 esac
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11590 case $host_os in
11591 openbsd2.[89] | openbsd2.[89].*)
11592 shlibpath_overrides_runpath=no
11593 ;;
11594 *)
11595 shlibpath_overrides_runpath=yes
11596 ;;
11597 esac
11598 else
11599 shlibpath_overrides_runpath=yes
11600 fi
11601 ;;
11602
11603os2*)
11604 libname_spec='$name'
11605 shrext_cmds=".dll"
11606 need_lib_prefix=no
11607 library_names_spec='$libname${shared_ext} $libname.a'
11608 dynamic_linker='OS/2 ld.exe'
11609 shlibpath_var=LIBPATH
11610 ;;
11611
11612osf3* | osf4* | osf5*)
11613 version_type=osf
11614 need_lib_prefix=no
11615 need_version=no
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11621 ;;
11622
11623rdos*)
11624 dynamic_linker=no
11625 ;;
11626
11627solaris*)
11628 version_type=linux
11629 need_lib_prefix=no
11630 need_version=no
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=yes
11635 hardcode_into_libs=yes
11636 # ldd complains unless libraries are executable
11637 postinstall_cmds='chmod +x $lib'
11638 ;;
11639
11640sunos4*)
11641 version_type=sunos
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=yes
11646 if test "$with_gnu_ld" = yes; then
11647 need_lib_prefix=no
11648 fi
11649 need_version=yes
11650 ;;
11651
11652sysv4 | sysv4.3*)
11653 version_type=linux
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655 soname_spec='${libname}${release}${shared_ext}$major'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 case $host_vendor in
11658 sni)
11659 shlibpath_overrides_runpath=no
11660 need_lib_prefix=no
11661 runpath_var=LD_RUN_PATH
11662 ;;
11663 siemens)
11664 need_lib_prefix=no
11665 ;;
11666 motorola)
11667 need_lib_prefix=no
11668 need_version=no
11669 shlibpath_overrides_runpath=no
11670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11671 ;;
11672 esac
11673 ;;
11674
11675sysv4*MP*)
11676 if test -d /usr/nec ;then
11677 version_type=linux
11678 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11679 soname_spec='$libname${shared_ext}.$major'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 fi
11682 ;;
11683
11684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11685 version_type=freebsd-elf
11686 need_lib_prefix=no
11687 need_version=no
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11689 soname_spec='${libname}${release}${shared_ext}$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 shlibpath_overrides_runpath=yes
11692 hardcode_into_libs=yes
11693 if test "$with_gnu_ld" = yes; then
11694 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11695 else
11696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11697 case $host_os in
11698 sco3.2v5*)
11699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11700 ;;
11701 esac
11702 fi
11703 sys_lib_dlsearch_path_spec='/usr/lib'
11704 ;;
11705
11706tpf*)
11707 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11708 version_type=linux
11709 need_lib_prefix=no
11710 need_version=no
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 shlibpath_overrides_runpath=no
11714 hardcode_into_libs=yes
11715 ;;
11716
11717uts4*)
11718 version_type=linux
11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720 soname_spec='${libname}${release}${shared_ext}$major'
11721 shlibpath_var=LD_LIBRARY_PATH
11722 ;;
11723
0ecd0f1c
OH
11724# Shared libraries for VwWorks, >= 7 only at this stage
11725# and (fpic) still incompatible with "large" code models
11726# in a few configurations. Only for RTP mode in any case,
11727# and upon explicit request at configure time.
11728vxworks7*)
11729 dynamic_linker=no
11730 case ${with_multisubdir}-${enable_shared} in
11731 *large*)
11732 ;;
11733 *mrtp*-yes)
11734 version_type=linux
11735 need_lib_prefix=no
11736 need_version=no
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 dynamic_linker="$host_os module_loader"
11740 ;;
11741 esac
11742 ;;
d7f09764
DN
11743*)
11744 dynamic_linker=no
11745 ;;
11746esac
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11748$as_echo "$dynamic_linker" >&6; }
11749test "$dynamic_linker" = no && can_build_shared=no
11750
11751variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11752if test "$GCC" = yes; then
11753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11754fi
11755
11756if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11757 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11758fi
11759if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11760 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11761fi
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
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
52327858
L
11843
11844
11845
11846
11847
d7f09764
DN
11848
11849
11850
11851
11852
11853
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11855$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11856hardcode_action=
11857if test -n "$hardcode_libdir_flag_spec" ||
11858 test -n "$runpath_var" ||
11859 test "X$hardcode_automatic" = "Xyes" ; then
11860
11861 # We can hardcode non-existent directories.
11862 if test "$hardcode_direct" != no &&
11863 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11864 # have to relink, otherwise we might link with an installed library
11865 # when we should be linking with a yet-to-be-installed one
11866 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11867 test "$hardcode_minus_L" != no; then
11868 # Linking always hardcodes the temporary library directory.
11869 hardcode_action=relink
11870 else
11871 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11872 hardcode_action=immediate
11873 fi
11874else
11875 # We cannot hardcode anything, or else we can only hardcode existing
11876 # directories.
11877 hardcode_action=unsupported
11878fi
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11880$as_echo "$hardcode_action" >&6; }
11881
11882if test "$hardcode_action" = relink ||
11883 test "$inherit_rpath" = yes; then
11884 # Fast installation is not supported
11885 enable_fast_install=no
11886elif test "$shlibpath_overrides_runpath" = yes ||
11887 test "$enable_shared" = no; then
11888 # Fast installation is not necessary
11889 enable_fast_install=needless
11890fi
11891
11892
11893
11894
11895
11896
11897 if test "x$enable_dlopen" != xyes; then
11898 enable_dlopen=unknown
11899 enable_dlopen_self=unknown
11900 enable_dlopen_self_static=unknown
11901else
11902 lt_cv_dlopen=no
11903 lt_cv_dlopen_libs=
11904
11905 case $host_os in
11906 beos*)
11907 lt_cv_dlopen="load_add_on"
11908 lt_cv_dlopen_libs=
11909 lt_cv_dlopen_self=yes
11910 ;;
11911
11912 mingw* | pw32* | cegcc*)
11913 lt_cv_dlopen="LoadLibrary"
11914 lt_cv_dlopen_libs=
11915 ;;
11916
11917 cygwin*)
11918 lt_cv_dlopen="dlopen"
11919 lt_cv_dlopen_libs=
11920 ;;
11921
11922 darwin*)
11923 # if libdl is installed we need to link against it
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11925$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11926if ${ac_cv_lib_dl_dlopen+:} false; then :
d7f09764
DN
11927 $as_echo_n "(cached) " >&6
11928else
11929 ac_check_lib_save_LIBS=$LIBS
11930LIBS="-ldl $LIBS"
11931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932/* end confdefs.h. */
11933
11934/* Override any GCC internal prototype to avoid an error.
11935 Use char because int might match the return type of a GCC
11936 builtin and then its argument prototype would still apply. */
11937#ifdef __cplusplus
11938extern "C"
11939#endif
11940char dlopen ();
11941int
11942main ()
11943{
11944return dlopen ();
11945 ;
11946 return 0;
11947}
11948_ACEOF
11949if ac_fn_c_try_link "$LINENO"; then :
11950 ac_cv_lib_dl_dlopen=yes
11951else
11952 ac_cv_lib_dl_dlopen=no
11953fi
11954rm -f core conftest.err conftest.$ac_objext \
11955 conftest$ac_exeext conftest.$ac_ext
11956LIBS=$ac_check_lib_save_LIBS
11957fi
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11959$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11960if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7f09764
DN
11961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11962else
11963
11964 lt_cv_dlopen="dyld"
11965 lt_cv_dlopen_libs=
11966 lt_cv_dlopen_self=yes
11967
11968fi
11969
11970 ;;
11971
11972 *)
11973 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11974if test "x$ac_cv_func_shl_load" = xyes; then :
d7f09764
DN
11975 lt_cv_dlopen="shl_load"
11976else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11978$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11979if ${ac_cv_lib_dld_shl_load+:} false; then :
d7f09764
DN
11980 $as_echo_n "(cached) " >&6
11981else
11982 ac_check_lib_save_LIBS=$LIBS
11983LIBS="-ldld $LIBS"
11984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985/* end confdefs.h. */
11986
11987/* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11990#ifdef __cplusplus
11991extern "C"
11992#endif
11993char shl_load ();
11994int
11995main ()
11996{
11997return shl_load ();
11998 ;
11999 return 0;
12000}
12001_ACEOF
12002if ac_fn_c_try_link "$LINENO"; then :
12003 ac_cv_lib_dld_shl_load=yes
12004else
12005 ac_cv_lib_dld_shl_load=no
12006fi
12007rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009LIBS=$ac_check_lib_save_LIBS
12010fi
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12012$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 12013if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d7f09764
DN
12014 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12015else
12016 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 12017if test "x$ac_cv_func_dlopen" = xyes; then :
d7f09764
DN
12018 lt_cv_dlopen="dlopen"
12019else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12021$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 12022if ${ac_cv_lib_dl_dlopen+:} false; then :
d7f09764
DN
12023 $as_echo_n "(cached) " >&6
12024else
12025 ac_check_lib_save_LIBS=$LIBS
12026LIBS="-ldl $LIBS"
12027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028/* end confdefs.h. */
12029
12030/* Override any GCC internal prototype to avoid an error.
12031 Use char because int might match the return type of a GCC
12032 builtin and then its argument prototype would still apply. */
12033#ifdef __cplusplus
12034extern "C"
12035#endif
12036char dlopen ();
12037int
12038main ()
12039{
12040return dlopen ();
12041 ;
12042 return 0;
12043}
12044_ACEOF
12045if ac_fn_c_try_link "$LINENO"; then :
12046 ac_cv_lib_dl_dlopen=yes
12047else
12048 ac_cv_lib_dl_dlopen=no
12049fi
12050rm -f core conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12052LIBS=$ac_check_lib_save_LIBS
12053fi
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12055$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 12056if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d7f09764
DN
12057 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12058else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12060$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 12061if ${ac_cv_lib_svld_dlopen+:} false; then :
d7f09764
DN
12062 $as_echo_n "(cached) " >&6
12063else
12064 ac_check_lib_save_LIBS=$LIBS
12065LIBS="-lsvld $LIBS"
12066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067/* end confdefs.h. */
12068
12069/* Override any GCC internal prototype to avoid an error.
12070 Use char because int might match the return type of a GCC
12071 builtin and then its argument prototype would still apply. */
12072#ifdef __cplusplus
12073extern "C"
12074#endif
12075char dlopen ();
12076int
12077main ()
12078{
12079return dlopen ();
12080 ;
12081 return 0;
12082}
12083_ACEOF
12084if ac_fn_c_try_link "$LINENO"; then :
12085 ac_cv_lib_svld_dlopen=yes
12086else
12087 ac_cv_lib_svld_dlopen=no
12088fi
12089rm -f core conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12091LIBS=$ac_check_lib_save_LIBS
12092fi
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12094$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 12095if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
d7f09764
DN
12096 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12097else
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12099$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 12100if ${ac_cv_lib_dld_dld_link+:} false; then :
d7f09764
DN
12101 $as_echo_n "(cached) " >&6
12102else
12103 ac_check_lib_save_LIBS=$LIBS
12104LIBS="-ldld $LIBS"
12105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106/* end confdefs.h. */
12107
12108/* Override any GCC internal prototype to avoid an error.
12109 Use char because int might match the return type of a GCC
12110 builtin and then its argument prototype would still apply. */
12111#ifdef __cplusplus
12112extern "C"
12113#endif
12114char dld_link ();
12115int
12116main ()
12117{
12118return dld_link ();
12119 ;
12120 return 0;
12121}
12122_ACEOF
12123if ac_fn_c_try_link "$LINENO"; then :
12124 ac_cv_lib_dld_dld_link=yes
12125else
12126 ac_cv_lib_dld_dld_link=no
12127fi
12128rm -f core conftest.err conftest.$ac_objext \
12129 conftest$ac_exeext conftest.$ac_ext
12130LIBS=$ac_check_lib_save_LIBS
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12133$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 12134if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d7f09764
DN
12135 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12136fi
12137
12138
12139fi
12140
12141
12142fi
12143
12144
12145fi
12146
12147
12148fi
12149
12150
12151fi
12152
12153 ;;
12154 esac
12155
12156 if test "x$lt_cv_dlopen" != xno; then
12157 enable_dlopen=yes
12158 else
12159 enable_dlopen=no
12160 fi
12161
12162 case $lt_cv_dlopen in
12163 dlopen)
12164 save_CPPFLAGS="$CPPFLAGS"
12165 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12166
12167 save_LDFLAGS="$LDFLAGS"
12168 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12169
12170 save_LIBS="$LIBS"
12171 LIBS="$lt_cv_dlopen_libs $LIBS"
12172
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12174$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 12175if ${lt_cv_dlopen_self+:} false; then :
d7f09764
DN
12176 $as_echo_n "(cached) " >&6
12177else
12178 if test "$cross_compiling" = yes; then :
12179 lt_cv_dlopen_self=cross
12180else
12181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12182 lt_status=$lt_dlunknown
12183 cat > conftest.$ac_ext <<_LT_EOF
9c7797a8 12184#line 12184 "configure"
d7f09764
DN
12185#include "confdefs.h"
12186
12187#if HAVE_DLFCN_H
12188#include <dlfcn.h>
12189#endif
12190
12191#include <stdio.h>
12192
12193#ifdef RTLD_GLOBAL
12194# define LT_DLGLOBAL RTLD_GLOBAL
12195#else
12196# ifdef DL_GLOBAL
12197# define LT_DLGLOBAL DL_GLOBAL
12198# else
12199# define LT_DLGLOBAL 0
12200# endif
12201#endif
12202
12203/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12204 find out it does not work in some platform. */
12205#ifndef LT_DLLAZY_OR_NOW
12206# ifdef RTLD_LAZY
12207# define LT_DLLAZY_OR_NOW RTLD_LAZY
12208# else
12209# ifdef DL_LAZY
12210# define LT_DLLAZY_OR_NOW DL_LAZY
12211# else
12212# ifdef RTLD_NOW
12213# define LT_DLLAZY_OR_NOW RTLD_NOW
12214# else
12215# ifdef DL_NOW
12216# define LT_DLLAZY_OR_NOW DL_NOW
12217# else
12218# define LT_DLLAZY_OR_NOW 0
12219# endif
12220# endif
12221# endif
12222# endif
12223#endif
12224
52327858
L
12225/* When -fvisbility=hidden is used, assume the code has been annotated
12226 correspondingly for the symbols needed. */
12227#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12228void fnord () __attribute__((visibility("default")));
12229#endif
12230
12231void fnord () { int i=42; }
d7f09764
DN
12232int main ()
12233{
12234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12235 int status = $lt_dlunknown;
12236
12237 if (self)
12238 {
12239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
12240 else
12241 {
12242 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12243 else puts (dlerror ());
12244 }
d7f09764
DN
12245 /* dlclose (self); */
12246 }
12247 else
12248 puts (dlerror ());
12249
12250 return status;
12251}
12252_LT_EOF
12253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12254 (eval $ac_link) 2>&5
12255 ac_status=$?
12256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12257 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12258 (./conftest; exit; ) >&5 2>/dev/null
12259 lt_status=$?
12260 case x$lt_status in
12261 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12262 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12263 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12264 esac
12265 else :
12266 # compilation failed
12267 lt_cv_dlopen_self=no
12268 fi
12269fi
12270rm -fr conftest*
12271
12272
12273fi
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12275$as_echo "$lt_cv_dlopen_self" >&6; }
12276
12277 if test "x$lt_cv_dlopen_self" = xyes; then
12278 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12280$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 12281if ${lt_cv_dlopen_self_static+:} false; then :
d7f09764
DN
12282 $as_echo_n "(cached) " >&6
12283else
12284 if test "$cross_compiling" = yes; then :
12285 lt_cv_dlopen_self_static=cross
12286else
12287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12288 lt_status=$lt_dlunknown
12289 cat > conftest.$ac_ext <<_LT_EOF
9c7797a8 12290#line 12290 "configure"
d7f09764
DN
12291#include "confdefs.h"
12292
12293#if HAVE_DLFCN_H
12294#include <dlfcn.h>
12295#endif
12296
12297#include <stdio.h>
12298
12299#ifdef RTLD_GLOBAL
12300# define LT_DLGLOBAL RTLD_GLOBAL
12301#else
12302# ifdef DL_GLOBAL
12303# define LT_DLGLOBAL DL_GLOBAL
12304# else
12305# define LT_DLGLOBAL 0
12306# endif
12307#endif
12308
12309/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12310 find out it does not work in some platform. */
12311#ifndef LT_DLLAZY_OR_NOW
12312# ifdef RTLD_LAZY
12313# define LT_DLLAZY_OR_NOW RTLD_LAZY
12314# else
12315# ifdef DL_LAZY
12316# define LT_DLLAZY_OR_NOW DL_LAZY
12317# else
12318# ifdef RTLD_NOW
12319# define LT_DLLAZY_OR_NOW RTLD_NOW
12320# else
12321# ifdef DL_NOW
12322# define LT_DLLAZY_OR_NOW DL_NOW
12323# else
12324# define LT_DLLAZY_OR_NOW 0
12325# endif
12326# endif
12327# endif
12328# endif
12329#endif
12330
52327858
L
12331/* When -fvisbility=hidden is used, assume the code has been annotated
12332 correspondingly for the symbols needed. */
12333#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12334void fnord () __attribute__((visibility("default")));
12335#endif
12336
12337void fnord () { int i=42; }
d7f09764
DN
12338int main ()
12339{
12340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12341 int status = $lt_dlunknown;
12342
12343 if (self)
12344 {
12345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
52327858
L
12346 else
12347 {
12348 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12349 else puts (dlerror ());
12350 }
d7f09764
DN
12351 /* dlclose (self); */
12352 }
12353 else
12354 puts (dlerror ());
12355
12356 return status;
12357}
12358_LT_EOF
12359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12360 (eval $ac_link) 2>&5
12361 ac_status=$?
12362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12363 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12364 (./conftest; exit; ) >&5 2>/dev/null
12365 lt_status=$?
12366 case x$lt_status in
12367 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12368 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12369 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12370 esac
12371 else :
12372 # compilation failed
12373 lt_cv_dlopen_self_static=no
12374 fi
12375fi
12376rm -fr conftest*
12377
12378
12379fi
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12381$as_echo "$lt_cv_dlopen_self_static" >&6; }
12382 fi
12383
12384 CPPFLAGS="$save_CPPFLAGS"
12385 LDFLAGS="$save_LDFLAGS"
12386 LIBS="$save_LIBS"
12387 ;;
12388 esac
12389
12390 case $lt_cv_dlopen_self in
12391 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12392 *) enable_dlopen_self=unknown ;;
12393 esac
12394
12395 case $lt_cv_dlopen_self_static in
12396 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12397 *) enable_dlopen_self_static=unknown ;;
12398 esac
12399fi
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417striplib=
12418old_striplib=
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12420$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12421if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12422 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12423 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12425$as_echo "yes" >&6; }
12426else
12427# FIXME - insert some real tests, host_os isn't really good enough
12428 case $host_os in
12429 darwin*)
12430 if test -n "$STRIP" ; then
12431 striplib="$STRIP -x"
12432 old_striplib="$STRIP -S"
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12434$as_echo "yes" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437$as_echo "no" >&6; }
12438 fi
12439 ;;
12440 *)
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442$as_echo "no" >&6; }
12443 ;;
12444 esac
12445fi
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458 # Report which library types will actually be built
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12460$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12462$as_echo "$can_build_shared" >&6; }
12463
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12465$as_echo_n "checking whether to build shared libraries... " >&6; }
12466 test "$can_build_shared" = "no" && enable_shared=no
12467
12468 # On AIX, shared libraries and static libraries use the same namespace, and
12469 # are all built from PIC.
12470 case $host_os in
12471 aix3*)
12472 test "$enable_shared" = yes && enable_static=no
12473 if test -n "$RANLIB"; then
12474 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12475 postinstall_cmds='$RANLIB $lib'
12476 fi
12477 ;;
12478
12479 aix[4-9]*)
12480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12481 test "$enable_shared" = yes && enable_static=no
12482 fi
12483 ;;
12484 esac
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12486$as_echo "$enable_shared" >&6; }
12487
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12489$as_echo_n "checking whether to build static libraries... " >&6; }
12490 # Make sure either enable_shared or enable_static is yes.
12491 test "$enable_shared" = yes || enable_static=yes
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12493$as_echo "$enable_static" >&6; }
12494
12495
12496
12497
12498fi
12499ac_ext=c
12500ac_cpp='$CPP $CPPFLAGS'
12501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12503ac_compiler_gnu=$ac_cv_c_compiler_gnu
12504
12505CC="$lt_save_CC"
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519 ac_config_commands="$ac_config_commands libtool"
12520
12521
12522
12523
12524# Only expand once:
12525
12526
12527
7de6ba7a
DK
12528
12529
12530case $host in
12531 *-cygwin* | *-mingw*)
12532 # 'host' will be top-level target in the case of a target lib,
12533 # we must compare to with_cross_host to decide if this is a native
12534 # or cross-compiler and select where to install dlls appropriately.
12535 if test -n "$with_cross_host" &&
12536 test x"$with_cross_host" != x"no"; then
12537 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12538 else
12539 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12540 fi
12541 ;;
12542 *)
12543 lt_host_flags=
12544 ;;
12545esac
12546
12547
12548
12549
d19e0f01
DK
12550ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12551case $ac_cv_c_int64_t in #(
12552 no|yes) ;; #(
12553 *)
12554
12555cat >>confdefs.h <<_ACEOF
12556#define int64_t $ac_cv_c_int64_t
12557_ACEOF
12558;;
12559esac
12560
21750c78
RE
12561ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12562case $ac_cv_c_uint64_t in #(
12563 no|yes) ;; #(
12564 *)
12565
12566$as_echo "#define _UINT64_T 1" >>confdefs.h
12567
12568
12569cat >>confdefs.h <<_ACEOF
12570#define uint64_t $ac_cv_c_uint64_t
12571_ACEOF
12572;;
12573 esac
12574
ec692d5f
KT
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12576$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
22e05272 12577if ${ac_cv_header_sys_wait_h+:} false; then :
ec692d5f
KT
12578 $as_echo_n "(cached) " >&6
12579else
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581/* end confdefs.h. */
12582#include <sys/types.h>
12583#include <sys/wait.h>
12584#ifndef WEXITSTATUS
12585# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12586#endif
12587#ifndef WIFEXITED
12588# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12589#endif
a2254c5d 12590
ec692d5f
KT
12591int
12592main ()
12593{
12594 int s;
12595 wait (&s);
12596 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12597 ;
12598 return 0;
12599}
12600_ACEOF
12601if ac_fn_c_try_compile "$LINENO"; then :
12602 ac_cv_header_sys_wait_h=yes
12603else
12604 ac_cv_header_sys_wait_h=no
12605fi
12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a2254c5d 12607fi
ec692d5f
KT
12608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12609$as_echo "$ac_cv_header_sys_wait_h" >&6; }
12610if test $ac_cv_header_sys_wait_h = yes; then
a2254c5d 12611
ec692d5f
KT
12612$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12613
12614fi
a2254c5d 12615
d7f09764
DN
12616ac_config_files="$ac_config_files Makefile"
12617
48215350
DK
12618ac_config_headers="$ac_config_headers config.h"
12619
d7f09764
DN
12620cat >confcache <<\_ACEOF
12621# This file is a shell script that caches the results of configure
12622# tests run on this system so they can be shared between configure
12623# scripts and configure runs, see configure's option --config-cache.
12624# It is not useful on other systems. If it contains results you don't
12625# want to keep, you may remove or edit it.
12626#
12627# config.status only pays attention to the cache file if you give it
12628# the --recheck option to rerun configure.
12629#
12630# `ac_cv_env_foo' variables (set or unset) will be overridden when
12631# loading this file, other *unset* `ac_cv_foo' will be assigned the
12632# following values.
12633
12634_ACEOF
12635
12636# The following way of writing the cache mishandles newlines in values,
12637# but we know of no workaround that is simple, portable, and efficient.
12638# So, we kill variables containing newlines.
12639# Ultrix sh set writes to stderr and can't be redirected directly,
12640# and sets the high bit in the cache file unless we assign to the vars.
12641(
12642 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12643 eval ac_val=\$$ac_var
12644 case $ac_val in #(
12645 *${as_nl}*)
12646 case $ac_var in #(
12647 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12648$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12649 esac
12650 case $ac_var in #(
12651 _ | IFS | as_nl) ;; #(
12652 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12653 *) { eval $ac_var=; unset $ac_var;} ;;
12654 esac ;;
12655 esac
12656 done
12657
12658 (set) 2>&1 |
12659 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12660 *${as_nl}ac_space=\ *)
12661 # `set' does not quote correctly, so add quotes: double-quote
12662 # substitution turns \\\\ into \\, and sed turns \\ into \.
12663 sed -n \
12664 "s/'/'\\\\''/g;
12665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12666 ;; #(
12667 *)
12668 # `set' quotes correctly as required by POSIX, so do not add quotes.
12669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12670 ;;
12671 esac |
12672 sort
12673) |
12674 sed '
12675 /^ac_cv_env_/b end
12676 t clear
12677 :clear
12678 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12679 t end
12680 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12681 :end' >>confcache
12682if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12683 if test -w "$cache_file"; then
22e05272 12684 if test "x$cache_file" != "x/dev/null"; then
d7f09764
DN
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12686$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
12687 if test ! -f "$cache_file" || test -h "$cache_file"; then
12688 cat confcache >"$cache_file"
12689 else
12690 case $cache_file in #(
12691 */* | ?:*)
12692 mv -f confcache "$cache_file"$$ &&
12693 mv -f "$cache_file"$$ "$cache_file" ;; #(
12694 *)
12695 mv -f confcache "$cache_file" ;;
12696 esac
12697 fi
12698 fi
d7f09764
DN
12699 else
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12701$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12702 fi
12703fi
12704rm -f confcache
12705
12706test "x$prefix" = xNONE && prefix=$ac_default_prefix
12707# Let make expand exec_prefix.
12708test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12709
48215350 12710DEFS=-DHAVE_CONFIG_H
d7f09764
DN
12711
12712ac_libobjs=
12713ac_ltlibobjs=
22e05272 12714U=
d7f09764
DN
12715for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12716 # 1. Remove the extension, and $U if already installed.
12717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12718 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12720 # will be set to the directory where LIBOBJS objects are built.
12721 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12722 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12723done
12724LIBOBJS=$ac_libobjs
12725
12726LTLIBOBJS=$ac_ltlibobjs
12727
12728
22e05272
JM
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12730$as_echo_n "checking that generated files are newer than configure... " >&6; }
12731 if test -n "$am_sleep_pid"; then
12732 # Hide warnings about reused PIDs.
12733 wait $am_sleep_pid 2>/dev/null
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12736$as_echo "done" >&6; }
d7f09764
DN
12737 if test -n "$EXEEXT"; then
12738 am__EXEEXT_TRUE=
12739 am__EXEEXT_FALSE='#'
12740else
12741 am__EXEEXT_TRUE='#'
12742 am__EXEEXT_FALSE=
12743fi
12744
03428d41 12745if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 12746 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
03428d41
RG
12747Usually this means the macro was only invoked conditionally." "$LINENO" 5
12748fi
d7f09764 12749if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 12750 as_fn_error $? "conditional \"AMDEP\" was never defined.
d7f09764
DN
12751Usually this means the macro was only invoked conditionally." "$LINENO" 5
12752fi
12753if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 12754 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
d7f09764
DN
12755Usually this means the macro was only invoked conditionally." "$LINENO" 5
12756fi
dcbc9df9 12757if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 12758 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
dcbc9df9
UB
12759Usually this means the macro was only invoked conditionally." "$LINENO" 5
12760fi
6ee58926
JJ
12761if test -z "${LTO_PLUGIN_USE_SYMVER_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_FALSE}"; then
12762 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER\" was never defined.
12763Usually this means the macro was only invoked conditionally." "$LINENO" 5
12764fi
12765if test -z "${LTO_PLUGIN_USE_SYMVER_GNU_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_GNU_FALSE}"; then
12766 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_GNU\" was never defined.
12767Usually this means the macro was only invoked conditionally." "$LINENO" 5
12768fi
12769if test -z "${LTO_PLUGIN_USE_SYMVER_SUN_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_SUN_FALSE}"; then
12770 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_SUN\" was never defined.
12771Usually this means the macro was only invoked conditionally." "$LINENO" 5
12772fi
d7f09764 12773
22e05272 12774: "${CONFIG_STATUS=./config.status}"
d7f09764
DN
12775ac_write_fail=0
12776ac_clean_files_save=$ac_clean_files
12777ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12779$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12780as_write_fail=0
12781cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12782#! $SHELL
12783# Generated by $as_me.
12784# Run this file to recreate the current configuration.
12785# Compiler output produced by configure, useful for debugging
12786# configure, is in config.log if it exists.
12787
12788debug=false
12789ac_cs_recheck=false
12790ac_cs_silent=false
12791
12792SHELL=\${CONFIG_SHELL-$SHELL}
12793export SHELL
12794_ASEOF
12795cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12796## -------------------- ##
12797## M4sh Initialization. ##
12798## -------------------- ##
12799
12800# Be more Bourne compatible
12801DUALCASE=1; export DUALCASE # for MKS sh
12802if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12803 emulate sh
12804 NULLCMD=:
12805 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12806 # is contrary to our usage. Disable this feature.
12807 alias -g '${1+"$@"}'='"$@"'
12808 setopt NO_GLOB_SUBST
12809else
12810 case `(set -o) 2>/dev/null` in #(
12811 *posix*) :
12812 set -o posix ;; #(
12813 *) :
12814 ;;
12815esac
12816fi
12817
12818
12819as_nl='
12820'
12821export as_nl
12822# Printing a long string crashes Solaris 7 /usr/bin/printf.
12823as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12824as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12825as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12826# Prefer a ksh shell builtin over an external printf program on Solaris,
12827# but without wasting forks for bash or zsh.
12828if test -z "$BASH_VERSION$ZSH_VERSION" \
12829 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12830 as_echo='print -r --'
12831 as_echo_n='print -rn --'
12832elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12833 as_echo='printf %s\n'
12834 as_echo_n='printf %s'
12835else
12836 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12837 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12838 as_echo_n='/usr/ucb/echo -n'
12839 else
12840 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12841 as_echo_n_body='eval
12842 arg=$1;
12843 case $arg in #(
12844 *"$as_nl"*)
12845 expr "X$arg" : "X\\(.*\\)$as_nl";
12846 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12847 esac;
12848 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12849 '
12850 export as_echo_n_body
12851 as_echo_n='sh -c $as_echo_n_body as_echo'
12852 fi
12853 export as_echo_body
12854 as_echo='sh -c $as_echo_body as_echo'
12855fi
12856
12857# The user is always right.
12858if test "${PATH_SEPARATOR+set}" != set; then
12859 PATH_SEPARATOR=:
12860 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12861 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12862 PATH_SEPARATOR=';'
12863 }
12864fi
12865
12866
12867# IFS
12868# We need space, tab and new line, in precisely that order. Quoting is
12869# there to prevent editors from complaining about space-tab.
12870# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12871# splitting by setting IFS to empty value.)
12872IFS=" "" $as_nl"
12873
12874# Find who we are. Look in the path if we contain no directory separator.
22e05272 12875as_myself=
d7f09764
DN
12876case $0 in #((
12877 *[\\/]* ) as_myself=$0 ;;
12878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879for as_dir in $PATH
12880do
12881 IFS=$as_save_IFS
12882 test -z "$as_dir" && as_dir=.
12883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12884 done
12885IFS=$as_save_IFS
12886
12887 ;;
12888esac
12889# We did not find ourselves, most probably we were run as `sh COMMAND'
12890# in which case we are not to be found in the path.
12891if test "x$as_myself" = x; then
12892 as_myself=$0
12893fi
12894if test ! -f "$as_myself"; then
12895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12896 exit 1
12897fi
12898
12899# Unset variables that we do not need and which cause bugs (e.g. in
12900# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12901# suppresses any "Segmentation fault" message there. '((' could
12902# trigger a bug in pdksh 5.2.14.
12903for as_var in BASH_ENV ENV MAIL MAILPATH
12904do eval test x\${$as_var+set} = xset \
12905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12906done
12907PS1='$ '
12908PS2='> '
12909PS4='+ '
12910
12911# NLS nuisances.
12912LC_ALL=C
12913export LC_ALL
12914LANGUAGE=C
12915export LANGUAGE
12916
12917# CDPATH.
12918(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12919
12920
22e05272
JM
12921# as_fn_error STATUS ERROR [LINENO LOG_FD]
12922# ----------------------------------------
d7f09764
DN
12923# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12924# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 12925# script with STATUS, using 1 if that was 0.
d7f09764
DN
12926as_fn_error ()
12927{
22e05272
JM
12928 as_status=$1; test $as_status -eq 0 && as_status=1
12929 if test "$4"; then
12930 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
d7f09764 12932 fi
22e05272 12933 $as_echo "$as_me: error: $2" >&2
d7f09764
DN
12934 as_fn_exit $as_status
12935} # as_fn_error
12936
12937
12938# as_fn_set_status STATUS
12939# -----------------------
12940# Set $? to STATUS, without forking.
12941as_fn_set_status ()
12942{
12943 return $1
12944} # as_fn_set_status
12945
12946# as_fn_exit STATUS
12947# -----------------
12948# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12949as_fn_exit ()
12950{
12951 set +e
12952 as_fn_set_status $1
12953 exit $1
12954} # as_fn_exit
12955
12956# as_fn_unset VAR
12957# ---------------
12958# Portably unset VAR.
12959as_fn_unset ()
12960{
12961 { eval $1=; unset $1;}
12962}
12963as_unset=as_fn_unset
12964# as_fn_append VAR VALUE
12965# ----------------------
12966# Append the text in VALUE to the end of the definition contained in VAR. Take
12967# advantage of any shell optimizations that allow amortized linear growth over
12968# repeated appends, instead of the typical quadratic growth present in naive
12969# implementations.
12970if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12971 eval 'as_fn_append ()
12972 {
12973 eval $1+=\$2
12974 }'
12975else
12976 as_fn_append ()
12977 {
12978 eval $1=\$$1\$2
12979 }
12980fi # as_fn_append
12981
12982# as_fn_arith ARG...
12983# ------------------
12984# Perform arithmetic evaluation on the ARGs, and store the result in the
12985# global $as_val. Take advantage of shells that can avoid forks. The arguments
12986# must be portable across $(()) and expr.
12987if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12988 eval 'as_fn_arith ()
12989 {
12990 as_val=$(( $* ))
12991 }'
12992else
12993 as_fn_arith ()
12994 {
12995 as_val=`expr "$@" || test $? -eq 1`
12996 }
12997fi # as_fn_arith
12998
12999
13000if expr a : '\(a\)' >/dev/null 2>&1 &&
13001 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13002 as_expr=expr
13003else
13004 as_expr=false
13005fi
13006
13007if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13008 as_basename=basename
13009else
13010 as_basename=false
13011fi
13012
13013if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13014 as_dirname=dirname
13015else
13016 as_dirname=false
13017fi
13018
13019as_me=`$as_basename -- "$0" ||
13020$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13021 X"$0" : 'X\(//\)$' \| \
13022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13023$as_echo X/"$0" |
13024 sed '/^.*\/\([^/][^/]*\)\/*$/{
13025 s//\1/
13026 q
13027 }
13028 /^X\/\(\/\/\)$/{
13029 s//\1/
13030 q
13031 }
13032 /^X\/\(\/\).*/{
13033 s//\1/
13034 q
13035 }
13036 s/.*/./; q'`
13037
13038# Avoid depending upon Character Ranges.
13039as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13040as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13041as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13042as_cr_digits='0123456789'
13043as_cr_alnum=$as_cr_Letters$as_cr_digits
13044
13045ECHO_C= ECHO_N= ECHO_T=
13046case `echo -n x` in #(((((
13047-n*)
13048 case `echo 'xy\c'` in
13049 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13050 xy) ECHO_C='\c';;
13051 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13052 ECHO_T=' ';;
13053 esac;;
13054*)
13055 ECHO_N='-n';;
13056esac
13057
13058rm -f conf$$ conf$$.exe conf$$.file
13059if test -d conf$$.dir; then
13060 rm -f conf$$.dir/conf$$.file
13061else
13062 rm -f conf$$.dir
13063 mkdir conf$$.dir 2>/dev/null
13064fi
13065if (echo >conf$$.file) 2>/dev/null; then
13066 if ln -s conf$$.file conf$$ 2>/dev/null; then
13067 as_ln_s='ln -s'
13068 # ... but there are two gotchas:
13069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 13071 # In both cases, we have to default to `cp -pR'.
d7f09764 13072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 13073 as_ln_s='cp -pR'
d7f09764
DN
13074 elif ln conf$$.file conf$$ 2>/dev/null; then
13075 as_ln_s=ln
13076 else
22e05272 13077 as_ln_s='cp -pR'
d7f09764
DN
13078 fi
13079else
22e05272 13080 as_ln_s='cp -pR'
d7f09764
DN
13081fi
13082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13083rmdir conf$$.dir 2>/dev/null
13084
13085
13086# as_fn_mkdir_p
13087# -------------
13088# Create "$as_dir" as a directory, including parents if necessary.
13089as_fn_mkdir_p ()
13090{
13091
13092 case $as_dir in #(
13093 -*) as_dir=./$as_dir;;
13094 esac
13095 test -d "$as_dir" || eval $as_mkdir_p || {
13096 as_dirs=
13097 while :; do
13098 case $as_dir in #(
13099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13100 *) as_qdir=$as_dir;;
13101 esac
13102 as_dirs="'$as_qdir' $as_dirs"
13103 as_dir=`$as_dirname -- "$as_dir" ||
13104$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13105 X"$as_dir" : 'X\(//\)[^/]' \| \
13106 X"$as_dir" : 'X\(//\)$' \| \
13107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13108$as_echo X"$as_dir" |
13109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13110 s//\1/
13111 q
13112 }
13113 /^X\(\/\/\)[^/].*/{
13114 s//\1/
13115 q
13116 }
13117 /^X\(\/\/\)$/{
13118 s//\1/
13119 q
13120 }
13121 /^X\(\/\).*/{
13122 s//\1/
13123 q
13124 }
13125 s/.*/./; q'`
13126 test -d "$as_dir" && break
13127 done
13128 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 13129 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d7f09764
DN
13130
13131
13132} # as_fn_mkdir_p
13133if mkdir -p . 2>/dev/null; then
13134 as_mkdir_p='mkdir -p "$as_dir"'
13135else
13136 test -d ./-p && rmdir ./-p
13137 as_mkdir_p=false
13138fi
13139
22e05272
JM
13140
13141# as_fn_executable_p FILE
13142# -----------------------
13143# Test if FILE is an executable regular file.
13144as_fn_executable_p ()
13145{
13146 test -f "$1" && test -x "$1"
13147} # as_fn_executable_p
13148as_test_x='test -x'
13149as_executable_p=as_fn_executable_p
d7f09764
DN
13150
13151# Sed expression to map a string onto a valid CPP name.
13152as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13153
13154# Sed expression to map a string onto a valid variable name.
13155as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13156
13157
13158exec 6>&1
13159## ----------------------------------- ##
13160## Main body of $CONFIG_STATUS script. ##
13161## ----------------------------------- ##
13162_ASEOF
13163test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13164
13165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13166# Save the log message, to keep $0 and so on meaningful, and to
13167# report actual input values of CONFIG_FILES etc. instead of their
13168# values after options handling.
13169ac_log="
13170This file was extended by LTO plugin for ld $as_me 0.1, which was
22e05272 13171generated by GNU Autoconf 2.69. Invocation command line was
d7f09764
DN
13172
13173 CONFIG_FILES = $CONFIG_FILES
13174 CONFIG_HEADERS = $CONFIG_HEADERS
13175 CONFIG_LINKS = $CONFIG_LINKS
13176 CONFIG_COMMANDS = $CONFIG_COMMANDS
13177 $ $0 $@
13178
13179on `(hostname || uname -n) 2>/dev/null | sed 1q`
13180"
13181
13182_ACEOF
13183
13184case $ac_config_files in *"
13185"*) set x $ac_config_files; shift; ac_config_files=$*;;
13186esac
13187
48215350
DK
13188case $ac_config_headers in *"
13189"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13190esac
d7f09764
DN
13191
13192
13193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13194# Files that config.status was made for.
13195config_files="$ac_config_files"
48215350 13196config_headers="$ac_config_headers"
d7f09764
DN
13197config_commands="$ac_config_commands"
13198
13199_ACEOF
13200
13201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13202ac_cs_usage="\
13203\`$as_me' instantiates files and other configuration actions
13204from templates according to the current configuration. Unless the files
13205and actions are specified as TAGs, all are instantiated by default.
13206
13207Usage: $0 [OPTION]... [TAG]...
13208
13209 -h, --help print this help, then exit
13210 -V, --version print version number and configuration settings, then exit
22e05272 13211 --config print configuration, then exit
d7f09764
DN
13212 -q, --quiet, --silent
13213 do not print progress messages
13214 -d, --debug don't remove temporary files
13215 --recheck update $as_me by reconfiguring in the same conditions
13216 --file=FILE[:TEMPLATE]
13217 instantiate the configuration file FILE
48215350
DK
13218 --header=FILE[:TEMPLATE]
13219 instantiate the configuration header FILE
d7f09764
DN
13220
13221Configuration files:
13222$config_files
13223
48215350
DK
13224Configuration headers:
13225$config_headers
13226
d7f09764
DN
13227Configuration commands:
13228$config_commands
13229
13230Report bugs to the package provider."
13231
13232_ACEOF
13233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 13234ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
d7f09764
DN
13235ac_cs_version="\\
13236LTO plugin for ld config.status 0.1
22e05272
JM
13237configured by $0, generated by GNU Autoconf 2.69,
13238 with options \\"\$ac_cs_config\\"
d7f09764 13239
22e05272 13240Copyright (C) 2012 Free Software Foundation, Inc.
d7f09764
DN
13241This config.status script is free software; the Free Software Foundation
13242gives unlimited permission to copy, distribute and modify it."
13243
13244ac_pwd='$ac_pwd'
13245srcdir='$srcdir'
13246INSTALL='$INSTALL'
13247MKDIR_P='$MKDIR_P'
13248AWK='$AWK'
13249test -n "\$AWK" || AWK=awk
13250_ACEOF
13251
13252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13253# The default lists apply if the user does not specify any file.
13254ac_need_defaults=:
13255while test $# != 0
13256do
13257 case $1 in
22e05272 13258 --*=?*)
d7f09764
DN
13259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13261 ac_shift=:
13262 ;;
22e05272
JM
13263 --*=)
13264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13265 ac_optarg=
13266 ac_shift=:
13267 ;;
d7f09764
DN
13268 *)
13269 ac_option=$1
13270 ac_optarg=$2
13271 ac_shift=shift
13272 ;;
13273 esac
13274
13275 case $ac_option in
13276 # Handling of the options.
13277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13278 ac_cs_recheck=: ;;
13279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13280 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
13281 --config | --confi | --conf | --con | --co | --c )
13282 $as_echo "$ac_cs_config"; exit ;;
d7f09764
DN
13283 --debug | --debu | --deb | --de | --d | -d )
13284 debug=: ;;
13285 --file | --fil | --fi | --f )
13286 $ac_shift
13287 case $ac_optarg in
13288 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 13289 '') as_fn_error $? "missing file argument" ;;
d7f09764
DN
13290 esac
13291 as_fn_append CONFIG_FILES " '$ac_optarg'"
13292 ac_need_defaults=false;;
48215350
DK
13293 --header | --heade | --head | --hea )
13294 $ac_shift
13295 case $ac_optarg in
13296 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13297 esac
13298 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13299 ac_need_defaults=false;;
13300 --he | --h)
13301 # Conflict between --help and --header
22e05272 13302 as_fn_error $? "ambiguous option: \`$1'
48215350
DK
13303Try \`$0 --help' for more information.";;
13304 --help | --hel | -h )
d7f09764
DN
13305 $as_echo "$ac_cs_usage"; exit ;;
13306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13307 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13308 ac_cs_silent=: ;;
13309
13310 # This is an error.
22e05272 13311 -*) as_fn_error $? "unrecognized option: \`$1'
d7f09764
DN
13312Try \`$0 --help' for more information." ;;
13313
13314 *) as_fn_append ac_config_targets " $1"
13315 ac_need_defaults=false ;;
13316
13317 esac
13318 shift
13319done
13320
13321ac_configure_extra_args=
13322
13323if $ac_cs_silent; then
13324 exec 6>/dev/null
13325 ac_configure_extra_args="$ac_configure_extra_args --silent"
13326fi
13327
13328_ACEOF
13329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13330if \$ac_cs_recheck; then
22e05272 13331 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d7f09764
DN
13332 shift
13333 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13334 CONFIG_SHELL='$SHELL'
13335 export CONFIG_SHELL
13336 exec "\$@"
13337fi
13338
13339_ACEOF
13340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341exec 5>>config.log
13342{
13343 echo
13344 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13345## Running $as_me. ##
13346_ASBOX
13347 $as_echo "$ac_log"
13348} >&5
13349
13350_ACEOF
13351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13352#
13353# INIT-COMMANDS
13354#
13355AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13356
13357
13358# The HP-UX ksh and POSIX shell print the target directory to stdout
13359# if CDPATH is set.
13360(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13361
13362sed_quote_subst='$sed_quote_subst'
13363double_quote_subst='$double_quote_subst'
13364delay_variable_subst='$delay_variable_subst'
52327858
L
13365macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13366macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13367enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13368enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13369pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13370enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13371SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13372ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13373host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13374host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13375host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13376build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13377build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13378build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13379SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13380Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13381GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13382EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13383FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13384LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13385NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13386LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13387max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13388ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13389exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13390lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13391lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13392lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13393reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13394reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13395OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13396deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13397file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13398AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13399AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13400STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13401RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13402old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13403old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13404old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13405lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13406CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13407CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13408compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13409GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13410lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13411lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13412lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13413lt_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"`'
13414objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13415MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13416lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13417lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13418lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13419lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13420lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13421need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13422DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13423NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13424LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13425OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13426OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13427libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13428shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13429extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13430archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13431enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13432export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13433whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13434compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13435old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13436old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13437archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13438archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13439module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13440module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13441with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13442allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13443no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13444hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13445hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13446hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13447hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13448hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13449hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13450hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13451hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13452inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13453link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13454fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13455always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13456export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13457exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13458include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13459prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13460file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13461variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13462need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13463need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13464version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13465runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13466shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13467shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13468libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13469library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13470soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13471install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13472postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13473postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13474finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13475finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13476hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13477sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13478sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13479hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13480enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13481enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13482enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13483old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13484striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7f09764
DN
13485
13486LTCC='$LTCC'
13487LTCFLAGS='$LTCFLAGS'
13488compiler='$compiler_DEFAULT'
13489
52327858
L
13490# A function that is used when there is no print builtin or printf.
13491func_fallback_echo ()
13492{
13493 eval 'cat <<_LTECHO_EOF
13494\$1
13495_LTECHO_EOF'
13496}
13497
d7f09764 13498# Quote evaled strings.
52327858
L
13499for var in SHELL \
13500ECHO \
13501SED \
d7f09764
DN
13502GREP \
13503EGREP \
13504FGREP \
13505LD \
13506NM \
13507LN_S \
13508lt_SP2NL \
13509lt_NL2SP \
13510reload_flag \
13511OBJDUMP \
13512deplibs_check_method \
13513file_magic_cmd \
13514AR \
13515AR_FLAGS \
13516STRIP \
13517RANLIB \
13518CC \
13519CFLAGS \
13520compiler \
13521lt_cv_sys_global_symbol_pipe \
13522lt_cv_sys_global_symbol_to_cdecl \
13523lt_cv_sys_global_symbol_to_c_name_address \
13524lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7f09764
DN
13525lt_prog_compiler_no_builtin_flag \
13526lt_prog_compiler_wl \
13527lt_prog_compiler_pic \
13528lt_prog_compiler_static \
13529lt_cv_prog_compiler_c_o \
13530need_locks \
13531DSYMUTIL \
13532NMEDIT \
13533LIPO \
13534OTOOL \
13535OTOOL64 \
13536shrext_cmds \
13537export_dynamic_flag_spec \
13538whole_archive_flag_spec \
13539compiler_needs_object \
13540with_gnu_ld \
13541allow_undefined_flag \
13542no_undefined_flag \
13543hardcode_libdir_flag_spec \
13544hardcode_libdir_flag_spec_ld \
13545hardcode_libdir_separator \
13546fix_srcfile_path \
13547exclude_expsyms \
13548include_expsyms \
13549file_list_spec \
13550variables_saved_for_relink \
13551libname_spec \
13552library_names_spec \
13553soname_spec \
52327858 13554install_override_mode \
d7f09764
DN
13555finish_eval \
13556old_striplib \
13557striplib; do
52327858 13558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 13559 *[\\\\\\\`\\"\\\$]*)
52327858 13560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7f09764
DN
13561 ;;
13562 *)
13563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13564 ;;
13565 esac
13566done
13567
13568# Double-quote double-evaled strings.
13569for var in reload_cmds \
13570old_postinstall_cmds \
13571old_postuninstall_cmds \
13572old_archive_cmds \
13573extract_expsyms_cmds \
13574old_archive_from_new_cmds \
13575old_archive_from_expsyms_cmds \
13576archive_cmds \
13577archive_expsym_cmds \
13578module_cmds \
13579module_expsym_cmds \
13580export_symbols_cmds \
13581prelink_cmds \
13582postinstall_cmds \
13583postuninstall_cmds \
13584finish_cmds \
13585sys_lib_search_path_spec \
13586sys_lib_dlsearch_path_spec; do
52327858 13587 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7f09764 13588 *[\\\\\\\`\\"\\\$]*)
52327858 13589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7f09764
DN
13590 ;;
13591 *)
13592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13593 ;;
13594 esac
13595done
13596
d7f09764
DN
13597ac_aux_dir='$ac_aux_dir'
13598xsi_shell='$xsi_shell'
13599lt_shell_append='$lt_shell_append'
13600
13601# See if we are running on zsh, and set the options which allow our
13602# commands through without removal of \ escapes INIT.
13603if test -n "\${ZSH_VERSION+set}" ; then
13604 setopt NO_GLOB_SUBST
13605fi
13606
13607
13608 PACKAGE='$PACKAGE'
13609 VERSION='$VERSION'
13610 TIMESTAMP='$TIMESTAMP'
13611 RM='$RM'
13612 ofile='$ofile'
13613
13614
13615
13616
13617_ACEOF
13618
13619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13620
13621# Handling of arguments.
13622for ac_config_target in $ac_config_targets
13623do
13624 case $ac_config_target in
13625 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13626 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13627 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48215350 13628 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
d7f09764 13629
22e05272 13630 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d7f09764
DN
13631 esac
13632done
13633
13634
13635# If the user did not use the arguments to specify the items to instantiate,
13636# then the envvar interface is used. Set only those that are not.
13637# We use the long form for the default assignment because of an extremely
13638# bizarre bug on SunOS 4.1.3.
13639if $ac_need_defaults; then
13640 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48215350 13641 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
d7f09764
DN
13642 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13643fi
13644
13645# Have a temporary directory for convenience. Make it in the build tree
13646# simply because there is no reason against having it here, and in addition,
13647# creating and moving files from /tmp can sometimes cause problems.
13648# Hook for its removal unless debugging.
13649# Note that there is a small window in which the directory will not be cleaned:
13650# after its creation but before its name has been assigned to `$tmp'.
13651$debug ||
13652{
22e05272 13653 tmp= ac_tmp=
d7f09764 13654 trap 'exit_status=$?
22e05272
JM
13655 : "${ac_tmp:=$tmp}"
13656 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
d7f09764
DN
13657' 0
13658 trap 'as_fn_exit 1' 1 2 13 15
13659}
13660# Create a (secure) tmp directory for tmp files.
13661
13662{
13663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 13664 test -d "$tmp"
d7f09764
DN
13665} ||
13666{
13667 tmp=./conf$$-$RANDOM
13668 (umask 077 && mkdir "$tmp")
22e05272
JM
13669} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13670ac_tmp=$tmp
d7f09764
DN
13671
13672# Set up the scripts for CONFIG_FILES section.
13673# No need to generate them if there are no CONFIG_FILES.
13674# This happens for instance with `./config.status config.h'.
13675if test -n "$CONFIG_FILES"; then
13676
13677
13678ac_cr=`echo X | tr X '\015'`
13679# On cygwin, bash can eat \r inside `` if the user requested igncr.
13680# But we know of no other shell where ac_cr would be empty at this
13681# point, so we can use a bashism as a fallback.
13682if test "x$ac_cr" = x; then
13683 eval ac_cr=\$\'\\r\'
13684fi
13685ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13686if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 13687 ac_cs_awk_cr='\\r'
d7f09764
DN
13688else
13689 ac_cs_awk_cr=$ac_cr
13690fi
13691
22e05272 13692echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
d7f09764
DN
13693_ACEOF
13694
13695
13696{
13697 echo "cat >conf$$subs.awk <<_ACEOF" &&
13698 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13699 echo "_ACEOF"
13700} >conf$$subs.sh ||
22e05272
JM
13701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13702ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
d7f09764
DN
13703ac_delim='%!_!# '
13704for ac_last_try in false false false false false :; do
13705 . ./conf$$subs.sh ||
22e05272 13706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d7f09764
DN
13707
13708 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13709 if test $ac_delim_n = $ac_delim_num; then
13710 break
13711 elif $ac_last_try; then
22e05272 13712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d7f09764
DN
13713 else
13714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13715 fi
13716done
13717rm -f conf$$subs.sh
13718
13719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 13720cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
d7f09764
DN
13721_ACEOF
13722sed -n '
13723h
13724s/^/S["/; s/!.*/"]=/
13725p
13726g
13727s/^[^!]*!//
13728:repl
13729t repl
13730s/'"$ac_delim"'$//
13731t delim
13732:nl
13733h
22e05272 13734s/\(.\{148\}\)..*/\1/
d7f09764
DN
13735t more1
13736s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13737p
13738n
13739b repl
13740:more1
13741s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13742p
13743g
13744s/.\{148\}//
13745t nl
13746:delim
13747h
22e05272 13748s/\(.\{148\}\)..*/\1/
d7f09764
DN
13749t more2
13750s/["\\]/\\&/g; s/^/"/; s/$/"/
13751p
13752b
13753:more2
13754s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13755p
13756g
13757s/.\{148\}//
13758t delim
13759' <conf$$subs.awk | sed '
13760/^[^""]/{
13761 N
13762 s/\n//
13763}
13764' >>$CONFIG_STATUS || ac_write_fail=1
13765rm -f conf$$subs.awk
13766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13767_ACAWK
22e05272 13768cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
d7f09764
DN
13769 for (key in S) S_is_set[key] = 1
13770 FS = "\a"
13771
13772}
13773{
13774 line = $ 0
13775 nfields = split(line, field, "@")
13776 substed = 0
13777 len = length(field[1])
13778 for (i = 2; i < nfields; i++) {
13779 key = field[i]
13780 keylen = length(key)
13781 if (S_is_set[key]) {
13782 value = S[key]
13783 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13784 len += length(value) + length(field[++i])
13785 substed = 1
13786 } else
13787 len += 1 + keylen
13788 }
13789
13790 print line
13791}
13792
13793_ACAWK
13794_ACEOF
13795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13796if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13797 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13798else
13799 cat
22e05272
JM
13800fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13801 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
d7f09764
DN
13802_ACEOF
13803
22e05272
JM
13804# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13805# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
d7f09764
DN
13806# trailing colons and then remove the whole line if VPATH becomes empty
13807# (actually we leave an empty line to preserve line numbers).
13808if test "x$srcdir" = x.; then
22e05272
JM
13809 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13810h
13811s///
13812s/^/:/
13813s/[ ]*$/:/
13814s/:\$(srcdir):/:/g
13815s/:\${srcdir}:/:/g
13816s/:@srcdir@:/:/g
13817s/^:*//
d7f09764 13818s/:*$//
22e05272
JM
13819x
13820s/\(=[ ]*\).*/\1/
13821G
13822s/\n//
d7f09764
DN
13823s/^[^=]*=[ ]*$//
13824}'
13825fi
13826
13827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13828fi # test -n "$CONFIG_FILES"
13829
48215350
DK
13830# Set up the scripts for CONFIG_HEADERS section.
13831# No need to generate them if there are no CONFIG_HEADERS.
13832# This happens for instance with `./config.status Makefile'.
13833if test -n "$CONFIG_HEADERS"; then
22e05272 13834cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
48215350
DK
13835BEGIN {
13836_ACEOF
13837
13838# Transform confdefs.h into an awk script `defines.awk', embedded as
13839# here-document in config.status, that substitutes the proper values into
13840# config.h.in to produce config.h.
d7f09764 13841
48215350
DK
13842# Create a delimiter string that does not exist in confdefs.h, to ease
13843# handling of long lines.
13844ac_delim='%!_!# '
13845for ac_last_try in false false :; do
22e05272
JM
13846 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13847 if test -z "$ac_tt"; then
48215350
DK
13848 break
13849 elif $ac_last_try; then
22e05272 13850 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
48215350
DK
13851 else
13852 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13853 fi
13854done
13855
13856# For the awk script, D is an array of macro values keyed by name,
13857# likewise P contains macro parameters if any. Preserve backslash
13858# newline sequences.
13859
13860ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13861sed -n '
13862s/.\{148\}/&'"$ac_delim"'/g
13863t rset
13864:rset
13865s/^[ ]*#[ ]*define[ ][ ]*/ /
13866t def
13867d
13868:def
13869s/\\$//
13870t bsnl
13871s/["\\]/\\&/g
13872s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13873D["\1"]=" \3"/p
13874s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13875d
13876:bsnl
13877s/["\\]/\\&/g
13878s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13879D["\1"]=" \3\\\\\\n"\\/p
13880t cont
13881s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13882t cont
13883d
13884:cont
13885n
13886s/.\{148\}/&'"$ac_delim"'/g
13887t clear
13888:clear
13889s/\\$//
13890t bsnlc
13891s/["\\]/\\&/g; s/^/"/; s/$/"/p
13892d
13893:bsnlc
13894s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13895b cont
13896' <confdefs.h | sed '
13897s/'"$ac_delim"'/"\\\
13898"/g' >>$CONFIG_STATUS || ac_write_fail=1
13899
13900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13901 for (key in D) D_is_set[key] = 1
13902 FS = "\a"
13903}
13904/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13905 line = \$ 0
13906 split(line, arg, " ")
13907 if (arg[1] == "#") {
13908 defundef = arg[2]
13909 mac1 = arg[3]
13910 } else {
13911 defundef = substr(arg[1], 2)
13912 mac1 = arg[2]
13913 }
13914 split(mac1, mac2, "(") #)
13915 macro = mac2[1]
13916 prefix = substr(line, 1, index(line, defundef) - 1)
13917 if (D_is_set[macro]) {
13918 # Preserve the white space surrounding the "#".
13919 print prefix "define", macro P[macro] D[macro]
13920 next
13921 } else {
13922 # Replace #undef with comments. This is necessary, for example,
13923 # in the case of _POSIX_SOURCE, which is predefined and required
13924 # on some systems where configure will not decide to define it.
13925 if (defundef == "undef") {
13926 print "/*", prefix defundef, macro, "*/"
13927 next
13928 }
13929 }
13930}
13931{ print }
13932_ACAWK
13933_ACEOF
13934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 13935 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
48215350
DK
13936fi # test -n "$CONFIG_HEADERS"
13937
13938
13939eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
d7f09764
DN
13940shift
13941for ac_tag
13942do
13943 case $ac_tag in
13944 :[FHLC]) ac_mode=$ac_tag; continue;;
13945 esac
13946 case $ac_mode$ac_tag in
13947 :[FHL]*:*);;
22e05272 13948 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
d7f09764
DN
13949 :[FH]-) ac_tag=-:-;;
13950 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13951 esac
13952 ac_save_IFS=$IFS
13953 IFS=:
13954 set x $ac_tag
13955 IFS=$ac_save_IFS
13956 shift
13957 ac_file=$1
13958 shift
13959
13960 case $ac_mode in
13961 :L) ac_source=$1;;
13962 :[FH])
13963 ac_file_inputs=
13964 for ac_f
13965 do
13966 case $ac_f in
22e05272 13967 -) ac_f="$ac_tmp/stdin";;
d7f09764
DN
13968 *) # Look for the file first in the build tree, then in the source tree
13969 # (if the path is not absolute). The absolute path cannot be DOS-style,
13970 # because $ac_f cannot contain `:'.
13971 test -f "$ac_f" ||
13972 case $ac_f in
13973 [\\/$]*) false;;
13974 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13975 esac ||
22e05272 13976 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
d7f09764
DN
13977 esac
13978 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13979 as_fn_append ac_file_inputs " '$ac_f'"
13980 done
13981
13982 # Let's still pretend it is `configure' which instantiates (i.e., don't
13983 # use $as_me), people would be surprised to read:
13984 # /* config.h. Generated by config.status. */
13985 configure_input='Generated from '`
13986 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13987 `' by configure.'
13988 if test x"$ac_file" != x-; then
13989 configure_input="$ac_file. $configure_input"
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13991$as_echo "$as_me: creating $ac_file" >&6;}
13992 fi
13993 # Neutralize special characters interpreted by sed in replacement strings.
13994 case $configure_input in #(
13995 *\&* | *\|* | *\\* )
13996 ac_sed_conf_input=`$as_echo "$configure_input" |
13997 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13998 *) ac_sed_conf_input=$configure_input;;
13999 esac
14000
14001 case $ac_tag in
22e05272
JM
14002 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
d7f09764
DN
14004 esac
14005 ;;
14006 esac
14007
14008 ac_dir=`$as_dirname -- "$ac_file" ||
14009$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14010 X"$ac_file" : 'X\(//\)[^/]' \| \
14011 X"$ac_file" : 'X\(//\)$' \| \
14012 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14013$as_echo X"$ac_file" |
14014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14015 s//\1/
14016 q
14017 }
14018 /^X\(\/\/\)[^/].*/{
14019 s//\1/
14020 q
14021 }
14022 /^X\(\/\/\)$/{
14023 s//\1/
14024 q
14025 }
14026 /^X\(\/\).*/{
14027 s//\1/
14028 q
14029 }
14030 s/.*/./; q'`
14031 as_dir="$ac_dir"; as_fn_mkdir_p
14032 ac_builddir=.
14033
14034case "$ac_dir" in
14035.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14036*)
14037 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14038 # A ".." for each directory in $ac_dir_suffix.
14039 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14040 case $ac_top_builddir_sub in
14041 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14042 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14043 esac ;;
14044esac
14045ac_abs_top_builddir=$ac_pwd
14046ac_abs_builddir=$ac_pwd$ac_dir_suffix
14047# for backward compatibility:
14048ac_top_builddir=$ac_top_build_prefix
14049
14050case $srcdir in
14051 .) # We are building in place.
14052 ac_srcdir=.
14053 ac_top_srcdir=$ac_top_builddir_sub
14054 ac_abs_top_srcdir=$ac_pwd ;;
14055 [\\/]* | ?:[\\/]* ) # Absolute name.
14056 ac_srcdir=$srcdir$ac_dir_suffix;
14057 ac_top_srcdir=$srcdir
14058 ac_abs_top_srcdir=$srcdir ;;
14059 *) # Relative name.
14060 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14061 ac_top_srcdir=$ac_top_build_prefix$srcdir
14062 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14063esac
14064ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14065
14066
14067 case $ac_mode in
14068 :F)
14069 #
14070 # CONFIG_FILE
14071 #
14072
14073 case $INSTALL in
14074 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14075 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14076 esac
14077 ac_MKDIR_P=$MKDIR_P
14078 case $MKDIR_P in
14079 [\\/$]* | ?:[\\/]* ) ;;
14080 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14081 esac
14082_ACEOF
14083
14084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14085# If the template does not know about datarootdir, expand it.
14086# FIXME: This hack should be removed a few years after 2.60.
14087ac_datarootdir_hack=; ac_datarootdir_seen=
14088ac_sed_dataroot='
14089/datarootdir/ {
14090 p
14091 q
14092}
14093/@datadir@/p
14094/@docdir@/p
14095/@infodir@/p
14096/@localedir@/p
14097/@mandir@/p'
14098case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14099*datarootdir*) ac_datarootdir_seen=yes;;
14100*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14102$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14103_ACEOF
14104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14105 ac_datarootdir_hack='
14106 s&@datadir@&$datadir&g
14107 s&@docdir@&$docdir&g
14108 s&@infodir@&$infodir&g
14109 s&@localedir@&$localedir&g
14110 s&@mandir@&$mandir&g
14111 s&\\\${datarootdir}&$datarootdir&g' ;;
14112esac
14113_ACEOF
14114
14115# Neutralize VPATH when `$srcdir' = `.'.
14116# Shell code in configure.ac might set extrasub.
14117# FIXME: do we really want to maintain this feature?
14118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14119ac_sed_extra="$ac_vpsub
14120$extrasub
14121_ACEOF
14122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14123:t
14124/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14125s|@configure_input@|$ac_sed_conf_input|;t t
14126s&@top_builddir@&$ac_top_builddir_sub&;t t
14127s&@top_build_prefix@&$ac_top_build_prefix&;t t
14128s&@srcdir@&$ac_srcdir&;t t
14129s&@abs_srcdir@&$ac_abs_srcdir&;t t
14130s&@top_srcdir@&$ac_top_srcdir&;t t
14131s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14132s&@builddir@&$ac_builddir&;t t
14133s&@abs_builddir@&$ac_abs_builddir&;t t
14134s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14135s&@INSTALL@&$ac_INSTALL&;t t
14136s&@MKDIR_P@&$ac_MKDIR_P&;t t
14137$ac_datarootdir_hack
14138"
22e05272
JM
14139eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14140 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d7f09764
DN
14141
14142test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
14143 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14144 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14145 "$ac_tmp/out"`; test -z "$ac_out"; } &&
d7f09764 14146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 14147which seems to be undefined. Please make sure it is defined" >&5
d7f09764 14148$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 14149which seems to be undefined. Please make sure it is defined" >&2;}
d7f09764 14150
22e05272 14151 rm -f "$ac_tmp/stdin"
d7f09764 14152 case $ac_file in
22e05272
JM
14153 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14154 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
d7f09764 14155 esac \
22e05272 14156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d7f09764 14157 ;;
48215350
DK
14158 :H)
14159 #
14160 # CONFIG_HEADER
14161 #
14162 if test x"$ac_file" != x-; then
14163 {
14164 $as_echo "/* $configure_input */" \
22e05272
JM
14165 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14166 } >"$ac_tmp/config.h" \
14167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14168 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48215350
DK
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14170$as_echo "$as_me: $ac_file is unchanged" >&6;}
14171 else
14172 rm -f "$ac_file"
22e05272
JM
14173 mv "$ac_tmp/config.h" "$ac_file" \
14174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48215350
DK
14175 fi
14176 else
14177 $as_echo "/* $configure_input */" \
22e05272
JM
14178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14179 || as_fn_error $? "could not create -" "$LINENO" 5
48215350
DK
14180 fi
14181# Compute "$ac_file"'s index in $config_headers.
14182_am_arg="$ac_file"
14183_am_stamp_count=1
14184for _am_header in $config_headers :; do
14185 case $_am_header in
14186 $_am_arg | $_am_arg:* )
14187 break ;;
14188 * )
14189 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14190 esac
14191done
14192echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14193$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14194 X"$_am_arg" : 'X\(//\)[^/]' \| \
14195 X"$_am_arg" : 'X\(//\)$' \| \
14196 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14197$as_echo X"$_am_arg" |
14198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14199 s//\1/
14200 q
14201 }
14202 /^X\(\/\/\)[^/].*/{
14203 s//\1/
14204 q
14205 }
14206 /^X\(\/\/\)$/{
14207 s//\1/
14208 q
14209 }
14210 /^X\(\/\).*/{
14211 s//\1/
14212 q
14213 }
14214 s/.*/./; q'`/stamp-h$_am_stamp_count
14215 ;;
d7f09764
DN
14216
14217 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14218$as_echo "$as_me: executing $ac_file commands" >&6;}
14219 ;;
14220 esac
14221
14222
14223 case $ac_file$ac_mode in
14224 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 14225 # Older Autoconf quotes --file arguments for eval, but not when files
d7f09764
DN
14226 # are listed without --file. Let's play safe and only enable the eval
14227 # if we detect the quoting.
14228 case $CONFIG_FILES in
14229 *\'*) eval set x "$CONFIG_FILES" ;;
14230 *) set x $CONFIG_FILES ;;
14231 esac
14232 shift
14233 for mf
14234 do
14235 # Strip MF so we end up with the name of the file.
14236 mf=`echo "$mf" | sed -e 's/:.*$//'`
14237 # Check whether this is an Automake generated Makefile or not.
22e05272 14238 # We used to match only the files named 'Makefile.in', but
d7f09764
DN
14239 # some people rename them; so instead we look at the file content.
14240 # Grep'ing the first line is not enough: some people post-process
14241 # each Makefile.in and add a new line on top of each file to say so.
14242 # Grep'ing the whole file is not good either: AIX grep has a line
14243 # limit of 2048, but all sed's we know have understand at least 4000.
14244 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14245 dirpart=`$as_dirname -- "$mf" ||
14246$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14247 X"$mf" : 'X\(//\)[^/]' \| \
14248 X"$mf" : 'X\(//\)$' \| \
14249 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14250$as_echo X"$mf" |
14251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14252 s//\1/
14253 q
14254 }
14255 /^X\(\/\/\)[^/].*/{
14256 s//\1/
14257 q
14258 }
14259 /^X\(\/\/\)$/{
14260 s//\1/
14261 q
14262 }
14263 /^X\(\/\).*/{
14264 s//\1/
14265 q
14266 }
14267 s/.*/./; q'`
14268 else
14269 continue
14270 fi
14271 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 14272 # from the Makefile without running 'make'.
d7f09764
DN
14273 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14274 test -z "$DEPDIR" && continue
14275 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 14276 test -z "$am__include" && continue
d7f09764 14277 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
d7f09764
DN
14278 # Find all dependency output files, they are included files with
14279 # $(DEPDIR) in their names. We invoke sed twice because it is the
14280 # simplest approach to changing $(DEPDIR) to its actual value in the
14281 # expansion.
14282 for file in `sed -n "
14283 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 14284 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
d7f09764
DN
14285 # Make sure the directory exists.
14286 test -f "$dirpart/$file" && continue
14287 fdir=`$as_dirname -- "$file" ||
14288$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14289 X"$file" : 'X\(//\)[^/]' \| \
14290 X"$file" : 'X\(//\)$' \| \
14291 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14292$as_echo X"$file" |
14293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14294 s//\1/
14295 q
14296 }
14297 /^X\(\/\/\)[^/].*/{
14298 s//\1/
14299 q
14300 }
14301 /^X\(\/\/\)$/{
14302 s//\1/
14303 q
14304 }
14305 /^X\(\/\).*/{
14306 s//\1/
14307 q
14308 }
14309 s/.*/./; q'`
14310 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14311 # echo "creating $dirpart/$file"
14312 echo '# dummy' > "$dirpart/$file"
14313 done
14314 done
14315}
14316 ;;
14317 "libtool":C)
14318
14319 # See if we are running on zsh, and set the options which allow our
14320 # commands through without removal of \ escapes.
14321 if test -n "${ZSH_VERSION+set}" ; then
14322 setopt NO_GLOB_SUBST
14323 fi
14324
14325 cfgfile="${ofile}T"
14326 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14327 $RM "$cfgfile"
14328
14329 cat <<_LT_EOF >> "$cfgfile"
14330#! $SHELL
14331
14332# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14333# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14334# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14335# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14336#
14337# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52327858 14338# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
d7f09764
DN
14339# Written by Gordon Matzigkeit, 1996
14340#
14341# This file is part of GNU Libtool.
14342#
14343# GNU Libtool is free software; you can redistribute it and/or
14344# modify it under the terms of the GNU General Public License as
14345# published by the Free Software Foundation; either version 2 of
14346# the License, or (at your option) any later version.
14347#
14348# As a special exception to the GNU General Public License,
14349# if you distribute this file as part of a program or library that
14350# is built using GNU Libtool, you may include this file under the
14351# same distribution terms that you use for the rest of that program.
14352#
14353# GNU Libtool is distributed in the hope that it will be useful,
14354# but WITHOUT ANY WARRANTY; without even the implied warranty of
14355# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14356# GNU General Public License for more details.
14357#
14358# You should have received a copy of the GNU General Public License
14359# along with GNU Libtool; see the file COPYING. If not, a copy
14360# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14361# obtained by writing to the Free Software Foundation, Inc.,
14362# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14363
14364
14365# The names of the tagged configurations supported by this script.
14366available_tags=""
14367
14368# ### BEGIN LIBTOOL CONFIG
14369
14370# Which release of libtool.m4 was used?
14371macro_version=$macro_version
14372macro_revision=$macro_revision
14373
14374# Whether or not to build shared libraries.
14375build_libtool_libs=$enable_shared
14376
14377# Whether or not to build static libraries.
14378build_old_libs=$enable_static
14379
14380# What type of objects to build.
14381pic_mode=$pic_mode
14382
14383# Whether or not to optimize for fast installation.
14384fast_install=$enable_fast_install
14385
52327858
L
14386# Shell to use when invoking shell scripts.
14387SHELL=$lt_SHELL
14388
14389# An echo program that protects backslashes.
14390ECHO=$lt_ECHO
14391
d7f09764
DN
14392# The host system.
14393host_alias=$host_alias
14394host=$host
14395host_os=$host_os
14396
14397# The build system.
14398build_alias=$build_alias
14399build=$build
14400build_os=$build_os
14401
14402# A sed program that does not truncate output.
14403SED=$lt_SED
14404
14405# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14406Xsed="\$SED -e 1s/^X//"
14407
14408# A grep program that handles long lines.
14409GREP=$lt_GREP
14410
14411# An ERE matcher.
14412EGREP=$lt_EGREP
14413
14414# A literal string matcher.
14415FGREP=$lt_FGREP
14416
14417# A BSD- or MS-compatible name lister.
14418NM=$lt_NM
14419
14420# Whether we need soft or hard links.
14421LN_S=$lt_LN_S
14422
14423# What is the maximum length of a command?
14424max_cmd_len=$max_cmd_len
14425
14426# Object file suffix (normally "o").
14427objext=$ac_objext
14428
14429# Executable file suffix (normally "").
14430exeext=$exeext
14431
14432# whether the shell understands "unset".
14433lt_unset=$lt_unset
14434
14435# turn spaces into newlines.
14436SP2NL=$lt_lt_SP2NL
14437
14438# turn newlines into spaces.
14439NL2SP=$lt_lt_NL2SP
14440
d7f09764
DN
14441# An object symbol dumper.
14442OBJDUMP=$lt_OBJDUMP
14443
14444# Method to check whether dependent libraries are shared objects.
14445deplibs_check_method=$lt_deplibs_check_method
14446
14447# Command to use when deplibs_check_method == "file_magic".
14448file_magic_cmd=$lt_file_magic_cmd
14449
14450# The archiver.
14451AR=$lt_AR
14452AR_FLAGS=$lt_AR_FLAGS
14453
14454# A symbol stripping program.
14455STRIP=$lt_STRIP
14456
14457# Commands used to install an old-style archive.
14458RANLIB=$lt_RANLIB
14459old_postinstall_cmds=$lt_old_postinstall_cmds
14460old_postuninstall_cmds=$lt_old_postuninstall_cmds
14461
52327858
L
14462# Whether to use a lock for old archive extraction.
14463lock_old_archive_extraction=$lock_old_archive_extraction
14464
d7f09764
DN
14465# A C compiler.
14466LTCC=$lt_CC
14467
14468# LTCC compiler flags.
14469LTCFLAGS=$lt_CFLAGS
14470
14471# Take the output of nm and produce a listing of raw symbols and C names.
14472global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14473
14474# Transform the output of nm in a proper C declaration.
14475global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14476
14477# Transform the output of nm in a C name address pair.
14478global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14479
14480# Transform the output of nm in a C name address pair when lib prefix is needed.
14481global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14482
14483# The name of the directory that contains temporary libtool files.
14484objdir=$objdir
14485
d7f09764
DN
14486# Used to examine libraries when file_magic_cmd begins with "file".
14487MAGIC_CMD=$MAGIC_CMD
14488
14489# Must we lock files when doing compilation?
14490need_locks=$lt_need_locks
14491
14492# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14493DSYMUTIL=$lt_DSYMUTIL
14494
14495# Tool to change global to local symbols on Mac OS X.
14496NMEDIT=$lt_NMEDIT
14497
14498# Tool to manipulate fat objects and archives on Mac OS X.
14499LIPO=$lt_LIPO
14500
14501# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14502OTOOL=$lt_OTOOL
14503
14504# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14505OTOOL64=$lt_OTOOL64
14506
14507# Old archive suffix (normally "a").
14508libext=$libext
14509
14510# Shared library suffix (normally ".so").
14511shrext_cmds=$lt_shrext_cmds
14512
14513# The commands to extract the exported symbol list from a shared archive.
14514extract_expsyms_cmds=$lt_extract_expsyms_cmds
14515
14516# Variables whose values should be saved in libtool wrapper scripts and
14517# restored at link time.
14518variables_saved_for_relink=$lt_variables_saved_for_relink
14519
14520# Do we need the "lib" prefix for modules?
14521need_lib_prefix=$need_lib_prefix
14522
14523# Do we need a version for libraries?
14524need_version=$need_version
14525
14526# Library versioning type.
14527version_type=$version_type
14528
14529# Shared library runtime path variable.
14530runpath_var=$runpath_var
14531
14532# Shared library path variable.
14533shlibpath_var=$shlibpath_var
14534
14535# Is shlibpath searched before the hard-coded library search path?
14536shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14537
14538# Format of library name prefix.
14539libname_spec=$lt_libname_spec
14540
14541# List of archive names. First name is the real one, the rest are links.
14542# The last name is the one that the linker finds with -lNAME
14543library_names_spec=$lt_library_names_spec
14544
14545# The coded name of the library, if different from the real name.
14546soname_spec=$lt_soname_spec
14547
52327858
L
14548# Permission mode override for installation of shared libraries.
14549install_override_mode=$lt_install_override_mode
14550
d7f09764
DN
14551# Command to use after installation of a shared archive.
14552postinstall_cmds=$lt_postinstall_cmds
14553
14554# Command to use after uninstallation of a shared archive.
14555postuninstall_cmds=$lt_postuninstall_cmds
14556
14557# Commands used to finish a libtool library installation in a directory.
14558finish_cmds=$lt_finish_cmds
14559
14560# As "finish_cmds", except a single script fragment to be evaled but
14561# not shown.
14562finish_eval=$lt_finish_eval
14563
14564# Whether we should hardcode library paths into libraries.
14565hardcode_into_libs=$hardcode_into_libs
14566
14567# Compile-time system search path for libraries.
14568sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14569
14570# Run-time system search path for libraries.
14571sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14572
14573# Whether dlopen is supported.
14574dlopen_support=$enable_dlopen
14575
14576# Whether dlopen of programs is supported.
14577dlopen_self=$enable_dlopen_self
14578
14579# Whether dlopen of statically linked programs is supported.
14580dlopen_self_static=$enable_dlopen_self_static
14581
14582# Commands to strip libraries.
14583old_striplib=$lt_old_striplib
14584striplib=$lt_striplib
14585
14586
14587# The linker used to build libraries.
14588LD=$lt_LD
14589
52327858
L
14590# How to create reloadable object files.
14591reload_flag=$lt_reload_flag
14592reload_cmds=$lt_reload_cmds
14593
d7f09764
DN
14594# Commands used to build an old-style archive.
14595old_archive_cmds=$lt_old_archive_cmds
14596
14597# A language specific compiler.
14598CC=$lt_compiler
14599
14600# Is the compiler the GNU compiler?
14601with_gcc=$GCC
14602
14603# Compiler flag to turn off builtin functions.
14604no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14605
14606# How to pass a linker flag through the compiler.
14607wl=$lt_lt_prog_compiler_wl
14608
14609# Additional compiler flags for building library objects.
14610pic_flag=$lt_lt_prog_compiler_pic
14611
14612# Compiler flag to prevent dynamic linking.
14613link_static_flag=$lt_lt_prog_compiler_static
14614
14615# Does compiler simultaneously support -c and -o options?
14616compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14617
14618# Whether or not to add -lc for building shared libraries.
14619build_libtool_need_lc=$archive_cmds_need_lc
14620
14621# Whether or not to disallow shared libs when runtime libs are static.
14622allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14623
14624# Compiler flag to allow reflexive dlopens.
14625export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14626
14627# Compiler flag to generate shared objects directly from archives.
14628whole_archive_flag_spec=$lt_whole_archive_flag_spec
14629
14630# Whether the compiler copes with passing no objects directly.
14631compiler_needs_object=$lt_compiler_needs_object
14632
14633# Create an old-style archive from a shared archive.
14634old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14635
14636# Create a temporary old-style archive to link instead of a shared archive.
14637old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14638
14639# Commands used to build a shared archive.
14640archive_cmds=$lt_archive_cmds
14641archive_expsym_cmds=$lt_archive_expsym_cmds
14642
14643# Commands used to build a loadable module if different from building
14644# a shared archive.
14645module_cmds=$lt_module_cmds
14646module_expsym_cmds=$lt_module_expsym_cmds
14647
14648# Whether we are building with GNU ld or not.
14649with_gnu_ld=$lt_with_gnu_ld
14650
14651# Flag that allows shared libraries with undefined symbols to be built.
14652allow_undefined_flag=$lt_allow_undefined_flag
14653
14654# Flag that enforces no undefined symbols.
14655no_undefined_flag=$lt_no_undefined_flag
14656
14657# Flag to hardcode \$libdir into a binary during linking.
14658# This must work even if \$libdir does not exist
14659hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14660
14661# If ld is used when linking, flag to hardcode \$libdir into a binary
14662# during linking. This must work even if \$libdir does not exist.
14663hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14664
14665# Whether we need a single "-rpath" flag with a separated argument.
14666hardcode_libdir_separator=$lt_hardcode_libdir_separator
14667
14668# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14669# DIR into the resulting binary.
14670hardcode_direct=$hardcode_direct
14671
14672# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14673# DIR into the resulting binary and the resulting library dependency is
14674# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14675# library is relocated.
14676hardcode_direct_absolute=$hardcode_direct_absolute
14677
14678# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14679# into the resulting binary.
14680hardcode_minus_L=$hardcode_minus_L
14681
14682# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14683# into the resulting binary.
14684hardcode_shlibpath_var=$hardcode_shlibpath_var
14685
14686# Set to "yes" if building a shared library automatically hardcodes DIR
14687# into the library and all subsequent libraries and executables linked
14688# against it.
14689hardcode_automatic=$hardcode_automatic
14690
14691# Set to yes if linker adds runtime paths of dependent libraries
14692# to runtime path list.
14693inherit_rpath=$inherit_rpath
14694
14695# Whether libtool must link a program against all its dependency libraries.
14696link_all_deplibs=$link_all_deplibs
14697
14698# Fix the shell variable \$srcfile for the compiler.
14699fix_srcfile_path=$lt_fix_srcfile_path
14700
14701# Set to "yes" if exported symbols are required.
14702always_export_symbols=$always_export_symbols
14703
14704# The commands to list exported symbols.
14705export_symbols_cmds=$lt_export_symbols_cmds
14706
14707# Symbols that should not be listed in the preloaded symbols.
14708exclude_expsyms=$lt_exclude_expsyms
14709
14710# Symbols that must always be exported.
14711include_expsyms=$lt_include_expsyms
14712
14713# Commands necessary for linking programs (against libraries) with templates.
14714prelink_cmds=$lt_prelink_cmds
14715
14716# Specify filename containing input files.
14717file_list_spec=$lt_file_list_spec
14718
14719# How to hardcode a shared library path into an executable.
14720hardcode_action=$hardcode_action
14721
14722# ### END LIBTOOL CONFIG
14723
14724_LT_EOF
14725
14726 case $host_os in
14727 aix3*)
14728 cat <<\_LT_EOF >> "$cfgfile"
14729# AIX sometimes has problems with the GCC collect2 program. For some
14730# reason, if we set the COLLECT_NAMES environment variable, the problems
14731# vanish in a puff of smoke.
14732if test "X${COLLECT_NAMES+set}" != Xset; then
14733 COLLECT_NAMES=
14734 export COLLECT_NAMES
14735fi
14736_LT_EOF
14737 ;;
14738 esac
14739
14740
14741ltmain="$ac_aux_dir/ltmain.sh"
14742
14743
14744 # We use sed instead of cat because bash on DJGPP gets confused if
14745 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14746 # text mode, it properly converts lines to CR/LF. This bash problem
14747 # is reportedly fixed, but why not run on old versions too?
14748 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14749 || (rm -f "$cfgfile"; exit 1)
14750
14751 case $xsi_shell in
14752 yes)
14753 cat << \_LT_EOF >> "$cfgfile"
14754
14755# func_dirname file append nondir_replacement
14756# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14757# otherwise set result to NONDIR_REPLACEMENT.
14758func_dirname ()
14759{
14760 case ${1} in
14761 */*) func_dirname_result="${1%/*}${2}" ;;
14762 * ) func_dirname_result="${3}" ;;
14763 esac
14764}
14765
14766# func_basename file
14767func_basename ()
14768{
14769 func_basename_result="${1##*/}"
14770}
14771
14772# func_dirname_and_basename file append nondir_replacement
14773# perform func_basename and func_dirname in a single function
14774# call:
14775# dirname: Compute the dirname of FILE. If nonempty,
14776# add APPEND to the result, otherwise set result
14777# to NONDIR_REPLACEMENT.
14778# value returned in "$func_dirname_result"
14779# basename: Compute filename of FILE.
14780# value retuned in "$func_basename_result"
14781# Implementation must be kept synchronized with func_dirname
14782# and func_basename. For efficiency, we do not delegate to
14783# those functions but instead duplicate the functionality here.
14784func_dirname_and_basename ()
14785{
14786 case ${1} in
14787 */*) func_dirname_result="${1%/*}${2}" ;;
14788 * ) func_dirname_result="${3}" ;;
14789 esac
14790 func_basename_result="${1##*/}"
14791}
14792
14793# func_stripname prefix suffix name
14794# strip PREFIX and SUFFIX off of NAME.
14795# PREFIX and SUFFIX must not contain globbing or regex special
14796# characters, hashes, percent signs, but SUFFIX may contain a leading
14797# dot (in which case that matches only a dot).
14798func_stripname ()
14799{
14800 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14801 # positional parameters, so assign one to ordinary parameter first.
14802 func_stripname_result=${3}
14803 func_stripname_result=${func_stripname_result#"${1}"}
14804 func_stripname_result=${func_stripname_result%"${2}"}
14805}
14806
14807# func_opt_split
14808func_opt_split ()
14809{
14810 func_opt_split_opt=${1%%=*}
14811 func_opt_split_arg=${1#*=}
14812}
14813
14814# func_lo2o object
14815func_lo2o ()
14816{
14817 case ${1} in
14818 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14819 *) func_lo2o_result=${1} ;;
14820 esac
14821}
14822
14823# func_xform libobj-or-source
14824func_xform ()
14825{
14826 func_xform_result=${1%.*}.lo
14827}
14828
14829# func_arith arithmetic-term...
14830func_arith ()
14831{
14832 func_arith_result=$(( $* ))
14833}
14834
14835# func_len string
14836# STRING may not start with a hyphen.
14837func_len ()
14838{
14839 func_len_result=${#1}
14840}
14841
14842_LT_EOF
14843 ;;
14844 *) # Bourne compatible functions.
14845 cat << \_LT_EOF >> "$cfgfile"
14846
14847# func_dirname file append nondir_replacement
14848# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14849# otherwise set result to NONDIR_REPLACEMENT.
14850func_dirname ()
14851{
14852 # Extract subdirectory from the argument.
52327858 14853 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7f09764
DN
14854 if test "X$func_dirname_result" = "X${1}"; then
14855 func_dirname_result="${3}"
14856 else
14857 func_dirname_result="$func_dirname_result${2}"
14858 fi
14859}
14860
14861# func_basename file
14862func_basename ()
14863{
52327858 14864 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7f09764
DN
14865}
14866
14867
14868# func_stripname prefix suffix name
14869# strip PREFIX and SUFFIX off of NAME.
14870# PREFIX and SUFFIX must not contain globbing or regex special
14871# characters, hashes, percent signs, but SUFFIX may contain a leading
14872# dot (in which case that matches only a dot).
14873# func_strip_suffix prefix name
14874func_stripname ()
14875{
14876 case ${2} in
52327858
L
14877 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14878 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7f09764
DN
14879 esac
14880}
14881
14882# sed scripts:
14883my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14884my_sed_long_arg='1s/^-[^=]*=//'
14885
14886# func_opt_split
14887func_opt_split ()
14888{
52327858
L
14889 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14890 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7f09764
DN
14891}
14892
14893# func_lo2o object
14894func_lo2o ()
14895{
52327858 14896 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7f09764
DN
14897}
14898
14899# func_xform libobj-or-source
14900func_xform ()
14901{
52327858 14902 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
d7f09764
DN
14903}
14904
14905# func_arith arithmetic-term...
14906func_arith ()
14907{
14908 func_arith_result=`expr "$@"`
14909}
14910
14911# func_len string
14912# STRING may not start with a hyphen.
14913func_len ()
14914{
14915 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14916}
14917
14918_LT_EOF
14919esac
14920
14921case $lt_shell_append in
14922 yes)
14923 cat << \_LT_EOF >> "$cfgfile"
14924
14925# func_append var value
14926# Append VALUE to the end of shell variable VAR.
14927func_append ()
14928{
14929 eval "$1+=\$2"
14930}
14931_LT_EOF
14932 ;;
14933 *)
14934 cat << \_LT_EOF >> "$cfgfile"
14935
14936# func_append var value
14937# Append VALUE to the end of shell variable VAR.
14938func_append ()
14939{
14940 eval "$1=\$$1\$2"
14941}
14942
14943_LT_EOF
14944 ;;
14945 esac
14946
14947
14948 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14949 || (rm -f "$cfgfile"; exit 1)
14950
14951 mv -f "$cfgfile" "$ofile" ||
14952 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14953 chmod +x "$ofile"
14954
14955 ;;
14956
14957 esac
14958done # for ac_tag
14959
14960
14961as_fn_exit 0
14962_ACEOF
14963ac_clean_files=$ac_clean_files_save
14964
14965test $ac_write_fail = 0 ||
22e05272 14966 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
d7f09764
DN
14967
14968
14969# configure is writing to config.log, and then calls config.status.
14970# config.status does its own redirection, appending to config.log.
14971# Unfortunately, on DOS this fails, as config.log is still kept open
14972# by configure, so config.status won't be able to write to it; its
14973# output is simply discarded. So we exec the FD to /dev/null,
14974# effectively closing config.log, so it can be properly (re)opened and
14975# appended to by config.status. When coming back to configure, we
14976# need to make the FD available again.
14977if test "$no_create" != yes; then
14978 ac_cs_success=:
14979 ac_config_status_args=
14980 test "$silent" = yes &&
14981 ac_config_status_args="$ac_config_status_args --quiet"
14982 exec 5>/dev/null
14983 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14984 exec 5>>config.log
14985 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14986 # would make configure fail if this is the last instruction.
22e05272 14987 $ac_cs_success || as_fn_exit 1
d7f09764
DN
14988fi
14989if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14991$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14992fi
14993
This page took 3.005973 seconds and 5 git commands to generate.