]> git.saurik.com Git - wxWidgets.git/blame - src/expat/configure
Update the version of Expat used to 2.1.0.
[wxWidgets.git] / src / expat / configure
CommitLineData
5e9f2524
VS
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
11a3e7b6
VZ
3# Generated by GNU Autoconf 2.69 for expat 2.1.0.
4#
5# Report bugs to <expat-bugs@libexpat.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
5e9f2524 10#
5e9f2524
VS
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
11a3e7b6
VZ
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
5e9f2524 16
11a3e7b6
VZ
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5e9f2524
VS
20 emulate sh
21 NULLCMD=:
11a3e7b6 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
79608eef
VS
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
11a3e7b6
VZ
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
5e9f2524
VS
33fi
34
11a3e7b6
VZ
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
5e9f2524 52else
11a3e7b6
VZ
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
5e9f2524
VS
81fi
82
79608eef 83
11a3e7b6
VZ
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
79608eef
VS
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
11a3e7b6
VZ
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
79608eef 213do
11a3e7b6
VZ
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
79608eef 268 else
11a3e7b6
VZ
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: expat-bugs@libexpat.org about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
79608eef 274 fi
11a3e7b6
VZ
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
79608eef 421
11a3e7b6
VZ
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
79608eef
VS
424 as_expr=expr
425else
426 as_expr=false
427fi
428
11a3e7b6 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
79608eef
VS
430 as_basename=basename
431else
432 as_basename=false
433fi
5e9f2524 434
11a3e7b6
VZ
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
5e9f2524 440
11a3e7b6 441as_me=`$as_basename -- "$0" ||
5e9f2524
VS
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
11a3e7b6
VZ
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
5e9f2524 459
5e9f2524
VS
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
5e9f2524 467
11a3e7b6
VZ
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
5e9f2524 477 sed '
11a3e7b6
VZ
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
5e9f2524 482 N
11a3e7b6
VZ
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5e9f2524 485 t loop
11a3e7b6 486 s/-\n.*//
5e9f2524 487 ' >$as_me.lineno &&
11a3e7b6
VZ
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5e9f2524 490
11a3e7b6
VZ
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
5e9f2524
VS
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
11a3e7b6
VZ
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
5e9f2524
VS
499 # Exit status is that of the last command.
500 exit
501}
502
11a3e7b6
VZ
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
5e9f2524
VS
514esac
515
11a3e7b6
VZ
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
5e9f2524 519else
11a3e7b6
VZ
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
5e9f2524 522fi
11a3e7b6
VZ
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
5e9f2524 525 as_ln_s='ln -s'
11a3e7b6
VZ
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
5e9f2524 536 fi
5e9f2524 537else
11a3e7b6 538 as_ln_s='cp -pR'
5e9f2524 539fi
11a3e7b6
VZ
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
5e9f2524 542
79608eef 543if mkdir -p . 2>/dev/null; then
11a3e7b6 544 as_mkdir_p='mkdir -p "$as_dir"'
79608eef 545else
11a3e7b6 546 test -d ./-p && rmdir ./-p
79608eef
VS
547 as_mkdir_p=false
548fi
549
11a3e7b6
VZ
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
5e9f2524
VS
552
553# Sed expression to map a string onto a valid CPP name.
11a3e7b6 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5e9f2524
VS
555
556# Sed expression to map a string onto a valid variable name.
11a3e7b6 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
79608eef 558
79608eef
VS
559
560
561# Check that we are running under the correct shell.
562SHELL=${CONFIG_SHELL-/bin/sh}
563
11a3e7b6 564case X$lt_ECHO in
79608eef
VS
565X*--fallback-echo)
566 # Remove one level of quotation (which was required for Make).
11a3e7b6 567 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
79608eef
VS
568 ;;
569esac
570
11a3e7b6 571ECHO=${lt_ECHO-echo}
79608eef
VS
572if test "X$1" = X--no-reexec; then
573 # Discard the --no-reexec flag, and continue.
574 shift
575elif test "X$1" = X--fallback-echo; then
576 # Avoid inline document here, it may be left over
577 :
11a3e7b6
VZ
578elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
579 # Yippee, $ECHO works!
79608eef
VS
580 :
581else
582 # Restart under the correct shell.
583 exec $SHELL "$0" --no-reexec ${1+"$@"}
584fi
585
586if test "X$1" = X--fallback-echo; then
587 # used as fallback echo
588 shift
11a3e7b6
VZ
589 cat <<_LT_EOF
590$*
591_LT_EOF
79608eef
VS
592 exit 0
593fi
594
595# The HP-UX ksh and POSIX shell print the target directory to stdout
596# if CDPATH is set.
11a3e7b6
VZ
597(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
598
599if test -z "$lt_ECHO"; then
600 if test "X${echo_test_string+set}" != Xset; then
601 # find a string as large as possible, as long as the shell can cope with it
602 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
605 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
606 then
607 break
608 fi
609 done
610 fi
79608eef 611
11a3e7b6
VZ
612 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
613 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
614 test "X$echo_testing_string" = "X$echo_test_string"; then
615 :
616 else
617 # The Solaris, AIX, and Digital Unix default echo programs unquote
618 # backslashes. This makes it impossible to quote backslashes using
619 # echo "$something" | sed 's/\\/\\\\/g'
620 #
621 # So, first we look for a working echo in the user's PATH.
622
623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
624 for dir in $PATH /usr/ucb; do
625 IFS="$lt_save_ifs"
626 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
627 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 ECHO="$dir/echo"
631 break
632 fi
633 done
634 IFS="$lt_save_ifs"
635
636 if test "X$ECHO" = Xecho; then
637 # We didn't find a better echo, so look for alternatives.
638 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
639 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 # This shell has a builtin print -r that does the trick.
642 ECHO='print -r'
643 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
644 test "X$CONFIG_SHELL" != X/bin/ksh; then
645 # If we have ksh, try running configure again with it.
646 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
647 export ORIGINAL_CONFIG_SHELL
648 CONFIG_SHELL=/bin/ksh
649 export CONFIG_SHELL
650 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
79608eef 651 else
11a3e7b6
VZ
652 # Try using printf.
653 ECHO='printf %s\n'
654 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # Cool, printf works
658 :
659 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
660 test "X$echo_testing_string" = 'X\t' &&
661 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
662 test "X$echo_testing_string" = "X$echo_test_string"; then
663 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
664 export CONFIG_SHELL
665 SHELL="$CONFIG_SHELL"
666 export SHELL
667 ECHO="$CONFIG_SHELL $0 --fallback-echo"
668 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
669 test "X$echo_testing_string" = 'X\t' &&
670 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
671 test "X$echo_testing_string" = "X$echo_test_string"; then
672 ECHO="$CONFIG_SHELL $0 --fallback-echo"
673 else
674 # maybe with a smaller string...
675 prev=:
676
677 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
678 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
679 then
680 break
681 fi
682 prev="$cmd"
683 done
684
685 if test "$prev" != 'sed 50q "$0"'; then
686 echo_test_string=`eval $prev`
687 export echo_test_string
688 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
689 else
690 # Oops. We lost completely, so just stick with echo.
691 ECHO=echo
79608eef 692 fi
11a3e7b6 693 fi
79608eef
VS
694 fi
695 fi
696 fi
697fi
79608eef
VS
698
699# Copy echo and quote the copy suitably for passing to libtool from
700# the Makefile, instead of quoting the original, which is used later.
11a3e7b6
VZ
701lt_ECHO=$ECHO
702if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
703 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
79608eef 704fi
5e9f2524 705
5e9f2524
VS
706
707
11a3e7b6
VZ
708
709test -n "$DJDIR" || exec 7<&0 </dev/null
710exec 6>&1
711
5e9f2524 712# Name of the host.
11a3e7b6 713# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5e9f2524
VS
714# so uname gets run too.
715ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
5e9f2524
VS
717#
718# Initializations.
719#
720ac_default_prefix=/usr/local
11a3e7b6 721ac_clean_files=
79608eef 722ac_config_libobj_dir=.
11a3e7b6 723LIBOBJS=
5e9f2524
VS
724cross_compiling=no
725subdirs=
726MFLAGS=
727MAKEFLAGS=
5e9f2524
VS
728
729# Identity of this package.
11a3e7b6
VZ
730PACKAGE_NAME='expat'
731PACKAGE_TARNAME='expat'
732PACKAGE_VERSION='2.1.0'
733PACKAGE_STRING='expat 2.1.0'
734PACKAGE_BUGREPORT='expat-bugs@libexpat.org'
735PACKAGE_URL=''
5e9f2524
VS
736
737ac_unique_file="Makefile.in"
738# Factoring default headers for most tests.
739ac_includes_default="\
740#include <stdio.h>
11a3e7b6 741#ifdef HAVE_SYS_TYPES_H
5e9f2524
VS
742# include <sys/types.h>
743#endif
11a3e7b6 744#ifdef HAVE_SYS_STAT_H
5e9f2524
VS
745# include <sys/stat.h>
746#endif
11a3e7b6 747#ifdef STDC_HEADERS
5e9f2524
VS
748# include <stdlib.h>
749# include <stddef.h>
750#else
11a3e7b6 751# ifdef HAVE_STDLIB_H
5e9f2524
VS
752# include <stdlib.h>
753# endif
754#endif
11a3e7b6
VZ
755#ifdef HAVE_STRING_H
756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5e9f2524
VS
757# include <memory.h>
758# endif
759# include <string.h>
760#endif
11a3e7b6 761#ifdef HAVE_STRINGS_H
5e9f2524
VS
762# include <strings.h>
763#endif
11a3e7b6 764#ifdef HAVE_INTTYPES_H
5e9f2524 765# include <inttypes.h>
5e9f2524 766#endif
11a3e7b6
VZ
767#ifdef HAVE_STDINT_H
768# include <stdint.h>
769#endif
770#ifdef HAVE_UNISTD_H
5e9f2524
VS
771# include <unistd.h>
772#endif"
773
11a3e7b6
VZ
774ac_header_list=
775ac_subst_vars='LTLIBOBJS
776LIBOBJS
777FILEMAP
778INSTALL_DATA
779INSTALL_SCRIPT
780INSTALL_PROGRAM
781CXXCPP
782ac_ct_CXX
783CXXFLAGS
784CXX
785LIBAGE
786LIBREVISION
787LIBCURRENT
788CPP
789OTOOL64
790OTOOL
791LIPO
792NMEDIT
793DSYMUTIL
794lt_ECHO
795RANLIB
796STRIP
797AR
798LN_S
799NM
800ac_ct_DUMPBIN
801DUMPBIN
802LD
803FGREP
804EGREP
805GREP
806SED
807LIBTOOL
808OBJDUMP
809DLLTOOL
810AS
811host_os
812host_vendor
813host_cpu
814host
815build_os
816build_vendor
817build_cpu
818build
819OBJEXT
820EXEEXT
821ac_ct_CC
822CPPFLAGS
823LDFLAGS
824CFLAGS
825CC
826target_alias
827host_alias
828build_alias
829LIBS
830ECHO_T
831ECHO_N
832ECHO_C
833DEFS
834mandir
835localedir
836libdir
837psdir
838pdfdir
839dvidir
840htmldir
841infodir
842docdir
843oldincludedir
844includedir
845localstatedir
846sharedstatedir
847sysconfdir
848datadir
849datarootdir
850libexecdir
851sbindir
852bindir
853program_transform_name
854prefix
855exec_prefix
856PACKAGE_URL
857PACKAGE_BUGREPORT
858PACKAGE_STRING
859PACKAGE_VERSION
860PACKAGE_TARNAME
861PACKAGE_NAME
862PATH_SEPARATOR
863SHELL'
79608eef 864ac_subst_files=''
11a3e7b6
VZ
865ac_user_opts='
866enable_option_checking
867enable_shared
868enable_static
869with_pic
870enable_fast_install
871with_gnu_ld
872enable_libtool_lock
873'
874 ac_precious_vars='build_alias
875host_alias
876target_alias
877CC
878CFLAGS
879LDFLAGS
880LIBS
881CPPFLAGS
882CPP
883CXX
884CXXFLAGS
885CCC
886CXXCPP'
887
5e9f2524
VS
888
889# Initialize some variables set by options.
890ac_init_help=
891ac_init_version=false
11a3e7b6
VZ
892ac_unrecognized_opts=
893ac_unrecognized_sep=
5e9f2524
VS
894# The variables have the same names as the options, with
895# dashes changed to underlines.
896cache_file=/dev/null
897exec_prefix=NONE
898no_create=
899no_recursion=
900prefix=NONE
901program_prefix=NONE
902program_suffix=NONE
903program_transform_name=s,x,x,
904silent=
905site=
906srcdir=
907verbose=
908x_includes=NONE
909x_libraries=NONE
910
911# Installation directory options.
912# These are left unexpanded so users can "make install exec_prefix=/foo"
913# and all the variables that are supposed to be based on exec_prefix
914# by default will actually change.
915# Use braces instead of parens because sh, perl, etc. also accept them.
11a3e7b6 916# (The list follows the same order as the GNU Coding Standards.)
5e9f2524
VS
917bindir='${exec_prefix}/bin'
918sbindir='${exec_prefix}/sbin'
919libexecdir='${exec_prefix}/libexec'
11a3e7b6
VZ
920datarootdir='${prefix}/share'
921datadir='${datarootdir}'
5e9f2524
VS
922sysconfdir='${prefix}/etc'
923sharedstatedir='${prefix}/com'
924localstatedir='${prefix}/var'
5e9f2524
VS
925includedir='${prefix}/include'
926oldincludedir='/usr/include'
11a3e7b6
VZ
927docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928infodir='${datarootdir}/info'
929htmldir='${docdir}'
930dvidir='${docdir}'
931pdfdir='${docdir}'
932psdir='${docdir}'
933libdir='${exec_prefix}/lib'
934localedir='${datarootdir}/locale'
935mandir='${datarootdir}/man'
5e9f2524
VS
936
937ac_prev=
11a3e7b6 938ac_dashdash=
5e9f2524
VS
939for ac_option
940do
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
11a3e7b6 943 eval $ac_prev=\$ac_option
5e9f2524
VS
944 ac_prev=
945 continue
946 fi
947
11a3e7b6
VZ
948 case $ac_option in
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
952 esac
5e9f2524
VS
953
954 # Accept the important Cygnus configure options, so we can diagnose typos.
955
11a3e7b6
VZ
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
5e9f2524
VS
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
964
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
979
11a3e7b6 980 -datadir | --datadir | --datadi | --datad)
5e9f2524 981 ac_prev=datadir ;;
11a3e7b6 982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
5e9f2524
VS
983 datadir=$ac_optarg ;;
984
11a3e7b6
VZ
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
5e9f2524 992 -disable-* | --disable-*)
11a3e7b6 993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
5e9f2524 994 # Reject names that are not valid shell variable names.
11a3e7b6
VZ
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001"enable_$ac_useropt"
1002"*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
5e9f2524
VS
1017
1018 -enable-* | --enable-*)
11a3e7b6 1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
5e9f2524 1020 # Reject names that are not valid shell variable names.
11a3e7b6
VZ
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027"enable_$ac_useropt"
1028"*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
5e9f2524 1031 esac
11a3e7b6 1032 eval enable_$ac_useropt=\$ac_optarg ;;
5e9f2524
VS
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
11a3e7b6
VZ
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
5e9f2524
VS
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
11a3e7b6
VZ
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
5e9f2524 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
11a3e7b6 1095 | --localstate | --localstat | --localsta | --localst | --locals)
5e9f2524
VS
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
11a3e7b6 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
5e9f2524
VS
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
11a3e7b6
VZ
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
5e9f2524
VS
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
11a3e7b6 1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5e9f2524 1224 # Reject names that are not valid shell variable names.
11a3e7b6
VZ
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231"with_$ac_useropt"
1232"*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
5e9f2524 1235 esac
11a3e7b6 1236 eval with_$ac_useropt=\$ac_optarg ;;
5e9f2524
VS
1237
1238 -without-* | --without-*)
11a3e7b6 1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5e9f2524 1240 # Reject names that are not valid shell variable names.
11a3e7b6
VZ
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247"with_$ac_useropt"
1248"*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
5e9f2524
VS
1253
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1257
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1264
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1271
11a3e7b6
VZ
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273Try \`$0 --help' for more information"
5e9f2524
VS
1274 ;;
1275
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
11a3e7b6
VZ
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282 esac
1283 eval $ac_envvar=\$ac_optarg
5e9f2524
VS
1284 export $ac_envvar ;;
1285
1286 *)
1287 # FIXME: should be removed in autoconf 3.0.
11a3e7b6 1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
5e9f2524 1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11a3e7b6
VZ
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
5e9f2524
VS
1292 ;;
1293
1294 esac
1295done
1296
1297if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11a3e7b6 1299 as_fn_error $? "missing argument to $ac_option"
5e9f2524
VS
1300fi
1301
11a3e7b6
VZ
1302if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5e9f2524 1307 esac
11a3e7b6 1308fi
5e9f2524 1309
11a3e7b6
VZ
1310# Check all directory arguments for consistency.
1311for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
5e9f2524 1315do
11a3e7b6
VZ
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
5e9f2524 1324 case $ac_val in
11a3e7b6
VZ
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
5e9f2524 1327 esac
11a3e7b6 1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
5e9f2524
VS
1329done
1330
1331# There might be people who depend on the old broken behavior: `$host'
1332# used to hold the argument of --host etc.
1333# FIXME: To remove some day.
1334build=$build_alias
1335host=$host_alias
1336target=$target_alias
1337
1338# FIXME: To remove some day.
1339if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
5e9f2524
VS
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1344 fi
1345fi
1346
1347ac_tool_prefix=
1348test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350test "$silent" = yes && exec 6>/dev/null
1351
1352
11a3e7b6
VZ
1353ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354ac_ls_di=`ls -di .` &&
1355ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1359
1360
5e9f2524
VS
1361# Find the source files, if location was not specified.
1362if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
11a3e7b6
VZ
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370$as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
5e9f2524 1388 srcdir=$ac_confdir
11a3e7b6 1389 if test ! -r "$srcdir/$ac_unique_file"; then
5e9f2524
VS
1390 srcdir=..
1391 fi
1392else
1393 ac_srcdir_defaulted=no
1394fi
11a3e7b6
VZ
1395if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398fi
1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 pwd)`
1403# When building in place, set srcdir=.
1404if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406fi
1407# Remove unnecessary trailing slashes from srcdir.
1408# Double slashes in file names in object file debugging info
1409# mess up M-x gdb in Emacs.
1410case $srcdir in
1411*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412esac
1413for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418done
5e9f2524
VS
1419
1420#
1421# Report the --help message.
1422#
1423if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
11a3e7b6 1427\`configure' configures expat 2.1.0 to adapt to many kinds of systems.
5e9f2524
VS
1428
1429Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434Defaults for the options are specified in brackets.
1435
1436Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
11a3e7b6 1441 -q, --quiet, --silent do not print \`checking ...' messages
5e9f2524
VS
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
5e9f2524
VS
1447Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1452
1453By default, \`make install' will install all the files in
1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456for instance \`--prefix=\$HOME'.
1457
1458For better control, use the options below.
1459
1460Fine tuning of the installation directories:
11a3e7b6
VZ
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/expat]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
5e9f2524
VS
1480_ACEOF
1481
1482 cat <<\_ACEOF
1483
1484System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487_ACEOF
1488fi
1489
1490if test -n "$ac_init_help"; then
11a3e7b6
VZ
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of expat 2.1.0:";;
1493 esac
5e9f2524
VS
1494 cat <<\_ACEOF
1495
1496Optional Features:
11a3e7b6 1497 --disable-option-checking ignore unrecognized --enable/--with options
5e9f2524
VS
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
11a3e7b6
VZ
1500 --enable-shared[=PKGS] build shared libraries [default=yes]
1501 --enable-static[=PKGS] build static libraries [default=yes]
1502 --enable-fast-install[=PKGS]
1503 optimize for fast installation [default=yes]
5e9f2524
VS
1504 --disable-libtool-lock avoid locking (might break parallel builds)
1505
1506Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
11a3e7b6
VZ
1509 --with-pic try to use only PIC/non-PIC objects [default=use
1510 both]
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5e9f2524
VS
1512
1513Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
11a3e7b6
VZ
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
5e9f2524 1521 CPP C preprocessor
11a3e7b6
VZ
1522 CXX C++ compiler command
1523 CXXFLAGS C++ compiler flags
1524 CXXCPP C++ preprocessor
5e9f2524
VS
1525
1526Use these variables to override the choices made by `configure' or to help
1527it to find libraries and programs with nonstandard names/locations.
1528
11a3e7b6 1529Report bugs to <expat-bugs@libexpat.org>.
5e9f2524 1530_ACEOF
11a3e7b6 1531ac_status=$?
5e9f2524
VS
1532fi
1533
1534if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
5e9f2524 1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
11a3e7b6
VZ
1537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 continue
5e9f2524
VS
1540 ac_builddir=.
1541
11a3e7b6
VZ
1542case "$ac_dir" in
1543.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544*)
1545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 esac ;;
1552esac
1553ac_abs_top_builddir=$ac_pwd
1554ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555# for backward compatibility:
1556ac_top_builddir=$ac_top_build_prefix
5e9f2524
VS
1557
1558case $srcdir in
11a3e7b6 1559 .) # We are building in place.
5e9f2524 1560 ac_srcdir=.
11a3e7b6
VZ
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
5e9f2524 1564 ac_srcdir=$srcdir$ac_dir_suffix;
11a3e7b6
VZ
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1567 *) # Relative name.
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5e9f2524 1571esac
11a3e7b6
VZ
1572ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure" --help=recursive
5e9f2524 1582 else
11a3e7b6
VZ
1583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 fi || ac_status=$?
1585 cd "$ac_pwd" || { ac_status=$?; break; }
5e9f2524
VS
1586 done
1587fi
1588
11a3e7b6 1589test -n "$ac_init_help" && exit $ac_status
5e9f2524
VS
1590if $ac_init_version; then
1591 cat <<\_ACEOF
11a3e7b6
VZ
1592expat configure 2.1.0
1593generated by GNU Autoconf 2.69
5e9f2524 1594
11a3e7b6 1595Copyright (C) 2012 Free Software Foundation, Inc.
5e9f2524
VS
1596This configure script is free software; the Free Software Foundation
1597gives unlimited permission to copy, distribute and modify it.
1598_ACEOF
11a3e7b6 1599 exit
5e9f2524 1600fi
5e9f2524 1601
11a3e7b6
VZ
1602## ------------------------ ##
1603## Autoconf initialization. ##
1604## ------------------------ ##
5e9f2524 1605
11a3e7b6
VZ
1606# ac_fn_c_try_compile LINENO
1607# --------------------------
1608# Try to compile conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_compile ()
5e9f2524 1610{
11a3e7b6
VZ
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext
1613 if { { ac_try="$ac_compile"
1614case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext; then :
1632 ac_retval=0
1633else
1634 $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
5e9f2524 1636
11a3e7b6
VZ
1637 ac_retval=1
1638fi
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
5e9f2524 1641
11a3e7b6 1642} # ac_fn_c_try_compile
5e9f2524 1643
11a3e7b6
VZ
1644# ac_fn_c_try_link LINENO
1645# -----------------------
1646# Try to link conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_link ()
1648{
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest$ac_exeext
1651 if { { ac_try="$ac_link"
1652case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest$ac_exeext && {
1670 test "$cross_compiling" = yes ||
1671 test -x conftest$ac_exeext
1672 }; then :
1673 ac_retval=0
1674else
1675 $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679fi
1680 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1681 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1682 # interfere with the next link command; also delete a directory that is
1683 # left behind by Apple's compiler. We do this before executing the actions.
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_link
1689
1690# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691# -------------------------------------------------------
1692# Tests whether HEADER exists and can be compiled using the include files in
1693# INCLUDES, setting the cache variable VAR accordingly.
1694ac_fn_c_check_header_compile ()
1695{
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698$as_echo_n "checking for $2... " >&6; }
1699if eval \${$3+:} false; then :
1700 $as_echo_n "(cached) " >&6
1701else
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703/* end confdefs.h. */
1704$4
1705#include <$2>
1706_ACEOF
1707if ac_fn_c_try_compile "$LINENO"; then :
1708 eval "$3=yes"
1709else
1710 eval "$3=no"
1711fi
1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713fi
1714eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716$as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719} # ac_fn_c_check_header_compile
1720
1721# ac_fn_c_try_cpp LINENO
1722# ----------------------
1723# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1724ac_fn_c_try_cpp ()
1725{
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_cpp conftest.$ac_ext"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } > conftest.i && {
1743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 }; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1755
1756} # ac_fn_c_try_cpp
1757
1758# ac_fn_c_try_run LINENO
1759# ----------------------
1760# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1761# that executables *can* be run.
1762ac_fn_c_try_run ()
1763{
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_link"
1766case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>&5
1773 ac_status=$?
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1776 { { case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_try") 2>&5
1783 ac_status=$?
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; }; }; then :
1786 ac_retval=0
1787else
1788 $as_echo "$as_me: program exited with status $ac_status" >&5
1789 $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=$ac_status
1793fi
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1797
1798} # ac_fn_c_try_run
1799
1800# ac_fn_c_check_func LINENO FUNC VAR
1801# ----------------------------------
1802# Tests whether FUNC exists, setting the cache variable VAR accordingly
1803ac_fn_c_check_func ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807$as_echo_n "checking for $2... " >&6; }
1808if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1810else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1815#define $2 innocuous_$2
1816
1817/* System header to define __stub macros and hopefully few prototypes,
1818 which can conflict with char $2 (); below.
1819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1820 <limits.h> exists even on freestanding compilers. */
1821
1822#ifdef __STDC__
1823# include <limits.h>
1824#else
1825# include <assert.h>
1826#endif
1827
1828#undef $2
1829
1830/* Override any GCC internal prototype to avoid an error.
1831 Use char because int might match the return type of a GCC
1832 builtin and then its argument prototype would still apply. */
1833#ifdef __cplusplus
1834extern "C"
1835#endif
1836char $2 ();
1837/* The GNU C library defines this for functions which it implements
1838 to always fail with ENOSYS. Some functions are actually named
1839 something starting with __ and the normal name is an alias. */
1840#if defined __stub_$2 || defined __stub___$2
1841choke me
1842#endif
1843
1844int
1845main ()
1846{
1847return $2 ();
1848 ;
1849 return 0;
1850}
1851_ACEOF
1852if ac_fn_c_try_link "$LINENO"; then :
1853 eval "$3=yes"
1854else
1855 eval "$3=no"
1856fi
1857rm -f core conftest.err conftest.$ac_objext \
1858 conftest$ac_exeext conftest.$ac_ext
1859fi
1860eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865} # ac_fn_c_check_func
1866
1867# ac_fn_cxx_try_compile LINENO
1868# ----------------------------
1869# Try to compile conftest.$ac_ext, and return whether this succeeded.
1870ac_fn_cxx_try_compile ()
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext
1874 if { { ac_try="$ac_compile"
1875case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_compile") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest.$ac_objext; then :
1893 ac_retval=0
1894else
1895 $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=1
1899fi
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1902
1903} # ac_fn_cxx_try_compile
1904
1905# ac_fn_cxx_try_cpp LINENO
1906# ------------------------
1907# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908ac_fn_cxx_try_cpp ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { { ac_try="$ac_cpp conftest.$ac_ext"
1912case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1924 fi
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } > conftest.i && {
1927 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1928 test ! -s conftest.err
1929 }; then :
1930 ac_retval=0
1931else
1932 $as_echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 ac_retval=1
1936fi
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1939
1940} # ac_fn_cxx_try_cpp
1941
1942# ac_fn_cxx_try_link LINENO
1943# -------------------------
1944# Try to link conftest.$ac_ext, and return whether this succeeded.
1945ac_fn_cxx_try_link ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 rm -f conftest.$ac_objext conftest$ac_exeext
1949 if { { ac_try="$ac_link"
1950case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_link") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1962 fi
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && {
1965 test -z "$ac_cxx_werror_flag" ||
1966 test ! -s conftest.err
1967 } && test -s conftest$ac_exeext && {
1968 test "$cross_compiling" = yes ||
1969 test -x conftest$ac_exeext
1970 }; then :
1971 ac_retval=0
1972else
1973 $as_echo "$as_me: failed program was:" >&5
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
1976 ac_retval=1
1977fi
1978 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1979 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1980 # interfere with the next link command; also delete a directory that is
1981 # left behind by Apple's compiler. We do this before executing the actions.
1982 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 as_fn_set_status $ac_retval
1985
1986} # ac_fn_cxx_try_link
1987
1988# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1989# -------------------------------------------
1990# Tests whether TYPE exists after having included INCLUDES, setting cache
1991# variable VAR accordingly.
1992ac_fn_c_check_type ()
1993{
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996$as_echo_n "checking for $2... " >&6; }
1997if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
1999else
2000 eval "$3=no"
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003$4
2004int
2005main ()
2006{
2007if (sizeof ($2))
2008 return 0;
2009 ;
2010 return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016$4
2017int
2018main ()
2019{
2020if (sizeof (($2)))
2021 return 0;
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027
2028else
2029 eval "$3=yes"
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035eval ac_res=\$$3
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037$as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040} # ac_fn_c_check_type
2041
2042# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2043# -------------------------------------------------------
2044# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2045# the include files in INCLUDES and setting the cache variable VAR
2046# accordingly.
2047ac_fn_c_check_header_mongrel ()
2048{
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 if eval \${$3+:} false; then :
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052$as_echo_n "checking for $2... " >&6; }
2053if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2055fi
2056eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058$as_echo "$ac_res" >&6; }
2059else
2060 # Is the header compilable?
2061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2062$as_echo_n "checking $2 usability... " >&6; }
2063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h. */
2065$4
2066#include <$2>
2067_ACEOF
2068if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_header_compiler=yes
2070else
2071 ac_header_compiler=no
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2075$as_echo "$ac_header_compiler" >&6; }
2076
2077# Is the header present?
2078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2079$as_echo_n "checking $2 presence... " >&6; }
2080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h. */
2082#include <$2>
2083_ACEOF
2084if ac_fn_c_try_cpp "$LINENO"; then :
2085 ac_header_preproc=yes
2086else
2087 ac_header_preproc=no
2088fi
2089rm -f conftest.err conftest.i conftest.$ac_ext
2090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2091$as_echo "$ac_header_preproc" >&6; }
2092
2093# So? What about this header?
2094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2095 yes:no: )
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2097$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2099$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2100 ;;
2101 no:yes:* )
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2103$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2105$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2107$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2109$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2111$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2112( $as_echo "## -------------------------------------- ##
2113## Report this to expat-bugs@libexpat.org ##
2114## -------------------------------------- ##"
2115 ) | sed "s/^/$as_me: WARNING: /" >&2
2116 ;;
2117esac
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119$as_echo_n "checking for $2... " >&6; }
2120if eval \${$3+:} false; then :
2121 $as_echo_n "(cached) " >&6
2122else
2123 eval "$3=\$ac_header_compiler"
2124fi
2125eval ac_res=\$$3
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127$as_echo "$ac_res" >&6; }
2128fi
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130
2131} # ac_fn_c_check_header_mongrel
2132cat >config.log <<_ACEOF
2133This file contains any messages produced by compilers while
2134running configure, to aid debugging if configure makes a mistake.
2135
2136It was created by expat $as_me 2.1.0, which was
2137generated by GNU Autoconf 2.69. Invocation command line was
2138
2139 $ $0 $@
2140
2141_ACEOF
2142exec 5>>config.log
2143{
2144cat <<_ASUNAME
2145## --------- ##
2146## Platform. ##
2147## --------- ##
2148
2149hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2150uname -m = `(uname -m) 2>/dev/null || echo unknown`
2151uname -r = `(uname -r) 2>/dev/null || echo unknown`
2152uname -s = `(uname -s) 2>/dev/null || echo unknown`
2153uname -v = `(uname -v) 2>/dev/null || echo unknown`
2154
2155/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2156/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2157
2158/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2159/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2160/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2161/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2162/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2163/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2164/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2165
2166_ASUNAME
5e9f2524
VS
2167
2168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
2173 $as_echo "PATH: $as_dir"
2174 done
2175IFS=$as_save_IFS
5e9f2524
VS
2176
2177} >&5
2178
2179cat >&5 <<_ACEOF
2180
2181
2182## ----------- ##
2183## Core tests. ##
2184## ----------- ##
2185
2186_ACEOF
2187
2188
2189# Keep a trace of the command line.
2190# Strip out --no-create and --no-recursion so they do not pile up.
79608eef 2191# Strip out --silent because we don't want to record it for future runs.
5e9f2524 2192# Also quote any args containing shell meta-characters.
79608eef 2193# Make two passes to allow for proper duplicate-argument suppression.
5e9f2524 2194ac_configure_args=
79608eef
VS
2195ac_configure_args0=
2196ac_configure_args1=
79608eef
VS
2197ac_must_keep_next=false
2198for ac_pass in 1 2
5e9f2524 2199do
79608eef
VS
2200 for ac_arg
2201 do
2202 case $ac_arg in
2203 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205 | -silent | --silent | --silen | --sile | --sil)
2206 continue ;;
11a3e7b6
VZ
2207 *\'*)
2208 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
79608eef
VS
2209 esac
2210 case $ac_pass in
11a3e7b6 2211 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
79608eef 2212 2)
11a3e7b6 2213 as_fn_append ac_configure_args1 " '$ac_arg'"
79608eef 2214 if test $ac_must_keep_next = true; then
11a3e7b6 2215 ac_must_keep_next=false # Got value, back to normal.
79608eef 2216 else
11a3e7b6
VZ
2217 case $ac_arg in
2218 *=* | --config-cache | -C | -disable-* | --disable-* \
2219 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221 | -with-* | --with-* | -without-* | --without-* | --x)
2222 case "$ac_configure_args0 " in
2223 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2224 esac
2225 ;;
2226 -* ) ac_must_keep_next=true ;;
2227 esac
79608eef 2228 fi
11a3e7b6 2229 as_fn_append ac_configure_args " '$ac_arg'"
79608eef
VS
2230 ;;
2231 esac
2232 done
5e9f2524 2233done
11a3e7b6
VZ
2234{ ac_configure_args0=; unset ac_configure_args0;}
2235{ ac_configure_args1=; unset ac_configure_args1;}
5e9f2524
VS
2236
2237# When interrupted or exit'd, cleanup temporary files, and complete
2238# config.log. We remove comments because anyway the quotes in there
2239# would cause problems or look ugly.
11a3e7b6
VZ
2240# WARNING: Use '\'' to represent an apostrophe within the trap.
2241# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
5e9f2524
VS
2242trap 'exit_status=$?
2243 # Save into config.log some information that might help in debugging.
2244 {
2245 echo
79608eef 2246
11a3e7b6 2247 $as_echo "## ---------------- ##
5e9f2524 2248## Cache variables. ##
11a3e7b6 2249## ---------------- ##"
5e9f2524
VS
2250 echo
2251 # The following way of writing the cache mishandles newlines in values,
11a3e7b6
VZ
2252(
2253 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2254 eval ac_val=\$$ac_var
2255 case $ac_val in #(
2256 *${as_nl}*)
2257 case $ac_var in #(
2258 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2259$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2260 esac
2261 case $ac_var in #(
2262 _ | IFS | as_nl) ;; #(
2263 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2264 *) { eval $ac_var=; unset $ac_var;} ;;
2265 esac ;;
2266 esac
2267 done
5e9f2524 2268 (set) 2>&1 |
11a3e7b6
VZ
2269 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2270 *${as_nl}ac_space=\ *)
5e9f2524 2271 sed -n \
11a3e7b6
VZ
2272 "s/'\''/'\''\\\\'\'''\''/g;
2273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2274 ;; #(
5e9f2524 2275 *)
11a3e7b6 2276 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5e9f2524 2277 ;;
11a3e7b6
VZ
2278 esac |
2279 sort
2280)
5e9f2524 2281 echo
79608eef 2282
11a3e7b6 2283 $as_echo "## ----------------- ##
79608eef 2284## Output variables. ##
11a3e7b6 2285## ----------------- ##"
79608eef
VS
2286 echo
2287 for ac_var in $ac_subst_vars
2288 do
11a3e7b6
VZ
2289 eval ac_val=\$$ac_var
2290 case $ac_val in
2291 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292 esac
2293 $as_echo "$ac_var='\''$ac_val'\''"
79608eef
VS
2294 done | sort
2295 echo
2296
2297 if test -n "$ac_subst_files"; then
11a3e7b6
VZ
2298 $as_echo "## ------------------- ##
2299## File substitutions. ##
2300## ------------------- ##"
79608eef
VS
2301 echo
2302 for ac_var in $ac_subst_files
2303 do
11a3e7b6
VZ
2304 eval ac_val=\$$ac_var
2305 case $ac_val in
2306 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2307 esac
2308 $as_echo "$ac_var='\''$ac_val'\''"
79608eef
VS
2309 done | sort
2310 echo
2311 fi
2312
5e9f2524 2313 if test -s confdefs.h; then
11a3e7b6 2314 $as_echo "## ----------- ##
5e9f2524 2315## confdefs.h. ##
11a3e7b6 2316## ----------- ##"
5e9f2524 2317 echo
11a3e7b6 2318 cat confdefs.h
5e9f2524
VS
2319 echo
2320 fi
2321 test "$ac_signal" != 0 &&
11a3e7b6
VZ
2322 $as_echo "$as_me: caught signal $ac_signal"
2323 $as_echo "$as_me: exit $exit_status"
5e9f2524 2324 } >&5
11a3e7b6
VZ
2325 rm -f core *.core core.conftest.* &&
2326 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
5e9f2524 2327 exit $exit_status
11a3e7b6 2328' 0
5e9f2524 2329for ac_signal in 1 2 13 15; do
11a3e7b6 2330 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
5e9f2524
VS
2331done
2332ac_signal=0
2333
2334# confdefs.h avoids OS command line length limits that DEFS can exceed.
11a3e7b6
VZ
2335rm -f -r conftest* confdefs.h
2336
2337$as_echo "/* confdefs.h */" > confdefs.h
5e9f2524
VS
2338
2339# Predefined preprocessor variables.
2340
2341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_NAME "$PACKAGE_NAME"
2343_ACEOF
2344
5e9f2524
VS
2345cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2347_ACEOF
2348
5e9f2524
VS
2349cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_VERSION "$PACKAGE_VERSION"
2351_ACEOF
2352
5e9f2524
VS
2353cat >>confdefs.h <<_ACEOF
2354#define PACKAGE_STRING "$PACKAGE_STRING"
2355_ACEOF
2356
5e9f2524
VS
2357cat >>confdefs.h <<_ACEOF
2358#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2359_ACEOF
2360
11a3e7b6
VZ
2361cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_URL "$PACKAGE_URL"
2363_ACEOF
2364
5e9f2524
VS
2365
2366# Let the site file select an alternate cache file if it wants to.
11a3e7b6
VZ
2367# Prefer an explicitly selected file to automatically selected ones.
2368ac_site_file1=NONE
2369ac_site_file2=NONE
2370if test -n "$CONFIG_SITE"; then
2371 # We do not want a PATH search for config.site.
2372 case $CONFIG_SITE in #((
2373 -*) ac_site_file1=./$CONFIG_SITE;;
2374 */*) ac_site_file1=$CONFIG_SITE;;
2375 *) ac_site_file1=./$CONFIG_SITE;;
2376 esac
2377elif test "x$prefix" != xNONE; then
2378 ac_site_file1=$prefix/share/config.site
2379 ac_site_file2=$prefix/etc/config.site
2380else
2381 ac_site_file1=$ac_default_prefix/share/config.site
2382 ac_site_file2=$ac_default_prefix/etc/config.site
5e9f2524 2383fi
11a3e7b6
VZ
2384for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2385do
2386 test "x$ac_site_file" = xNONE && continue
2387 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2389$as_echo "$as_me: loading site script $ac_site_file" >&6;}
5e9f2524 2390 sed 's/^/| /' "$ac_site_file" >&5
11a3e7b6
VZ
2391 . "$ac_site_file" \
2392 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2394as_fn_error $? "failed to load site script $ac_site_file
2395See \`config.log' for more details" "$LINENO" 5; }
5e9f2524
VS
2396 fi
2397done
2398
2399if test -r "$cache_file"; then
11a3e7b6
VZ
2400 # Some versions of bash will fail to source /dev/null (special files
2401 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2402 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2404$as_echo "$as_me: loading cache $cache_file" >&6;}
5e9f2524 2405 case $cache_file in
11a3e7b6
VZ
2406 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2407 *) . "./$cache_file";;
5e9f2524
VS
2408 esac
2409 fi
2410else
11a3e7b6
VZ
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2412$as_echo "$as_me: creating cache $cache_file" >&6;}
5e9f2524
VS
2413 >$cache_file
2414fi
2415
11a3e7b6
VZ
2416as_fn_append ac_header_list " stdlib.h"
2417as_fn_append ac_header_list " unistd.h"
2418as_fn_append ac_header_list " sys/param.h"
5e9f2524
VS
2419# Check that the precious variables saved in the cache have kept the same
2420# value.
2421ac_cache_corrupted=false
11a3e7b6 2422for ac_var in $ac_precious_vars; do
5e9f2524
VS
2423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424 eval ac_new_set=\$ac_env_${ac_var}_set
11a3e7b6
VZ
2425 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426 eval ac_new_val=\$ac_env_${ac_var}_value
5e9f2524
VS
2427 case $ac_old_set,$ac_new_set in
2428 set,)
11a3e7b6
VZ
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
5e9f2524
VS
2431 ac_cache_corrupted=: ;;
2432 ,set)
11a3e7b6
VZ
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
5e9f2524
VS
2435 ac_cache_corrupted=: ;;
2436 ,);;
2437 *)
2438 if test "x$ac_old_val" != "x$ac_new_val"; then
11a3e7b6
VZ
2439 # differences in whitespace do not lead to failure.
2440 ac_old_val_w=`echo x $ac_old_val`
2441 ac_new_val_w=`echo x $ac_new_val`
2442 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445 ac_cache_corrupted=:
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449 eval $ac_var=\$ac_old_val
2450 fi
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2452$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2454$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
5e9f2524
VS
2455 fi;;
2456 esac
2457 # Pass precious variables to config.status.
2458 if test "$ac_new_set" = set; then
2459 case $ac_new_val in
11a3e7b6 2460 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
5e9f2524
VS
2461 *) ac_arg=$ac_var=$ac_new_val ;;
2462 esac
2463 case " $ac_configure_args " in
2464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
11a3e7b6 2465 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
5e9f2524
VS
2466 esac
2467 fi
2468done
2469if $ac_cache_corrupted; then
11a3e7b6
VZ
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5e9f2524 2475fi
11a3e7b6
VZ
2476## -------------------- ##
2477## Main body of script. ##
2478## -------------------- ##
5e9f2524
VS
2479
2480ac_ext=c
2481ac_cpp='$CPP $CPPFLAGS'
2482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485
2486
2487
5e9f2524
VS
2488
2489
2490ac_aux_dir=
11a3e7b6
VZ
2491for ac_dir in conftools "$srcdir"/conftools; do
2492 if test -f "$ac_dir/install-sh"; then
5e9f2524
VS
2493 ac_aux_dir=$ac_dir
2494 ac_install_sh="$ac_aux_dir/install-sh -c"
2495 break
11a3e7b6 2496 elif test -f "$ac_dir/install.sh"; then
5e9f2524
VS
2497 ac_aux_dir=$ac_dir
2498 ac_install_sh="$ac_aux_dir/install.sh -c"
2499 break
11a3e7b6 2500 elif test -f "$ac_dir/shtool"; then
5e9f2524
VS
2501 ac_aux_dir=$ac_dir
2502 ac_install_sh="$ac_aux_dir/shtool install -c"
2503 break
2504 fi
2505done
2506if test -z "$ac_aux_dir"; then
11a3e7b6 2507 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5
5e9f2524 2508fi
5e9f2524 2509
11a3e7b6
VZ
2510# These three variables are undocumented and unsupported,
2511# and are intended to be withdrawn in a future Autoconf release.
2512# They can cause serious problems if a builder's source tree is in a directory
2513# whose full name contains unusual characters.
2514ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2515ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2516ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5e9f2524
VS
2517
2518
5e9f2524
VS
2519
2520
2521
2522
11a3e7b6
VZ
2523LIBCURRENT=7
2524LIBREVISION=0
2525LIBAGE=6
5e9f2524 2526
11a3e7b6 2527ac_config_headers="$ac_config_headers expat_config.h"
5e9f2524 2528
5e9f2524 2529
5e9f2524 2530
5e9f2524 2531
5e9f2524 2532
5e9f2524 2533
11a3e7b6 2534ac_ext=c
5e9f2524
VS
2535ac_cpp='$CPP $CPPFLAGS'
2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539if test -n "$ac_tool_prefix"; then
2540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2541set dummy ${ac_tool_prefix}gcc; ac_word=$2
11a3e7b6
VZ
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543$as_echo_n "checking for $ac_word... " >&6; }
2544if ${ac_cv_prog_CC+:} false; then :
2545 $as_echo_n "(cached) " >&6
5e9f2524
VS
2546else
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2549else
2550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551for as_dir in $PATH
2552do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5e9f2524 2557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11a3e7b6 2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5e9f2524
VS
2559 break 2
2560 fi
2561done
11a3e7b6
VZ
2562 done
2563IFS=$as_save_IFS
5e9f2524
VS
2564
2565fi
2566fi
2567CC=$ac_cv_prog_CC
2568if test -n "$CC"; then
11a3e7b6
VZ
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2570$as_echo "$CC" >&6; }
5e9f2524 2571else
11a3e7b6
VZ
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573$as_echo "no" >&6; }
5e9f2524
VS
2574fi
2575
11a3e7b6 2576
5e9f2524
VS
2577fi
2578if test -z "$ac_cv_prog_CC"; then
2579 ac_ct_CC=$CC
2580 # Extract the first word of "gcc", so it can be a program name with args.
2581set dummy gcc; ac_word=$2
11a3e7b6
VZ
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583$as_echo_n "checking for $ac_word... " >&6; }
2584if ${ac_cv_prog_ac_ct_CC+:} false; then :
2585 $as_echo_n "(cached) " >&6
5e9f2524
VS
2586else
2587 if test -n "$ac_ct_CC"; then
2588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2589else
2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5e9f2524 2597 ac_cv_prog_ac_ct_CC="gcc"
11a3e7b6 2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5e9f2524
VS
2599 break 2
2600 fi
2601done
11a3e7b6
VZ
2602 done
2603IFS=$as_save_IFS
5e9f2524
VS
2604
2605fi
2606fi
2607ac_ct_CC=$ac_cv_prog_ac_ct_CC
2608if test -n "$ac_ct_CC"; then
11a3e7b6
VZ
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2610$as_echo "$ac_ct_CC" >&6; }
5e9f2524 2611else
11a3e7b6
VZ
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613$as_echo "no" >&6; }
5e9f2524
VS
2614fi
2615
11a3e7b6
VZ
2616 if test "x$ac_ct_CC" = x; then
2617 CC=""
2618 else
2619 case $cross_compiling:$ac_tool_warned in
2620yes:)
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2623ac_tool_warned=yes ;;
2624esac
2625 CC=$ac_ct_CC
2626 fi
5e9f2524
VS
2627else
2628 CC="$ac_cv_prog_CC"
2629fi
2630
2631if test -z "$CC"; then
11a3e7b6
VZ
2632 if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5e9f2524 2634set dummy ${ac_tool_prefix}cc; ac_word=$2
11a3e7b6
VZ
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636$as_echo_n "checking for $ac_word... " >&6; }
2637if ${ac_cv_prog_CC+:} false; then :
2638 $as_echo_n "(cached) " >&6
5e9f2524
VS
2639else
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5e9f2524 2650 ac_cv_prog_CC="${ac_tool_prefix}cc"
11a3e7b6 2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5e9f2524
VS
2652 break 2
2653 fi
2654done
11a3e7b6
VZ
2655 done
2656IFS=$as_save_IFS
5e9f2524
VS
2657
2658fi
2659fi
2660CC=$ac_cv_prog_CC
2661if test -n "$CC"; then
11a3e7b6
VZ
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663$as_echo "$CC" >&6; }
5e9f2524 2664else
11a3e7b6
VZ
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666$as_echo "no" >&6; }
5e9f2524
VS
2667fi
2668
5e9f2524 2669
11a3e7b6 2670 fi
5e9f2524
VS
2671fi
2672if test -z "$CC"; then
2673 # Extract the first word of "cc", so it can be a program name with args.
2674set dummy cc; ac_word=$2
11a3e7b6
VZ
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
2677if ${ac_cv_prog_CC+:} false; then :
2678 $as_echo_n "(cached) " >&6
5e9f2524
VS
2679else
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2682else
2683 ac_prog_rejected=no
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5e9f2524
VS
2691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2692 ac_prog_rejected=yes
2693 continue
2694 fi
2695 ac_cv_prog_CC="cc"
11a3e7b6 2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5e9f2524
VS
2697 break 2
2698 fi
2699done
11a3e7b6
VZ
2700 done
2701IFS=$as_save_IFS
5e9f2524
VS
2702
2703if test $ac_prog_rejected = yes; then
2704 # We found a bogon in the path, so make sure we never use it.
2705 set dummy $ac_cv_prog_CC
2706 shift
2707 if test $# != 0; then
2708 # We chose a different compiler from the bogus one.
2709 # However, it has the same basename, so the bogon will be chosen
2710 # first if we set CC to just the basename; use the full file name.
2711 shift
79608eef 2712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5e9f2524
VS
2713 fi
2714fi
2715fi
2716fi
2717CC=$ac_cv_prog_CC
2718if test -n "$CC"; then
11a3e7b6
VZ
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720$as_echo "$CC" >&6; }
5e9f2524 2721else
11a3e7b6
VZ
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723$as_echo "no" >&6; }
5e9f2524
VS
2724fi
2725
11a3e7b6 2726
5e9f2524
VS
2727fi
2728if test -z "$CC"; then
2729 if test -n "$ac_tool_prefix"; then
11a3e7b6 2730 for ac_prog in cl.exe
5e9f2524
VS
2731 do
2732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11a3e7b6
VZ
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735$as_echo_n "checking for $ac_word... " >&6; }
2736if ${ac_cv_prog_CC+:} false; then :
2737 $as_echo_n "(cached) " >&6
5e9f2524
VS
2738else
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5e9f2524 2749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11a3e7b6 2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5e9f2524
VS
2751 break 2
2752 fi
2753done
11a3e7b6
VZ
2754 done
2755IFS=$as_save_IFS
5e9f2524
VS
2756
2757fi
2758fi
2759CC=$ac_cv_prog_CC
2760if test -n "$CC"; then
11a3e7b6
VZ
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762$as_echo "$CC" >&6; }
5e9f2524 2763else
11a3e7b6
VZ
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
5e9f2524
VS
2766fi
2767
11a3e7b6 2768
5e9f2524
VS
2769 test -n "$CC" && break
2770 done
2771fi
2772if test -z "$CC"; then
2773 ac_ct_CC=$CC
11a3e7b6 2774 for ac_prog in cl.exe
5e9f2524
VS
2775do
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777set dummy $ac_prog; ac_word=$2
11a3e7b6
VZ
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if ${ac_cv_prog_ac_ct_CC+:} false; then :
2781 $as_echo_n "(cached) " >&6
5e9f2524
VS
2782else
2783 if test -n "$ac_ct_CC"; then
2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5e9f2524 2793 ac_cv_prog_ac_ct_CC="$ac_prog"
11a3e7b6 2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5e9f2524
VS
2795 break 2
2796 fi
2797done
11a3e7b6
VZ
2798 done
2799IFS=$as_save_IFS
5e9f2524
VS
2800
2801fi
2802fi
2803ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804if test -n "$ac_ct_CC"; then
11a3e7b6
VZ
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2806$as_echo "$ac_ct_CC" >&6; }
5e9f2524 2807else
11a3e7b6
VZ
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
5e9f2524
VS
2810fi
2811
11a3e7b6 2812
5e9f2524
VS
2813 test -n "$ac_ct_CC" && break
2814done
2815
11a3e7b6
VZ
2816 if test "x$ac_ct_CC" = x; then
2817 CC=""
2818 else
2819 case $cross_compiling:$ac_tool_warned in
2820yes:)
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2823ac_tool_warned=yes ;;
2824esac
2825 CC=$ac_ct_CC
2826 fi
5e9f2524
VS
2827fi
2828
2829fi
2830
2831
11a3e7b6
VZ
2832test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834as_fn_error $? "no acceptable C compiler found in \$PATH
2835See \`config.log' for more details" "$LINENO" 5; }
5e9f2524
VS
2836
2837# Provide some information about the compiler.
11a3e7b6
VZ
2838$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2839set X $ac_compile
2840ac_compiler=$2
2841for ac_option in --version -v -V -qversion; do
2842 { { ac_try="$ac_compiler $ac_option >&5"
2843case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846esac
2847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2848$as_echo "$ac_try_echo"; } >&5
2849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5e9f2524 2850 ac_status=$?
11a3e7b6
VZ
2851 if test -s conftest.err; then
2852 sed '10a\
2853... rest of stderr output deleted ...
2854 10q' conftest.err >conftest.er1
2855 cat conftest.er1 >&5
2856 fi
2857 rm -f conftest.er1 conftest.err
2858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2859 test $ac_status = 0; }
2860done
5e9f2524 2861
11a3e7b6 2862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 2863/* end confdefs.h. */
5e9f2524 2864
5e9f2524
VS
2865int
2866main ()
2867{
2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873ac_clean_files_save=$ac_clean_files
11a3e7b6 2874ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5e9f2524
VS
2875# Try to create an executable without -o first, disregard a.out.
2876# It will help us diagnose broken compilers, and finding out an intuition
2877# of exeext.
11a3e7b6
VZ
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2879$as_echo_n "checking whether the C compiler works... " >&6; }
2880ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2881
2882# The possible output files:
2883ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2884
2885ac_rmfiles=
2886for ac_file in $ac_files
2887do
2888 case $ac_file in
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2891 esac
2892done
2893rm -f $ac_rmfiles
2894
2895if { { ac_try="$ac_link_default"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901$as_echo "$ac_try_echo"; } >&5
2902 (eval "$ac_link_default") 2>&5
5e9f2524 2903 ac_status=$?
11a3e7b6
VZ
2904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905 test $ac_status = 0; }; then :
2906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2907# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2908# in a Makefile. We should not override ac_cv_exeext if it was cached,
2909# so that the user can short-circuit this test for compilers unknown to
2910# Autoconf.
2911for ac_file in $ac_files ''
79608eef
VS
2912do
2913 test -f "$ac_file" || continue
5e9f2524 2914 case $ac_file in
11a3e7b6
VZ
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2916 ;;
79608eef 2917 [ab].out )
11a3e7b6
VZ
2918 # We found the default executable, but exeext='' is most
2919 # certainly right.
2920 break;;
79608eef 2921 *.* )
11a3e7b6
VZ
2922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2923 then :; else
2924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925 fi
2926 # We set ac_cv_exeext here because the later test for it is not
2927 # safe: cross compilers may not add the suffix if given an `-o'
2928 # argument, so we may need to know it at that point already.
2929 # Even if this section looks crufty: it has the advantage of
2930 # actually working.
2931 break;;
79608eef 2932 * )
11a3e7b6 2933 break;;
5e9f2524
VS
2934 esac
2935done
11a3e7b6
VZ
2936test "$ac_cv_exeext" = no && ac_cv_exeext=
2937
5e9f2524 2938else
11a3e7b6
VZ
2939 ac_file=''
2940fi
2941if test -z "$ac_file"; then :
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944$as_echo "$as_me: failed program was:" >&5
79608eef
VS
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
11a3e7b6
VZ
2947{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949as_fn_error 77 "C compiler cannot create executables
2950See \`config.log' for more details" "$LINENO" 5; }
2951else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2953$as_echo "yes" >&6; }
5e9f2524 2954fi
11a3e7b6
VZ
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2956$as_echo_n "checking for C compiler default output file name... " >&6; }
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2958$as_echo "$ac_file" >&6; }
5e9f2524 2959ac_exeext=$ac_cv_exeext
5e9f2524 2960
11a3e7b6 2961rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5e9f2524 2962ac_clean_files=$ac_clean_files_save
11a3e7b6
VZ
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2964$as_echo_n "checking for suffix of executables... " >&6; }
2965if { { ac_try="$ac_link"
2966case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
2970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971$as_echo "$ac_try_echo"; } >&5
2972 (eval "$ac_link") 2>&5
5e9f2524 2973 ac_status=$?
11a3e7b6
VZ
2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975 test $ac_status = 0; }; then :
5e9f2524
VS
2976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2977# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2978# work properly (i.e., refer to `conftest.exe'), while it won't with
2979# `rm'.
79608eef
VS
2980for ac_file in conftest.exe conftest conftest.*; do
2981 test -f "$ac_file" || continue
5e9f2524 2982 case $ac_file in
11a3e7b6 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5e9f2524 2984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11a3e7b6 2985 break;;
5e9f2524
VS
2986 * ) break;;
2987 esac
2988done
2989else
11a3e7b6
VZ
2990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2993See \`config.log' for more details" "$LINENO" 5; }
5e9f2524 2994fi
11a3e7b6
VZ
2995rm -f conftest conftest$ac_cv_exeext
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2997$as_echo "$ac_cv_exeext" >&6; }
5e9f2524
VS
2998
2999rm -f conftest.$ac_ext
3000EXEEXT=$ac_cv_exeext
3001ac_exeext=$EXEEXT
11a3e7b6
VZ
3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003/* end confdefs.h. */
3004#include <stdio.h>
3005int
3006main ()
3007{
3008FILE *f = fopen ("conftest.out", "w");
3009 return ferror (f) || fclose (f) != 0;
3010
3011 ;
3012 return 0;
3013}
79608eef 3014_ACEOF
11a3e7b6
VZ
3015ac_clean_files="$ac_clean_files conftest.out"
3016# Check that the compiler produces executables we can run. If not, either
3017# the compiler is broken, or we cross compile.
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3019$as_echo_n "checking whether we are cross compiling... " >&6; }
3020if test "$cross_compiling" != yes; then
3021 { { ac_try="$ac_link"
3022case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
3026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027$as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_link") 2>&5
3029 ac_status=$?
3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031 test $ac_status = 0; }
3032 if { ac_try='./conftest$ac_cv_exeext'
3033 { { case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
3037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038$as_echo "$ac_try_echo"; } >&5
3039 (eval "$ac_try") 2>&5
3040 ac_status=$?
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }; }; then
3043 cross_compiling=no
3044 else
3045 if test "$cross_compiling" = maybe; then
3046 cross_compiling=yes
3047 else
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050as_fn_error $? "cannot run C compiled programs.
3051If you meant to cross compile, use \`--host'.
3052See \`config.log' for more details" "$LINENO" 5; }
3053 fi
3054 fi
3055fi
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3057$as_echo "$cross_compiling" >&6; }
3058
3059rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3060ac_clean_files=$ac_clean_files_save
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3062$as_echo_n "checking for suffix of object files... " >&6; }
3063if ${ac_cv_objext+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065else
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 3067/* end confdefs.h. */
5e9f2524 3068
5e9f2524
VS
3069int
3070main ()
3071{
3072
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077rm -f conftest.o conftest.obj
11a3e7b6
VZ
3078if { { ac_try="$ac_compile"
3079case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
3083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084$as_echo "$ac_try_echo"; } >&5
3085 (eval "$ac_compile") 2>&5
5e9f2524 3086 ac_status=$?
11a3e7b6
VZ
3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }; then :
3089 for ac_file in conftest.o conftest.obj conftest.*; do
3090 test -f "$ac_file" || continue;
5e9f2524 3091 case $ac_file in
11a3e7b6 3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5e9f2524
VS
3093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3094 break;;
3095 esac
3096done
3097else
11a3e7b6 3098 $as_echo "$as_me: failed program was:" >&5
79608eef
VS
3099sed 's/^/| /' conftest.$ac_ext >&5
3100
11a3e7b6
VZ
3101{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103as_fn_error $? "cannot compute suffix of object files: cannot compile
3104See \`config.log' for more details" "$LINENO" 5; }
5e9f2524 3105fi
5e9f2524
VS
3106rm -f conftest.$ac_cv_objext conftest.$ac_ext
3107fi
11a3e7b6
VZ
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3109$as_echo "$ac_cv_objext" >&6; }
5e9f2524
VS
3110OBJEXT=$ac_cv_objext
3111ac_objext=$OBJEXT
11a3e7b6
VZ
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3113$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3114if ${ac_cv_c_compiler_gnu+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116else
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 3118/* end confdefs.h. */
5e9f2524 3119
5e9f2524
VS
3120int
3121main ()
3122{
3123#ifndef __GNUC__
3124 choke me
3125#endif
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
11a3e7b6 3131if ac_fn_c_try_compile "$LINENO"; then :
5e9f2524
VS
3132 ac_compiler_gnu=yes
3133else
11a3e7b6 3134 ac_compiler_gnu=no
5e9f2524 3135fi
11a3e7b6 3136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e9f2524
VS
3137ac_cv_c_compiler_gnu=$ac_compiler_gnu
3138
3139fi
11a3e7b6
VZ
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3141$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3142if test $ac_compiler_gnu = yes; then
3143 GCC=yes
3144else
3145 GCC=
3146fi
5e9f2524
VS
3147ac_test_CFLAGS=${CFLAGS+set}
3148ac_save_CFLAGS=$CFLAGS
11a3e7b6
VZ
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3150$as_echo_n "checking whether $CC accepts -g... " >&6; }
3151if ${ac_cv_prog_cc_g+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153else
3154 ac_save_c_werror_flag=$ac_c_werror_flag
3155 ac_c_werror_flag=yes
3156 ac_cv_prog_cc_g=no
3157 CFLAGS="-g"
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 3159/* end confdefs.h. */
5e9f2524 3160
5e9f2524
VS
3161int
3162main ()
3163{
3164
3165 ;
3166 return 0;
3167}
3168_ACEOF
11a3e7b6 3169if ac_fn_c_try_compile "$LINENO"; then :
5e9f2524
VS
3170 ac_cv_prog_cc_g=yes
3171else
11a3e7b6
VZ
3172 CFLAGS=""
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174/* end confdefs.h. */
3175
3176int
3177main ()
3178{
3179
3180 ;
3181 return 0;
3182}
3183_ACEOF
3184if ac_fn_c_try_compile "$LINENO"; then :
3185
3186else
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3188 CFLAGS="-g"
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190/* end confdefs.h. */
3191
3192int
3193main ()
3194{
79608eef 3195
11a3e7b6
VZ
3196 ;
3197 return 0;
3198}
3199_ACEOF
3200if ac_fn_c_try_compile "$LINENO"; then :
3201 ac_cv_prog_cc_g=yes
5e9f2524 3202fi
11a3e7b6 3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e9f2524 3204fi
11a3e7b6
VZ
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206fi
3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_c_werror_flag=$ac_save_c_werror_flag
3209fi
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3211$as_echo "$ac_cv_prog_cc_g" >&6; }
5e9f2524
VS
3212if test "$ac_test_CFLAGS" = set; then
3213 CFLAGS=$ac_save_CFLAGS
3214elif test $ac_cv_prog_cc_g = yes; then
3215 if test "$GCC" = yes; then
3216 CFLAGS="-g -O2"
3217 else
3218 CFLAGS="-g"
3219 fi
3220else
3221 if test "$GCC" = yes; then
3222 CFLAGS="-O2"
3223 else
3224 CFLAGS=
3225 fi
3226fi
11a3e7b6
VZ
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3228$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3229if ${ac_cv_prog_cc_c89+:} false; then :
3230 $as_echo_n "(cached) " >&6
79608eef 3231else
11a3e7b6 3232 ac_cv_prog_cc_c89=no
79608eef 3233ac_save_CC=$CC
11a3e7b6 3234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef
VS
3235/* end confdefs.h. */
3236#include <stdarg.h>
3237#include <stdio.h>
11a3e7b6 3238struct stat;
79608eef
VS
3239/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240struct buf { int x; };
3241FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242static char *e (p, i)
3243 char **p;
3244 int i;
3245{
3246 return p[i];
3247}
3248static char *f (char * (*g) (char **, int), char **p, ...)
3249{
3250 char *s;
3251 va_list v;
3252 va_start (v,p);
3253 s = g (p, va_arg (v,int));
3254 va_end (v);
3255 return s;
3256}
11a3e7b6
VZ
3257
3258/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266
3267/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3269#define FOO(x) 'x'
3270int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271
79608eef
VS
3272int test (int i, double x);
3273struct s1 {int (*f) (int a);};
3274struct s2 {int (*f) (double a);};
3275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276int argc;
3277char **argv;
3278int
3279main ()
3280{
3281return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3282 ;
3283 return 0;
3284}
3285_ACEOF
11a3e7b6
VZ
3286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
79608eef
VS
3288do
3289 CC="$ac_save_CC $ac_arg"
11a3e7b6
VZ
3290 if ac_fn_c_try_compile "$LINENO"; then :
3291 ac_cv_prog_cc_c89=$ac_arg
79608eef 3292fi
11a3e7b6
VZ
3293rm -f core conftest.err conftest.$ac_objext
3294 test "x$ac_cv_prog_cc_c89" != "xno" && break
79608eef 3295done
11a3e7b6 3296rm -f conftest.$ac_ext
79608eef
VS
3297CC=$ac_save_CC
3298
3299fi
11a3e7b6
VZ
3300# AC_CACHE_VAL
3301case "x$ac_cv_prog_cc_c89" in
3302 x)
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3304$as_echo "none needed" >&6; } ;;
3305 xno)
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3307$as_echo "unsupported" >&6; } ;;
79608eef 3308 *)
11a3e7b6
VZ
3309 CC="$CC $ac_cv_prog_cc_c89"
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3311$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
79608eef 3312esac
11a3e7b6 3313if test "x$ac_cv_prog_cc_c89" != xno; then :
79608eef 3314
11a3e7b6
VZ
3315fi
3316
3317ac_ext=c
3318ac_cpp='$CPP $CPPFLAGS'
3319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323
3324
3325
3326
3327
3328
3329
3330 ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel C compiler" >&5
3337$as_echo_n "checking whether we are using the Intel C compiler... " >&6; }
3338if ${bakefile_cv_c_compiler___INTEL_COMPILER+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340else
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342/* end confdefs.h. */
3343
3344int
3345main ()
3346{
3347
3348 #ifndef __INTEL_COMPILER
3349 choke me
3350 #endif
3351
3352 ;
5e9f2524
VS
3353 return 0;
3354}
3355_ACEOF
11a3e7b6
VZ
3356if ac_fn_c_try_compile "$LINENO"; then :
3357 bakefile_cv_c_compiler___INTEL_COMPILER=yes
5e9f2524 3358else
11a3e7b6 3359 bakefile_cv_c_compiler___INTEL_COMPILER=no
79608eef 3360
5e9f2524 3361fi
11a3e7b6
VZ
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363
3364
3365fi
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
3367$as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
3368 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
3369 :; INTELCC=yes
3370 else
3371 :;
3372 fi
3373 ac_ext=c
3374ac_cpp='$CPP $CPPFLAGS'
3375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378
3379
3380
3381
3382 if test "$INTELCC" = "yes"; then
3383
3384
3385 ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler v8 or later" >&5
3392$as_echo_n "checking whether we are using Intel C compiler v8 or later... " >&6; }
3393if ${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395else
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 3397/* end confdefs.h. */
11a3e7b6 3398
5e9f2524
VS
3399int
3400main ()
3401{
11a3e7b6
VZ
3402
3403 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
3404 choke me
3405 #endif
3406
5e9f2524
VS
3407 ;
3408 return 0;
3409}
3410_ACEOF
11a3e7b6
VZ
3411if ac_fn_c_try_compile "$LINENO"; then :
3412 bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
5e9f2524 3413else
11a3e7b6 3414 bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
79608eef 3415
5e9f2524 3416fi
11a3e7b6
VZ
3417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418
3419
5e9f2524 3420fi
11a3e7b6
VZ
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
3422$as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
3423 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
3424 :; INTELCC8=yes
3425 else
3426 :;
3427 fi
3428 ac_ext=c
3429ac_cpp='$CPP $CPPFLAGS'
3430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
5e9f2524 3434
11a3e7b6
VZ
3435
3436
3437
3438 ac_ext=c
3439ac_cpp='$CPP $CPPFLAGS'
3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler v10 or later" >&5
3445$as_echo_n "checking whether we are using Intel C compiler v10 or later... " >&6; }
3446if ${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+:} false; then :
3447 $as_echo_n "(cached) " >&6
5e9f2524 3448else
11a3e7b6
VZ
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450/* end confdefs.h. */
3451
3452int
3453main ()
3454{
3455
3456 #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
3457 choke me
3458 #endif
3459
3460 ;
3461 return 0;
3462}
3463_ACEOF
3464if ac_fn_c_try_compile "$LINENO"; then :
3465 bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
3466else
3467 bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
79608eef 3468
5e9f2524 3469fi
11a3e7b6
VZ
3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471
3472
3473fi
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
3475$as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
3476 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
3477 :; INTELCC10=yes
3478 else
3479 :;
3480 fi
3481 ac_ext=c
5e9f2524
VS
3482ac_cpp='$CPP $CPPFLAGS'
3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
11a3e7b6
VZ
3487
3488
3489 fi
3490
3491 if test "x$GCC" != "xyes"; then
3492 if test "xCC" = "xC"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler requires -ext o" >&5
3494$as_echo_n "checking if the C compiler requires -ext o... " >&6; }
3495if ${bakefile_cv_c_exto+:} false; then :
3496 $as_echo_n "(cached) " >&6
5e9f2524 3497else
11a3e7b6 3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301e38a 3499/* end confdefs.h. */
5e9f2524 3500
4301e38a
DE
3501int
3502main ()
3503{
3504
3505 ;
3506 return 0;
3507}
3508_ACEOF
3509rm -f conftest.$ac_objext conftest.$ac_ext.o
11a3e7b6 3510if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4301e38a
DE
3511 (eval $ac_compile) 2>&5
3512 ac_status=$?
11a3e7b6
VZ
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
4301e38a
DE
3515 for ac_file in `(ls conftest.* 2>/dev/null)`; do
3516 case $ac_file in
3517 conftest.$ac_ext.o)
11a3e7b6 3518 bakefile_cv_c_exto="-ext o"
4301e38a
DE
3519 ;;
3520 *)
3521 ;;
3522 esac
3523done
5e9f2524 3524else
11a3e7b6
VZ
3525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527as_fn_error $? "cannot figure out if compiler needs -ext o: cannot compile
3528See \`config.log' for more details" "$LINENO" 5; }
4301e38a 3529
5e9f2524 3530fi
4301e38a 3531rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
5e9f2524 3532
5e9f2524 3533fi
11a3e7b6
VZ
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_exto" >&5
3535$as_echo "$bakefile_cv_c_exto" >&6; }
3536if test "x$bakefile_cv_c_exto" '!=' "x"; then
4301e38a 3537 if test "c" = "c"; then
11a3e7b6 3538 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
4301e38a
DE
3539 fi
3540 if test "c" = "cxx"; then
11a3e7b6 3541 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
4301e38a
DE
3542 fi
3543fi
5e9f2524 3544
11a3e7b6
VZ
3545 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3546 unset ac_cv_prog_cc_g
3547 ac_test_CFLAGS=${CFLAGS+set}
4301e38a 3548ac_save_CFLAGS=$CFLAGS
11a3e7b6
VZ
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550$as_echo_n "checking whether $CC accepts -g... " >&6; }
3551if ${ac_cv_prog_cc_g+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553else
3554 ac_save_c_werror_flag=$ac_c_werror_flag
3555 ac_c_werror_flag=yes
3556 ac_cv_prog_cc_g=no
3557 CFLAGS="-g"
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301e38a
DE
3559/* end confdefs.h. */
3560
3561int
3562main ()
3563{
3564
3565 ;
3566 return 0;
3567}
3568_ACEOF
11a3e7b6 3569if ac_fn_c_try_compile "$LINENO"; then :
4301e38a 3570 ac_cv_prog_cc_g=yes
5e9f2524 3571else
11a3e7b6
VZ
3572 CFLAGS=""
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h. */
3575
3576int
3577main ()
3578{
3579
3580 ;
3581 return 0;
3582}
3583_ACEOF
3584if ac_fn_c_try_compile "$LINENO"; then :
3585
3586else
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3588 CFLAGS="-g"
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h. */
3591
3592int
3593main ()
3594{
4301e38a 3595
11a3e7b6
VZ
3596 ;
3597 return 0;
3598}
3599_ACEOF
3600if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_prog_cc_g=yes
3602fi
3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e9f2524 3604fi
11a3e7b6 3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e9f2524 3606fi
11a3e7b6
VZ
3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_c_werror_flag=$ac_save_c_werror_flag
3609fi
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611$as_echo "$ac_cv_prog_cc_g" >&6; }
4301e38a
DE
3612if test "$ac_test_CFLAGS" = set; then
3613 CFLAGS=$ac_save_CFLAGS
3614elif test $ac_cv_prog_cc_g = yes; then
3615 if test "$GCC" = yes; then
3616 CFLAGS="-g -O2"
3617 else
3618 CFLAGS="-g"
3619 fi
5e9f2524 3620else
4301e38a
DE
3621 if test "$GCC" = yes; then
3622 CFLAGS="-O2"
3623 else
3624 CFLAGS=
3625 fi
5e9f2524 3626fi
11a3e7b6
VZ
3627 fi
3628 fi
3629
3630 case `uname -s` in
3631 AIX*)
3632
3633
4301e38a
DE
3634 ac_ext=c
3635ac_cpp='$CPP $CPPFLAGS'
3636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 3639
11a3e7b6
VZ
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C compiler" >&5
3641$as_echo_n "checking whether we are using the IBM xlC C compiler... " >&6; }
3642if ${bakefile_cv_c_compiler___xlC__+:} false; then :
3643 $as_echo_n "(cached) " >&6
5e9f2524 3644else
11a3e7b6 3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301e38a 3646/* end confdefs.h. */
5e9f2524 3647
4301e38a
DE
3648int
3649main ()
3650{
11a3e7b6
VZ
3651
3652 #ifndef __xlC__
3653 choke me
3654 #endif
5e9f2524 3655
4301e38a
DE
3656 ;
3657 return 0;
3658}
3659_ACEOF
11a3e7b6
VZ
3660if ac_fn_c_try_compile "$LINENO"; then :
3661 bakefile_cv_c_compiler___xlC__=yes
4301e38a 3662else
11a3e7b6 3663 bakefile_cv_c_compiler___xlC__=no
5e9f2524 3664
4301e38a 3665fi
11a3e7b6 3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e9f2524 3667
5e9f2524 3668
11a3e7b6
VZ
3669fi
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___xlC__" >&5
3671$as_echo "$bakefile_cv_c_compiler___xlC__" >&6; }
3672 if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
3673 :; XLCC=yes
3674 else
3675 :;
3676 fi
3677 ac_ext=c
4301e38a
DE
3678ac_cpp='$CPP $CPPFLAGS'
3679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 3682
5e9f2524 3683
11a3e7b6
VZ
3684
3685 ;;
3686
3687 Darwin)
3688
3689
4301e38a
DE
3690 ac_ext=c
3691ac_cpp='$CPP $CPPFLAGS'
3692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 3695
11a3e7b6
VZ
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Metrowerks C compiler" >&5
3697$as_echo_n "checking whether we are using the Metrowerks C compiler... " >&6; }
3698if ${bakefile_cv_c_compiler___MWERKS__+:} false; then :
3699 $as_echo_n "(cached) " >&6
4301e38a 3700else
11a3e7b6 3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301e38a 3702/* end confdefs.h. */
5e9f2524 3703
4301e38a
DE
3704int
3705main ()
3706{
11a3e7b6
VZ
3707
3708 #ifndef __MWERKS__
3709 choke me
3710 #endif
5e9f2524 3711
4301e38a
DE
3712 ;
3713 return 0;
3714}
3715_ACEOF
11a3e7b6
VZ
3716if ac_fn_c_try_compile "$LINENO"; then :
3717 bakefile_cv_c_compiler___MWERKS__=yes
4301e38a 3718else
11a3e7b6 3719 bakefile_cv_c_compiler___MWERKS__=no
5e9f2524 3720
4301e38a 3721fi
11a3e7b6 3722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e9f2524 3723
5e9f2524 3724
11a3e7b6
VZ
3725fi
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___MWERKS__" >&5
3727$as_echo "$bakefile_cv_c_compiler___MWERKS__" >&6; }
3728 if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
3729 :; MWCC=yes
3730 else
3731 :;
3732 fi
3733 ac_ext=c
4301e38a
DE
3734ac_cpp='$CPP $CPPFLAGS'
3735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 3738
5e9f2524 3739
5e9f2524 3740
11a3e7b6 3741 if test "$MWCC" != "yes"; then
5e9f2524 3742
5e9f2524 3743
11a3e7b6
VZ
3744 ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C compiler" >&5
3751$as_echo_n "checking whether we are using the IBM xlC C compiler... " >&6; }
3752if ${bakefile_cv_c_compiler___xlC__+:} false; then :
3753 $as_echo_n "(cached) " >&6
4301e38a 3754else
11a3e7b6
VZ
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h. */
3757
3758int
3759main ()
3760{
3761
3762 #ifndef __xlC__
3763 choke me
3764 #endif
3765
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770if ac_fn_c_try_compile "$LINENO"; then :
3771 bakefile_cv_c_compiler___xlC__=yes
4301e38a 3772else
11a3e7b6
VZ
3773 bakefile_cv_c_compiler___xlC__=no
3774
3775fi
3776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777
3778
3779fi
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___xlC__" >&5
3781$as_echo "$bakefile_cv_c_compiler___xlC__" >&6; }
3782 if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
3783 :; XLCC=yes
3784 else
3785 :;
4301e38a 3786 fi
11a3e7b6
VZ
3787 ac_ext=c
3788ac_cpp='$CPP $CPPFLAGS'
3789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
3793
3794
3795 fi
3796 ;;
3797
3798 IRIX*)
3799
3800
3801 ac_ext=c
3802ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the SGI C compiler" >&5
3808$as_echo_n "checking whether we are using the SGI C compiler... " >&6; }
3809if ${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+:} false; then :
3810 $as_echo_n "(cached) " >&6
4301e38a 3811else
11a3e7b6
VZ
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813/* end confdefs.h. */
3814
3815int
3816main ()
3817{
5e9f2524 3818
11a3e7b6
VZ
3819 #ifndef _SGI_COMPILER_VERSION
3820 choke me
3821 #endif
5e9f2524 3822
11a3e7b6
VZ
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827if ac_fn_c_try_compile "$LINENO"; then :
3828 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
5e9f2524 3829else
11a3e7b6 3830 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
5e9f2524 3831
4301e38a 3832fi
11a3e7b6 3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e9f2524 3834
5e9f2524 3835
5e9f2524 3836fi
11a3e7b6
VZ
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
3838$as_echo "$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
3839 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
3840 :; SGICC=yes
3841 else
3842 :;
5e9f2524 3843 fi
11a3e7b6
VZ
3844 ac_ext=c
3845ac_cpp='$CPP $CPPFLAGS'
3846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 3849
5e9f2524 3850
4301e38a 3851
11a3e7b6 3852 ;;
4301e38a 3853
11a3e7b6
VZ
3854 Linux*)
3855 if test "$INTELCC" != "yes"; then
5e9f2524 3856
4301e38a 3857
11a3e7b6
VZ
3858 ac_ext=c
3859ac_cpp='$CPP $CPPFLAGS'
3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301e38a 3863
11a3e7b6
VZ
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C compiler" >&5
3865$as_echo_n "checking whether we are using the Sun C compiler... " >&6; }
3866if ${bakefile_cv_c_compiler___SUNPRO_C+:} false; then :
3867 $as_echo_n "(cached) " >&6
5e9f2524 3868else
11a3e7b6
VZ
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870/* end confdefs.h. */
79608eef 3871
11a3e7b6
VZ
3872int
3873main ()
3874{
5e9f2524 3875
11a3e7b6
VZ
3876 #ifndef __SUNPRO_C
3877 choke me
3878 #endif
5e9f2524 3879
11a3e7b6
VZ
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"; then :
3885 bakefile_cv_c_compiler___SUNPRO_C=yes
3886else
3887 bakefile_cv_c_compiler___SUNPRO_C=no
5e9f2524 3888
11a3e7b6
VZ
3889fi
3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301e38a 3891
4301e38a 3892
11a3e7b6
VZ
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
3895$as_echo "$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
3896 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
3897 :; SUNCC=yes
3898 else
3899 :;
3900 fi
3901 ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
79608eef 3906
5e9f2524 3907
4301e38a 3908
11a3e7b6
VZ
3909 fi
3910 ;;
4301e38a 3911
11a3e7b6 3912 HP-UX*)
4301e38a 3913
79608eef 3914
11a3e7b6
VZ
3915 ac_ext=c
3916ac_cpp='$CPP $CPPFLAGS'
3917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 3920
11a3e7b6
VZ
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the HP C compiler" >&5
3922$as_echo_n "checking whether we are using the HP C compiler... " >&6; }
3923if ${bakefile_cv_c_compiler___HP_cc+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925else
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927/* end confdefs.h. */
5e9f2524 3928
11a3e7b6
VZ
3929int
3930main ()
3931{
5e9f2524 3932
11a3e7b6
VZ
3933 #ifndef __HP_cc
3934 choke me
3935 #endif
4301e38a 3936
11a3e7b6
VZ
3937 ;
3938 return 0;
3939}
3940_ACEOF
3941if ac_fn_c_try_compile "$LINENO"; then :
3942 bakefile_cv_c_compiler___HP_cc=yes
3943else
3944 bakefile_cv_c_compiler___HP_cc=no
4301e38a 3945
11a3e7b6
VZ
3946fi
3947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301e38a 3948
5e9f2524 3949
79608eef 3950fi
11a3e7b6
VZ
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___HP_cc" >&5
3952$as_echo "$bakefile_cv_c_compiler___HP_cc" >&6; }
3953 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
3954 :; HPCC=yes
3955 else
3956 :;
3957 fi
3958 ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
79608eef
VS
3963
3964
5e9f2524 3965
11a3e7b6 3966 ;;
79608eef 3967
11a3e7b6 3968 OSF1)
79608eef 3969
5e9f2524 3970
11a3e7b6
VZ
3971 ac_ext=c
3972ac_cpp='$CPP $CPPFLAGS'
3973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 3976
11a3e7b6
VZ
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Compaq C compiler" >&5
3978$as_echo_n "checking whether we are using the Compaq C compiler... " >&6; }
3979if ${bakefile_cv_c_compiler___DECC+:} false; then :
3980 $as_echo_n "(cached) " >&6
5e9f2524 3981else
11a3e7b6
VZ
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h. */
5e9f2524 3984
11a3e7b6
VZ
3985int
3986main ()
3987{
5e9f2524 3988
11a3e7b6
VZ
3989 #ifndef __DECC
3990 choke me
3991 #endif
5e9f2524 3992
11a3e7b6
VZ
3993 ;
3994 return 0;
3995}
3996_ACEOF
3997if ac_fn_c_try_compile "$LINENO"; then :
3998 bakefile_cv_c_compiler___DECC=yes
3999else
4000 bakefile_cv_c_compiler___DECC=no
5e9f2524 4001
11a3e7b6
VZ
4002fi
4003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e9f2524 4004
79608eef 4005
5e9f2524 4006fi
11a3e7b6
VZ
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___DECC" >&5
4008$as_echo "$bakefile_cv_c_compiler___DECC" >&6; }
4009 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
4010 :; COMPAQCC=yes
4011 else
4012 :;
4013 fi
4014 ac_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
5e9f2524 4019
4301e38a 4020
4301e38a 4021
11a3e7b6 4022 ;;
4301e38a 4023
11a3e7b6 4024 SunOS)
5e9f2524
VS
4025
4026
11a3e7b6
VZ
4027 ac_ext=c
4028ac_cpp='$CPP $CPPFLAGS'
4029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524 4032
11a3e7b6
VZ
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C compiler" >&5
4034$as_echo_n "checking whether we are using the Sun C compiler... " >&6; }
4035if ${bakefile_cv_c_compiler___SUNPRO_C+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037else
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039/* end confdefs.h. */
5e9f2524 4040
11a3e7b6
VZ
4041int
4042main ()
4301e38a 4043{
5e9f2524 4044
11a3e7b6
VZ
4045 #ifndef __SUNPRO_C
4046 choke me
4047 #endif
4048
4049 ;
4050 return 0;
4301e38a 4051}
11a3e7b6
VZ
4052_ACEOF
4053if ac_fn_c_try_compile "$LINENO"; then :
4054 bakefile_cv_c_compiler___SUNPRO_C=yes
4055else
4056 bakefile_cv_c_compiler___SUNPRO_C=no
4057
4058fi
4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060
4061
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
4064$as_echo "$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
4065 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
4066 :; SUNCC=yes
4301e38a 4067 else
11a3e7b6 4068 :;
4301e38a 4069 fi
11a3e7b6
VZ
4070 ac_ext=c
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
5e9f2524
VS
4075
4076
4077
11a3e7b6
VZ
4078 ;;
4079 esac
4080 fi
4081
4082
4083
4084# Make sure we can run config.sub.
4085$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4086 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4087
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4089$as_echo_n "checking build system type... " >&6; }
4090if ${ac_cv_build+:} false; then :
4091 $as_echo_n "(cached) " >&6
4301e38a 4092else
11a3e7b6
VZ
4093 ac_build_alias=$build_alias
4094test "x$ac_build_alias" = x &&
4095 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4096test "x$ac_build_alias" = x &&
4097 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4098ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4099 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4100
4101fi
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4103$as_echo "$ac_cv_build" >&6; }
4104case $ac_cv_build in
4105*-*-*) ;;
4106*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4107esac
4108build=$ac_cv_build
4109ac_save_IFS=$IFS; IFS='-'
4110set x $ac_cv_build
4111shift
4112build_cpu=$1
4113build_vendor=$2
4114shift; shift
4115# Remember, the first character of IFS is used to create $*,
4116# except with old shells:
4117build_os=$*
4118IFS=$ac_save_IFS
4119case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4120
4121
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4123$as_echo_n "checking host system type... " >&6; }
4124if ${ac_cv_host+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126else
4127 if test "x$host_alias" = x; then
4128 ac_cv_host=$ac_cv_build
4301e38a 4129else
11a3e7b6
VZ
4130 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4131 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4301e38a 4132fi
5e9f2524 4133
4301e38a 4134fi
11a3e7b6
VZ
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4136$as_echo "$ac_cv_host" >&6; }
4137case $ac_cv_host in
4138*-*-*) ;;
4139*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4140esac
4141host=$ac_cv_host
4142ac_save_IFS=$IFS; IFS='-'
4143set x $ac_cv_host
4144shift
4145host_cpu=$1
4146host_vendor=$2
4147shift; shift
4148# Remember, the first character of IFS is used to create $*,
4149# except with old shells:
4150host_os=$*
4151IFS=$ac_save_IFS
4152case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4153
4154
4155enable_win32_dll=yes
4156
4157case $host in
4158*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4159 if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4161set dummy ${ac_tool_prefix}as; ac_word=$2
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163$as_echo_n "checking for $ac_word... " >&6; }
4164if ${ac_cv_prog_AS+:} false; then :
4165 $as_echo_n "(cached) " >&6
5e9f2524 4166else
11a3e7b6
VZ
4167 if test -n "$AS"; then
4168 ac_cv_prog_AS="$AS" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4301e38a 4172do
11a3e7b6
VZ
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_AS="${ac_tool_prefix}as"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4301e38a 4180 fi
11a3e7b6
VZ
4181done
4182 done
4183IFS=$as_save_IFS
4184
4185fi
4186fi
4187AS=$ac_cv_prog_AS
4188if test -n "$AS"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4190$as_echo "$AS" >&6; }
4301e38a 4191else
11a3e7b6
VZ
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193$as_echo "no" >&6; }
4301e38a 4194fi
11a3e7b6
VZ
4195
4196
4197fi
4198if test -z "$ac_cv_prog_AS"; then
4199 ac_ct_AS=$AS
4200 # Extract the first word of "as", so it can be a program name with args.
4201set dummy as; ac_word=$2
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203$as_echo_n "checking for $ac_word... " >&6; }
4204if ${ac_cv_prog_ac_ct_AS+:} false; then :
4205 $as_echo_n "(cached) " >&6
5e9f2524 4206else
11a3e7b6
VZ
4207 if test -n "$ac_ct_AS"; then
4208 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4209else
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_AS="as"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4220 fi
4221done
4222 done
4223IFS=$as_save_IFS
79608eef 4224
5e9f2524 4225fi
11a3e7b6
VZ
4226fi
4227ac_ct_AS=$ac_cv_prog_ac_ct_AS
4228if test -n "$ac_ct_AS"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4230$as_echo "$ac_ct_AS" >&6; }
4231else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233$as_echo "no" >&6; }
4234fi
4301e38a 4235
11a3e7b6
VZ
4236 if test "x$ac_ct_AS" = x; then
4237 AS="false"
4301e38a 4238 else
11a3e7b6
VZ
4239 case $cross_compiling:$ac_tool_warned in
4240yes:)
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243ac_tool_warned=yes ;;
4244esac
4245 AS=$ac_ct_AS
4301e38a
DE
4246 fi
4247else
11a3e7b6 4248 AS="$ac_cv_prog_AS"
4301e38a 4249fi
11a3e7b6
VZ
4250
4251 if test -n "$ac_tool_prefix"; then
4252 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4253set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255$as_echo_n "checking for $ac_word... " >&6; }
4256if ${ac_cv_prog_DLLTOOL+:} false; then :
4257 $as_echo_n "(cached) " >&6
4301e38a 4258else
11a3e7b6
VZ
4259 if test -n "$DLLTOOL"; then
4260 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4261else
4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273done
4274 done
4275IFS=$as_save_IFS
5e9f2524
VS
4276
4277fi
11a3e7b6
VZ
4278fi
4279DLLTOOL=$ac_cv_prog_DLLTOOL
4280if test -n "$DLLTOOL"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4282$as_echo "$DLLTOOL" >&6; }
4283else
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285$as_echo "no" >&6; }
4301e38a 4286fi
5e9f2524
VS
4287
4288
5e9f2524 4289fi
11a3e7b6
VZ
4290if test -z "$ac_cv_prog_DLLTOOL"; then
4291 ac_ct_DLLTOOL=$DLLTOOL
4292 # Extract the first word of "dlltool", so it can be a program name with args.
4293set dummy dlltool; ac_word=$2
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295$as_echo_n "checking for $ac_word... " >&6; }
4296if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4297 $as_echo_n "(cached) " >&6
5e9f2524 4298else
11a3e7b6
VZ
4299 if test -n "$ac_ct_DLLTOOL"; then
4300 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4301else
4302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303for as_dir in $PATH
4301e38a 4304do
11a3e7b6
VZ
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 break 2
4301e38a 4312 fi
11a3e7b6
VZ
4313done
4314 done
4315IFS=$as_save_IFS
4316
4301e38a 4317fi
11a3e7b6
VZ
4318fi
4319ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4320if test -n "$ac_ct_DLLTOOL"; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4322$as_echo "$ac_ct_DLLTOOL" >&6; }
5e9f2524 4323else
11a3e7b6
VZ
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325$as_echo "no" >&6; }
5e9f2524 4326fi
5e9f2524 4327
11a3e7b6
VZ
4328 if test "x$ac_ct_DLLTOOL" = x; then
4329 DLLTOOL="false"
5e9f2524 4330 else
11a3e7b6
VZ
4331 case $cross_compiling:$ac_tool_warned in
4332yes:)
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4335ac_tool_warned=yes ;;
4336esac
4337 DLLTOOL=$ac_ct_DLLTOOL
5e9f2524
VS
4338 fi
4339else
11a3e7b6 4340 DLLTOOL="$ac_cv_prog_DLLTOOL"
5e9f2524 4341fi
11a3e7b6
VZ
4342
4343 if test -n "$ac_tool_prefix"; then
4344 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4345set dummy ${ac_tool_prefix}objdump; ac_word=$2
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347$as_echo_n "checking for $ac_word... " >&6; }
4348if ${ac_cv_prog_OBJDUMP+:} false; then :
4349 $as_echo_n "(cached) " >&6
5e9f2524 4350else
11a3e7b6
VZ
4351 if test -n "$OBJDUMP"; then
4352 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4353else
4354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH
4356do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4361 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 break 2
4364 fi
4365done
4366 done
4367IFS=$as_save_IFS
79608eef 4368
5e9f2524 4369fi
11a3e7b6
VZ
4370fi
4371OBJDUMP=$ac_cv_prog_OBJDUMP
4372if test -n "$OBJDUMP"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4374$as_echo "$OBJDUMP" >&6; }
5e9f2524 4375else
11a3e7b6
VZ
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377$as_echo "no" >&6; }
5e9f2524
VS
4378fi
4379
5e9f2524 4380
11a3e7b6
VZ
4381fi
4382if test -z "$ac_cv_prog_OBJDUMP"; then
4383 ac_ct_OBJDUMP=$OBJDUMP
4384 # Extract the first word of "objdump", so it can be a program name with args.
4385set dummy objdump; ac_word=$2
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387$as_echo_n "checking for $ac_word... " >&6; }
4388if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390else
4391 if test -n "$ac_ct_OBJDUMP"; then
4392 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4404 fi
4405done
4406 done
4407IFS=$as_save_IFS
5e9f2524 4408
11a3e7b6
VZ
4409fi
4410fi
4411ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4412if test -n "$ac_ct_OBJDUMP"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4414$as_echo "$ac_ct_OBJDUMP" >&6; }
5e9f2524 4415else
11a3e7b6
VZ
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417$as_echo "no" >&6; }
5e9f2524
VS
4418fi
4419
11a3e7b6
VZ
4420 if test "x$ac_ct_OBJDUMP" = x; then
4421 OBJDUMP="false"
4422 else
4423 case $cross_compiling:$ac_tool_warned in
4424yes:)
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4427ac_tool_warned=yes ;;
4428esac
4429 OBJDUMP=$ac_ct_OBJDUMP
4430 fi
5e9f2524 4431else
11a3e7b6
VZ
4432 OBJDUMP="$ac_cv_prog_OBJDUMP"
4433fi
5e9f2524 4434
11a3e7b6
VZ
4435 ;;
4436esac
5e9f2524 4437
11a3e7b6 4438test -z "$AS" && AS=as
5e9f2524 4439
5e9f2524 4440
5e9f2524 4441
4301e38a 4442
4301e38a 4443
11a3e7b6 4444test -z "$DLLTOOL" && DLLTOOL=dlltool
4301e38a 4445
5e9f2524 4446
5e9f2524 4447
5e9f2524 4448
5e9f2524 4449
11a3e7b6 4450test -z "$OBJDUMP" && OBJDUMP=objdump
5e9f2524 4451
5e9f2524 4452
5e9f2524
VS
4453
4454
5e9f2524 4455
5e9f2524 4456
5e9f2524 4457
11a3e7b6
VZ
4458case `pwd` in
4459 *\ * | *\ *)
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4461$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4462esac
5e9f2524 4463
5e9f2524
VS
4464
4465
11a3e7b6
VZ
4466macro_version='2.2.6b'
4467macro_revision='1.3017'
5e9f2524 4468
4301e38a 4469
5e9f2524 4470
79608eef 4471
5e9f2524 4472
5e9f2524 4473
5e9f2524 4474
5e9f2524 4475
5e9f2524 4476
5e9f2524 4477
5e9f2524 4478
5e9f2524 4479
5e9f2524 4480
11a3e7b6
VZ
4481ltmain="$ac_aux_dir/ltmain.sh"
4482
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4484$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4485if ${ac_cv_path_SED+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487else
4488 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4489 for ac_i in 1 2 3 4 5 6 7; do
4490 ac_script="$ac_script$as_nl$ac_script"
4491 done
4492 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4493 { ac_script=; unset ac_script;}
4494 if test -z "$SED"; then
4495 ac_path_SED_found=false
4496 # Loop through the user's path and test for each of PROGNAME-LIST
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH
4499do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_prog in sed gsed; do
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4505 as_fn_executable_p "$ac_path_SED" || continue
4506# Check for GNU ac_path_SED and select it if it is found.
4507 # Check for GNU $ac_path_SED
4508case `"$ac_path_SED" --version 2>&1` in
4509*GNU*)
4510 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4511*)
4512 ac_count=0
4513 $as_echo_n 0123456789 >"conftest.in"
4514 while :
4515 do
4516 cat "conftest.in" "conftest.in" >"conftest.tmp"
4517 mv "conftest.tmp" "conftest.in"
4518 cp "conftest.in" "conftest.nl"
4519 $as_echo '' >> "conftest.nl"
4520 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522 as_fn_arith $ac_count + 1 && ac_count=$as_val
4523 if test $ac_count -gt ${ac_path_SED_max-0}; then
4524 # Best one so far, save it but keep looking for a better one
4525 ac_cv_path_SED="$ac_path_SED"
4526 ac_path_SED_max=$ac_count
4527 fi
4528 # 10*(2^10) chars as input seems more than enough
4529 test $ac_count -gt 10 && break
4530 done
4531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301e38a 4532esac
11a3e7b6
VZ
4533
4534 $ac_path_SED_found && break 3
4535 done
4536 done
4537 done
4538IFS=$as_save_IFS
4539 if test -z "$ac_cv_path_SED"; then
4540 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4541 fi
4301e38a 4542else
11a3e7b6 4543 ac_cv_path_SED=$SED
5e9f2524
VS
4544fi
4545
4301e38a 4546fi
11a3e7b6
VZ
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4548$as_echo "$ac_cv_path_SED" >&6; }
4549 SED="$ac_cv_path_SED"
4550 rm -f conftest.sed
5e9f2524 4551
11a3e7b6
VZ
4552test -z "$SED" && SED=sed
4553Xsed="$SED -e 1s/^X//"
5e9f2524
VS
4554
4555
5e9f2524 4556
5e9f2524 4557
5e9f2524 4558
5e9f2524 4559
11a3e7b6
VZ
4560
4561
4562
4563
4564
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4566$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4567if ${ac_cv_path_GREP+:} false; then :
4568 $as_echo_n "(cached) " >&6
4301e38a 4569else
11a3e7b6
VZ
4570 if test -z "$GREP"; then
4571 ac_path_GREP_found=false
4572 # Loop through the user's path and test for each of PROGNAME-LIST
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4575do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_prog in grep ggrep; do
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4581 as_fn_executable_p "$ac_path_GREP" || continue
4582# Check for GNU ac_path_GREP and select it if it is found.
4583 # Check for GNU $ac_path_GREP
4584case `"$ac_path_GREP" --version 2>&1` in
4585*GNU*)
4586 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4587*)
4588 ac_count=0
4589 $as_echo_n 0123456789 >"conftest.in"
4590 while :
4591 do
4592 cat "conftest.in" "conftest.in" >"conftest.tmp"
4593 mv "conftest.tmp" "conftest.in"
4594 cp "conftest.in" "conftest.nl"
4595 $as_echo 'GREP' >> "conftest.nl"
4596 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598 as_fn_arith $ac_count + 1 && ac_count=$as_val
4599 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4600 # Best one so far, save it but keep looking for a better one
4601 ac_cv_path_GREP="$ac_path_GREP"
4602 ac_path_GREP_max=$ac_count
4603 fi
4604 # 10*(2^10) chars as input seems more than enough
4605 test $ac_count -gt 10 && break
4606 done
4607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608esac
5e9f2524 4609
11a3e7b6
VZ
4610 $ac_path_GREP_found && break 3
4611 done
4612 done
4613 done
4614IFS=$as_save_IFS
4615 if test -z "$ac_cv_path_GREP"; then
4616 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4617 fi
4618else
4619 ac_cv_path_GREP=$GREP
4620fi
5e9f2524 4621
11a3e7b6
VZ
4622fi
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4624$as_echo "$ac_cv_path_GREP" >&6; }
4625 GREP="$ac_cv_path_GREP"
4626
4627
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4629$as_echo_n "checking for egrep... " >&6; }
4630if ${ac_cv_path_EGREP+:} false; then :
4631 $as_echo_n "(cached) " >&6
4632else
4633 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4634 then ac_cv_path_EGREP="$GREP -E"
4635 else
4636 if test -z "$EGREP"; then
4637 ac_path_EGREP_found=false
4638 # Loop through the user's path and test for each of PROGNAME-LIST
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_prog in egrep; do
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4647 as_fn_executable_p "$ac_path_EGREP" || continue
4648# Check for GNU ac_path_EGREP and select it if it is found.
4649 # Check for GNU $ac_path_EGREP
4650case `"$ac_path_EGREP" --version 2>&1` in
4651*GNU*)
4652 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4653*)
4654 ac_count=0
4655 $as_echo_n 0123456789 >"conftest.in"
4656 while :
4657 do
4658 cat "conftest.in" "conftest.in" >"conftest.tmp"
4659 mv "conftest.tmp" "conftest.in"
4660 cp "conftest.in" "conftest.nl"
4661 $as_echo 'EGREP' >> "conftest.nl"
4662 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664 as_fn_arith $ac_count + 1 && ac_count=$as_val
4665 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4666 # Best one so far, save it but keep looking for a better one
4667 ac_cv_path_EGREP="$ac_path_EGREP"
4668 ac_path_EGREP_max=$ac_count
4301e38a 4669 fi
11a3e7b6
VZ
4670 # 10*(2^10) chars as input seems more than enough
4671 test $ac_count -gt 10 && break
4301e38a 4672 done
11a3e7b6 4673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301e38a 4674esac
5e9f2524 4675
11a3e7b6
VZ
4676 $ac_path_EGREP_found && break 3
4677 done
4678 done
4679 done
4680IFS=$as_save_IFS
4681 if test -z "$ac_cv_path_EGREP"; then
4682 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683 fi
4301e38a 4684else
11a3e7b6 4685 ac_cv_path_EGREP=$EGREP
4301e38a 4686fi
5e9f2524 4687
11a3e7b6
VZ
4688 fi
4689fi
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4691$as_echo "$ac_cv_path_EGREP" >&6; }
4692 EGREP="$ac_cv_path_EGREP"
5e9f2524 4693
5e9f2524 4694
11a3e7b6
VZ
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4696$as_echo_n "checking for fgrep... " >&6; }
4697if ${ac_cv_path_FGREP+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699else
4700 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4701 then ac_cv_path_FGREP="$GREP -F"
4702 else
4703 if test -z "$FGREP"; then
4704 ac_path_FGREP_found=false
4705 # Loop through the user's path and test for each of PROGNAME-LIST
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_prog in fgrep; do
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4714 as_fn_executable_p "$ac_path_FGREP" || continue
4715# Check for GNU ac_path_FGREP and select it if it is found.
4716 # Check for GNU $ac_path_FGREP
4717case `"$ac_path_FGREP" --version 2>&1` in
4718*GNU*)
4719 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4720*)
4721 ac_count=0
4722 $as_echo_n 0123456789 >"conftest.in"
4723 while :
4724 do
4725 cat "conftest.in" "conftest.in" >"conftest.tmp"
4726 mv "conftest.tmp" "conftest.in"
4727 cp "conftest.in" "conftest.nl"
4728 $as_echo 'FGREP' >> "conftest.nl"
4729 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4731 as_fn_arith $ac_count + 1 && ac_count=$as_val
4732 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4733 # Best one so far, save it but keep looking for a better one
4734 ac_cv_path_FGREP="$ac_path_FGREP"
4735 ac_path_FGREP_max=$ac_count
4301e38a 4736 fi
11a3e7b6
VZ
4737 # 10*(2^10) chars as input seems more than enough
4738 test $ac_count -gt 10 && break
4301e38a 4739 done
11a3e7b6 4740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301e38a 4741esac
11a3e7b6
VZ
4742
4743 $ac_path_FGREP_found && break 3
4744 done
4745 done
4746 done
4747IFS=$as_save_IFS
4748 if test -z "$ac_cv_path_FGREP"; then
4749 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4750 fi
4751else
4752 ac_cv_path_FGREP=$FGREP
4301e38a 4753fi
5e9f2524 4754
11a3e7b6
VZ
4755 fi
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4758$as_echo "$ac_cv_path_FGREP" >&6; }
4759 FGREP="$ac_cv_path_FGREP"
4760
4761
4762test -z "$GREP" && GREP=grep
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782# Check whether --with-gnu-ld was given.
4783if test "${with_gnu_ld+set}" = set; then :
4784 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4301e38a 4785else
11a3e7b6 4786 with_gnu_ld=no
4301e38a 4787fi
5e9f2524 4788
11a3e7b6
VZ
4789ac_prog=ld
4790if test "$GCC" = yes; then
4791 # Check if gcc -print-prog-name=ld gives a path.
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4793$as_echo_n "checking for ld used by $CC... " >&6; }
4794 case $host in
4795 *-*-mingw*)
4796 # gcc leaves a trailing carriage return which upsets mingw
4797 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4798 *)
4799 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4800 esac
4801 case $ac_prog in
4802 # Accept absolute paths.
4803 [\\/]* | ?:[\\/]*)
4804 re_direlt='/[^/][^/]*/\.\./'
4805 # Canonicalize the pathname of ld
4806 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4807 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4808 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4809 done
4810 test -z "$LD" && LD="$ac_prog"
4811 ;;
4812 "")
4813 # If it fails, then pretend we aren't using GCC.
4814 ac_prog=ld
4815 ;;
4816 *)
4817 # If it is relative, then search for the first ld in PATH.
4818 with_gnu_ld=unknown
4819 ;;
4820 esac
4821elif test "$with_gnu_ld" = yes; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4823$as_echo_n "checking for GNU ld... " >&6; }
4824else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4826$as_echo_n "checking for non-GNU ld... " >&6; }
4827fi
4828if ${lt_cv_path_LD+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830else
4831 if test -z "$LD"; then
4832 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4833 for ac_dir in $PATH; do
4834 IFS="$lt_save_ifs"
4835 test -z "$ac_dir" && ac_dir=.
4836 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4837 lt_cv_path_LD="$ac_dir/$ac_prog"
4838 # Check to see if the program is GNU ld. I'd rather use --version,
4839 # but apparently some variants of GNU ld only accept -v.
4840 # Break only if it was the GNU/non-GNU ld that we prefer.
4841 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4842 *GNU* | *'with BFD'*)
4843 test "$with_gnu_ld" != no && break
4844 ;;
4845 *)
4846 test "$with_gnu_ld" != yes && break
4847 ;;
4848 esac
4849 fi
4850 done
4851 IFS="$lt_save_ifs"
4852else
4853 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4854fi
5e9f2524
VS
4855fi
4856
11a3e7b6
VZ
4857LD="$lt_cv_path_LD"
4858if test -n "$LD"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4860$as_echo "$LD" >&6; }
4861else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863$as_echo "no" >&6; }
4864fi
4865test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4867$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4868if ${lt_cv_prog_gnu_ld+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870else
4871 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4872case `$LD -v 2>&1 </dev/null` in
4873*GNU* | *'with BFD'*)
4874 lt_cv_prog_gnu_ld=yes
4875 ;;
4876*)
4877 lt_cv_prog_gnu_ld=no
4301e38a
DE
4878 ;;
4879esac
11a3e7b6
VZ
4880fi
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4882$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4883with_gnu_ld=$lt_cv_prog_gnu_ld
5e9f2524 4884
11a3e7b6
VZ
4885
4886
4887
4888
4889
4890
4891
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4894$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4895if ${lt_cv_path_NM+:} false; then :
4896 $as_echo_n "(cached) " >&6
5e9f2524 4897else
11a3e7b6
VZ
4898 if test -n "$NM"; then
4899 # Let the user override the test.
4900 lt_cv_path_NM="$NM"
4901else
4902 lt_nm_to_check="${ac_tool_prefix}nm"
4903 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4904 lt_nm_to_check="$lt_nm_to_check nm"
4905 fi
4906 for lt_tmp_nm in $lt_nm_to_check; do
4907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4908 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4909 IFS="$lt_save_ifs"
4910 test -z "$ac_dir" && ac_dir=.
4911 tmp_nm="$ac_dir/$lt_tmp_nm"
4912 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4913 # Check to see if the nm accepts a BSD-compat flag.
4914 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4915 # nm: unknown option "B" ignored
4916 # Tru64's nm complains that /dev/null is an invalid object file
4917 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4918 */dev/null* | *'Invalid file or object type'*)
4919 lt_cv_path_NM="$tmp_nm -B"
4920 break
4921 ;;
4922 *)
4923 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4924 */dev/null*)
4925 lt_cv_path_NM="$tmp_nm -p"
4926 break
4927 ;;
4928 *)
4929 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4930 continue # so that we can try to find one that supports BSD flags
4931 ;;
4932 esac
4933 ;;
4934 esac
4935 fi
4936 done
4937 IFS="$lt_save_ifs"
4938 done
4939 : ${lt_cv_path_NM=no}
4940fi
4941fi
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4943$as_echo "$lt_cv_path_NM" >&6; }
4944if test "$lt_cv_path_NM" != "no"; then
4945 NM="$lt_cv_path_NM"
4946else
4947 # Didn't find any BSD compatible name lister, look for dumpbin.
4948 if test -n "$ac_tool_prefix"; then
4949 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4950 do
4951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4952set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954$as_echo_n "checking for $ac_word... " >&6; }
4955if ${ac_cv_prog_DUMPBIN+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957else
4958 if test -n "$DUMPBIN"; then
4959 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5e9f2524 4960else
4301e38a
DE
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301e38a
DE
4970 break 2
4971 fi
4972done
11a3e7b6
VZ
4973 done
4974IFS=$as_save_IFS
79608eef 4975
4301e38a
DE
4976fi
4977fi
11a3e7b6
VZ
4978DUMPBIN=$ac_cv_prog_DUMPBIN
4979if test -n "$DUMPBIN"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4981$as_echo "$DUMPBIN" >&6; }
4301e38a 4982else
11a3e7b6
VZ
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984$as_echo "no" >&6; }
4301e38a 4985fi
5e9f2524 4986
11a3e7b6
VZ
4987
4988 test -n "$DUMPBIN" && break
4989 done
5e9f2524 4990fi
11a3e7b6
VZ
4991if test -z "$DUMPBIN"; then
4992 ac_ct_DUMPBIN=$DUMPBIN
4993 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4994do
4995 # Extract the first word of "$ac_prog", so it can be a program name with args.
4996set dummy $ac_prog; ac_word=$2
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998$as_echo_n "checking for $ac_word... " >&6; }
4999if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5000 $as_echo_n "(cached) " >&6
4301e38a 5001else
11a3e7b6
VZ
5002 if test -n "$ac_ct_DUMPBIN"; then
5003 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4301e38a
DE
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301e38a
DE
5014 break 2
5015 fi
5016done
11a3e7b6
VZ
5017 done
5018IFS=$as_save_IFS
5e9f2524 5019
4301e38a
DE
5020fi
5021fi
11a3e7b6
VZ
5022ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5023if test -n "$ac_ct_DUMPBIN"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5025$as_echo "$ac_ct_DUMPBIN" >&6; }
4301e38a 5026else
11a3e7b6
VZ
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5e9f2524
VS
5029fi
5030
11a3e7b6
VZ
5031
5032 test -n "$ac_ct_DUMPBIN" && break
5033done
5034
5035 if test "x$ac_ct_DUMPBIN" = x; then
5036 DUMPBIN=":"
5037 else
5038 case $cross_compiling:$ac_tool_warned in
5039yes:)
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5042ac_tool_warned=yes ;;
5043esac
5044 DUMPBIN=$ac_ct_DUMPBIN
5045 fi
4301e38a 5046fi
5e9f2524 5047
11a3e7b6
VZ
5048
5049 if test "$DUMPBIN" != ":"; then
5050 NM="$DUMPBIN"
5051 fi
5052fi
5053test -z "$NM" && NM=nm
5054
5055
5056
5057
5058
5059
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5061$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5062if ${lt_cv_nm_interface+:} false; then :
5063 $as_echo_n "(cached) " >&6
4301e38a 5064else
11a3e7b6
VZ
5065 lt_cv_nm_interface="BSD nm"
5066 echo "int some_variable = 0;" > conftest.$ac_ext
5067 (eval echo "\"\$as_me:5067: $ac_compile\"" >&5)
5068 (eval "$ac_compile" 2>conftest.err)
5069 cat conftest.err >&5
5070 (eval echo "\"\$as_me:5070: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5071 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5072 cat conftest.err >&5
5073 (eval echo "\"\$as_me:5073: output\"" >&5)
5074 cat conftest.out >&5
5075 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5076 lt_cv_nm_interface="MS dumpbin"
5077 fi
5078 rm -f conftest*
5079fi
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5081$as_echo "$lt_cv_nm_interface" >&6; }
5082
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5084$as_echo_n "checking whether ln -s works... " >&6; }
5085LN_S=$as_ln_s
5086if test "$LN_S" = "ln -s"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5088$as_echo "yes" >&6; }
5089else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5091$as_echo "no, using $LN_S" >&6; }
5092fi
5093
5094# find the maximum length of command line arguments
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5096$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5097if ${lt_cv_sys_max_cmd_len+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099else
5100 i=0
5101 teststring="ABCD"
5102
5103 case $build_os in
5104 msdosdjgpp*)
5105 # On DJGPP, this test can blow up pretty badly due to problems in libc
5106 # (any single argument exceeding 2000 bytes causes a buffer overrun
5107 # during glob expansion). Even if it were fixed, the result of this
5108 # check would be larger than it should be.
5109 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5110 ;;
5111
5112 gnu*)
5113 # Under GNU Hurd, this test is not required because there is
5114 # no limit to the length of command line arguments.
5115 # Libtool will interpret -1 as no limit whatsoever
5116 lt_cv_sys_max_cmd_len=-1;
5117 ;;
5118
5119 cygwin* | mingw* | cegcc*)
5120 # On Win9x/ME, this test blows up -- it succeeds, but takes
5121 # about 5 minutes as the teststring grows exponentially.
5122 # Worse, since 9x/ME are not pre-emptively multitasking,
5123 # you end up with a "frozen" computer, even though with patience
5124 # the test eventually succeeds (with a max line length of 256k).
5125 # Instead, let's just punt: use the minimum linelength reported by
5126 # all of the supported platforms: 8192 (on NT/2K/XP).
5127 lt_cv_sys_max_cmd_len=8192;
5128 ;;
5129
5130 amigaos*)
5131 # On AmigaOS with pdksh, this test takes hours, literally.
5132 # So we just punt and use a minimum line length of 8192.
5133 lt_cv_sys_max_cmd_len=8192;
5134 ;;
5135
5136 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5137 # This has been around since 386BSD, at least. Likely further.
5138 if test -x /sbin/sysctl; then
5139 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5140 elif test -x /usr/sbin/sysctl; then
5141 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5142 else
5143 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5144 fi
5145 # And add a safety zone
5146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5148 ;;
5149
5150 interix*)
5151 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5152 lt_cv_sys_max_cmd_len=196608
5153 ;;
5154
5155 osf*)
5156 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5157 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5158 # nice to cause kernel panics so lets avoid the loop below.
5159 # First set a reasonable default.
5160 lt_cv_sys_max_cmd_len=16384
5161 #
5162 if test -x /sbin/sysconfig; then
5163 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5164 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5165 esac
5166 fi
5167 ;;
5168 sco3.2v5*)
5169 lt_cv_sys_max_cmd_len=102400
5170 ;;
5171 sysv5* | sco5v6* | sysv4.2uw2*)
5172 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5173 if test -n "$kargmax"; then
5174 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5175 else
5176 lt_cv_sys_max_cmd_len=32768
5177 fi
5178 ;;
5179 *)
5180 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5181 if test -n "$lt_cv_sys_max_cmd_len"; then
5182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5184 else
5185 # Make teststring a little bigger before we do anything with it.
5186 # a 1K string should be a reasonable start.
5187 for i in 1 2 3 4 5 6 7 8 ; do
5188 teststring=$teststring$teststring
5189 done
5190 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5191 # If test is not a shell built-in, we'll probably end up computing a
5192 # maximum length that is only half of the actual maximum length, but
5193 # we can't tell.
5194 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5195 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5196 test $i != 17 # 1/2 MB should be enough
5197 do
5198 i=`expr $i + 1`
5199 teststring=$teststring$teststring
5200 done
5201 # Only check the string length outside the loop.
5202 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5203 teststring=
5204 # Add a significant safety factor because C++ compilers can tack on
5205 # massive amounts of additional arguments before passing them to the
5206 # linker. It appears as though 1/2 is a usable value.
5207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5208 fi
5209 ;;
5210 esac
5211
5212fi
5213
5214if test -n $lt_cv_sys_max_cmd_len ; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5216$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5217else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5219$as_echo "none" >&6; }
5220fi
5221max_cmd_len=$lt_cv_sys_max_cmd_len
5222
5223
5224
5225
5226
5227
5228: ${CP="cp -f"}
5229: ${MV="mv -f"}
5230: ${RM="rm -f"}
5231
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5233$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5234# Try some XSI features
5235xsi_shell=no
5236( _lt_dummy="a/b/c"
5237 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5238 = c,a/b,, \
5239 && eval 'test $(( 1 + 1 )) -eq 2 \
5240 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5241 && xsi_shell=yes
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5243$as_echo "$xsi_shell" >&6; }
5244
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5247$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5248lt_shell_append=no
5249( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5250 >/dev/null 2>&1 \
5251 && lt_shell_append=yes
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5253$as_echo "$lt_shell_append" >&6; }
5254
5255
5256if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5257 lt_unset=unset
5258else
5259 lt_unset=false
5260fi
5261
5262
5263
5264
5265
5266# test EBCDIC or ASCII
5267case `echo X|tr X '\101'` in
5268 A) # ASCII based system
5269 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5270 lt_SP2NL='tr \040 \012'
5271 lt_NL2SP='tr \015\012 \040\040'
5272 ;;
5273 *) # EBCDIC based system
5274 lt_SP2NL='tr \100 \n'
5275 lt_NL2SP='tr \r\n \100\100'
5276 ;;
5277esac
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5288$as_echo_n "checking for $LD option to reload object files... " >&6; }
5289if ${lt_cv_ld_reload_flag+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291else
5292 lt_cv_ld_reload_flag='-r'
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5295$as_echo "$lt_cv_ld_reload_flag" >&6; }
5296reload_flag=$lt_cv_ld_reload_flag
5297case $reload_flag in
5298"" | " "*) ;;
5299*) reload_flag=" $reload_flag" ;;
5300esac
5301reload_cmds='$LD$reload_flag -o $output$reload_objs'
5302case $host_os in
5303 darwin*)
5304 if test "$GCC" = yes; then
5305 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5306 else
5307 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5308 fi
5309 ;;
5310esac
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320if test -n "$ac_tool_prefix"; then
5321 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5322set dummy ${ac_tool_prefix}objdump; ac_word=$2
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324$as_echo_n "checking for $ac_word... " >&6; }
5325if ${ac_cv_prog_OBJDUMP+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327else
5328 if test -n "$OBJDUMP"; then
5329 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4301e38a
DE
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301e38a 5340 break 2
5e9f2524 5341 fi
4301e38a 5342done
11a3e7b6
VZ
5343 done
5344IFS=$as_save_IFS
5e9f2524 5345
5e9f2524 5346fi
4301e38a 5347fi
11a3e7b6
VZ
5348OBJDUMP=$ac_cv_prog_OBJDUMP
5349if test -n "$OBJDUMP"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5351$as_echo "$OBJDUMP" >&6; }
4301e38a 5352else
11a3e7b6
VZ
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
4301e38a 5355fi
5e9f2524 5356
11a3e7b6 5357
4301e38a 5358fi
11a3e7b6
VZ
5359if test -z "$ac_cv_prog_OBJDUMP"; then
5360 ac_ct_OBJDUMP=$OBJDUMP
5361 # Extract the first word of "objdump", so it can be a program name with args.
5362set dummy objdump; ac_word=$2
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
5365if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5366 $as_echo_n "(cached) " >&6
4301e38a 5367else
11a3e7b6
VZ
5368 if test -n "$ac_ct_OBJDUMP"; then
5369 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4301e38a
DE
5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
11a3e7b6
VZ
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301e38a 5380 break 2
5e9f2524 5381 fi
4301e38a 5382done
11a3e7b6
VZ
5383 done
5384IFS=$as_save_IFS
4301e38a 5385
4301e38a
DE
5386fi
5387fi
11a3e7b6
VZ
5388ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5389if test -n "$ac_ct_OBJDUMP"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5391$as_echo "$ac_ct_OBJDUMP" >&6; }
4301e38a 5392else
11a3e7b6
VZ
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5e9f2524
VS
5395fi
5396
11a3e7b6
VZ
5397 if test "x$ac_ct_OBJDUMP" = x; then
5398 OBJDUMP="false"
5399 else
5400 case $cross_compiling:$ac_tool_warned in
5401yes:)
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5404ac_tool_warned=yes ;;
5405esac
5406 OBJDUMP=$ac_ct_OBJDUMP
5407 fi
4301e38a 5408else
11a3e7b6 5409 OBJDUMP="$ac_cv_prog_OBJDUMP"
4301e38a
DE
5410fi
5411
11a3e7b6 5412test -z "$OBJDUMP" && OBJDUMP=objdump
4301e38a 5413
4301e38a 5414
4301e38a 5415
4301e38a 5416
4301e38a
DE
5417
5418
11a3e7b6
VZ
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5420$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5421if ${lt_cv_deplibs_check_method+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423else
5424 lt_cv_file_magic_cmd='$MAGIC_CMD'
5425lt_cv_file_magic_test_file=
5426lt_cv_deplibs_check_method='unknown'
5427# Need to set the preceding variable on all platforms that support
5428# interlibrary dependencies.
5429# 'none' -- dependencies not supported.
5430# `unknown' -- same as none, but documents that we really don't know.
5431# 'pass_all' -- all dependencies passed with no checks.
5432# 'test_compile' -- check by making test program.
5433# 'file_magic [[regex]]' -- check by looking for files in library path
5434# which responds to the $file_magic_cmd with a given extended regex.
5435# If you have `file' or equivalent on your system and you're not sure
5436# whether `pass_all' will *always* work, you probably want this one.
4301e38a 5437
11a3e7b6
VZ
5438case $host_os in
5439aix[4-9]*)
5440 lt_cv_deplibs_check_method=pass_all
5441 ;;
5e9f2524 5442
11a3e7b6
VZ
5443beos*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5e9f2524 5446
11a3e7b6
VZ
5447bsdi[45]*)
5448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5449 lt_cv_file_magic_cmd='/usr/bin/file -L'
5450 lt_cv_file_magic_test_file=/shlib/libc.so
5451 ;;
79608eef 5452
11a3e7b6
VZ
5453cygwin*)
5454 # func_win32_libid is a shell function defined in ltmain.sh
5455 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5456 lt_cv_file_magic_cmd='func_win32_libid'
5457 ;;
5e9f2524 5458
11a3e7b6
VZ
5459mingw* | pw32*)
5460 # Base MSYS/MinGW do not provide the 'file' command needed by
5461 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5462 # unless we find 'file', for example because we are cross-compiling.
5463 if ( file / ) >/dev/null 2>&1; then
5464 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5465 lt_cv_file_magic_cmd='func_win32_libid'
5466 else
5467 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5468 lt_cv_file_magic_cmd='$OBJDUMP -f'
4301e38a
DE
5469 fi
5470 ;;
5e9f2524 5471
11a3e7b6
VZ
5472cegcc)
5473 # use the weaker test based on 'objdump'. See mingw*.
5474 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5475 lt_cv_file_magic_cmd='$OBJDUMP -f'
5476 ;;
5e9f2524 5477
11a3e7b6
VZ
5478darwin* | rhapsody*)
5479 lt_cv_deplibs_check_method=pass_all
5480 ;;
5e9f2524 5481
11a3e7b6
VZ
5482freebsd* | dragonfly*)
5483 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5484 case $host_cpu in
5485 i*86 )
5486 # Not sure whether the presence of OpenBSD here was a mistake.
5487 # Let's accept both of them until this is cleared up.
5488 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5489 lt_cv_file_magic_cmd=/usr/bin/file
5490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5491 ;;
5492 esac
5493 else
5494 lt_cv_deplibs_check_method=pass_all
5495 fi
5496 ;;
5e9f2524 5497
11a3e7b6
VZ
5498gnu*)
5499 lt_cv_deplibs_check_method=pass_all
5500 ;;
5e9f2524 5501
11a3e7b6
VZ
5502hpux10.20* | hpux11*)
5503 lt_cv_file_magic_cmd=/usr/bin/file
5504 case $host_cpu in
5505 ia64*)
5506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5507 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5508 ;;
5509 hppa*64*)
5510 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5511 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5512 ;;
5513 *)
5514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5515 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5516 ;;
5517 esac
5518 ;;
5e9f2524 5519
11a3e7b6
VZ
5520interix[3-9]*)
5521 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5523 ;;
5e9f2524 5524
11a3e7b6
VZ
5525irix5* | irix6* | nonstopux*)
5526 case $LD in
5527 *-32|*"-32 ") libmagic=32-bit;;
5528 *-n32|*"-n32 ") libmagic=N32;;
5529 *-64|*"-64 ") libmagic=64-bit;;
5530 *) libmagic=never-match;;
5531 esac
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
5e9f2524 5534
11a3e7b6
VZ
5535# This must be Linux ELF.
5536linux* | k*bsd*-gnu | kopensolaris*-gnu)
5537 lt_cv_deplibs_check_method=pass_all
5538 ;;
5e9f2524 5539
11a3e7b6
VZ
5540netbsd* | netbsdelf*-gnu)
5541 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5543 else
5544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5545 fi
5546 ;;
79608eef 5547
11a3e7b6
VZ
5548newos6*)
5549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5550 lt_cv_file_magic_cmd=/usr/bin/file
5551 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5552 ;;
5e9f2524 5553
11a3e7b6
VZ
5554*nto* | *qnx*)
5555 lt_cv_deplibs_check_method=pass_all
5556 ;;
5e9f2524 5557
11a3e7b6
VZ
5558openbsd*)
5559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5561 else
5562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4301e38a
DE
5563 fi
5564 ;;
4301e38a 5565
11a3e7b6
VZ
5566osf3* | osf4* | osf5*)
5567 lt_cv_deplibs_check_method=pass_all
5568 ;;
5e9f2524 5569
11a3e7b6
VZ
5570rdos*)
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
4301e38a 5573
11a3e7b6
VZ
5574solaris*)
5575 lt_cv_deplibs_check_method=pass_all
5576 ;;
5e9f2524 5577
11a3e7b6
VZ
5578sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5579 lt_cv_deplibs_check_method=pass_all
5580 ;;
4301e38a 5581
11a3e7b6
VZ
5582sysv4 | sysv4.3*)
5583 case $host_vendor in
5584 motorola)
5585 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]'
5586 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5587 ;;
5588 ncr)
5589 lt_cv_deplibs_check_method=pass_all
5590 ;;
5591 sequent)
5592 lt_cv_file_magic_cmd='/bin/file'
5593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5594 ;;
5595 sni)
5596 lt_cv_file_magic_cmd='/bin/file'
5597 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5598 lt_cv_file_magic_test_file=/lib/libc.so
5599 ;;
5600 siemens)
5601 lt_cv_deplibs_check_method=pass_all
5602 ;;
5603 pc)
5604 lt_cv_deplibs_check_method=pass_all
5605 ;;
5606 esac
5607 ;;
4301e38a 5608
11a3e7b6
VZ
5609tpf*)
5610 lt_cv_deplibs_check_method=pass_all
5611 ;;
5612esac
4301e38a 5613
11a3e7b6
VZ
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5616$as_echo "$lt_cv_deplibs_check_method" >&6; }
5617file_magic_cmd=$lt_cv_file_magic_cmd
5618deplibs_check_method=$lt_cv_deplibs_check_method
5619test -z "$deplibs_check_method" && deplibs_check_method=unknown
4301e38a 5620
4301e38a 5621
4301e38a 5622
4301e38a 5623
4301e38a 5624
4301e38a 5625
4301e38a 5626
4301e38a 5627
4301e38a 5628
4301e38a 5629
4301e38a 5630
4301e38a 5631
11a3e7b6
VZ
5632if test -n "$ac_tool_prefix"; then
5633 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5634set dummy ${ac_tool_prefix}ar; ac_word=$2
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636$as_echo_n "checking for $ac_word... " >&6; }
5637if ${ac_cv_prog_AR+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639else
5640 if test -n "$AR"; then
5641 ac_cv_prog_AR="$AR" # Let the user override the test.
5642else
5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH
5645do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_AR="${ac_tool_prefix}ar"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
4301e38a 5653 fi
11a3e7b6
VZ
5654done
5655 done
5656IFS=$as_save_IFS
4301e38a
DE
5657
5658fi
11a3e7b6
VZ
5659fi
5660AR=$ac_cv_prog_AR
5661if test -n "$AR"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5663$as_echo "$AR" >&6; }
4301e38a 5664else
11a3e7b6
VZ
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666$as_echo "no" >&6; }
5667fi
4301e38a 5668
5e9f2524 5669
11a3e7b6
VZ
5670fi
5671if test -z "$ac_cv_prog_AR"; then
5672 ac_ct_AR=$AR
5673 # Extract the first word of "ar", so it can be a program name with args.
5674set dummy ar; ac_word=$2
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676$as_echo_n "checking for $ac_word... " >&6; }
5677if ${ac_cv_prog_ac_ct_AR+:} false; then :
5678 $as_echo_n "(cached) " >&6
5e9f2524 5679else
11a3e7b6
VZ
5680 if test -n "$ac_ct_AR"; then
5681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690 ac_cv_prog_ac_ct_AR="ar"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694done
5695 done
5696IFS=$as_save_IFS
4301e38a 5697
5e9f2524 5698fi
4301e38a 5699fi
11a3e7b6
VZ
5700ac_ct_AR=$ac_cv_prog_ac_ct_AR
5701if test -n "$ac_ct_AR"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5703$as_echo "$ac_ct_AR" >&6; }
5704else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706$as_echo "no" >&6; }
5e9f2524 5707fi
5e9f2524 5708
11a3e7b6
VZ
5709 if test "x$ac_ct_AR" = x; then
5710 AR="false"
4301e38a 5711 else
11a3e7b6
VZ
5712 case $cross_compiling:$ac_tool_warned in
5713yes:)
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5716ac_tool_warned=yes ;;
5717esac
5718 AR=$ac_ct_AR
4301e38a 5719 fi
11a3e7b6
VZ
5720else
5721 AR="$ac_cv_prog_AR"
4301e38a
DE
5722fi
5723
11a3e7b6
VZ
5724test -z "$AR" && AR=ar
5725test -z "$AR_FLAGS" && AR_FLAGS=cru
5e9f2524 5726
5e9f2524 5727
5e9f2524 5728
5e9f2524 5729
5e9f2524 5730
5e9f2524 5731
5e9f2524 5732
5e9f2524 5733
5e9f2524 5734
11a3e7b6
VZ
5735
5736
5737if test -n "$ac_tool_prefix"; then
5738 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5739set dummy ${ac_tool_prefix}strip; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
5742if ${ac_cv_prog_STRIP+:} false; then :
5743 $as_echo_n "(cached) " >&6
4301e38a 5744else
11a3e7b6
VZ
5745 if test -n "$STRIP"; then
5746 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759done
5760 done
5761IFS=$as_save_IFS
5e9f2524 5762
4301e38a 5763fi
11a3e7b6
VZ
5764fi
5765STRIP=$ac_cv_prog_STRIP
5766if test -n "$STRIP"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5768$as_echo "$STRIP" >&6; }
5769else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771$as_echo "no" >&6; }
5772fi
5773
5e9f2524 5774
4301e38a 5775fi
11a3e7b6
VZ
5776if test -z "$ac_cv_prog_STRIP"; then
5777 ac_ct_STRIP=$STRIP
5778 # Extract the first word of "strip", so it can be a program name with args.
5779set dummy strip; ac_word=$2
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781$as_echo_n "checking for $ac_word... " >&6; }
5782if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784else
5785 if test -n "$ac_ct_STRIP"; then
5786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_ac_ct_STRIP="strip"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799done
5800 done
5801IFS=$as_save_IFS
5e9f2524 5802
11a3e7b6
VZ
5803fi
5804fi
5805ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5806if test -n "$ac_ct_STRIP"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5808$as_echo "$ac_ct_STRIP" >&6; }
4301e38a 5809else
11a3e7b6
VZ
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811$as_echo "no" >&6; }
4301e38a 5812fi
5e9f2524 5813
11a3e7b6
VZ
5814 if test "x$ac_ct_STRIP" = x; then
5815 STRIP=":"
5816 else
5817 case $cross_compiling:$ac_tool_warned in
5818yes:)
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821ac_tool_warned=yes ;;
5822esac
5823 STRIP=$ac_ct_STRIP
5e9f2524
VS
5824 fi
5825else
11a3e7b6 5826 STRIP="$ac_cv_prog_STRIP"
4301e38a 5827fi
5e9f2524 5828
11a3e7b6 5829test -z "$STRIP" && STRIP=:
5e9f2524 5830
5e9f2524 5831
11a3e7b6
VZ
5832
5833
5834
5835
5836if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if ${ac_cv_prog_RANLIB+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843else
5844 if test -n "$RANLIB"; then
5845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859 done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864RANLIB=$ac_cv_prog_RANLIB
5865if test -n "$RANLIB"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5867$as_echo "$RANLIB" >&6; }
5868else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873
5874fi
5875if test -z "$ac_cv_prog_RANLIB"; then
5876 ac_ct_RANLIB=$RANLIB
5877 # Extract the first word of "ranlib", so it can be a program name with args.
5878set dummy ranlib; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
5881if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5882 $as_echo_n "(cached) " >&6
4301e38a 5883else
11a3e7b6
VZ
5884 if test -n "$ac_ct_RANLIB"; then
5885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_RANLIB="ranlib"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898done
5899 done
5900IFS=$as_save_IFS
5e9f2524 5901
4301e38a 5902fi
11a3e7b6
VZ
5903fi
5904ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5905if test -n "$ac_ct_RANLIB"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5907$as_echo "$ac_ct_RANLIB" >&6; }
5908else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911fi
5e9f2524 5912
11a3e7b6
VZ
5913 if test "x$ac_ct_RANLIB" = x; then
5914 RANLIB=":"
4301e38a 5915 else
11a3e7b6
VZ
5916 case $cross_compiling:$ac_tool_warned in
5917yes:)
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920ac_tool_warned=yes ;;
5921esac
5922 RANLIB=$ac_ct_RANLIB
4301e38a 5923 fi
11a3e7b6
VZ
5924else
5925 RANLIB="$ac_cv_prog_RANLIB"
4301e38a 5926fi
5e9f2524 5927
11a3e7b6 5928test -z "$RANLIB" && RANLIB=:
4301e38a 5929
4301e38a 5930
4301e38a 5931
4301e38a 5932
4301e38a 5933
4301e38a 5934
11a3e7b6
VZ
5935# Determine commands to create old-style static archives.
5936old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5937old_postinstall_cmds='chmod 644 $oldlib'
5938old_postuninstall_cmds=
5e9f2524 5939
11a3e7b6
VZ
5940if test -n "$RANLIB"; then
5941 case $host_os in
5942 openbsd*)
5943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5e9f2524 5944 ;;
11a3e7b6
VZ
5945 *)
5946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4301e38a 5947 ;;
11a3e7b6
VZ
5948 esac
5949 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5950fi
4301e38a 5951
5e9f2524 5952
5e9f2524 5953
5e9f2524 5954
5e9f2524 5955
5e9f2524 5956
5e9f2524 5957
5e9f2524 5958
5e9f2524 5959
5e9f2524 5960
5e9f2524 5961
5e9f2524 5962
5e9f2524 5963
4301e38a 5964
4301e38a 5965
4301e38a 5966
4301e38a 5967
4301e38a 5968
5e9f2524 5969
5e9f2524 5970
5e9f2524 5971
5e9f2524 5972
5e9f2524 5973
5e9f2524 5974
5e9f2524 5975
5e9f2524 5976
4301e38a 5977
5e9f2524 5978
4301e38a 5979
4301e38a 5980
4301e38a 5981
5e9f2524 5982
5e9f2524 5983
5e9f2524 5984
11a3e7b6
VZ
5985# If no C compiler was specified, use CC.
5986LTCC=${LTCC-"$CC"}
4301e38a 5987
11a3e7b6
VZ
5988# If no C compiler flags were specified, use CFLAGS.
5989LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5e9f2524 5990
11a3e7b6
VZ
5991# Allow CC to be a program name with arguments.
5992compiler=$CC
5e9f2524 5993
5e9f2524 5994
11a3e7b6
VZ
5995# Check for command to grab the raw symbol name followed by C symbol from nm.
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5997$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5998if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000else
5e9f2524 6001
11a3e7b6
VZ
6002# These are sane defaults that work on at least a few old systems.
6003# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5e9f2524 6004
11a3e7b6
VZ
6005# Character class describing NM global symbol codes.
6006symcode='[BCDEGRST]'
5e9f2524 6007
11a3e7b6
VZ
6008# Regexp to match symbols that can be accessed directly from C.
6009sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5e9f2524 6010
11a3e7b6
VZ
6011# Define system-specific variables.
6012case $host_os in
6013aix*)
6014 symcode='[BCDT]'
6015 ;;
6016cygwin* | mingw* | pw32* | cegcc*)
6017 symcode='[ABCDGISTW]'
6018 ;;
6019hpux*)
6020 if test "$host_cpu" = ia64; then
6021 symcode='[ABCDEGRST]'
6022 fi
6023 ;;
6024irix* | nonstopux*)
6025 symcode='[BCDEGRST]'
6026 ;;
6027osf*)
6028 symcode='[BCDEGQRST]'
6029 ;;
6030solaris*)
6031 symcode='[BDRT]'
6032 ;;
6033sco3.2v5*)
6034 symcode='[DT]'
6035 ;;
6036sysv4.2uw2*)
6037 symcode='[DT]'
6038 ;;
6039sysv5* | sco5v6* | unixware* | OpenUNIX*)
6040 symcode='[ABDT]'
6041 ;;
6042sysv4)
6043 symcode='[DFNSTU]'
6044 ;;
6045esac
5e9f2524 6046
11a3e7b6
VZ
6047# If we're using GNU nm, then use its standard symbol codes.
6048case `$NM -V 2>&1` in
6049*GNU* | *'with BFD'*)
6050 symcode='[ABCDGIRSTW]' ;;
6051esac
5e9f2524 6052
11a3e7b6
VZ
6053# Transform an extracted symbol line into a proper C declaration.
6054# Some systems (esp. on ia64) link data and code symbols differently,
6055# so use this general approach.
6056lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5e9f2524 6057
11a3e7b6
VZ
6058# Transform an extracted symbol line into symbol name and symbol address
6059lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6060lt_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'"
5e9f2524 6061
11a3e7b6
VZ
6062# Handle CRLF in mingw tool chain
6063opt_cr=
6064case $build_os in
6065mingw*)
6066 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6067 ;;
6068esac
6069
6070# Try without a prefix underscore, then with it.
6071for ac_symprfx in "" "_"; do
6072
6073 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6074 symxfrm="\\1 $ac_symprfx\\2 \\2"
6075
6076 # Write the raw and C identifiers.
6077 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6078 # Fake it for dumpbin and say T for any non-static function
6079 # and D for any global variable.
6080 # Also find C++ and __fastcall symbols from MSVC++,
6081 # which start with @ or ?.
6082 lt_cv_sys_global_symbol_pipe="$AWK '"\
6083" {last_section=section; section=\$ 3};"\
6084" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6085" \$ 0!~/External *\|/{next};"\
6086" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6087" {if(hide[section]) next};"\
6088" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6089" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6090" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6091" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6092" ' prfx=^$ac_symprfx"
6093 else
6094 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6095 fi
6096
6097 # Check to see that the pipe works correctly.
6098 pipe_works=no
6099
6100 rm -f conftest*
6101 cat > conftest.$ac_ext <<_LT_EOF
6102#ifdef __cplusplus
6103extern "C" {
6104#endif
6105char nm_test_var;
6106void nm_test_func(void);
6107void nm_test_func(void){}
6108#ifdef __cplusplus
6109}
6110#endif
6111int main(){nm_test_var='a';nm_test_func();return(0);}
6112_LT_EOF
6113
6114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6115 (eval $ac_compile) 2>&5
6116 ac_status=$?
6117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6118 test $ac_status = 0; }; then
6119 # Now try to grab the symbols.
6120 nlist=conftest.nm
6121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6122 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6123 ac_status=$?
6124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6125 test $ac_status = 0; } && test -s "$nlist"; then
6126 # Try sorting and uniquifying the output.
6127 if sort "$nlist" | uniq > "$nlist"T; then
6128 mv -f "$nlist"T "$nlist"
6129 else
6130 rm -f "$nlist"T
6131 fi
6132
6133 # Make sure that we snagged all the symbols we need.
6134 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6135 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6136 cat <<_LT_EOF > conftest.$ac_ext
6137#ifdef __cplusplus
6138extern "C" {
6139#endif
6140
6141_LT_EOF
6142 # Now generate the symbol file.
6143 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6144
6145 cat <<_LT_EOF >> conftest.$ac_ext
6146
6147/* The mapping between symbol names and symbols. */
6148const struct {
6149 const char *name;
6150 void *address;
6151}
6152lt__PROGRAM__LTX_preloaded_symbols[] =
6153{
6154 { "@PROGRAM@", (void *) 0 },
6155_LT_EOF
6156 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6157 cat <<\_LT_EOF >> conftest.$ac_ext
6158 {0, (void *) 0}
6159};
6160
6161/* This works around a problem in FreeBSD linker */
6162#ifdef FREEBSD_WORKAROUND
6163static const void *lt_preloaded_setup() {
6164 return lt__PROGRAM__LTX_preloaded_symbols;
6165}
6166#endif
6167
6168#ifdef __cplusplus
6169}
6170#endif
6171_LT_EOF
6172 # Now try linking the two files.
6173 mv conftest.$ac_objext conftstm.$ac_objext
6174 lt_save_LIBS="$LIBS"
6175 lt_save_CFLAGS="$CFLAGS"
6176 LIBS="conftstm.$ac_objext"
6177 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6179 (eval $ac_link) 2>&5
6180 ac_status=$?
6181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6183 pipe_works=yes
6184 fi
6185 LIBS="$lt_save_LIBS"
6186 CFLAGS="$lt_save_CFLAGS"
6187 else
6188 echo "cannot find nm_test_func in $nlist" >&5
6189 fi
6190 else
6191 echo "cannot find nm_test_var in $nlist" >&5
6192 fi
4301e38a 6193 else
11a3e7b6 6194 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4301e38a 6195 fi
11a3e7b6
VZ
6196 else
6197 echo "$progname: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6199 fi
6200 rm -rf conftest* conftst*
5e9f2524 6201
11a3e7b6
VZ
6202 # Do not use the global_symbol_pipe unless it works.
6203 if test "$pipe_works" = yes; then
6204 break
4301e38a 6205 else
11a3e7b6 6206 lt_cv_sys_global_symbol_pipe=
5e9f2524 6207 fi
11a3e7b6
VZ
6208done
6209
4301e38a 6210fi
5e9f2524 6211
11a3e7b6
VZ
6212if test -z "$lt_cv_sys_global_symbol_pipe"; then
6213 lt_cv_sys_global_symbol_to_cdecl=
6214fi
6215if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6217$as_echo "failed" >&6; }
4301e38a 6218else
11a3e7b6
VZ
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6220$as_echo "ok" >&6; }
4301e38a 6221fi
5e9f2524 6222
4301e38a 6223
5e9f2524 6224
4301e38a 6225
5e9f2524 6226
11a3e7b6
VZ
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244# Check whether --enable-libtool-lock was given.
6245if test "${enable_libtool_lock+set}" = set; then :
6246 enableval=$enable_libtool_lock;
6247fi
6248
6249test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6250
6251# Some flags need to be propagated to the compiler or linker for good
6252# libtool support.
6253case $host in
6254ia64-*-hpux*)
6255 # Find out which ABI we are using.
6256 echo 'int i;' > conftest.$ac_ext
6257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6258 (eval $ac_compile) 2>&5
6259 ac_status=$?
6260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6261 test $ac_status = 0; }; then
6262 case `/usr/bin/file conftest.$ac_objext` in
6263 *ELF-32*)
6264 HPUX_IA64_MODE="32"
6265 ;;
6266 *ELF-64*)
6267 HPUX_IA64_MODE="64"
6268 ;;
6269 esac
6270 fi
6271 rm -rf conftest*
6272 ;;
6273*-*-irix6*)
6274 # Find out which ABI we are using.
6275 echo '#line 6275 "configure"' > conftest.$ac_ext
6276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6277 (eval $ac_compile) 2>&5
6278 ac_status=$?
6279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6280 test $ac_status = 0; }; then
6281 if test "$lt_cv_prog_gnu_ld" = yes; then
6282 case `/usr/bin/file conftest.$ac_objext` in
6283 *32-bit*)
6284 LD="${LD-ld} -melf32bsmip"
6285 ;;
6286 *N32*)
6287 LD="${LD-ld} -melf32bmipn32"
6288 ;;
6289 *64-bit*)
6290 LD="${LD-ld} -melf64bmip"
6291 ;;
6292 esac
6293 else
6294 case `/usr/bin/file conftest.$ac_objext` in
6295 *32-bit*)
6296 LD="${LD-ld} -32"
6297 ;;
6298 *N32*)
6299 LD="${LD-ld} -n32"
6300 ;;
6301 *64-bit*)
6302 LD="${LD-ld} -64"
6303 ;;
6304 esac
6305 fi
6306 fi
6307 rm -rf conftest*
6308 ;;
6309
6310x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6311s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6312 # Find out which ABI we are using.
6313 echo 'int i;' > conftest.$ac_ext
6314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6315 (eval $ac_compile) 2>&5
6316 ac_status=$?
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; }; then
6319 case `/usr/bin/file conftest.o` in
6320 *32-bit*)
6321 case $host in
6322 x86_64-*kfreebsd*-gnu)
6323 LD="${LD-ld} -m elf_i386_fbsd"
6324 ;;
6325 x86_64-*linux*)
6326 LD="${LD-ld} -m elf_i386"
6327 ;;
6328 ppc64-*linux*|powerpc64-*linux*)
6329 LD="${LD-ld} -m elf32ppclinux"
6330 ;;
6331 s390x-*linux*)
6332 LD="${LD-ld} -m elf_s390"
6333 ;;
6334 sparc64-*linux*)
6335 LD="${LD-ld} -m elf32_sparc"
6336 ;;
6337 esac
6338 ;;
6339 *64-bit*)
6340 case $host in
6341 x86_64-*kfreebsd*-gnu)
6342 LD="${LD-ld} -m elf_x86_64_fbsd"
6343 ;;
6344 x86_64-*linux*)
6345 LD="${LD-ld} -m elf_x86_64"
6346 ;;
6347 ppc*-*linux*|powerpc*-*linux*)
6348 LD="${LD-ld} -m elf64ppc"
6349 ;;
6350 s390*-*linux*|s390*-*tpf*)
6351 LD="${LD-ld} -m elf64_s390"
6352 ;;
6353 sparc*-*linux*)
6354 LD="${LD-ld} -m elf64_sparc"
6355 ;;
6356 esac
6357 ;;
6358 esac
6359 fi
6360 rm -rf conftest*
6361 ;;
6362
6363*-*-sco3.2v5*)
6364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6365 SAVE_CFLAGS="$CFLAGS"
6366 CFLAGS="$CFLAGS -belf"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6368$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6369if ${lt_cv_cc_needs_belf+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371else
6372 ac_ext=c
6373ac_cpp='$CPP $CPPFLAGS'
6374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379/* end confdefs.h. */
6380
6381int
6382main ()
6383{
6384
6385 ;
6386 return 0;
6387}
6388_ACEOF
6389if ac_fn_c_try_link "$LINENO"; then :
6390 lt_cv_cc_needs_belf=yes
6391else
6392 lt_cv_cc_needs_belf=no
6393fi
6394rm -f core conftest.err conftest.$ac_objext \
6395 conftest$ac_exeext conftest.$ac_ext
6396 ac_ext=c
6397ac_cpp='$CPP $CPPFLAGS'
6398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401
6402fi
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6404$as_echo "$lt_cv_cc_needs_belf" >&6; }
6405 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6406 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6407 CFLAGS="$SAVE_CFLAGS"
6408 fi
6409 ;;
6410sparc*-*solaris*)
6411 # Find out which ABI we are using.
6412 echo 'int i;' > conftest.$ac_ext
6413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414 (eval $ac_compile) 2>&5
6415 ac_status=$?
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }; then
6418 case `/usr/bin/file conftest.o` in
6419 *64-bit*)
6420 case $lt_cv_prog_gnu_ld in
6421 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6422 *)
6423 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6424 LD="${LD-ld} -64"
6425 fi
6426 ;;
6427 esac
6428 ;;
6429 esac
6430 fi
6431 rm -rf conftest*
6432 ;;
6433esac
6434
6435need_locks="$enable_libtool_lock"
6436
6437
6438 case $host_os in
6439 rhapsody* | darwin*)
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6442set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444$as_echo_n "checking for $ac_word... " >&6; }
6445if ${ac_cv_prog_DSYMUTIL+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447else
6448 if test -n "$DSYMUTIL"; then
6449 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6450else
6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452for as_dir in $PATH
6453do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462done
6463 done
6464IFS=$as_save_IFS
6465
6466fi
6467fi
6468DSYMUTIL=$ac_cv_prog_DSYMUTIL
6469if test -n "$DSYMUTIL"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6471$as_echo "$DSYMUTIL" >&6; }
6472else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474$as_echo "no" >&6; }
6475fi
6476
6477
6478fi
6479if test -z "$ac_cv_prog_DSYMUTIL"; then
6480 ac_ct_DSYMUTIL=$DSYMUTIL
6481 # Extract the first word of "dsymutil", so it can be a program name with args.
6482set dummy dsymutil; ac_word=$2
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484$as_echo_n "checking for $ac_word... " >&6; }
6485if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487else
6488 if test -n "$ac_ct_DSYMUTIL"; then
6489 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6490else
6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492for as_dir in $PATH
6493do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502done
6503 done
6504IFS=$as_save_IFS
6505
6506fi
6507fi
6508ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6509if test -n "$ac_ct_DSYMUTIL"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6511$as_echo "$ac_ct_DSYMUTIL" >&6; }
6512else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514$as_echo "no" >&6; }
6515fi
6516
6517 if test "x$ac_ct_DSYMUTIL" = x; then
6518 DSYMUTIL=":"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521yes:)
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524ac_tool_warned=yes ;;
6525esac
6526 DSYMUTIL=$ac_ct_DSYMUTIL
6527 fi
6528else
6529 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6530fi
6531
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6534set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536$as_echo_n "checking for $ac_word... " >&6; }
6537if ${ac_cv_prog_NMEDIT+:} false; then :
6538 $as_echo_n "(cached) " >&6
6539else
6540 if test -n "$NMEDIT"; then
6541 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554done
6555 done
6556IFS=$as_save_IFS
6557
6558fi
6559fi
6560NMEDIT=$ac_cv_prog_NMEDIT
6561if test -n "$NMEDIT"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6563$as_echo "$NMEDIT" >&6; }
6564else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566$as_echo "no" >&6; }
6567fi
6568
6569
6570fi
6571if test -z "$ac_cv_prog_NMEDIT"; then
6572 ac_ct_NMEDIT=$NMEDIT
6573 # Extract the first word of "nmedit", so it can be a program name with args.
6574set dummy nmedit; ac_word=$2
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576$as_echo_n "checking for $ac_word... " >&6; }
6577if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579else
6580 if test -n "$ac_ct_NMEDIT"; then
6581 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594done
6595 done
6596IFS=$as_save_IFS
6597
6598fi
6599fi
6600ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6601if test -n "$ac_ct_NMEDIT"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6603$as_echo "$ac_ct_NMEDIT" >&6; }
6604else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606$as_echo "no" >&6; }
6607fi
6608
6609 if test "x$ac_ct_NMEDIT" = x; then
6610 NMEDIT=":"
6611 else
6612 case $cross_compiling:$ac_tool_warned in
6613yes:)
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616ac_tool_warned=yes ;;
6617esac
6618 NMEDIT=$ac_ct_NMEDIT
6619 fi
6620else
6621 NMEDIT="$ac_cv_prog_NMEDIT"
6622fi
6623
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6626set dummy ${ac_tool_prefix}lipo; ac_word=$2
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
6629if ${ac_cv_prog_LIPO+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631else
6632 if test -n "$LIPO"; then
6633 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646done
6647 done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
6652LIPO=$ac_cv_prog_LIPO
6653if test -n "$LIPO"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6655$as_echo "$LIPO" >&6; }
6656else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661
6662fi
6663if test -z "$ac_cv_prog_LIPO"; then
6664 ac_ct_LIPO=$LIPO
6665 # Extract the first word of "lipo", so it can be a program name with args.
6666set dummy lipo; ac_word=$2
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668$as_echo_n "checking for $ac_word... " >&6; }
6669if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671else
6672 if test -n "$ac_ct_LIPO"; then
6673 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6674else
6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_ac_ct_LIPO="lipo"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686done
6687 done
6688IFS=$as_save_IFS
6689
6690fi
6691fi
6692ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6693if test -n "$ac_ct_LIPO"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6695$as_echo "$ac_ct_LIPO" >&6; }
6696else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698$as_echo "no" >&6; }
6699fi
6700
6701 if test "x$ac_ct_LIPO" = x; then
6702 LIPO=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705yes:)
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708ac_tool_warned=yes ;;
6709esac
6710 LIPO=$ac_ct_LIPO
6711 fi
6712else
6713 LIPO="$ac_cv_prog_LIPO"
6714fi
6715
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6718set dummy ${ac_tool_prefix}otool; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
6721if ${ac_cv_prog_OTOOL+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723else
6724 if test -n "$OTOOL"; then
6725 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738done
6739 done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744OTOOL=$ac_cv_prog_OTOOL
6745if test -n "$OTOOL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6747$as_echo "$OTOOL" >&6; }
6748else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753
6754fi
6755if test -z "$ac_cv_prog_OTOOL"; then
6756 ac_ct_OTOOL=$OTOOL
6757 # Extract the first word of "otool", so it can be a program name with args.
6758set dummy otool; ac_word=$2
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760$as_echo_n "checking for $ac_word... " >&6; }
6761if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6762 $as_echo_n "(cached) " >&6
6763else
6764 if test -n "$ac_ct_OTOOL"; then
6765 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774 ac_cv_prog_ac_ct_OTOOL="otool"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778done
6779 done
6780IFS=$as_save_IFS
6781
6782fi
6783fi
6784ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6785if test -n "$ac_ct_OTOOL"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6787$as_echo "$ac_ct_OTOOL" >&6; }
6788else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790$as_echo "no" >&6; }
6791fi
6792
6793 if test "x$ac_ct_OTOOL" = x; then
6794 OTOOL=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797yes:)
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800ac_tool_warned=yes ;;
6801esac
6802 OTOOL=$ac_ct_OTOOL
6803 fi
6804else
6805 OTOOL="$ac_cv_prog_OTOOL"
6806fi
6807
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6810set dummy ${ac_tool_prefix}otool64; ac_word=$2
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812$as_echo_n "checking for $ac_word... " >&6; }
6813if ${ac_cv_prog_OTOOL64+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815else
6816 if test -n "$OTOOL64"; then
6817 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831 done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836OTOOL64=$ac_cv_prog_OTOOL64
6837if test -n "$OTOOL64"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6839$as_echo "$OTOOL64" >&6; }
6840else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842$as_echo "no" >&6; }
6843fi
6844
6845
6846fi
6847if test -z "$ac_cv_prog_OTOOL64"; then
6848 ac_ct_OTOOL64=$OTOOL64
6849 # Extract the first word of "otool64", so it can be a program name with args.
6850set dummy otool64; ac_word=$2
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852$as_echo_n "checking for $ac_word... " >&6; }
6853if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855else
6856 if test -n "$ac_ct_OTOOL64"; then
6857 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_ac_ct_OTOOL64="otool64"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871 done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6877if test -n "$ac_ct_OTOOL64"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6879$as_echo "$ac_ct_OTOOL64" >&6; }
6880else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882$as_echo "no" >&6; }
6883fi
6884
6885 if test "x$ac_ct_OTOOL64" = x; then
6886 OTOOL64=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889yes:)
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892ac_tool_warned=yes ;;
6893esac
6894 OTOOL64=$ac_ct_OTOOL64
6895 fi
6896else
6897 OTOOL64="$ac_cv_prog_OTOOL64"
6898fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6927$as_echo_n "checking for -single_module linker flag... " >&6; }
6928if ${lt_cv_apple_cc_single_mod+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930else
6931 lt_cv_apple_cc_single_mod=no
6932 if test -z "${LT_MULTI_MODULE}"; then
6933 # By default we will add the -single_module flag. You can override
6934 # by either setting the environment variable LT_MULTI_MODULE
6935 # non-empty at configure time, or by adding -multi_module to the
6936 # link flags.
6937 rm -rf libconftest.dylib*
6938 echo "int foo(void){return 1;}" > conftest.c
6939 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6940-dynamiclib -Wl,-single_module conftest.c" >&5
6941 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6943 _lt_result=$?
6944 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6945 lt_cv_apple_cc_single_mod=yes
6946 else
6947 cat conftest.err >&5
6948 fi
6949 rm -rf libconftest.dylib*
6950 rm -f conftest.*
6951 fi
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6954$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6956$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6957if ${lt_cv_ld_exported_symbols_list+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959else
6960 lt_cv_ld_exported_symbols_list=no
6961 save_LDFLAGS=$LDFLAGS
6962 echo "_main" > conftest.sym
6963 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h. */
6966
6967int
6968main ()
6969{
6970
6971 ;
6972 return 0;
6973}
6974_ACEOF
6975if ac_fn_c_try_link "$LINENO"; then :
6976 lt_cv_ld_exported_symbols_list=yes
6977else
6978 lt_cv_ld_exported_symbols_list=no
6979fi
6980rm -f core conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
6982 LDFLAGS="$save_LDFLAGS"
6983
6984fi
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6986$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6987 case $host_os in
6988 rhapsody* | darwin1.[012])
6989 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6990 darwin1.*)
6991 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6992 darwin*) # darwin 5.x on
6993 # if running on 10.5 or later, the deployment target defaults
6994 # to the OS version, if on x86, and 10.4, the deployment
6995 # target defaults to 10.4. Don't you love it?
6996 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6997 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6999 10.[012]*)
7000 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7001 10.*)
7002 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7003 esac
7004 ;;
7005 esac
7006 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7007 _lt_dar_single_mod='$single_module'
7008 fi
7009 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7010 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7011 else
7012 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7013 fi
7014 if test "$DSYMUTIL" != ":"; then
7015 _lt_dsymutil='~$DSYMUTIL $lib || :'
7016 else
7017 _lt_dsymutil=
7018 fi
7019 ;;
7020 esac
7021
7022ac_ext=c
7023ac_cpp='$CPP $CPPFLAGS'
7024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7026ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7028$as_echo_n "checking how to run the C preprocessor... " >&6; }
7029# On Suns, sometimes $CPP names a directory.
7030if test -n "$CPP" && test -d "$CPP"; then
7031 CPP=
7032fi
7033if test -z "$CPP"; then
7034 if ${ac_cv_prog_CPP+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036else
7037 # Double quotes because CPP needs to be expanded
7038 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7039 do
7040 ac_preproc_ok=false
7041for ac_c_preproc_warn_flag in '' yes
7042do
7043 # Use a header file that comes with gcc, so configuring glibc
7044 # with a fresh cross-compiler works.
7045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7046 # <limits.h> exists even on freestanding compilers.
7047 # On the NeXT, cc -E runs the code through the compiler's parser,
7048 # not just through cpp. "Syntax error" is here to catch this case.
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h. */
7051#ifdef __STDC__
7052# include <limits.h>
7053#else
7054# include <assert.h>
7055#endif
7056 Syntax error
7057_ACEOF
7058if ac_fn_c_try_cpp "$LINENO"; then :
7059
7060else
7061 # Broken: fails on valid input.
7062continue
7063fi
7064rm -f conftest.err conftest.i conftest.$ac_ext
7065
7066 # OK, works on sane cases. Now check whether nonexistent headers
7067 # can be detected and how.
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h. */
7070#include <ac_nonexistent.h>
7071_ACEOF
7072if ac_fn_c_try_cpp "$LINENO"; then :
7073 # Broken: success on invalid input.
7074continue
7075else
7076 # Passes both tests.
7077ac_preproc_ok=:
7078break
7079fi
7080rm -f conftest.err conftest.i conftest.$ac_ext
7081
7082done
7083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7084rm -f conftest.i conftest.err conftest.$ac_ext
7085if $ac_preproc_ok; then :
7086 break
7087fi
7088
7089 done
7090 ac_cv_prog_CPP=$CPP
7091
7092fi
7093 CPP=$ac_cv_prog_CPP
7094else
7095 ac_cv_prog_CPP=$CPP
7096fi
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7098$as_echo "$CPP" >&6; }
7099ac_preproc_ok=false
7100for ac_c_preproc_warn_flag in '' yes
7101do
7102 # Use a header file that comes with gcc, so configuring glibc
7103 # with a fresh cross-compiler works.
7104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7105 # <limits.h> exists even on freestanding compilers.
7106 # On the NeXT, cc -E runs the code through the compiler's parser,
7107 # not just through cpp. "Syntax error" is here to catch this case.
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109/* end confdefs.h. */
7110#ifdef __STDC__
7111# include <limits.h>
7112#else
7113# include <assert.h>
7114#endif
7115 Syntax error
7116_ACEOF
7117if ac_fn_c_try_cpp "$LINENO"; then :
7118
7119else
7120 # Broken: fails on valid input.
7121continue
7122fi
7123rm -f conftest.err conftest.i conftest.$ac_ext
7124
7125 # OK, works on sane cases. Now check whether nonexistent headers
7126 # can be detected and how.
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h. */
7129#include <ac_nonexistent.h>
7130_ACEOF
7131if ac_fn_c_try_cpp "$LINENO"; then :
7132 # Broken: success on invalid input.
7133continue
7134else
7135 # Passes both tests.
7136ac_preproc_ok=:
7137break
7138fi
7139rm -f conftest.err conftest.i conftest.$ac_ext
7140
7141done
7142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7143rm -f conftest.i conftest.err conftest.$ac_ext
7144if $ac_preproc_ok; then :
7145
7146else
7147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7149as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7150See \`config.log' for more details" "$LINENO" 5; }
7151fi
7152
7153ac_ext=c
7154ac_cpp='$CPP $CPPFLAGS'
7155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157ac_compiler_gnu=$ac_cv_c_compiler_gnu
7158
7159
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7161$as_echo_n "checking for ANSI C header files... " >&6; }
7162if ${ac_cv_header_stdc+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164else
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h. */
7167#include <stdlib.h>
7168#include <stdarg.h>
7169#include <string.h>
7170#include <float.h>
7171
7172int
7173main ()
7174{
7175
7176 ;
7177 return 0;
7178}
7179_ACEOF
7180if ac_fn_c_try_compile "$LINENO"; then :
7181 ac_cv_header_stdc=yes
7182else
7183 ac_cv_header_stdc=no
7184fi
7185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186
7187if test $ac_cv_header_stdc = yes; then
7188 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190/* end confdefs.h. */
7191#include <string.h>
7192
7193_ACEOF
7194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7195 $EGREP "memchr" >/dev/null 2>&1; then :
7196
7197else
7198 ac_cv_header_stdc=no
7199fi
7200rm -f conftest*
7201
7202fi
7203
7204if test $ac_cv_header_stdc = yes; then
7205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h. */
7208#include <stdlib.h>
7209
7210_ACEOF
7211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 $EGREP "free" >/dev/null 2>&1; then :
7213
7214else
7215 ac_cv_header_stdc=no
7216fi
7217rm -f conftest*
7218
7219fi
7220
7221if test $ac_cv_header_stdc = yes; then
7222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7223 if test "$cross_compiling" = yes; then :
7224 :
7225else
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h. */
7228#include <ctype.h>
7229#include <stdlib.h>
7230#if ((' ' & 0x0FF) == 0x020)
7231# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7232# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7233#else
7234# define ISLOWER(c) \
7235 (('a' <= (c) && (c) <= 'i') \
7236 || ('j' <= (c) && (c) <= 'r') \
7237 || ('s' <= (c) && (c) <= 'z'))
7238# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7239#endif
7240
7241#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7242int
7243main ()
7244{
7245 int i;
7246 for (i = 0; i < 256; i++)
7247 if (XOR (islower (i), ISLOWER (i))
7248 || toupper (i) != TOUPPER (i))
7249 return 2;
7250 return 0;
7251}
7252_ACEOF
7253if ac_fn_c_try_run "$LINENO"; then :
7254
7255else
7256 ac_cv_header_stdc=no
7257fi
7258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7259 conftest.$ac_objext conftest.beam conftest.$ac_ext
7260fi
7261
7262fi
7263fi
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7265$as_echo "$ac_cv_header_stdc" >&6; }
7266if test $ac_cv_header_stdc = yes; then
7267
7268$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7269
7270fi
7271
7272# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7273for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7274 inttypes.h stdint.h unistd.h
7275do :
7276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7277ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7278"
7279if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7280 cat >>confdefs.h <<_ACEOF
7281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282_ACEOF
7283
7284fi
7285
7286done
7287
7288
7289for ac_header in dlfcn.h
7290do :
7291 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7292"
7293if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7294 cat >>confdefs.h <<_ACEOF
7295#define HAVE_DLFCN_H 1
7296_ACEOF
7297
7298fi
7299
7300done
7301
7302
7303
7304# Set options
7305
7306
7307
7308 enable_dlopen=no
7309
7310
7311
7312 # Check whether --enable-shared was given.
7313if test "${enable_shared+set}" = set; then :
7314 enableval=$enable_shared; p=${PACKAGE-default}
7315 case $enableval in
7316 yes) enable_shared=yes ;;
7317 no) enable_shared=no ;;
7318 *)
7319 enable_shared=no
7320 # Look at the argument we got. We use all the common list separators.
7321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7322 for pkg in $enableval; do
7323 IFS="$lt_save_ifs"
7324 if test "X$pkg" = "X$p"; then
7325 enable_shared=yes
7326 fi
7327 done
7328 IFS="$lt_save_ifs"
7329 ;;
7330 esac
7331else
7332 enable_shared=yes
7333fi
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343 # Check whether --enable-static was given.
7344if test "${enable_static+set}" = set; then :
7345 enableval=$enable_static; p=${PACKAGE-default}
7346 case $enableval in
7347 yes) enable_static=yes ;;
7348 no) enable_static=no ;;
7349 *)
7350 enable_static=no
7351 # Look at the argument we got. We use all the common list separators.
7352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7353 for pkg in $enableval; do
7354 IFS="$lt_save_ifs"
7355 if test "X$pkg" = "X$p"; then
7356 enable_static=yes
7357 fi
7358 done
7359 IFS="$lt_save_ifs"
7360 ;;
7361 esac
7362else
7363 enable_static=yes
7364fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375# Check whether --with-pic was given.
7376if test "${with_pic+set}" = set; then :
7377 withval=$with_pic; pic_mode="$withval"
7378else
7379 pic_mode=default
7380fi
7381
7382
7383test -z "$pic_mode" && pic_mode=default
7384
7385
7386
7387
7388
7389
7390
7391 # Check whether --enable-fast-install was given.
7392if test "${enable_fast_install+set}" = set; then :
7393 enableval=$enable_fast_install; p=${PACKAGE-default}
7394 case $enableval in
7395 yes) enable_fast_install=yes ;;
7396 no) enable_fast_install=no ;;
7397 *)
7398 enable_fast_install=no
7399 # Look at the argument we got. We use all the common list separators.
7400 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7401 for pkg in $enableval; do
7402 IFS="$lt_save_ifs"
7403 if test "X$pkg" = "X$p"; then
7404 enable_fast_install=yes
7405 fi
7406 done
7407 IFS="$lt_save_ifs"
7408 ;;
7409 esac
7410else
7411 enable_fast_install=yes
7412fi
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424# This can be used to rebuild libtool when needed
7425LIBTOOL_DEPS="$ltmain"
7426
7427# Always use our own libtool.
7428LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454test -z "$LN_S" && LN_S="ln -s"
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469if test -n "${ZSH_VERSION+set}" ; then
7470 setopt NO_GLOB_SUBST
7471fi
7472
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7474$as_echo_n "checking for objdir... " >&6; }
7475if ${lt_cv_objdir+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477else
7478 rm -f .libs 2>/dev/null
7479mkdir .libs 2>/dev/null
7480if test -d .libs; then
7481 lt_cv_objdir=.libs
7482else
7483 # MS-DOS does not allow filenames that begin with a dot.
7484 lt_cv_objdir=_libs
7485fi
7486rmdir .libs 2>/dev/null
7487fi
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7489$as_echo "$lt_cv_objdir" >&6; }
7490objdir=$lt_cv_objdir
7491
7492
7493
7494
7495
7496cat >>confdefs.h <<_ACEOF
7497#define LT_OBJDIR "$lt_cv_objdir/"
7498_ACEOF
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516case $host_os in
7517aix3*)
7518 # AIX sometimes has problems with the GCC collect2 program. For some
7519 # reason, if we set the COLLECT_NAMES environment variable, the problems
7520 # vanish in a puff of smoke.
7521 if test "X${COLLECT_NAMES+set}" != Xset; then
7522 COLLECT_NAMES=
7523 export COLLECT_NAMES
7524 fi
7525 ;;
7526esac
7527
7528# Sed substitution that helps us do robust quoting. It backslashifies
7529# metacharacters that are still active within double-quoted strings.
7530sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7531
7532# Same as above, but do not quote variable references.
7533double_quote_subst='s/\(["`\\]\)/\\\1/g'
7534
7535# Sed substitution to delay expansion of an escaped shell variable in a
7536# double_quote_subst'ed string.
7537delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7538
7539# Sed substitution to delay expansion of an escaped single quote.
7540delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7541
7542# Sed substitution to avoid accidental globbing in evaled expressions
7543no_glob_subst='s/\*/\\\*/g'
7544
7545# Global variables:
7546ofile=libtool
7547can_build_shared=yes
7548
7549# All known linkers require a `.a' archive for static linking (except MSVC,
7550# which needs '.lib').
7551libext=a
7552
7553with_gnu_ld="$lt_cv_prog_gnu_ld"
7554
7555old_CC="$CC"
7556old_CFLAGS="$CFLAGS"
7557
7558# Set sane defaults for various variables
7559test -z "$CC" && CC=cc
7560test -z "$LTCC" && LTCC=$CC
7561test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7562test -z "$LD" && LD=ld
7563test -z "$ac_objext" && ac_objext=o
7564
7565for cc_temp in $compiler""; do
7566 case $cc_temp in
7567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7569 \-*) ;;
7570 *) break;;
7571 esac
7572done
7573cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7574
7575
7576# Only perform the check for file, if the check method requires it
7577test -z "$MAGIC_CMD" && MAGIC_CMD=file
7578case $deplibs_check_method in
7579file_magic*)
7580 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7582$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7583if ${lt_cv_path_MAGIC_CMD+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585else
7586 case $MAGIC_CMD in
7587[\\/*] | ?:[\\/]*)
7588 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7589 ;;
7590*)
7591 lt_save_MAGIC_CMD="$MAGIC_CMD"
7592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7593 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7594 for ac_dir in $ac_dummy; do
7595 IFS="$lt_save_ifs"
7596 test -z "$ac_dir" && ac_dir=.
7597 if test -f $ac_dir/${ac_tool_prefix}file; then
7598 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7599 if test -n "$file_magic_test_file"; then
7600 case $deplibs_check_method in
7601 "file_magic "*)
7602 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7604 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7605 $EGREP "$file_magic_regex" > /dev/null; then
7606 :
7607 else
7608 cat <<_LT_EOF 1>&2
7609
7610*** Warning: the command libtool uses to detect shared libraries,
7611*** $file_magic_cmd, produces output that libtool cannot recognize.
7612*** The result is that libtool may fail to recognize shared libraries
7613*** as such. This will affect the creation of libtool libraries that
7614*** depend on shared libraries, but programs linked with such libtool
7615*** libraries will work regardless of this problem. Nevertheless, you
7616*** may want to report the problem to your system manager and/or to
7617*** bug-libtool@gnu.org
7618
7619_LT_EOF
7620 fi ;;
7621 esac
7622 fi
7623 break
7624 fi
7625 done
7626 IFS="$lt_save_ifs"
7627 MAGIC_CMD="$lt_save_MAGIC_CMD"
7628 ;;
7629esac
7630fi
7631
7632MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7633if test -n "$MAGIC_CMD"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7635$as_echo "$MAGIC_CMD" >&6; }
7636else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638$as_echo "no" >&6; }
7639fi
7640
7641
7642
7643
7644
7645if test -z "$lt_cv_path_MAGIC_CMD"; then
7646 if test -n "$ac_tool_prefix"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7648$as_echo_n "checking for file... " >&6; }
7649if ${lt_cv_path_MAGIC_CMD+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651else
7652 case $MAGIC_CMD in
7653[\\/*] | ?:[\\/]*)
7654 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7655 ;;
7656*)
7657 lt_save_MAGIC_CMD="$MAGIC_CMD"
7658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7659 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7660 for ac_dir in $ac_dummy; do
7661 IFS="$lt_save_ifs"
7662 test -z "$ac_dir" && ac_dir=.
7663 if test -f $ac_dir/file; then
7664 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7665 if test -n "$file_magic_test_file"; then
7666 case $deplibs_check_method in
7667 "file_magic "*)
7668 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7670 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7671 $EGREP "$file_magic_regex" > /dev/null; then
7672 :
7673 else
7674 cat <<_LT_EOF 1>&2
7675
7676*** Warning: the command libtool uses to detect shared libraries,
7677*** $file_magic_cmd, produces output that libtool cannot recognize.
7678*** The result is that libtool may fail to recognize shared libraries
7679*** as such. This will affect the creation of libtool libraries that
7680*** depend on shared libraries, but programs linked with such libtool
7681*** libraries will work regardless of this problem. Nevertheless, you
7682*** may want to report the problem to your system manager and/or to
7683*** bug-libtool@gnu.org
7684
7685_LT_EOF
7686 fi ;;
7687 esac
7688 fi
7689 break
7690 fi
7691 done
7692 IFS="$lt_save_ifs"
7693 MAGIC_CMD="$lt_save_MAGIC_CMD"
7694 ;;
7695esac
7696fi
7697
7698MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7699if test -n "$MAGIC_CMD"; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7701$as_echo "$MAGIC_CMD" >&6; }
7702else
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
7705fi
7706
7707
7708 else
7709 MAGIC_CMD=:
7710 fi
7711fi
7712
7713 fi
7714 ;;
7715esac
7716
7717# Use C for the default configuration in the libtool script
7718
7719lt_save_CC="$CC"
7720ac_ext=c
7721ac_cpp='$CPP $CPPFLAGS'
7722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7724ac_compiler_gnu=$ac_cv_c_compiler_gnu
7725
7726
7727# Source file extension for C test sources.
7728ac_ext=c
7729
7730# Object file extension for compiled C test sources.
7731objext=o
7732objext=$objext
7733
7734# Code to be used in simple compile tests
7735lt_simple_compile_test_code="int some_variable = 0;"
7736
7737# Code to be used in simple link tests
7738lt_simple_link_test_code='int main(){return(0);}'
7739
7740
7741
7742
7743
7744
7745
7746# If no C compiler was specified, use CC.
7747LTCC=${LTCC-"$CC"}
7748
7749# If no C compiler flags were specified, use CFLAGS.
7750LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7751
7752# Allow CC to be a program name with arguments.
7753compiler=$CC
7754
7755# Save the default compiler, since it gets overwritten when the other
7756# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7757compiler_DEFAULT=$CC
7758
7759# save warnings/boilerplate of simple test code
7760ac_outfile=conftest.$ac_objext
7761echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7762eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7763_lt_compiler_boilerplate=`cat conftest.err`
7764$RM conftest*
7765
7766ac_outfile=conftest.$ac_objext
7767echo "$lt_simple_link_test_code" >conftest.$ac_ext
7768eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7769_lt_linker_boilerplate=`cat conftest.err`
7770$RM -r conftest*
7771
7772
7773if test -n "$compiler"; then
7774
7775lt_prog_compiler_no_builtin_flag=
7776
7777if test "$GCC" = yes; then
7778 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7779
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7781$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7782if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784else
7785 lt_cv_prog_compiler_rtti_exceptions=no
7786 ac_outfile=conftest.$ac_objext
7787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7788 lt_compiler_flag="-fno-rtti -fno-exceptions"
7789 # Insert the option either (1) after the last *FLAGS variable, or
7790 # (2) before a word containing "conftest.", or (3) at the end.
7791 # Note that $ac_compile itself does not contain backslashes and begins
7792 # with a dollar sign (not a hyphen), so the echo should work correctly.
7793 # The option is referenced via a variable to avoid confusing sed.
7794 lt_compile=`echo "$ac_compile" | $SED \
7795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7797 -e 's:$: $lt_compiler_flag:'`
7798 (eval echo "\"\$as_me:7798: $lt_compile\"" >&5)
7799 (eval "$lt_compile" 2>conftest.err)
7800 ac_status=$?
7801 cat conftest.err >&5
7802 echo "$as_me:7802: \$? = $ac_status" >&5
7803 if (exit $ac_status) && test -s "$ac_outfile"; then
7804 # The compiler can only warn and ignore the option if not recognized
7805 # So say no if there are warnings other than the usual output.
7806 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7809 lt_cv_prog_compiler_rtti_exceptions=yes
7810 fi
7811 fi
7812 $RM conftest*
7813
7814fi
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7816$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7817
7818if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7819 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7820else
7821 :
7822fi
7823
7824fi
7825
7826
7827
7828
7829
7830
7831 lt_prog_compiler_wl=
7832lt_prog_compiler_pic=
7833lt_prog_compiler_static=
7834
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7836$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7837
7838 if test "$GCC" = yes; then
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_static='-static'
7841
7842 case $host_os in
7843 aix*)
7844 # All AIX code is PIC.
7845 if test "$host_cpu" = ia64; then
7846 # AIX 5 now supports IA64 processor
7847 lt_prog_compiler_static='-Bstatic'
7848 fi
7849 ;;
7850
7851 amigaos*)
7852 case $host_cpu in
7853 powerpc)
7854 # see comment about AmigaOS4 .so support
7855 lt_prog_compiler_pic='-fPIC'
7856 ;;
7857 m68k)
7858 # FIXME: we need at least 68020 code to build shared libraries, but
7859 # adding the `-m68020' flag to GCC prevents building anything better,
7860 # like `-m68040'.
7861 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7862 ;;
7863 esac
7864 ;;
7865
7866 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7867 # PIC is the default for these OSes.
7868 ;;
7869
7870 mingw* | cygwin* | pw32* | os2* | cegcc*)
7871 # This hack is so that the source file can tell whether it is being
7872 # built for inclusion in a dll (and should export symbols for example).
7873 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7874 # (--disable-auto-import) libraries
7875 lt_prog_compiler_pic='-DDLL_EXPORT'
7876 ;;
7877
7878 darwin* | rhapsody*)
7879 # PIC is the default on this platform
7880 # Common symbols not allowed in MH_DYLIB files
7881 lt_prog_compiler_pic='-fno-common'
7882 ;;
7883
7884 hpux*)
7885 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7886 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7887 # sets the default TLS model and affects inlining.
7888 case $host_cpu in
7889 hppa*64*)
7890 # +Z the default
7891 ;;
7892 *)
7893 lt_prog_compiler_pic='-fPIC'
7894 ;;
7895 esac
7896 ;;
7897
7898 interix[3-9]*)
7899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7900 # Instead, we relocate shared libraries at runtime.
7901 ;;
7902
7903 msdosdjgpp*)
7904 # Just because we use GCC doesn't mean we suddenly get shared libraries
7905 # on systems that don't support them.
7906 lt_prog_compiler_can_build_shared=no
7907 enable_shared=no
7908 ;;
7909
7910 *nto* | *qnx*)
7911 # QNX uses GNU C++, but need to define -shared option too, otherwise
7912 # it will coredump.
7913 lt_prog_compiler_pic='-fPIC -shared'
7914 ;;
7915
7916 sysv4*MP*)
7917 if test -d /usr/nec; then
7918 lt_prog_compiler_pic=-Kconform_pic
7919 fi
7920 ;;
7921
7922 *)
7923 lt_prog_compiler_pic='-fPIC'
7924 ;;
7925 esac
7926 else
7927 # PORTME Check for flag to pass linker flags through the system compiler.
7928 case $host_os in
7929 aix*)
7930 lt_prog_compiler_wl='-Wl,'
7931 if test "$host_cpu" = ia64; then
7932 # AIX 5 now supports IA64 processor
7933 lt_prog_compiler_static='-Bstatic'
7934 else
7935 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7936 fi
7937 ;;
7938
7939 mingw* | cygwin* | pw32* | os2* | cegcc*)
7940 # This hack is so that the source file can tell whether it is being
7941 # built for inclusion in a dll (and should export symbols for example).
7942 lt_prog_compiler_pic='-DDLL_EXPORT'
7943 ;;
7944
7945 hpux9* | hpux10* | hpux11*)
7946 lt_prog_compiler_wl='-Wl,'
7947 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7948 # not for PA HP-UX.
7949 case $host_cpu in
7950 hppa*64*|ia64*)
7951 # +Z the default
7952 ;;
7953 *)
7954 lt_prog_compiler_pic='+Z'
7955 ;;
7956 esac
7957 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7958 lt_prog_compiler_static='${wl}-a ${wl}archive'
7959 ;;
7960
7961 irix5* | irix6* | nonstopux*)
7962 lt_prog_compiler_wl='-Wl,'
7963 # PIC (with -KPIC) is the default.
7964 lt_prog_compiler_static='-non_shared'
7965 ;;
7966
7967 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7968 case $cc_basename in
7969 # old Intel for x86_64 which still supported -KPIC.
7970 ecc*)
7971 lt_prog_compiler_wl='-Wl,'
7972 lt_prog_compiler_pic='-KPIC'
7973 lt_prog_compiler_static='-static'
7974 ;;
7975 # icc used to be incompatible with GCC.
7976 # ICC 10 doesn't accept -KPIC any more.
7977 icc* | ifort*)
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_pic='-fPIC'
7980 lt_prog_compiler_static='-static'
7981 ;;
7982 # Lahey Fortran 8.1.
7983 lf95*)
7984 lt_prog_compiler_wl='-Wl,'
7985 lt_prog_compiler_pic='--shared'
7986 lt_prog_compiler_static='--static'
7987 ;;
7988 pgcc* | pgf77* | pgf90* | pgf95*)
7989 # Portland Group compilers (*not* the Pentium gcc compiler,
7990 # which looks to be a dead project)
7991 lt_prog_compiler_wl='-Wl,'
7992 lt_prog_compiler_pic='-fpic'
7993 lt_prog_compiler_static='-Bstatic'
7994 ;;
7995 ccc*)
7996 lt_prog_compiler_wl='-Wl,'
7997 # All Alpha code is PIC.
7998 lt_prog_compiler_static='-non_shared'
7999 ;;
8000 xl*)
8001 # IBM XL C 8.0/Fortran 10.1 on PPC
8002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_pic='-qpic'
8004 lt_prog_compiler_static='-qstaticlink'
8005 ;;
8006 *)
8007 case `$CC -V 2>&1 | sed 5q` in
8008 *Sun\ C*)
8009 # Sun C 5.9
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 lt_prog_compiler_wl='-Wl,'
8013 ;;
8014 *Sun\ F*)
8015 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8016 lt_prog_compiler_pic='-KPIC'
8017 lt_prog_compiler_static='-Bstatic'
8018 lt_prog_compiler_wl=''
8019 ;;
8020 esac
8021 ;;
8022 esac
8023 ;;
8024
8025 newsos6)
8026 lt_prog_compiler_pic='-KPIC'
8027 lt_prog_compiler_static='-Bstatic'
8028 ;;
8029
8030 *nto* | *qnx*)
8031 # QNX uses GNU C++, but need to define -shared option too, otherwise
8032 # it will coredump.
8033 lt_prog_compiler_pic='-fPIC -shared'
8034 ;;
8035
8036 osf3* | osf4* | osf5*)
8037 lt_prog_compiler_wl='-Wl,'
8038 # All OSF/1 code is PIC.
8039 lt_prog_compiler_static='-non_shared'
8040 ;;
8041
8042 rdos*)
8043 lt_prog_compiler_static='-non_shared'
8044 ;;
8045
8046 solaris*)
8047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
8049 case $cc_basename in
8050 f77* | f90* | f95*)
8051 lt_prog_compiler_wl='-Qoption ld ';;
8052 *)
8053 lt_prog_compiler_wl='-Wl,';;
8054 esac
8055 ;;
8056
8057 sunos4*)
8058 lt_prog_compiler_wl='-Qoption ld '
8059 lt_prog_compiler_pic='-PIC'
8060 lt_prog_compiler_static='-Bstatic'
8061 ;;
8062
8063 sysv4 | sysv4.2uw2* | sysv4.3*)
8064 lt_prog_compiler_wl='-Wl,'
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 ;;
8068
8069 sysv4*MP*)
8070 if test -d /usr/nec ;then
8071 lt_prog_compiler_pic='-Kconform_pic'
8072 lt_prog_compiler_static='-Bstatic'
8073 fi
8074 ;;
8075
8076 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8077 lt_prog_compiler_wl='-Wl,'
8078 lt_prog_compiler_pic='-KPIC'
8079 lt_prog_compiler_static='-Bstatic'
8080 ;;
8081
8082 unicos*)
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_can_build_shared=no
8085 ;;
8086
8087 uts4*)
8088 lt_prog_compiler_pic='-pic'
8089 lt_prog_compiler_static='-Bstatic'
8090 ;;
8091
8092 *)
8093 lt_prog_compiler_can_build_shared=no
8094 ;;
8095 esac
8096 fi
8097
8098case $host_os in
8099 # For platforms which do not support PIC, -DPIC is meaningless:
8100 *djgpp*)
8101 lt_prog_compiler_pic=
8102 ;;
8103 *)
8104 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8105 ;;
8106esac
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8108$as_echo "$lt_prog_compiler_pic" >&6; }
8109
8110
8111
8112
8113
8114
8115#
8116# Check to make sure the PIC flag actually works.
8117#
8118if test -n "$lt_prog_compiler_pic"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8120$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8121if ${lt_cv_prog_compiler_pic_works+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123else
8124 lt_cv_prog_compiler_pic_works=no
8125 ac_outfile=conftest.$ac_objext
8126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8127 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8128 # Insert the option either (1) after the last *FLAGS variable, or
8129 # (2) before a word containing "conftest.", or (3) at the end.
8130 # Note that $ac_compile itself does not contain backslashes and begins
8131 # with a dollar sign (not a hyphen), so the echo should work correctly.
8132 # The option is referenced via a variable to avoid confusing sed.
8133 lt_compile=`echo "$ac_compile" | $SED \
8134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8136 -e 's:$: $lt_compiler_flag:'`
8137 (eval echo "\"\$as_me:8137: $lt_compile\"" >&5)
8138 (eval "$lt_compile" 2>conftest.err)
8139 ac_status=$?
8140 cat conftest.err >&5
8141 echo "$as_me:8141: \$? = $ac_status" >&5
8142 if (exit $ac_status) && test -s "$ac_outfile"; then
8143 # The compiler can only warn and ignore the option if not recognized
8144 # So say no if there are warnings other than the usual output.
8145 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8147 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8148 lt_cv_prog_compiler_pic_works=yes
8149 fi
8150 fi
8151 $RM conftest*
8152
8153fi
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8155$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8156
8157if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8158 case $lt_prog_compiler_pic in
8159 "" | " "*) ;;
8160 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8161 esac
8162else
8163 lt_prog_compiler_pic=
8164 lt_prog_compiler_can_build_shared=no
8165fi
8166
8167fi
8168
8169
8170
8171
8172
8173
8174#
8175# Check to make sure the static flag actually works.
8176#
8177wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8179$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8180if ${lt_cv_prog_compiler_static_works+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182else
8183 lt_cv_prog_compiler_static_works=no
8184 save_LDFLAGS="$LDFLAGS"
8185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8188 # The linker can only warn and ignore the option if not recognized
8189 # So say no if there are warnings
8190 if test -s conftest.err; then
8191 # Append any errors to the config.log.
8192 cat conftest.err 1>&5
8193 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8195 if diff conftest.exp conftest.er2 >/dev/null; then
8196 lt_cv_prog_compiler_static_works=yes
8197 fi
8198 else
8199 lt_cv_prog_compiler_static_works=yes
8200 fi
8201 fi
8202 $RM -r conftest*
8203 LDFLAGS="$save_LDFLAGS"
8204
8205fi
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8207$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8208
8209if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8210 :
8211else
8212 lt_prog_compiler_static=
8213fi
8214
8215
8216
8217
8218
8219
8220
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8222$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8223if ${lt_cv_prog_compiler_c_o+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225else
8226 lt_cv_prog_compiler_c_o=no
8227 $RM -r conftest 2>/dev/null
8228 mkdir conftest
8229 cd conftest
8230 mkdir out
8231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232
8233 lt_compiler_flag="-o out/conftest2.$ac_objext"
8234 # Insert the option either (1) after the last *FLAGS variable, or
8235 # (2) before a word containing "conftest.", or (3) at the end.
8236 # Note that $ac_compile itself does not contain backslashes and begins
8237 # with a dollar sign (not a hyphen), so the echo should work correctly.
8238 lt_compile=`echo "$ac_compile" | $SED \
8239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 -e 's:$: $lt_compiler_flag:'`
8242 (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
8243 (eval "$lt_compile" 2>out/conftest.err)
8244 ac_status=$?
8245 cat out/conftest.err >&5
8246 echo "$as_me:8246: \$? = $ac_status" >&5
8247 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8248 then
8249 # The compiler can only warn and ignore the option if not recognized
8250 # So say no if there are warnings
8251 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8252 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8253 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8254 lt_cv_prog_compiler_c_o=yes
8255 fi
8256 fi
8257 chmod u+w . 2>&5
8258 $RM conftest*
8259 # SGI C++ compiler will create directory out/ii_files/ for
8260 # template instantiation
8261 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8262 $RM out/* && rmdir out
8263 cd ..
8264 $RM -r conftest
8265 $RM conftest*
8266
8267fi
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8269$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8270
8271
8272
8273
8274
8275
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8277$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8278if ${lt_cv_prog_compiler_c_o+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280else
8281 lt_cv_prog_compiler_c_o=no
8282 $RM -r conftest 2>/dev/null
8283 mkdir conftest
8284 cd conftest
8285 mkdir out
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287
8288 lt_compiler_flag="-o out/conftest2.$ac_objext"
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
8297 (eval echo "\"\$as_me:8297: $lt_compile\"" >&5)
8298 (eval "$lt_compile" 2>out/conftest.err)
8299 ac_status=$?
8300 cat out/conftest.err >&5
8301 echo "$as_me:8301: \$? = $ac_status" >&5
8302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8303 then
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings
8306 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8309 lt_cv_prog_compiler_c_o=yes
8310 fi
8311 fi
8312 chmod u+w . 2>&5
8313 $RM conftest*
8314 # SGI C++ compiler will create directory out/ii_files/ for
8315 # template instantiation
8316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8317 $RM out/* && rmdir out
8318 cd ..
8319 $RM -r conftest
8320 $RM conftest*
8321
8322fi
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8324$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8325
8326
8327
8328
8329hard_links="nottested"
8330if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8331 # do not overwrite the value of need_locks provided by the user
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8333$as_echo_n "checking if we can lock with hard links... " >&6; }
8334 hard_links=yes
8335 $RM conftest*
8336 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8337 touch conftest.a
8338 ln conftest.a conftest.b 2>&5 || hard_links=no
8339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8341$as_echo "$hard_links" >&6; }
8342 if test "$hard_links" = no; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8344$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8345 need_locks=warn
8346 fi
8347else
8348 need_locks=no
8349fi
8350
8351
8352
8353
8354
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8357$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8358
8359 runpath_var=
8360 allow_undefined_flag=
8361 always_export_symbols=no
8362 archive_cmds=
8363 archive_expsym_cmds=
8364 compiler_needs_object=no
8365 enable_shared_with_static_runtimes=no
8366 export_dynamic_flag_spec=
8367 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8368 hardcode_automatic=no
8369 hardcode_direct=no
8370 hardcode_direct_absolute=no
8371 hardcode_libdir_flag_spec=
8372 hardcode_libdir_flag_spec_ld=
8373 hardcode_libdir_separator=
8374 hardcode_minus_L=no
8375 hardcode_shlibpath_var=unsupported
8376 inherit_rpath=no
8377 link_all_deplibs=unknown
8378 module_cmds=
8379 module_expsym_cmds=
8380 old_archive_from_new_cmds=
8381 old_archive_from_expsyms_cmds=
8382 thread_safe_flag_spec=
8383 whole_archive_flag_spec=
8384 # include_expsyms should be a list of space-separated symbols to be *always*
8385 # included in the symbol list
8386 include_expsyms=
8387 # exclude_expsyms can be an extended regexp of symbols to exclude
8388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8390 # as well as any symbol that contains `d'.
8391 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8393 # platforms (ab)use it in PIC code, but their linkers get confused if
8394 # the symbol is explicitly referenced. Since portable code cannot
8395 # rely on this symbol name, it's probably fine to never include it in
8396 # preloaded symbol tables.
8397 # Exclude shared library initialization/finalization symbols.
8398 extract_expsyms_cmds=
8399
8400 case $host_os in
8401 cygwin* | mingw* | pw32* | cegcc*)
8402 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8403 # When not using gcc, we currently assume that we are using
8404 # Microsoft Visual C++.
8405 if test "$GCC" != yes; then
8406 with_gnu_ld=no
8407 fi
8408 ;;
8409 interix*)
8410 # we just hope/assume this is gcc and not c89 (= MSVC++)
8411 with_gnu_ld=yes
8412 ;;
8413 openbsd*)
8414 with_gnu_ld=no
8415 ;;
8416 linux* | k*bsd*-gnu)
8417 link_all_deplibs=no
8418 ;;
8419 esac
8420
8421 ld_shlibs=yes
8422 if test "$with_gnu_ld" = yes; then
8423 # If archive_cmds runs LD, not CC, wlarc should be empty
8424 wlarc='${wl}'
8425
8426 # Set some defaults for GNU ld with shared library support. These
8427 # are reset later if shared libraries are not supported. Putting them
8428 # here allows them to be overridden if necessary.
8429 runpath_var=LD_RUN_PATH
8430 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8431 export_dynamic_flag_spec='${wl}--export-dynamic'
8432 # ancient GNU ld didn't support --whole-archive et. al.
8433 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8434 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8435 else
8436 whole_archive_flag_spec=
8437 fi
8438 supports_anon_versioning=no
8439 case `$LD -v 2>&1` in
8440 *GNU\ gold*) supports_anon_versioning=yes ;;
8441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8444 *\ 2.11.*) ;; # other 2.11 versions
8445 *) supports_anon_versioning=yes ;;
8446 esac
8447
8448 # See if GNU ld supports shared libraries.
8449 case $host_os in
8450 aix[3-9]*)
8451 # On AIX/PPC, the GNU linker is very broken
8452 if test "$host_cpu" != ia64; then
8453 ld_shlibs=no
8454 cat <<_LT_EOF 1>&2
8455
8456*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8457*** to be unable to reliably create shared libraries on AIX.
8458*** Therefore, libtool is disabling shared libraries support. If you
8459*** really care for shared libraries, you may want to modify your PATH
8460*** so that a non-GNU linker is found, and then restart.
8461
8462_LT_EOF
8463 fi
8464 ;;
8465
8466 amigaos*)
8467 case $host_cpu in
8468 powerpc)
8469 # see comment about AmigaOS4 .so support
8470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8471 archive_expsym_cmds=''
8472 ;;
8473 m68k)
8474 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)'
8475 hardcode_libdir_flag_spec='-L$libdir'
8476 hardcode_minus_L=yes
8477 ;;
8478 esac
8479 ;;
8480
8481 beos*)
8482 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8483 allow_undefined_flag=unsupported
8484 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8485 # support --undefined. This deserves some investigation. FIXME
8486 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8487 else
8488 ld_shlibs=no
8489 fi
8490 ;;
8491
8492 cygwin* | mingw* | pw32* | cegcc*)
8493 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8494 # as there is no search path for DLLs.
8495 hardcode_libdir_flag_spec='-L$libdir'
8496 allow_undefined_flag=unsupported
8497 always_export_symbols=no
8498 enable_shared_with_static_runtimes=yes
8499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8500
8501 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8503 # If the export-symbols file already is a .def file (1st line
8504 # is EXPORTS), use it as is; otherwise, prepend...
8505 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8506 cp $export_symbols $output_objdir/$soname.def;
8507 else
8508 echo EXPORTS > $output_objdir/$soname.def;
8509 cat $export_symbols >> $output_objdir/$soname.def;
8510 fi~
8511 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8512 else
8513 ld_shlibs=no
8514 fi
8515 ;;
8516
8517 interix[3-9]*)
8518 hardcode_direct=no
8519 hardcode_shlibpath_var=no
8520 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8521 export_dynamic_flag_spec='${wl}-E'
8522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8523 # Instead, shared libraries are loaded at an image base (0x10000000 by
8524 # default) and relocated if they conflict, which is a slow very memory
8525 # consuming and fragmenting process. To avoid this, we pick a random,
8526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8528 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8529 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'
8530 ;;
8531
8532 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8533 tmp_diet=no
8534 if test "$host_os" = linux-dietlibc; then
8535 case $cc_basename in
8536 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8537 esac
8538 fi
8539 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8540 && test "$tmp_diet" = no
8541 then
8542 tmp_addflag=
8543 tmp_sharedflag='-shared'
8544 case $cc_basename,$host_cpu in
8545 pgcc*) # Portland Group C compiler
8546 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8547 tmp_addflag=' $pic_flag'
8548 ;;
8549 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8550 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8551 tmp_addflag=' $pic_flag -Mnomain' ;;
8552 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8553 tmp_addflag=' -i_dynamic' ;;
8554 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8555 tmp_addflag=' -i_dynamic -nofor_main' ;;
8556 ifc* | ifort*) # Intel Fortran compiler
8557 tmp_addflag=' -nofor_main' ;;
8558 lf95*) # Lahey Fortran 8.1
8559 whole_archive_flag_spec=
8560 tmp_sharedflag='--shared' ;;
8561 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8562 tmp_sharedflag='-qmkshrobj'
8563 tmp_addflag= ;;
8564 esac
8565 case `$CC -V 2>&1 | sed 5q` in
8566 *Sun\ C*) # Sun C 5.9
8567 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8568 compiler_needs_object=yes
8569 tmp_sharedflag='-G' ;;
8570 *Sun\ F*) # Sun Fortran 8.3
8571 tmp_sharedflag='-G' ;;
8572 esac
8573 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574
8575 if test "x$supports_anon_versioning" = xyes; then
8576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8578 echo "local: *; };" >> $output_objdir/$libname.ver~
8579 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8580 fi
8581
8582 case $cc_basename in
8583 xlf*)
8584 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8585 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8586 hardcode_libdir_flag_spec=
8587 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8588 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8589 if test "x$supports_anon_versioning" = xyes; then
8590 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8592 echo "local: *; };" >> $output_objdir/$libname.ver~
8593 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8594 fi
8595 ;;
8596 esac
8597 else
8598 ld_shlibs=no
8599 fi
8600 ;;
8601
8602 netbsd* | netbsdelf*-gnu)
8603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8604 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8605 wlarc=
8606 else
8607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8609 fi
8610 ;;
8611
8612 solaris*)
8613 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8614 ld_shlibs=no
8615 cat <<_LT_EOF 1>&2
8616
8617*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8618*** create shared libraries on Solaris systems. Therefore, libtool
8619*** is disabling shared libraries support. We urge you to upgrade GNU
8620*** binutils to release 2.9.1 or newer. Another option is to modify
8621*** your PATH or compiler configuration so that the native linker is
8622*** used, and then restart.
8623
8624_LT_EOF
8625 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8628 else
8629 ld_shlibs=no
8630 fi
8631 ;;
8632
8633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8634 case `$LD -v 2>&1` in
8635 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8636 ld_shlibs=no
8637 cat <<_LT_EOF 1>&2
8638
8639*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8640*** reliably create shared libraries on SCO systems. Therefore, libtool
8641*** is disabling shared libraries support. We urge you to upgrade GNU
8642*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8643*** your PATH or compiler configuration so that the native linker is
8644*** used, and then restart.
8645
8646_LT_EOF
8647 ;;
8648 *)
8649 # For security reasons, it is highly recommended that you always
8650 # use absolute paths for naming shared libraries, and exclude the
8651 # DT_RUNPATH tag from executables and libraries. But doing so
8652 # requires that you compile everything twice, which is a pain.
8653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8657 else
8658 ld_shlibs=no
8659 fi
8660 ;;
8661 esac
8662 ;;
8663
8664 sunos4*)
8665 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8666 wlarc=
8667 hardcode_direct=yes
8668 hardcode_shlibpath_var=no
8669 ;;
8670
8671 *)
8672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8675 else
8676 ld_shlibs=no
8677 fi
8678 ;;
8679 esac
8680
8681 if test "$ld_shlibs" = no; then
8682 runpath_var=
8683 hardcode_libdir_flag_spec=
8684 export_dynamic_flag_spec=
8685 whole_archive_flag_spec=
8686 fi
8687 else
8688 # PORTME fill in a description of your system's linker (not GNU ld)
8689 case $host_os in
8690 aix3*)
8691 allow_undefined_flag=unsupported
8692 always_export_symbols=yes
8693 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'
8694 # Note: this linker hardcodes the directories in LIBPATH if there
8695 # are no directories specified by -L.
8696 hardcode_minus_L=yes
8697 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8698 # Neither direct hardcoding nor static linking is supported with a
8699 # broken collect2.
8700 hardcode_direct=unsupported
8701 fi
8702 ;;
8703
8704 aix[4-9]*)
8705 if test "$host_cpu" = ia64; then
8706 # On IA64, the linker does run time linking by default, so we don't
8707 # have to do anything special.
8708 aix_use_runtimelinking=no
8709 exp_sym_flag='-Bexport'
8710 no_entry_flag=""
8711 else
8712 # If we're using GNU nm, then we don't want the "-C" option.
8713 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8714 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8715 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8716 else
8717 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8718 fi
8719 aix_use_runtimelinking=no
8720
8721 # Test if we are trying to use run time linking or normal
8722 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8723 # need to do runtime linking.
8724 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8725 for ld_flag in $LDFLAGS; do
8726 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8727 aix_use_runtimelinking=yes
8728 break
8729 fi
8730 done
8731 ;;
8732 esac
8733
8734 exp_sym_flag='-bexport'
8735 no_entry_flag='-bnoentry'
8736 fi
8737
8738 # When large executables or shared objects are built, AIX ld can
8739 # have problems creating the table of contents. If linking a library
8740 # or program results in "error TOC overflow" add -mminimal-toc to
8741 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8742 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8743
8744 archive_cmds=''
8745 hardcode_direct=yes
8746 hardcode_direct_absolute=yes
8747 hardcode_libdir_separator=':'
8748 link_all_deplibs=yes
8749 file_list_spec='${wl}-f,'
8750
8751 if test "$GCC" = yes; then
8752 case $host_os in aix4.[012]|aix4.[012].*)
8753 # We only want to do this on AIX 4.2 and lower, the check
8754 # below for broken collect2 doesn't work under 4.3+
8755 collect2name=`${CC} -print-prog-name=collect2`
8756 if test -f "$collect2name" &&
8757 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8758 then
8759 # We have reworked collect2
8760 :
8761 else
8762 # We have old collect2
8763 hardcode_direct=unsupported
8764 # It fails to find uninstalled libraries when the uninstalled
8765 # path is not listed in the libpath. Setting hardcode_minus_L
8766 # to unsupported forces relinking
8767 hardcode_minus_L=yes
8768 hardcode_libdir_flag_spec='-L$libdir'
8769 hardcode_libdir_separator=
8770 fi
8771 ;;
8772 esac
8773 shared_flag='-shared'
8774 if test "$aix_use_runtimelinking" = yes; then
8775 shared_flag="$shared_flag "'${wl}-G'
8776 fi
8777 link_all_deplibs=no
8778 else
8779 # not using gcc
8780 if test "$host_cpu" = ia64; then
8781 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8782 # chokes on -Wl,-G. The following line is correct:
8783 shared_flag='-G'
8784 else
8785 if test "$aix_use_runtimelinking" = yes; then
8786 shared_flag='${wl}-G'
8787 else
8788 shared_flag='${wl}-bM:SRE'
8789 fi
8790 fi
8791 fi
8792
8793 export_dynamic_flag_spec='${wl}-bexpall'
8794 # It seems that -bexpall does not export symbols beginning with
8795 # underscore (_), so it is better to generate a list of symbols to export.
8796 always_export_symbols=yes
8797 if test "$aix_use_runtimelinking" = yes; then
8798 # Warning - without using the other runtime loading flags (-brtl),
8799 # -berok will link without error, but may produce a broken library.
8800 allow_undefined_flag='-berok'
8801 # Determine the default libpath from the value encoded in an
8802 # empty executable.
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804/* end confdefs.h. */
8805
8806int
8807main ()
8808{
8809
8810 ;
8811 return 0;
8812}
8813_ACEOF
8814if ac_fn_c_try_link "$LINENO"; then :
8815
8816lt_aix_libpath_sed='
8817 /Import File Strings/,/^$/ {
8818 /^0/ {
8819 s/^0 *\(.*\)$/\1/
8820 p
8821 }
8822 }'
8823aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8824# Check for a 64-bit object if we didn't find anything.
8825if test -z "$aix_libpath"; then
8826 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8827fi
8828fi
8829rm -f core conftest.err conftest.$ac_objext \
8830 conftest$ac_exeext conftest.$ac_ext
8831if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8832
8833 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8834 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8835 else
8836 if test "$host_cpu" = ia64; then
8837 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8838 allow_undefined_flag="-z nodefs"
8839 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"
8840 else
8841 # Determine the default libpath from the value encoded in an
8842 # empty executable.
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844/* end confdefs.h. */
8845
8846int
8847main ()
8848{
8849
8850 ;
8851 return 0;
8852}
8853_ACEOF
8854if ac_fn_c_try_link "$LINENO"; then :
8855
8856lt_aix_libpath_sed='
8857 /Import File Strings/,/^$/ {
8858 /^0/ {
8859 s/^0 *\(.*\)$/\1/
8860 p
8861 }
8862 }'
8863aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8864# Check for a 64-bit object if we didn't find anything.
8865if test -z "$aix_libpath"; then
8866 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8867fi
8868fi
8869rm -f core conftest.err conftest.$ac_objext \
8870 conftest$ac_exeext conftest.$ac_ext
8871if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8872
8873 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8874 # Warning - without using the other run time loading flags,
8875 # -berok will link without error, but may produce a broken library.
8876 no_undefined_flag=' ${wl}-bernotok'
8877 allow_undefined_flag=' ${wl}-berok'
8878 # Exported symbols can be pulled into shared objects from archives
8879 whole_archive_flag_spec='$convenience'
8880 archive_cmds_need_lc=yes
8881 # This is similar to how AIX traditionally builds its shared libraries.
8882 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'
8883 fi
8884 fi
8885 ;;
8886
8887 amigaos*)
8888 case $host_cpu in
8889 powerpc)
8890 # see comment about AmigaOS4 .so support
8891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892 archive_expsym_cmds=''
8893 ;;
8894 m68k)
8895 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)'
8896 hardcode_libdir_flag_spec='-L$libdir'
8897 hardcode_minus_L=yes
8898 ;;
8899 esac
8900 ;;
8901
8902 bsdi[45]*)
8903 export_dynamic_flag_spec=-rdynamic
8904 ;;
8905
8906 cygwin* | mingw* | pw32* | cegcc*)
8907 # When not using gcc, we currently assume that we are using
8908 # Microsoft Visual C++.
8909 # hardcode_libdir_flag_spec is actually meaningless, as there is
8910 # no search path for DLLs.
8911 hardcode_libdir_flag_spec=' '
8912 allow_undefined_flag=unsupported
8913 # Tell ltmain to make .lib files, not .a files.
8914 libext=lib
8915 # Tell ltmain to make .dll files, not .so files.
8916 shrext_cmds=".dll"
8917 # FIXME: Setting linknames here is a bad hack.
8918 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8919 # The linker will automatically build a .lib file if we build a DLL.
8920 old_archive_from_new_cmds='true'
8921 # FIXME: Should let the user specify the lib program.
8922 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8923 fix_srcfile_path='`cygpath -w "$srcfile"`'
8924 enable_shared_with_static_runtimes=yes
8925 ;;
8926
8927 darwin* | rhapsody*)
8928
8929
8930 archive_cmds_need_lc=no
8931 hardcode_direct=no
8932 hardcode_automatic=yes
8933 hardcode_shlibpath_var=unsupported
8934 whole_archive_flag_spec=''
8935 link_all_deplibs=yes
8936 allow_undefined_flag="$_lt_dar_allow_undefined"
8937 case $cc_basename in
8938 ifort*) _lt_dar_can_shared=yes ;;
8939 *) _lt_dar_can_shared=$GCC ;;
8940 esac
8941 if test "$_lt_dar_can_shared" = "yes"; then
8942 output_verbose_link_cmd=echo
8943 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8944 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8945 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}"
8946 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}"
8947
8948 else
8949 ld_shlibs=no
8950 fi
8951
8952 ;;
8953
8954 dgux*)
8955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 hardcode_shlibpath_var=no
8958 ;;
8959
8960 freebsd1*)
8961 ld_shlibs=no
8962 ;;
8963
8964 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8965 # support. Future versions do this automatically, but an explicit c++rt0.o
8966 # does not break anything, and helps significantly (at the cost of a little
8967 # extra space).
8968 freebsd2.2*)
8969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8970 hardcode_libdir_flag_spec='-R$libdir'
8971 hardcode_direct=yes
8972 hardcode_shlibpath_var=no
8973 ;;
8974
8975 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8976 freebsd2*)
8977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8978 hardcode_direct=yes
8979 hardcode_minus_L=yes
8980 hardcode_shlibpath_var=no
8981 ;;
8982
8983 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8984 freebsd* | dragonfly*)
8985 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8986 hardcode_libdir_flag_spec='-R$libdir'
8987 hardcode_direct=yes
8988 hardcode_shlibpath_var=no
8989 ;;
8990
8991 hpux9*)
8992 if test "$GCC" = yes; then
8993 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'
8994 else
8995 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'
8996 fi
8997 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8998 hardcode_libdir_separator=:
8999 hardcode_direct=yes
9000
9001 # hardcode_minus_L: Not really in the search PATH,
9002 # but as the default location of the library.
9003 hardcode_minus_L=yes
9004 export_dynamic_flag_spec='${wl}-E'
9005 ;;
9006
9007 hpux10*)
9008 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9009 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9010 else
9011 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9012 fi
9013 if test "$with_gnu_ld" = no; then
9014 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9015 hardcode_libdir_flag_spec_ld='+b $libdir'
9016 hardcode_libdir_separator=:
9017 hardcode_direct=yes
9018 hardcode_direct_absolute=yes
9019 export_dynamic_flag_spec='${wl}-E'
9020 # hardcode_minus_L: Not really in the search PATH,
9021 # but as the default location of the library.
9022 hardcode_minus_L=yes
9023 fi
9024 ;;
9025
9026 hpux11*)
9027 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9028 case $host_cpu in
9029 hppa*64*)
9030 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9031 ;;
9032 ia64*)
9033 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9034 ;;
9035 *)
9036 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9037 ;;
9038 esac
9039 else
9040 case $host_cpu in
9041 hppa*64*)
9042 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9043 ;;
9044 ia64*)
9045 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9046 ;;
9047 *)
9048 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9049 ;;
9050 esac
9051 fi
9052 if test "$with_gnu_ld" = no; then
9053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9054 hardcode_libdir_separator=:
9055
9056 case $host_cpu in
9057 hppa*64*|ia64*)
9058 hardcode_direct=no
9059 hardcode_shlibpath_var=no
9060 ;;
9061 *)
9062 hardcode_direct=yes
9063 hardcode_direct_absolute=yes
9064 export_dynamic_flag_spec='${wl}-E'
9065
9066 # hardcode_minus_L: Not really in the search PATH,
9067 # but as the default location of the library.
9068 hardcode_minus_L=yes
9069 ;;
9070 esac
9071 fi
9072 ;;
9073
9074 irix5* | irix6* | nonstopux*)
9075 if test "$GCC" = yes; then
9076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9077 # Try to use the -exported_symbol ld option, if it does not
9078 # work, assume that -exports_file does not work either and
9079 # implicitly export all symbols.
9080 save_LDFLAGS="$LDFLAGS"
9081 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h. */
9084int foo(void) {}
9085_ACEOF
9086if ac_fn_c_try_link "$LINENO"; then :
9087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9088
9089fi
9090rm -f core conftest.err conftest.$ac_objext \
9091 conftest$ac_exeext conftest.$ac_ext
9092 LDFLAGS="$save_LDFLAGS"
9093 else
9094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9096 fi
9097 archive_cmds_need_lc='no'
9098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9099 hardcode_libdir_separator=:
9100 inherit_rpath=yes
9101 link_all_deplibs=yes
9102 ;;
9103
9104 netbsd* | netbsdelf*-gnu)
9105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9107 else
9108 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9109 fi
9110 hardcode_libdir_flag_spec='-R$libdir'
9111 hardcode_direct=yes
9112 hardcode_shlibpath_var=no
9113 ;;
9114
9115 newsos6)
9116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9117 hardcode_direct=yes
9118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9119 hardcode_libdir_separator=:
9120 hardcode_shlibpath_var=no
9121 ;;
9122
9123 *nto* | *qnx*)
9124 ;;
9125
9126 openbsd*)
9127 if test -f /usr/libexec/ld.so; then
9128 hardcode_direct=yes
9129 hardcode_shlibpath_var=no
9130 hardcode_direct_absolute=yes
9131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9133 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9134 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9135 export_dynamic_flag_spec='${wl}-E'
9136 else
9137 case $host_os in
9138 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_libdir_flag_spec='-R$libdir'
9141 ;;
9142 *)
9143 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9144 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9145 ;;
9146 esac
9147 fi
9148 else
9149 ld_shlibs=no
9150 fi
9151 ;;
9152
9153 os2*)
9154 hardcode_libdir_flag_spec='-L$libdir'
9155 hardcode_minus_L=yes
9156 allow_undefined_flag=unsupported
9157 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'
9158 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9159 ;;
9160
9161 osf3*)
9162 if test "$GCC" = yes; then
9163 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9164 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9165 else
9166 allow_undefined_flag=' -expect_unresolved \*'
9167 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9168 fi
9169 archive_cmds_need_lc='no'
9170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171 hardcode_libdir_separator=:
9172 ;;
9173
9174 osf4* | osf5*) # as osf3* with the addition of -msym flag
9175 if test "$GCC" = yes; then
9176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9177 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179 else
9180 allow_undefined_flag=' -expect_unresolved \*'
9181 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9182 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~
9183 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9184
9185 # Both c and cxx compiler support -rpath directly
9186 hardcode_libdir_flag_spec='-rpath $libdir'
9187 fi
9188 archive_cmds_need_lc='no'
9189 hardcode_libdir_separator=:
9190 ;;
9191
9192 solaris*)
9193 no_undefined_flag=' -z defs'
9194 if test "$GCC" = yes; then
9195 wlarc='${wl}'
9196 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9197 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9198 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9199 else
9200 case `$CC -V 2>&1` in
9201 *"Compilers 5.0"*)
9202 wlarc=''
9203 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9205 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9206 ;;
9207 *)
9208 wlarc='${wl}'
9209 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9211 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9212 ;;
9213 esac
9214 fi
9215 hardcode_libdir_flag_spec='-R$libdir'
9216 hardcode_shlibpath_var=no
9217 case $host_os in
9218 solaris2.[0-5] | solaris2.[0-5].*) ;;
9219 *)
9220 # The compiler driver will combine and reorder linker options,
9221 # but understands `-z linker_flag'. GCC discards it without `$wl',
9222 # but is careful enough not to reorder.
9223 # Supported since Solaris 2.6 (maybe 2.5.1?)
9224 if test "$GCC" = yes; then
9225 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9226 else
9227 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9228 fi
9229 ;;
9230 esac
9231 link_all_deplibs=yes
9232 ;;
9233
9234 sunos4*)
9235 if test "x$host_vendor" = xsequent; then
9236 # Use $CC to link under sequent, because it throws in some extra .o
9237 # files that make .init and .fini sections work.
9238 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9239 else
9240 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9241 fi
9242 hardcode_libdir_flag_spec='-L$libdir'
9243 hardcode_direct=yes
9244 hardcode_minus_L=yes
9245 hardcode_shlibpath_var=no
9246 ;;
9247
9248 sysv4)
9249 case $host_vendor in
9250 sni)
9251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9252 hardcode_direct=yes # is this really true???
9253 ;;
9254 siemens)
9255 ## LD is ld it makes a PLAMLIB
9256 ## CC just makes a GrossModule.
9257 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9258 reload_cmds='$CC -r -o $output$reload_objs'
9259 hardcode_direct=no
9260 ;;
9261 motorola)
9262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9263 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9264 ;;
9265 esac
9266 runpath_var='LD_RUN_PATH'
9267 hardcode_shlibpath_var=no
9268 ;;
9269
9270 sysv4.3*)
9271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9272 hardcode_shlibpath_var=no
9273 export_dynamic_flag_spec='-Bexport'
9274 ;;
9275
9276 sysv4*MP*)
9277 if test -d /usr/nec; then
9278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279 hardcode_shlibpath_var=no
9280 runpath_var=LD_RUN_PATH
9281 hardcode_runpath_var=yes
9282 ld_shlibs=yes
9283 fi
9284 ;;
9285
9286 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9287 no_undefined_flag='${wl}-z,text'
9288 archive_cmds_need_lc=no
9289 hardcode_shlibpath_var=no
9290 runpath_var='LD_RUN_PATH'
9291
9292 if test "$GCC" = yes; then
9293 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9294 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9295 else
9296 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9297 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9298 fi
9299 ;;
9300
9301 sysv5* | sco3.2v5* | sco5v6*)
9302 # Note: We can NOT use -z defs as we might desire, because we do not
9303 # link with -lc, and that would cause any symbols used from libc to
9304 # always be unresolved, which means just about no library would
9305 # ever link correctly. If we're not using GNU ld we use -z text
9306 # though, which does catch some bad symbols but isn't as heavy-handed
9307 # as -z defs.
9308 no_undefined_flag='${wl}-z,text'
9309 allow_undefined_flag='${wl}-z,nodefs'
9310 archive_cmds_need_lc=no
9311 hardcode_shlibpath_var=no
9312 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9313 hardcode_libdir_separator=':'
9314 link_all_deplibs=yes
9315 export_dynamic_flag_spec='${wl}-Bexport'
9316 runpath_var='LD_RUN_PATH'
9317
9318 if test "$GCC" = yes; then
9319 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9320 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9321 else
9322 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9323 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9324 fi
9325 ;;
9326
9327 uts4*)
9328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329 hardcode_libdir_flag_spec='-L$libdir'
9330 hardcode_shlibpath_var=no
9331 ;;
9332
9333 *)
9334 ld_shlibs=no
9335 ;;
9336 esac
9337
9338 if test x$host_vendor = xsni; then
9339 case $host in
9340 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9341 export_dynamic_flag_spec='${wl}-Blargedynsym'
9342 ;;
9343 esac
9344 fi
9345 fi
9346
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9348$as_echo "$ld_shlibs" >&6; }
9349test "$ld_shlibs" = no && can_build_shared=no
9350
9351with_gnu_ld=$with_gnu_ld
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367#
9368# Do we need to explicitly link libc?
9369#
9370case "x$archive_cmds_need_lc" in
9371x|xyes)
9372 # Assume -lc should be added
9373 archive_cmds_need_lc=yes
9374
9375 if test "$enable_shared" = yes && test "$GCC" = yes; then
9376 case $archive_cmds in
9377 *'~'*)
9378 # FIXME: we may have to deal with multi-command sequences.
9379 ;;
9380 '$CC '*)
9381 # Test whether the compiler implicitly links with -lc since on some
9382 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9383 # to ld, don't add -lc before -lgcc.
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9385$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9386 $RM conftest*
9387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9388
9389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9390 (eval $ac_compile) 2>&5
9391 ac_status=$?
9392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9393 test $ac_status = 0; } 2>conftest.err; then
9394 soname=conftest
9395 lib=conftest
9396 libobjs=conftest.$ac_objext
9397 deplibs=
9398 wl=$lt_prog_compiler_wl
9399 pic_flag=$lt_prog_compiler_pic
9400 compiler_flags=-v
9401 linker_flags=-v
9402 verstring=
9403 output_objdir=.
9404 libname=conftest
9405 lt_save_allow_undefined_flag=$allow_undefined_flag
9406 allow_undefined_flag=
9407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9408 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9409 ac_status=$?
9410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9411 test $ac_status = 0; }
9412 then
9413 archive_cmds_need_lc=no
9414 else
9415 archive_cmds_need_lc=yes
9416 fi
9417 allow_undefined_flag=$lt_save_allow_undefined_flag
9418 else
9419 cat conftest.err 1>&5
9420 fi
9421 $RM conftest*
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9423$as_echo "$archive_cmds_need_lc" >&6; }
9424 ;;
9425 esac
9426 fi
9427 ;;
9428esac
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9587$as_echo_n "checking dynamic linker characteristics... " >&6; }
9588
9589if test "$GCC" = yes; then
9590 case $host_os in
9591 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9592 *) lt_awk_arg="/^libraries:/" ;;
9593 esac
9594 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9595 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9596 # if the path contains ";" then we assume it to be the separator
9597 # otherwise default to the standard path separator (i.e. ":") - it is
9598 # assumed that no part of a normal pathname contains ";" but that should
9599 # okay in the real world where ";" in dirpaths is itself problematic.
9600 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9601 else
9602 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9603 fi
9604 # Ok, now we have the path, separated by spaces, we can step through it
9605 # and add multilib dir if necessary.
9606 lt_tmp_lt_search_path_spec=
9607 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9608 for lt_sys_path in $lt_search_path_spec; do
9609 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9610 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9611 else
9612 test -d "$lt_sys_path" && \
9613 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9614 fi
9615 done
9616 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9617BEGIN {RS=" "; FS="/|\n";} {
9618 lt_foo="";
9619 lt_count=0;
9620 for (lt_i = NF; lt_i > 0; lt_i--) {
9621 if ($lt_i != "" && $lt_i != ".") {
9622 if ($lt_i == "..") {
9623 lt_count++;
9624 } else {
9625 if (lt_count == 0) {
9626 lt_foo="/" $lt_i lt_foo;
9627 } else {
9628 lt_count--;
9629 }
9630 }
9631 }
9632 }
9633 if (lt_foo != "") { lt_freq[lt_foo]++; }
9634 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9635}'`
9636 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9637else
9638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9639fi
9640library_names_spec=
9641libname_spec='lib$name'
9642soname_spec=
9643shrext_cmds=".so"
9644postinstall_cmds=
9645postuninstall_cmds=
9646finish_cmds=
9647finish_eval=
9648shlibpath_var=
9649shlibpath_overrides_runpath=unknown
9650version_type=none
9651dynamic_linker="$host_os ld.so"
9652sys_lib_dlsearch_path_spec="/lib /usr/lib"
9653need_lib_prefix=unknown
9654hardcode_into_libs=no
9655
9656# when you set need_version to no, make sure it does not cause -set_version
9657# flags to be left without arguments
9658need_version=unknown
9659
9660case $host_os in
9661aix3*)
9662 version_type=linux
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9664 shlibpath_var=LIBPATH
9665
9666 # AIX 3 has no versioning support, so we append a major version to the name.
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 ;;
9669
9670aix[4-9]*)
9671 version_type=linux
9672 need_lib_prefix=no
9673 need_version=no
9674 hardcode_into_libs=yes
9675 if test "$host_cpu" = ia64; then
9676 # AIX 5 supports IA64
9677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 else
9680 # With GCC up to 2.95.x, collect2 would create an import file
9681 # for dependence libraries. The import file would start with
9682 # the line `#! .'. This would cause the generated library to
9683 # depend on `.', always an invalid library. This was fixed in
9684 # development snapshots of GCC prior to 3.0.
9685 case $host_os in
9686 aix4 | aix4.[01] | aix4.[01].*)
9687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9688 echo ' yes '
9689 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9690 :
9691 else
9692 can_build_shared=no
9693 fi
9694 ;;
9695 esac
9696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9697 # soname into executable. Probably we can add versioning support to
9698 # collect2, so additional links can be useful in future.
9699 if test "$aix_use_runtimelinking" = yes; then
9700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9701 # instead of lib<name>.a to let people know that these are not
9702 # typical AIX shared libraries.
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 else
9705 # We preserve .a as extension for shared libraries through AIX4.2
9706 # and later when we are not doing run time linking.
9707 library_names_spec='${libname}${release}.a $libname.a'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9709 fi
9710 shlibpath_var=LIBPATH
9711 fi
9712 ;;
9713
9714amigaos*)
9715 case $host_cpu in
9716 powerpc)
9717 # Since July 2007 AmigaOS4 officially supports .so libraries.
9718 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 ;;
9721 m68k)
9722 library_names_spec='$libname.ixlibrary $libname.a'
9723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9724 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9725 ;;
9726 esac
9727 ;;
9728
9729beos*)
9730 library_names_spec='${libname}${shared_ext}'
9731 dynamic_linker="$host_os ld.so"
9732 shlibpath_var=LIBRARY_PATH
9733 ;;
9734
9735bsdi[45]*)
9736 version_type=linux
9737 need_version=no
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9744 # the default ld.so.conf also contains /usr/contrib/lib and
9745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9746 # libtool to hard-code these into programs
9747 ;;
9748
9749cygwin* | mingw* | pw32* | cegcc*)
9750 version_type=windows
9751 shrext_cmds=".dll"
9752 need_version=no
9753 need_lib_prefix=no
9754
9755 case $GCC,$host_os in
9756 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9757 library_names_spec='$libname.dll.a'
9758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9759 postinstall_cmds='base_file=`basename \${file}`~
9760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9761 dldir=$destdir/`dirname \$dlpath`~
9762 test -d \$dldir || mkdir -p \$dldir~
9763 $install_prog $dir/$dlname \$dldir/$dlname~
9764 chmod a+x \$dldir/$dlname~
9765 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9766 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9767 fi'
9768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9769 dlpath=$dir/\$dldll~
9770 $RM \$dlpath'
9771 shlibpath_overrides_runpath=yes
9772
9773 case $host_os in
9774 cygwin*)
9775 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9776 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9777 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9778 ;;
9779 mingw* | cegcc*)
9780 # MinGW DLLs use traditional 'lib' prefix
9781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9782 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9783 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9784 # It is most probably a Windows format PATH printed by
9785 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9786 # path with ; separators, and with drive letters. We can handle the
9787 # drive letters (cygwin fileutils understands them), so leave them,
9788 # especially as we might pass files found there to a mingw objdump,
9789 # which wouldn't understand a cygwinified path. Ahh.
9790 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9791 else
9792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9793 fi
9794 ;;
9795 pw32*)
9796 # pw32 DLLs use 'pw' prefix rather than 'lib'
9797 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9798 ;;
9799 esac
9800 ;;
9801
9802 *)
9803 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9804 ;;
9805 esac
9806 dynamic_linker='Win32 ld.exe'
9807 # FIXME: first we should search . and the directory the executable is in
9808 shlibpath_var=PATH
9809 ;;
9810
9811darwin* | rhapsody*)
9812 dynamic_linker="$host_os dyld"
9813 version_type=darwin
9814 need_lib_prefix=no
9815 need_version=no
9816 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9817 soname_spec='${libname}${release}${major}$shared_ext'
9818 shlibpath_overrides_runpath=yes
9819 shlibpath_var=DYLD_LIBRARY_PATH
9820 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9821
9822 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9823 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9824 ;;
9825
9826dgux*)
9827 version_type=linux
9828 need_lib_prefix=no
9829 need_version=no
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 ;;
9834
9835freebsd1*)
9836 dynamic_linker=no
9837 ;;
9838
9839freebsd* | dragonfly*)
9840 # DragonFly does not have aout. When/if they implement a new
9841 # versioning mechanism, adjust this.
9842 if test -x /usr/bin/objformat; then
9843 objformat=`/usr/bin/objformat`
9844 else
9845 case $host_os in
9846 freebsd[123]*) objformat=aout ;;
9847 *) objformat=elf ;;
9848 esac
9849 fi
9850 version_type=freebsd-$objformat
9851 case $version_type in
9852 freebsd-elf*)
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9854 need_version=no
9855 need_lib_prefix=no
9856 ;;
9857 freebsd-*)
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9859 need_version=yes
9860 ;;
9861 esac
9862 shlibpath_var=LD_LIBRARY_PATH
9863 case $host_os in
9864 freebsd2*)
9865 shlibpath_overrides_runpath=yes
9866 ;;
9867 freebsd3.[01]* | freebsdelf3.[01]*)
9868 shlibpath_overrides_runpath=yes
9869 hardcode_into_libs=yes
9870 ;;
9871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9873 shlibpath_overrides_runpath=no
9874 hardcode_into_libs=yes
9875 ;;
9876 *) # from 4.6 on, and DragonFly
9877 shlibpath_overrides_runpath=yes
9878 hardcode_into_libs=yes
9879 ;;
9880 esac
9881 ;;
9882
9883gnu*)
9884 version_type=linux
9885 need_lib_prefix=no
9886 need_version=no
9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9888 soname_spec='${libname}${release}${shared_ext}$major'
9889 shlibpath_var=LD_LIBRARY_PATH
9890 hardcode_into_libs=yes
9891 ;;
9892
9893hpux9* | hpux10* | hpux11*)
9894 # Give a soname corresponding to the major version so that dld.sl refuses to
9895 # link against other versions.
9896 version_type=sunos
9897 need_lib_prefix=no
9898 need_version=no
9899 case $host_cpu in
9900 ia64*)
9901 shrext_cmds='.so'
9902 hardcode_into_libs=yes
9903 dynamic_linker="$host_os dld.so"
9904 shlibpath_var=LD_LIBRARY_PATH
9905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 if test "X$HPUX_IA64_MODE" = X32; then
9909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9910 else
9911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9912 fi
9913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9914 ;;
9915 hppa*64*)
9916 shrext_cmds='.sl'
9917 hardcode_into_libs=yes
9918 dynamic_linker="$host_os dld.sl"
9919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 soname_spec='${libname}${release}${shared_ext}$major'
9923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9925 ;;
9926 *)
9927 shrext_cmds='.sl'
9928 dynamic_linker="$host_os dld.sl"
9929 shlibpath_var=SHLIB_PATH
9930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 ;;
9934 esac
9935 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9936 postinstall_cmds='chmod 555 $lib'
9937 ;;
9938
9939interix[3-9]*)
9940 version_type=linux
9941 need_lib_prefix=no
9942 need_version=no
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 shlibpath_overrides_runpath=no
9948 hardcode_into_libs=yes
9949 ;;
9950
9951irix5* | irix6* | nonstopux*)
9952 case $host_os in
9953 nonstopux*) version_type=nonstopux ;;
9954 *)
9955 if test "$lt_cv_prog_gnu_ld" = yes; then
9956 version_type=linux
9957 else
9958 version_type=irix
9959 fi ;;
9960 esac
9961 need_lib_prefix=no
9962 need_version=no
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9965 case $host_os in
9966 irix5* | nonstopux*)
9967 libsuff= shlibsuff=
9968 ;;
9969 *)
9970 case $LD in # libtool.m4 will add one of these switches to LD
9971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9972 libsuff= shlibsuff= libmagic=32-bit;;
9973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9974 libsuff=32 shlibsuff=N32 libmagic=N32;;
9975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9976 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9977 *) libsuff= shlibsuff= libmagic=never-match;;
9978 esac
9979 ;;
9980 esac
9981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9982 shlibpath_overrides_runpath=no
9983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9985 hardcode_into_libs=yes
9986 ;;
9987
9988# No shared lib support for Linux oldld, aout, or coff.
9989linux*oldld* | linux*aout* | linux*coff*)
9990 dynamic_linker=no
9991 ;;
9992
9993# This must be Linux ELF.
9994linux* | k*bsd*-gnu | kopensolaris*-gnu)
9995 version_type=linux
9996 need_lib_prefix=no
9997 need_version=no
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10001 shlibpath_var=LD_LIBRARY_PATH
10002 shlibpath_overrides_runpath=no
10003 # Some binutils ld are patched to set DT_RUNPATH
10004 save_LDFLAGS=$LDFLAGS
10005 save_libdir=$libdir
10006 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10007 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h. */
10010
10011int
10012main ()
10013{
10014
10015 ;
10016 return 0;
10017}
10018_ACEOF
10019if ac_fn_c_try_link "$LINENO"; then :
10020 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10021 shlibpath_overrides_runpath=yes
10022fi
10023fi
10024rm -f core conftest.err conftest.$ac_objext \
10025 conftest$ac_exeext conftest.$ac_ext
10026 LDFLAGS=$save_LDFLAGS
10027 libdir=$save_libdir
10028
10029 # This implies no fast_install, which is unacceptable.
10030 # Some rework will be needed to allow for fast_install
10031 # before this can be enabled.
10032 hardcode_into_libs=yes
10033
10034 # Append ld.so.conf contents to the search path
10035 if test -f /etc/ld.so.conf; then
10036 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;/^$/d' | tr '\n' ' '`
10037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10038 fi
10039
10040 # We used to test for /lib/ld.so.1 and disable shared libraries on
10041 # powerpc, because MkLinux only supported shared libraries with the
10042 # GNU dynamic linker. Since this was broken with cross compilers,
10043 # most powerpc-linux boxes support dynamic linking these days and
10044 # people can always --disable-shared, the test was removed, and we
10045 # assume the GNU/Linux dynamic linker is in use.
10046 dynamic_linker='GNU/Linux ld.so'
10047 ;;
10048
10049netbsdelf*-gnu)
10050 version_type=linux
10051 need_lib_prefix=no
10052 need_version=no
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 shlibpath_overrides_runpath=no
10057 hardcode_into_libs=yes
10058 dynamic_linker='NetBSD ld.elf_so'
10059 ;;
10060
10061netbsd*)
10062 version_type=sunos
10063 need_lib_prefix=no
10064 need_version=no
10065 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10068 dynamic_linker='NetBSD (a.out) ld.so'
10069 else
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 dynamic_linker='NetBSD ld.elf_so'
10073 fi
10074 shlibpath_var=LD_LIBRARY_PATH
10075 shlibpath_overrides_runpath=yes
10076 hardcode_into_libs=yes
10077 ;;
10078
10079newsos6)
10080 version_type=linux
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=yes
10084 ;;
10085
10086*nto* | *qnx*)
10087 version_type=qnx
10088 need_lib_prefix=no
10089 need_version=no
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=no
10094 hardcode_into_libs=yes
10095 dynamic_linker='ldqnx.so'
10096 ;;
10097
10098openbsd*)
10099 version_type=sunos
10100 sys_lib_dlsearch_path_spec="/usr/lib"
10101 need_lib_prefix=no
10102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10103 case $host_os in
10104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10105 *) need_version=no ;;
10106 esac
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10111 case $host_os in
10112 openbsd2.[89] | openbsd2.[89].*)
10113 shlibpath_overrides_runpath=no
10114 ;;
10115 *)
10116 shlibpath_overrides_runpath=yes
10117 ;;
10118 esac
10119 else
10120 shlibpath_overrides_runpath=yes
10121 fi
10122 ;;
10123
10124os2*)
10125 libname_spec='$name'
10126 shrext_cmds=".dll"
10127 need_lib_prefix=no
10128 library_names_spec='$libname${shared_ext} $libname.a'
10129 dynamic_linker='OS/2 ld.exe'
10130 shlibpath_var=LIBPATH
10131 ;;
10132
10133osf3* | osf4* | osf5*)
10134 version_type=osf
10135 need_lib_prefix=no
10136 need_version=no
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10142 ;;
10143
10144rdos*)
10145 dynamic_linker=no
10146 ;;
10147
10148solaris*)
10149 version_type=linux
10150 need_lib_prefix=no
10151 need_version=no
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153 soname_spec='${libname}${release}${shared_ext}$major'
10154 shlibpath_var=LD_LIBRARY_PATH
10155 shlibpath_overrides_runpath=yes
10156 hardcode_into_libs=yes
10157 # ldd complains unless libraries are executable
10158 postinstall_cmds='chmod +x $lib'
10159 ;;
10160
10161sunos4*)
10162 version_type=sunos
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10164 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=yes
10167 if test "$with_gnu_ld" = yes; then
10168 need_lib_prefix=no
10169 fi
10170 need_version=yes
10171 ;;
10172
10173sysv4 | sysv4.3*)
10174 version_type=linux
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 shlibpath_var=LD_LIBRARY_PATH
10178 case $host_vendor in
10179 sni)
10180 shlibpath_overrides_runpath=no
10181 need_lib_prefix=no
10182 runpath_var=LD_RUN_PATH
10183 ;;
10184 siemens)
10185 need_lib_prefix=no
10186 ;;
10187 motorola)
10188 need_lib_prefix=no
10189 need_version=no
10190 shlibpath_overrides_runpath=no
10191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10192 ;;
10193 esac
10194 ;;
10195
10196sysv4*MP*)
10197 if test -d /usr/nec ;then
10198 version_type=linux
10199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10200 soname_spec='$libname${shared_ext}.$major'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 fi
10203 ;;
10204
10205sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10206 version_type=freebsd-elf
10207 need_lib_prefix=no
10208 need_version=no
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes
10213 hardcode_into_libs=yes
10214 if test "$with_gnu_ld" = yes; then
10215 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10216 else
10217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10218 case $host_os in
10219 sco3.2v5*)
10220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10221 ;;
10222 esac
10223 fi
10224 sys_lib_dlsearch_path_spec='/usr/lib'
10225 ;;
10226
10227tpf*)
10228 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10229 version_type=linux
10230 need_lib_prefix=no
10231 need_version=no
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=no
10235 hardcode_into_libs=yes
10236 ;;
10237
10238uts4*)
10239 version_type=linux
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 ;;
10244
10245*)
10246 dynamic_linker=no
10247 ;;
10248esac
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10250$as_echo "$dynamic_linker" >&6; }
10251test "$dynamic_linker" = no && can_build_shared=no
10252
10253variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10254if test "$GCC" = yes; then
10255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10256fi
10257
10258if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10259 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10260fi
10261if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10262 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10263fi
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10352$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10353hardcode_action=
10354if test -n "$hardcode_libdir_flag_spec" ||
10355 test -n "$runpath_var" ||
10356 test "X$hardcode_automatic" = "Xyes" ; then
10357
10358 # We can hardcode non-existent directories.
10359 if test "$hardcode_direct" != no &&
10360 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10361 # have to relink, otherwise we might link with an installed library
10362 # when we should be linking with a yet-to-be-installed one
10363 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10364 test "$hardcode_minus_L" != no; then
10365 # Linking always hardcodes the temporary library directory.
10366 hardcode_action=relink
10367 else
10368 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10369 hardcode_action=immediate
10370 fi
10371else
10372 # We cannot hardcode anything, or else we can only hardcode existing
10373 # directories.
10374 hardcode_action=unsupported
10375fi
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10377$as_echo "$hardcode_action" >&6; }
10378
10379if test "$hardcode_action" = relink ||
10380 test "$inherit_rpath" = yes; then
10381 # Fast installation is not supported
10382 enable_fast_install=no
10383elif test "$shlibpath_overrides_runpath" = yes ||
10384 test "$enable_shared" = no; then
10385 # Fast installation is not necessary
10386 enable_fast_install=needless
10387fi
10388
10389
10390
10391
10392
10393
10394 if test "x$enable_dlopen" != xyes; then
10395 enable_dlopen=unknown
10396 enable_dlopen_self=unknown
10397 enable_dlopen_self_static=unknown
10398else
10399 lt_cv_dlopen=no
10400 lt_cv_dlopen_libs=
10401
10402 case $host_os in
10403 beos*)
10404 lt_cv_dlopen="load_add_on"
10405 lt_cv_dlopen_libs=
10406 lt_cv_dlopen_self=yes
10407 ;;
10408
10409 mingw* | pw32* | cegcc*)
10410 lt_cv_dlopen="LoadLibrary"
10411 lt_cv_dlopen_libs=
10412 ;;
10413
10414 cygwin*)
10415 lt_cv_dlopen="dlopen"
10416 lt_cv_dlopen_libs=
10417 ;;
10418
10419 darwin*)
10420 # if libdl is installed we need to link against it
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10422$as_echo_n "checking for dlopen in -ldl... " >&6; }
10423if ${ac_cv_lib_dl_dlopen+:} false; then :
10424 $as_echo_n "(cached) " >&6
10425else
10426 ac_check_lib_save_LIBS=$LIBS
10427LIBS="-ldl $LIBS"
10428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429/* end confdefs.h. */
10430
10431/* Override any GCC internal prototype to avoid an error.
10432 Use char because int might match the return type of a GCC
10433 builtin and then its argument prototype would still apply. */
10434#ifdef __cplusplus
10435extern "C"
10436#endif
10437char dlopen ();
10438int
10439main ()
10440{
10441return dlopen ();
10442 ;
10443 return 0;
10444}
10445_ACEOF
10446if ac_fn_c_try_link "$LINENO"; then :
10447 ac_cv_lib_dl_dlopen=yes
10448else
10449 ac_cv_lib_dl_dlopen=no
10450fi
10451rm -f core conftest.err conftest.$ac_objext \
10452 conftest$ac_exeext conftest.$ac_ext
10453LIBS=$ac_check_lib_save_LIBS
10454fi
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10456$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10457if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10458 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10459else
10460
10461 lt_cv_dlopen="dyld"
10462 lt_cv_dlopen_libs=
10463 lt_cv_dlopen_self=yes
10464
10465fi
10466
10467 ;;
10468
10469 *)
10470 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10471if test "x$ac_cv_func_shl_load" = xyes; then :
10472 lt_cv_dlopen="shl_load"
10473else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10475$as_echo_n "checking for shl_load in -ldld... " >&6; }
10476if ${ac_cv_lib_dld_shl_load+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478else
10479 ac_check_lib_save_LIBS=$LIBS
10480LIBS="-ldld $LIBS"
10481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482/* end confdefs.h. */
10483
10484/* Override any GCC internal prototype to avoid an error.
10485 Use char because int might match the return type of a GCC
10486 builtin and then its argument prototype would still apply. */
10487#ifdef __cplusplus
10488extern "C"
10489#endif
10490char shl_load ();
10491int
10492main ()
10493{
10494return shl_load ();
10495 ;
10496 return 0;
10497}
10498_ACEOF
10499if ac_fn_c_try_link "$LINENO"; then :
10500 ac_cv_lib_dld_shl_load=yes
10501else
10502 ac_cv_lib_dld_shl_load=no
10503fi
10504rm -f core conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10506LIBS=$ac_check_lib_save_LIBS
10507fi
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10509$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10510if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10511 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10512else
10513 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10514if test "x$ac_cv_func_dlopen" = xyes; then :
10515 lt_cv_dlopen="dlopen"
10516else
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10518$as_echo_n "checking for dlopen in -ldl... " >&6; }
10519if ${ac_cv_lib_dl_dlopen+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521else
10522 ac_check_lib_save_LIBS=$LIBS
10523LIBS="-ldl $LIBS"
10524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525/* end confdefs.h. */
10526
10527/* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10530#ifdef __cplusplus
10531extern "C"
10532#endif
10533char dlopen ();
10534int
10535main ()
10536{
10537return dlopen ();
10538 ;
10539 return 0;
10540}
10541_ACEOF
10542if ac_fn_c_try_link "$LINENO"; then :
10543 ac_cv_lib_dl_dlopen=yes
10544else
10545 ac_cv_lib_dl_dlopen=no
10546fi
10547rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10549LIBS=$ac_check_lib_save_LIBS
10550fi
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10552$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10553if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10555else
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10557$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10558if ${ac_cv_lib_svld_dlopen+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560else
10561 ac_check_lib_save_LIBS=$LIBS
10562LIBS="-lsvld $LIBS"
10563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h. */
10565
10566/* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
10569#ifdef __cplusplus
10570extern "C"
10571#endif
10572char dlopen ();
10573int
10574main ()
10575{
10576return dlopen ();
10577 ;
10578 return 0;
10579}
10580_ACEOF
10581if ac_fn_c_try_link "$LINENO"; then :
10582 ac_cv_lib_svld_dlopen=yes
10583else
10584 ac_cv_lib_svld_dlopen=no
10585fi
10586rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588LIBS=$ac_check_lib_save_LIBS
10589fi
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10591$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10592if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10594else
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10596$as_echo_n "checking for dld_link in -ldld... " >&6; }
10597if ${ac_cv_lib_dld_dld_link+:} false; then :
10598 $as_echo_n "(cached) " >&6
10599else
10600 ac_check_lib_save_LIBS=$LIBS
10601LIBS="-ldld $LIBS"
10602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603/* end confdefs.h. */
10604
10605/* Override any GCC internal prototype to avoid an error.
10606 Use char because int might match the return type of a GCC
10607 builtin and then its argument prototype would still apply. */
10608#ifdef __cplusplus
10609extern "C"
10610#endif
10611char dld_link ();
10612int
10613main ()
10614{
10615return dld_link ();
10616 ;
10617 return 0;
10618}
10619_ACEOF
10620if ac_fn_c_try_link "$LINENO"; then :
10621 ac_cv_lib_dld_dld_link=yes
10622else
10623 ac_cv_lib_dld_dld_link=no
10624fi
10625rm -f core conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10627LIBS=$ac_check_lib_save_LIBS
10628fi
10629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10630$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10631if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10632 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10633fi
10634
10635
10636fi
10637
10638
10639fi
10640
10641
10642fi
10643
10644
10645fi
10646
10647
10648fi
10649
10650 ;;
10651 esac
10652
10653 if test "x$lt_cv_dlopen" != xno; then
10654 enable_dlopen=yes
10655 else
10656 enable_dlopen=no
10657 fi
10658
10659 case $lt_cv_dlopen in
10660 dlopen)
10661 save_CPPFLAGS="$CPPFLAGS"
10662 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10663
10664 save_LDFLAGS="$LDFLAGS"
10665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10666
10667 save_LIBS="$LIBS"
10668 LIBS="$lt_cv_dlopen_libs $LIBS"
10669
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10671$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10672if ${lt_cv_dlopen_self+:} false; then :
10673 $as_echo_n "(cached) " >&6
10674else
10675 if test "$cross_compiling" = yes; then :
10676 lt_cv_dlopen_self=cross
10677else
10678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10679 lt_status=$lt_dlunknown
10680 cat > conftest.$ac_ext <<_LT_EOF
10681#line 10681 "configure"
10682#include "confdefs.h"
10683
10684#if HAVE_DLFCN_H
10685#include <dlfcn.h>
10686#endif
10687
10688#include <stdio.h>
10689
10690#ifdef RTLD_GLOBAL
10691# define LT_DLGLOBAL RTLD_GLOBAL
10692#else
10693# ifdef DL_GLOBAL
10694# define LT_DLGLOBAL DL_GLOBAL
10695# else
10696# define LT_DLGLOBAL 0
10697# endif
10698#endif
10699
10700/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10701 find out it does not work in some platform. */
10702#ifndef LT_DLLAZY_OR_NOW
10703# ifdef RTLD_LAZY
10704# define LT_DLLAZY_OR_NOW RTLD_LAZY
10705# else
10706# ifdef DL_LAZY
10707# define LT_DLLAZY_OR_NOW DL_LAZY
10708# else
10709# ifdef RTLD_NOW
10710# define LT_DLLAZY_OR_NOW RTLD_NOW
10711# else
10712# ifdef DL_NOW
10713# define LT_DLLAZY_OR_NOW DL_NOW
10714# else
10715# define LT_DLLAZY_OR_NOW 0
10716# endif
10717# endif
10718# endif
10719# endif
10720#endif
10721
10722void fnord() { int i=42;}
10723int main ()
10724{
10725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10726 int status = $lt_dlunknown;
10727
10728 if (self)
10729 {
10730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10731 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10732 /* dlclose (self); */
10733 }
10734 else
10735 puts (dlerror ());
10736
10737 return status;
10738}
10739_LT_EOF
10740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10741 (eval $ac_link) 2>&5
10742 ac_status=$?
10743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10744 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10745 (./conftest; exit; ) >&5 2>/dev/null
10746 lt_status=$?
10747 case x$lt_status in
10748 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10749 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10750 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10751 esac
10752 else :
10753 # compilation failed
10754 lt_cv_dlopen_self=no
10755 fi
10756fi
10757rm -fr conftest*
10758
10759
10760fi
10761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10762$as_echo "$lt_cv_dlopen_self" >&6; }
10763
10764 if test "x$lt_cv_dlopen_self" = xyes; then
10765 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10767$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10768if ${lt_cv_dlopen_self_static+:} false; then :
10769 $as_echo_n "(cached) " >&6
10770else
10771 if test "$cross_compiling" = yes; then :
10772 lt_cv_dlopen_self_static=cross
10773else
10774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10775 lt_status=$lt_dlunknown
10776 cat > conftest.$ac_ext <<_LT_EOF
10777#line 10777 "configure"
10778#include "confdefs.h"
10779
10780#if HAVE_DLFCN_H
10781#include <dlfcn.h>
10782#endif
10783
10784#include <stdio.h>
10785
10786#ifdef RTLD_GLOBAL
10787# define LT_DLGLOBAL RTLD_GLOBAL
10788#else
10789# ifdef DL_GLOBAL
10790# define LT_DLGLOBAL DL_GLOBAL
10791# else
10792# define LT_DLGLOBAL 0
10793# endif
10794#endif
10795
10796/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10797 find out it does not work in some platform. */
10798#ifndef LT_DLLAZY_OR_NOW
10799# ifdef RTLD_LAZY
10800# define LT_DLLAZY_OR_NOW RTLD_LAZY
10801# else
10802# ifdef DL_LAZY
10803# define LT_DLLAZY_OR_NOW DL_LAZY
10804# else
10805# ifdef RTLD_NOW
10806# define LT_DLLAZY_OR_NOW RTLD_NOW
10807# else
10808# ifdef DL_NOW
10809# define LT_DLLAZY_OR_NOW DL_NOW
10810# else
10811# define LT_DLLAZY_OR_NOW 0
10812# endif
10813# endif
10814# endif
10815# endif
10816#endif
10817
10818void fnord() { int i=42;}
10819int main ()
10820{
10821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10822 int status = $lt_dlunknown;
10823
10824 if (self)
10825 {
10826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10827 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10828 /* dlclose (self); */
10829 }
10830 else
10831 puts (dlerror ());
10832
10833 return status;
10834}
10835_LT_EOF
10836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10837 (eval $ac_link) 2>&5
10838 ac_status=$?
10839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10840 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10841 (./conftest; exit; ) >&5 2>/dev/null
10842 lt_status=$?
10843 case x$lt_status in
10844 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10845 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10846 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10847 esac
10848 else :
10849 # compilation failed
10850 lt_cv_dlopen_self_static=no
10851 fi
10852fi
10853rm -fr conftest*
10854
10855
10856fi
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10858$as_echo "$lt_cv_dlopen_self_static" >&6; }
10859 fi
10860
10861 CPPFLAGS="$save_CPPFLAGS"
10862 LDFLAGS="$save_LDFLAGS"
10863 LIBS="$save_LIBS"
10864 ;;
10865 esac
10866
10867 case $lt_cv_dlopen_self in
10868 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10869 *) enable_dlopen_self=unknown ;;
10870 esac
10871
10872 case $lt_cv_dlopen_self_static in
10873 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10874 *) enable_dlopen_self_static=unknown ;;
10875 esac
10876fi
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894striplib=
10895old_striplib=
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10897$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10898if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10899 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10900 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10902$as_echo "yes" >&6; }
10903else
10904# FIXME - insert some real tests, host_os isn't really good enough
10905 case $host_os in
10906 darwin*)
10907 if test -n "$STRIP" ; then
10908 striplib="$STRIP -x"
10909 old_striplib="$STRIP -S"
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10911$as_echo "yes" >&6; }
10912 else
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914$as_echo "no" >&6; }
10915 fi
10916 ;;
10917 *)
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919$as_echo "no" >&6; }
10920 ;;
10921 esac
10922fi
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935 # Report which library types will actually be built
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10937$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10939$as_echo "$can_build_shared" >&6; }
10940
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10942$as_echo_n "checking whether to build shared libraries... " >&6; }
10943 test "$can_build_shared" = "no" && enable_shared=no
10944
10945 # On AIX, shared libraries and static libraries use the same namespace, and
10946 # are all built from PIC.
10947 case $host_os in
10948 aix3*)
10949 test "$enable_shared" = yes && enable_static=no
10950 if test -n "$RANLIB"; then
10951 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10952 postinstall_cmds='$RANLIB $lib'
10953 fi
10954 ;;
10955
10956 aix[4-9]*)
10957 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10958 test "$enable_shared" = yes && enable_static=no
10959 fi
10960 ;;
10961 esac
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10963$as_echo "$enable_shared" >&6; }
10964
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10966$as_echo_n "checking whether to build static libraries... " >&6; }
10967 # Make sure either enable_shared or enable_static is yes.
10968 test "$enable_shared" = yes || enable_static=yes
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10970$as_echo "$enable_static" >&6; }
10971
10972
10973
10974
10975fi
10976ac_ext=c
10977ac_cpp='$CPP $CPPFLAGS'
10978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10980ac_compiler_gnu=$ac_cv_c_compiler_gnu
10981
10982CC="$lt_save_CC"
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996 ac_config_commands="$ac_config_commands libtool"
10997
10998
10999
11000
11001# Only expand once:
11002
11003
11004
11005
11006
11007
11008
11009ac_ext=cpp
11010ac_cpp='$CXXCPP $CPPFLAGS'
11011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11014if test -z "$CXX"; then
11015 if test -n "$CCC"; then
11016 CXX=$CCC
11017 else
11018 if test -n "$ac_tool_prefix"; then
11019 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11020 do
11021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11022set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024$as_echo_n "checking for $ac_word... " >&6; }
11025if ${ac_cv_prog_CXX+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027else
11028 if test -n "$CXX"; then
11029 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11030else
11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11038 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042done
11043 done
11044IFS=$as_save_IFS
11045
11046fi
11047fi
11048CXX=$ac_cv_prog_CXX
11049if test -n "$CXX"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11051$as_echo "$CXX" >&6; }
11052else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054$as_echo "no" >&6; }
11055fi
11056
11057
11058 test -n "$CXX" && break
11059 done
11060fi
11061if test -z "$CXX"; then
11062 ac_ct_CXX=$CXX
11063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11064do
11065 # Extract the first word of "$ac_prog", so it can be a program name with args.
11066set dummy $ac_prog; ac_word=$2
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068$as_echo_n "checking for $ac_word... " >&6; }
11069if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11070 $as_echo_n "(cached) " >&6
11071else
11072 if test -n "$ac_ct_CXX"; then
11073 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082 ac_cv_prog_ac_ct_CXX="$ac_prog"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087 done
11088IFS=$as_save_IFS
11089
11090fi
11091fi
11092ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11093if test -n "$ac_ct_CXX"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11095$as_echo "$ac_ct_CXX" >&6; }
11096else
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098$as_echo "no" >&6; }
11099fi
11100
11101
11102 test -n "$ac_ct_CXX" && break
11103done
11104
11105 if test "x$ac_ct_CXX" = x; then
11106 CXX="g++"
11107 else
11108 case $cross_compiling:$ac_tool_warned in
11109yes:)
11110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11112ac_tool_warned=yes ;;
11113esac
11114 CXX=$ac_ct_CXX
11115 fi
11116fi
11117
11118 fi
11119fi
11120# Provide some information about the compiler.
11121$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11122set X $ac_compile
11123ac_compiler=$2
11124for ac_option in --version -v -V -qversion; do
11125 { { ac_try="$ac_compiler $ac_option >&5"
11126case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129esac
11130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11131$as_echo "$ac_try_echo"; } >&5
11132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11133 ac_status=$?
11134 if test -s conftest.err; then
11135 sed '10a\
11136... rest of stderr output deleted ...
11137 10q' conftest.err >conftest.er1
11138 cat conftest.er1 >&5
11139 fi
11140 rm -f conftest.er1 conftest.err
11141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11142 test $ac_status = 0; }
11143done
11144
11145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11146$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11147if ${ac_cv_cxx_compiler_gnu+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149else
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151/* end confdefs.h. */
11152
11153int
11154main ()
11155{
11156#ifndef __GNUC__
11157 choke me
11158#endif
11159
11160 ;
11161 return 0;
11162}
11163_ACEOF
11164if ac_fn_cxx_try_compile "$LINENO"; then :
11165 ac_compiler_gnu=yes
11166else
11167 ac_compiler_gnu=no
11168fi
11169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11171
11172fi
11173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11174$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11175if test $ac_compiler_gnu = yes; then
11176 GXX=yes
11177else
11178 GXX=
11179fi
11180ac_test_CXXFLAGS=${CXXFLAGS+set}
11181ac_save_CXXFLAGS=$CXXFLAGS
11182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11183$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11184if ${ac_cv_prog_cxx_g+:} false; then :
11185 $as_echo_n "(cached) " >&6
11186else
11187 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11188 ac_cxx_werror_flag=yes
11189 ac_cv_prog_cxx_g=no
11190 CXXFLAGS="-g"
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h. */
11193
11194int
11195main ()
11196{
11197
11198 ;
11199 return 0;
11200}
11201_ACEOF
11202if ac_fn_cxx_try_compile "$LINENO"; then :
11203 ac_cv_prog_cxx_g=yes
11204else
11205 CXXFLAGS=""
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207/* end confdefs.h. */
11208
11209int
11210main ()
11211{
11212
11213 ;
11214 return 0;
11215}
11216_ACEOF
11217if ac_fn_cxx_try_compile "$LINENO"; then :
11218
11219else
11220 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11221 CXXFLAGS="-g"
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223/* end confdefs.h. */
11224
11225int
11226main ()
11227{
11228
11229 ;
11230 return 0;
11231}
11232_ACEOF
11233if ac_fn_cxx_try_compile "$LINENO"; then :
11234 ac_cv_prog_cxx_g=yes
11235fi
11236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237fi
11238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239fi
11240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11242fi
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11244$as_echo "$ac_cv_prog_cxx_g" >&6; }
11245if test "$ac_test_CXXFLAGS" = set; then
11246 CXXFLAGS=$ac_save_CXXFLAGS
11247elif test $ac_cv_prog_cxx_g = yes; then
11248 if test "$GXX" = yes; then
11249 CXXFLAGS="-g -O2"
11250 else
11251 CXXFLAGS="-g"
11252 fi
11253else
11254 if test "$GXX" = yes; then
11255 CXXFLAGS="-O2"
11256 else
11257 CXXFLAGS=
11258 fi
11259fi
11260ac_ext=c
11261ac_cpp='$CPP $CPPFLAGS'
11262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11264ac_compiler_gnu=$ac_cv_c_compiler_gnu
11265
11266
11267ac_ext=cpp
11268ac_cpp='$CXXCPP $CPPFLAGS'
11269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11272if test -z "$CXX"; then
11273 if test -n "$CCC"; then
11274 CXX=$CCC
11275 else
11276 if test -n "$ac_tool_prefix"; then
11277 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11278 do
11279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11280set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282$as_echo_n "checking for $ac_word... " >&6; }
11283if ${ac_cv_prog_CXX+:} false; then :
11284 $as_echo_n "(cached) " >&6
11285else
11286 if test -n "$CXX"; then
11287 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11288else
11289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290for as_dir in $PATH
11291do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11296 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11299 fi
11300done
11301 done
11302IFS=$as_save_IFS
11303
11304fi
11305fi
11306CXX=$ac_cv_prog_CXX
11307if test -n "$CXX"; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11309$as_echo "$CXX" >&6; }
11310else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312$as_echo "no" >&6; }
11313fi
11314
11315
11316 test -n "$CXX" && break
11317 done
11318fi
11319if test -z "$CXX"; then
11320 ac_ct_CXX=$CXX
11321 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11322do
11323 # Extract the first word of "$ac_prog", so it can be a program name with args.
11324set dummy $ac_prog; ac_word=$2
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11326$as_echo_n "checking for $ac_word... " >&6; }
11327if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11328 $as_echo_n "(cached) " >&6
11329else
11330 if test -n "$ac_ct_CXX"; then
11331 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11332else
11333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334for as_dir in $PATH
11335do
11336 IFS=$as_save_IFS
11337 test -z "$as_dir" && as_dir=.
11338 for ac_exec_ext in '' $ac_executable_extensions; do
11339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11340 ac_cv_prog_ac_ct_CXX="$ac_prog"
11341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11342 break 2
11343 fi
11344done
11345 done
11346IFS=$as_save_IFS
11347
11348fi
11349fi
11350ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11351if test -n "$ac_ct_CXX"; then
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11353$as_echo "$ac_ct_CXX" >&6; }
11354else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356$as_echo "no" >&6; }
11357fi
11358
11359
11360 test -n "$ac_ct_CXX" && break
11361done
11362
11363 if test "x$ac_ct_CXX" = x; then
11364 CXX="g++"
11365 else
11366 case $cross_compiling:$ac_tool_warned in
11367yes:)
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11370ac_tool_warned=yes ;;
11371esac
11372 CXX=$ac_ct_CXX
11373 fi
11374fi
11375
11376 fi
11377fi
11378# Provide some information about the compiler.
11379$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11380set X $ac_compile
11381ac_compiler=$2
11382for ac_option in --version -v -V -qversion; do
11383 { { ac_try="$ac_compiler $ac_option >&5"
11384case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
11388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11389$as_echo "$ac_try_echo"; } >&5
11390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11391 ac_status=$?
11392 if test -s conftest.err; then
11393 sed '10a\
11394... rest of stderr output deleted ...
11395 10q' conftest.err >conftest.er1
11396 cat conftest.er1 >&5
11397 fi
11398 rm -f conftest.er1 conftest.err
11399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11400 test $ac_status = 0; }
11401done
11402
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11404$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11405if ${ac_cv_cxx_compiler_gnu+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407else
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409/* end confdefs.h. */
11410
11411int
11412main ()
11413{
11414#ifndef __GNUC__
11415 choke me
11416#endif
11417
11418 ;
11419 return 0;
11420}
11421_ACEOF
11422if ac_fn_cxx_try_compile "$LINENO"; then :
11423 ac_compiler_gnu=yes
11424else
11425 ac_compiler_gnu=no
11426fi
11427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11429
11430fi
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11432$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11433if test $ac_compiler_gnu = yes; then
11434 GXX=yes
11435else
11436 GXX=
11437fi
11438ac_test_CXXFLAGS=${CXXFLAGS+set}
11439ac_save_CXXFLAGS=$CXXFLAGS
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11441$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11442if ${ac_cv_prog_cxx_g+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444else
11445 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11446 ac_cxx_werror_flag=yes
11447 ac_cv_prog_cxx_g=no
11448 CXXFLAGS="-g"
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450/* end confdefs.h. */
11451
11452int
11453main ()
11454{
11455
11456 ;
11457 return 0;
11458}
11459_ACEOF
11460if ac_fn_cxx_try_compile "$LINENO"; then :
11461 ac_cv_prog_cxx_g=yes
11462else
11463 CXXFLAGS=""
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465/* end confdefs.h. */
11466
11467int
11468main ()
11469{
11470
11471 ;
11472 return 0;
11473}
11474_ACEOF
11475if ac_fn_cxx_try_compile "$LINENO"; then :
11476
11477else
11478 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11479 CXXFLAGS="-g"
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481/* end confdefs.h. */
11482
11483int
11484main ()
11485{
11486
11487 ;
11488 return 0;
11489}
11490_ACEOF
11491if ac_fn_cxx_try_compile "$LINENO"; then :
11492 ac_cv_prog_cxx_g=yes
11493fi
11494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495fi
11496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497fi
11498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11500fi
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11502$as_echo "$ac_cv_prog_cxx_g" >&6; }
11503if test "$ac_test_CXXFLAGS" = set; then
11504 CXXFLAGS=$ac_save_CXXFLAGS
11505elif test $ac_cv_prog_cxx_g = yes; then
11506 if test "$GXX" = yes; then
11507 CXXFLAGS="-g -O2"
11508 else
11509 CXXFLAGS="-g"
11510 fi
11511else
11512 if test "$GXX" = yes; then
11513 CXXFLAGS="-O2"
11514 else
11515 CXXFLAGS=
11516 fi
11517fi
11518ac_ext=c
11519ac_cpp='$CPP $CPPFLAGS'
11520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522ac_compiler_gnu=$ac_cv_c_compiler_gnu
11523
11524if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11525 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11526 (test "X$CXX" != "Xg++"))) ; then
11527 ac_ext=cpp
11528ac_cpp='$CXXCPP $CPPFLAGS'
11529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11533$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11534if test -z "$CXXCPP"; then
11535 if ${ac_cv_prog_CXXCPP+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537else
11538 # Double quotes because CXXCPP needs to be expanded
11539 for CXXCPP in "$CXX -E" "/lib/cpp"
11540 do
11541 ac_preproc_ok=false
11542for ac_cxx_preproc_warn_flag in '' yes
11543do
11544 # Use a header file that comes with gcc, so configuring glibc
11545 # with a fresh cross-compiler works.
11546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11547 # <limits.h> exists even on freestanding compilers.
11548 # On the NeXT, cc -E runs the code through the compiler's parser,
11549 # not just through cpp. "Syntax error" is here to catch this case.
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551/* end confdefs.h. */
11552#ifdef __STDC__
11553# include <limits.h>
11554#else
11555# include <assert.h>
11556#endif
11557 Syntax error
11558_ACEOF
11559if ac_fn_cxx_try_cpp "$LINENO"; then :
11560
11561else
11562 # Broken: fails on valid input.
11563continue
11564fi
11565rm -f conftest.err conftest.i conftest.$ac_ext
11566
11567 # OK, works on sane cases. Now check whether nonexistent headers
11568 # can be detected and how.
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570/* end confdefs.h. */
11571#include <ac_nonexistent.h>
11572_ACEOF
11573if ac_fn_cxx_try_cpp "$LINENO"; then :
11574 # Broken: success on invalid input.
11575continue
11576else
11577 # Passes both tests.
11578ac_preproc_ok=:
11579break
11580fi
11581rm -f conftest.err conftest.i conftest.$ac_ext
11582
11583done
11584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11585rm -f conftest.i conftest.err conftest.$ac_ext
11586if $ac_preproc_ok; then :
11587 break
11588fi
11589
11590 done
11591 ac_cv_prog_CXXCPP=$CXXCPP
11592
11593fi
11594 CXXCPP=$ac_cv_prog_CXXCPP
11595else
11596 ac_cv_prog_CXXCPP=$CXXCPP
11597fi
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11599$as_echo "$CXXCPP" >&6; }
11600ac_preproc_ok=false
11601for ac_cxx_preproc_warn_flag in '' yes
11602do
11603 # Use a header file that comes with gcc, so configuring glibc
11604 # with a fresh cross-compiler works.
11605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11606 # <limits.h> exists even on freestanding compilers.
11607 # On the NeXT, cc -E runs the code through the compiler's parser,
11608 # not just through cpp. "Syntax error" is here to catch this case.
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610/* end confdefs.h. */
11611#ifdef __STDC__
11612# include <limits.h>
11613#else
11614# include <assert.h>
11615#endif
11616 Syntax error
11617_ACEOF
11618if ac_fn_cxx_try_cpp "$LINENO"; then :
11619
11620else
11621 # Broken: fails on valid input.
11622continue
11623fi
11624rm -f conftest.err conftest.i conftest.$ac_ext
11625
11626 # OK, works on sane cases. Now check whether nonexistent headers
11627 # can be detected and how.
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629/* end confdefs.h. */
11630#include <ac_nonexistent.h>
11631_ACEOF
11632if ac_fn_cxx_try_cpp "$LINENO"; then :
11633 # Broken: success on invalid input.
11634continue
11635else
11636 # Passes both tests.
11637ac_preproc_ok=:
11638break
11639fi
11640rm -f conftest.err conftest.i conftest.$ac_ext
11641
11642done
11643# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11644rm -f conftest.i conftest.err conftest.$ac_ext
11645if $ac_preproc_ok; then :
11646
11647else
11648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11650_lt_caught_CXX_error=yes; }
11651fi
11652
11653ac_ext=c
11654ac_cpp='$CPP $CPPFLAGS'
11655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11657ac_compiler_gnu=$ac_cv_c_compiler_gnu
11658
11659else
11660 _lt_caught_CXX_error=yes
11661fi
11662
11663
11664
11665
11666ac_ext=cpp
11667ac_cpp='$CXXCPP $CPPFLAGS'
11668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11671
11672archive_cmds_need_lc_CXX=no
11673allow_undefined_flag_CXX=
11674always_export_symbols_CXX=no
11675archive_expsym_cmds_CXX=
11676compiler_needs_object_CXX=no
11677export_dynamic_flag_spec_CXX=
11678hardcode_direct_CXX=no
11679hardcode_direct_absolute_CXX=no
11680hardcode_libdir_flag_spec_CXX=
11681hardcode_libdir_flag_spec_ld_CXX=
11682hardcode_libdir_separator_CXX=
11683hardcode_minus_L_CXX=no
11684hardcode_shlibpath_var_CXX=unsupported
11685hardcode_automatic_CXX=no
11686inherit_rpath_CXX=no
11687module_cmds_CXX=
11688module_expsym_cmds_CXX=
11689link_all_deplibs_CXX=unknown
11690old_archive_cmds_CXX=$old_archive_cmds
11691no_undefined_flag_CXX=
11692whole_archive_flag_spec_CXX=
11693enable_shared_with_static_runtimes_CXX=no
11694
11695# Source file extension for C++ test sources.
11696ac_ext=cpp
11697
11698# Object file extension for compiled C++ test sources.
11699objext=o
11700objext_CXX=$objext
11701
11702# No sense in running all these tests if we already determined that
11703# the CXX compiler isn't working. Some variables (like enable_shared)
11704# are currently assumed to apply to all compilers on this platform,
11705# and will be corrupted by setting them based on a non-working compiler.
11706if test "$_lt_caught_CXX_error" != yes; then
11707 # Code to be used in simple compile tests
11708 lt_simple_compile_test_code="int some_variable = 0;"
11709
11710 # Code to be used in simple link tests
11711 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11712
11713 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11714
11715
11716
11717
11718
11719
11720# If no C compiler was specified, use CC.
11721LTCC=${LTCC-"$CC"}
11722
11723# If no C compiler flags were specified, use CFLAGS.
11724LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11725
11726# Allow CC to be a program name with arguments.
11727compiler=$CC
11728
11729
11730 # save warnings/boilerplate of simple test code
11731 ac_outfile=conftest.$ac_objext
11732echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11734_lt_compiler_boilerplate=`cat conftest.err`
11735$RM conftest*
11736
11737 ac_outfile=conftest.$ac_objext
11738echo "$lt_simple_link_test_code" >conftest.$ac_ext
11739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11740_lt_linker_boilerplate=`cat conftest.err`
11741$RM -r conftest*
11742
11743
11744 # Allow CC to be a program name with arguments.
11745 lt_save_CC=$CC
11746 lt_save_LD=$LD
11747 lt_save_GCC=$GCC
11748 GCC=$GXX
11749 lt_save_with_gnu_ld=$with_gnu_ld
11750 lt_save_path_LD=$lt_cv_path_LD
11751 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11752 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11753 else
11754 $as_unset lt_cv_prog_gnu_ld
11755 fi
11756 if test -n "${lt_cv_path_LDCXX+set}"; then
11757 lt_cv_path_LD=$lt_cv_path_LDCXX
11758 else
11759 $as_unset lt_cv_path_LD
11760 fi
11761 test -z "${LDCXX+set}" || LD=$LDCXX
11762 CC=${CXX-"c++"}
11763 compiler=$CC
11764 compiler_CXX=$CC
11765 for cc_temp in $compiler""; do
11766 case $cc_temp in
11767 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11768 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11769 \-*) ;;
11770 *) break;;
11771 esac
11772done
11773cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11774
11775
11776 if test -n "$compiler"; then
11777 # We don't want -fno-exception when compiling C++ code, so set the
11778 # no_builtin_flag separately
11779 if test "$GXX" = yes; then
11780 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11781 else
11782 lt_prog_compiler_no_builtin_flag_CXX=
11783 fi
11784
11785 if test "$GXX" = yes; then
11786 # Set up default GNU C++ configuration
11787
11788
11789
11790# Check whether --with-gnu-ld was given.
11791if test "${with_gnu_ld+set}" = set; then :
11792 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11793else
11794 with_gnu_ld=no
11795fi
11796
11797ac_prog=ld
11798if test "$GCC" = yes; then
11799 # Check if gcc -print-prog-name=ld gives a path.
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11801$as_echo_n "checking for ld used by $CC... " >&6; }
11802 case $host in
11803 *-*-mingw*)
11804 # gcc leaves a trailing carriage return which upsets mingw
11805 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11806 *)
11807 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11808 esac
11809 case $ac_prog in
11810 # Accept absolute paths.
11811 [\\/]* | ?:[\\/]*)
11812 re_direlt='/[^/][^/]*/\.\./'
11813 # Canonicalize the pathname of ld
11814 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11815 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11816 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11817 done
11818 test -z "$LD" && LD="$ac_prog"
11819 ;;
11820 "")
11821 # If it fails, then pretend we aren't using GCC.
11822 ac_prog=ld
11823 ;;
11824 *)
11825 # If it is relative, then search for the first ld in PATH.
11826 with_gnu_ld=unknown
11827 ;;
11828 esac
11829elif test "$with_gnu_ld" = yes; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11831$as_echo_n "checking for GNU ld... " >&6; }
11832else
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11834$as_echo_n "checking for non-GNU ld... " >&6; }
11835fi
11836if ${lt_cv_path_LD+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838else
11839 if test -z "$LD"; then
11840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11841 for ac_dir in $PATH; do
11842 IFS="$lt_save_ifs"
11843 test -z "$ac_dir" && ac_dir=.
11844 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11845 lt_cv_path_LD="$ac_dir/$ac_prog"
11846 # Check to see if the program is GNU ld. I'd rather use --version,
11847 # but apparently some variants of GNU ld only accept -v.
11848 # Break only if it was the GNU/non-GNU ld that we prefer.
11849 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11850 *GNU* | *'with BFD'*)
11851 test "$with_gnu_ld" != no && break
11852 ;;
11853 *)
11854 test "$with_gnu_ld" != yes && break
11855 ;;
11856 esac
11857 fi
11858 done
11859 IFS="$lt_save_ifs"
11860else
11861 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11862fi
11863fi
11864
11865LD="$lt_cv_path_LD"
11866if test -n "$LD"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11868$as_echo "$LD" >&6; }
11869else
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871$as_echo "no" >&6; }
11872fi
11873test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11875$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11876if ${lt_cv_prog_gnu_ld+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878else
11879 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11880case `$LD -v 2>&1 </dev/null` in
11881*GNU* | *'with BFD'*)
11882 lt_cv_prog_gnu_ld=yes
11883 ;;
11884*)
11885 lt_cv_prog_gnu_ld=no
11886 ;;
11887esac
11888fi
11889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11890$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11891with_gnu_ld=$lt_cv_prog_gnu_ld
11892
11893
11894
11895
11896
11897
11898
11899 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11900 # archiving commands below assume that GNU ld is being used.
11901 if test "$with_gnu_ld" = yes; then
11902 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11903 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11904
11905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11906 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11907
11908 # If archive_cmds runs LD, not CC, wlarc should be empty
11909 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11910 # investigate it a little bit more. (MM)
11911 wlarc='${wl}'
11912
11913 # ancient GNU ld didn't support --whole-archive et. al.
11914 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11915 $GREP 'no-whole-archive' > /dev/null; then
11916 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11917 else
11918 whole_archive_flag_spec_CXX=
11919 fi
11920 else
11921 with_gnu_ld=no
11922 wlarc=
11923
11924 # A generic and very simple default shared library creation
11925 # command for GNU C++ for the case where it uses the native
11926 # linker, instead of GNU ld. If possible, this setting should
11927 # overridden to take advantage of the native linker features on
11928 # the platform it is being used on.
11929 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11930 fi
11931
11932 # Commands to make compiler produce verbose output that lists
11933 # what "hidden" libraries, object files and flags are used when
11934 # linking a shared library.
11935 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11936
11937 else
11938 GXX=no
11939 with_gnu_ld=no
11940 wlarc=
11941 fi
11942
11943 # PORTME: fill in a description of your system's C++ link characteristics
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11945$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11946 ld_shlibs_CXX=yes
11947 case $host_os in
11948 aix3*)
11949 # FIXME: insert proper C++ library support
11950 ld_shlibs_CXX=no
11951 ;;
11952 aix[4-9]*)
11953 if test "$host_cpu" = ia64; then
11954 # On IA64, the linker does run time linking by default, so we don't
11955 # have to do anything special.
11956 aix_use_runtimelinking=no
11957 exp_sym_flag='-Bexport'
11958 no_entry_flag=""
11959 else
11960 aix_use_runtimelinking=no
11961
11962 # Test if we are trying to use run time linking or normal
11963 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11964 # need to do runtime linking.
11965 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11966 for ld_flag in $LDFLAGS; do
11967 case $ld_flag in
11968 *-brtl*)
11969 aix_use_runtimelinking=yes
11970 break
11971 ;;
11972 esac
11973 done
11974 ;;
11975 esac
11976
11977 exp_sym_flag='-bexport'
11978 no_entry_flag='-bnoentry'
11979 fi
11980
11981 # When large executables or shared objects are built, AIX ld can
11982 # have problems creating the table of contents. If linking a library
11983 # or program results in "error TOC overflow" add -mminimal-toc to
11984 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11985 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11986
11987 archive_cmds_CXX=''
11988 hardcode_direct_CXX=yes
11989 hardcode_direct_absolute_CXX=yes
11990 hardcode_libdir_separator_CXX=':'
11991 link_all_deplibs_CXX=yes
11992 file_list_spec_CXX='${wl}-f,'
11993
11994 if test "$GXX" = yes; then
11995 case $host_os in aix4.[012]|aix4.[012].*)
11996 # We only want to do this on AIX 4.2 and lower, the check
11997 # below for broken collect2 doesn't work under 4.3+
11998 collect2name=`${CC} -print-prog-name=collect2`
11999 if test -f "$collect2name" &&
12000 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12001 then
12002 # We have reworked collect2
12003 :
12004 else
12005 # We have old collect2
12006 hardcode_direct_CXX=unsupported
12007 # It fails to find uninstalled libraries when the uninstalled
12008 # path is not listed in the libpath. Setting hardcode_minus_L
12009 # to unsupported forces relinking
12010 hardcode_minus_L_CXX=yes
12011 hardcode_libdir_flag_spec_CXX='-L$libdir'
12012 hardcode_libdir_separator_CXX=
12013 fi
12014 esac
12015 shared_flag='-shared'
12016 if test "$aix_use_runtimelinking" = yes; then
12017 shared_flag="$shared_flag "'${wl}-G'
12018 fi
12019 else
12020 # not using gcc
12021 if test "$host_cpu" = ia64; then
12022 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12023 # chokes on -Wl,-G. The following line is correct:
12024 shared_flag='-G'
12025 else
12026 if test "$aix_use_runtimelinking" = yes; then
12027 shared_flag='${wl}-G'
12028 else
12029 shared_flag='${wl}-bM:SRE'
12030 fi
12031 fi
12032 fi
12033
12034 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12035 # It seems that -bexpall does not export symbols beginning with
12036 # underscore (_), so it is better to generate a list of symbols to
12037 # export.
12038 always_export_symbols_CXX=yes
12039 if test "$aix_use_runtimelinking" = yes; then
12040 # Warning - without using the other runtime loading flags (-brtl),
12041 # -berok will link without error, but may produce a broken library.
12042 allow_undefined_flag_CXX='-berok'
12043 # Determine the default libpath from the value encoded in an empty
12044 # executable.
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h. */
12047
12048int
12049main ()
12050{
12051
12052 ;
12053 return 0;
12054}
12055_ACEOF
12056if ac_fn_cxx_try_link "$LINENO"; then :
12057
12058lt_aix_libpath_sed='
12059 /Import File Strings/,/^$/ {
12060 /^0/ {
12061 s/^0 *\(.*\)$/\1/
12062 p
12063 }
12064 }'
12065aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12066# Check for a 64-bit object if we didn't find anything.
12067if test -z "$aix_libpath"; then
12068 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12069fi
12070fi
12071rm -f core conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12073if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12074
12075 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12076
12077 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12078 else
12079 if test "$host_cpu" = ia64; then
12080 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12081 allow_undefined_flag_CXX="-z nodefs"
12082 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12083 else
12084 # Determine the default libpath from the value encoded in an
12085 # empty executable.
12086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12087/* end confdefs.h. */
12088
12089int
12090main ()
12091{
12092
12093 ;
12094 return 0;
12095}
12096_ACEOF
12097if ac_fn_cxx_try_link "$LINENO"; then :
12098
12099lt_aix_libpath_sed='
12100 /Import File Strings/,/^$/ {
12101 /^0/ {
12102 s/^0 *\(.*\)$/\1/
12103 p
12104 }
12105 }'
12106aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12107# Check for a 64-bit object if we didn't find anything.
12108if test -z "$aix_libpath"; then
12109 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12110fi
12111fi
12112rm -f core conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12114if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12115
12116 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12117 # Warning - without using the other run time loading flags,
12118 # -berok will link without error, but may produce a broken library.
12119 no_undefined_flag_CXX=' ${wl}-bernotok'
12120 allow_undefined_flag_CXX=' ${wl}-berok'
12121 # Exported symbols can be pulled into shared objects from archives
12122 whole_archive_flag_spec_CXX='$convenience'
12123 archive_cmds_need_lc_CXX=yes
12124 # This is similar to how AIX traditionally builds its shared
12125 # libraries.
12126 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12127 fi
12128 fi
12129 ;;
12130
12131 beos*)
12132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12133 allow_undefined_flag_CXX=unsupported
12134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12135 # support --undefined. This deserves some investigation. FIXME
12136 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12137 else
12138 ld_shlibs_CXX=no
12139 fi
12140 ;;
12141
12142 chorus*)
12143 case $cc_basename in
12144 *)
12145 # FIXME: insert proper C++ library support
12146 ld_shlibs_CXX=no
12147 ;;
12148 esac
12149 ;;
12150
12151 cygwin* | mingw* | pw32* | cegcc*)
12152 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12153 # as there is no search path for DLLs.
12154 hardcode_libdir_flag_spec_CXX='-L$libdir'
12155 allow_undefined_flag_CXX=unsupported
12156 always_export_symbols_CXX=no
12157 enable_shared_with_static_runtimes_CXX=yes
12158
12159 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12160 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12161 # If the export-symbols file already is a .def file (1st line
12162 # is EXPORTS), use it as is; otherwise, prepend...
12163 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12164 cp $export_symbols $output_objdir/$soname.def;
12165 else
12166 echo EXPORTS > $output_objdir/$soname.def;
12167 cat $export_symbols >> $output_objdir/$soname.def;
12168 fi~
12169 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12170 else
12171 ld_shlibs_CXX=no
12172 fi
12173 ;;
12174 darwin* | rhapsody*)
12175
12176
12177 archive_cmds_need_lc_CXX=no
12178 hardcode_direct_CXX=no
12179 hardcode_automatic_CXX=yes
12180 hardcode_shlibpath_var_CXX=unsupported
12181 whole_archive_flag_spec_CXX=''
12182 link_all_deplibs_CXX=yes
12183 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12184 case $cc_basename in
12185 ifort*) _lt_dar_can_shared=yes ;;
12186 *) _lt_dar_can_shared=$GCC ;;
12187 esac
12188 if test "$_lt_dar_can_shared" = "yes"; then
12189 output_verbose_link_cmd=echo
12190 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12191 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12192 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12193 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12194 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12195 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12196 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12197 fi
12198
12199 else
12200 ld_shlibs_CXX=no
12201 fi
12202
12203 ;;
12204
12205 dgux*)
12206 case $cc_basename in
12207 ec++*)
12208 # FIXME: insert proper C++ library support
12209 ld_shlibs_CXX=no
12210 ;;
12211 ghcx*)
12212 # Green Hills C++ Compiler
12213 # FIXME: insert proper C++ library support
12214 ld_shlibs_CXX=no
12215 ;;
12216 *)
12217 # FIXME: insert proper C++ library support
12218 ld_shlibs_CXX=no
12219 ;;
12220 esac
12221 ;;
12222
12223 freebsd[12]*)
12224 # C++ shared libraries reported to be fairly broken before
12225 # switch to ELF
12226 ld_shlibs_CXX=no
12227 ;;
12228
12229 freebsd-elf*)
12230 archive_cmds_need_lc_CXX=no
12231 ;;
12232
12233 freebsd* | dragonfly*)
12234 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12235 # conventions
12236 ld_shlibs_CXX=yes
12237 ;;
12238
12239 gnu*)
12240 ;;
12241
12242 hpux9*)
12243 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12244 hardcode_libdir_separator_CXX=:
12245 export_dynamic_flag_spec_CXX='${wl}-E'
12246 hardcode_direct_CXX=yes
12247 hardcode_minus_L_CXX=yes # Not in the search PATH,
12248 # but as the default
12249 # location of the library.
12250
12251 case $cc_basename in
12252 CC*)
12253 # FIXME: insert proper C++ library support
12254 ld_shlibs_CXX=no
12255 ;;
12256 aCC*)
12257 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12258 # Commands to make compiler produce verbose output that lists
12259 # what "hidden" libraries, object files and flags are used when
12260 # linking a shared library.
12261 #
12262 # There doesn't appear to be a way to prevent this compiler from
12263 # explicitly linking system object files so we need to strip them
12264 # from the output so that they don't get included in the library
12265 # dependencies.
12266 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12267 ;;
12268 *)
12269 if test "$GXX" = yes; then
12270 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12271 else
12272 # FIXME: insert proper C++ library support
12273 ld_shlibs_CXX=no
12274 fi
12275 ;;
12276 esac
12277 ;;
12278
12279 hpux10*|hpux11*)
12280 if test $with_gnu_ld = no; then
12281 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12282 hardcode_libdir_separator_CXX=:
12283
12284 case $host_cpu in
12285 hppa*64*|ia64*)
12286 ;;
12287 *)
12288 export_dynamic_flag_spec_CXX='${wl}-E'
12289 ;;
12290 esac
12291 fi
12292 case $host_cpu in
12293 hppa*64*|ia64*)
12294 hardcode_direct_CXX=no
12295 hardcode_shlibpath_var_CXX=no
12296 ;;
12297 *)
12298 hardcode_direct_CXX=yes
12299 hardcode_direct_absolute_CXX=yes
12300 hardcode_minus_L_CXX=yes # Not in the search PATH,
12301 # but as the default
12302 # location of the library.
12303 ;;
12304 esac
12305
12306 case $cc_basename in
12307 CC*)
12308 # FIXME: insert proper C++ library support
12309 ld_shlibs_CXX=no
12310 ;;
12311 aCC*)
12312 case $host_cpu in
12313 hppa*64*)
12314 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12315 ;;
12316 ia64*)
12317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12318 ;;
12319 *)
12320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12321 ;;
12322 esac
12323 # Commands to make compiler produce verbose output that lists
12324 # what "hidden" libraries, object files and flags are used when
12325 # linking a shared library.
12326 #
12327 # There doesn't appear to be a way to prevent this compiler from
12328 # explicitly linking system object files so we need to strip them
12329 # from the output so that they don't get included in the library
12330 # dependencies.
12331 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12332 ;;
12333 *)
12334 if test "$GXX" = yes; then
12335 if test $with_gnu_ld = no; then
12336 case $host_cpu in
12337 hppa*64*)
12338 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12339 ;;
12340 ia64*)
12341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12342 ;;
12343 *)
12344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12345 ;;
12346 esac
12347 fi
12348 else
12349 # FIXME: insert proper C++ library support
12350 ld_shlibs_CXX=no
12351 fi
12352 ;;
12353 esac
12354 ;;
12355
12356 interix[3-9]*)
12357 hardcode_direct_CXX=no
12358 hardcode_shlibpath_var_CXX=no
12359 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12360 export_dynamic_flag_spec_CXX='${wl}-E'
12361 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12362 # Instead, shared libraries are loaded at an image base (0x10000000 by
12363 # default) and relocated if they conflict, which is a slow very memory
12364 # consuming and fragmenting process. To avoid this, we pick a random,
12365 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12366 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12367 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12368 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12369 ;;
12370 irix5* | irix6*)
12371 case $cc_basename in
12372 CC*)
12373 # SGI C++
12374 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12375
12376 # Archives containing C++ object files must be created using
12377 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12378 # necessary to make sure instantiated templates are included
12379 # in the archive.
12380 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12381 ;;
12382 *)
12383 if test "$GXX" = yes; then
12384 if test "$with_gnu_ld" = no; then
12385 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12386 else
12387 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12388 fi
12389 fi
12390 link_all_deplibs_CXX=yes
12391 ;;
12392 esac
12393 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12394 hardcode_libdir_separator_CXX=:
12395 inherit_rpath_CXX=yes
12396 ;;
12397
12398 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12399 case $cc_basename in
12400 KCC*)
12401 # Kuck and Associates, Inc. (KAI) C++ Compiler
12402
12403 # KCC will only create a shared library if the output file
12404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12405 # to its proper name (with version) after linking.
12406 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12407 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12408 # Commands to make compiler produce verbose output that lists
12409 # what "hidden" libraries, object files and flags are used when
12410 # linking a shared library.
12411 #
12412 # There doesn't appear to be a way to prevent this compiler from
12413 # explicitly linking system object files so we need to strip them
12414 # from the output so that they don't get included in the library
12415 # dependencies.
12416 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12417
12418 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12419 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12420
12421 # Archives containing C++ object files must be created using
12422 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12423 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12424 ;;
12425 icpc* | ecpc* )
12426 # Intel C++
12427 with_gnu_ld=yes
12428 # version 8.0 and above of icpc choke on multiply defined symbols
12429 # if we add $predep_objects and $postdep_objects, however 7.1 and
12430 # earlier do not add the objects themselves.
12431 case `$CC -V 2>&1` in
12432 *"Version 7."*)
12433 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12434 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12435 ;;
12436 *) # Version 8.0 or newer
12437 tmp_idyn=
12438 case $host_cpu in
12439 ia64*) tmp_idyn=' -i_dynamic';;
12440 esac
12441 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12442 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12443 ;;
12444 esac
12445 archive_cmds_need_lc_CXX=no
12446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12448 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12449 ;;
12450 pgCC* | pgcpp*)
12451 # Portland Group C++ compiler
12452 case `$CC -V` in
12453 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12454 prelink_cmds_CXX='tpldir=Template.dir~
12455 rm -rf $tpldir~
12456 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12457 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12458 old_archive_cmds_CXX='tpldir=Template.dir~
12459 rm -rf $tpldir~
12460 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12461 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12462 $RANLIB $oldlib'
12463 archive_cmds_CXX='tpldir=Template.dir~
12464 rm -rf $tpldir~
12465 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12466 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12467 archive_expsym_cmds_CXX='tpldir=Template.dir~
12468 rm -rf $tpldir~
12469 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12470 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12471 ;;
12472 *) # Version 6 will use weak symbols
12473 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12474 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12475 ;;
12476 esac
12477
12478 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12479 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12480 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12481 ;;
12482 cxx*)
12483 # Compaq C++
12484 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12485 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12486
12487 runpath_var=LD_RUN_PATH
12488 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12489 hardcode_libdir_separator_CXX=:
12490
12491 # Commands to make compiler produce verbose output that lists
12492 # what "hidden" libraries, object files and flags are used when
12493 # linking a shared library.
12494 #
12495 # There doesn't appear to be a way to prevent this compiler from
12496 # explicitly linking system object files so we need to strip them
12497 # from the output so that they don't get included in the library
12498 # dependencies.
12499 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12500 ;;
12501 xl*)
12502 # IBM XL 8.0 on PPC, with GNU ld
12503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12504 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12505 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12506 if test "x$supports_anon_versioning" = xyes; then
12507 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12509 echo "local: *; };" >> $output_objdir/$libname.ver~
12510 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12511 fi
12512 ;;
12513 *)
12514 case `$CC -V 2>&1 | sed 5q` in
12515 *Sun\ C*)
12516 # Sun C++ 5.9
12517 no_undefined_flag_CXX=' -zdefs'
12518 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12519 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12520 hardcode_libdir_flag_spec_CXX='-R$libdir'
12521 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12522 compiler_needs_object_CXX=yes
12523
12524 # Not sure whether something based on
12525 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12526 # would be better.
12527 output_verbose_link_cmd='echo'
12528
12529 # Archives containing C++ object files must be created using
12530 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12531 # necessary to make sure instantiated templates are included
12532 # in the archive.
12533 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12534 ;;
12535 esac
12536 ;;
12537 esac
12538 ;;
12539
12540 lynxos*)
12541 # FIXME: insert proper C++ library support
12542 ld_shlibs_CXX=no
12543 ;;
12544
12545 m88k*)
12546 # FIXME: insert proper C++ library support
12547 ld_shlibs_CXX=no
12548 ;;
12549
12550 mvs*)
12551 case $cc_basename in
12552 cxx*)
12553 # FIXME: insert proper C++ library support
12554 ld_shlibs_CXX=no
12555 ;;
12556 *)
12557 # FIXME: insert proper C++ library support
12558 ld_shlibs_CXX=no
12559 ;;
12560 esac
12561 ;;
12562
12563 netbsd*)
12564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12565 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12566 wlarc=
12567 hardcode_libdir_flag_spec_CXX='-R$libdir'
12568 hardcode_direct_CXX=yes
12569 hardcode_shlibpath_var_CXX=no
12570 fi
12571 # Workaround some broken pre-1.5 toolchains
12572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12573 ;;
12574
12575 *nto* | *qnx*)
12576 ld_shlibs_CXX=yes
12577 ;;
12578
12579 openbsd2*)
12580 # C++ shared libraries are fairly broken
12581 ld_shlibs_CXX=no
12582 ;;
12583
12584 openbsd*)
12585 if test -f /usr/libexec/ld.so; then
12586 hardcode_direct_CXX=yes
12587 hardcode_shlibpath_var_CXX=no
12588 hardcode_direct_absolute_CXX=yes
12589 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12590 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12592 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12593 export_dynamic_flag_spec_CXX='${wl}-E'
12594 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12595 fi
12596 output_verbose_link_cmd=echo
12597 else
12598 ld_shlibs_CXX=no
12599 fi
12600 ;;
12601
12602 osf3* | osf4* | osf5*)
12603 case $cc_basename in
12604 KCC*)
12605 # Kuck and Associates, Inc. (KAI) C++ Compiler
12606
12607 # KCC will only create a shared library if the output file
12608 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12609 # to its proper name (with version) after linking.
12610 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12611
12612 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12613 hardcode_libdir_separator_CXX=:
12614
12615 # Archives containing C++ object files must be created using
12616 # the KAI C++ compiler.
12617 case $host in
12618 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12619 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12620 esac
12621 ;;
12622 RCC*)
12623 # Rational C++ 2.4.1
12624 # FIXME: insert proper C++ library support
12625 ld_shlibs_CXX=no
12626 ;;
12627 cxx*)
12628 case $host in
12629 osf3*)
12630 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12631 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12633 ;;
12634 *)
12635 allow_undefined_flag_CXX=' -expect_unresolved \*'
12636 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12637 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12638 echo "-hidden">> $lib.exp~
12639 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12640 $RM $lib.exp'
12641 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12642 ;;
12643 esac
12644
12645 hardcode_libdir_separator_CXX=:
12646
12647 # Commands to make compiler produce verbose output that lists
12648 # what "hidden" libraries, object files and flags are used when
12649 # linking a shared library.
12650 #
12651 # There doesn't appear to be a way to prevent this compiler from
12652 # explicitly linking system object files so we need to strip them
12653 # from the output so that they don't get included in the library
12654 # dependencies.
12655 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12656 ;;
12657 *)
12658 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12659 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12660 case $host in
12661 osf3*)
12662 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12663 ;;
12664 *)
12665 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12666 ;;
12667 esac
12668
12669 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12670 hardcode_libdir_separator_CXX=:
12671
12672 # Commands to make compiler produce verbose output that lists
12673 # what "hidden" libraries, object files and flags are used when
12674 # linking a shared library.
12675 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12676
12677 else
12678 # FIXME: insert proper C++ library support
12679 ld_shlibs_CXX=no
12680 fi
12681 ;;
12682 esac
12683 ;;
12684
12685 psos*)
12686 # FIXME: insert proper C++ library support
12687 ld_shlibs_CXX=no
12688 ;;
12689
12690 sunos4*)
12691 case $cc_basename in
12692 CC*)
12693 # Sun C++ 4.x
12694 # FIXME: insert proper C++ library support
12695 ld_shlibs_CXX=no
12696 ;;
12697 lcc*)
12698 # Lucid
12699 # FIXME: insert proper C++ library support
12700 ld_shlibs_CXX=no
12701 ;;
12702 *)
12703 # FIXME: insert proper C++ library support
12704 ld_shlibs_CXX=no
12705 ;;
12706 esac
12707 ;;
12708
12709 solaris*)
12710 case $cc_basename in
12711 CC*)
12712 # Sun C++ 4.2, 5.x and Centerline C++
12713 archive_cmds_need_lc_CXX=yes
12714 no_undefined_flag_CXX=' -zdefs'
12715 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12716 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12717 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12718
12719 hardcode_libdir_flag_spec_CXX='-R$libdir'
12720 hardcode_shlibpath_var_CXX=no
12721 case $host_os in
12722 solaris2.[0-5] | solaris2.[0-5].*) ;;
12723 *)
12724 # The compiler driver will combine and reorder linker options,
12725 # but understands `-z linker_flag'.
12726 # Supported since Solaris 2.6 (maybe 2.5.1?)
12727 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12728 ;;
12729 esac
12730 link_all_deplibs_CXX=yes
12731
12732 output_verbose_link_cmd='echo'
12733
12734 # Archives containing C++ object files must be created using
12735 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12736 # necessary to make sure instantiated templates are included
12737 # in the archive.
12738 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12739 ;;
12740 gcx*)
12741 # Green Hills C++ Compiler
12742 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12743
12744 # The C++ compiler must be used to create the archive.
12745 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12746 ;;
12747 *)
12748 # GNU C++ compiler with Solaris linker
12749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12750 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12751 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12752 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12753 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12754 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12755
12756 # Commands to make compiler produce verbose output that lists
12757 # what "hidden" libraries, object files and flags are used when
12758 # linking a shared library.
12759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12760 else
12761 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12762 # platform.
12763 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12764 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12765 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12766
12767 # Commands to make compiler produce verbose output that lists
12768 # what "hidden" libraries, object files and flags are used when
12769 # linking a shared library.
12770 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12771 fi
12772
12773 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12774 case $host_os in
12775 solaris2.[0-5] | solaris2.[0-5].*) ;;
12776 *)
12777 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12778 ;;
12779 esac
12780 fi
12781 ;;
12782 esac
12783 ;;
12784
12785 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12786 no_undefined_flag_CXX='${wl}-z,text'
12787 archive_cmds_need_lc_CXX=no
12788 hardcode_shlibpath_var_CXX=no
12789 runpath_var='LD_RUN_PATH'
12790
12791 case $cc_basename in
12792 CC*)
12793 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12794 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12795 ;;
12796 *)
12797 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12798 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12799 ;;
12800 esac
12801 ;;
12802
12803 sysv5* | sco3.2v5* | sco5v6*)
12804 # Note: We can NOT use -z defs as we might desire, because we do not
12805 # link with -lc, and that would cause any symbols used from libc to
12806 # always be unresolved, which means just about no library would
12807 # ever link correctly. If we're not using GNU ld we use -z text
12808 # though, which does catch some bad symbols but isn't as heavy-handed
12809 # as -z defs.
12810 no_undefined_flag_CXX='${wl}-z,text'
12811 allow_undefined_flag_CXX='${wl}-z,nodefs'
12812 archive_cmds_need_lc_CXX=no
12813 hardcode_shlibpath_var_CXX=no
12814 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12815 hardcode_libdir_separator_CXX=':'
12816 link_all_deplibs_CXX=yes
12817 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12818 runpath_var='LD_RUN_PATH'
12819
12820 case $cc_basename in
12821 CC*)
12822 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12823 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12824 ;;
12825 *)
12826 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12827 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12828 ;;
12829 esac
12830 ;;
12831
12832 tandem*)
12833 case $cc_basename in
12834 NCC*)
12835 # NonStop-UX NCC 3.20
12836 # FIXME: insert proper C++ library support
12837 ld_shlibs_CXX=no
12838 ;;
12839 *)
12840 # FIXME: insert proper C++ library support
12841 ld_shlibs_CXX=no
12842 ;;
12843 esac
12844 ;;
12845
12846 vxworks*)
12847 # FIXME: insert proper C++ library support
12848 ld_shlibs_CXX=no
12849 ;;
12850
12851 *)
12852 # FIXME: insert proper C++ library support
12853 ld_shlibs_CXX=no
12854 ;;
12855 esac
12856
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12858$as_echo "$ld_shlibs_CXX" >&6; }
12859 test "$ld_shlibs_CXX" = no && can_build_shared=no
12860
12861 GCC_CXX="$GXX"
12862 LD_CXX="$LD"
12863
12864 ## CAVEAT EMPTOR:
12865 ## There is no encapsulation within the following macros, do not change
12866 ## the running order or otherwise move them around unless you know exactly
12867 ## what you are doing...
12868 # Dependencies to place before and after the object being linked:
12869predep_objects_CXX=
12870postdep_objects_CXX=
12871predeps_CXX=
12872postdeps_CXX=
12873compiler_lib_search_path_CXX=
12874
12875cat > conftest.$ac_ext <<_LT_EOF
12876class Foo
12877{
12878public:
12879 Foo (void) { a = 0; }
12880private:
12881 int a;
12882};
12883_LT_EOF
12884
12885if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12886 (eval $ac_compile) 2>&5
12887 ac_status=$?
12888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12889 test $ac_status = 0; }; then
12890 # Parse the compiler output and extract the necessary
12891 # objects, libraries and library flags.
12892
12893 # Sentinel used to keep track of whether or not we are before
12894 # the conftest object file.
12895 pre_test_object_deps_done=no
12896
12897 for p in `eval "$output_verbose_link_cmd"`; do
12898 case $p in
12899
12900 -L* | -R* | -l*)
12901 # Some compilers place space between "-{L,R}" and the path.
12902 # Remove the space.
12903 if test $p = "-L" ||
12904 test $p = "-R"; then
12905 prev=$p
12906 continue
12907 else
12908 prev=
12909 fi
12910
12911 if test "$pre_test_object_deps_done" = no; then
12912 case $p in
12913 -L* | -R*)
12914 # Internal compiler library paths should come after those
12915 # provided the user. The postdeps already come after the
12916 # user supplied libs so there is no need to process them.
12917 if test -z "$compiler_lib_search_path_CXX"; then
12918 compiler_lib_search_path_CXX="${prev}${p}"
12919 else
12920 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12921 fi
12922 ;;
12923 # The "-l" case would never come before the object being
12924 # linked, so don't bother handling this case.
12925 esac
12926 else
12927 if test -z "$postdeps_CXX"; then
12928 postdeps_CXX="${prev}${p}"
12929 else
12930 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12931 fi
12932 fi
12933 ;;
12934
12935 *.$objext)
12936 # This assumes that the test object file only shows up
12937 # once in the compiler output.
12938 if test "$p" = "conftest.$objext"; then
12939 pre_test_object_deps_done=yes
12940 continue
12941 fi
12942
12943 if test "$pre_test_object_deps_done" = no; then
12944 if test -z "$predep_objects_CXX"; then
12945 predep_objects_CXX="$p"
12946 else
12947 predep_objects_CXX="$predep_objects_CXX $p"
12948 fi
12949 else
12950 if test -z "$postdep_objects_CXX"; then
12951 postdep_objects_CXX="$p"
12952 else
12953 postdep_objects_CXX="$postdep_objects_CXX $p"
12954 fi
12955 fi
12956 ;;
12957
12958 *) ;; # Ignore the rest.
12959
12960 esac
12961 done
12962
12963 # Clean up.
12964 rm -f a.out a.exe
12965else
12966 echo "libtool.m4: error: problem compiling CXX test program"
12967fi
12968
12969$RM -f confest.$objext
12970
12971# PORTME: override above test on systems where it is broken
12972case $host_os in
12973interix[3-9]*)
12974 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12975 # hack all around it, let's just trust "g++" to DTRT.
12976 predep_objects_CXX=
12977 postdep_objects_CXX=
12978 postdeps_CXX=
12979 ;;
12980
12981linux*)
12982 case `$CC -V 2>&1 | sed 5q` in
12983 *Sun\ C*)
12984 # Sun C++ 5.9
12985
12986 # The more standards-conforming stlport4 library is
12987 # incompatible with the Cstd library. Avoid specifying
12988 # it if it's in CXXFLAGS. Ignore libCrun as
12989 # -library=stlport4 depends on it.
12990 case " $CXX $CXXFLAGS " in
12991 *" -library=stlport4 "*)
12992 solaris_use_stlport4=yes
12993 ;;
12994 esac
12995
12996 if test "$solaris_use_stlport4" != yes; then
12997 postdeps_CXX='-library=Cstd -library=Crun'
12998 fi
12999 ;;
13000 esac
13001 ;;
13002
13003solaris*)
13004 case $cc_basename in
13005 CC*)
13006 # The more standards-conforming stlport4 library is
13007 # incompatible with the Cstd library. Avoid specifying
13008 # it if it's in CXXFLAGS. Ignore libCrun as
13009 # -library=stlport4 depends on it.
13010 case " $CXX $CXXFLAGS " in
13011 *" -library=stlport4 "*)
13012 solaris_use_stlport4=yes
13013 ;;
13014 esac
13015
13016 # Adding this requires a known-good setup of shared libraries for
13017 # Sun compiler versions before 5.6, else PIC objects from an old
13018 # archive will be linked into the output, leading to subtle bugs.
13019 if test "$solaris_use_stlport4" != yes; then
13020 postdeps_CXX='-library=Cstd -library=Crun'
13021 fi
13022 ;;
13023 esac
13024 ;;
13025esac
13026
13027
13028case " $postdeps_CXX " in
13029*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13030esac
13031 compiler_lib_search_dirs_CXX=
13032if test -n "${compiler_lib_search_path_CXX}"; then
13033 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13034fi
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066 lt_prog_compiler_wl_CXX=
13067lt_prog_compiler_pic_CXX=
13068lt_prog_compiler_static_CXX=
13069
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13071$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13072
13073 # C++ specific cases for pic, static, wl, etc.
13074 if test "$GXX" = yes; then
13075 lt_prog_compiler_wl_CXX='-Wl,'
13076 lt_prog_compiler_static_CXX='-static'
13077
13078 case $host_os in
13079 aix*)
13080 # All AIX code is PIC.
13081 if test "$host_cpu" = ia64; then
13082 # AIX 5 now supports IA64 processor
13083 lt_prog_compiler_static_CXX='-Bstatic'
13084 fi
13085 ;;
13086
13087 amigaos*)
13088 case $host_cpu in
13089 powerpc)
13090 # see comment about AmigaOS4 .so support
13091 lt_prog_compiler_pic_CXX='-fPIC'
13092 ;;
13093 m68k)
13094 # FIXME: we need at least 68020 code to build shared libraries, but
13095 # adding the `-m68020' flag to GCC prevents building anything better,
13096 # like `-m68040'.
13097 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13098 ;;
13099 esac
13100 ;;
13101
13102 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13103 # PIC is the default for these OSes.
13104 ;;
13105 mingw* | cygwin* | os2* | pw32* | cegcc*)
13106 # This hack is so that the source file can tell whether it is being
13107 # built for inclusion in a dll (and should export symbols for example).
13108 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13109 # (--disable-auto-import) libraries
13110 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13111 ;;
13112 darwin* | rhapsody*)
13113 # PIC is the default on this platform
13114 # Common symbols not allowed in MH_DYLIB files
13115 lt_prog_compiler_pic_CXX='-fno-common'
13116 ;;
13117 *djgpp*)
13118 # DJGPP does not support shared libraries at all
13119 lt_prog_compiler_pic_CXX=
13120 ;;
13121 interix[3-9]*)
13122 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13123 # Instead, we relocate shared libraries at runtime.
13124 ;;
13125 sysv4*MP*)
13126 if test -d /usr/nec; then
13127 lt_prog_compiler_pic_CXX=-Kconform_pic
13128 fi
13129 ;;
13130 hpux*)
13131 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13132 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13133 # sets the default TLS model and affects inlining.
13134 case $host_cpu in
13135 hppa*64*)
13136 ;;
13137 *)
13138 lt_prog_compiler_pic_CXX='-fPIC'
13139 ;;
13140 esac
13141 ;;
13142 *qnx* | *nto*)
13143 # QNX uses GNU C++, but need to define -shared option too, otherwise
13144 # it will coredump.
13145 lt_prog_compiler_pic_CXX='-fPIC -shared'
13146 ;;
13147 *)
13148 lt_prog_compiler_pic_CXX='-fPIC'
13149 ;;
13150 esac
13151 else
13152 case $host_os in
13153 aix[4-9]*)
13154 # All AIX code is PIC.
13155 if test "$host_cpu" = ia64; then
13156 # AIX 5 now supports IA64 processor
13157 lt_prog_compiler_static_CXX='-Bstatic'
13158 else
13159 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13160 fi
13161 ;;
13162 chorus*)
13163 case $cc_basename in
13164 cxch68*)
13165 # Green Hills C++ Compiler
13166 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13167 ;;
13168 esac
13169 ;;
13170 dgux*)
13171 case $cc_basename in
13172 ec++*)
13173 lt_prog_compiler_pic_CXX='-KPIC'
13174 ;;
13175 ghcx*)
13176 # Green Hills C++ Compiler
13177 lt_prog_compiler_pic_CXX='-pic'
13178 ;;
13179 *)
13180 ;;
13181 esac
13182 ;;
13183 freebsd* | dragonfly*)
13184 # FreeBSD uses GNU C++
13185 ;;
13186 hpux9* | hpux10* | hpux11*)
13187 case $cc_basename in
13188 CC*)
13189 lt_prog_compiler_wl_CXX='-Wl,'
13190 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13191 if test "$host_cpu" != ia64; then
13192 lt_prog_compiler_pic_CXX='+Z'
13193 fi
13194 ;;
13195 aCC*)
13196 lt_prog_compiler_wl_CXX='-Wl,'
13197 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13198 case $host_cpu in
13199 hppa*64*|ia64*)
13200 # +Z the default
13201 ;;
13202 *)
13203 lt_prog_compiler_pic_CXX='+Z'
13204 ;;
13205 esac
13206 ;;
13207 *)
13208 ;;
13209 esac
13210 ;;
13211 interix*)
13212 # This is c89, which is MS Visual C++ (no shared libs)
13213 # Anyone wants to do a port?
13214 ;;
13215 irix5* | irix6* | nonstopux*)
13216 case $cc_basename in
13217 CC*)
13218 lt_prog_compiler_wl_CXX='-Wl,'
13219 lt_prog_compiler_static_CXX='-non_shared'
13220 # CC pic flag -KPIC is the default.
13221 ;;
13222 *)
13223 ;;
13224 esac
13225 ;;
13226 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13227 case $cc_basename in
13228 KCC*)
13229 # KAI C++ Compiler
13230 lt_prog_compiler_wl_CXX='--backend -Wl,'
13231 lt_prog_compiler_pic_CXX='-fPIC'
13232 ;;
13233 ecpc* )
13234 # old Intel C++ for x86_64 which still supported -KPIC.
13235 lt_prog_compiler_wl_CXX='-Wl,'
13236 lt_prog_compiler_pic_CXX='-KPIC'
13237 lt_prog_compiler_static_CXX='-static'
13238 ;;
13239 icpc* )
13240 # Intel C++, used to be incompatible with GCC.
13241 # ICC 10 doesn't accept -KPIC any more.
13242 lt_prog_compiler_wl_CXX='-Wl,'
13243 lt_prog_compiler_pic_CXX='-fPIC'
13244 lt_prog_compiler_static_CXX='-static'
13245 ;;
13246 pgCC* | pgcpp*)
13247 # Portland Group C++ compiler
13248 lt_prog_compiler_wl_CXX='-Wl,'
13249 lt_prog_compiler_pic_CXX='-fpic'
13250 lt_prog_compiler_static_CXX='-Bstatic'
13251 ;;
13252 cxx*)
13253 # Compaq C++
13254 # Make sure the PIC flag is empty. It appears that all Alpha
13255 # Linux and Compaq Tru64 Unix objects are PIC.
13256 lt_prog_compiler_pic_CXX=
13257 lt_prog_compiler_static_CXX='-non_shared'
13258 ;;
13259 xlc* | xlC*)
13260 # IBM XL 8.0 on PPC
13261 lt_prog_compiler_wl_CXX='-Wl,'
13262 lt_prog_compiler_pic_CXX='-qpic'
13263 lt_prog_compiler_static_CXX='-qstaticlink'
13264 ;;
13265 *)
13266 case `$CC -V 2>&1 | sed 5q` in
13267 *Sun\ C*)
13268 # Sun C++ 5.9
13269 lt_prog_compiler_pic_CXX='-KPIC'
13270 lt_prog_compiler_static_CXX='-Bstatic'
13271 lt_prog_compiler_wl_CXX='-Qoption ld '
13272 ;;
13273 esac
13274 ;;
13275 esac
13276 ;;
13277 lynxos*)
13278 ;;
13279 m88k*)
13280 ;;
13281 mvs*)
13282 case $cc_basename in
13283 cxx*)
13284 lt_prog_compiler_pic_CXX='-W c,exportall'
13285 ;;
13286 *)
13287 ;;
13288 esac
13289 ;;
13290 netbsd* | netbsdelf*-gnu)
13291 ;;
13292 *qnx* | *nto*)
13293 # QNX uses GNU C++, but need to define -shared option too, otherwise
13294 # it will coredump.
13295 lt_prog_compiler_pic_CXX='-fPIC -shared'
13296 ;;
13297 osf3* | osf4* | osf5*)
13298 case $cc_basename in
13299 KCC*)
13300 lt_prog_compiler_wl_CXX='--backend -Wl,'
13301 ;;
13302 RCC*)
13303 # Rational C++ 2.4.1
13304 lt_prog_compiler_pic_CXX='-pic'
13305 ;;
13306 cxx*)
13307 # Digital/Compaq C++
13308 lt_prog_compiler_wl_CXX='-Wl,'
13309 # Make sure the PIC flag is empty. It appears that all Alpha
13310 # Linux and Compaq Tru64 Unix objects are PIC.
13311 lt_prog_compiler_pic_CXX=
13312 lt_prog_compiler_static_CXX='-non_shared'
13313 ;;
13314 *)
13315 ;;
13316 esac
13317 ;;
13318 psos*)
13319 ;;
13320 solaris*)
13321 case $cc_basename in
13322 CC*)
13323 # Sun C++ 4.2, 5.x and Centerline C++
13324 lt_prog_compiler_pic_CXX='-KPIC'
13325 lt_prog_compiler_static_CXX='-Bstatic'
13326 lt_prog_compiler_wl_CXX='-Qoption ld '
13327 ;;
13328 gcx*)
13329 # Green Hills C++ Compiler
13330 lt_prog_compiler_pic_CXX='-PIC'
13331 ;;
13332 *)
13333 ;;
13334 esac
13335 ;;
13336 sunos4*)
13337 case $cc_basename in
13338 CC*)
13339 # Sun C++ 4.x
13340 lt_prog_compiler_pic_CXX='-pic'
13341 lt_prog_compiler_static_CXX='-Bstatic'
13342 ;;
13343 lcc*)
13344 # Lucid
13345 lt_prog_compiler_pic_CXX='-pic'
13346 ;;
13347 *)
13348 ;;
13349 esac
13350 ;;
13351 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13352 case $cc_basename in
13353 CC*)
13354 lt_prog_compiler_wl_CXX='-Wl,'
13355 lt_prog_compiler_pic_CXX='-KPIC'
13356 lt_prog_compiler_static_CXX='-Bstatic'
13357 ;;
13358 esac
13359 ;;
13360 tandem*)
13361 case $cc_basename in
13362 NCC*)
13363 # NonStop-UX NCC 3.20
13364 lt_prog_compiler_pic_CXX='-KPIC'
13365 ;;
13366 *)
13367 ;;
13368 esac
13369 ;;
13370 vxworks*)
13371 ;;
13372 *)
13373 lt_prog_compiler_can_build_shared_CXX=no
13374 ;;
13375 esac
13376 fi
13377
13378case $host_os in
13379 # For platforms which do not support PIC, -DPIC is meaningless:
13380 *djgpp*)
13381 lt_prog_compiler_pic_CXX=
13382 ;;
13383 *)
13384 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13385 ;;
13386esac
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13388$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13389
13390
13391
13392#
13393# Check to make sure the PIC flag actually works.
13394#
13395if test -n "$lt_prog_compiler_pic_CXX"; then
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13397$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13398if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13399 $as_echo_n "(cached) " >&6
13400else
13401 lt_cv_prog_compiler_pic_works_CXX=no
13402 ac_outfile=conftest.$ac_objext
13403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13404 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13405 # Insert the option either (1) after the last *FLAGS variable, or
13406 # (2) before a word containing "conftest.", or (3) at the end.
13407 # Note that $ac_compile itself does not contain backslashes and begins
13408 # with a dollar sign (not a hyphen), so the echo should work correctly.
13409 # The option is referenced via a variable to avoid confusing sed.
13410 lt_compile=`echo "$ac_compile" | $SED \
13411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13413 -e 's:$: $lt_compiler_flag:'`
13414 (eval echo "\"\$as_me:13414: $lt_compile\"" >&5)
13415 (eval "$lt_compile" 2>conftest.err)
13416 ac_status=$?
13417 cat conftest.err >&5
13418 echo "$as_me:13418: \$? = $ac_status" >&5
13419 if (exit $ac_status) && test -s "$ac_outfile"; then
13420 # The compiler can only warn and ignore the option if not recognized
13421 # So say no if there are warnings other than the usual output.
13422 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13425 lt_cv_prog_compiler_pic_works_CXX=yes
13426 fi
13427 fi
13428 $RM conftest*
13429
13430fi
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13432$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13433
13434if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13435 case $lt_prog_compiler_pic_CXX in
13436 "" | " "*) ;;
13437 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13438 esac
13439else
13440 lt_prog_compiler_pic_CXX=
13441 lt_prog_compiler_can_build_shared_CXX=no
13442fi
13443
13444fi
13445
13446
13447
13448#
13449# Check to make sure the static flag actually works.
13450#
13451wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13453$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13454if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13455 $as_echo_n "(cached) " >&6
13456else
13457 lt_cv_prog_compiler_static_works_CXX=no
13458 save_LDFLAGS="$LDFLAGS"
13459 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13460 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13462 # The linker can only warn and ignore the option if not recognized
13463 # So say no if there are warnings
13464 if test -s conftest.err; then
13465 # Append any errors to the config.log.
13466 cat conftest.err 1>&5
13467 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13469 if diff conftest.exp conftest.er2 >/dev/null; then
13470 lt_cv_prog_compiler_static_works_CXX=yes
13471 fi
13472 else
13473 lt_cv_prog_compiler_static_works_CXX=yes
13474 fi
13475 fi
13476 $RM -r conftest*
13477 LDFLAGS="$save_LDFLAGS"
13478
13479fi
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13481$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13482
13483if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13484 :
13485else
13486 lt_prog_compiler_static_CXX=
13487fi
13488
13489
13490
13491
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13493$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13494if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13495 $as_echo_n "(cached) " >&6
13496else
13497 lt_cv_prog_compiler_c_o_CXX=no
13498 $RM -r conftest 2>/dev/null
13499 mkdir conftest
13500 cd conftest
13501 mkdir out
13502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13503
13504 lt_compiler_flag="-o out/conftest2.$ac_objext"
13505 # Insert the option either (1) after the last *FLAGS variable, or
13506 # (2) before a word containing "conftest.", or (3) at the end.
13507 # Note that $ac_compile itself does not contain backslashes and begins
13508 # with a dollar sign (not a hyphen), so the echo should work correctly.
13509 lt_compile=`echo "$ac_compile" | $SED \
13510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13512 -e 's:$: $lt_compiler_flag:'`
13513 (eval echo "\"\$as_me:13513: $lt_compile\"" >&5)
13514 (eval "$lt_compile" 2>out/conftest.err)
13515 ac_status=$?
13516 cat out/conftest.err >&5
13517 echo "$as_me:13517: \$? = $ac_status" >&5
13518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13519 then
13520 # The compiler can only warn and ignore the option if not recognized
13521 # So say no if there are warnings
13522 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13525 lt_cv_prog_compiler_c_o_CXX=yes
13526 fi
13527 fi
13528 chmod u+w . 2>&5
13529 $RM conftest*
13530 # SGI C++ compiler will create directory out/ii_files/ for
13531 # template instantiation
13532 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13533 $RM out/* && rmdir out
13534 cd ..
13535 $RM -r conftest
13536 $RM conftest*
13537
13538fi
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13540$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13541
13542
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13545$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13546if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548else
13549 lt_cv_prog_compiler_c_o_CXX=no
13550 $RM -r conftest 2>/dev/null
13551 mkdir conftest
13552 cd conftest
13553 mkdir out
13554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13555
13556 lt_compiler_flag="-o out/conftest2.$ac_objext"
13557 # Insert the option either (1) after the last *FLAGS variable, or
13558 # (2) before a word containing "conftest.", or (3) at the end.
13559 # Note that $ac_compile itself does not contain backslashes and begins
13560 # with a dollar sign (not a hyphen), so the echo should work correctly.
13561 lt_compile=`echo "$ac_compile" | $SED \
13562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13564 -e 's:$: $lt_compiler_flag:'`
13565 (eval echo "\"\$as_me:13565: $lt_compile\"" >&5)
13566 (eval "$lt_compile" 2>out/conftest.err)
13567 ac_status=$?
13568 cat out/conftest.err >&5
13569 echo "$as_me:13569: \$? = $ac_status" >&5
13570 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13571 then
13572 # The compiler can only warn and ignore the option if not recognized
13573 # So say no if there are warnings
13574 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13575 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13576 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13577 lt_cv_prog_compiler_c_o_CXX=yes
13578 fi
13579 fi
13580 chmod u+w . 2>&5
13581 $RM conftest*
13582 # SGI C++ compiler will create directory out/ii_files/ for
13583 # template instantiation
13584 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13585 $RM out/* && rmdir out
13586 cd ..
13587 $RM -r conftest
13588 $RM conftest*
13589
13590fi
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13592$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13593
13594
13595
13596
13597hard_links="nottested"
13598if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13599 # do not overwrite the value of need_locks provided by the user
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13601$as_echo_n "checking if we can lock with hard links... " >&6; }
13602 hard_links=yes
13603 $RM conftest*
13604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13605 touch conftest.a
13606 ln conftest.a conftest.b 2>&5 || hard_links=no
13607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13609$as_echo "$hard_links" >&6; }
13610 if test "$hard_links" = no; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13612$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13613 need_locks=warn
13614 fi
13615else
13616 need_locks=no
13617fi
13618
13619
13620
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13622$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13623
13624 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13625 case $host_os in
13626 aix[4-9]*)
13627 # If we're using GNU nm, then we don't want the "-C" option.
13628 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13629 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13630 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13631 else
13632 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13633 fi
13634 ;;
13635 pw32*)
13636 export_symbols_cmds_CXX="$ltdll_cmds"
13637 ;;
13638 cygwin* | mingw* | cegcc*)
13639 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13640 ;;
13641 linux* | k*bsd*-gnu)
13642 link_all_deplibs_CXX=no
13643 ;;
13644 *)
13645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13646 ;;
13647 esac
13648 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13649
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13651$as_echo "$ld_shlibs_CXX" >&6; }
13652test "$ld_shlibs_CXX" = no && can_build_shared=no
13653
13654with_gnu_ld_CXX=$with_gnu_ld
13655
13656
13657
13658
13659
13660
13661#
13662# Do we need to explicitly link libc?
13663#
13664case "x$archive_cmds_need_lc_CXX" in
13665x|xyes)
13666 # Assume -lc should be added
13667 archive_cmds_need_lc_CXX=yes
13668
13669 if test "$enable_shared" = yes && test "$GCC" = yes; then
13670 case $archive_cmds_CXX in
13671 *'~'*)
13672 # FIXME: we may have to deal with multi-command sequences.
13673 ;;
13674 '$CC '*)
13675 # Test whether the compiler implicitly links with -lc since on some
13676 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13677 # to ld, don't add -lc before -lgcc.
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13679$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13680 $RM conftest*
13681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13682
13683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13684 (eval $ac_compile) 2>&5
13685 ac_status=$?
13686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13687 test $ac_status = 0; } 2>conftest.err; then
13688 soname=conftest
13689 lib=conftest
13690 libobjs=conftest.$ac_objext
13691 deplibs=
13692 wl=$lt_prog_compiler_wl_CXX
13693 pic_flag=$lt_prog_compiler_pic_CXX
13694 compiler_flags=-v
13695 linker_flags=-v
13696 verstring=
13697 output_objdir=.
13698 libname=conftest
13699 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13700 allow_undefined_flag_CXX=
13701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13702 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13703 ac_status=$?
13704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13705 test $ac_status = 0; }
13706 then
13707 archive_cmds_need_lc_CXX=no
13708 else
13709 archive_cmds_need_lc_CXX=yes
13710 fi
13711 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13712 else
13713 cat conftest.err 1>&5
13714 fi
13715 $RM conftest*
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13717$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13718 ;;
13719 esac
13720 fi
13721 ;;
13722esac
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13788$as_echo_n "checking dynamic linker characteristics... " >&6; }
13789
13790library_names_spec=
13791libname_spec='lib$name'
13792soname_spec=
13793shrext_cmds=".so"
13794postinstall_cmds=
13795postuninstall_cmds=
13796finish_cmds=
13797finish_eval=
13798shlibpath_var=
13799shlibpath_overrides_runpath=unknown
13800version_type=none
13801dynamic_linker="$host_os ld.so"
13802sys_lib_dlsearch_path_spec="/lib /usr/lib"
13803need_lib_prefix=unknown
13804hardcode_into_libs=no
13805
13806# when you set need_version to no, make sure it does not cause -set_version
13807# flags to be left without arguments
13808need_version=unknown
13809
13810case $host_os in
13811aix3*)
13812 version_type=linux
13813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13814 shlibpath_var=LIBPATH
13815
13816 # AIX 3 has no versioning support, so we append a major version to the name.
13817 soname_spec='${libname}${release}${shared_ext}$major'
13818 ;;
13819
13820aix[4-9]*)
13821 version_type=linux
13822 need_lib_prefix=no
13823 need_version=no
13824 hardcode_into_libs=yes
4301e38a
DE
13825 if test "$host_cpu" = ia64; then
13826 # AIX 5 supports IA64
11a3e7b6 13827 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4301e38a
DE
13828 shlibpath_var=LD_LIBRARY_PATH
13829 else
13830 # With GCC up to 2.95.x, collect2 would create an import file
13831 # for dependence libraries. The import file would start with
13832 # the line `#! .'. This would cause the generated library to
13833 # depend on `.', always an invalid library. This was fixed in
13834 # development snapshots of GCC prior to 3.0.
13835 case $host_os in
13836 aix4 | aix4.[01] | aix4.[01].*)
11a3e7b6
VZ
13837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13838 echo ' yes '
13839 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13840 :
13841 else
13842 can_build_shared=no
13843 fi
13844 ;;
4301e38a 13845 esac
11a3e7b6
VZ
13846 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13847 # soname into executable. Probably we can add versioning support to
13848 # collect2, so additional links can be useful in future.
4301e38a
DE
13849 if test "$aix_use_runtimelinking" = yes; then
13850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13851 # instead of lib<name>.a to let people know that these are not
13852 # typical AIX shared libraries.
11a3e7b6 13853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4301e38a
DE
13854 else
13855 # We preserve .a as extension for shared libraries through AIX4.2
13856 # and later when we are not doing run time linking.
13857 library_names_spec='${libname}${release}.a $libname.a'
11a3e7b6 13858 soname_spec='${libname}${release}${shared_ext}$major'
4301e38a
DE
13859 fi
13860 shlibpath_var=LIBPATH
5e9f2524
VS
13861 fi
13862 ;;
5e9f2524 13863
4301e38a 13864amigaos*)
11a3e7b6
VZ
13865 case $host_cpu in
13866 powerpc)
13867 # Since July 2007 AmigaOS4 officially supports .so libraries.
13868 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13870 ;;
13871 m68k)
13872 library_names_spec='$libname.ixlibrary $libname.a'
13873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13874 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
13875 ;;
13876 esac
4301e38a 13877 ;;
5e9f2524 13878
4301e38a 13879beos*)
11a3e7b6 13880 library_names_spec='${libname}${shared_ext}'
4301e38a
DE
13881 dynamic_linker="$host_os ld.so"
13882 shlibpath_var=LIBRARY_PATH
13883 ;;
5e9f2524 13884
11a3e7b6 13885bsdi[45]*)
4301e38a
DE
13886 version_type=linux
13887 need_version=no
11a3e7b6
VZ
13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889 soname_spec='${libname}${release}${shared_ext}$major'
4301e38a
DE
13890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13891 shlibpath_var=LD_LIBRARY_PATH
13892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4301e38a
DE
13894 # the default ld.so.conf also contains /usr/contrib/lib and
13895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13896 # libtool to hard-code these into programs
13897 ;;
5e9f2524 13898
11a3e7b6 13899cygwin* | mingw* | pw32* | cegcc*)
4301e38a 13900 version_type=windows
11a3e7b6 13901 shrext_cmds=".dll"
4301e38a
DE
13902 need_version=no
13903 need_lib_prefix=no
11a3e7b6 13904
4301e38a 13905 case $GCC,$host_os in
11a3e7b6 13906 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
4301e38a 13907 library_names_spec='$libname.dll.a'
11a3e7b6
VZ
13908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13909 postinstall_cmds='base_file=`basename \${file}`~
13910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4301e38a
DE
13911 dldir=$destdir/`dirname \$dlpath`~
13912 test -d \$dldir || mkdir -p \$dldir~
11a3e7b6
VZ
13913 $install_prog $dir/$dlname \$dldir/$dlname~
13914 chmod a+x \$dldir/$dlname~
13915 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13916 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13917 fi'
13918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4301e38a 13919 dlpath=$dir/\$dldll~
11a3e7b6
VZ
13920 $RM \$dlpath'
13921 shlibpath_overrides_runpath=yes
13922
13923 case $host_os in
13924 cygwin*)
13925 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13926 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13927 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13928 ;;
13929 mingw* | cegcc*)
13930 # MinGW DLLs use traditional 'lib' prefix
13931 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13932 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13933 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13934 # It is most probably a Windows format PATH printed by
13935 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13936 # path with ; separators, and with drive letters. We can handle the
13937 # drive letters (cygwin fileutils understands them), so leave them,
13938 # especially as we might pass files found there to a mingw objdump,
13939 # which wouldn't understand a cygwinified path. Ahh.
13940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13941 else
13942 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13943 fi
13944 ;;
13945 pw32*)
13946 # pw32 DLLs use 'pw' prefix rather than 'lib'
13947 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13948 ;;
13949 esac
4301e38a 13950 ;;
11a3e7b6 13951
4301e38a 13952 *)
11a3e7b6 13953 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4301e38a
DE
13954 ;;
13955 esac
13956 dynamic_linker='Win32 ld.exe'
13957 # FIXME: first we should search . and the directory the executable is in
13958 shlibpath_var=PATH
13959 ;;
13960
13961darwin* | rhapsody*)
13962 dynamic_linker="$host_os dyld"
13963 version_type=darwin
13964 need_lib_prefix=no
13965 need_version=no
11a3e7b6
VZ
13966 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13967 soname_spec='${libname}${release}${major}$shared_ext'
4301e38a
DE
13968 shlibpath_overrides_runpath=yes
13969 shlibpath_var=DYLD_LIBRARY_PATH
11a3e7b6
VZ
13970 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13971
13972 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13973 ;;
13974
13975dgux*)
13976 version_type=linux
13977 need_lib_prefix=no
13978 need_version=no
13979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13980 soname_spec='${libname}${release}${shared_ext}$major'
13981 shlibpath_var=LD_LIBRARY_PATH
4301e38a
DE
13982 ;;
13983
13984freebsd1*)
13985 dynamic_linker=no
13986 ;;
13987
11a3e7b6
VZ
13988freebsd* | dragonfly*)
13989 # DragonFly does not have aout. When/if they implement a new
13990 # versioning mechanism, adjust this.
13991 if test -x /usr/bin/objformat; then
13992 objformat=`/usr/bin/objformat`
13993 else
13994 case $host_os in
13995 freebsd[123]*) objformat=aout ;;
13996 *) objformat=elf ;;
13997 esac
13998 fi
4301e38a
DE
13999 version_type=freebsd-$objformat
14000 case $version_type in
14001 freebsd-elf*)
11a3e7b6 14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4301e38a
DE
14003 need_version=no
14004 need_lib_prefix=no
14005 ;;
14006 freebsd-*)
11a3e7b6 14007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4301e38a
DE
14008 need_version=yes
14009 ;;
14010 esac
14011 shlibpath_var=LD_LIBRARY_PATH
14012 case $host_os in
14013 freebsd2*)
14014 shlibpath_overrides_runpath=yes
14015 ;;
11a3e7b6
VZ
14016 freebsd3.[01]* | freebsdelf3.[01]*)
14017 shlibpath_overrides_runpath=yes
14018 hardcode_into_libs=yes
14019 ;;
14020 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14021 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
4301e38a
DE
14022 shlibpath_overrides_runpath=no
14023 hardcode_into_libs=yes
14024 ;;
11a3e7b6
VZ
14025 *) # from 4.6 on, and DragonFly
14026 shlibpath_overrides_runpath=yes
14027 hardcode_into_libs=yes
14028 ;;
4301e38a
DE
14029 esac
14030 ;;
14031
14032gnu*)
14033 version_type=linux
14034 need_lib_prefix=no
14035 need_version=no
11a3e7b6
VZ
14036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14037 soname_spec='${libname}${release}${shared_ext}$major'
4301e38a
DE
14038 shlibpath_var=LD_LIBRARY_PATH
14039 hardcode_into_libs=yes
14040 ;;
14041
14042hpux9* | hpux10* | hpux11*)
14043 # Give a soname corresponding to the major version so that dld.sl refuses to
14044 # link against other versions.
4301e38a
DE
14045 version_type=sunos
14046 need_lib_prefix=no
14047 need_version=no
11a3e7b6
VZ
14048 case $host_cpu in
14049 ia64*)
14050 shrext_cmds='.so'
14051 hardcode_into_libs=yes
14052 dynamic_linker="$host_os dld.so"
14053 shlibpath_var=LD_LIBRARY_PATH
14054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14056 soname_spec='${libname}${release}${shared_ext}$major'
14057 if test "X$HPUX_IA64_MODE" = X32; then
14058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14059 else
14060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14061 fi
14062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14063 ;;
14064 hppa*64*)
14065 shrext_cmds='.sl'
14066 hardcode_into_libs=yes
14067 dynamic_linker="$host_os dld.sl"
14068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14071 soname_spec='${libname}${release}${shared_ext}$major'
14072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14074 ;;
14075 *)
14076 shrext_cmds='.sl'
14077 dynamic_linker="$host_os dld.sl"
14078 shlibpath_var=SHLIB_PATH
14079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14081 soname_spec='${libname}${release}${shared_ext}$major'
14082 ;;
14083 esac
4301e38a
DE
14084 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14085 postinstall_cmds='chmod 555 $lib'
14086 ;;
14087
11a3e7b6
VZ
14088interix[3-9]*)
14089 version_type=linux
14090 need_lib_prefix=no
14091 need_version=no
14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14093 soname_spec='${libname}${release}${shared_ext}$major'
14094 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 shlibpath_overrides_runpath=no
14097 hardcode_into_libs=yes
14098 ;;
14099
14100irix5* | irix6* | nonstopux*)
14101 case $host_os in
14102 nonstopux*) version_type=nonstopux ;;
14103 *)
14104 if test "$lt_cv_prog_gnu_ld" = yes; then
14105 version_type=linux
14106 else
14107 version_type=irix
14108 fi ;;
14109 esac
4301e38a
DE
14110 need_lib_prefix=no
14111 need_version=no
11a3e7b6
VZ
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4301e38a 14114 case $host_os in
11a3e7b6 14115 irix5* | nonstopux*)
4301e38a
DE
14116 libsuff= shlibsuff=
14117 ;;
14118 *)
14119 case $LD in # libtool.m4 will add one of these switches to LD
11a3e7b6
VZ
14120 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14121 libsuff= shlibsuff= libmagic=32-bit;;
14122 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14123 libsuff=32 shlibsuff=N32 libmagic=N32;;
14124 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14125 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4301e38a
DE
14126 *) libsuff= shlibsuff= libmagic=never-match;;
14127 esac
14128 ;;
14129 esac
14130 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14131 shlibpath_overrides_runpath=no
14132 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14133 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11a3e7b6 14134 hardcode_into_libs=yes
4301e38a
DE
14135 ;;
14136
14137# No shared lib support for Linux oldld, aout, or coff.
11a3e7b6 14138linux*oldld* | linux*aout* | linux*coff*)
4301e38a
DE
14139 dynamic_linker=no
14140 ;;
14141
14142# This must be Linux ELF.
11a3e7b6 14143linux* | k*bsd*-gnu | kopensolaris*-gnu)
4301e38a
DE
14144 version_type=linux
14145 need_lib_prefix=no
14146 need_version=no
11a3e7b6
VZ
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14148 soname_spec='${libname}${release}${shared_ext}$major'
4301e38a
DE
14149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14150 shlibpath_var=LD_LIBRARY_PATH
14151 shlibpath_overrides_runpath=no
11a3e7b6
VZ
14152 # Some binutils ld are patched to set DT_RUNPATH
14153 save_LDFLAGS=$LDFLAGS
14154 save_libdir=$libdir
14155 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14156 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158/* end confdefs.h. */
14159
14160int
14161main ()
14162{
14163
14164 ;
14165 return 0;
14166}
14167_ACEOF
14168if ac_fn_cxx_try_link "$LINENO"; then :
14169 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14170 shlibpath_overrides_runpath=yes
14171fi
14172fi
14173rm -f core conftest.err conftest.$ac_objext \
14174 conftest$ac_exeext conftest.$ac_ext
14175 LDFLAGS=$save_LDFLAGS
14176 libdir=$save_libdir
14177
4301e38a
DE
14178 # This implies no fast_install, which is unacceptable.
14179 # Some rework will be needed to allow for fast_install
14180 # before this can be enabled.
14181 hardcode_into_libs=yes
14182
11a3e7b6
VZ
14183 # Append ld.so.conf contents to the search path
14184 if test -f /etc/ld.so.conf; then
14185 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;/^$/d' | tr '\n' ' '`
14186 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14187 fi
14188
4301e38a
DE
14189 # We used to test for /lib/ld.so.1 and disable shared libraries on
14190 # powerpc, because MkLinux only supported shared libraries with the
14191 # GNU dynamic linker. Since this was broken with cross compilers,
14192 # most powerpc-linux boxes support dynamic linking these days and
14193 # people can always --disable-shared, the test was removed, and we
14194 # assume the GNU/Linux dynamic linker is in use.
14195 dynamic_linker='GNU/Linux ld.so'
14196 ;;
14197
11a3e7b6
VZ
14198netbsdelf*-gnu)
14199 version_type=linux
14200 need_lib_prefix=no
14201 need_version=no
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14203 soname_spec='${libname}${release}${shared_ext}$major'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 shlibpath_overrides_runpath=no
14206 hardcode_into_libs=yes
14207 dynamic_linker='NetBSD ld.elf_so'
14208 ;;
14209
4301e38a
DE
14210netbsd*)
14211 version_type=sunos
14212 need_lib_prefix=no
14213 need_version=no
11a3e7b6
VZ
14214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4301e38a
DE
14216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14217 dynamic_linker='NetBSD (a.out) ld.so'
14218 else
11a3e7b6
VZ
14219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14220 soname_spec='${libname}${release}${shared_ext}$major'
4301e38a
DE
14221 dynamic_linker='NetBSD ld.elf_so'
14222 fi
14223 shlibpath_var=LD_LIBRARY_PATH
14224 shlibpath_overrides_runpath=yes
14225 hardcode_into_libs=yes
14226 ;;
14227
14228newsos6)
14229 version_type=linux
11a3e7b6 14230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4301e38a
DE
14231 shlibpath_var=LD_LIBRARY_PATH
14232 shlibpath_overrides_runpath=yes
14233 ;;
14234
11a3e7b6
VZ
14235*nto* | *qnx*)
14236 version_type=qnx
14237 need_lib_prefix=no
14238 need_version=no
14239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14240 soname_spec='${libname}${release}${shared_ext}$major'
14241 shlibpath_var=LD_LIBRARY_PATH
14242 shlibpath_overrides_runpath=no
14243 hardcode_into_libs=yes
14244 dynamic_linker='ldqnx.so'
14245 ;;
14246
4301e38a
DE
14247openbsd*)
14248 version_type=sunos
11a3e7b6 14249 sys_lib_dlsearch_path_spec="/usr/lib"
4301e38a 14250 need_lib_prefix=no
11a3e7b6
VZ
14251 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14252 case $host_os in
14253 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14254 *) need_version=no ;;
14255 esac
14256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14258 shlibpath_var=LD_LIBRARY_PATH
14259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14260 case $host_os in
14261 openbsd2.[89] | openbsd2.[89].*)
14262 shlibpath_overrides_runpath=no
14263 ;;
14264 *)
14265 shlibpath_overrides_runpath=yes
14266 ;;
14267 esac
4301e38a
DE
14268 else
14269 shlibpath_overrides_runpath=yes
14270 fi
4301e38a
DE
14271 ;;
14272
14273os2*)
14274 libname_spec='$name'
11a3e7b6 14275 shrext_cmds=".dll"
4301e38a 14276 need_lib_prefix=no
11a3e7b6 14277 library_names_spec='$libname${shared_ext} $libname.a'
4301e38a
DE
14278 dynamic_linker='OS/2 ld.exe'
14279 shlibpath_var=LIBPATH
14280 ;;
14281
14282osf3* | osf4* | osf5*)
14283 version_type=osf
11a3e7b6 14284 need_lib_prefix=no
4301e38a 14285 need_version=no
11a3e7b6
VZ
14286 soname_spec='${libname}${release}${shared_ext}$major'
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4301e38a
DE
14288 shlibpath_var=LD_LIBRARY_PATH
14289 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14290 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14291 ;;
14292
11a3e7b6
VZ
14293rdos*)
14294 dynamic_linker=no
4301e38a
DE
14295 ;;
14296
14297solaris*)
14298 version_type=linux
14299 need_lib_prefix=no
14300 need_version=no
11a3e7b6
VZ
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
4301e38a
DE
14303 shlibpath_var=LD_LIBRARY_PATH
14304 shlibpath_overrides_runpath=yes
14305 hardcode_into_libs=yes
14306 # ldd complains unless libraries are executable
14307 postinstall_cmds='chmod +x $lib'
14308 ;;
14309
14310sunos4*)
14311 version_type=sunos
11a3e7b6 14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4301e38a
DE
14313 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 shlibpath_overrides_runpath=yes
14316 if test "$with_gnu_ld" = yes; then
14317 need_lib_prefix=no
14318 fi
14319 need_version=yes
14320 ;;
14321
11a3e7b6 14322sysv4 | sysv4.3*)
4301e38a 14323 version_type=linux
11a3e7b6
VZ
14324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14325 soname_spec='${libname}${release}${shared_ext}$major'
4301e38a
DE
14326 shlibpath_var=LD_LIBRARY_PATH
14327 case $host_vendor in
14328 sni)
14329 shlibpath_overrides_runpath=no
11a3e7b6
VZ
14330 need_lib_prefix=no
14331 runpath_var=LD_RUN_PATH
14332 ;;
14333 siemens)
14334 need_lib_prefix=no
4301e38a
DE
14335 ;;
14336 motorola)
14337 need_lib_prefix=no
14338 need_version=no
14339 shlibpath_overrides_runpath=no
14340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14341 ;;
14342 esac
14343 ;;
14344
11a3e7b6
VZ
14345sysv4*MP*)
14346 if test -d /usr/nec ;then
14347 version_type=linux
14348 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14349 soname_spec='$libname${shared_ext}.$major'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 fi
14352 ;;
14353
14354sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14355 version_type=freebsd-elf
14356 need_lib_prefix=no
14357 need_version=no
14358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14359 soname_spec='${libname}${release}${shared_ext}$major'
4301e38a 14360 shlibpath_var=LD_LIBRARY_PATH
11a3e7b6
VZ
14361 shlibpath_overrides_runpath=yes
14362 hardcode_into_libs=yes
14363 if test "$with_gnu_ld" = yes; then
14364 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14365 else
14366 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14367 case $host_os in
14368 sco3.2v5*)
14369 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14370 ;;
14371 esac
14372 fi
14373 sys_lib_dlsearch_path_spec='/usr/lib'
4301e38a
DE
14374 ;;
14375
11a3e7b6
VZ
14376tpf*)
14377 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
4301e38a
DE
14378 version_type=linux
14379 need_lib_prefix=no
14380 need_version=no
11a3e7b6 14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4301e38a 14382 shlibpath_var=LD_LIBRARY_PATH
11a3e7b6
VZ
14383 shlibpath_overrides_runpath=no
14384 hardcode_into_libs=yes
4301e38a
DE
14385 ;;
14386
11a3e7b6
VZ
14387uts4*)
14388 version_type=linux
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 soname_spec='${libname}${release}${shared_ext}$major'
14391 shlibpath_var=LD_LIBRARY_PATH
4301e38a
DE
14392 ;;
14393
14394*)
14395 dynamic_linker=no
14396 ;;
14397esac
11a3e7b6
VZ
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14399$as_echo "$dynamic_linker" >&6; }
14400test "$dynamic_linker" = no && can_build_shared=no
14401
14402variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14403if test "$GCC" = yes; then
14404 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14405fi
14406
14407if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14408 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14409fi
14410if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14411 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14412fi
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14450$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14451hardcode_action_CXX=
14452if test -n "$hardcode_libdir_flag_spec_CXX" ||
14453 test -n "$runpath_var_CXX" ||
14454 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14455
14456 # We can hardcode non-existent directories.
14457 if test "$hardcode_direct_CXX" != no &&
14458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14459 # have to relink, otherwise we might link with an installed library
14460 # when we should be linking with a yet-to-be-installed one
14461 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14462 test "$hardcode_minus_L_CXX" != no; then
14463 # Linking always hardcodes the temporary library directory.
14464 hardcode_action_CXX=relink
14465 else
14466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14467 hardcode_action_CXX=immediate
14468 fi
14469else
14470 # We cannot hardcode anything, or else we can only hardcode existing
14471 # directories.
14472 hardcode_action_CXX=unsupported
14473fi
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14475$as_echo "$hardcode_action_CXX" >&6; }
14476
14477if test "$hardcode_action_CXX" = relink ||
14478 test "$inherit_rpath_CXX" = yes; then
14479 # Fast installation is not supported
14480 enable_fast_install=no
14481elif test "$shlibpath_overrides_runpath" = yes ||
14482 test "$enable_shared" = no; then
14483 # Fast installation is not necessary
14484 enable_fast_install=needless
14485fi
14486
14487
14488
14489
14490
14491
14492
14493 fi # test -n "$compiler"
14494
14495 CC=$lt_save_CC
14496 LDCXX=$LD
14497 LD=$lt_save_LD
14498 GCC=$lt_save_GCC
14499 with_gnu_ld=$lt_save_with_gnu_ld
14500 lt_cv_path_LDCXX=$lt_cv_path_LD
14501 lt_cv_path_LD=$lt_save_path_LD
14502 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14503 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14504fi # test "$_lt_caught_CXX_error" != yes
14505
14506ac_ext=c
14507ac_cpp='$CPP $CPPFLAGS'
14508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14510ac_compiler_gnu=$ac_cv_c_compiler_gnu
14511
14512
14513# Find a good install program. We prefer a C program (faster),
14514# so one script is as good as another. But avoid the broken or
14515# incompatible versions:
14516# SysV /etc/install, /usr/sbin/install
14517# SunOS /usr/etc/install
14518# IRIX /sbin/install
14519# AIX /bin/install
14520# AmigaOS /C/install, which installs bootblocks on floppy discs
14521# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14522# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14523# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14524# OS/2's system install, which has a completely different semantic
14525# ./install, which can be erroneously created by make from ./install.sh.
14526# Reject install programs that cannot install multiple files.
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14528$as_echo_n "checking for a BSD-compatible install... " >&6; }
14529if test -z "$INSTALL"; then
14530if ${ac_cv_path_install+:} false; then :
14531 $as_echo_n "(cached) " >&6
14532else
14533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534for as_dir in $PATH
14535do
14536 IFS=$as_save_IFS
14537 test -z "$as_dir" && as_dir=.
14538 # Account for people who put trailing slashes in PATH elements.
14539case $as_dir/ in #((
14540 ./ | .// | /[cC]/* | \
14541 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14542 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14543 /usr/ucb/* ) ;;
14544 *)
14545 # OSF1 and SCO ODT 3.0 have their own names for install.
14546 # Don't use installbsd from OSF since it installs stuff as root
14547 # by default.
14548 for ac_prog in ginstall scoinst install; do
14549 for ac_exec_ext in '' $ac_executable_extensions; do
14550 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14551 if test $ac_prog = install &&
14552 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14553 # AIX install. It has an incompatible calling convention.
14554 :
14555 elif test $ac_prog = install &&
14556 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14557 # program-specific install script used by HP pwplus--don't use.
14558 :
14559 else
14560 rm -rf conftest.one conftest.two conftest.dir
14561 echo one > conftest.one
14562 echo two > conftest.two
14563 mkdir conftest.dir
14564 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14565 test -s conftest.one && test -s conftest.two &&
14566 test -s conftest.dir/conftest.one &&
14567 test -s conftest.dir/conftest.two
14568 then
14569 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14570 break 3
14571 fi
14572 fi
14573 fi
14574 done
14575 done
14576 ;;
14577esac
4301e38a 14578
11a3e7b6
VZ
14579 done
14580IFS=$as_save_IFS
14581
14582rm -rf conftest.one conftest.two conftest.dir
14583
14584fi
14585 if test "${ac_cv_path_install+set}" = set; then
14586 INSTALL=$ac_cv_path_install
14587 else
14588 # As a last resort, use the slow shell script. Don't cache a
14589 # value for INSTALL within a source directory, because that will
14590 # break other packages using the cache if that directory is
14591 # removed, or if the value is a relative name.
14592 INSTALL=$ac_install_sh
4301e38a 14593 fi
4301e38a 14594fi
11a3e7b6
VZ
14595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14596$as_echo "$INSTALL" >&6; }
4301e38a 14597
11a3e7b6
VZ
14598# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14599# It thinks the first close brace ends the variable substitution.
14600test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4301e38a 14601
11a3e7b6 14602test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4301e38a 14603
11a3e7b6 14604test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4301e38a 14605
4301e38a 14606
11a3e7b6
VZ
14607if test "$GCC" = yes ; then
14608 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
14609 CFLAGS="$OLDCFLAGS -fexceptions"
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fexceptions" >&5
14611$as_echo_n "checking whether $CC accepts -fexceptions... " >&6; }
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 14613/* end confdefs.h. */
5e9f2524 14614
79608eef
VS
14615int
14616main ()
14617{
11a3e7b6 14618
5e9f2524
VS
14619 ;
14620 return 0;
14621}
14622_ACEOF
11a3e7b6
VZ
14623if ac_fn_c_try_link "$LINENO"; then :
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14625$as_echo "yes" >&6; }
5e9f2524 14626else
11a3e7b6
VZ
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628$as_echo "no" >&6; }; CFLAGS="$OLDCFLAGS"
5e9f2524 14629fi
11a3e7b6
VZ
14630rm -f core conftest.err conftest.$ac_objext \
14631 conftest$ac_exeext conftest.$ac_ext
14632 CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`
5e9f2524 14633fi
11a3e7b6
VZ
14634
14635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14636$as_echo_n "checking for ANSI C header files... " >&6; }
14637if ${ac_cv_header_stdc+:} false; then :
14638 $as_echo_n "(cached) " >&6
5e9f2524 14639else
11a3e7b6 14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 14641/* end confdefs.h. */
11a3e7b6
VZ
14642#include <stdlib.h>
14643#include <stdarg.h>
14644#include <string.h>
14645#include <float.h>
5e9f2524 14646
5e9f2524
VS
14647int
14648main ()
14649{
11a3e7b6 14650
5e9f2524
VS
14651 ;
14652 return 0;
14653}
14654_ACEOF
11a3e7b6
VZ
14655if ac_fn_c_try_compile "$LINENO"; then :
14656 ac_cv_header_stdc=yes
5e9f2524 14657else
11a3e7b6 14658 ac_cv_header_stdc=no
5e9f2524 14659fi
11a3e7b6
VZ
14660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661
14662if test $ac_cv_header_stdc = yes; then
14663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 14665/* end confdefs.h. */
11a3e7b6 14666#include <string.h>
5e9f2524 14667
5e9f2524 14668_ACEOF
11a3e7b6
VZ
14669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14670 $EGREP "memchr" >/dev/null 2>&1; then :
79608eef 14671
11a3e7b6
VZ
14672else
14673 ac_cv_header_stdc=no
5e9f2524 14674fi
11a3e7b6
VZ
14675rm -f conftest*
14676
5e9f2524 14677fi
11a3e7b6
VZ
14678
14679if test $ac_cv_header_stdc = yes; then
14680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 14682/* end confdefs.h. */
11a3e7b6 14683#include <stdlib.h>
5e9f2524 14684
5e9f2524 14685_ACEOF
11a3e7b6
VZ
14686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687 $EGREP "free" >/dev/null 2>&1; then :
79608eef 14688
11a3e7b6
VZ
14689else
14690 ac_cv_header_stdc=no
5e9f2524 14691fi
11a3e7b6
VZ
14692rm -f conftest*
14693
5e9f2524 14694fi
11a3e7b6
VZ
14695
14696if test $ac_cv_header_stdc = yes; then
14697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14698 if test "$cross_compiling" = yes; then :
14699 :
5e9f2524 14700else
11a3e7b6 14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 14702/* end confdefs.h. */
11a3e7b6
VZ
14703#include <ctype.h>
14704#include <stdlib.h>
14705#if ((' ' & 0x0FF) == 0x020)
14706# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14707# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14708#else
14709# define ISLOWER(c) \
14710 (('a' <= (c) && (c) <= 'i') \
14711 || ('j' <= (c) && (c) <= 'r') \
14712 || ('s' <= (c) && (c) <= 'z'))
14713# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5e9f2524 14714#endif
11a3e7b6
VZ
14715
14716#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5e9f2524
VS
14717int
14718main ()
14719{
11a3e7b6
VZ
14720 int i;
14721 for (i = 0; i < 256; i++)
14722 if (XOR (islower (i), ISLOWER (i))
14723 || toupper (i) != TOUPPER (i))
14724 return 2;
5e9f2524
VS
14725 return 0;
14726}
14727_ACEOF
11a3e7b6
VZ
14728if ac_fn_c_try_run "$LINENO"; then :
14729
5e9f2524 14730else
11a3e7b6
VZ
14731 ac_cv_header_stdc=no
14732fi
14733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14734 conftest.$ac_objext conftest.beam conftest.$ac_ext
14735fi
79608eef 14736
5e9f2524 14737fi
5e9f2524 14738fi
11a3e7b6
VZ
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14740$as_echo "$ac_cv_header_stdc" >&6; }
14741if test $ac_cv_header_stdc = yes; then
14742
14743$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14744
14745fi
14746
14747
14748
14749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14750$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14751if ${ac_cv_c_bigendian+:} false; then :
14752 $as_echo_n "(cached) " >&6
5e9f2524 14753else
11a3e7b6
VZ
14754 ac_cv_c_bigendian=unknown
14755# See if sys/param.h defines the BYTE_ORDER macro.
14756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79608eef 14757/* end confdefs.h. */
11a3e7b6
VZ
14758#include <sys/types.h>
14759#include <sys/param.h>
14760int
14761main ()
14762{
5e9f2524 14763
11a3e7b6
VZ
14764#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14765 bogus endian macros
5e9f2524 14766#endif
11a3e7b6
VZ
14767 ;
14768 return 0;
14769}
14770_ACEOF
14771if ac_fn_c_try_compile "$LINENO"; then :
14772 # It does; now see whether it defined to BIG_ENDIAN or not.
14773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774/* end confdefs.h. */
14775#include <sys/types.h>
14776#include <sys/param.h>
5e9f2524
VS
14777int
14778main ()
14779{
11a3e7b6
VZ
14780
14781#if BYTE_ORDER != BIG_ENDIAN
14782 not big endian
14783#endif
5e9f2524
VS
14784 ;
14785 return 0;
14786}
14787_ACEOF
11a3e7b6
VZ
14788if ac_fn_c_try_compile "$LINENO"; then :
14789 ac_cv_c_bigendian=yes
5e9f2524 14790else
11a3e7b6 14791 ac_cv_c_bigendian=no
5e9f2524 14792fi
11a3e7b6 14793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5e9f2524 14794fi
11a3e7b6
VZ
14795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14796if test $ac_cv_c_bigendian = unknown; then
14797if test "$cross_compiling" = yes; then :
14798 echo $ac_n "cross-compiling... " 2>&6
14799else
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801/* end confdefs.h. */
14802main () {
14803 /* Are we little or big endian? From Harbison&Steele. */
14804 union
14805 {
14806 long l;
14807 char c[sizeof (long)];
14808 } u;
14809 u.l = 1;
14810 exit (u.c[sizeof (long) - 1] == 1);
14811}
14812_ACEOF
14813if ac_fn_c_try_run "$LINENO"; then :
14814 ac_cv_c_bigendian=no
14815else
14816 ac_cv_c_bigendian=yes
5e9f2524 14817fi
11a3e7b6
VZ
14818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14819 conftest.$ac_objext conftest.beam conftest.$ac_ext
5e9f2524
VS
14820fi
14821
5e9f2524 14822fi
5e9f2524 14823fi
11a3e7b6
VZ
14824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14825$as_echo "$ac_cv_c_bigendian" >&6; }
14826if test $ac_cv_c_bigendian = unknown; then
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
14828$as_echo_n "checking to probe for byte ordering... " >&6; }
5e9f2524 14829
11a3e7b6
VZ
14830cat >conftest.c <<EOF
14831short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14832short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14833void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
14834short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14835short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14836void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
14837int main() { _ascii (); _ebcdic (); return 0; }
14838EOF
14839 if test -f conftest.c ; then
14840 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
14841 if test `grep -l BIGenDianSyS conftest.o` ; then
14842 echo $ac_n ' big endian probe OK, ' 1>&6
14843 ac_cv_c_bigendian=yes
14844 fi
14845 if test `grep -l LiTTleEnDian conftest.o` ; then
14846 echo $ac_n ' little endian probe OK, ' 1>&6
14847 if test $ac_cv_c_bigendian = yes ; then
14848 ac_cv_c_bigendian=unknown;
14849 else
14850 ac_cv_c_bigendian=no
14851 fi
14852 fi
14853 echo $ac_n 'guessing bigendian ... ' >&6
14854 fi
14855 fi
14856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14857$as_echo "$ac_cv_c_bigendian" >&6; }
5e9f2524 14858fi
11a3e7b6 14859if test $ac_cv_c_bigendian = yes; then
5e9f2524 14860
11a3e7b6 14861$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5e9f2524 14862
11a3e7b6
VZ
14863 BYTEORDER=4321
14864else
14865 BYTEORDER=1234
5e9f2524
VS
14866fi
14867
11a3e7b6
VZ
14868cat >>confdefs.h <<_ACEOF
14869#define BYTEORDER $BYTEORDER
14870_ACEOF
5e9f2524 14871
11a3e7b6
VZ
14872if test $ac_cv_c_bigendian = unknown; then
14873 as_fn_error please pre-set ac_cv_c_bigendian "unknown endianess - sorry" "$LINENO" 5
14874fi
5e9f2524 14875
5e9f2524 14876
11a3e7b6
VZ
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14878$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14879if ${ac_cv_c_const+:} false; then :
14880 $as_echo_n "(cached) " >&6
5e9f2524 14881else
11a3e7b6
VZ
14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883/* end confdefs.h. */
5e9f2524 14884
11a3e7b6
VZ
14885int
14886main ()
14887{
5e9f2524 14888
11a3e7b6
VZ
14889#ifndef __cplusplus
14890 /* Ultrix mips cc rejects this sort of thing. */
14891 typedef int charset[2];
14892 const charset cs = { 0, 0 };
14893 /* SunOS 4.1.1 cc rejects this. */
14894 char const *const *pcpcc;
14895 char **ppc;
14896 /* NEC SVR4.0.2 mips cc rejects this. */
14897 struct point {int x, y;};
14898 static struct point const zero = {0,0};
14899 /* AIX XL C 1.02.0.0 rejects this.
14900 It does not let you subtract one const X* pointer from another in
14901 an arm of an if-expression whose if-part is not a constant
14902 expression */
14903 const char *g = "string";
14904 pcpcc = &g + (g ? g-g : 0);
14905 /* HPUX 7.0 cc rejects these. */
14906 ++pcpcc;
14907 ppc = (char**) pcpcc;
14908 pcpcc = (char const *const *) ppc;
14909 { /* SCO 3.2v4 cc rejects this sort of thing. */
14910 char tx;
14911 char *t = &tx;
14912 char const *s = 0 ? (char *) 0 : (char const *) 0;
5e9f2524 14913
11a3e7b6
VZ
14914 *t++ = 0;
14915 if (s) return 0;
14916 }
14917 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14918 int x[] = {25, 17};
14919 const int *foo = &x[0];
14920 ++foo;
14921 }
14922 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14923 typedef const int *iptr;
14924 iptr p = 0;
14925 ++p;
14926 }
14927 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14928 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14929 struct s { int j; const int *ap[3]; } bx;
14930 struct s *b = &bx; b->j = 5;
14931 }
14932 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14933 const int foo = 10;
14934 if (!foo) return 0;
14935 }
14936 return !cs[0] && !zero.x;
5e9f2524
VS
14937#endif
14938
11a3e7b6
VZ
14939 ;
14940 return 0;
5e9f2524 14941}
11a3e7b6
VZ
14942_ACEOF
14943if ac_fn_c_try_compile "$LINENO"; then :
14944 ac_cv_c_const=yes
14945else
14946 ac_cv_c_const=no
5e9f2524 14947fi
11a3e7b6
VZ
14948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949fi
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14951$as_echo "$ac_cv_c_const" >&6; }
14952if test $ac_cv_c_const = no; then
5e9f2524 14953
11a3e7b6 14954$as_echo "#define const /**/" >>confdefs.h
5e9f2524
VS
14955
14956fi
5e9f2524 14957
11a3e7b6
VZ
14958ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14959if test "x$ac_cv_type_size_t" = xyes; then :
14960
5e9f2524 14961else
5e9f2524 14962
11a3e7b6
VZ
14963cat >>confdefs.h <<_ACEOF
14964#define size_t unsigned int
14965_ACEOF
5e9f2524 14966
11a3e7b6 14967fi
5e9f2524 14968
11a3e7b6
VZ
14969for ac_func in memmove bcopy
14970do :
14971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14972ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14973if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14974 cat >>confdefs.h <<_ACEOF
14975#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14976_ACEOF
5e9f2524 14977
11a3e7b6
VZ
14978fi
14979done
14980
14981
14982for ac_header in fcntl.h unistd.h
14983do :
14984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14985ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14986if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14987 cat >>confdefs.h <<_ACEOF
14988#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14989_ACEOF
5e9f2524 14990
11a3e7b6 14991fi
5e9f2524 14992
11a3e7b6 14993done
5e9f2524 14994
11a3e7b6
VZ
14995ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14996if test "x$ac_cv_type_off_t" = xyes; then :
5e9f2524 14997
11a3e7b6 14998else
5e9f2524 14999
11a3e7b6
VZ
15000cat >>confdefs.h <<_ACEOF
15001#define off_t long int
15002_ACEOF
5e9f2524
VS
15003
15004fi
5e9f2524 15005
5e9f2524 15006
5e9f2524 15007
5e9f2524 15008
11a3e7b6
VZ
15009 for ac_header in $ac_header_list
15010do :
15011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15012ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15013"
15014if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15015 cat >>confdefs.h <<_ACEOF
15016#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15017_ACEOF
5e9f2524 15018
5e9f2524
VS
15019fi
15020
11a3e7b6
VZ
15021done
15022
15023
15024
15025
15026
15027
15028
15029
15030for ac_func in getpagesize
15031do :
15032 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15033if test "x$ac_cv_func_getpagesize" = xyes; then :
15034 cat >>confdefs.h <<_ACEOF
15035#define HAVE_GETPAGESIZE 1
15036_ACEOF
15037
5e9f2524 15038fi
11a3e7b6
VZ
15039done
15040
15041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15042$as_echo_n "checking for working mmap... " >&6; }
15043if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15044 $as_echo_n "(cached) " >&6
5e9f2524 15045else
11a3e7b6
VZ
15046 if test "$cross_compiling" = yes; then :
15047 ac_cv_func_mmap_fixed_mapped=no
15048else
15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050/* end confdefs.h. */
15051$ac_includes_default
15052/* malloc might have been renamed as rpl_malloc. */
15053#undef malloc
5e9f2524 15054
11a3e7b6
VZ
15055/* Thanks to Mike Haertel and Jim Avera for this test.
15056 Here is a matrix of mmap possibilities:
15057 mmap private not fixed
15058 mmap private fixed at somewhere currently unmapped
15059 mmap private fixed at somewhere already mapped
15060 mmap shared not fixed
15061 mmap shared fixed at somewhere currently unmapped
15062 mmap shared fixed at somewhere already mapped
15063 For private mappings, we should verify that changes cannot be read()
15064 back from the file, nor mmap's back from the file at a different
15065 address. (There have been systems where private was not correctly
15066 implemented like the infamous i386 svr4.0, and systems where the
15067 VM page cache was not coherent with the file system buffer cache
15068 like early versions of FreeBSD and possibly contemporary NetBSD.)
15069 For shared mappings, we should conversely verify that changes get
15070 propagated back to all the places they're supposed to be.
5e9f2524 15071
11a3e7b6
VZ
15072 Grep wants private fixed already mapped.
15073 The main things grep needs to know about mmap are:
15074 * does it exist and is it safe to write into the mmap'd area
15075 * how to use it (BSD variants) */
5e9f2524 15076
11a3e7b6
VZ
15077#include <fcntl.h>
15078#include <sys/mman.h>
5e9f2524 15079
11a3e7b6
VZ
15080#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15081char *malloc ();
15082#endif
5e9f2524 15083
11a3e7b6
VZ
15084/* This mess was copied from the GNU getpagesize.h. */
15085#ifndef HAVE_GETPAGESIZE
15086# ifdef _SC_PAGESIZE
15087# define getpagesize() sysconf(_SC_PAGESIZE)
15088# else /* no _SC_PAGESIZE */
15089# ifdef HAVE_SYS_PARAM_H
15090# include <sys/param.h>
15091# ifdef EXEC_PAGESIZE
15092# define getpagesize() EXEC_PAGESIZE
15093# else /* no EXEC_PAGESIZE */
15094# ifdef NBPG
15095# define getpagesize() NBPG * CLSIZE
15096# ifndef CLSIZE
15097# define CLSIZE 1
15098# endif /* no CLSIZE */
15099# else /* no NBPG */
15100# ifdef NBPC
15101# define getpagesize() NBPC
15102# else /* no NBPC */
15103# ifdef PAGESIZE
15104# define getpagesize() PAGESIZE
15105# endif /* PAGESIZE */
15106# endif /* no NBPC */
15107# endif /* no NBPG */
15108# endif /* no EXEC_PAGESIZE */
15109# else /* no HAVE_SYS_PARAM_H */
15110# define getpagesize() 8192 /* punt totally */
15111# endif /* no HAVE_SYS_PARAM_H */
15112# endif /* no _SC_PAGESIZE */
5e9f2524 15113
11a3e7b6 15114#endif /* no HAVE_GETPAGESIZE */
5e9f2524 15115
11a3e7b6
VZ
15116int
15117main ()
15118{
15119 char *data, *data2, *data3;
15120 const char *cdata2;
15121 int i, pagesize;
15122 int fd, fd2;
5e9f2524 15123
11a3e7b6 15124 pagesize = getpagesize ();
5e9f2524 15125
11a3e7b6
VZ
15126 /* First, make a file with some known garbage in it. */
15127 data = (char *) malloc (pagesize);
15128 if (!data)
15129 return 1;
15130 for (i = 0; i < pagesize; ++i)
15131 *(data + i) = rand ();
15132 umask (0);
15133 fd = creat ("conftest.mmap", 0600);
15134 if (fd < 0)
15135 return 2;
15136 if (write (fd, data, pagesize) != pagesize)
15137 return 3;
15138 close (fd);
5e9f2524 15139
11a3e7b6
VZ
15140 /* Next, check that the tail of a page is zero-filled. File must have
15141 non-zero length, otherwise we risk SIGBUS for entire page. */
15142 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15143 if (fd2 < 0)
15144 return 4;
15145 cdata2 = "";
15146 if (write (fd2, cdata2, 1) != 1)
15147 return 5;
15148 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15149 if (data2 == MAP_FAILED)
15150 return 6;
15151 for (i = 0; i < pagesize; ++i)
15152 if (*(data2 + i))
15153 return 7;
15154 close (fd2);
15155 if (munmap (data2, pagesize))
15156 return 8;
5e9f2524 15157
11a3e7b6
VZ
15158 /* Next, try to mmap the file at a fixed address which already has
15159 something else allocated at it. If we can, also make sure that
15160 we see the same garbage. */
15161 fd = open ("conftest.mmap", O_RDWR);
15162 if (fd < 0)
15163 return 9;
15164 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15165 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15166 return 10;
15167 for (i = 0; i < pagesize; ++i)
15168 if (*(data + i) != *(data2 + i))
15169 return 11;
5e9f2524 15170
11a3e7b6
VZ
15171 /* Finally, make sure that changes to the mapped area do not
15172 percolate back to the file as seen by read(). (This is a bug on
15173 some variants of i386 svr4.0.) */
15174 for (i = 0; i < pagesize; ++i)
15175 *(data2 + i) = *(data2 + i) + 1;
15176 data3 = (char *) malloc (pagesize);
15177 if (!data3)
15178 return 12;
15179 if (read (fd, data3, pagesize) != pagesize)
15180 return 13;
15181 for (i = 0; i < pagesize; ++i)
15182 if (*(data + i) != *(data3 + i))
15183 return 14;
15184 close (fd);
15185 return 0;
15186}
15187_ACEOF
15188if ac_fn_c_try_run "$LINENO"; then :
15189 ac_cv_func_mmap_fixed_mapped=yes
15190else
15191 ac_cv_func_mmap_fixed_mapped=no
15192fi
15193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15194 conftest.$ac_objext conftest.beam conftest.$ac_ext
15195fi
5e9f2524 15196
11a3e7b6
VZ
15197fi
15198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15199$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15200if test $ac_cv_func_mmap_fixed_mapped = yes; then
5e9f2524 15201
11a3e7b6 15202$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5e9f2524 15203
11a3e7b6
VZ
15204fi
15205rm -f conftest.mmap conftest.txt
5e9f2524 15206
5e9f2524 15207
11a3e7b6
VZ
15208if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
15209 FILEMAP=unixfilemap
15210else
15211 FILEMAP=readfilemap
15212fi
5e9f2524 15213
5e9f2524 15214
5e9f2524 15215
11a3e7b6
VZ
15216# AC_CPP_FUNC
15217# ------------------ #
15218# Checks to see if ANSI C99 CPP variable __func__ works.
15219# If not, perhaps __FUNCTION__ works instead.
15220# If not, we'll just define __func__ to "".
15221# AC_CPP_FUNC
15222
15223 case $ac_cv_prog_cc_stdc in #(
15224 no) :
15225 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
15226 *) :
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
15228$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15229if ${ac_cv_prog_cc_c99+:} false; then :
15230 $as_echo_n "(cached) " >&6
15231else
15232 ac_cv_prog_cc_c99=no
15233ac_save_CC=$CC
15234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235/* end confdefs.h. */
15236#include <stdarg.h>
15237#include <stdbool.h>
15238#include <stdlib.h>
15239#include <wchar.h>
15240#include <stdio.h>
15241
15242// Check varargs macros. These examples are taken from C99 6.10.3.5.
15243#define debug(...) fprintf (stderr, __VA_ARGS__)
15244#define showlist(...) puts (#__VA_ARGS__)
15245#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15246static void
15247test_varargs_macros (void)
15248{
15249 int x = 1234;
15250 int y = 5678;
15251 debug ("Flag");
15252 debug ("X = %d\n", x);
15253 showlist (The first, second, and third items.);
15254 report (x>y, "x is %d but y is %d", x, y);
15255}
15256
15257// Check long long types.
15258#define BIG64 18446744073709551615ull
15259#define BIG32 4294967295ul
15260#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15261#if !BIG_OK
15262 your preprocessor is broken;
15263#endif
15264#if BIG_OK
15265#else
15266 your preprocessor is broken;
15267#endif
15268static long long int bignum = -9223372036854775807LL;
15269static unsigned long long int ubignum = BIG64;
15270
15271struct incomplete_array
15272{
15273 int datasize;
15274 double data[];
15275};
15276
15277struct named_init {
15278 int number;
15279 const wchar_t *name;
15280 double average;
15281};
15282
15283typedef const char *ccp;
15284
15285static inline int
15286test_restrict (ccp restrict text)
15287{
15288 // See if C++-style comments work.
15289 // Iterate through items via the restricted pointer.
15290 // Also check for declarations in for loops.
15291 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15292 continue;
15293 return 0;
15294}
15295
15296// Check varargs and va_copy.
15297static void
15298test_varargs (const char *format, ...)
15299{
15300 va_list args;
15301 va_start (args, format);
15302 va_list args_copy;
15303 va_copy (args_copy, args);
15304
15305 const char *str;
15306 int number;
15307 float fnumber;
15308
15309 while (*format)
15310 {
15311 switch (*format++)
15312 {
15313 case 's': // string
15314 str = va_arg (args_copy, const char *);
15315 break;
15316 case 'd': // int
15317 number = va_arg (args_copy, int);
15318 break;
15319 case 'f': // float
15320 fnumber = va_arg (args_copy, double);
15321 break;
15322 default:
15323 break;
15324 }
15325 }
15326 va_end (args_copy);
15327 va_end (args);
15328}
15329
15330int
15331main ()
15332{
5e9f2524 15333
11a3e7b6
VZ
15334 // Check bool.
15335 _Bool success = false;
5e9f2524 15336
11a3e7b6
VZ
15337 // Check restrict.
15338 if (test_restrict ("String literal") == 0)
15339 success = true;
15340 char *restrict newvar = "Another string";
4301e38a 15341
11a3e7b6
VZ
15342 // Check varargs.
15343 test_varargs ("s, d' f .", "string", 65, 34.234);
15344 test_varargs_macros ();
5e9f2524 15345
11a3e7b6
VZ
15346 // Check flexible array members.
15347 struct incomplete_array *ia =
15348 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
15349 ia->datasize = 10;
15350 for (int i = 0; i < ia->datasize; ++i)
15351 ia->data[i] = i * 1.234;
5e9f2524 15352
11a3e7b6
VZ
15353 // Check named initializers.
15354 struct named_init ni = {
15355 .number = 34,
15356 .name = L"Test wide string",
15357 .average = 543.34343,
15358 };
5e9f2524 15359
11a3e7b6 15360 ni.number = 58;
5e9f2524 15361
11a3e7b6
VZ
15362 int dynamic_array[ni.number];
15363 dynamic_array[ni.number - 1] = 543;
5e9f2524 15364
11a3e7b6
VZ
15365 // work around unused variable warnings
15366 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
15367 || dynamic_array[ni.number - 1] != 543);
5e9f2524 15368
11a3e7b6
VZ
15369 ;
15370 return 0;
15371}
15372_ACEOF
15373for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
15374do
15375 CC="$ac_save_CC $ac_arg"
15376 if ac_fn_c_try_compile "$LINENO"; then :
15377 ac_cv_prog_cc_c99=$ac_arg
15378fi
15379rm -f core conftest.err conftest.$ac_objext
15380 test "x$ac_cv_prog_cc_c99" != "xno" && break
15381done
15382rm -f conftest.$ac_ext
15383CC=$ac_save_CC
5e9f2524 15384
11a3e7b6
VZ
15385fi
15386# AC_CACHE_VAL
15387case "x$ac_cv_prog_cc_c99" in
15388 x)
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15390$as_echo "none needed" >&6; } ;;
15391 xno)
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15393$as_echo "unsupported" >&6; } ;;
15394 *)
15395 CC="$CC $ac_cv_prog_cc_c99"
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15397$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
15398esac
15399if test "x$ac_cv_prog_cc_c99" != xno; then :
15400 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15401else
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
15403$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15404if ${ac_cv_prog_cc_c89+:} false; then :
15405 $as_echo_n "(cached) " >&6
15406else
15407 ac_cv_prog_cc_c89=no
15408ac_save_CC=$CC
15409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410/* end confdefs.h. */
15411#include <stdarg.h>
15412#include <stdio.h>
15413struct stat;
15414/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15415struct buf { int x; };
15416FILE * (*rcsopen) (struct buf *, struct stat *, int);
15417static char *e (p, i)
15418 char **p;
15419 int i;
15420{
15421 return p[i];
15422}
15423static char *f (char * (*g) (char **, int), char **p, ...)
15424{
15425 char *s;
15426 va_list v;
15427 va_start (v,p);
15428 s = g (p, va_arg (v,int));
15429 va_end (v);
15430 return s;
15431}
5e9f2524 15432
11a3e7b6
VZ
15433/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15434 function prototypes and stuff, but not '\xHH' hex character constants.
15435 These don't provoke an error unfortunately, instead are silently treated
15436 as 'x'. The following induces an error, until -std is added to get
15437 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15438 array size at least. It's necessary to write '\x00'==0 to get something
15439 that's true only with -std. */
15440int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5e9f2524 15441
11a3e7b6
VZ
15442/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15443 inside strings and character constants. */
15444#define FOO(x) 'x'
15445int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5e9f2524 15446
11a3e7b6
VZ
15447int test (int i, double x);
15448struct s1 {int (*f) (int a);};
15449struct s2 {int (*f) (double a);};
15450int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15451int argc;
15452char **argv;
15453int
15454main ()
15455{
15456return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15457 ;
15458 return 0;
15459}
15460_ACEOF
15461for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15462 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15463do
15464 CC="$ac_save_CC $ac_arg"
15465 if ac_fn_c_try_compile "$LINENO"; then :
15466 ac_cv_prog_cc_c89=$ac_arg
15467fi
15468rm -f core conftest.err conftest.$ac_objext
15469 test "x$ac_cv_prog_cc_c89" != "xno" && break
15470done
15471rm -f conftest.$ac_ext
15472CC=$ac_save_CC
5e9f2524 15473
11a3e7b6
VZ
15474fi
15475# AC_CACHE_VAL
15476case "x$ac_cv_prog_cc_c89" in
15477 x)
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15479$as_echo "none needed" >&6; } ;;
15480 xno)
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15482$as_echo "unsupported" >&6; } ;;
15483 *)
15484 CC="$CC $ac_cv_prog_cc_c89"
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15486$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15487esac
15488if test "x$ac_cv_prog_cc_c89" != xno; then :
15489 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15490else
15491 ac_cv_prog_cc_stdc=no
15492fi
5e9f2524 15493
11a3e7b6
VZ
15494fi
15495 ;;
15496esac
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
15498$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
15499 if ${ac_cv_prog_cc_stdc+:} false; then :
15500 $as_echo_n "(cached) " >&6
15501fi
15502
15503 case $ac_cv_prog_cc_stdc in #(
15504 no) :
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15506$as_echo "unsupported" >&6; } ;; #(
15507 '') :
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15509$as_echo "none needed" >&6; } ;; #(
15510 *) :
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
15512$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
15513esac
5e9f2524 15514
11a3e7b6
VZ
15515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C99-conforming __func__" >&5
15516$as_echo_n "checking for an ANSI C99-conforming __func__... " >&6; }
15517if ${ac_cv_cpp_func+:} false; then :
15518 $as_echo_n "(cached) " >&6
15519else
15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521/* end confdefs.h. */
5e9f2524 15522
11a3e7b6
VZ
15523int
15524main ()
15525{
15526char *foo = __func__;
15527 ;
15528 return 0;
15529}
15530_ACEOF
15531if ac_fn_c_try_compile "$LINENO"; then :
15532 ac_cv_cpp_func=yes
15533else
15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535/* end confdefs.h. */
5e9f2524 15536
11a3e7b6
VZ
15537int
15538main ()
15539{
15540char *foo = __FUNCTION__;
15541 ;
15542 return 0;
15543}
15544_ACEOF
15545if ac_fn_c_try_compile "$LINENO"; then :
15546 ac_cv_cpp_func=__FUNCTION__
15547else
15548 ac_cv_cpp_func=no
15549fi
15550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551fi
15552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15553fi
15554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_func" >&5
15555$as_echo "$ac_cv_cpp_func" >&6; }
15556if test $ac_cv_cpp_func = __FUNCTION__; then
5e9f2524 15557
11a3e7b6 15558$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
5e9f2524 15559
11a3e7b6 15560elif test $ac_cv_cpp_func = no; then
5e9f2524 15561
11a3e7b6 15562$as_echo "#define __func__ \"\"" >>confdefs.h
5e9f2524 15563
11a3e7b6 15564fi
5e9f2524 15565
5e9f2524 15566
5e9f2524 15567
5e9f2524 15568
11a3e7b6 15569$as_echo "#define XML_NS 1" >>confdefs.h
5e9f2524 15570
4301e38a 15571
11a3e7b6 15572$as_echo "#define XML_DTD 1" >>confdefs.h
4301e38a 15573
4301e38a 15574
11a3e7b6 15575$as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h
4301e38a 15576
4301e38a 15577
11a3e7b6 15578ac_config_files="$ac_config_files Makefile expat.pc"
4301e38a 15579
11a3e7b6
VZ
15580cat >confcache <<\_ACEOF
15581# This file is a shell script that caches the results of configure
15582# tests run on this system so they can be shared between configure
15583# scripts and configure runs, see configure's option --config-cache.
15584# It is not useful on other systems. If it contains results you don't
15585# want to keep, you may remove or edit it.
15586#
15587# config.status only pays attention to the cache file if you give it
15588# the --recheck option to rerun configure.
15589#
15590# `ac_cv_env_foo' variables (set or unset) will be overridden when
15591# loading this file, other *unset* `ac_cv_foo' will be assigned the
15592# following values.
4301e38a 15593
11a3e7b6 15594_ACEOF
4301e38a 15595
11a3e7b6
VZ
15596# The following way of writing the cache mishandles newlines in values,
15597# but we know of no workaround that is simple, portable, and efficient.
15598# So, we kill variables containing newlines.
15599# Ultrix sh set writes to stderr and can't be redirected directly,
15600# and sets the high bit in the cache file unless we assign to the vars.
15601(
15602 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15603 eval ac_val=\$$ac_var
15604 case $ac_val in #(
15605 *${as_nl}*)
15606 case $ac_var in #(
15607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15608$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15609 esac
15610 case $ac_var in #(
15611 _ | IFS | as_nl) ;; #(
15612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15613 *) { eval $ac_var=; unset $ac_var;} ;;
15614 esac ;;
15615 esac
15616 done
4301e38a 15617
11a3e7b6
VZ
15618 (set) 2>&1 |
15619 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15620 *${as_nl}ac_space=\ *)
15621 # `set' does not quote correctly, so add quotes: double-quote
15622 # substitution turns \\\\ into \\, and sed turns \\ into \.
15623 sed -n \
15624 "s/'/'\\\\''/g;
15625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15626 ;; #(
15627 *)
15628 # `set' quotes correctly as required by POSIX, so do not add quotes.
15629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15630 ;;
15631 esac |
15632 sort
15633) |
15634 sed '
15635 /^ac_cv_env_/b end
15636 t clear
15637 :clear
15638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15639 t end
15640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15641 :end' >>confcache
15642if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15643 if test -w "$cache_file"; then
15644 if test "x$cache_file" != "x/dev/null"; then
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15646$as_echo "$as_me: updating cache $cache_file" >&6;}
15647 if test ! -f "$cache_file" || test -h "$cache_file"; then
15648 cat confcache >"$cache_file"
15649 else
15650 case $cache_file in #(
15651 */* | ?:*)
15652 mv -f confcache "$cache_file"$$ &&
15653 mv -f "$cache_file"$$ "$cache_file" ;; #(
15654 *)
15655 mv -f confcache "$cache_file" ;;
15656 esac
15657 fi
15658 fi
15659 else
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15661$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15662 fi
15663fi
15664rm -f confcache
4301e38a 15665
11a3e7b6
VZ
15666test "x$prefix" = xNONE && prefix=$ac_default_prefix
15667# Let make expand exec_prefix.
15668test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4301e38a 15669
11a3e7b6 15670DEFS=-DHAVE_CONFIG_H
4301e38a 15671
11a3e7b6
VZ
15672ac_libobjs=
15673ac_ltlibobjs=
15674U=
15675for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15676 # 1. Remove the extension, and $U if already installed.
15677 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15678 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15680 # will be set to the directory where LIBOBJS objects are built.
15681 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15682 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15683done
15684LIBOBJS=$ac_libobjs
4301e38a 15685
11a3e7b6 15686LTLIBOBJS=$ac_ltlibobjs
5e9f2524 15687
5e9f2524 15688
5e9f2524 15689
11a3e7b6
VZ
15690: "${CONFIG_STATUS=./config.status}"
15691ac_write_fail=0
15692ac_clean_files_save=$ac_clean_files
15693ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15694{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15695$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15696as_write_fail=0
15697cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15698#! $SHELL
15699# Generated by $as_me.
15700# Run this file to recreate the current configuration.
15701# Compiler output produced by configure, useful for debugging
15702# configure, is in config.log if it exists.
5e9f2524 15703
11a3e7b6
VZ
15704debug=false
15705ac_cs_recheck=false
15706ac_cs_silent=false
5e9f2524 15707
11a3e7b6
VZ
15708SHELL=\${CONFIG_SHELL-$SHELL}
15709export SHELL
15710_ASEOF
15711cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15712## -------------------- ##
15713## M4sh Initialization. ##
15714## -------------------- ##
15715
15716# Be more Bourne compatible
15717DUALCASE=1; export DUALCASE # for MKS sh
15718if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15719 emulate sh
15720 NULLCMD=:
15721 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15722 # is contrary to our usage. Disable this feature.
15723 alias -g '${1+"$@"}'='"$@"'
15724 setopt NO_GLOB_SUBST
15725else
15726 case `(set -o) 2>/dev/null` in #(
15727 *posix*) :
15728 set -o posix ;; #(
15729 *) :
15730 ;;
15731esac
15732fi
5e9f2524 15733
5e9f2524 15734
11a3e7b6
VZ
15735as_nl='
15736'
15737export as_nl
15738# Printing a long string crashes Solaris 7 /usr/bin/printf.
15739as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15740as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15741as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15742# Prefer a ksh shell builtin over an external printf program on Solaris,
15743# but without wasting forks for bash or zsh.
15744if test -z "$BASH_VERSION$ZSH_VERSION" \
15745 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15746 as_echo='print -r --'
15747 as_echo_n='print -rn --'
15748elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15749 as_echo='printf %s\n'
15750 as_echo_n='printf %s'
15751else
15752 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15753 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15754 as_echo_n='/usr/ucb/echo -n'
15755 else
15756 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15757 as_echo_n_body='eval
15758 arg=$1;
15759 case $arg in #(
15760 *"$as_nl"*)
15761 expr "X$arg" : "X\\(.*\\)$as_nl";
15762 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15763 esac;
15764 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15765 '
15766 export as_echo_n_body
15767 as_echo_n='sh -c $as_echo_n_body as_echo'
15768 fi
15769 export as_echo_body
15770 as_echo='sh -c $as_echo_body as_echo'
15771fi
5e9f2524 15772
11a3e7b6
VZ
15773# The user is always right.
15774if test "${PATH_SEPARATOR+set}" != set; then
15775 PATH_SEPARATOR=:
15776 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15777 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15778 PATH_SEPARATOR=';'
15779 }
15780fi
5e9f2524 15781
5e9f2524 15782
11a3e7b6
VZ
15783# IFS
15784# We need space, tab and new line, in precisely that order. Quoting is
15785# there to prevent editors from complaining about space-tab.
15786# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15787# splitting by setting IFS to empty value.)
15788IFS=" "" $as_nl"
15789
15790# Find who we are. Look in the path if we contain no directory separator.
15791as_myself=
15792case $0 in #((
15793 *[\\/]* ) as_myself=$0 ;;
15794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15795for as_dir in $PATH
15796do
15797 IFS=$as_save_IFS
15798 test -z "$as_dir" && as_dir=.
15799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15800 done
15801IFS=$as_save_IFS
5e9f2524 15802
11a3e7b6
VZ
15803 ;;
15804esac
15805# We did not find ourselves, most probably we were run as `sh COMMAND'
15806# in which case we are not to be found in the path.
15807if test "x$as_myself" = x; then
15808 as_myself=$0
15809fi
15810if test ! -f "$as_myself"; then
15811 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15812 exit 1
15813fi
15814
15815# Unset variables that we do not need and which cause bugs (e.g. in
15816# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15817# suppresses any "Segmentation fault" message there. '((' could
15818# trigger a bug in pdksh 5.2.14.
15819for as_var in BASH_ENV ENV MAIL MAILPATH
15820do eval test x\${$as_var+set} = xset \
15821 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15822done
15823PS1='$ '
15824PS2='> '
15825PS4='+ '
5e9f2524 15826
11a3e7b6
VZ
15827# NLS nuisances.
15828LC_ALL=C
15829export LC_ALL
15830LANGUAGE=C
15831export LANGUAGE
5e9f2524 15832
11a3e7b6
VZ
15833# CDPATH.
15834(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5e9f2524 15835
5e9f2524 15836
11a3e7b6
VZ
15837# as_fn_error STATUS ERROR [LINENO LOG_FD]
15838# ----------------------------------------
15839# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15840# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15841# script with STATUS, using 1 if that was 0.
15842as_fn_error ()
15843{
15844 as_status=$1; test $as_status -eq 0 && as_status=1
15845 if test "$4"; then
15846 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15847 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15848 fi
15849 $as_echo "$as_me: error: $2" >&2
15850 as_fn_exit $as_status
15851} # as_fn_error
5e9f2524 15852
5e9f2524 15853
11a3e7b6
VZ
15854# as_fn_set_status STATUS
15855# -----------------------
15856# Set $? to STATUS, without forking.
15857as_fn_set_status ()
15858{
15859 return $1
15860} # as_fn_set_status
4301e38a 15861
11a3e7b6
VZ
15862# as_fn_exit STATUS
15863# -----------------
15864# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15865as_fn_exit ()
15866{
15867 set +e
15868 as_fn_set_status $1
15869 exit $1
15870} # as_fn_exit
15871
15872# as_fn_unset VAR
15873# ---------------
15874# Portably unset VAR.
15875as_fn_unset ()
15876{
15877 { eval $1=; unset $1;}
15878}
15879as_unset=as_fn_unset
15880# as_fn_append VAR VALUE
15881# ----------------------
15882# Append the text in VALUE to the end of the definition contained in VAR. Take
15883# advantage of any shell optimizations that allow amortized linear growth over
15884# repeated appends, instead of the typical quadratic growth present in naive
15885# implementations.
15886if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15887 eval 'as_fn_append ()
15888 {
15889 eval $1+=\$2
15890 }'
15891else
15892 as_fn_append ()
15893 {
15894 eval $1=\$$1\$2
15895 }
15896fi # as_fn_append
15897
15898# as_fn_arith ARG...
15899# ------------------
15900# Perform arithmetic evaluation on the ARGs, and store the result in the
15901# global $as_val. Take advantage of shells that can avoid forks. The arguments
15902# must be portable across $(()) and expr.
15903if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15904 eval 'as_fn_arith ()
15905 {
15906 as_val=$(( $* ))
15907 }'
15908else
15909 as_fn_arith ()
15910 {
15911 as_val=`expr "$@" || test $? -eq 1`
15912 }
15913fi # as_fn_arith
4301e38a 15914
79608eef 15915
11a3e7b6
VZ
15916if expr a : '\(a\)' >/dev/null 2>&1 &&
15917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15918 as_expr=expr
15919else
15920 as_expr=false
15921fi
5e9f2524 15922
11a3e7b6
VZ
15923if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15924 as_basename=basename
15925else
15926 as_basename=false
15927fi
5e9f2524 15928
11a3e7b6
VZ
15929if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15930 as_dirname=dirname
15931else
15932 as_dirname=false
15933fi
5e9f2524 15934
11a3e7b6
VZ
15935as_me=`$as_basename -- "$0" ||
15936$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15937 X"$0" : 'X\(//\)$' \| \
15938 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15939$as_echo X/"$0" |
15940 sed '/^.*\/\([^/][^/]*\)\/*$/{
15941 s//\1/
15942 q
15943 }
15944 /^X\/\(\/\/\)$/{
15945 s//\1/
15946 q
15947 }
15948 /^X\/\(\/\).*/{
15949 s//\1/
15950 q
15951 }
15952 s/.*/./; q'`
79608eef 15953
11a3e7b6
VZ
15954# Avoid depending upon Character Ranges.
15955as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15956as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15957as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15958as_cr_digits='0123456789'
15959as_cr_alnum=$as_cr_Letters$as_cr_digits
4301e38a 15960
11a3e7b6
VZ
15961ECHO_C= ECHO_N= ECHO_T=
15962case `echo -n x` in #(((((
15963-n*)
15964 case `echo 'xy\c'` in
15965 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15966 xy) ECHO_C='\c';;
15967 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15968 ECHO_T=' ';;
15969 esac;;
15970*)
15971 ECHO_N='-n';;
15972esac
4301e38a 15973
11a3e7b6
VZ
15974rm -f conf$$ conf$$.exe conf$$.file
15975if test -d conf$$.dir; then
15976 rm -f conf$$.dir/conf$$.file
15977else
15978 rm -f conf$$.dir
15979 mkdir conf$$.dir 2>/dev/null
5e9f2524 15980fi
11a3e7b6
VZ
15981if (echo >conf$$.file) 2>/dev/null; then
15982 if ln -s conf$$.file conf$$ 2>/dev/null; then
15983 as_ln_s='ln -s'
15984 # ... but there are two gotchas:
15985 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15986 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15987 # In both cases, we have to default to `cp -pR'.
15988 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15989 as_ln_s='cp -pR'
15990 elif ln conf$$.file conf$$ 2>/dev/null; then
15991 as_ln_s=ln
15992 else
15993 as_ln_s='cp -pR'
15994 fi
15995else
15996 as_ln_s='cp -pR'
15997fi
15998rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15999rmdir conf$$.dir 2>/dev/null
4301e38a 16000
79608eef 16001
11a3e7b6
VZ
16002# as_fn_mkdir_p
16003# -------------
16004# Create "$as_dir" as a directory, including parents if necessary.
16005as_fn_mkdir_p ()
16006{
16007
16008 case $as_dir in #(
16009 -*) as_dir=./$as_dir;;
4301e38a 16010 esac
11a3e7b6
VZ
16011 test -d "$as_dir" || eval $as_mkdir_p || {
16012 as_dirs=
16013 while :; do
16014 case $as_dir in #(
16015 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16016 *) as_qdir=$as_dir;;
16017 esac
16018 as_dirs="'$as_qdir' $as_dirs"
16019 as_dir=`$as_dirname -- "$as_dir" ||
16020$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16021 X"$as_dir" : 'X\(//\)[^/]' \| \
16022 X"$as_dir" : 'X\(//\)$' \| \
16023 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16024$as_echo X"$as_dir" |
16025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16026 s//\1/
16027 q
16028 }
16029 /^X\(\/\/\)[^/].*/{
16030 s//\1/
16031 q
16032 }
16033 /^X\(\/\/\)$/{
16034 s//\1/
16035 q
16036 }
16037 /^X\(\/\).*/{
16038 s//\1/
16039 q
16040 }
16041 s/.*/./; q'`
16042 test -d "$as_dir" && break
16043 done
16044 test -z "$as_dirs" || eval "mkdir $as_dirs"
16045 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4301e38a 16046
79608eef 16047
11a3e7b6
VZ
16048} # as_fn_mkdir_p
16049if mkdir -p . 2>/dev/null; then
16050 as_mkdir_p='mkdir -p "$as_dir"'
16051else
16052 test -d ./-p && rmdir ./-p
16053 as_mkdir_p=false
79608eef 16054fi
4301e38a
DE
16055
16056
11a3e7b6
VZ
16057# as_fn_executable_p FILE
16058# -----------------------
16059# Test if FILE is an executable regular file.
16060as_fn_executable_p ()
16061{
16062 test -f "$1" && test -x "$1"
16063} # as_fn_executable_p
16064as_test_x='test -x'
16065as_executable_p=as_fn_executable_p
4301e38a 16066
11a3e7b6
VZ
16067# Sed expression to map a string onto a valid CPP name.
16068as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4301e38a 16069
11a3e7b6
VZ
16070# Sed expression to map a string onto a valid variable name.
16071as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4301e38a 16072
4301e38a 16073
11a3e7b6
VZ
16074exec 6>&1
16075## ----------------------------------- ##
16076## Main body of $CONFIG_STATUS script. ##
16077## ----------------------------------- ##
16078_ASEOF
16079test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16080
16081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16082# Save the log message, to keep $0 and so on meaningful, and to
16083# report actual input values of CONFIG_FILES etc. instead of their
16084# values after options handling.
16085ac_log="
16086This file was extended by expat $as_me 2.1.0, which was
16087generated by GNU Autoconf 2.69. Invocation command line was
4301e38a 16088
11a3e7b6
VZ
16089 CONFIG_FILES = $CONFIG_FILES
16090 CONFIG_HEADERS = $CONFIG_HEADERS
16091 CONFIG_LINKS = $CONFIG_LINKS
16092 CONFIG_COMMANDS = $CONFIG_COMMANDS
16093 $ $0 $@
79608eef 16094
11a3e7b6
VZ
16095on `(hostname || uname -n) 2>/dev/null | sed 1q`
16096"
79608eef 16097
11a3e7b6 16098_ACEOF
79608eef 16099
11a3e7b6
VZ
16100case $ac_config_files in *"
16101"*) set x $ac_config_files; shift; ac_config_files=$*;;
16102esac
79608eef 16103
11a3e7b6
VZ
16104case $ac_config_headers in *"
16105"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16106esac
5e9f2524 16107
79608eef 16108
11a3e7b6
VZ
16109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16110# Files that config.status was made for.
16111config_files="$ac_config_files"
16112config_headers="$ac_config_headers"
16113config_commands="$ac_config_commands"
5e9f2524 16114
11a3e7b6 16115_ACEOF
5e9f2524 16116
11a3e7b6
VZ
16117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16118ac_cs_usage="\
16119\`$as_me' instantiates files and other configuration actions
16120from templates according to the current configuration. Unless the files
16121and actions are specified as TAGs, all are instantiated by default.
5e9f2524 16122
11a3e7b6 16123Usage: $0 [OPTION]... [TAG]...
5e9f2524 16124
11a3e7b6
VZ
16125 -h, --help print this help, then exit
16126 -V, --version print version number and configuration settings, then exit
16127 --config print configuration, then exit
16128 -q, --quiet, --silent
16129 do not print progress messages
16130 -d, --debug don't remove temporary files
16131 --recheck update $as_me by reconfiguring in the same conditions
16132 --file=FILE[:TEMPLATE]
16133 instantiate the configuration file FILE
16134 --header=FILE[:TEMPLATE]
16135 instantiate the configuration header FILE
5e9f2524 16136
11a3e7b6
VZ
16137Configuration files:
16138$config_files
5e9f2524 16139
11a3e7b6
VZ
16140Configuration headers:
16141$config_headers
5e9f2524 16142
11a3e7b6
VZ
16143Configuration commands:
16144$config_commands
5e9f2524 16145
11a3e7b6 16146Report bugs to <expat-bugs@libexpat.org>."
5e9f2524 16147
5e9f2524 16148_ACEOF
11a3e7b6
VZ
16149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16150ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16151ac_cs_version="\\
16152expat config.status 2.1.0
16153configured by $0, generated by GNU Autoconf 2.69,
16154 with options \\"\$ac_cs_config\\"
79608eef 16155
11a3e7b6
VZ
16156Copyright (C) 2012 Free Software Foundation, Inc.
16157This config.status script is free software; the Free Software Foundation
16158gives unlimited permission to copy, distribute and modify it."
5e9f2524 16159
11a3e7b6
VZ
16160ac_pwd='$ac_pwd'
16161srcdir='$srcdir'
16162INSTALL='$INSTALL'
16163test -n "\$AWK" || AWK=awk
79608eef 16164_ACEOF
5e9f2524 16165
11a3e7b6
VZ
16166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16167# The default lists apply if the user does not specify any file.
16168ac_need_defaults=:
16169while test $# != 0
16170do
16171 case $1 in
16172 --*=?*)
16173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16174 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16175 ac_shift=:
16176 ;;
16177 --*=)
16178 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16179 ac_optarg=
16180 ac_shift=:
16181 ;;
16182 *)
16183 ac_option=$1
16184 ac_optarg=$2
16185 ac_shift=shift
16186 ;;
16187 esac
16188
16189 case $ac_option in
16190 # Handling of the options.
16191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16192 ac_cs_recheck=: ;;
16193 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16194 $as_echo "$ac_cs_version"; exit ;;
16195 --config | --confi | --conf | --con | --co | --c )
16196 $as_echo "$ac_cs_config"; exit ;;
16197 --debug | --debu | --deb | --de | --d | -d )
16198 debug=: ;;
16199 --file | --fil | --fi | --f )
16200 $ac_shift
16201 case $ac_optarg in
16202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16203 '') as_fn_error $? "missing file argument" ;;
16204 esac
16205 as_fn_append CONFIG_FILES " '$ac_optarg'"
16206 ac_need_defaults=false;;
16207 --header | --heade | --head | --hea )
16208 $ac_shift
16209 case $ac_optarg in
16210 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16211 esac
16212 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16213 ac_need_defaults=false;;
16214 --he | --h)
16215 # Conflict between --help and --header
16216 as_fn_error $? "ambiguous option: \`$1'
16217Try \`$0 --help' for more information.";;
16218 --help | --hel | -h )
16219 $as_echo "$ac_cs_usage"; exit ;;
16220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16222 ac_cs_silent=: ;;
79608eef 16223
11a3e7b6
VZ
16224 # This is an error.
16225 -*) as_fn_error $? "unrecognized option: \`$1'
16226Try \`$0 --help' for more information." ;;
79608eef 16227
11a3e7b6
VZ
16228 *) as_fn_append ac_config_targets " $1"
16229 ac_need_defaults=false ;;
5e9f2524 16230
11a3e7b6
VZ
16231 esac
16232 shift
16233done
5e9f2524 16234
11a3e7b6 16235ac_configure_extra_args=
5e9f2524 16236
11a3e7b6
VZ
16237if $ac_cs_silent; then
16238 exec 6>/dev/null
16239 ac_configure_extra_args="$ac_configure_extra_args --silent"
5e9f2524
VS
16240fi
16241
5e9f2524 16242_ACEOF
11a3e7b6
VZ
16243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16244if \$ac_cs_recheck; then
16245 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16246 shift
16247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16248 CONFIG_SHELL='$SHELL'
16249 export CONFIG_SHELL
16250 exec "\$@"
5e9f2524
VS
16251fi
16252
79608eef 16253_ACEOF
11a3e7b6
VZ
16254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16255exec 5>>config.log
5e9f2524 16256{
11a3e7b6
VZ
16257 echo
16258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16259## Running $as_me. ##
16260_ASBOX
16261 $as_echo "$ac_log"
16262} >&5
5e9f2524 16263
5e9f2524 16264_ACEOF
11a3e7b6
VZ
16265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16266#
16267# INIT-COMMANDS
16268#
5e9f2524
VS
16269
16270
11a3e7b6
VZ
16271# The HP-UX ksh and POSIX shell print the target directory to stdout
16272# if CDPATH is set.
16273(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16274
16275sed_quote_subst='$sed_quote_subst'
16276double_quote_subst='$double_quote_subst'
16277delay_variable_subst='$delay_variable_subst'
16278AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16279DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16280OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16281macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16282macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16283enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16284enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16285pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16286enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16287host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16288host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16289host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16290build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16291build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16292build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16293SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16294Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16295GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16296EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16297FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16298LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16299NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16300LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16301max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16302ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16303exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16304lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16305lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16306lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16307reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16308reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16309deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16310file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16311AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16312AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16313STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16314RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16315old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16316old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16317old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16318CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16319CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16320compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16321GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16322lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16323lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16324lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16325lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16326objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16327SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16328ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16329MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16330lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16331lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16332lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16333lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16334lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16335need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16336DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16337NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16338LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16339OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16340OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16341libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16342shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16343extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16344archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16345enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16346export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16347whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16348compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16349old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16350old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16351archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16352archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16353module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16354module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16355with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16356allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16357no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16358hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16359hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16360hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16361hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16362hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16363hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16364hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16365hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16366inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16367link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16368fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16369always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16370export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16371exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16372include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16373prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16374file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16375variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16376need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16377need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16378version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16379runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16380shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16381shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16382libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16383library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16384soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16385postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16386postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16387finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16388finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16389hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16390sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16391sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16392hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16393enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16394enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16395enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16396old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16397striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16398compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16399predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16400postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16401predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16402postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16403compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16404LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16405old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16406compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16407GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16408lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16409lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16410lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16411lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16412lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16413archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16414enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16415export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16416whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16417compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16418old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16419old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16420archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16421archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16422module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16423module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16424with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16425allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16426no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16427hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16428hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16429hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16430hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16431hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16432hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16433hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16434hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16435inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16436link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16437fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16438always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16439export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16440exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16441include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16442prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16443file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16444hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16445compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16446predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16447postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16448predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16449postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16450compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16451
16452LTCC='$LTCC'
16453LTCFLAGS='$LTCFLAGS'
16454compiler='$compiler_DEFAULT'
16455
16456# Quote evaled strings.
16457for var in SED \
16458GREP \
16459EGREP \
16460FGREP \
16461LD \
16462NM \
16463LN_S \
16464lt_SP2NL \
16465lt_NL2SP \
16466reload_flag \
16467deplibs_check_method \
16468file_magic_cmd \
16469AR \
16470AR_FLAGS \
16471STRIP \
16472RANLIB \
16473CC \
16474CFLAGS \
16475compiler \
16476lt_cv_sys_global_symbol_pipe \
16477lt_cv_sys_global_symbol_to_cdecl \
16478lt_cv_sys_global_symbol_to_c_name_address \
16479lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16480SHELL \
16481ECHO \
16482lt_prog_compiler_no_builtin_flag \
16483lt_prog_compiler_wl \
16484lt_prog_compiler_pic \
16485lt_prog_compiler_static \
16486lt_cv_prog_compiler_c_o \
16487need_locks \
16488DSYMUTIL \
16489NMEDIT \
16490LIPO \
16491OTOOL \
16492OTOOL64 \
16493shrext_cmds \
16494export_dynamic_flag_spec \
16495whole_archive_flag_spec \
16496compiler_needs_object \
16497with_gnu_ld \
16498allow_undefined_flag \
16499no_undefined_flag \
16500hardcode_libdir_flag_spec \
16501hardcode_libdir_flag_spec_ld \
16502hardcode_libdir_separator \
16503fix_srcfile_path \
16504exclude_expsyms \
16505include_expsyms \
16506file_list_spec \
16507variables_saved_for_relink \
16508libname_spec \
16509library_names_spec \
16510soname_spec \
16511finish_eval \
16512old_striplib \
16513striplib \
16514compiler_lib_search_dirs \
16515predep_objects \
16516postdep_objects \
16517predeps \
16518postdeps \
16519compiler_lib_search_path \
16520LD_CXX \
16521compiler_CXX \
16522lt_prog_compiler_no_builtin_flag_CXX \
16523lt_prog_compiler_wl_CXX \
16524lt_prog_compiler_pic_CXX \
16525lt_prog_compiler_static_CXX \
16526lt_cv_prog_compiler_c_o_CXX \
16527export_dynamic_flag_spec_CXX \
16528whole_archive_flag_spec_CXX \
16529compiler_needs_object_CXX \
16530with_gnu_ld_CXX \
16531allow_undefined_flag_CXX \
16532no_undefined_flag_CXX \
16533hardcode_libdir_flag_spec_CXX \
16534hardcode_libdir_flag_spec_ld_CXX \
16535hardcode_libdir_separator_CXX \
16536fix_srcfile_path_CXX \
16537exclude_expsyms_CXX \
16538include_expsyms_CXX \
16539file_list_spec_CXX \
16540compiler_lib_search_dirs_CXX \
16541predep_objects_CXX \
16542postdep_objects_CXX \
16543predeps_CXX \
16544postdeps_CXX \
16545compiler_lib_search_path_CXX; do
16546 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16547 *[\\\\\\\`\\"\\\$]*)
16548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16549 ;;
16550 *)
16551 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16552 ;;
16553 esac
16554done
5e9f2524 16555
11a3e7b6
VZ
16556# Double-quote double-evaled strings.
16557for var in reload_cmds \
16558old_postinstall_cmds \
16559old_postuninstall_cmds \
16560old_archive_cmds \
16561extract_expsyms_cmds \
16562old_archive_from_new_cmds \
16563old_archive_from_expsyms_cmds \
16564archive_cmds \
16565archive_expsym_cmds \
16566module_cmds \
16567module_expsym_cmds \
16568export_symbols_cmds \
16569prelink_cmds \
16570postinstall_cmds \
16571postuninstall_cmds \
16572finish_cmds \
16573sys_lib_search_path_spec \
16574sys_lib_dlsearch_path_spec \
16575old_archive_cmds_CXX \
16576old_archive_from_new_cmds_CXX \
16577old_archive_from_expsyms_cmds_CXX \
16578archive_cmds_CXX \
16579archive_expsym_cmds_CXX \
16580module_cmds_CXX \
16581module_expsym_cmds_CXX \
16582export_symbols_cmds_CXX \
16583prelink_cmds_CXX; do
16584 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16585 *[\\\\\\\`\\"\\\$]*)
16586 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16587 ;;
16588 *)
16589 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16590 ;;
16591 esac
16592done
79608eef 16593
11a3e7b6
VZ
16594# Fix-up fallback echo if it was mangled by the above quoting rules.
16595case \$lt_ECHO in
16596*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16597 ;;
16598esac
5e9f2524 16599
11a3e7b6
VZ
16600ac_aux_dir='$ac_aux_dir'
16601xsi_shell='$xsi_shell'
16602lt_shell_append='$lt_shell_append'
79608eef 16603
11a3e7b6
VZ
16604# See if we are running on zsh, and set the options which allow our
16605# commands through without removal of \ escapes INIT.
16606if test -n "\${ZSH_VERSION+set}" ; then
16607 setopt NO_GLOB_SUBST
5e9f2524 16608fi
5e9f2524 16609
5e9f2524 16610
11a3e7b6
VZ
16611 PACKAGE='$PACKAGE'
16612 VERSION='$VERSION'
16613 TIMESTAMP='$TIMESTAMP'
16614 RM='$RM'
16615 ofile='$ofile'
5e9f2524 16616
5e9f2524 16617
5e9f2524
VS
16618
16619
16620
5e9f2524 16621
79608eef 16622_ACEOF
5e9f2524 16623
11a3e7b6 16624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
79608eef 16625
11a3e7b6
VZ
16626# Handling of arguments.
16627for ac_config_target in $ac_config_targets
16628do
16629 case $ac_config_target in
16630 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
16631 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16632 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16633 "expat.pc") CONFIG_FILES="$CONFIG_FILES expat.pc" ;;
79608eef 16634
11a3e7b6
VZ
16635 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16636 esac
16637done
79608eef 16638
5e9f2524 16639
11a3e7b6
VZ
16640# If the user did not use the arguments to specify the items to instantiate,
16641# then the envvar interface is used. Set only those that are not.
16642# We use the long form for the default assignment because of an extremely
16643# bizarre bug on SunOS 4.1.3.
16644if $ac_need_defaults; then
16645 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16646 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16647 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5e9f2524 16648fi
5e9f2524 16649
11a3e7b6
VZ
16650# Have a temporary directory for convenience. Make it in the build tree
16651# simply because there is no reason against having it here, and in addition,
16652# creating and moving files from /tmp can sometimes cause problems.
16653# Hook for its removal unless debugging.
16654# Note that there is a small window in which the directory will not be cleaned:
16655# after its creation but before its name has been assigned to `$tmp'.
16656$debug ||
16657{
16658 tmp= ac_tmp=
16659 trap 'exit_status=$?
16660 : "${ac_tmp:=$tmp}"
16661 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16662' 0
16663 trap 'as_fn_exit 1' 1 2 13 15
16664}
16665# Create a (secure) tmp directory for tmp files.
5e9f2524 16666
11a3e7b6
VZ
16667{
16668 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16669 test -d "$tmp"
16670} ||
16671{
16672 tmp=./conf$$-$RANDOM
16673 (umask 077 && mkdir "$tmp")
16674} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16675ac_tmp=$tmp
16676
16677# Set up the scripts for CONFIG_FILES section.
16678# No need to generate them if there are no CONFIG_FILES.
16679# This happens for instance with `./config.status config.h'.
16680if test -n "$CONFIG_FILES"; then
16681
16682
16683ac_cr=`echo X | tr X '\015'`
16684# On cygwin, bash can eat \r inside `` if the user requested igncr.
16685# But we know of no other shell where ac_cr would be empty at this
16686# point, so we can use a bashism as a fallback.
16687if test "x$ac_cr" = x; then
16688 eval ac_cr=\$\'\\r\'
16689fi
16690ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16691if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16692 ac_cs_awk_cr='\\r'
5e9f2524 16693else
11a3e7b6 16694 ac_cs_awk_cr=$ac_cr
5e9f2524
VS
16695fi
16696
11a3e7b6 16697echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5e9f2524
VS
16698_ACEOF
16699
5e9f2524 16700
11a3e7b6
VZ
16701{
16702 echo "cat >conf$$subs.awk <<_ACEOF" &&
16703 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16704 echo "_ACEOF"
16705} >conf$$subs.sh ||
16706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16707ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16708ac_delim='%!_!# '
16709for ac_last_try in false false false false false :; do
16710 . ./conf$$subs.sh ||
16711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16712
16713 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16714 if test $ac_delim_n = $ac_delim_num; then
16715 break
16716 elif $ac_last_try; then
16717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16718 else
16719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16720 fi
16721done
16722rm -f conf$$subs.sh
5e9f2524 16723
11a3e7b6
VZ
16724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16725cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
79608eef 16726_ACEOF
11a3e7b6
VZ
16727sed -n '
16728h
16729s/^/S["/; s/!.*/"]=/
16730p
16731g
16732s/^[^!]*!//
16733:repl
16734t repl
16735s/'"$ac_delim"'$//
16736t delim
16737:nl
16738h
16739s/\(.\{148\}\)..*/\1/
16740t more1
16741s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16742p
16743n
16744b repl
16745:more1
16746s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16747p
16748g
16749s/.\{148\}//
16750t nl
16751:delim
16752h
16753s/\(.\{148\}\)..*/\1/
16754t more2
16755s/["\\]/\\&/g; s/^/"/; s/$/"/
16756p
16757b
16758:more2
16759s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16760p
16761g
16762s/.\{148\}//
16763t delim
16764' <conf$$subs.awk | sed '
16765/^[^""]/{
16766 N
16767 s/\n//
16768}
16769' >>$CONFIG_STATUS || ac_write_fail=1
16770rm -f conf$$subs.awk
16771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16772_ACAWK
16773cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16774 for (key in S) S_is_set[key] = 1
16775 FS = "\a"
5e9f2524 16776
11a3e7b6 16777}
5e9f2524 16778{
11a3e7b6
VZ
16779 line = $ 0
16780 nfields = split(line, field, "@")
16781 substed = 0
16782 len = length(field[1])
16783 for (i = 2; i < nfields; i++) {
16784 key = field[i]
16785 keylen = length(key)
16786 if (S_is_set[key]) {
16787 value = S[key]
16788 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16789 len += length(value) + length(field[++i])
16790 substed = 1
16791 } else
16792 len += 1 + keylen
5e9f2524 16793 }
5e9f2524 16794
11a3e7b6 16795 print line
5e9f2524 16796}
11a3e7b6
VZ
16797
16798_ACAWK
5e9f2524 16799_ACEOF
11a3e7b6
VZ
16800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16801if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16802 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5e9f2524 16803else
11a3e7b6
VZ
16804 cat
16805fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16806 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16807_ACEOF
79608eef 16808
11a3e7b6
VZ
16809# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16810# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16811# trailing colons and then remove the whole line if VPATH becomes empty
16812# (actually we leave an empty line to preserve line numbers).
16813if test "x$srcdir" = x.; then
16814 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16815h
16816s///
16817s/^/:/
16818s/[ ]*$/:/
16819s/:\$(srcdir):/:/g
16820s/:\${srcdir}:/:/g
16821s/:@srcdir@:/:/g
16822s/^:*//
16823s/:*$//
16824x
16825s/\(=[ ]*\).*/\1/
16826G
16827s/\n//
16828s/^[^=]*=[ ]*$//
16829}'
5e9f2524 16830fi
5e9f2524 16831
11a3e7b6
VZ
16832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16833fi # test -n "$CONFIG_FILES"
16834
16835# Set up the scripts for CONFIG_HEADERS section.
16836# No need to generate them if there are no CONFIG_HEADERS.
16837# This happens for instance with `./config.status Makefile'.
16838if test -n "$CONFIG_HEADERS"; then
16839cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16840BEGIN {
5e9f2524
VS
16841_ACEOF
16842
11a3e7b6
VZ
16843# Transform confdefs.h into an awk script `defines.awk', embedded as
16844# here-document in config.status, that substitutes the proper values into
16845# config.h.in to produce config.h.
5e9f2524 16846
11a3e7b6
VZ
16847# Create a delimiter string that does not exist in confdefs.h, to ease
16848# handling of long lines.
16849ac_delim='%!_!# '
16850for ac_last_try in false false :; do
16851 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16852 if test -z "$ac_tt"; then
16853 break
16854 elif $ac_last_try; then
16855 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16856 else
16857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16858 fi
16859done
16860
16861# For the awk script, D is an array of macro values keyed by name,
16862# likewise P contains macro parameters if any. Preserve backslash
16863# newline sequences.
16864
16865ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16866sed -n '
16867s/.\{148\}/&'"$ac_delim"'/g
16868t rset
16869:rset
16870s/^[ ]*#[ ]*define[ ][ ]*/ /
16871t def
16872d
16873:def
16874s/\\$//
16875t bsnl
16876s/["\\]/\\&/g
16877s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16878D["\1"]=" \3"/p
16879s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16880d
16881:bsnl
16882s/["\\]/\\&/g
16883s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16884D["\1"]=" \3\\\\\\n"\\/p
16885t cont
16886s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16887t cont
16888d
16889:cont
16890n
16891s/.\{148\}/&'"$ac_delim"'/g
16892t clear
16893:clear
16894s/\\$//
16895t bsnlc
16896s/["\\]/\\&/g; s/^/"/; s/$/"/p
16897d
16898:bsnlc
16899s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16900b cont
16901' <confdefs.h | sed '
16902s/'"$ac_delim"'/"\\\
16903"/g' >>$CONFIG_STATUS || ac_write_fail=1
16904
16905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16906 for (key in D) D_is_set[key] = 1
16907 FS = "\a"
16908}
16909/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16910 line = \$ 0
16911 split(line, arg, " ")
16912 if (arg[1] == "#") {
16913 defundef = arg[2]
16914 mac1 = arg[3]
16915 } else {
16916 defundef = substr(arg[1], 2)
16917 mac1 = arg[2]
16918 }
16919 split(mac1, mac2, "(") #)
16920 macro = mac2[1]
16921 prefix = substr(line, 1, index(line, defundef) - 1)
16922 if (D_is_set[macro]) {
16923 # Preserve the white space surrounding the "#".
16924 print prefix "define", macro P[macro] D[macro]
16925 next
16926 } else {
16927 # Replace #undef with comments. This is necessary, for example,
16928 # in the case of _POSIX_SOURCE, which is predefined and required
16929 # on some systems where configure will not decide to define it.
16930 if (defundef == "undef") {
16931 print "/*", prefix defundef, macro, "*/"
16932 next
16933 }
16934 }
5e9f2524 16935}
11a3e7b6
VZ
16936{ print }
16937_ACAWK
5e9f2524 16938_ACEOF
11a3e7b6
VZ
16939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16940 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16941fi # test -n "$CONFIG_HEADERS"
79608eef 16942
5e9f2524 16943
11a3e7b6
VZ
16944eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16945shift
16946for ac_tag
16947do
16948 case $ac_tag in
16949 :[FHLC]) ac_mode=$ac_tag; continue;;
16950 esac
16951 case $ac_mode$ac_tag in
16952 :[FHL]*:*);;
16953 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16954 :[FH]-) ac_tag=-:-;;
16955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16956 esac
16957 ac_save_IFS=$IFS
16958 IFS=:
16959 set x $ac_tag
16960 IFS=$ac_save_IFS
16961 shift
16962 ac_file=$1
16963 shift
5e9f2524 16964
11a3e7b6
VZ
16965 case $ac_mode in
16966 :L) ac_source=$1;;
16967 :[FH])
16968 ac_file_inputs=
16969 for ac_f
16970 do
16971 case $ac_f in
16972 -) ac_f="$ac_tmp/stdin";;
16973 *) # Look for the file first in the build tree, then in the source tree
16974 # (if the path is not absolute). The absolute path cannot be DOS-style,
16975 # because $ac_f cannot contain `:'.
16976 test -f "$ac_f" ||
16977 case $ac_f in
16978 [\\/$]*) false;;
16979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16980 esac ||
16981 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16982 esac
16983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16984 as_fn_append ac_file_inputs " '$ac_f'"
16985 done
5e9f2524 16986
11a3e7b6
VZ
16987 # Let's still pretend it is `configure' which instantiates (i.e., don't
16988 # use $as_me), people would be surprised to read:
16989 # /* config.h. Generated by config.status. */
16990 configure_input='Generated from '`
16991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16992 `' by configure.'
16993 if test x"$ac_file" != x-; then
16994 configure_input="$ac_file. $configure_input"
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16996$as_echo "$as_me: creating $ac_file" >&6;}
16997 fi
16998 # Neutralize special characters interpreted by sed in replacement strings.
16999 case $configure_input in #(
17000 *\&* | *\|* | *\\* )
17001 ac_sed_conf_input=`$as_echo "$configure_input" |
17002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17003 *) ac_sed_conf_input=$configure_input;;
17004 esac
17005
17006 case $ac_tag in
17007 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17009 esac
17010 ;;
17011 esac
17012
17013 ac_dir=`$as_dirname -- "$ac_file" ||
17014$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17015 X"$ac_file" : 'X\(//\)[^/]' \| \
17016 X"$ac_file" : 'X\(//\)$' \| \
17017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17018$as_echo X"$ac_file" |
17019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17020 s//\1/
17021 q
17022 }
17023 /^X\(\/\/\)[^/].*/{
17024 s//\1/
17025 q
17026 }
17027 /^X\(\/\/\)$/{
17028 s//\1/
17029 q
17030 }
17031 /^X\(\/\).*/{
17032 s//\1/
17033 q
17034 }
17035 s/.*/./; q'`
17036 as_dir="$ac_dir"; as_fn_mkdir_p
17037 ac_builddir=.
17038
17039case "$ac_dir" in
17040.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17041*)
17042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17043 # A ".." for each directory in $ac_dir_suffix.
17044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17045 case $ac_top_builddir_sub in
17046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17048 esac ;;
17049esac
17050ac_abs_top_builddir=$ac_pwd
17051ac_abs_builddir=$ac_pwd$ac_dir_suffix
17052# for backward compatibility:
17053ac_top_builddir=$ac_top_build_prefix
17054
17055case $srcdir in
17056 .) # We are building in place.
17057 ac_srcdir=.
17058 ac_top_srcdir=$ac_top_builddir_sub
17059 ac_abs_top_srcdir=$ac_pwd ;;
17060 [\\/]* | ?:[\\/]* ) # Absolute name.
17061 ac_srcdir=$srcdir$ac_dir_suffix;
17062 ac_top_srcdir=$srcdir
17063 ac_abs_top_srcdir=$srcdir ;;
17064 *) # Relative name.
17065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17066 ac_top_srcdir=$ac_top_build_prefix$srcdir
17067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17068esac
17069ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17070
17071
17072 case $ac_mode in
17073 :F)
17074 #
17075 # CONFIG_FILE
17076 #
17077
17078 case $INSTALL in
17079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17081 esac
79608eef 17082_ACEOF
11a3e7b6
VZ
17083
17084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17085# If the template does not know about datarootdir, expand it.
17086# FIXME: This hack should be removed a few years after 2.60.
17087ac_datarootdir_hack=; ac_datarootdir_seen=
17088ac_sed_dataroot='
17089/datarootdir/ {
17090 p
17091 q
5e9f2524 17092}
11a3e7b6
VZ
17093/@datadir@/p
17094/@docdir@/p
17095/@infodir@/p
17096/@localedir@/p
17097/@mandir@/p'
17098case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17099*datarootdir*) ac_datarootdir_seen=yes;;
17100*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17102$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17103_ACEOF
17104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17105 ac_datarootdir_hack='
17106 s&@datadir@&$datadir&g
17107 s&@docdir@&$docdir&g
17108 s&@infodir@&$infodir&g
17109 s&@localedir@&$localedir&g
17110 s&@mandir@&$mandir&g
17111 s&\\\${datarootdir}&$datarootdir&g' ;;
17112esac
5e9f2524 17113_ACEOF
5e9f2524 17114
11a3e7b6
VZ
17115# Neutralize VPATH when `$srcdir' = `.'.
17116# Shell code in configure.ac might set extrasub.
17117# FIXME: do we really want to maintain this feature?
17118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17119ac_sed_extra="$ac_vpsub
17120$extrasub
5e9f2524 17121_ACEOF
11a3e7b6
VZ
17122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17123:t
17124/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17125s|@configure_input@|$ac_sed_conf_input|;t t
17126s&@top_builddir@&$ac_top_builddir_sub&;t t
17127s&@top_build_prefix@&$ac_top_build_prefix&;t t
17128s&@srcdir@&$ac_srcdir&;t t
17129s&@abs_srcdir@&$ac_abs_srcdir&;t t
17130s&@top_srcdir@&$ac_top_srcdir&;t t
17131s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17132s&@builddir@&$ac_builddir&;t t
17133s&@abs_builddir@&$ac_abs_builddir&;t t
17134s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17135s&@INSTALL@&$ac_INSTALL&;t t
17136$ac_datarootdir_hack
17137"
17138eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17139 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17140
17141test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17142 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17143 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17144 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17146which seems to be undefined. Please make sure it is defined" >&5
17147$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17148which seems to be undefined. Please make sure it is defined" >&2;}
17149
17150 rm -f "$ac_tmp/stdin"
17151 case $ac_file in
17152 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17153 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17154 esac \
17155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17156 ;;
17157 :H)
17158 #
17159 # CONFIG_HEADER
17160 #
17161 if test x"$ac_file" != x-; then
17162 {
17163 $as_echo "/* $configure_input */" \
17164 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17165 } >"$ac_tmp/config.h" \
17166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17167 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17169$as_echo "$as_me: $ac_file is unchanged" >&6;}
17170 else
17171 rm -f "$ac_file"
17172 mv "$ac_tmp/config.h" "$ac_file" \
17173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17174 fi
17175 else
17176 $as_echo "/* $configure_input */" \
17177 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17178 || as_fn_error $? "could not create -" "$LINENO" 5
17179 fi
17180 ;;
17181
17182 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17183$as_echo "$as_me: executing $ac_file commands" >&6;}
17184 ;;
17185 esac
17186
17187
17188 case $ac_file$ac_mode in
17189 "libtool":C)
17190
17191 # See if we are running on zsh, and set the options which allow our
17192 # commands through without removal of \ escapes.
17193 if test -n "${ZSH_VERSION+set}" ; then
17194 setopt NO_GLOB_SUBST
17195 fi
17196
17197 cfgfile="${ofile}T"
17198 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17199 $RM "$cfgfile"
17200
17201 cat <<_LT_EOF >> "$cfgfile"
17202#! $SHELL
17203
17204# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17205# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17206# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17207# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17208#
17209# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17210# 2006, 2007, 2008 Free Software Foundation, Inc.
17211# Written by Gordon Matzigkeit, 1996
17212#
17213# This file is part of GNU Libtool.
17214#
17215# GNU Libtool is free software; you can redistribute it and/or
17216# modify it under the terms of the GNU General Public License as
17217# published by the Free Software Foundation; either version 2 of
17218# the License, or (at your option) any later version.
17219#
17220# As a special exception to the GNU General Public License,
17221# if you distribute this file as part of a program or library that
17222# is built using GNU Libtool, you may include this file under the
17223# same distribution terms that you use for the rest of that program.
17224#
17225# GNU Libtool is distributed in the hope that it will be useful,
17226# but WITHOUT ANY WARRANTY; without even the implied warranty of
17227# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17228# GNU General Public License for more details.
17229#
17230# You should have received a copy of the GNU General Public License
17231# along with GNU Libtool; see the file COPYING. If not, a copy
17232# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17233# obtained by writing to the Free Software Foundation, Inc.,
17234# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17235
17236
17237# The names of the tagged configurations supported by this script.
17238available_tags="CXX "
17239
17240# ### BEGIN LIBTOOL CONFIG
17241
17242# Assembler program.
17243AS=$AS
17244
17245# DLL creation program.
17246DLLTOOL=$DLLTOOL
17247
17248# Object dumper program.
17249OBJDUMP=$OBJDUMP
17250
17251# Which release of libtool.m4 was used?
17252macro_version=$macro_version
17253macro_revision=$macro_revision
17254
17255# Whether or not to build shared libraries.
17256build_libtool_libs=$enable_shared
17257
17258# Whether or not to build static libraries.
17259build_old_libs=$enable_static
17260
17261# What type of objects to build.
17262pic_mode=$pic_mode
17263
17264# Whether or not to optimize for fast installation.
17265fast_install=$enable_fast_install
17266
17267# The host system.
17268host_alias=$host_alias
17269host=$host
17270host_os=$host_os
17271
17272# The build system.
17273build_alias=$build_alias
17274build=$build
17275build_os=$build_os
17276
17277# A sed program that does not truncate output.
17278SED=$lt_SED
17279
17280# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17281Xsed="\$SED -e 1s/^X//"
17282
17283# A grep program that handles long lines.
17284GREP=$lt_GREP
17285
17286# An ERE matcher.
17287EGREP=$lt_EGREP
17288
17289# A literal string matcher.
17290FGREP=$lt_FGREP
17291
17292# A BSD- or MS-compatible name lister.
17293NM=$lt_NM
17294
17295# Whether we need soft or hard links.
17296LN_S=$lt_LN_S
17297
17298# What is the maximum length of a command?
17299max_cmd_len=$max_cmd_len
17300
17301# Object file suffix (normally "o").
17302objext=$ac_objext
17303
17304# Executable file suffix (normally "").
17305exeext=$exeext
17306
17307# whether the shell understands "unset".
17308lt_unset=$lt_unset
17309
17310# turn spaces into newlines.
17311SP2NL=$lt_lt_SP2NL
17312
17313# turn newlines into spaces.
17314NL2SP=$lt_lt_NL2SP
17315
17316# How to create reloadable object files.
17317reload_flag=$lt_reload_flag
17318reload_cmds=$lt_reload_cmds
17319
17320# Method to check whether dependent libraries are shared objects.
17321deplibs_check_method=$lt_deplibs_check_method
17322
17323# Command to use when deplibs_check_method == "file_magic".
17324file_magic_cmd=$lt_file_magic_cmd
17325
17326# The archiver.
17327AR=$lt_AR
17328AR_FLAGS=$lt_AR_FLAGS
17329
17330# A symbol stripping program.
17331STRIP=$lt_STRIP
17332
17333# Commands used to install an old-style archive.
17334RANLIB=$lt_RANLIB
17335old_postinstall_cmds=$lt_old_postinstall_cmds
17336old_postuninstall_cmds=$lt_old_postuninstall_cmds
5e9f2524 17337
11a3e7b6
VZ
17338# A C compiler.
17339LTCC=$lt_CC
5e9f2524 17340
11a3e7b6
VZ
17341# LTCC compiler flags.
17342LTCFLAGS=$lt_CFLAGS
5e9f2524 17343
11a3e7b6
VZ
17344# Take the output of nm and produce a listing of raw symbols and C names.
17345global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5e9f2524 17346
11a3e7b6
VZ
17347# Transform the output of nm in a proper C declaration.
17348global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5e9f2524 17349
11a3e7b6
VZ
17350# Transform the output of nm in a C name address pair.
17351global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5e9f2524 17352
11a3e7b6
VZ
17353# Transform the output of nm in a C name address pair when lib prefix is needed.
17354global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
5e9f2524 17355
11a3e7b6
VZ
17356# The name of the directory that contains temporary libtool files.
17357objdir=$objdir
5e9f2524 17358
11a3e7b6
VZ
17359# Shell to use when invoking shell scripts.
17360SHELL=$lt_SHELL
79608eef 17361
11a3e7b6
VZ
17362# An echo program that does not interpret backslashes.
17363ECHO=$lt_ECHO
5e9f2524 17364
11a3e7b6
VZ
17365# Used to examine libraries when file_magic_cmd begins with "file".
17366MAGIC_CMD=$MAGIC_CMD
5e9f2524 17367
11a3e7b6
VZ
17368# Must we lock files when doing compilation?
17369need_locks=$lt_need_locks
5e9f2524 17370
11a3e7b6
VZ
17371# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17372DSYMUTIL=$lt_DSYMUTIL
79608eef 17373
11a3e7b6
VZ
17374# Tool to change global to local symbols on Mac OS X.
17375NMEDIT=$lt_NMEDIT
5e9f2524 17376
11a3e7b6
VZ
17377# Tool to manipulate fat objects and archives on Mac OS X.
17378LIPO=$lt_LIPO
79608eef 17379
11a3e7b6
VZ
17380# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17381OTOOL=$lt_OTOOL
5e9f2524 17382
11a3e7b6
VZ
17383# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17384OTOOL64=$lt_OTOOL64
5e9f2524 17385
11a3e7b6
VZ
17386# Old archive suffix (normally "a").
17387libext=$libext
5e9f2524 17388
11a3e7b6
VZ
17389# Shared library suffix (normally ".so").
17390shrext_cmds=$lt_shrext_cmds
5e9f2524 17391
11a3e7b6
VZ
17392# The commands to extract the exported symbol list from a shared archive.
17393extract_expsyms_cmds=$lt_extract_expsyms_cmds
5e9f2524 17394
11a3e7b6
VZ
17395# Variables whose values should be saved in libtool wrapper scripts and
17396# restored at link time.
17397variables_saved_for_relink=$lt_variables_saved_for_relink
5e9f2524 17398
11a3e7b6
VZ
17399# Do we need the "lib" prefix for modules?
17400need_lib_prefix=$need_lib_prefix
5e9f2524 17401
11a3e7b6
VZ
17402# Do we need a version for libraries?
17403need_version=$need_version
79608eef 17404
11a3e7b6
VZ
17405# Library versioning type.
17406version_type=$version_type
5e9f2524 17407
11a3e7b6
VZ
17408# Shared library runtime path variable.
17409runpath_var=$runpath_var
5e9f2524 17410
11a3e7b6
VZ
17411# Shared library path variable.
17412shlibpath_var=$shlibpath_var
5e9f2524 17413
11a3e7b6
VZ
17414# Is shlibpath searched before the hard-coded library search path?
17415shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5e9f2524 17416
11a3e7b6
VZ
17417# Format of library name prefix.
17418libname_spec=$lt_libname_spec
5e9f2524 17419
11a3e7b6
VZ
17420# List of archive names. First name is the real one, the rest are links.
17421# The last name is the one that the linker finds with -lNAME
17422library_names_spec=$lt_library_names_spec
5e9f2524 17423
11a3e7b6
VZ
17424# The coded name of the library, if different from the real name.
17425soname_spec=$lt_soname_spec
5e9f2524 17426
11a3e7b6
VZ
17427# Command to use after installation of a shared archive.
17428postinstall_cmds=$lt_postinstall_cmds
5e9f2524 17429
11a3e7b6
VZ
17430# Command to use after uninstallation of a shared archive.
17431postuninstall_cmds=$lt_postuninstall_cmds
5e9f2524 17432
11a3e7b6
VZ
17433# Commands used to finish a libtool library installation in a directory.
17434finish_cmds=$lt_finish_cmds
5e9f2524 17435
11a3e7b6
VZ
17436# As "finish_cmds", except a single script fragment to be evaled but
17437# not shown.
17438finish_eval=$lt_finish_eval
5e9f2524 17439
11a3e7b6
VZ
17440# Whether we should hardcode library paths into libraries.
17441hardcode_into_libs=$hardcode_into_libs
5e9f2524 17442
11a3e7b6
VZ
17443# Compile-time system search path for libraries.
17444sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5e9f2524 17445
11a3e7b6
VZ
17446# Run-time system search path for libraries.
17447sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5e9f2524 17448
11a3e7b6
VZ
17449# Whether dlopen is supported.
17450dlopen_support=$enable_dlopen
79608eef 17451
11a3e7b6
VZ
17452# Whether dlopen of programs is supported.
17453dlopen_self=$enable_dlopen_self
5e9f2524 17454
11a3e7b6
VZ
17455# Whether dlopen of statically linked programs is supported.
17456dlopen_self_static=$enable_dlopen_self_static
5e9f2524 17457
11a3e7b6
VZ
17458# Commands to strip libraries.
17459old_striplib=$lt_old_striplib
17460striplib=$lt_striplib
5e9f2524
VS
17461
17462
11a3e7b6
VZ
17463# The linker used to build libraries.
17464LD=$lt_LD
5e9f2524 17465
11a3e7b6
VZ
17466# Commands used to build an old-style archive.
17467old_archive_cmds=$lt_old_archive_cmds
5e9f2524 17468
11a3e7b6
VZ
17469# A language specific compiler.
17470CC=$lt_compiler
5e9f2524 17471
11a3e7b6
VZ
17472# Is the compiler the GNU compiler?
17473with_gcc=$GCC
5e9f2524 17474
11a3e7b6
VZ
17475# Compiler flag to turn off builtin functions.
17476no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
5e9f2524 17477
11a3e7b6
VZ
17478# How to pass a linker flag through the compiler.
17479wl=$lt_lt_prog_compiler_wl
79608eef 17480
11a3e7b6
VZ
17481# Additional compiler flags for building library objects.
17482pic_flag=$lt_lt_prog_compiler_pic
5e9f2524 17483
11a3e7b6
VZ
17484# Compiler flag to prevent dynamic linking.
17485link_static_flag=$lt_lt_prog_compiler_static
5e9f2524 17486
11a3e7b6
VZ
17487# Does compiler simultaneously support -c and -o options?
17488compiler_c_o=$lt_lt_cv_prog_compiler_c_o
5e9f2524 17489
11a3e7b6
VZ
17490# Whether or not to add -lc for building shared libraries.
17491build_libtool_need_lc=$archive_cmds_need_lc
5e9f2524 17492
11a3e7b6
VZ
17493# Whether or not to disallow shared libs when runtime libs are static.
17494allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
5e9f2524 17495
11a3e7b6
VZ
17496# Compiler flag to allow reflexive dlopens.
17497export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5e9f2524 17498
11a3e7b6
VZ
17499# Compiler flag to generate shared objects directly from archives.
17500whole_archive_flag_spec=$lt_whole_archive_flag_spec
5e9f2524 17501
11a3e7b6
VZ
17502# Whether the compiler copes with passing no objects directly.
17503compiler_needs_object=$lt_compiler_needs_object
5e9f2524 17504
11a3e7b6
VZ
17505# Create an old-style archive from a shared archive.
17506old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5e9f2524 17507
11a3e7b6
VZ
17508# Create a temporary old-style archive to link instead of a shared archive.
17509old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5e9f2524 17510
11a3e7b6
VZ
17511# Commands used to build a shared archive.
17512archive_cmds=$lt_archive_cmds
17513archive_expsym_cmds=$lt_archive_expsym_cmds
5e9f2524 17514
11a3e7b6
VZ
17515# Commands used to build a loadable module if different from building
17516# a shared archive.
17517module_cmds=$lt_module_cmds
17518module_expsym_cmds=$lt_module_expsym_cmds
5e9f2524 17519
11a3e7b6
VZ
17520# Whether we are building with GNU ld or not.
17521with_gnu_ld=$lt_with_gnu_ld
5e9f2524 17522
11a3e7b6
VZ
17523# Flag that allows shared libraries with undefined symbols to be built.
17524allow_undefined_flag=$lt_allow_undefined_flag
5e9f2524 17525
11a3e7b6
VZ
17526# Flag that enforces no undefined symbols.
17527no_undefined_flag=$lt_no_undefined_flag
5e9f2524 17528
11a3e7b6
VZ
17529# Flag to hardcode \$libdir into a binary during linking.
17530# This must work even if \$libdir does not exist
17531hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5e9f2524 17532
11a3e7b6
VZ
17533# If ld is used when linking, flag to hardcode \$libdir into a binary
17534# during linking. This must work even if \$libdir does not exist.
17535hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
5e9f2524 17536
11a3e7b6
VZ
17537# Whether we need a single "-rpath" flag with a separated argument.
17538hardcode_libdir_separator=$lt_hardcode_libdir_separator
79608eef 17539
11a3e7b6
VZ
17540# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17541# DIR into the resulting binary.
17542hardcode_direct=$hardcode_direct
79608eef 17543
11a3e7b6
VZ
17544# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17545# DIR into the resulting binary and the resulting library dependency is
17546# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17547# library is relocated.
17548hardcode_direct_absolute=$hardcode_direct_absolute
79608eef 17549
11a3e7b6
VZ
17550# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17551# into the resulting binary.
17552hardcode_minus_L=$hardcode_minus_L
5e9f2524 17553
11a3e7b6
VZ
17554# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17555# into the resulting binary.
17556hardcode_shlibpath_var=$hardcode_shlibpath_var
5e9f2524 17557
11a3e7b6
VZ
17558# Set to "yes" if building a shared library automatically hardcodes DIR
17559# into the library and all subsequent libraries and executables linked
17560# against it.
17561hardcode_automatic=$hardcode_automatic
5e9f2524 17562
11a3e7b6
VZ
17563# Set to yes if linker adds runtime paths of dependent libraries
17564# to runtime path list.
17565inherit_rpath=$inherit_rpath
5e9f2524 17566
11a3e7b6
VZ
17567# Whether libtool must link a program against all its dependency libraries.
17568link_all_deplibs=$link_all_deplibs
5e9f2524 17569
11a3e7b6
VZ
17570# Fix the shell variable \$srcfile for the compiler.
17571fix_srcfile_path=$lt_fix_srcfile_path
5e9f2524 17572
11a3e7b6
VZ
17573# Set to "yes" if exported symbols are required.
17574always_export_symbols=$always_export_symbols
79608eef 17575
11a3e7b6
VZ
17576# The commands to list exported symbols.
17577export_symbols_cmds=$lt_export_symbols_cmds
79608eef 17578
11a3e7b6
VZ
17579# Symbols that should not be listed in the preloaded symbols.
17580exclude_expsyms=$lt_exclude_expsyms
79608eef 17581
11a3e7b6
VZ
17582# Symbols that must always be exported.
17583include_expsyms=$lt_include_expsyms
79608eef 17584
11a3e7b6
VZ
17585# Commands necessary for linking programs (against libraries) with templates.
17586prelink_cmds=$lt_prelink_cmds
5e9f2524 17587
11a3e7b6
VZ
17588# Specify filename containing input files.
17589file_list_spec=$lt_file_list_spec
5e9f2524 17590
11a3e7b6
VZ
17591# How to hardcode a shared library path into an executable.
17592hardcode_action=$hardcode_action
5e9f2524 17593
11a3e7b6
VZ
17594# The directories searched by this compiler when creating a shared library.
17595compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
79608eef 17596
11a3e7b6
VZ
17597# Dependencies to place before and after the objects being linked to
17598# create a shared library.
17599predep_objects=$lt_predep_objects
17600postdep_objects=$lt_postdep_objects
17601predeps=$lt_predeps
17602postdeps=$lt_postdeps
5e9f2524 17603
11a3e7b6
VZ
17604# The library search path used internally by the compiler when linking
17605# a shared library.
17606compiler_lib_search_path=$lt_compiler_lib_search_path
17607
17608# ### END LIBTOOL CONFIG
17609
17610_LT_EOF
17611
17612 case $host_os in
17613 aix3*)
17614 cat <<\_LT_EOF >> "$cfgfile"
17615# AIX sometimes has problems with the GCC collect2 program. For some
17616# reason, if we set the COLLECT_NAMES environment variable, the problems
17617# vanish in a puff of smoke.
17618if test "X${COLLECT_NAMES+set}" != Xset; then
17619 COLLECT_NAMES=
17620 export COLLECT_NAMES
5e9f2524 17621fi
11a3e7b6
VZ
17622_LT_EOF
17623 ;;
17624 esac
5e9f2524
VS
17625
17626
11a3e7b6 17627ltmain="$ac_aux_dir/ltmain.sh"
5e9f2524 17628
11a3e7b6
VZ
17629
17630 # We use sed instead of cat because bash on DJGPP gets confused if
17631 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17632 # text mode, it properly converts lines to CR/LF. This bash problem
17633 # is reportedly fixed, but why not run on old versions too?
17634 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17635 || (rm -f "$cfgfile"; exit 1)
17636
17637 case $xsi_shell in
17638 yes)
17639 cat << \_LT_EOF >> "$cfgfile"
17640
17641# func_dirname file append nondir_replacement
17642# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17643# otherwise set result to NONDIR_REPLACEMENT.
17644func_dirname ()
17645{
17646 case ${1} in
17647 */*) func_dirname_result="${1%/*}${2}" ;;
17648 * ) func_dirname_result="${3}" ;;
5e9f2524 17649 esac
11a3e7b6
VZ
17650}
17651
17652# func_basename file
17653func_basename ()
17654{
17655 func_basename_result="${1##*/}"
17656}
17657
17658# func_dirname_and_basename file append nondir_replacement
17659# perform func_basename and func_dirname in a single function
17660# call:
17661# dirname: Compute the dirname of FILE. If nonempty,
17662# add APPEND to the result, otherwise set result
17663# to NONDIR_REPLACEMENT.
17664# value returned in "$func_dirname_result"
17665# basename: Compute filename of FILE.
17666# value retuned in "$func_basename_result"
17667# Implementation must be kept synchronized with func_dirname
17668# and func_basename. For efficiency, we do not delegate to
17669# those functions but instead duplicate the functionality here.
17670func_dirname_and_basename ()
17671{
17672 case ${1} in
17673 */*) func_dirname_result="${1%/*}${2}" ;;
17674 * ) func_dirname_result="${3}" ;;
5e9f2524 17675 esac
11a3e7b6
VZ
17676 func_basename_result="${1##*/}"
17677}
5e9f2524 17678
11a3e7b6
VZ
17679# func_stripname prefix suffix name
17680# strip PREFIX and SUFFIX off of NAME.
17681# PREFIX and SUFFIX must not contain globbing or regex special
17682# characters, hashes, percent signs, but SUFFIX may contain a leading
17683# dot (in which case that matches only a dot).
17684func_stripname ()
17685{
17686 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17687 # positional parameters, so assign one to ordinary parameter first.
17688 func_stripname_result=${3}
17689 func_stripname_result=${func_stripname_result#"${1}"}
17690 func_stripname_result=${func_stripname_result%"${2}"}
17691}
17692
17693# func_opt_split
17694func_opt_split ()
17695{
17696 func_opt_split_opt=${1%%=*}
17697 func_opt_split_arg=${1#*=}
17698}
5e9f2524 17699
11a3e7b6
VZ
17700# func_lo2o object
17701func_lo2o ()
17702{
17703 case ${1} in
17704 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17705 *) func_lo2o_result=${1} ;;
17706 esac
5e9f2524
VS
17707}
17708
11a3e7b6
VZ
17709# func_xform libobj-or-source
17710func_xform ()
17711{
17712 func_xform_result=${1%.*}.lo
17713}
5e9f2524 17714
11a3e7b6
VZ
17715# func_arith arithmetic-term...
17716func_arith ()
17717{
17718 func_arith_result=$(( $* ))
17719}
5e9f2524 17720
11a3e7b6
VZ
17721# func_len string
17722# STRING may not start with a hyphen.
17723func_len ()
17724{
17725 func_len_result=${#1}
17726}
5e9f2524 17727
11a3e7b6
VZ
17728_LT_EOF
17729 ;;
17730 *) # Bourne compatible functions.
17731 cat << \_LT_EOF >> "$cfgfile"
17732
17733# func_dirname file append nondir_replacement
17734# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17735# otherwise set result to NONDIR_REPLACEMENT.
17736func_dirname ()
17737{
17738 # Extract subdirectory from the argument.
17739 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17740 if test "X$func_dirname_result" = "X${1}"; then
17741 func_dirname_result="${3}"
5e9f2524 17742 else
11a3e7b6 17743 func_dirname_result="$func_dirname_result${2}"
5e9f2524 17744 fi
11a3e7b6 17745}
5e9f2524 17746
11a3e7b6
VZ
17747# func_basename file
17748func_basename ()
17749{
17750 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17751}
79608eef 17752
5e9f2524 17753
11a3e7b6
VZ
17754# func_stripname prefix suffix name
17755# strip PREFIX and SUFFIX off of NAME.
17756# PREFIX and SUFFIX must not contain globbing or regex special
17757# characters, hashes, percent signs, but SUFFIX may contain a leading
17758# dot (in which case that matches only a dot).
17759# func_strip_suffix prefix name
17760func_stripname ()
17761{
17762 case ${2} in
17763 .*) func_stripname_result=`$ECHO "X${3}" \
17764 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17765 *) func_stripname_result=`$ECHO "X${3}" \
17766 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17767 esac
17768}
5e9f2524 17769
11a3e7b6
VZ
17770# sed scripts:
17771my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17772my_sed_long_arg='1s/^-[^=]*=//'
5e9f2524 17773
11a3e7b6
VZ
17774# func_opt_split
17775func_opt_split ()
17776{
17777 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17778 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17779}
5e9f2524 17780
11a3e7b6
VZ
17781# func_lo2o object
17782func_lo2o ()
17783{
17784 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17785}
5e9f2524 17786
11a3e7b6
VZ
17787# func_xform libobj-or-source
17788func_xform ()
17789{
17790 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17791}
5e9f2524 17792
11a3e7b6
VZ
17793# func_arith arithmetic-term...
17794func_arith ()
17795{
17796 func_arith_result=`expr "$@"`
17797}
5e9f2524 17798
11a3e7b6
VZ
17799# func_len string
17800# STRING may not start with a hyphen.
17801func_len ()
5e9f2524 17802{
11a3e7b6
VZ
17803 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17804}
5e9f2524 17805
11a3e7b6
VZ
17806_LT_EOF
17807esac
5e9f2524 17808
11a3e7b6
VZ
17809case $lt_shell_append in
17810 yes)
17811 cat << \_LT_EOF >> "$cfgfile"
5e9f2524 17812
11a3e7b6
VZ
17813# func_append var value
17814# Append VALUE to the end of shell variable VAR.
17815func_append ()
17816{
17817 eval "$1+=\$2"
17818}
17819_LT_EOF
17820 ;;
17821 *)
17822 cat << \_LT_EOF >> "$cfgfile"
5e9f2524 17823
11a3e7b6
VZ
17824# func_append var value
17825# Append VALUE to the end of shell variable VAR.
17826func_append ()
17827{
17828 eval "$1=\$$1\$2"
17829}
5e9f2524 17830
11a3e7b6
VZ
17831_LT_EOF
17832 ;;
17833 esac
5e9f2524 17834
5e9f2524 17835
11a3e7b6
VZ
17836 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17837 || (rm -f "$cfgfile"; exit 1)
5e9f2524 17838
11a3e7b6
VZ
17839 mv -f "$cfgfile" "$ofile" ||
17840 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17841 chmod +x "$ofile"
5e9f2524 17842
5e9f2524 17843
11a3e7b6 17844 cat <<_LT_EOF >> "$ofile"
5e9f2524 17845
11a3e7b6 17846# ### BEGIN LIBTOOL TAG CONFIG: CXX
5e9f2524 17847
11a3e7b6
VZ
17848# The linker used to build libraries.
17849LD=$lt_LD_CXX
5e9f2524 17850
11a3e7b6
VZ
17851# Commands used to build an old-style archive.
17852old_archive_cmds=$lt_old_archive_cmds_CXX
5e9f2524 17853
11a3e7b6
VZ
17854# A language specific compiler.
17855CC=$lt_compiler_CXX
5e9f2524 17856
11a3e7b6
VZ
17857# Is the compiler the GNU compiler?
17858with_gcc=$GCC_CXX
5e9f2524 17859
11a3e7b6
VZ
17860# Compiler flag to turn off builtin functions.
17861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
5e9f2524 17862
11a3e7b6
VZ
17863# How to pass a linker flag through the compiler.
17864wl=$lt_lt_prog_compiler_wl_CXX
5e9f2524 17865
11a3e7b6
VZ
17866# Additional compiler flags for building library objects.
17867pic_flag=$lt_lt_prog_compiler_pic_CXX
5e9f2524 17868
11a3e7b6
VZ
17869# Compiler flag to prevent dynamic linking.
17870link_static_flag=$lt_lt_prog_compiler_static_CXX
5e9f2524 17871
11a3e7b6
VZ
17872# Does compiler simultaneously support -c and -o options?
17873compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
5e9f2524 17874
11a3e7b6
VZ
17875# Whether or not to add -lc for building shared libraries.
17876build_libtool_need_lc=$archive_cmds_need_lc_CXX
5e9f2524 17877
11a3e7b6
VZ
17878# Whether or not to disallow shared libs when runtime libs are static.
17879allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
79608eef 17880
11a3e7b6
VZ
17881# Compiler flag to allow reflexive dlopens.
17882export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
79608eef 17883
11a3e7b6
VZ
17884# Compiler flag to generate shared objects directly from archives.
17885whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
79608eef 17886
11a3e7b6
VZ
17887# Whether the compiler copes with passing no objects directly.
17888compiler_needs_object=$lt_compiler_needs_object_CXX
5e9f2524 17889
11a3e7b6
VZ
17890# Create an old-style archive from a shared archive.
17891old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
5e9f2524 17892
11a3e7b6
VZ
17893# Create a temporary old-style archive to link instead of a shared archive.
17894old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
5e9f2524 17895
11a3e7b6
VZ
17896# Commands used to build a shared archive.
17897archive_cmds=$lt_archive_cmds_CXX
17898archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
5e9f2524 17899
11a3e7b6
VZ
17900# Commands used to build a loadable module if different from building
17901# a shared archive.
17902module_cmds=$lt_module_cmds_CXX
17903module_expsym_cmds=$lt_module_expsym_cmds_CXX
5e9f2524 17904
11a3e7b6
VZ
17905# Whether we are building with GNU ld or not.
17906with_gnu_ld=$lt_with_gnu_ld_CXX
5e9f2524 17907
11a3e7b6
VZ
17908# Flag that allows shared libraries with undefined symbols to be built.
17909allow_undefined_flag=$lt_allow_undefined_flag_CXX
5e9f2524 17910
11a3e7b6
VZ
17911# Flag that enforces no undefined symbols.
17912no_undefined_flag=$lt_no_undefined_flag_CXX
5e9f2524 17913
11a3e7b6
VZ
17914# Flag to hardcode \$libdir into a binary during linking.
17915# This must work even if \$libdir does not exist
17916hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
79608eef 17917
11a3e7b6
VZ
17918# If ld is used when linking, flag to hardcode \$libdir into a binary
17919# during linking. This must work even if \$libdir does not exist.
17920hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
5e9f2524 17921
11a3e7b6
VZ
17922# Whether we need a single "-rpath" flag with a separated argument.
17923hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
5e9f2524 17924
11a3e7b6
VZ
17925# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17926# DIR into the resulting binary.
17927hardcode_direct=$hardcode_direct_CXX
5e9f2524 17928
11a3e7b6
VZ
17929# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17930# DIR into the resulting binary and the resulting library dependency is
17931# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17932# library is relocated.
17933hardcode_direct_absolute=$hardcode_direct_absolute_CXX
5e9f2524 17934
11a3e7b6
VZ
17935# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17936# into the resulting binary.
17937hardcode_minus_L=$hardcode_minus_L_CXX
5e9f2524 17938
11a3e7b6
VZ
17939# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17940# into the resulting binary.
17941hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
5e9f2524 17942
11a3e7b6
VZ
17943# Set to "yes" if building a shared library automatically hardcodes DIR
17944# into the library and all subsequent libraries and executables linked
17945# against it.
17946hardcode_automatic=$hardcode_automatic_CXX
5e9f2524 17947
11a3e7b6
VZ
17948# Set to yes if linker adds runtime paths of dependent libraries
17949# to runtime path list.
17950inherit_rpath=$inherit_rpath_CXX
5e9f2524 17951
11a3e7b6
VZ
17952# Whether libtool must link a program against all its dependency libraries.
17953link_all_deplibs=$link_all_deplibs_CXX
5e9f2524 17954
11a3e7b6
VZ
17955# Fix the shell variable \$srcfile for the compiler.
17956fix_srcfile_path=$lt_fix_srcfile_path_CXX
5e9f2524 17957
11a3e7b6
VZ
17958# Set to "yes" if exported symbols are required.
17959always_export_symbols=$always_export_symbols_CXX
5e9f2524 17960
11a3e7b6
VZ
17961# The commands to list exported symbols.
17962export_symbols_cmds=$lt_export_symbols_cmds_CXX
5e9f2524 17963
11a3e7b6
VZ
17964# Symbols that should not be listed in the preloaded symbols.
17965exclude_expsyms=$lt_exclude_expsyms_CXX
5e9f2524 17966
11a3e7b6
VZ
17967# Symbols that must always be exported.
17968include_expsyms=$lt_include_expsyms_CXX
5e9f2524 17969
11a3e7b6
VZ
17970# Commands necessary for linking programs (against libraries) with templates.
17971prelink_cmds=$lt_prelink_cmds_CXX
5e9f2524 17972
11a3e7b6
VZ
17973# Specify filename containing input files.
17974file_list_spec=$lt_file_list_spec_CXX
5e9f2524 17975
11a3e7b6
VZ
17976# How to hardcode a shared library path into an executable.
17977hardcode_action=$hardcode_action_CXX
5e9f2524 17978
11a3e7b6
VZ
17979# The directories searched by this compiler when creating a shared library.
17980compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
5e9f2524 17981
11a3e7b6
VZ
17982# Dependencies to place before and after the objects being linked to
17983# create a shared library.
17984predep_objects=$lt_predep_objects_CXX
17985postdep_objects=$lt_postdep_objects_CXX
17986predeps=$lt_predeps_CXX
17987postdeps=$lt_postdeps_CXX
5e9f2524 17988
11a3e7b6
VZ
17989# The library search path used internally by the compiler when linking
17990# a shared library.
17991compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
5e9f2524 17992
11a3e7b6
VZ
17993# ### END LIBTOOL TAG CONFIG: CXX
17994_LT_EOF
5e9f2524 17995
11a3e7b6 17996 ;;
5e9f2524 17997
11a3e7b6
VZ
17998 esac
17999done # for ac_tag
5e9f2524 18000
5e9f2524 18001
11a3e7b6 18002as_fn_exit 0
5e9f2524 18003_ACEOF
5e9f2524
VS
18004ac_clean_files=$ac_clean_files_save
18005
11a3e7b6
VZ
18006test $ac_write_fail = 0 ||
18007 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18008
5e9f2524
VS
18009
18010# configure is writing to config.log, and then calls config.status.
18011# config.status does its own redirection, appending to config.log.
18012# Unfortunately, on DOS this fails, as config.log is still kept open
18013# by configure, so config.status won't be able to write to it; its
18014# output is simply discarded. So we exec the FD to /dev/null,
18015# effectively closing config.log, so it can be properly (re)opened and
18016# appended to by config.status. When coming back to configure, we
18017# need to make the FD available again.
18018if test "$no_create" != yes; then
18019 ac_cs_success=:
79608eef
VS
18020 ac_config_status_args=
18021 test "$silent" = yes &&
18022 ac_config_status_args="$ac_config_status_args --quiet"
5e9f2524 18023 exec 5>/dev/null
79608eef 18024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5e9f2524
VS
18025 exec 5>>config.log
18026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18027 # would make configure fail if this is the last instruction.
11a3e7b6
VZ
18028 $ac_cs_success || as_fn_exit 1
18029fi
18030if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18032$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5e9f2524
VS
18033fi
18034
18035
18036abs_srcdir="`cd $srcdir && pwd`"
18037abs_builddir="`pwd`"
18038if test "$abs_srcdir" != "$abs_builddir"; then
1772d112 18039 ${MAKE:-make} mkdir-init
5e9f2524 18040fi