Imported Debian patch 0.66.1-1
[hcoop/debian/courier-authlib.git] / libs / unicode / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b0322a85
CE
3# Generated by GNU Autoconf 2.69 for unicode 0.10.
4#
5# Report bugs to <courier-maildrop@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
d9898ee8 9#
d9898ee8 10#
d9898ee8 11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
b0322a85
CE
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
d9898ee8 16
dd184caf 17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
d9898ee8 20 emulate sh
21 NULLCMD=:
8d138742 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
dd184caf 25 setopt NO_GLOB_SUBST
26else
b0322a85
CE
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
dd184caf 32esac
dd184caf 33fi
34
35
8d138742
CE
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
b0322a85
CE
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
8d138742
CE
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
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'
dd184caf 56 else
8d138742
CE
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
b0322a85 60 case $arg in #(
8d138742
CE
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'
dd184caf 69 fi
8d138742
CE
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 }
d9898ee8 81fi
d9898ee8 82
d9898ee8 83
dd184caf 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.)
dd184caf 89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
92as_myself=
93case $0 in #((
dd184caf 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=.
b0322a85
CE
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
dd184caf 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
8d138742 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 113 exit 1
dd184caf 114fi
115
b0322a85
CE
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 || :
dd184caf 123done
d9898ee8 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
8d138742
CE
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
d9898ee8 133
b0322a85
CE
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
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: courier-maildrop@lists.sourceforge.net about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
dd184caf 430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 432 as_expr=expr
433else
434 as_expr=false
435fi
436
dd184caf 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 438 as_basename=basename
439else
440 as_basename=false
441fi
442
b0322a85
CE
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
d9898ee8 448
dd184caf 449as_me=`$as_basename -- "$0" ||
d9898ee8 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
dd184caf 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 453$as_echo X/"$0" |
dd184caf 454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
d9898ee8 467
b0322a85
CE
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 474
d9898ee8 475
b0322a85
CE
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
d9898ee8 498
b0322a85
CE
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
dd184caf 509}
d9898ee8 510
b0322a85
CE
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
dd184caf 523
b0322a85
CE
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
dd184caf 527else
b0322a85
CE
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
dd184caf 530fi
b0322a85
CE
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
dd184caf 547fi
b0322a85
CE
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
dd184caf 550
b0322a85
CE
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
dd184caf 553else
b0322a85
CE
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
dd184caf 556fi
557
b0322a85
CE
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
dd184caf 560
b0322a85
CE
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
dd184caf 563
b0322a85
CE
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
dd184caf 566
b0322a85 567SHELL=${CONFIG_SHELL-/bin/sh}
dd184caf 568
569
b0322a85
CE
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
dd184caf 572
b0322a85
CE
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
d9898ee8 577
d9898ee8 578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
dd184caf 582ac_clean_files=
d9898ee8 583ac_config_libobj_dir=.
dd184caf 584LIBOBJS=
d9898ee8 585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
d9898ee8 589
d9898ee8 590# Identity of this package.
b0322a85
CE
591PACKAGE_NAME='unicode'
592PACKAGE_TARNAME='unicode'
d9898ee8 593PACKAGE_VERSION='0.10'
b0322a85
CE
594PACKAGE_STRING='unicode 0.10'
595PACKAGE_BUGREPORT='courier-maildrop@lists.sourceforge.net'
596PACKAGE_URL=''
d9898ee8 597
b0322a85 598ac_unique_file="unicodecpp.C"
d9898ee8 599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
dd184caf 602#ifdef HAVE_SYS_TYPES_H
d9898ee8 603# include <sys/types.h>
604#endif
dd184caf 605#ifdef HAVE_SYS_STAT_H
d9898ee8 606# include <sys/stat.h>
607#endif
dd184caf 608#ifdef STDC_HEADERS
d9898ee8 609# include <stdlib.h>
610# include <stddef.h>
611#else
dd184caf 612# ifdef HAVE_STDLIB_H
d9898ee8 613# include <stdlib.h>
614# endif
615#endif
dd184caf 616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 618# include <memory.h>
619# endif
620# include <string.h>
621#endif
dd184caf 622#ifdef HAVE_STRINGS_H
d9898ee8 623# include <strings.h>
624#endif
dd184caf 625#ifdef HAVE_INTTYPES_H
d9898ee8 626# include <inttypes.h>
d9898ee8 627#endif
dd184caf 628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
d9898ee8 632# include <unistd.h>
633#endif"
634
8d138742
CE
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
b0322a85
CE
639UPDATE_UNICODE_FALSE
640UPDATE_UNICODE_TRUE
641PERL
8d138742 642CXXCPP
b0322a85
CE
643am__fastdepCXX_FALSE
644am__fastdepCXX_TRUE
645CXXDEPMODE
646ac_ct_CXX
647CXXFLAGS
648CXX
649CPP
8d138742
CE
650OTOOL64
651OTOOL
652LIPO
653NMEDIT
654DSYMUTIL
b0322a85 655MANIFEST_TOOL
8d138742 656RANLIB
b0322a85 657ac_ct_AR
8d138742 658AR
b0322a85 659DLLTOOL
8d138742
CE
660OBJDUMP
661LN_S
662NM
663ac_ct_DUMPBIN
664DUMPBIN
665LD
666FGREP
8d138742
CE
667EGREP
668GREP
b0322a85 669SED
8d138742
CE
670am__fastdepCC_FALSE
671am__fastdepCC_TRUE
672CCDEPMODE
b0322a85 673am__nodep
8d138742
CE
674AMDEPBACKSLASH
675AMDEP_FALSE
676AMDEP_TRUE
677am__quote
678am__include
679DEPDIR
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
b0322a85
CE
687host_os
688host_vendor
689host_cpu
690host
691build_os
692build_vendor
693build_cpu
694build
695LIBTOOL
696AM_BACKSLASH
697AM_DEFAULT_VERBOSITY
698AM_DEFAULT_V
699AM_V
700am__untar
701am__tar
702AMTAR
8d138742
CE
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_alias
724host_alias
dd184caf 725build_alias
8d138742
CE
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
b0322a85 753PACKAGE_URL
8d138742
CE
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
b0322a85 764enable_silent_rules
8d138742
CE
765enable_shared
766enable_static
767with_pic
768enable_fast_install
b0322a85 769enable_dependency_tracking
8d138742 770with_gnu_ld
b0322a85 771with_sysroot
8d138742 772enable_libtool_lock
b0322a85
CE
773enable_largefile
774with_libcharset
8d138742
CE
775'
776 ac_precious_vars='build_alias
dd184caf 777host_alias
778target_alias
dd184caf 779CC
780CFLAGS
781LDFLAGS
8d138742 782LIBS
dd184caf 783CPPFLAGS
784CPP
785CXX
786CXXFLAGS
787CCC
8d138742 788CXXCPP'
dd184caf 789
d9898ee8 790
791# Initialize some variables set by options.
792ac_init_help=
793ac_init_version=false
8d138742
CE
794ac_unrecognized_opts=
795ac_unrecognized_sep=
d9898ee8 796# The variables have the same names as the options, with
797# dashes changed to underlines.
798cache_file=/dev/null
799exec_prefix=NONE
800no_create=
801no_recursion=
802prefix=NONE
803program_prefix=NONE
804program_suffix=NONE
805program_transform_name=s,x,x,
806silent=
807site=
808srcdir=
809verbose=
810x_includes=NONE
811x_libraries=NONE
812
813# Installation directory options.
814# These are left unexpanded so users can "make install exec_prefix=/foo"
815# and all the variables that are supposed to be based on exec_prefix
816# by default will actually change.
817# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 818# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 819bindir='${exec_prefix}/bin'
820sbindir='${exec_prefix}/sbin'
821libexecdir='${exec_prefix}/libexec'
dd184caf 822datarootdir='${prefix}/share'
823datadir='${datarootdir}'
d9898ee8 824sysconfdir='${prefix}/etc'
825sharedstatedir='${prefix}/com'
826localstatedir='${prefix}/var'
d9898ee8 827includedir='${prefix}/include'
828oldincludedir='/usr/include'
dd184caf 829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830infodir='${datarootdir}/info'
831htmldir='${docdir}'
832dvidir='${docdir}'
833pdfdir='${docdir}'
834psdir='${docdir}'
835libdir='${exec_prefix}/lib'
836localedir='${datarootdir}/locale'
837mandir='${datarootdir}/man'
d9898ee8 838
839ac_prev=
dd184caf 840ac_dashdash=
d9898ee8 841for ac_option
842do
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
dd184caf 845 eval $ac_prev=\$ac_option
d9898ee8 846 ac_prev=
847 continue
848 fi
849
dd184caf 850 case $ac_option in
b0322a85
CE
851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *=) ac_optarg= ;;
853 *) ac_optarg=yes ;;
dd184caf 854 esac
d9898ee8 855
856 # Accept the important Cygnus configure options, so we can diagnose typos.
857
dd184caf 858 case $ac_dashdash$ac_option in
859 --)
860 ac_dashdash=yes ;;
d9898ee8 861
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
866
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
871
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
878
879 --config-cache | -C)
880 cache_file=config.cache ;;
881
dd184caf 882 -datadir | --datadir | --datadi | --datad)
d9898ee8 883 ac_prev=datadir ;;
dd184caf 884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 885 datadir=$ac_optarg ;;
886
dd184caf 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
893
d9898ee8 894 -disable-* | --disable-*)
8d138742 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 896 # Reject names that are not valid shell variable names.
8d138742 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 898 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
902 *"
903"enable_$ac_useropt"
904"*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
dd184caf 909
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
914
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
d9898ee8 919
920 -enable-* | --enable-*)
8d138742 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 922 # Reject names that are not valid shell variable names.
8d138742 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 924 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929"enable_$ac_useropt"
930"*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 935
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
944
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
948
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
955
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
960
dd184caf 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
966
d9898ee8 967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
973
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
978
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
983
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
990
dd184caf 991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
995
d9898ee8 996 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 997 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1001 localstatedir=$ac_optarg ;;
1002
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1007
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1011
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1015
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1019
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1028
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1033
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1040
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1047
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1064
dd184caf 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1069
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1074
d9898ee8 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1078
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1084
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1095
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1100
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1105
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1112
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1117
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1120
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1123
1124 -with-* | --with-*)
8d138742 1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1126 # Reject names that are not valid shell variable names.
8d138742 1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1128 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133"with_$ac_useropt"
1134"*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1139
1140 -without-* | --without-*)
8d138742 1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1142 # Reject names that are not valid shell variable names.
8d138742 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1144 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149"with_$ac_useropt"
1150"*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
d9898ee8 1155
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1159
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1166
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1173
b0322a85
CE
1174 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175Try \`$0 --help' for more information"
d9898ee8 1176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
b0322a85
CE
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 esac
dd184caf 1185 eval $ac_envvar=\$ac_optarg
d9898ee8 1186 export $ac_envvar ;;
1187
1188 *)
1189 # FIXME: should be removed in autoconf 3.0.
8d138742 1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1194 ;;
1195
1196 esac
1197done
1198
1199if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1201 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1202fi
1203
8d138742
CE
1204if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
b0322a85 1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1210fi
1211
1212# Check all directory arguments for consistency.
dd184caf 1213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
d9898ee8 1217do
dd184caf 1218 eval ac_val=\$$ac_var
8d138742
CE
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
d9898ee8 1226 case $ac_val in
dd184caf 1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1229 esac
b0322a85 1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1231done
1232
1233# There might be people who depend on the old broken behavior: `$host'
1234# used to hold the argument of --host etc.
1235# FIXME: To remove some day.
1236build=$build_alias
1237host=$host_alias
1238target=$target_alias
1239
1240# FIXME: To remove some day.
1241if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
d9898ee8 1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247fi
1248
1249ac_tool_prefix=
1250test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252test "$silent" = yes && exec 6>/dev/null
1253
1254
dd184caf 1255ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256ac_ls_di=`ls -di .` &&
1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1258 as_fn_error $? "working directory cannot be determined"
dd184caf 1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1260 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1261
1262
d9898ee8 1263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
dd184caf 1266 # Try the directory containing this script, then the parent directory.
8d138742
CE
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272$as_echo X"$as_myself" |
dd184caf 1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\).*/{
1286 s//\1/
1287 q
1288 }
1289 s/.*/./; q'`
d9898ee8 1290 srcdir=$ac_confdir
dd184caf 1291 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1292 srcdir=..
1293 fi
1294else
1295 ac_srcdir_defaulted=no
1296fi
dd184caf 1297if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1300fi
dd184caf 1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302ac_abs_confdir=`(
b0322a85 1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1304 pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
d9898ee8 1321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
b0322a85 1329\`configure' configures unicode 0.10 to adapt to many kinds of systems.
d9898ee8 1330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE. See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
b0322a85 1343 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348
d9898ee8 1349Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1351 [$ac_default_prefix]
d9898ee8 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1353 [PREFIX]
d9898ee8 1354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
8d138742
CE
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
b0322a85 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/unicode]
8d138742
CE
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1382_ACEOF
1383
1384 cat <<\_ACEOF
1385
1386Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390
1391System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394_ACEOF
1395fi
1396
1397if test -n "$ac_init_help"; then
1398 case $ac_init_help in
b0322a85 1399 short | recursive ) echo "Configuration of unicode 0.10:";;
d9898ee8 1400 esac
1401 cat <<\_ACEOF
1402
1403Optional Features:
8d138742 1404 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
dd184caf 1409 --enable-shared[=PKGS] build shared libraries [default=yes]
1410 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1411 --enable-fast-install[=PKGS]
1412 optimize for fast installation [default=yes]
b0322a85
CE
1413 --enable-dependency-tracking
1414 do not reject slow dependency extractors
1415 --disable-dependency-tracking
1416 speeds up one-time build
d9898ee8 1417 --disable-libtool-lock avoid locking (might break parallel builds)
b0322a85 1418 --disable-largefile omit support for large files
d9898ee8 1419
1420Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1424 both]
8d138742 1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0322a85
CE
1426 --with-sysroot=DIR Search for dependent libraries within DIR
1427 (or the compiler's sysroot if not specified).
1428 --with-libcharset Use the libcharset library
d9898ee8 1429
1430Some influential environment variables:
1431 CC C compiler command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1434 nonstandard directory <lib dir>
dd184caf 1435 LIBS libraries to pass to the linker, e.g. -l<library>
b0322a85 1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dd184caf 1437 you have headers in a nonstandard directory <include dir>
d9898ee8 1438 CPP C preprocessor
1439 CXX C++ compiler command
1440 CXXFLAGS C++ compiler flags
1441 CXXCPP C++ preprocessor
d9898ee8 1442
1443Use these variables to override the choices made by `configure' or to help
1444it to find libraries and programs with nonstandard names/locations.
1445
b0322a85 1446Report bugs to <courier-maildrop@lists.sourceforge.net>.
d9898ee8 1447_ACEOF
dd184caf 1448ac_status=$?
d9898ee8 1449fi
1450
1451if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
d9898ee8 1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
d9898ee8 1457 ac_builddir=.
1458
dd184caf 1459case "$ac_dir" in
1460.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461*)
8d138742 1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1463 # A ".." for each directory in $ac_dir_suffix.
8d138742 1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469esac
1470ac_abs_top_builddir=$ac_pwd
1471ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472# for backward compatibility:
1473ac_top_builddir=$ac_top_build_prefix
d9898ee8 1474
1475case $srcdir in
dd184caf 1476 .) # We are building in place.
d9898ee8 1477 ac_srcdir=.
dd184caf 1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1481 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1488esac
dd184caf 1489ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1499 else
8d138742 1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1503 done
1504fi
1505
dd184caf 1506test -n "$ac_init_help" && exit $ac_status
d9898ee8 1507if $ac_init_version; then
1508 cat <<\_ACEOF
b0322a85
CE
1509unicode configure 0.10
1510generated by GNU Autoconf 2.69
d9898ee8 1511
b0322a85 1512Copyright (C) 2012 Free Software Foundation, Inc.
d9898ee8 1513This configure script is free software; the Free Software Foundation
1514gives unlimited permission to copy, distribute and modify it.
1515_ACEOF
dd184caf 1516 exit
d9898ee8 1517fi
b0322a85
CE
1518
1519## ------------------------ ##
1520## Autoconf initialization. ##
1521## ------------------------ ##
1522
1523# ac_fn_c_try_compile LINENO
1524# --------------------------
1525# Try to compile conftest.$ac_ext, and return whether this succeeded.
1526ac_fn_c_try_compile ()
1527{
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534esac
1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536$as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550else
1551 $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559} # ac_fn_c_try_compile
1560
1561# ac_fn_c_try_link LINENO
1562# -----------------------
1563# Try to link conftest.$ac_ext, and return whether this succeeded.
1564ac_fn_c_try_link ()
1565{
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1569case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572esac
1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574$as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 test -x conftest$ac_exeext
1589 }; then :
1590 ac_retval=0
1591else
1592 $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596fi
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_link
1606
1607# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608# -------------------------------------------------------
1609# Tests whether HEADER exists and can be compiled using the include files in
1610# INCLUDES, setting the cache variable VAR accordingly.
1611ac_fn_c_check_header_compile ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615$as_echo_n "checking for $2... " >&6; }
1616if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1618else
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620/* end confdefs.h. */
1621$4
1622#include <$2>
1623_ACEOF
1624if ac_fn_c_try_compile "$LINENO"; then :
1625 eval "$3=yes"
1626else
1627 eval "$3=no"
1628fi
1629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630fi
1631eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633$as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636} # ac_fn_c_check_header_compile
1637
1638# ac_fn_c_try_cpp LINENO
1639# ----------------------
1640# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_cpp ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 }; then :
1663 ac_retval=0
1664else
1665 $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_cpp
1674
1675# ac_fn_c_try_run LINENO
1676# ----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678# that executables *can* be run.
1679ac_fn_c_try_run ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1703 ac_retval=0
1704else
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=$ac_status
1710fi
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_run
1716
1717# ac_fn_c_check_func LINENO FUNC VAR
1718# ----------------------------------
1719# Tests whether FUNC exists, setting the cache variable VAR accordingly
1720ac_fn_c_check_func ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h. */
1730/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732#define $2 innocuous_$2
1733
1734/* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below.
1736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737 <limits.h> exists even on freestanding compilers. */
1738
1739#ifdef __STDC__
1740# include <limits.h>
1741#else
1742# include <assert.h>
1743#endif
1744
1745#undef $2
1746
1747/* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1750#ifdef __cplusplus
1751extern "C"
1752#endif
1753char $2 ();
1754/* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757#if defined __stub_$2 || defined __stub___$2
1758choke me
1759#endif
1760
1761int
1762main ()
1763{
1764return $2 ();
1765 ;
1766 return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_link "$LINENO"; then :
1770 eval "$3=yes"
1771else
1772 eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext \
1775 conftest$ac_exeext conftest.$ac_ext
1776fi
1777eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782} # ac_fn_c_check_func
1783
1784# ac_fn_cxx_try_compile LINENO
1785# ----------------------------
1786# Try to compile conftest.$ac_ext, and return whether this succeeded.
1787ac_fn_cxx_try_compile ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext
1791 if { { ac_try="$ac_compile"
1792case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_compile") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_cxx_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest.$ac_objext; then :
1810 ac_retval=0
1811else
1812 $as_echo "$as_me: failed program was:" >&5
1813sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=1
1816fi
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1819
1820} # ac_fn_cxx_try_compile
1821
1822# ac_fn_cxx_try_cpp LINENO
1823# ------------------------
1824# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1825ac_fn_cxx_try_cpp ()
1826{
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_cpp conftest.$ac_ext"
1829case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } > conftest.i && {
1844 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1845 test ! -s conftest.err
1846 }; then :
1847 ac_retval=0
1848else
1849 $as_echo "$as_me: failed program was:" >&5
1850sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=1
1853fi
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857} # ac_fn_cxx_try_cpp
1858
1859# ac_fn_cxx_try_link LINENO
1860# -------------------------
1861# Try to link conftest.$ac_ext, and return whether this succeeded.
1862ac_fn_cxx_try_link ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext conftest$ac_exeext
1866 if { { ac_try="$ac_link"
1867case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870esac
1871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872$as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1879 fi
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest$ac_exeext && {
1885 test "$cross_compiling" = yes ||
1886 test -x conftest$ac_exeext
1887 }; then :
1888 ac_retval=0
1889else
1890 $as_echo "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 ac_retval=1
1894fi
1895 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1896 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1897 # interfere with the next link command; also delete a directory that is
1898 # left behind by Apple's compiler. We do this before executing the actions.
1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1902
1903} # ac_fn_cxx_try_link
1904
1905# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906# -------------------------------------------------------
1907# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908# the include files in INCLUDES and setting the cache variable VAR
1909# accordingly.
1910ac_fn_c_check_header_mongrel ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if eval \${$3+:} false; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918fi
1919eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922else
1923 # Is the header compilable?
1924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925$as_echo_n "checking $2 usability... " >&6; }
1926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929#include <$2>
1930_ACEOF
1931if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_header_compiler=yes
1933else
1934 ac_header_compiler=no
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938$as_echo "$ac_header_compiler" >&6; }
1939
1940# Is the header present?
1941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942$as_echo_n "checking $2 presence... " >&6; }
1943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945#include <$2>
1946_ACEOF
1947if ac_fn_c_try_cpp "$LINENO"; then :
1948 ac_header_preproc=yes
1949else
1950 ac_header_preproc=no
1951fi
1952rm -f conftest.err conftest.i conftest.$ac_ext
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954$as_echo "$ac_header_preproc" >&6; }
1955
1956# So? What about this header?
1957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1958 yes:no: )
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 ;;
1964 no:yes:* )
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975( $as_echo "## ----------------------------------------------------- ##
1976## Report this to courier-maildrop@lists.sourceforge.net ##
1977## ----------------------------------------------------- ##"
1978 ) | sed "s/^/$as_me: WARNING: /" >&2
1979 ;;
1980esac
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982$as_echo_n "checking for $2... " >&6; }
1983if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985else
1986 eval "$3=\$ac_header_compiler"
1987fi
1988eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
1991fi
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994} # ac_fn_c_check_header_mongrel
dd184caf 1995cat >config.log <<_ACEOF
d9898ee8 1996This file contains any messages produced by compilers while
1997running configure, to aid debugging if configure makes a mistake.
1998
b0322a85
CE
1999It was created by unicode $as_me 0.10, which was
2000generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 2001
2002 $ $0 $@
2003
2004_ACEOF
dd184caf 2005exec 5>>config.log
d9898ee8 2006{
2007cat <<_ASUNAME
2008## --------- ##
2009## Platform. ##
2010## --------- ##
2011
2012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2013uname -m = `(uname -m) 2>/dev/null || echo unknown`
2014uname -r = `(uname -r) 2>/dev/null || echo unknown`
2015uname -s = `(uname -s) 2>/dev/null || echo unknown`
2016uname -v = `(uname -v) 2>/dev/null || echo unknown`
2017
2018/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2019/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2020
2021/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2022/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2023/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 2024/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 2025/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2026/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2027/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2028
2029_ASUNAME
2030
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
b0322a85
CE
2036 $as_echo "PATH: $as_dir"
2037 done
dd184caf 2038IFS=$as_save_IFS
d9898ee8 2039
2040} >&5
2041
2042cat >&5 <<_ACEOF
2043
2044
2045## ----------- ##
2046## Core tests. ##
2047## ----------- ##
2048
2049_ACEOF
2050
2051
2052# Keep a trace of the command line.
2053# Strip out --no-create and --no-recursion so they do not pile up.
2054# Strip out --silent because we don't want to record it for future runs.
2055# Also quote any args containing shell meta-characters.
2056# Make two passes to allow for proper duplicate-argument suppression.
2057ac_configure_args=
2058ac_configure_args0=
2059ac_configure_args1=
d9898ee8 2060ac_must_keep_next=false
2061for ac_pass in 1 2
2062do
2063 for ac_arg
2064 do
2065 case $ac_arg in
2066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2068 | -silent | --silent | --silen | --sile | --sil)
2069 continue ;;
dd184caf 2070 *\'*)
8d138742 2071 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2072 esac
2073 case $ac_pass in
b0322a85 2074 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 2075 2)
b0322a85 2076 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 2077 if test $ac_must_keep_next = true; then
2078 ac_must_keep_next=false # Got value, back to normal.
2079 else
2080 case $ac_arg in
2081 *=* | --config-cache | -C | -disable-* | --disable-* \
2082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2084 | -with-* | --with-* | -without-* | --without-* | --x)
2085 case "$ac_configure_args0 " in
2086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2087 esac
2088 ;;
2089 -* ) ac_must_keep_next=true ;;
2090 esac
2091 fi
b0322a85 2092 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 2093 ;;
2094 esac
2095 done
2096done
b0322a85
CE
2097{ ac_configure_args0=; unset ac_configure_args0;}
2098{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 2099
2100# When interrupted or exit'd, cleanup temporary files, and complete
2101# config.log. We remove comments because anyway the quotes in there
2102# would cause problems or look ugly.
dd184caf 2103# WARNING: Use '\'' to represent an apostrophe within the trap.
2104# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 2105trap 'exit_status=$?
2106 # Save into config.log some information that might help in debugging.
2107 {
2108 echo
2109
b0322a85 2110 $as_echo "## ---------------- ##
d9898ee8 2111## Cache variables. ##
b0322a85 2112## ---------------- ##"
d9898ee8 2113 echo
2114 # The following way of writing the cache mishandles newlines in values,
dd184caf 2115(
2116 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2117 eval ac_val=\$$ac_var
2118 case $ac_val in #(
2119 *${as_nl}*)
2120 case $ac_var in #(
b0322a85 2121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 2122$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 2123 esac
2124 case $ac_var in #(
2125 _ | IFS | as_nl) ;; #(
8d138742 2126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 2127 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2128 esac ;;
2129 esac
2130 done
d9898ee8 2131 (set) 2>&1 |
dd184caf 2132 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2133 *${as_nl}ac_space=\ *)
d9898ee8 2134 sed -n \
dd184caf 2135 "s/'\''/'\''\\\\'\'''\''/g;
2136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2137 ;; #(
d9898ee8 2138 *)
dd184caf 2139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2140 ;;
dd184caf 2141 esac |
2142 sort
2143)
d9898ee8 2144 echo
2145
b0322a85 2146 $as_echo "## ----------------- ##
d9898ee8 2147## Output variables. ##
b0322a85 2148## ----------------- ##"
d9898ee8 2149 echo
2150 for ac_var in $ac_subst_vars
2151 do
dd184caf 2152 eval ac_val=\$$ac_var
2153 case $ac_val in
8d138742 2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2155 esac
8d138742 2156 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2157 done | sort
2158 echo
2159
2160 if test -n "$ac_subst_files"; then
b0322a85 2161 $as_echo "## ------------------- ##
dd184caf 2162## File substitutions. ##
b0322a85 2163## ------------------- ##"
d9898ee8 2164 echo
2165 for ac_var in $ac_subst_files
2166 do
dd184caf 2167 eval ac_val=\$$ac_var
2168 case $ac_val in
8d138742 2169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2170 esac
8d138742 2171 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2172 done | sort
2173 echo
2174 fi
2175
2176 if test -s confdefs.h; then
b0322a85 2177 $as_echo "## ----------- ##
d9898ee8 2178## confdefs.h. ##
b0322a85 2179## ----------- ##"
d9898ee8 2180 echo
dd184caf 2181 cat confdefs.h
d9898ee8 2182 echo
2183 fi
2184 test "$ac_signal" != 0 &&
8d138742
CE
2185 $as_echo "$as_me: caught signal $ac_signal"
2186 $as_echo "$as_me: exit $exit_status"
d9898ee8 2187 } >&5
dd184caf 2188 rm -f core *.core core.conftest.* &&
2189 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2190 exit $exit_status
dd184caf 2191' 0
d9898ee8 2192for ac_signal in 1 2 13 15; do
b0322a85 2193 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2194done
2195ac_signal=0
2196
2197# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2198rm -f -r conftest* confdefs.h
d9898ee8 2199
b0322a85
CE
2200$as_echo "/* confdefs.h */" > confdefs.h
2201
d9898ee8 2202# Predefined preprocessor variables.
2203
2204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_NAME "$PACKAGE_NAME"
2206_ACEOF
2207
d9898ee8 2208cat >>confdefs.h <<_ACEOF
2209#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2210_ACEOF
2211
d9898ee8 2212cat >>confdefs.h <<_ACEOF
2213#define PACKAGE_VERSION "$PACKAGE_VERSION"
2214_ACEOF
2215
d9898ee8 2216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_STRING "$PACKAGE_STRING"
2218_ACEOF
2219
d9898ee8 2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2222_ACEOF
2223
b0322a85
CE
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_URL "$PACKAGE_URL"
2226_ACEOF
2227
d9898ee8 2228
2229# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2230# Prefer an explicitly selected file to automatically selected ones.
2231ac_site_file1=NONE
2232ac_site_file2=NONE
dd184caf 2233if test -n "$CONFIG_SITE"; then
b0322a85
CE
2234 # We do not want a PATH search for config.site.
2235 case $CONFIG_SITE in #((
2236 -*) ac_site_file1=./$CONFIG_SITE;;
2237 */*) ac_site_file1=$CONFIG_SITE;;
2238 *) ac_site_file1=./$CONFIG_SITE;;
2239 esac
dd184caf 2240elif test "x$prefix" != xNONE; then
8d138742
CE
2241 ac_site_file1=$prefix/share/config.site
2242 ac_site_file2=$prefix/etc/config.site
dd184caf 2243else
8d138742
CE
2244 ac_site_file1=$ac_default_prefix/share/config.site
2245 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2246fi
8d138742 2247for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2248do
8d138742 2249 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2250 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2252$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2253 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2254 . "$ac_site_file" \
2255 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257as_fn_error $? "failed to load site script $ac_site_file
2258See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2259 fi
2260done
2261
2262if test -r "$cache_file"; then
b0322a85
CE
2263 # Some versions of bash will fail to source /dev/null (special files
2264 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2265 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2267$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2268 case $cache_file in
dd184caf 2269 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2270 *) . "./$cache_file";;
d9898ee8 2271 esac
2272 fi
2273else
b0322a85 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2275$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2276 >$cache_file
2277fi
2278
2279# Check that the precious variables saved in the cache have kept the same
2280# value.
2281ac_cache_corrupted=false
dd184caf 2282for ac_var in $ac_precious_vars; do
d9898ee8 2283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2284 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2285 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2286 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2287 case $ac_old_set,$ac_new_set in
2288 set,)
b0322a85 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2290$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2291 ac_cache_corrupted=: ;;
2292 ,set)
b0322a85 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2294$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2295 ac_cache_corrupted=: ;;
2296 ,);;
2297 *)
2298 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2299 # differences in whitespace do not lead to failure.
2300 ac_old_val_w=`echo x $ac_old_val`
2301 ac_new_val_w=`echo x $ac_new_val`
2302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2304$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2305 ac_cache_corrupted=:
2306 else
b0322a85 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2308$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2309 eval $ac_var=\$ac_old_val
2310 fi
b0322a85 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2312$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2314$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2315 fi;;
2316 esac
2317 # Pass precious variables to config.status.
2318 if test "$ac_new_set" = set; then
2319 case $ac_new_val in
8d138742 2320 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2321 *) ac_arg=$ac_var=$ac_new_val ;;
2322 esac
2323 case " $ac_configure_args " in
2324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2325 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2326 esac
2327 fi
2328done
2329if $ac_cache_corrupted; then
b0322a85 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2333$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2334 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2335fi
b0322a85
CE
2336## -------------------- ##
2337## Main body of script. ##
2338## -------------------- ##
d9898ee8 2339
b0322a85
CE
2340ac_ext=c
2341ac_cpp='$CPP $CPPFLAGS'
2342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2345
2346
2347
b0322a85 2348>confdefs.h # Kill PACKAGE_ macros
d9898ee8 2349
2350
d9898ee8 2351ac_aux_dir=
b0322a85 2352for ac_dir in ../.. "$srcdir"/../..; do
dd184caf 2353 if test -f "$ac_dir/install-sh"; then
d9898ee8 2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/install-sh -c"
2356 break
dd184caf 2357 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2358 ac_aux_dir=$ac_dir
2359 ac_install_sh="$ac_aux_dir/install.sh -c"
2360 break
dd184caf 2361 elif test -f "$ac_dir/shtool"; then
d9898ee8 2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/shtool install -c"
2364 break
2365 fi
2366done
2367if test -z "$ac_aux_dir"; then
b0322a85 2368 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
d9898ee8 2369fi
dd184caf 2370
2371# These three variables are undocumented and unsupported,
2372# and are intended to be withdrawn in a future Autoconf release.
2373# They can cause serious problems if a builder's source tree is in a directory
2374# whose full name contains unusual characters.
2375ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2376ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2377ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2378
d9898ee8 2379
b0322a85
CE
2380
2381LPATH="$PATH:/usr/local/bin"
2382
2383ac_config_headers="$ac_config_headers unicode_config.h"
2384
2385am__api_version='1.13'
2386
d9898ee8 2387# Find a good install program. We prefer a C program (faster),
2388# so one script is as good as another. But avoid the broken or
2389# incompatible versions:
2390# SysV /etc/install, /usr/sbin/install
2391# SunOS /usr/etc/install
2392# IRIX /sbin/install
2393# AIX /bin/install
2394# AmigaOS /C/install, which installs bootblocks on floppy discs
2395# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2396# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2397# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2398# OS/2's system install, which has a completely different semantic
2399# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2400# Reject install programs that cannot install multiple files.
b0322a85 2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2402$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2403if test -z "$INSTALL"; then
b0322a85 2404if ${ac_cv_path_install+:} false; then :
8d138742 2405 $as_echo_n "(cached) " >&6
d9898ee8 2406else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
b0322a85
CE
2412 # Account for people who put trailing slashes in PATH elements.
2413case $as_dir/ in #((
2414 ./ | .// | /[cC]/* | \
d9898ee8 2415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2416 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2417 /usr/ucb/* ) ;;
2418 *)
2419 # OSF1 and SCO ODT 3.0 have their own names for install.
2420 # Don't use installbsd from OSF since it installs stuff as root
2421 # by default.
2422 for ac_prog in ginstall scoinst install; do
2423 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2424 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2425 if test $ac_prog = install &&
2426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # AIX install. It has an incompatible calling convention.
2428 :
2429 elif test $ac_prog = install &&
2430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431 # program-specific install script used by HP pwplus--don't use.
2432 :
2433 else
8d138742
CE
2434 rm -rf conftest.one conftest.two conftest.dir
2435 echo one > conftest.one
2436 echo two > conftest.two
2437 mkdir conftest.dir
2438 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2439 test -s conftest.one && test -s conftest.two &&
2440 test -s conftest.dir/conftest.one &&
2441 test -s conftest.dir/conftest.two
2442 then
2443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2444 break 3
2445 fi
d9898ee8 2446 fi
2447 fi
2448 done
2449 done
2450 ;;
2451esac
8d138742 2452
b0322a85 2453 done
dd184caf 2454IFS=$as_save_IFS
d9898ee8 2455
8d138742 2456rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2457
2458fi
2459 if test "${ac_cv_path_install+set}" = set; then
2460 INSTALL=$ac_cv_path_install
2461 else
dd184caf 2462 # As a last resort, use the slow shell script. Don't cache a
2463 # value for INSTALL within a source directory, because that will
d9898ee8 2464 # break other packages using the cache if that directory is
dd184caf 2465 # removed, or if the value is a relative name.
d9898ee8 2466 INSTALL=$ac_install_sh
2467 fi
2468fi
b0322a85 2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2470$as_echo "$INSTALL" >&6; }
d9898ee8 2471
2472# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2473# It thinks the first close brace ends the variable substitution.
2474test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2475
2476test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2477
2478test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2479
b0322a85 2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2481$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2482# Reject unsafe characters in $srcdir or the absolute working directory
2483# name. Accept space and tab only in the latter.
2484am_lf='
2485'
2486case `pwd` in
2487 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2488 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2489esac
2490case $srcdir in
2491 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2492 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2493esac
2494
b0322a85 2495# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2496# arguments. Must try -L first in case configure is actually a
2497# symlink; some systems play weird games with the mod time of symlinks
2498# (eg FreeBSD returns the mod time of the symlink's containing
2499# directory).
2500if (
b0322a85
CE
2501 am_has_slept=no
2502 for am_try in 1 2; do
2503 echo "timestamp, slept: $am_has_slept" > conftest.file
2504 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2505 if test "$*" = "X"; then
2506 # -L didn't work.
2507 set X `ls -t "$srcdir/configure" conftest.file`
2508 fi
2509 if test "$*" != "X $srcdir/configure conftest.file" \
2510 && test "$*" != "X conftest.file $srcdir/configure"; then
2511
2512 # If neither matched, then we have a broken ls. This can happen
2513 # if, for instance, CONFIG_SHELL is bash and it inherits a
2514 # broken ls alias from the environment. This has actually
2515 # happened. Such a system could not be considered "sane".
2516 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2517 alias in your environment" "$LINENO" 5
2518 fi
2519 if test "$2" = conftest.file || test $am_try -eq 2; then
2520 break
2521 fi
2522 # Just in case.
2523 sleep 1
2524 am_has_slept=yes
2525 done
d9898ee8 2526 test "$2" = conftest.file
2527 )
2528then
2529 # Ok.
2530 :
2531else
b0322a85
CE
2532 as_fn_error $? "newly created file is older than distributed files!
2533Check your system clock" "$LINENO" 5
d9898ee8 2534fi
b0322a85 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2536$as_echo "yes" >&6; }
b0322a85
CE
2537# If we didn't sleep, we still need to ensure time stamps of config.status and
2538# generated files are strictly newer.
2539am_sleep_pid=
2540if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2541 ( sleep 1 ) &
2542 am_sleep_pid=$!
2543fi
2544
2545rm -f conftest.file
2546
d9898ee8 2547test "$program_prefix" != NONE &&
dd184caf 2548 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2549# Use a double $ so make ignores it.
2550test "$program_suffix" != NONE &&
dd184caf 2551 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2552# Double any \ or $.
d9898ee8 2553# By default was `s,x,x', remove it if useless.
8d138742
CE
2554ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2555program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2556
2557# expand $ac_aux_dir to an absolute path
2558am_aux_dir=`cd $ac_aux_dir && pwd`
2559
8d138742
CE
2560if test x"${MISSING+set}" != xset; then
2561 case $am_aux_dir in
2562 *\ * | *\ *)
2563 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2564 *)
2565 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2566 esac
2567fi
d9898ee8 2568# Use eval to expand $SHELL
b0322a85
CE
2569if eval "$MISSING --is-lightweight"; then
2570 am_missing_run="$MISSING "
d9898ee8 2571else
2572 am_missing_run=
b0322a85
CE
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2574$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2575fi
2576
2577if test x"${install_sh}" != xset; then
2578 case $am_aux_dir in
2579 *\ * | *\ *)
2580 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2581 *)
2582 install_sh="\${SHELL} $am_aux_dir/install-sh"
2583 esac
2584fi
2585
b0322a85
CE
2586# Installed binaries are usually stripped using 'strip' when the user
2587# run "make install-strip". However 'strip' might not be the right
8d138742 2588# tool to use in cross-compilation environments, therefore Automake
b0322a85 2589# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2590if test "$cross_compiling" != no; then
2591 if test -n "$ac_tool_prefix"; then
2592 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2595$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2596if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2597 $as_echo_n "(cached) " >&6
2598else
2599 if test -n "$STRIP"; then
2600 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
b0322a85
CE
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2609 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2611 break 2
2612 fi
2613done
b0322a85 2614 done
8d138742
CE
2615IFS=$as_save_IFS
2616
2617fi
2618fi
2619STRIP=$ac_cv_prog_STRIP
2620if test -n "$STRIP"; then
b0322a85 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2622$as_echo "$STRIP" >&6; }
2623else
b0322a85 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2625$as_echo "no" >&6; }
2626fi
2627
2628
2629fi
2630if test -z "$ac_cv_prog_STRIP"; then
2631 ac_ct_STRIP=$STRIP
2632 # Extract the first word of "strip", so it can be a program name with args.
2633set dummy strip; ac_word=$2
b0322a85 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2635$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2636if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2637 $as_echo_n "(cached) " >&6
2638else
2639 if test -n "$ac_ct_STRIP"; then
2640 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
b0322a85
CE
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2649 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2651 break 2
2652 fi
2653done
b0322a85 2654 done
8d138742
CE
2655IFS=$as_save_IFS
2656
2657fi
2658fi
2659ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2660if test -n "$ac_ct_STRIP"; then
b0322a85 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2662$as_echo "$ac_ct_STRIP" >&6; }
2663else
b0322a85 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2665$as_echo "no" >&6; }
2666fi
2667
2668 if test "x$ac_ct_STRIP" = x; then
2669 STRIP=":"
2670 else
2671 case $cross_compiling:$ac_tool_warned in
2672yes:)
b0322a85 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2675ac_tool_warned=yes ;;
2676esac
2677 STRIP=$ac_ct_STRIP
2678 fi
2679else
2680 STRIP="$ac_cv_prog_STRIP"
2681fi
2682
d9898ee8 2683fi
8d138742 2684INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2685
b0322a85 2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2687$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2688if test -z "$MKDIR_P"; then
b0322a85 2689 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2690 $as_echo_n "(cached) " >&6
dd184caf 2691else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
b0322a85 2697 for ac_prog in mkdir gmkdir; do
dd184caf 2698 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2699 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2700 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2701 'mkdir (GNU coreutils) '* | \
2702 'mkdir (coreutils) '* | \
2703 'mkdir (fileutils) '4.1*)
2704 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2705 break 3;;
2706 esac
2707 done
2708 done
b0322a85 2709 done
dd184caf 2710IFS=$as_save_IFS
2711
2712fi
2713
b0322a85 2714 test -d ./--version && rmdir ./--version
dd184caf 2715 if test "${ac_cv_path_mkdir+set}" = set; then
2716 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2717 else
dd184caf 2718 # As a last resort, use the slow shell script. Don't cache a
2719 # value for MKDIR_P within a source directory, because that will
2720 # break other packages using the cache if that directory is
2721 # removed, or if the value is a relative name.
dd184caf 2722 MKDIR_P="$ac_install_sh -d"
d9898ee8 2723 fi
2724fi
b0322a85 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2726$as_echo "$MKDIR_P" >&6; }
dd184caf 2727
d9898ee8 2728for ac_prog in gawk mawk nawk awk
2729do
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731set dummy $ac_prog; ac_word=$2
b0322a85 2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2733$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2734if ${ac_cv_prog_AWK+:} false; then :
8d138742 2735 $as_echo_n "(cached) " >&6
d9898ee8 2736else
2737 if test -n "$AWK"; then
2738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2739else
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
b0322a85
CE
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2747 ac_cv_prog_AWK="$ac_prog"
b0322a85 2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2749 break 2
2750 fi
2751done
b0322a85 2752 done
dd184caf 2753IFS=$as_save_IFS
d9898ee8 2754
2755fi
2756fi
2757AWK=$ac_cv_prog_AWK
2758if test -n "$AWK"; then
b0322a85 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2760$as_echo "$AWK" >&6; }
d9898ee8 2761else
b0322a85 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2763$as_echo "no" >&6; }
d9898ee8 2764fi
2765
dd184caf 2766
d9898ee8 2767 test -n "$AWK" && break
2768done
2769
b0322a85 2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2771$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2772set x ${MAKE-make}
2773ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2774if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2775 $as_echo_n "(cached) " >&6
d9898ee8 2776else
2777 cat >conftest.make <<\_ACEOF
dd184caf 2778SHELL = /bin/sh
d9898ee8 2779all:
dd184caf 2780 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2781_ACEOF
b0322a85 2782# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2783case `${MAKE-make} -f conftest.make 2>/dev/null` in
2784 *@@@%%%=?*=@@@%%%*)
2785 eval ac_cv_prog_make_${ac_make}_set=yes;;
2786 *)
2787 eval ac_cv_prog_make_${ac_make}_set=no;;
2788esac
d9898ee8 2789rm -f conftest.make
2790fi
dd184caf 2791if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2793$as_echo "yes" >&6; }
d9898ee8 2794 SET_MAKE=
2795else
b0322a85 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2797$as_echo "no" >&6; }
d9898ee8 2798 SET_MAKE="MAKE=${MAKE-make}"
2799fi
2800
2801rm -rf .tst 2>/dev/null
2802mkdir .tst 2>/dev/null
2803if test -d .tst; then
2804 am__leading_dot=.
2805else
2806 am__leading_dot=_
2807fi
2808rmdir .tst 2>/dev/null
2809
b0322a85
CE
2810# Check whether --enable-silent-rules was given.
2811if test "${enable_silent_rules+set}" = set; then :
2812 enableval=$enable_silent_rules;
2813fi
2814
2815case $enable_silent_rules in # (((
2816 yes) AM_DEFAULT_VERBOSITY=0;;
2817 no) AM_DEFAULT_VERBOSITY=1;;
2818 *) AM_DEFAULT_VERBOSITY=1;;
2819esac
2820am_make=${MAKE-make}
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2822$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2823if ${am_cv_make_support_nested_variables+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825else
2826 if $as_echo 'TRUE=$(BAR$(V))
2827BAR0=false
2828BAR1=true
2829V=1
2830am__doit:
2831 @$(TRUE)
2832.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2833 am_cv_make_support_nested_variables=yes
2834else
2835 am_cv_make_support_nested_variables=no
2836fi
2837fi
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2839$as_echo "$am_cv_make_support_nested_variables" >&6; }
2840if test $am_cv_make_support_nested_variables = yes; then
2841 AM_V='$(V)'
2842 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2843else
2844 AM_V=$AM_DEFAULT_VERBOSITY
2845 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2846fi
2847AM_BACKSLASH='\'
2848
dd184caf 2849if test "`cd $srcdir && pwd`" != "`pwd`"; then
2850 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2851 # is not polluted with repeated "-I."
2852 am__isrc=' -I$(srcdir)'
2853 # test to see if srcdir already configured
2854 if test -f $srcdir/config.status; then
b0322a85 2855 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
dd184caf 2856 fi
d9898ee8 2857fi
2858
2859# test whether we have cygpath
2860if test -z "$CYGPATH_W"; then
2861 if (cygpath --version) >/dev/null 2>/dev/null; then
2862 CYGPATH_W='cygpath -w'
2863 else
2864 CYGPATH_W=echo
2865 fi
2866fi
2867
2868
2869# Define the identity of the package.
b0322a85 2870 PACKAGE='unicode'
d9898ee8 2871 VERSION='0.10'
2872
2873
2874# Some tools Automake needs.
2875
2876ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2877
2878
2879AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2880
2881
2882AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2883
2884
2885AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2886
2887
2888MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2889
b0322a85
CE
2890# For better backward compatibility. To be removed once Automake 1.9.x
2891# dies out for good. For more background, see:
2892# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2893# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2894mkdir_p='$(MKDIR_P)'
2895
8d138742
CE
2896# We need awk for the "check" target. The system "awk" is bad on
2897# some platforms.
b0322a85
CE
2898# Always define AMTAR for backward compatibility. Yes, it's still used
2899# in the wild :-( We should find a proper way to deprecate it ...
2900AMTAR='$${TAR-tar}'
2901
2902
2903# We'll loop over all known methods to create a tar archive until one works.
2904_am_tools='gnutar pax cpio none'
2905
2906am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2907
2908
2909
2910
2911
2912
2913
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2915$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2916set x ${MAKE-make}
2917ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2918if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920else
2921 cat >conftest.make <<\_ACEOF
2922SHELL = /bin/sh
2923all:
2924 @echo '@@@%%%=$(MAKE)=@@@%%%'
2925_ACEOF
2926# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2927case `${MAKE-make} -f conftest.make 2>/dev/null` in
2928 *@@@%%%=?*=@@@%%%*)
2929 eval ac_cv_prog_make_${ac_make}_set=yes;;
2930 *)
2931 eval ac_cv_prog_make_${ac_make}_set=no;;
2932esac
2933rm -f conftest.make
2934fi
2935if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2937$as_echo "yes" >&6; }
2938 SET_MAKE=
2939else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942 SET_MAKE="MAKE=${MAKE-make}"
2943fi
2944
2945case `pwd` in
2946 *\ * | *\ *)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2948$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2949esac
2950
2951
2952
2953macro_version='2.4.2'
2954macro_revision='1.3337'
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968ltmain="$ac_aux_dir/ltmain.sh"
2969
2970# Make sure we can run config.sub.
2971$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2972 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2973
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2975$as_echo_n "checking build system type... " >&6; }
2976if ${ac_cv_build+:} false; then :
2977 $as_echo_n "(cached) " >&6
2978else
2979 ac_build_alias=$build_alias
2980test "x$ac_build_alias" = x &&
2981 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2982test "x$ac_build_alias" = x &&
2983 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2984ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2985 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2986
2987fi
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2989$as_echo "$ac_cv_build" >&6; }
2990case $ac_cv_build in
2991*-*-*) ;;
2992*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2993esac
2994build=$ac_cv_build
2995ac_save_IFS=$IFS; IFS='-'
2996set x $ac_cv_build
2997shift
2998build_cpu=$1
2999build_vendor=$2
3000shift; shift
3001# Remember, the first character of IFS is used to create $*,
3002# except with old shells:
3003build_os=$*
3004IFS=$ac_save_IFS
3005case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3006
3007
3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3009$as_echo_n "checking host system type... " >&6; }
3010if ${ac_cv_host+:} false; then :
3011 $as_echo_n "(cached) " >&6
3012else
3013 if test "x$host_alias" = x; then
3014 ac_cv_host=$ac_cv_build
3015else
3016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3017 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3018fi
3019
3020fi
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3022$as_echo "$ac_cv_host" >&6; }
3023case $ac_cv_host in
3024*-*-*) ;;
3025*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3026esac
3027host=$ac_cv_host
3028ac_save_IFS=$IFS; IFS='-'
3029set x $ac_cv_host
3030shift
3031host_cpu=$1
3032host_vendor=$2
3033shift; shift
3034# Remember, the first character of IFS is used to create $*,
3035# except with old shells:
3036host_os=$*
3037IFS=$ac_save_IFS
3038case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3039
3040
3041# Backslashify metacharacters that are still active within
3042# double-quoted strings.
3043sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3044
3045# Same as above, but do not quote variable references.
3046double_quote_subst='s/\(["`\\]\)/\\\1/g'
3047
3048# Sed substitution to delay expansion of an escaped shell variable in a
3049# double_quote_subst'ed string.
3050delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3051
3052# Sed substitution to delay expansion of an escaped single quote.
3053delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3054
3055# Sed substitution to avoid accidental globbing in evaled expressions
3056no_glob_subst='s/\*/\\\*/g'
3057
3058ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3059ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3060ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3061
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3063$as_echo_n "checking how to print strings... " >&6; }
3064# Test print first, because it will be a builtin if present.
3065if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3066 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3067 ECHO='print -r --'
3068elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3069 ECHO='printf %s\n'
3070else
3071 # Use this function as a fallback that always works.
3072 func_fallback_echo ()
3073 {
3074 eval 'cat <<_LTECHO_EOF
3075$1
3076_LTECHO_EOF'
3077 }
3078 ECHO='func_fallback_echo'
3079fi
3080
3081# func_echo_all arg...
3082# Invoke $ECHO with all args, space-separated.
3083func_echo_all ()
3084{
3085 $ECHO ""
3086}
3087
3088case "$ECHO" in
3089 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3090$as_echo "printf" >&6; } ;;
3091 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3092$as_echo "print -r" >&6; } ;;
3093 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3094$as_echo "cat" >&6; } ;;
3095esac
3096
3097
3098
3099
3100
d9898ee8 3101
8d138742 3102
8d138742
CE
3103
3104
3105
3106
3107
8d138742
CE
3108
3109
3110DEPDIR="${am__leading_dot}deps"
3111
3112ac_config_commands="$ac_config_commands depfiles"
3113
3114
3115am_make=${MAKE-make}
3116cat > confinc << 'END'
3117am__doit:
3118 @echo this is the am__doit target
3119.PHONY: am__doit
3120END
3121# If we don't find an include directive, just comment out the code.
b0322a85 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742
CE
3123$as_echo_n "checking for style of include used by $am_make... " >&6; }
3124am__include="#"
3125am__quote=
3126_am_result=none
3127# First try GNU make style include.
3128echo "include confinc" > confmf
b0322a85 3129# Ignore all kinds of additional output from 'make'.
8d138742
CE
3130case `$am_make -s -f confmf 2> /dev/null` in #(
3131*the\ am__doit\ target*)
3132 am__include=include
3133 am__quote=
3134 _am_result=GNU
3135 ;;
3136esac
3137# Now try BSD make style include.
3138if test "$am__include" = "#"; then
3139 echo '.include "confinc"' > confmf
3140 case `$am_make -s -f confmf 2> /dev/null` in #(
3141 *the\ am__doit\ target*)
3142 am__include=.include
3143 am__quote="\""
3144 _am_result=BSD
3145 ;;
3146 esac
3147fi
3148
3149
b0322a85 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742
CE
3151$as_echo "$_am_result" >&6; }
3152rm -f confinc confmf
3153
3154# Check whether --enable-dependency-tracking was given.
b0322a85 3155if test "${enable_dependency_tracking+set}" = set; then :
8d138742
CE
3156 enableval=$enable_dependency_tracking;
3157fi
3158
3159if test "x$enable_dependency_tracking" != xno; then
3160 am_depcomp="$ac_aux_dir/depcomp"
3161 AMDEPBACKSLASH='\'
b0322a85 3162 am__nodep='_no'
8d138742
CE
3163fi
3164 if test "x$enable_dependency_tracking" != xno; then
3165 AMDEP_TRUE=
3166 AMDEP_FALSE='#'
d9898ee8 3167else
8d138742
CE
3168 AMDEP_TRUE='#'
3169 AMDEP_FALSE=
3170fi
3171
3172
3173ac_ext=c
3174ac_cpp='$CPP $CPPFLAGS'
3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3180set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3182$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3183if ${ac_cv_prog_CC+:} false; then :
8d138742
CE
3184 $as_echo_n "(cached) " >&6
3185else
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
d9898ee8 3188else
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
b0322a85
CE
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 3196 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3198 break 2
3199 fi
3200done
b0322a85 3201 done
dd184caf 3202IFS=$as_save_IFS
d9898ee8 3203
3204fi
3205fi
8d138742
CE
3206CC=$ac_cv_prog_CC
3207if test -n "$CC"; then
b0322a85 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3209$as_echo "$CC" >&6; }
d9898ee8 3210else
b0322a85 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3212$as_echo "no" >&6; }
d9898ee8 3213fi
3214
dd184caf 3215
d9898ee8 3216fi
8d138742
CE
3217if test -z "$ac_cv_prog_CC"; then
3218 ac_ct_CC=$CC
3219 # Extract the first word of "gcc", so it can be a program name with args.
3220set dummy gcc; ac_word=$2
b0322a85 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3222$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3223if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3224 $as_echo_n "(cached) " >&6
d9898ee8 3225else
8d138742
CE
3226 if test -n "$ac_ct_CC"; then
3227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d9898ee8 3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
b0322a85
CE
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 3236 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3238 break 2
3239 fi
3240done
b0322a85 3241 done
dd184caf 3242IFS=$as_save_IFS
d9898ee8 3243
d9898ee8 3244fi
3245fi
8d138742
CE
3246ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247if test -n "$ac_ct_CC"; then
b0322a85 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3249$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3250else
b0322a85 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3252$as_echo "no" >&6; }
d9898ee8 3253fi
3254
8d138742
CE
3255 if test "x$ac_ct_CC" = x; then
3256 CC=""
dd184caf 3257 else
3258 case $cross_compiling:$ac_tool_warned in
3259yes:)
b0322a85 3260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3262ac_tool_warned=yes ;;
3263esac
8d138742 3264 CC=$ac_ct_CC
dd184caf 3265 fi
d9898ee8 3266else
8d138742 3267 CC="$ac_cv_prog_CC"
d9898ee8 3268fi
3269
3270if test -z "$CC"; then
dd184caf 3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 3273set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3275$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3276if ${ac_cv_prog_CC+:} false; then :
8d138742 3277 $as_echo_n "(cached) " >&6
d9898ee8 3278else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281else
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
b0322a85
CE
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3289 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3291 break 2
3292 fi
3293done
b0322a85 3294 done
dd184caf 3295IFS=$as_save_IFS
d9898ee8 3296
3297fi
3298fi
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
b0322a85 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3302$as_echo "$CC" >&6; }
d9898ee8 3303else
b0322a85 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3305$as_echo "no" >&6; }
d9898ee8 3306fi
3307
d9898ee8 3308
dd184caf 3309 fi
d9898ee8 3310fi
3311if test -z "$CC"; then
3312 # Extract the first word of "cc", so it can be a program name with args.
3313set dummy cc; ac_word=$2
b0322a85 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3315$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3316if ${ac_cv_prog_CC+:} false; then :
8d138742 3317 $as_echo_n "(cached) " >&6
d9898ee8 3318else
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3321else
3322 ac_prog_rejected=no
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
b0322a85
CE
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3330 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3331 ac_prog_rejected=yes
3332 continue
3333 fi
3334 ac_cv_prog_CC="cc"
b0322a85 3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3336 break 2
3337 fi
3338done
b0322a85 3339 done
dd184caf 3340IFS=$as_save_IFS
d9898ee8 3341
3342if test $ac_prog_rejected = yes; then
3343 # We found a bogon in the path, so make sure we never use it.
3344 set dummy $ac_cv_prog_CC
3345 shift
3346 if test $# != 0; then
3347 # We chose a different compiler from the bogus one.
3348 # However, it has the same basename, so the bogon will be chosen
3349 # first if we set CC to just the basename; use the full file name.
3350 shift
3351 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3352 fi
3353fi
3354fi
3355fi
3356CC=$ac_cv_prog_CC
3357if test -n "$CC"; then
b0322a85 3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3359$as_echo "$CC" >&6; }
d9898ee8 3360else
b0322a85 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3362$as_echo "no" >&6; }
d9898ee8 3363fi
3364
dd184caf 3365
d9898ee8 3366fi
3367if test -z "$CC"; then
3368 if test -n "$ac_tool_prefix"; then
dd184caf 3369 for ac_prog in cl.exe
d9898ee8 3370 do
3371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3372set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3374$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3375if ${ac_cv_prog_CC+:} false; then :
8d138742 3376 $as_echo_n "(cached) " >&6
d9898ee8 3377else
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3380else
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
b0322a85
CE
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3388 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3390 break 2
3391 fi
3392done
b0322a85 3393 done
dd184caf 3394IFS=$as_save_IFS
d9898ee8 3395
3396fi
3397fi
3398CC=$ac_cv_prog_CC
3399if test -n "$CC"; then
b0322a85 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3401$as_echo "$CC" >&6; }
d9898ee8 3402else
b0322a85 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3404$as_echo "no" >&6; }
d9898ee8 3405fi
3406
dd184caf 3407
d9898ee8 3408 test -n "$CC" && break
3409 done
3410fi
3411if test -z "$CC"; then
3412 ac_ct_CC=$CC
dd184caf 3413 for ac_prog in cl.exe
d9898ee8 3414do
3415 # Extract the first word of "$ac_prog", so it can be a program name with args.
3416set dummy $ac_prog; ac_word=$2
b0322a85 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3418$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3419if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3420 $as_echo_n "(cached) " >&6
d9898ee8 3421else
3422 if test -n "$ac_ct_CC"; then
3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
b0322a85
CE
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3432 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3434 break 2
3435 fi
3436done
b0322a85 3437 done
dd184caf 3438IFS=$as_save_IFS
d9898ee8 3439
3440fi
3441fi
3442ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443if test -n "$ac_ct_CC"; then
b0322a85 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3445$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3446else
b0322a85 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3448$as_echo "no" >&6; }
d9898ee8 3449fi
3450
dd184caf 3451
d9898ee8 3452 test -n "$ac_ct_CC" && break
3453done
3454
dd184caf 3455 if test "x$ac_ct_CC" = x; then
3456 CC=""
3457 else
3458 case $cross_compiling:$ac_tool_warned in
3459yes:)
b0322a85 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3462ac_tool_warned=yes ;;
3463esac
3464 CC=$ac_ct_CC
3465 fi
d9898ee8 3466fi
3467
3468fi
3469
3470
b0322a85 3471test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3473as_fn_error $? "no acceptable C compiler found in \$PATH
3474See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3475
3476# Provide some information about the compiler.
b0322a85 3477$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3478set X $ac_compile
3479ac_compiler=$2
b0322a85
CE
3480for ac_option in --version -v -V -qversion; do
3481 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3482case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485esac
b0322a85
CE
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3489 ac_status=$?
b0322a85
CE
3490 if test -s conftest.err; then
3491 sed '10a\
3492... rest of stderr output deleted ...
3493 10q' conftest.err >conftest.er1
3494 cat conftest.er1 >&5
3495 fi
3496 rm -f conftest.er1 conftest.err
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }
3499done
d9898ee8 3500
b0322a85 3501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3502/* end confdefs.h. */
3503
3504int
3505main ()
3506{
3507
3508 ;
3509 return 0;
3510}
3511_ACEOF
3512ac_clean_files_save=$ac_clean_files
8d138742 3513ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3514# Try to create an executable without -o first, disregard a.out.
3515# It will help us diagnose broken compilers, and finding out an intuition
3516# of exeext.
b0322a85
CE
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3518$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3519ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3520
3521# The possible output files:
3522ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3523
dd184caf 3524ac_rmfiles=
3525for ac_file in $ac_files
3526do
3527 case $ac_file in
8d138742 3528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3529 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3530 esac
3531done
3532rm -f $ac_rmfiles
3533
b0322a85 3534if { { ac_try="$ac_link_default"
dd184caf 3535case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538esac
b0322a85
CE
3539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540$as_echo "$ac_try_echo"; } >&5
dd184caf 3541 (eval "$ac_link_default") 2>&5
d9898ee8 3542 ac_status=$?
b0322a85
CE
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; then :
dd184caf 3545 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3546# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3547# in a Makefile. We should not override ac_cv_exeext if it was cached,
3548# so that the user can short-circuit this test for compilers unknown to
3549# Autoconf.
3550for ac_file in $ac_files ''
d9898ee8 3551do
3552 test -f "$ac_file" || continue
3553 case $ac_file in
8d138742 3554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3555 ;;
3556 [ab].out )
3557 # We found the default executable, but exeext='' is most
3558 # certainly right.
3559 break;;
3560 *.* )
b0322a85 3561 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3562 then :; else
3563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564 fi
3565 # We set ac_cv_exeext here because the later test for it is not
3566 # safe: cross compilers may not add the suffix if given an `-o'
3567 # argument, so we may need to know it at that point already.
3568 # Even if this section looks crufty: it has the advantage of
3569 # actually working.
d9898ee8 3570 break;;
3571 * )
3572 break;;
3573 esac
3574done
dd184caf 3575test "$ac_cv_exeext" = no && ac_cv_exeext=
3576
d9898ee8 3577else
dd184caf 3578 ac_file=''
3579fi
b0322a85
CE
3580if test -z "$ac_file"; then :
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583$as_echo "$as_me: failed program was:" >&5
d9898ee8 3584sed 's/^/| /' conftest.$ac_ext >&5
3585
b0322a85 3586{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3588as_fn_error 77 "C compiler cannot create executables
3589See \`config.log' for more details" "$LINENO" 5; }
3590else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 3592$as_echo "yes" >&6; }
b0322a85
CE
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3595$as_echo_n "checking for C compiler default output file name... " >&6; }
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3597$as_echo "$ac_file" >&6; }
3598ac_exeext=$ac_cv_exeext
d9898ee8 3599
8d138742 3600rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3601ac_clean_files=$ac_clean_files_save
b0322a85 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3603$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3604if { { ac_try="$ac_link"
dd184caf 3605case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608esac
b0322a85
CE
3609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610$as_echo "$ac_try_echo"; } >&5
dd184caf 3611 (eval "$ac_link") 2>&5
d9898ee8 3612 ac_status=$?
b0322a85
CE
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }; then :
d9898ee8 3615 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3616# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3617# work properly (i.e., refer to `conftest.exe'), while it won't with
3618# `rm'.
3619for ac_file in conftest.exe conftest conftest.*; do
3620 test -f "$ac_file" || continue
3621 case $ac_file in
8d138742 3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3623 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3624 break;;
3625 * ) break;;
3626 esac
3627done
3628else
b0322a85 3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3631as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3632See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3633fi
b0322a85
CE
3634rm -f conftest conftest$ac_cv_exeext
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3636$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3637
3638rm -f conftest.$ac_ext
3639EXEEXT=$ac_cv_exeext
3640ac_exeext=$EXEEXT
b0322a85
CE
3641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h. */
3643#include <stdio.h>
3644int
3645main ()
3646{
3647FILE *f = fopen ("conftest.out", "w");
3648 return ferror (f) || fclose (f) != 0;
3649
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654ac_clean_files="$ac_clean_files conftest.out"
3655# Check that the compiler produces executables we can run. If not, either
3656# the compiler is broken, or we cross compile.
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3658$as_echo_n "checking whether we are cross compiling... " >&6; }
3659if test "$cross_compiling" != yes; then
3660 { { ac_try="$ac_link"
3661case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_link") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }
3671 if { ac_try='./conftest$ac_cv_exeext'
3672 { { case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675esac
3676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677$as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_try") 2>&5
3679 ac_status=$?
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }; }; then
3682 cross_compiling=no
3683 else
3684 if test "$cross_compiling" = maybe; then
3685 cross_compiling=yes
3686 else
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689as_fn_error $? "cannot run C compiled programs.
3690If you meant to cross compile, use \`--host'.
3691See \`config.log' for more details" "$LINENO" 5; }
3692 fi
3693 fi
3694fi
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3696$as_echo "$cross_compiling" >&6; }
3697
3698rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3699ac_clean_files=$ac_clean_files_save
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3701$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3702if ${ac_cv_objext+:} false; then :
8d138742 3703 $as_echo_n "(cached) " >&6
d9898ee8 3704else
b0322a85 3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3706/* end confdefs.h. */
3707
3708int
3709main ()
3710{
3711
3712 ;
3713 return 0;
3714}
3715_ACEOF
3716rm -f conftest.o conftest.obj
b0322a85 3717if { { ac_try="$ac_compile"
dd184caf 3718case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721esac
b0322a85
CE
3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723$as_echo "$ac_try_echo"; } >&5
dd184caf 3724 (eval "$ac_compile") 2>&5
d9898ee8 3725 ac_status=$?
b0322a85
CE
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }; then :
dd184caf 3728 for ac_file in conftest.o conftest.obj conftest.*; do
3729 test -f "$ac_file" || continue;
d9898ee8 3730 case $ac_file in
8d138742 3731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3732 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3733 break;;
3734 esac
3735done
3736else
8d138742 3737 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3738sed 's/^/| /' conftest.$ac_ext >&5
3739
b0322a85 3740{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3742as_fn_error $? "cannot compute suffix of object files: cannot compile
3743See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3744fi
d9898ee8 3745rm -f conftest.$ac_cv_objext conftest.$ac_ext
3746fi
b0322a85 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3748$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3749OBJEXT=$ac_cv_objext
3750ac_objext=$OBJEXT
b0322a85 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3752$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3753if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3754 $as_echo_n "(cached) " >&6
d9898ee8 3755else
b0322a85 3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3757/* end confdefs.h. */
3758
3759int
3760main ()
3761{
3762#ifndef __GNUC__
3763 choke me
3764#endif
3765
3766 ;
3767 return 0;
3768}
3769_ACEOF
b0322a85 3770if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3771 ac_compiler_gnu=yes
3772else
b0322a85 3773 ac_compiler_gnu=no
d9898ee8 3774fi
dd184caf 3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3776ac_cv_c_compiler_gnu=$ac_compiler_gnu
3777
3778fi
b0322a85 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3780$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3781if test $ac_compiler_gnu = yes; then
3782 GCC=yes
3783else
3784 GCC=
3785fi
d9898ee8 3786ac_test_CFLAGS=${CFLAGS+set}
3787ac_save_CFLAGS=$CFLAGS
b0322a85 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3789$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3790if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3791 $as_echo_n "(cached) " >&6
d9898ee8 3792else
dd184caf 3793 ac_save_c_werror_flag=$ac_c_werror_flag
3794 ac_c_werror_flag=yes
3795 ac_cv_prog_cc_g=no
3796 CFLAGS="-g"
b0322a85 3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3798/* end confdefs.h. */
3799
3800int
3801main ()
3802{
3803
3804 ;
3805 return 0;
3806}
3807_ACEOF
b0322a85 3808if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3809 ac_cv_prog_cc_g=yes
3810else
b0322a85
CE
3811 CFLAGS=""
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3813/* end confdefs.h. */
3814
3815int
3816main ()
3817{
3818
3819 ;
3820 return 0;
3821}
3822_ACEOF
b0322a85 3823if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3824
b0322a85
CE
3825else
3826 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3827 CFLAGS="-g"
b0322a85 3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3829/* end confdefs.h. */
3830
3831int
3832main ()
3833{
3834
3835 ;
3836 return 0;
3837}
3838_ACEOF
b0322a85 3839if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3840 ac_cv_prog_cc_g=yes
dd184caf 3841fi
dd184caf 3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843fi
dd184caf 3844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3845fi
dd184caf 3846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3848fi
b0322a85 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3850$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3851if test "$ac_test_CFLAGS" = set; then
3852 CFLAGS=$ac_save_CFLAGS
3853elif test $ac_cv_prog_cc_g = yes; then
3854 if test "$GCC" = yes; then
3855 CFLAGS="-g -O2"
3856 else
3857 CFLAGS="-g"
3858 fi
3859else
3860 if test "$GCC" = yes; then
3861 CFLAGS="-O2"
3862 else
3863 CFLAGS=
3864 fi
3865fi
b0322a85 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3867$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3868if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3869 $as_echo_n "(cached) " >&6
d9898ee8 3870else
dd184caf 3871 ac_cv_prog_cc_c89=no
d9898ee8 3872ac_save_CC=$CC
b0322a85 3873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3874/* end confdefs.h. */
3875#include <stdarg.h>
3876#include <stdio.h>
b0322a85 3877struct stat;
d9898ee8 3878/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3879struct buf { int x; };
3880FILE * (*rcsopen) (struct buf *, struct stat *, int);
3881static char *e (p, i)
3882 char **p;
3883 int i;
3884{
3885 return p[i];
3886}
3887static char *f (char * (*g) (char **, int), char **p, ...)
3888{
3889 char *s;
3890 va_list v;
3891 va_start (v,p);
3892 s = g (p, va_arg (v,int));
3893 va_end (v);
3894 return s;
3895}
3896
3897/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3898 function prototypes and stuff, but not '\xHH' hex character constants.
3899 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3900 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3902 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3903 that's true only with -std. */
d9898ee8 3904int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3905
dd184caf 3906/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3907 inside strings and character constants. */
3908#define FOO(x) 'x'
3909int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3910
d9898ee8 3911int test (int i, double x);
3912struct s1 {int (*f) (int a);};
3913struct s2 {int (*f) (double a);};
3914int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3915int argc;
3916char **argv;
3917int
3918main ()
3919{
3920return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3921 ;
3922 return 0;
3923}
3924_ACEOF
dd184caf 3925for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3927do
3928 CC="$ac_save_CC $ac_arg"
b0322a85 3929 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3930 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3931fi
dd184caf 3932rm -f core conftest.err conftest.$ac_objext
3933 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3934done
dd184caf 3935rm -f conftest.$ac_ext
d9898ee8 3936CC=$ac_save_CC
3937
3938fi
dd184caf 3939# AC_CACHE_VAL
3940case "x$ac_cv_prog_cc_c89" in
3941 x)
b0322a85 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3943$as_echo "none needed" >&6; } ;;
dd184caf 3944 xno)
b0322a85 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3946$as_echo "unsupported" >&6; } ;;
d9898ee8 3947 *)
dd184caf 3948 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3950$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3951esac
b0322a85 3952if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3953
b0322a85 3954fi
d9898ee8 3955
d9898ee8 3956ac_ext=c
3957ac_cpp='$CPP $CPPFLAGS'
3958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 3961
d9898ee8 3962depcc="$CC" am_compiler_list=
3963
b0322a85 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3965$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3966if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3967 $as_echo_n "(cached) " >&6
d9898ee8 3968else
3969 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3970 # We make a subdir and do the tests there. Otherwise we can end up
3971 # making bogus files that we don't know about and never remove. For
3972 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3973 # making a dummy file named 'D' -- because '-MD' means "put the output
3974 # in D".
3975 rm -rf conftest.dir
d9898ee8 3976 mkdir conftest.dir
3977 # Copy depcomp to subdir because otherwise we won't find it if we're
3978 # using a relative directory.
3979 cp "$am_depcomp" conftest.dir
3980 cd conftest.dir
3981 # We will build objects and dependencies in a subdirectory because
3982 # it helps to detect inapplicable dependency modes. For instance
3983 # both Tru64's cc and ICC support -MD to output dependencies as a
3984 # side effect of compilation, but ICC will put the dependencies in
3985 # the current directory while Tru64 will put them in the object
3986 # directory.
3987 mkdir sub
3988
3989 am_cv_CC_dependencies_compiler_type=none
3990 if test "$am_compiler_list" = ""; then
3991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3992 fi
8d138742
CE
3993 am__universal=false
3994 case " $depcc " in #(
3995 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3996 esac
3997
d9898ee8 3998 for depmode in $am_compiler_list; do
3999 # Setup a source with many dependencies, because some compilers
4000 # like to wrap large dependency lists on column 80 (with \), and
4001 # we should not choose a depcomp mode which is confused by this.
4002 #
4003 # We need to recreate these files for each test, as the compiler may
4004 # overwrite some of them when testing with obscure command lines.
4005 # This happens at least with the AIX C compiler.
4006 : > sub/conftest.c
4007 for i in 1 2 3 4 5 6; do
4008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
4009 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4010 # Solaris 10 /bin/sh.
4011 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 4012 done
4013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4014
b0322a85 4015 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 4016 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
4017 # handle '-M -o', and we need to detect this. Also, some Intel
4018 # versions had trouble with output in subdirs.
8d138742
CE
4019 am__obj=sub/conftest.${OBJEXT-o}
4020 am__minus_obj="-o $am__obj"
d9898ee8 4021 case $depmode in
8d138742
CE
4022 gcc)
4023 # This depmode causes a compiler race in universal mode.
4024 test "$am__universal" = false || continue
4025 ;;
d9898ee8 4026 nosideeffect)
b0322a85
CE
4027 # After this tag, mechanisms are not by side-effect, so they'll
4028 # only be used when explicitly requested.
d9898ee8 4029 if test "x$enable_dependency_tracking" = xyes; then
4030 continue
4031 else
4032 break
4033 fi
4034 ;;
b0322a85
CE
4035 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4036 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
4037 # not run yet. These depmodes are late enough in the game, and
4038 # so weak that their functioning should not be impacted.
4039 am__obj=conftest.${OBJEXT-o}
4040 am__minus_obj=
4041 ;;
d9898ee8 4042 none) break ;;
4043 esac
d9898ee8 4044 if depmode=$depmode \
8d138742 4045 source=sub/conftest.c object=$am__obj \
d9898ee8 4046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 4047 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 4048 >/dev/null 2>conftest.err &&
dd184caf 4049 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 4051 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 4052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4053 # icc doesn't choke on unknown options, it will just issue warnings
4054 # or remarks (even with -Werror). So we grep stderr for any message
4055 # that says an option was ignored or not supported.
4056 # When given -MP, icc 7.0 and 7.1 complain thusly:
4057 # icc: Command line warning: ignoring option '-M'; no argument required
4058 # The diagnosis changed in icc 8.0:
4059 # icc: Command line remark: option '-MP' not supported
4060 if (grep 'ignoring option' conftest.err ||
4061 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4062 am_cv_CC_dependencies_compiler_type=$depmode
4063 break
4064 fi
4065 fi
4066 done
4067
4068 cd ..
4069 rm -rf conftest.dir
4070else
4071 am_cv_CC_dependencies_compiler_type=none
4072fi
4073
4074fi
b0322a85 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 4076$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 4077CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4078
dd184caf 4079 if
d9898ee8 4080 test "x$enable_dependency_tracking" != xno \
4081 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4082 am__fastdepCC_TRUE=
4083 am__fastdepCC_FALSE='#'
4084else
4085 am__fastdepCC_TRUE='#'
4086 am__fastdepCC_FALSE=
4087fi
4088
4089
b0322a85
CE
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4091$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4092if ${ac_cv_path_SED+:} false; then :
8d138742 4093 $as_echo_n "(cached) " >&6
d9898ee8 4094else
b0322a85
CE
4095 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4096 for ac_i in 1 2 3 4 5 6 7; do
4097 ac_script="$ac_script$as_nl$ac_script"
4098 done
4099 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4100 { ac_script=; unset ac_script;}
4101 if test -z "$SED"; then
4102 ac_path_SED_found=false
4103 # Loop through the user's path and test for each of PROGNAME-LIST
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
d9898ee8 4106do
b0322a85
CE
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_prog in sed gsed; do
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4112 as_fn_executable_p "$ac_path_SED" || continue
4113# Check for GNU ac_path_SED and select it if it is found.
4114 # Check for GNU $ac_path_SED
4115case `"$ac_path_SED" --version 2>&1` in
4116*GNU*)
4117 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4118*)
4119 ac_count=0
4120 $as_echo_n 0123456789 >"conftest.in"
4121 while :
4122 do
4123 cat "conftest.in" "conftest.in" >"conftest.tmp"
4124 mv "conftest.tmp" "conftest.in"
4125 cp "conftest.in" "conftest.nl"
4126 $as_echo '' >> "conftest.nl"
4127 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 as_fn_arith $ac_count + 1 && ac_count=$as_val
4130 if test $ac_count -gt ${ac_path_SED_max-0}; then
4131 # Best one so far, save it but keep looking for a better one
4132 ac_cv_path_SED="$ac_path_SED"
4133 ac_path_SED_max=$ac_count
4134 fi
4135 # 10*(2^10) chars as input seems more than enough
4136 test $ac_count -gt 10 && break
4137 done
4138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
dd184caf 4139esac
b0322a85
CE
4140
4141 $ac_path_SED_found && break 3
4142 done
4143 done
4144 done
4145IFS=$as_save_IFS
4146 if test -z "$ac_cv_path_SED"; then
4147 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4148 fi
d9898ee8 4149else
b0322a85
CE
4150 ac_cv_path_SED=$SED
4151fi
d9898ee8 4152
d9898ee8 4153fi
b0322a85
CE
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4155$as_echo "$ac_cv_path_SED" >&6; }
4156 SED="$ac_cv_path_SED"
4157 rm -f conftest.sed
dd184caf 4158
b0322a85
CE
4159test -z "$SED" && SED=sed
4160Xsed="$SED -e 1s/^X//"
d9898ee8 4161
dd184caf 4162
d9898ee8 4163
dd184caf 4164
d9898ee8 4165
d9898ee8 4166
dd184caf 4167
d9898ee8 4168
d9898ee8 4169
d9898ee8 4170
4171
b0322a85 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 4173$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 4174if ${ac_cv_path_GREP+:} false; then :
8d138742 4175 $as_echo_n "(cached) " >&6
dd184caf 4176else
8d138742 4177 if test -z "$GREP"; then
dd184caf 4178 ac_path_GREP_found=false
8d138742
CE
4179 # Loop through the user's path and test for each of PROGNAME-LIST
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4181for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4182do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
b0322a85 4185 for ac_prog in grep ggrep; do
8d138742
CE
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4188 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 4189# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4190 # Check for GNU $ac_path_GREP
4191case `"$ac_path_GREP" --version 2>&1` in
4192*GNU*)
4193 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4194*)
4195 ac_count=0
8d138742 4196 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4197 while :
4198 do
4199 cat "conftest.in" "conftest.in" >"conftest.tmp"
4200 mv "conftest.tmp" "conftest.in"
4201 cp "conftest.in" "conftest.nl"
8d138742 4202 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4203 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4205 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4206 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4207 # Best one so far, save it but keep looking for a better one
4208 ac_cv_path_GREP="$ac_path_GREP"
4209 ac_path_GREP_max=$ac_count
4210 fi
4211 # 10*(2^10) chars as input seems more than enough
4212 test $ac_count -gt 10 && break
4213 done
4214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4215esac
4216
8d138742
CE
4217 $ac_path_GREP_found && break 3
4218 done
dd184caf 4219 done
b0322a85 4220 done
dd184caf 4221IFS=$as_save_IFS
8d138742 4222 if test -z "$ac_cv_path_GREP"; then
b0322a85 4223 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4224 fi
dd184caf 4225else
4226 ac_cv_path_GREP=$GREP
4227fi
4228
dd184caf 4229fi
b0322a85 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4231$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4232 GREP="$ac_cv_path_GREP"
4233
4234
b0322a85 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4236$as_echo_n "checking for egrep... " >&6; }
b0322a85 4237if ${ac_cv_path_EGREP+:} false; then :
8d138742 4238 $as_echo_n "(cached) " >&6
d9898ee8 4239else
dd184caf 4240 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4241 then ac_cv_path_EGREP="$GREP -E"
4242 else
8d138742 4243 if test -z "$EGREP"; then
dd184caf 4244 ac_path_EGREP_found=false
8d138742
CE
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4247for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
b0322a85 4251 for ac_prog in egrep; do
8d138742
CE
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4254 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4255# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4256 # Check for GNU $ac_path_EGREP
4257case `"$ac_path_EGREP" --version 2>&1` in
4258*GNU*)
4259 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4260*)
4261 ac_count=0
8d138742 4262 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4263 while :
4264 do
4265 cat "conftest.in" "conftest.in" >"conftest.tmp"
4266 mv "conftest.tmp" "conftest.in"
4267 cp "conftest.in" "conftest.nl"
8d138742 4268 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4269 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4271 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4272 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4273 # Best one so far, save it but keep looking for a better one
4274 ac_cv_path_EGREP="$ac_path_EGREP"
4275 ac_path_EGREP_max=$ac_count
d9898ee8 4276 fi
dd184caf 4277 # 10*(2^10) chars as input seems more than enough
4278 test $ac_count -gt 10 && break
4279 done
4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281esac
4282
8d138742
CE
4283 $ac_path_EGREP_found && break 3
4284 done
dd184caf 4285 done
b0322a85 4286 done
dd184caf 4287IFS=$as_save_IFS
8d138742 4288 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4289 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4290 fi
dd184caf 4291else
4292 ac_cv_path_EGREP=$EGREP
4293fi
4294
dd184caf 4295 fi
d9898ee8 4296fi
b0322a85 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742 4298$as_echo "$ac_cv_path_EGREP" >&6; }
dd184caf 4299 EGREP="$ac_cv_path_EGREP"
d9898ee8 4300
4301
b0322a85
CE
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4303$as_echo_n "checking for fgrep... " >&6; }
4304if ${ac_cv_path_FGREP+:} false; then :
8d138742 4305 $as_echo_n "(cached) " >&6
d9898ee8 4306else
b0322a85
CE
4307 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4308 then ac_cv_path_FGREP="$GREP -F"
4309 else
4310 if test -z "$FGREP"; then
4311 ac_path_FGREP_found=false
4312 # Loop through the user's path and test for each of PROGNAME-LIST
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_prog in fgrep; do
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4321 as_fn_executable_p "$ac_path_FGREP" || continue
4322# Check for GNU ac_path_FGREP and select it if it is found.
4323 # Check for GNU $ac_path_FGREP
4324case `"$ac_path_FGREP" --version 2>&1` in
4325*GNU*)
4326 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4327*)
4328 ac_count=0
4329 $as_echo_n 0123456789 >"conftest.in"
4330 while :
4331 do
4332 cat "conftest.in" "conftest.in" >"conftest.tmp"
4333 mv "conftest.tmp" "conftest.in"
4334 cp "conftest.in" "conftest.nl"
4335 $as_echo 'FGREP' >> "conftest.nl"
4336 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4338 as_fn_arith $ac_count + 1 && ac_count=$as_val
4339 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4340 # Best one so far, save it but keep looking for a better one
4341 ac_cv_path_FGREP="$ac_path_FGREP"
4342 ac_path_FGREP_max=$ac_count
4343 fi
4344 # 10*(2^10) chars as input seems more than enough
4345 test $ac_count -gt 10 && break
4346 done
4347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
dd184caf 4348esac
b0322a85
CE
4349
4350 $ac_path_FGREP_found && break 3
4351 done
4352 done
4353 done
4354IFS=$as_save_IFS
4355 if test -z "$ac_cv_path_FGREP"; then
4356 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4357 fi
d9898ee8 4358else
b0322a85
CE
4359 ac_cv_path_FGREP=$FGREP
4360fi
d9898ee8 4361
b0322a85 4362 fi
d9898ee8 4363fi
b0322a85
CE
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4365$as_echo "$ac_cv_path_FGREP" >&6; }
4366 FGREP="$ac_cv_path_FGREP"
dd184caf 4367
d9898ee8 4368
b0322a85 4369test -z "$GREP" && GREP=grep
d9898ee8 4370
d9898ee8 4371
d9898ee8 4372
d9898ee8 4373
d9898ee8 4374
d9898ee8 4375
d9898ee8 4376
d9898ee8 4377
dd184caf 4378
4379
d9898ee8 4380
4381
4382
4383
4384
4385
4386
4387
4388
b0322a85
CE
4389# Check whether --with-gnu-ld was given.
4390if test "${with_gnu_ld+set}" = set; then :
4391 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4392else
b0322a85 4393 with_gnu_ld=no
d9898ee8 4394fi
d9898ee8 4395
b0322a85
CE
4396ac_prog=ld
4397if test "$GCC" = yes; then
4398 # Check if gcc -print-prog-name=ld gives a path.
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4400$as_echo_n "checking for ld used by $CC... " >&6; }
4401 case $host in
4402 *-*-mingw*)
4403 # gcc leaves a trailing carriage return which upsets mingw
4404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4405 *)
4406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4407 esac
4408 case $ac_prog in
4409 # Accept absolute paths.
4410 [\\/]* | ?:[\\/]*)
4411 re_direlt='/[^/][^/]*/\.\./'
4412 # Canonicalize the pathname of ld
4413 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4414 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4415 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4416 done
4417 test -z "$LD" && LD="$ac_prog"
4418 ;;
4419 "")
4420 # If it fails, then pretend we aren't using GCC.
4421 ac_prog=ld
4422 ;;
4423 *)
4424 # If it is relative, then search for the first ld in PATH.
4425 with_gnu_ld=unknown
4426 ;;
4427 esac
4428elif test "$with_gnu_ld" = yes; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4430$as_echo_n "checking for GNU ld... " >&6; }
4431else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4433$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4434fi
b0322a85 4435if ${lt_cv_path_LD+:} false; then :
8d138742 4436 $as_echo_n "(cached) " >&6
d9898ee8 4437else
b0322a85
CE
4438 if test -z "$LD"; then
4439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4440 for ac_dir in $PATH; do
4441 IFS="$lt_save_ifs"
4442 test -z "$ac_dir" && ac_dir=.
4443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4444 lt_cv_path_LD="$ac_dir/$ac_prog"
4445 # Check to see if the program is GNU ld. I'd rather use --version,
4446 # but apparently some variants of GNU ld only accept -v.
4447 # Break only if it was the GNU/non-GNU ld that we prefer.
4448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4449 *GNU* | *'with BFD'*)
4450 test "$with_gnu_ld" != no && break
4451 ;;
4452 *)
4453 test "$with_gnu_ld" != yes && break
4454 ;;
4455 esac
4456 fi
4457 done
4458 IFS="$lt_save_ifs"
d9898ee8 4459else
b0322a85 4460 lt_cv_path_LD="$LD" # Let the user override the test with a path.
d9898ee8 4461fi
d9898ee8 4462fi
dd184caf 4463
b0322a85
CE
4464LD="$lt_cv_path_LD"
4465if test -n "$LD"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4467$as_echo "$LD" >&6; }
d9898ee8 4468else
b0322a85
CE
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470$as_echo "no" >&6; }
d9898ee8 4471fi
b0322a85
CE
4472test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4474$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4475if ${lt_cv_prog_gnu_ld+:} false; then :
4476 $as_echo_n "(cached) " >&6
d9898ee8 4477else
b0322a85
CE
4478 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4479case `$LD -v 2>&1 </dev/null` in
4480*GNU* | *'with BFD'*)
4481 lt_cv_prog_gnu_ld=yes
4482 ;;
4483*)
4484 lt_cv_prog_gnu_ld=no
4485 ;;
4486esac
d9898ee8 4487fi
b0322a85
CE
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4489$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4490with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 4491
4492
d9898ee8 4493
d9898ee8 4494
4495
d9898ee8 4496
d9898ee8 4497
8d138742
CE
4498
4499
b0322a85
CE
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4501$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4502if ${lt_cv_path_NM+:} false; then :
8d138742 4503 $as_echo_n "(cached) " >&6
d9898ee8 4504else
b0322a85
CE
4505 if test -n "$NM"; then
4506 # Let the user override the test.
4507 lt_cv_path_NM="$NM"
d9898ee8 4508else
b0322a85
CE
4509 lt_nm_to_check="${ac_tool_prefix}nm"
4510 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4511 lt_nm_to_check="$lt_nm_to_check nm"
4512 fi
4513 for lt_tmp_nm in $lt_nm_to_check; do
4514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4515 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4516 IFS="$lt_save_ifs"
4517 test -z "$ac_dir" && ac_dir=.
4518 tmp_nm="$ac_dir/$lt_tmp_nm"
4519 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4520 # Check to see if the nm accepts a BSD-compat flag.
4521 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4522 # nm: unknown option "B" ignored
4523 # Tru64's nm complains that /dev/null is an invalid object file
4524 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4525 */dev/null* | *'Invalid file or object type'*)
4526 lt_cv_path_NM="$tmp_nm -B"
4527 break
4528 ;;
4529 *)
4530 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4531 */dev/null*)
4532 lt_cv_path_NM="$tmp_nm -p"
4533 break
4534 ;;
4535 *)
4536 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4537 continue # so that we can try to find one that supports BSD flags
4538 ;;
4539 esac
4540 ;;
4541 esac
4542 fi
4543 done
4544 IFS="$lt_save_ifs"
4545 done
4546 : ${lt_cv_path_NM=no}
8d138742 4547fi
d9898ee8 4548fi
b0322a85
CE
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4550$as_echo "$lt_cv_path_NM" >&6; }
4551if test "$lt_cv_path_NM" != "no"; then
4552 NM="$lt_cv_path_NM"
4553else
4554 # Didn't find any BSD compatible name lister, look for dumpbin.
4555 if test -n "$DUMPBIN"; then :
4556 # Let the user override the test.
4557 else
4558 if test -n "$ac_tool_prefix"; then
4559 for ac_prog in dumpbin "link -dump"
4560 do
4561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4562set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4564$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4565if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
4566 $as_echo_n "(cached) " >&6
4567else
b0322a85
CE
4568 if test -n "$DUMPBIN"; then
4569 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8d138742
CE
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
b0322a85
CE
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4580 break 2
4581 fi
dd184caf 4582done
b0322a85 4583 done
8d138742
CE
4584IFS=$as_save_IFS
4585
4586fi
4587fi
b0322a85
CE
4588DUMPBIN=$ac_cv_prog_DUMPBIN
4589if test -n "$DUMPBIN"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4591$as_echo "$DUMPBIN" >&6; }
dd184caf 4592else
b0322a85 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4594$as_echo "no" >&6; }
d9898ee8 4595fi
8d138742
CE
4596
4597
b0322a85
CE
4598 test -n "$DUMPBIN" && break
4599 done
dd184caf 4600fi
b0322a85
CE
4601if test -z "$DUMPBIN"; then
4602 ac_ct_DUMPBIN=$DUMPBIN
4603 for ac_prog in dumpbin "link -dump"
4604do
4605 # Extract the first word of "$ac_prog", so it can be a program name with args.
4606set dummy $ac_prog; ac_word=$2
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4608$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4609if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742
CE
4610 $as_echo_n "(cached) " >&6
4611else
b0322a85
CE
4612 if test -n "$ac_ct_DUMPBIN"; then
4613 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8d138742
CE
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
b0322a85
CE
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4624 break 2
4625 fi
4626done
b0322a85 4627 done
8d138742 4628IFS=$as_save_IFS
d9898ee8 4629
8d138742
CE
4630fi
4631fi
b0322a85
CE
4632ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4633if test -n "$ac_ct_DUMPBIN"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4635$as_echo "$ac_ct_DUMPBIN" >&6; }
8d138742 4636else
b0322a85 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4638$as_echo "no" >&6; }
dd184caf 4639fi
d9898ee8 4640
b0322a85
CE
4641
4642 test -n "$ac_ct_DUMPBIN" && break
4643done
4644
4645 if test "x$ac_ct_DUMPBIN" = x; then
4646 DUMPBIN=":"
8d138742
CE
4647 else
4648 case $cross_compiling:$ac_tool_warned in
4649yes:)
b0322a85 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4652ac_tool_warned=yes ;;
4653esac
b0322a85 4654 DUMPBIN=$ac_ct_DUMPBIN
8d138742 4655 fi
8d138742
CE
4656fi
4657
b0322a85
CE
4658 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4659 *COFF*)
4660 DUMPBIN="$DUMPBIN -symbols"
4661 ;;
4662 *)
4663 DUMPBIN=:
4664 ;;
4665 esac
d9898ee8 4666 fi
d9898ee8 4667
b0322a85
CE
4668 if test "$DUMPBIN" != ":"; then
4669 NM="$DUMPBIN"
4670 fi
d9898ee8 4671fi
b0322a85 4672test -z "$NM" && NM=nm
d9898ee8 4673
dd184caf 4674
d9898ee8 4675
8d138742
CE
4676
4677
b0322a85
CE
4678
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4680$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4681if ${lt_cv_nm_interface+:} false; then :
8d138742 4682 $as_echo_n "(cached) " >&6
d9898ee8 4683else
b0322a85
CE
4684 lt_cv_nm_interface="BSD nm"
4685 echo "int some_variable = 0;" > conftest.$ac_ext
4686 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4687 (eval "$ac_compile" 2>conftest.err)
4688 cat conftest.err >&5
4689 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4690 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4691 cat conftest.err >&5
4692 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4693 cat conftest.out >&5
4694 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4695 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4696 fi
b0322a85 4697 rm -f conftest*
d9898ee8 4698fi
b0322a85
CE
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4700$as_echo "$lt_cv_nm_interface" >&6; }
4701
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4703$as_echo_n "checking whether ln -s works... " >&6; }
4704LN_S=$as_ln_s
4705if test "$LN_S" = "ln -s"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707$as_echo "yes" >&6; }
d9898ee8 4708else
b0322a85
CE
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4710$as_echo "no, using $LN_S" >&6; }
d9898ee8 4711fi
4712
b0322a85
CE
4713# find the maximum length of command line arguments
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4715$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4716if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742 4717 $as_echo_n "(cached) " >&6
d9898ee8 4718else
b0322a85
CE
4719 i=0
4720 teststring="ABCD"
d9898ee8 4721
b0322a85
CE
4722 case $build_os in
4723 msdosdjgpp*)
4724 # On DJGPP, this test can blow up pretty badly due to problems in libc
4725 # (any single argument exceeding 2000 bytes causes a buffer overrun
4726 # during glob expansion). Even if it were fixed, the result of this
4727 # check would be larger than it should be.
4728 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4729 ;;
dd184caf 4730
b0322a85
CE
4731 gnu*)
4732 # Under GNU Hurd, this test is not required because there is
4733 # no limit to the length of command line arguments.
4734 # Libtool will interpret -1 as no limit whatsoever
4735 lt_cv_sys_max_cmd_len=-1;
4736 ;;
d9898ee8 4737
b0322a85
CE
4738 cygwin* | mingw* | cegcc*)
4739 # On Win9x/ME, this test blows up -- it succeeds, but takes
4740 # about 5 minutes as the teststring grows exponentially.
4741 # Worse, since 9x/ME are not pre-emptively multitasking,
4742 # you end up with a "frozen" computer, even though with patience
4743 # the test eventually succeeds (with a max line length of 256k).
4744 # Instead, let's just punt: use the minimum linelength reported by
4745 # all of the supported platforms: 8192 (on NT/2K/XP).
4746 lt_cv_sys_max_cmd_len=8192;
4747 ;;
8d138742 4748
b0322a85
CE
4749 mint*)
4750 # On MiNT this can take a long time and run out of memory.
4751 lt_cv_sys_max_cmd_len=8192;
4752 ;;
8d138742 4753
b0322a85
CE
4754 amigaos*)
4755 # On AmigaOS with pdksh, this test takes hours, literally.
4756 # So we just punt and use a minimum line length of 8192.
4757 lt_cv_sys_max_cmd_len=8192;
4758 ;;
8d138742 4759
b0322a85
CE
4760 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4761 # This has been around since 386BSD, at least. Likely further.
4762 if test -x /sbin/sysctl; then
4763 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4764 elif test -x /usr/sbin/sysctl; then
4765 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4766 else
4767 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4768 fi
4769 # And add a safety zone
4770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4772 ;;
d9898ee8 4773
b0322a85
CE
4774 interix*)
4775 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4776 lt_cv_sys_max_cmd_len=196608
4777 ;;
d9898ee8 4778
b0322a85
CE
4779 os2*)
4780 # The test takes a long time on OS/2.
4781 lt_cv_sys_max_cmd_len=8192
4782 ;;
d9898ee8 4783
b0322a85
CE
4784 osf*)
4785 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4786 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4787 # nice to cause kernel panics so lets avoid the loop below.
4788 # First set a reasonable default.
4789 lt_cv_sys_max_cmd_len=16384
4790 #
4791 if test -x /sbin/sysconfig; then
4792 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4793 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4794 esac
4795 fi
4796 ;;
4797 sco3.2v5*)
4798 lt_cv_sys_max_cmd_len=102400
4799 ;;
4800 sysv5* | sco5v6* | sysv4.2uw2*)
4801 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4802 if test -n "$kargmax"; then
4803 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4804 else
4805 lt_cv_sys_max_cmd_len=32768
4806 fi
4807 ;;
4808 *)
4809 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4810 if test -n "$lt_cv_sys_max_cmd_len"; then
4811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4813 else
4814 # Make teststring a little bigger before we do anything with it.
4815 # a 1K string should be a reasonable start.
4816 for i in 1 2 3 4 5 6 7 8 ; do
4817 teststring=$teststring$teststring
4818 done
4819 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4820 # If test is not a shell built-in, we'll probably end up computing a
4821 # maximum length that is only half of the actual maximum length, but
4822 # we can't tell.
4823 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4824 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4825 test $i != 17 # 1/2 MB should be enough
4826 do
4827 i=`expr $i + 1`
4828 teststring=$teststring$teststring
4829 done
4830 # Only check the string length outside the loop.
4831 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4832 teststring=
4833 # Add a significant safety factor because C++ compilers can tack on
4834 # massive amounts of additional arguments before passing them to the
4835 # linker. It appears as though 1/2 is a usable value.
4836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4837 fi
4838 ;;
4839 esac
d9898ee8 4840
d9898ee8 4841fi
dd184caf 4842
b0322a85
CE
4843if test -n $lt_cv_sys_max_cmd_len ; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4845$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 4846else
b0322a85
CE
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4848$as_echo "none" >&6; }
8d138742 4849fi
b0322a85 4850max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4851
d9898ee8 4852
d9898ee8 4853
dd184caf 4854
dd184caf 4855
d9898ee8 4856
b0322a85
CE
4857: ${CP="cp -f"}
4858: ${MV="mv -f"}
4859: ${RM="rm -f"}
dd184caf 4860
b0322a85
CE
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4862$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4863# Try some XSI features
4864xsi_shell=no
4865( _lt_dummy="a/b/c"
4866 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4867 = c,a/b,b/c, \
4868 && eval 'test $(( 1 + 1 )) -eq 2 \
4869 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4870 && xsi_shell=yes
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4872$as_echo "$xsi_shell" >&6; }
dd184caf 4873
d9898ee8 4874
b0322a85
CE
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4876$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4877lt_shell_append=no
4878( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4879 >/dev/null 2>&1 \
4880 && lt_shell_append=yes
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4882$as_echo "$lt_shell_append" >&6; }
dd184caf 4883
dd184caf 4884
b0322a85
CE
4885if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4886 lt_unset=unset
4887else
4888 lt_unset=false
dd184caf 4889fi
4890
d9898ee8 4891
8d138742 4892
8d138742 4893
8d138742 4894
b0322a85
CE
4895# test EBCDIC or ASCII
4896case `echo X|tr X '\101'` in
4897 A) # ASCII based system
4898 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4899 lt_SP2NL='tr \040 \012'
4900 lt_NL2SP='tr \015\012 \040\040'
4901 ;;
4902 *) # EBCDIC based system
4903 lt_SP2NL='tr \100 \n'
4904 lt_NL2SP='tr \r\n \100\100'
4905 ;;
8d138742 4906esac
8d138742
CE
4907
4908
8d138742 4909
8d138742 4910
8d138742
CE
4911
4912
d9898ee8 4913
d9898ee8 4914
b0322a85
CE
4915
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4917$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4918if ${lt_cv_to_host_file_cmd+:} false; then :
8d138742 4919 $as_echo_n "(cached) " >&6
d9898ee8 4920else
b0322a85
CE
4921 case $host in
4922 *-*-mingw* )
4923 case $build in
4924 *-*-mingw* ) # actually msys
4925 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4926 ;;
4927 *-*-cygwin* )
4928 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4929 ;;
4930 * ) # otherwise, assume *nix
4931 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4932 ;;
4933 esac
4934 ;;
4935 *-*-cygwin* )
4936 case $build in
4937 *-*-mingw* ) # actually msys
4938 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4939 ;;
4940 *-*-cygwin* )
4941 lt_cv_to_host_file_cmd=func_convert_file_noop
4942 ;;
4943 * ) # otherwise, assume *nix
4944 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4945 ;;
4946 esac
4947 ;;
4948 * ) # unhandled hosts (and "normal" native builds)
4949 lt_cv_to_host_file_cmd=func_convert_file_noop
4950 ;;
4951esac
d9898ee8 4952
b0322a85 4953fi
8d138742 4954
b0322a85
CE
4955to_host_file_cmd=$lt_cv_to_host_file_cmd
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4957$as_echo "$lt_cv_to_host_file_cmd" >&6; }
d9898ee8 4958
d9898ee8 4959
d9898ee8 4960
d9898ee8 4961
b0322a85
CE
4962
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4964$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4965if ${lt_cv_to_tool_file_cmd+:} false; then :
4966 $as_echo_n "(cached) " >&6
d9898ee8 4967else
b0322a85
CE
4968 #assume ordinary cross tools, or native build.
4969lt_cv_to_tool_file_cmd=func_convert_file_noop
4970case $host in
4971 *-*-mingw* )
4972 case $build in
4973 *-*-mingw* ) # actually msys
4974 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4975 ;;
4976 esac
4977 ;;
4978esac
4979
d9898ee8 4980fi
4981
b0322a85
CE
4982to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4984$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4985
d9898ee8 4986
b0322a85
CE
4987
4988
4989
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4991$as_echo_n "checking for $LD option to reload object files... " >&6; }
4992if ${lt_cv_ld_reload_flag+:} false; then :
8d138742 4993 $as_echo_n "(cached) " >&6
d9898ee8 4994else
b0322a85
CE
4995 lt_cv_ld_reload_flag='-r'
4996fi
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4998$as_echo "$lt_cv_ld_reload_flag" >&6; }
4999reload_flag=$lt_cv_ld_reload_flag
5000case $reload_flag in
5001"" | " "*) ;;
5002*) reload_flag=" $reload_flag" ;;
5003esac
5004reload_cmds='$LD$reload_flag -o $output$reload_objs'
5005case $host_os in
5006 cygwin* | mingw* | pw32* | cegcc*)
5007 if test "$GCC" != yes; then
5008 reload_cmds=false
5009 fi
5010 ;;
5011 darwin*)
5012 if test "$GCC" = yes; then
5013 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5014 else
5015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5016 fi
5017 ;;
8d138742 5018esac
dd184caf 5019
d9898ee8 5020
dd184caf 5021
dd184caf 5022
5023
d9898ee8 5024
d9898ee8 5025
d9898ee8 5026
d9898ee8 5027
b0322a85
CE
5028if test -n "$ac_tool_prefix"; then
5029 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5030set dummy ${ac_tool_prefix}objdump; ac_word=$2
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5032$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5033if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742
CE
5034 $as_echo_n "(cached) " >&6
5035else
b0322a85
CE
5036 if test -n "$OBJDUMP"; then
5037 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8d138742
CE
5038else
5039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH
5041do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
b0322a85
CE
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5048 break 2
5049 fi
5050done
b0322a85 5051 done
8d138742 5052IFS=$as_save_IFS
d9898ee8 5053
8d138742
CE
5054fi
5055fi
b0322a85
CE
5056OBJDUMP=$ac_cv_prog_OBJDUMP
5057if test -n "$OBJDUMP"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5059$as_echo "$OBJDUMP" >&6; }
d9898ee8 5060else
b0322a85 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5062$as_echo "no" >&6; }
dd184caf 5063fi
5064
8d138742 5065
d9898ee8 5066fi
b0322a85
CE
5067if test -z "$ac_cv_prog_OBJDUMP"; then
5068 ac_ct_OBJDUMP=$OBJDUMP
5069 # Extract the first word of "objdump", so it can be a program name with args.
5070set dummy objdump; ac_word=$2
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5072$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5073if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742 5074 $as_echo_n "(cached) " >&6
d9898ee8 5075else
b0322a85
CE
5076 if test -n "$ac_ct_OBJDUMP"; then
5077 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
d9898ee8 5078else
8d138742
CE
5079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
b0322a85
CE
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5086 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5088 break 2
5089 fi
5090done
b0322a85 5091 done
8d138742 5092IFS=$as_save_IFS
d9898ee8 5093
d9898ee8 5094fi
8d138742 5095fi
b0322a85
CE
5096ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5097if test -n "$ac_ct_OBJDUMP"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5099$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 5100else
b0322a85 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5102$as_echo "no" >&6; }
d9898ee8 5103fi
d9898ee8 5104
b0322a85
CE
5105 if test "x$ac_ct_OBJDUMP" = x; then
5106 OBJDUMP="false"
8d138742
CE
5107 else
5108 case $cross_compiling:$ac_tool_warned in
5109yes:)
b0322a85 5110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5112ac_tool_warned=yes ;;
5113esac
b0322a85 5114 OBJDUMP=$ac_ct_OBJDUMP
d9898ee8 5115 fi
b0322a85
CE
5116else
5117 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 5118fi
d9898ee8 5119
b0322a85 5120test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 5121
d9898ee8 5122
d9898ee8 5123
d9898ee8 5124
d9898ee8 5125
d9898ee8 5126
b0322a85
CE
5127
5128
5129
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5131$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5132if ${lt_cv_deplibs_check_method+:} false; then :
8d138742
CE
5133 $as_echo_n "(cached) " >&6
5134else
b0322a85
CE
5135 lt_cv_file_magic_cmd='$MAGIC_CMD'
5136lt_cv_file_magic_test_file=
5137lt_cv_deplibs_check_method='unknown'
5138# Need to set the preceding variable on all platforms that support
5139# interlibrary dependencies.
5140# 'none' -- dependencies not supported.
5141# `unknown' -- same as none, but documents that we really don't know.
5142# 'pass_all' -- all dependencies passed with no checks.
5143# 'test_compile' -- check by making test program.
5144# 'file_magic [[regex]]' -- check by looking for files in library path
5145# which responds to the $file_magic_cmd with a given extended regex.
5146# If you have `file' or equivalent on your system and you're not sure
5147# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 5148
b0322a85
CE
5149case $host_os in
5150aix[4-9]*)
5151 lt_cv_deplibs_check_method=pass_all
5152 ;;
d9898ee8 5153
b0322a85
CE
5154beos*)
5155 lt_cv_deplibs_check_method=pass_all
5156 ;;
d9898ee8 5157
b0322a85
CE
5158bsdi[45]*)
5159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5160 lt_cv_file_magic_cmd='/usr/bin/file -L'
5161 lt_cv_file_magic_test_file=/shlib/libc.so
5162 ;;
d9898ee8 5163
b0322a85
CE
5164cygwin*)
5165 # func_win32_libid is a shell function defined in ltmain.sh
5166 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5167 lt_cv_file_magic_cmd='func_win32_libid'
5168 ;;
d9898ee8 5169
b0322a85
CE
5170mingw* | pw32*)
5171 # Base MSYS/MinGW do not provide the 'file' command needed by
5172 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5173 # unless we find 'file', for example because we are cross-compiling.
5174 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5175 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5177 lt_cv_file_magic_cmd='func_win32_libid'
5178 else
5179 # Keep this pattern in sync with the one in func_win32_libid.
5180 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5181 lt_cv_file_magic_cmd='$OBJDUMP -f'
5182 fi
5183 ;;
d9898ee8 5184
b0322a85
CE
5185cegcc*)
5186 # use the weaker test based on 'objdump'. See mingw*.
5187 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5188 lt_cv_file_magic_cmd='$OBJDUMP -f'
5189 ;;
d9898ee8 5190
b0322a85
CE
5191darwin* | rhapsody*)
5192 lt_cv_deplibs_check_method=pass_all
5193 ;;
d9898ee8 5194
b0322a85
CE
5195freebsd* | dragonfly*)
5196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197 case $host_cpu in
5198 i*86 )
5199 # Not sure whether the presence of OpenBSD here was a mistake.
5200 # Let's accept both of them until this is cleared up.
5201 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5202 lt_cv_file_magic_cmd=/usr/bin/file
5203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5204 ;;
5205 esac
5206 else
5207 lt_cv_deplibs_check_method=pass_all
5208 fi
5209 ;;
d9898ee8 5210
b0322a85
CE
5211gnu*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
8d138742 5214
b0322a85
CE
5215haiku*)
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
dd184caf 5218
b0322a85
CE
5219hpux10.20* | hpux11*)
5220 lt_cv_file_magic_cmd=/usr/bin/file
5221 case $host_cpu in
5222 ia64*)
5223 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5224 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5225 ;;
5226 hppa*64*)
5227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5228 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5229 ;;
5230 *)
5231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5232 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5233 ;;
5234 esac
5235 ;;
8d138742 5236
b0322a85
CE
5237interix[3-9]*)
5238 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5240 ;;
8d138742 5241
b0322a85
CE
5242irix5* | irix6* | nonstopux*)
5243 case $LD in
5244 *-32|*"-32 ") libmagic=32-bit;;
5245 *-n32|*"-n32 ") libmagic=N32;;
5246 *-64|*"-64 ") libmagic=64-bit;;
5247 *) libmagic=never-match;;
5248 esac
5249 lt_cv_deplibs_check_method=pass_all
5250 ;;
5251
5252# This must be glibc/ELF.
5253linux* | k*bsd*-gnu | kopensolaris*-gnu)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256
5257netbsd*)
5258 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8d138742 5260 else
b0322a85 5261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8d138742 5262 fi
b0322a85
CE
5263 ;;
5264
5265newos6*)
5266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5267 lt_cv_file_magic_cmd=/usr/bin/file
5268 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5269 ;;
5270
5271*nto* | *qnx*)
5272 lt_cv_deplibs_check_method=pass_all
5273 ;;
5274
5275openbsd*)
5276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8d138742 5278 else
b0322a85 5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8d138742 5280 fi
b0322a85 5281 ;;
d9898ee8 5282
b0322a85
CE
5283osf3* | osf4* | osf5*)
5284 lt_cv_deplibs_check_method=pass_all
5285 ;;
d9898ee8 5286
b0322a85
CE
5287rdos*)
5288 lt_cv_deplibs_check_method=pass_all
5289 ;;
d9898ee8 5290
b0322a85
CE
5291solaris*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
d9898ee8 5294
b0322a85
CE
5295sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
d9898ee8 5298
b0322a85
CE
5299sysv4 | sysv4.3*)
5300 case $host_vendor in
5301 motorola)
5302 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]'
5303 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5304 ;;
5305 ncr)
5306 lt_cv_deplibs_check_method=pass_all
5307 ;;
5308 sequent)
5309 lt_cv_file_magic_cmd='/bin/file'
5310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5311 ;;
5312 sni)
5313 lt_cv_file_magic_cmd='/bin/file'
5314 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5315 lt_cv_file_magic_test_file=/lib/libc.so
5316 ;;
5317 siemens)
5318 lt_cv_deplibs_check_method=pass_all
5319 ;;
5320 pc)
5321 lt_cv_deplibs_check_method=pass_all
5322 ;;
5323 esac
5324 ;;
d9898ee8 5325
b0322a85
CE
5326tpf*)
5327 lt_cv_deplibs_check_method=pass_all
5328 ;;
5329esac
d9898ee8 5330
d9898ee8 5331fi
b0322a85
CE
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5333$as_echo "$lt_cv_deplibs_check_method" >&6; }
d9898ee8 5334
b0322a85
CE
5335file_magic_glob=
5336want_nocaseglob=no
5337if test "$build" = "$host"; then
5338 case $host_os in
5339 mingw* | pw32*)
5340 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5341 want_nocaseglob=yes
5342 else
5343 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5344 fi
5345 ;;
5346 esac
d9898ee8 5347fi
dd184caf 5348
b0322a85
CE
5349file_magic_cmd=$lt_cv_file_magic_cmd
5350deplibs_check_method=$lt_cv_deplibs_check_method
5351test -z "$deplibs_check_method" && deplibs_check_method=unknown
d9898ee8 5352
d9898ee8 5353
dd184caf 5354
d9898ee8 5355
d9898ee8 5356
d9898ee8 5357
d9898ee8 5358
d9898ee8 5359
5360
5361
d9898ee8 5362
dd184caf 5363
d9898ee8 5364
d9898ee8 5365
d9898ee8 5366
d9898ee8 5367
d9898ee8 5368
dd184caf 5369
d9898ee8 5370
d9898ee8 5371
dd184caf 5372
d9898ee8 5373
b0322a85
CE
5374if test -n "$ac_tool_prefix"; then
5375 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5376set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378$as_echo_n "checking for $ac_word... " >&6; }
5379if ${ac_cv_prog_DLLTOOL+:} false; then :
8d138742 5380 $as_echo_n "(cached) " >&6
d9898ee8 5381else
b0322a85
CE
5382 if test -n "$DLLTOOL"; then
5383 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8d138742 5384else
b0322a85
CE
5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH
5387do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5395 fi
5396done
5397 done
5398IFS=$as_save_IFS
d9898ee8 5399
d9898ee8 5400fi
b0322a85
CE
5401fi
5402DLLTOOL=$ac_cv_prog_DLLTOOL
5403if test -n "$DLLTOOL"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5405$as_echo "$DLLTOOL" >&6; }
5406else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408$as_echo "no" >&6; }
5409fi
d9898ee8 5410
5411
b0322a85
CE
5412fi
5413if test -z "$ac_cv_prog_DLLTOOL"; then
5414 ac_ct_DLLTOOL=$DLLTOOL
5415 # Extract the first word of "dlltool", so it can be a program name with args.
5416set dummy dlltool; ac_word=$2
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418$as_echo_n "checking for $ac_word... " >&6; }
5419if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8d138742
CE
5420 $as_echo_n "(cached) " >&6
5421else
b0322a85
CE
5422 if test -n "$ac_ct_DLLTOOL"; then
5423 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5424else
5425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 5426for as_dir in $PATH
5427do
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
8d138742 5430 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85
CE
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5435 fi
d9898ee8 5436done
b0322a85 5437 done
dd184caf 5438IFS=$as_save_IFS
b0322a85
CE
5439
5440fi
5441fi
5442ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5443if test -n "$ac_ct_DLLTOOL"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5445$as_echo "$ac_ct_DLLTOOL" >&6; }
d9898ee8 5446else
b0322a85
CE
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448$as_echo "no" >&6; }
d9898ee8 5449fi
5450
b0322a85
CE
5451 if test "x$ac_ct_DLLTOOL" = x; then
5452 DLLTOOL="false"
5453 else
5454 case $cross_compiling:$ac_tool_warned in
5455yes:)
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5458ac_tool_warned=yes ;;
5459esac
5460 DLLTOOL=$ac_ct_DLLTOOL
5461 fi
5462else
5463 DLLTOOL="$ac_cv_prog_DLLTOOL"
d9898ee8 5464fi
d9898ee8 5465
b0322a85 5466test -z "$DLLTOOL" && DLLTOOL=dlltool
d9898ee8 5467
dd184caf 5468
d9898ee8 5469
d9898ee8 5470
5471
d9898ee8 5472
d9898ee8 5473
d9898ee8 5474
dd184caf 5475
d9898ee8 5476
b0322a85
CE
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5478$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5479if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481else
5482 lt_cv_sharedlib_from_linklib_cmd='unknown'
d9898ee8 5483
b0322a85
CE
5484case $host_os in
5485cygwin* | mingw* | pw32* | cegcc*)
5486 # two different shell functions defined in ltmain.sh
5487 # decide which to use based on capabilities of $DLLTOOL
5488 case `$DLLTOOL --help 2>&1` in
5489 *--identify-strict*)
5490 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5491 ;;
5492 *)
5493 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5494 ;;
5495 esac
5496 ;;
5497*)
5498 # fallback: assume linklib IS sharedlib
5499 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5500 ;;
5501esac
5502
5503fi
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5505$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5506sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5507test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5508
5509
5510
5511
5512
5513
5514
5515
5516if test -n "$ac_tool_prefix"; then
5517 for ac_prog in ar
5518 do
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522$as_echo_n "checking for $ac_word... " >&6; }
5523if ${ac_cv_prog_AR+:} false; then :
8d138742 5524 $as_echo_n "(cached) " >&6
d9898ee8 5525else
b0322a85
CE
5526 if test -n "$AR"; then
5527 ac_cv_prog_AR="$AR" # Let the user override the test.
5528else
5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
8d138742
CE
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
8d138742 5534 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85
CE
5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540done
8d138742 5541 done
b0322a85 5542IFS=$as_save_IFS
d9898ee8 5543
b0322a85
CE
5544fi
5545fi
5546AR=$ac_cv_prog_AR
5547if test -n "$AR"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5549$as_echo "$AR" >&6; }
5550else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552$as_echo "no" >&6; }
5553fi
5554
5555
5556 test -n "$AR" && break
8d138742 5557 done
b0322a85
CE
5558fi
5559if test -z "$AR"; then
5560 ac_ct_AR=$AR
5561 for ac_prog in ar
5562do
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564set dummy $ac_prog; ac_word=$2
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566$as_echo_n "checking for $ac_word... " >&6; }
5567if ${ac_cv_prog_ac_ct_AR+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569else
5570 if test -n "$ac_ct_AR"; then
5571 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_ac_ct_AR="$ac_prog"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5583 fi
8d138742 5584done
b0322a85 5585 done
8d138742 5586IFS=$as_save_IFS
b0322a85
CE
5587
5588fi
5589fi
5590ac_ct_AR=$ac_cv_prog_ac_ct_AR
5591if test -n "$ac_ct_AR"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5593$as_echo "$ac_ct_AR" >&6; }
d9898ee8 5594else
b0322a85
CE
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596$as_echo "no" >&6; }
d9898ee8 5597fi
5598
b0322a85
CE
5599
5600 test -n "$ac_ct_AR" && break
5601done
5602
5603 if test "x$ac_ct_AR" = x; then
5604 AR="false"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607yes:)
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610ac_tool_warned=yes ;;
5611esac
5612 AR=$ac_ct_AR
5613 fi
8d138742 5614fi
b0322a85
CE
5615
5616: ${AR=ar}
5617: ${AR_FLAGS=cru}
5618
5619
d9898ee8 5620
d9898ee8 5621
d9898ee8 5622
d9898ee8 5623
d9898ee8 5624
d9898ee8 5625
d9898ee8 5626
d9898ee8 5627
d9898ee8 5628
b0322a85
CE
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5630$as_echo_n "checking for archiver @FILE support... " >&6; }
5631if ${lt_cv_ar_at_file+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633else
5634 lt_cv_ar_at_file=no
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h. */
d9898ee8 5637
b0322a85
CE
5638int
5639main ()
5640{
d9898ee8 5641
b0322a85
CE
5642 ;
5643 return 0;
5644}
5645_ACEOF
5646if ac_fn_c_try_compile "$LINENO"; then :
5647 echo conftest.$ac_objext > conftest.lst
5648 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5650 (eval $lt_ar_try) 2>&5
5651 ac_status=$?
5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5653 test $ac_status = 0; }
5654 if test "$ac_status" -eq 0; then
5655 # Ensure the archiver fails upon bogus file names.
5656 rm -f conftest.$ac_objext libconftest.a
5657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5658 (eval $lt_ar_try) 2>&5
5659 ac_status=$?
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; }
5662 if test "$ac_status" -ne 0; then
5663 lt_cv_ar_at_file=@
5664 fi
5665 fi
5666 rm -f conftest.* libconftest.a
d9898ee8 5667
b0322a85
CE
5668fi
5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5670
b0322a85
CE
5671fi
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5673$as_echo "$lt_cv_ar_at_file" >&6; }
d9898ee8 5674
b0322a85
CE
5675if test "x$lt_cv_ar_at_file" = xno; then
5676 archiver_list_spec=
5677else
5678 archiver_list_spec=$lt_cv_ar_at_file
5679fi
d9898ee8 5680
ac40fd9e 5681
d9898ee8 5682
d9898ee8 5683
d9898ee8 5684
d9898ee8 5685
d9898ee8 5686
b0322a85
CE
5687if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5689set dummy ${ac_tool_prefix}strip; ac_word=$2
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691$as_echo_n "checking for $ac_word... " >&6; }
5692if ${ac_cv_prog_STRIP+:} false; then :
5693 $as_echo_n "(cached) " >&6
8d138742 5694else
b0322a85
CE
5695 if test -n "$STRIP"; then
5696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5697else
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5708 fi
5709done
5710 done
5711IFS=$as_save_IFS
d9898ee8 5712
b0322a85
CE
5713fi
5714fi
5715STRIP=$ac_cv_prog_STRIP
5716if test -n "$STRIP"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5718$as_echo "$STRIP" >&6; }
8d138742 5719else
b0322a85
CE
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }
5722fi
5723
5724
8d138742 5725fi
b0322a85
CE
5726if test -z "$ac_cv_prog_STRIP"; then
5727 ac_ct_STRIP=$STRIP
5728 # Extract the first word of "strip", so it can be a program name with args.
5729set dummy strip; ac_word=$2
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731$as_echo_n "checking for $ac_word... " >&6; }
5732if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
5733 $as_echo_n "(cached) " >&6
5734else
b0322a85
CE
5735 if test -n "$ac_ct_STRIP"; then
5736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8d138742 5737else
b0322a85
CE
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_ac_ct_STRIP="strip"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749done
5750 done
5751IFS=$as_save_IFS
5752
8d138742
CE
5753fi
5754fi
b0322a85
CE
5755ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5756if test -n "$ac_ct_STRIP"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5758$as_echo "$ac_ct_STRIP" >&6; }
8d138742 5759else
b0322a85 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5761$as_echo "no" >&6; }
5762fi
b0322a85
CE
5763
5764 if test "x$ac_ct_STRIP" = x; then
5765 STRIP=":"
5766 else
5767 case $cross_compiling:$ac_tool_warned in
5768yes:)
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771ac_tool_warned=yes ;;
d9898ee8 5772esac
b0322a85
CE
5773 STRIP=$ac_ct_STRIP
5774 fi
5775else
5776 STRIP="$ac_cv_prog_STRIP"
8d138742 5777fi
d9898ee8 5778
b0322a85 5779test -z "$STRIP" && STRIP=:
d9898ee8 5780
d9898ee8 5781
d9898ee8 5782
d9898ee8 5783
d9898ee8 5784
d9898ee8 5785
b0322a85
CE
5786if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5788set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790$as_echo_n "checking for $ac_word... " >&6; }
5791if ${ac_cv_prog_RANLIB+:} false; then :
8d138742
CE
5792 $as_echo_n "(cached) " >&6
5793else
b0322a85
CE
5794 if test -n "$RANLIB"; then
5795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8d138742
CE
5796else
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
b0322a85
CE
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 5806 break 2
d9898ee8 5807 fi
5808done
b0322a85 5809 done
8d138742 5810IFS=$as_save_IFS
d9898ee8 5811
5812fi
d9898ee8 5813fi
b0322a85
CE
5814RANLIB=$ac_cv_prog_RANLIB
5815if test -n "$RANLIB"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5817$as_echo "$RANLIB" >&6; }
d9898ee8 5818else
b0322a85 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5820$as_echo "no" >&6; }
d9898ee8 5821fi
5822
8d138742 5823
8d138742 5824fi
b0322a85
CE
5825if test -z "$ac_cv_prog_RANLIB"; then
5826 ac_ct_RANLIB=$RANLIB
5827 # Extract the first word of "ranlib", so it can be a program name with args.
5828set dummy ranlib; ac_word=$2
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5830$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5831if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742 5832 $as_echo_n "(cached) " >&6
d9898ee8 5833else
b0322a85
CE
5834 if test -n "$ac_ct_RANLIB"; then
5835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
d9898ee8 5836else
8d138742
CE
5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
b0322a85
CE
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844 ac_cv_prog_ac_ct_RANLIB="ranlib"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5846 break 2
5847 fi
5848done
b0322a85 5849 done
8d138742
CE
5850IFS=$as_save_IFS
5851
5852fi
5853fi
b0322a85
CE
5854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5855if test -n "$ac_ct_RANLIB"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5857$as_echo "$ac_ct_RANLIB" >&6; }
8d138742 5858else
b0322a85 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5860$as_echo "no" >&6; }
5861fi
5862
b0322a85
CE
5863 if test "x$ac_ct_RANLIB" = x; then
5864 RANLIB=":"
8d138742
CE
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867yes:)
b0322a85 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5870ac_tool_warned=yes ;;
5871esac
b0322a85 5872 RANLIB=$ac_ct_RANLIB
8d138742 5873 fi
b0322a85
CE
5874else
5875 RANLIB="$ac_cv_prog_RANLIB"
8d138742
CE
5876fi
5877
b0322a85 5878test -z "$RANLIB" && RANLIB=:
8d138742 5879
8d138742
CE
5880
5881
5882
5883
5884
b0322a85
CE
5885# Determine commands to create old-style static archives.
5886old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5887old_postinstall_cmds='chmod 644 $oldlib'
5888old_postuninstall_cmds=
8d138742 5889
b0322a85
CE
5890if test -n "$RANLIB"; then
5891 case $host_os in
5892 openbsd*)
5893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5894 ;;
5895 *)
5896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5897 ;;
5898 esac
5899 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8d138742 5900fi
8d138742 5901
b0322a85
CE
5902case $host_os in
5903 darwin*)
5904 lock_old_archive_extraction=yes ;;
5905 *)
5906 lock_old_archive_extraction=no ;;
5907esac
8d138742 5908
8d138742 5909
8d138742 5910
8d138742 5911
8d138742 5912
8d138742 5913
8d138742 5914
8d138742 5915
8d138742 5916
8d138742
CE
5917
5918
5919
5920
5921
5922
8d138742 5923
8d138742
CE
5924
5925
8d138742
CE
5926
5927
8d138742
CE
5928
5929
5930
5931
5932
d9898ee8 5933
d9898ee8 5934
d9898ee8 5935
d9898ee8 5936
d9898ee8 5937
d9898ee8 5938
d9898ee8 5939
8d138742
CE
5940
5941
8d138742
CE
5942
5943
5944
5945
5946
b0322a85
CE
5947# If no C compiler was specified, use CC.
5948LTCC=${LTCC-"$CC"}
8d138742 5949
b0322a85
CE
5950# If no C compiler flags were specified, use CFLAGS.
5951LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8d138742 5952
b0322a85
CE
5953# Allow CC to be a program name with arguments.
5954compiler=$CC
8d138742 5955
d9898ee8 5956
b0322a85
CE
5957# Check for command to grab the raw symbol name followed by C symbol from nm.
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5959$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5960if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742 5961 $as_echo_n "(cached) " >&6
d9898ee8 5962else
d9898ee8 5963
b0322a85
CE
5964# These are sane defaults that work on at least a few old systems.
5965# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d9898ee8 5966
b0322a85
CE
5967# Character class describing NM global symbol codes.
5968symcode='[BCDEGRST]'
dd184caf 5969
b0322a85
CE
5970# Regexp to match symbols that can be accessed directly from C.
5971sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d9898ee8 5972
b0322a85
CE
5973# Define system-specific variables.
5974case $host_os in
5975aix*)
5976 symcode='[BCDT]'
5977 ;;
5978cygwin* | mingw* | pw32* | cegcc*)
5979 symcode='[ABCDGISTW]'
5980 ;;
5981hpux*)
5982 if test "$host_cpu" = ia64; then
5983 symcode='[ABCDEGRST]'
5984 fi
5985 ;;
5986irix* | nonstopux*)
5987 symcode='[BCDEGRST]'
5988 ;;
5989osf*)
5990 symcode='[BCDEGQRST]'
5991 ;;
5992solaris*)
5993 symcode='[BDRT]'
5994 ;;
5995sco3.2v5*)
5996 symcode='[DT]'
5997 ;;
5998sysv4.2uw2*)
5999 symcode='[DT]'
6000 ;;
6001sysv5* | sco5v6* | unixware* | OpenUNIX*)
6002 symcode='[ABDT]'
6003 ;;
6004sysv4)
6005 symcode='[DFNSTU]'
6006 ;;
6007esac
d9898ee8 6008
b0322a85
CE
6009# If we're using GNU nm, then use its standard symbol codes.
6010case `$NM -V 2>&1` in
6011*GNU* | *'with BFD'*)
6012 symcode='[ABCDGIRSTW]' ;;
dd184caf 6013esac
d9898ee8 6014
b0322a85
CE
6015# Transform an extracted symbol line into a proper C declaration.
6016# Some systems (esp. on ia64) link data and code symbols differently,
6017# so use this general approach.
6018lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8d138742 6019
b0322a85
CE
6020# Transform an extracted symbol line into symbol name and symbol address
6021lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6022lt_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'"
8d138742 6023
b0322a85
CE
6024# Handle CRLF in mingw tool chain
6025opt_cr=
6026case $build_os in
6027mingw*)
6028 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6029 ;;
6030esac
8d138742 6031
b0322a85
CE
6032# Try without a prefix underscore, then with it.
6033for ac_symprfx in "" "_"; do
8d138742 6034
b0322a85
CE
6035 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6036 symxfrm="\\1 $ac_symprfx\\2 \\2"
8d138742 6037
b0322a85
CE
6038 # Write the raw and C identifiers.
6039 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6040 # Fake it for dumpbin and say T for any non-static function
6041 # and D for any global variable.
6042 # Also find C++ and __fastcall symbols from MSVC++,
6043 # which start with @ or ?.
6044 lt_cv_sys_global_symbol_pipe="$AWK '"\
6045" {last_section=section; section=\$ 3};"\
6046" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6047" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6048" \$ 0!~/External *\|/{next};"\
6049" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6050" {if(hide[section]) next};"\
6051" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6052" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6053" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6054" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6055" ' prfx=^$ac_symprfx"
6056 else
6057 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6058 fi
6059 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8d138742 6060
b0322a85
CE
6061 # Check to see that the pipe works correctly.
6062 pipe_works=no
8d138742 6063
b0322a85
CE
6064 rm -f conftest*
6065 cat > conftest.$ac_ext <<_LT_EOF
6066#ifdef __cplusplus
6067extern "C" {
6068#endif
6069char nm_test_var;
6070void nm_test_func(void);
6071void nm_test_func(void){}
6072#ifdef __cplusplus
6073}
6074#endif
6075int main(){nm_test_var='a';nm_test_func();return(0);}
6076_LT_EOF
8d138742 6077
b0322a85
CE
6078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6079 (eval $ac_compile) 2>&5
6080 ac_status=$?
6081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082 test $ac_status = 0; }; then
6083 # Now try to grab the symbols.
6084 nlist=conftest.nm
6085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6086 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6087 ac_status=$?
6088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089 test $ac_status = 0; } && test -s "$nlist"; then
6090 # Try sorting and uniquifying the output.
6091 if sort "$nlist" | uniq > "$nlist"T; then
6092 mv -f "$nlist"T "$nlist"
6093 else
6094 rm -f "$nlist"T
6095 fi
8d138742 6096
b0322a85
CE
6097 # Make sure that we snagged all the symbols we need.
6098 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6099 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6100 cat <<_LT_EOF > conftest.$ac_ext
6101/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6102#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6103/* DATA imports from DLLs on WIN32 con't be const, because runtime
6104 relocations are performed -- see ld's documentation on pseudo-relocs. */
6105# define LT_DLSYM_CONST
6106#elif defined(__osf__)
6107/* This system does not cope well with relocations in const data. */
6108# define LT_DLSYM_CONST
6109#else
6110# define LT_DLSYM_CONST const
6111#endif
8d138742 6112
b0322a85
CE
6113#ifdef __cplusplus
6114extern "C" {
6115#endif
8d138742 6116
b0322a85
CE
6117_LT_EOF
6118 # Now generate the symbol file.
6119 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8d138742 6120
b0322a85 6121 cat <<_LT_EOF >> conftest.$ac_ext
8d138742 6122
b0322a85
CE
6123/* The mapping between symbol names and symbols. */
6124LT_DLSYM_CONST struct {
6125 const char *name;
6126 void *address;
6127}
6128lt__PROGRAM__LTX_preloaded_symbols[] =
6129{
6130 { "@PROGRAM@", (void *) 0 },
6131_LT_EOF
6132 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6133 cat <<\_LT_EOF >> conftest.$ac_ext
6134 {0, (void *) 0}
6135};
8d138742 6136
b0322a85
CE
6137/* This works around a problem in FreeBSD linker */
6138#ifdef FREEBSD_WORKAROUND
6139static const void *lt_preloaded_setup() {
6140 return lt__PROGRAM__LTX_preloaded_symbols;
6141}
6142#endif
6143
6144#ifdef __cplusplus
6145}
6146#endif
6147_LT_EOF
6148 # Now try linking the two files.
6149 mv conftest.$ac_objext conftstm.$ac_objext
6150 lt_globsym_save_LIBS=$LIBS
6151 lt_globsym_save_CFLAGS=$CFLAGS
6152 LIBS="conftstm.$ac_objext"
6153 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6155 (eval $ac_link) 2>&5
6156 ac_status=$?
6157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6158 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6159 pipe_works=yes
6160 fi
6161 LIBS=$lt_globsym_save_LIBS
6162 CFLAGS=$lt_globsym_save_CFLAGS
6163 else
6164 echo "cannot find nm_test_func in $nlist" >&5
6165 fi
6166 else
6167 echo "cannot find nm_test_var in $nlist" >&5
6168 fi
6169 else
6170 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6171 fi
8d138742 6172 else
b0322a85
CE
6173 echo "$progname: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
8d138742 6175 fi
b0322a85 6176 rm -rf conftest* conftst*
8d138742 6177
b0322a85
CE
6178 # Do not use the global_symbol_pipe unless it works.
6179 if test "$pipe_works" = yes; then
6180 break
8d138742 6181 else
b0322a85 6182 lt_cv_sys_global_symbol_pipe=
8d138742 6183 fi
b0322a85 6184done
8d138742 6185
b0322a85 6186fi
8d138742 6187
b0322a85
CE
6188if test -z "$lt_cv_sys_global_symbol_pipe"; then
6189 lt_cv_sys_global_symbol_to_cdecl=
6190fi
6191if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6193$as_echo "failed" >&6; }
6194else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6196$as_echo "ok" >&6; }
6197fi
8d138742 6198
b0322a85
CE
6199# Response file support.
6200if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6201 nm_file_list_spec='@'
6202elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6203 nm_file_list_spec='@'
6204fi
8d138742 6205
8d138742 6206
8d138742 6207
8d138742 6208
8d138742 6209
8d138742 6210
8d138742 6211
8d138742 6212
8d138742 6213
8d138742 6214
8d138742 6215
8d138742 6216
8d138742 6217
8d138742
CE
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
d9898ee8 6230
b0322a85
CE
6231
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6233$as_echo_n "checking for sysroot... " >&6; }
6234
6235# Check whether --with-sysroot was given.
6236if test "${with_sysroot+set}" = set; then :
6237 withval=$with_sysroot;
d9898ee8 6238else
b0322a85 6239 with_sysroot=no
d9898ee8 6240fi
6241
dd184caf 6242
b0322a85
CE
6243lt_sysroot=
6244case ${with_sysroot} in #(
6245 yes)
6246 if test "$GCC" = yes; then
6247 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6248 fi
6249 ;; #(
6250 /*)
6251 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6252 ;; #(
6253 no|'')
6254 ;; #(
6255 *)
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6257$as_echo "${with_sysroot}" >&6; }
6258 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6259 ;;
6260esac
6261
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6263$as_echo "${lt_sysroot:-no}" >&6; }
6264
d9898ee8 6265
d9898ee8 6266
d9898ee8 6267
8d138742 6268
b0322a85
CE
6269# Check whether --enable-libtool-lock was given.
6270if test "${enable_libtool_lock+set}" = set; then :
6271 enableval=$enable_libtool_lock;
6272fi
8d138742 6273
b0322a85 6274test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8d138742 6275
b0322a85
CE
6276# Some flags need to be propagated to the compiler or linker for good
6277# libtool support.
6278case $host in
6279ia64-*-hpux*)
6280 # Find out which ABI we are using.
6281 echo 'int i;' > conftest.$ac_ext
6282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6283 (eval $ac_compile) 2>&5
6284 ac_status=$?
6285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6286 test $ac_status = 0; }; then
6287 case `/usr/bin/file conftest.$ac_objext` in
6288 *ELF-32*)
6289 HPUX_IA64_MODE="32"
6290 ;;
6291 *ELF-64*)
6292 HPUX_IA64_MODE="64"
6293 ;;
6294 esac
6295 fi
6296 rm -rf conftest*
6297 ;;
6298*-*-irix6*)
6299 # Find out which ABI we are using.
6300 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302 (eval $ac_compile) 2>&5
6303 ac_status=$?
6304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 if test "$lt_cv_prog_gnu_ld" = yes; then
6307 case `/usr/bin/file conftest.$ac_objext` in
6308 *32-bit*)
6309 LD="${LD-ld} -melf32bsmip"
6310 ;;
6311 *N32*)
6312 LD="${LD-ld} -melf32bmipn32"
6313 ;;
6314 *64-bit*)
6315 LD="${LD-ld} -melf64bmip"
6316 ;;
6317 esac
6318 else
6319 case `/usr/bin/file conftest.$ac_objext` in
6320 *32-bit*)
6321 LD="${LD-ld} -32"
6322 ;;
6323 *N32*)
6324 LD="${LD-ld} -n32"
6325 ;;
6326 *64-bit*)
6327 LD="${LD-ld} -64"
6328 ;;
6329 esac
6330 fi
6331 fi
6332 rm -rf conftest*
6333 ;;
8d138742 6334
b0322a85
CE
6335x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6336s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6337 # Find out which ABI we are using.
6338 echo 'int i;' > conftest.$ac_ext
6339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6340 (eval $ac_compile) 2>&5
6341 ac_status=$?
6342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6343 test $ac_status = 0; }; then
6344 case `/usr/bin/file conftest.o` in
6345 *32-bit*)
6346 case $host in
6347 x86_64-*kfreebsd*-gnu)
6348 LD="${LD-ld} -m elf_i386_fbsd"
6349 ;;
6350 x86_64-*linux*)
6351 LD="${LD-ld} -m elf_i386"
6352 ;;
6353 ppc64-*linux*|powerpc64-*linux*)
6354 LD="${LD-ld} -m elf32ppclinux"
6355 ;;
6356 s390x-*linux*)
6357 LD="${LD-ld} -m elf_s390"
6358 ;;
6359 sparc64-*linux*)
6360 LD="${LD-ld} -m elf32_sparc"
6361 ;;
6362 esac
6363 ;;
6364 *64-bit*)
6365 case $host in
6366 x86_64-*kfreebsd*-gnu)
6367 LD="${LD-ld} -m elf_x86_64_fbsd"
6368 ;;
6369 x86_64-*linux*)
6370 LD="${LD-ld} -m elf_x86_64"
6371 ;;
6372 ppc*-*linux*|powerpc*-*linux*)
6373 LD="${LD-ld} -m elf64ppc"
6374 ;;
6375 s390*-*linux*|s390*-*tpf*)
6376 LD="${LD-ld} -m elf64_s390"
6377 ;;
6378 sparc*-*linux*)
6379 LD="${LD-ld} -m elf64_sparc"
6380 ;;
6381 esac
6382 ;;
6383 esac
6384 fi
6385 rm -rf conftest*
6386 ;;
8d138742 6387
b0322a85
CE
6388*-*-sco3.2v5*)
6389 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6390 SAVE_CFLAGS="$CFLAGS"
6391 CFLAGS="$CFLAGS -belf"
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6393$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6394if ${lt_cv_cc_needs_belf+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396else
6397 ac_ext=c
6398ac_cpp='$CPP $CPPFLAGS'
6399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401ac_compiler_gnu=$ac_cv_c_compiler_gnu
8d138742 6402
b0322a85
CE
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h. */
8d138742 6405
b0322a85
CE
6406int
6407main ()
6408{
8d138742 6409
b0322a85
CE
6410 ;
6411 return 0;
6412}
6413_ACEOF
6414if ac_fn_c_try_link "$LINENO"; then :
6415 lt_cv_cc_needs_belf=yes
6416else
6417 lt_cv_cc_needs_belf=no
6418fi
6419rm -f core conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6421 ac_ext=c
6422ac_cpp='$CPP $CPPFLAGS'
6423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6425ac_compiler_gnu=$ac_cv_c_compiler_gnu
8d138742 6426
b0322a85
CE
6427fi
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6429$as_echo "$lt_cv_cc_needs_belf" >&6; }
6430 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6431 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6432 CFLAGS="$SAVE_CFLAGS"
6433 fi
6434 ;;
6435*-*solaris*)
6436 # Find out which ABI we are using.
6437 echo 'int i;' > conftest.$ac_ext
6438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6439 (eval $ac_compile) 2>&5
6440 ac_status=$?
6441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6442 test $ac_status = 0; }; then
6443 case `/usr/bin/file conftest.o` in
6444 *64-bit*)
6445 case $lt_cv_prog_gnu_ld in
6446 yes*)
6447 case $host in
6448 i?86-*-solaris*)
6449 LD="${LD-ld} -m elf_x86_64"
6450 ;;
6451 sparc*-*-solaris*)
6452 LD="${LD-ld} -m elf64_sparc"
6453 ;;
6454 esac
6455 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6456 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6457 LD="${LD-ld}_sol2"
6458 fi
6459 ;;
6460 *)
6461 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6462 LD="${LD-ld} -64"
6463 fi
6464 ;;
6465 esac
6466 ;;
6467 esac
6468 fi
6469 rm -rf conftest*
6470 ;;
6471esac
8d138742 6472
b0322a85 6473need_locks="$enable_libtool_lock"
8d138742
CE
6474
6475if test -n "$ac_tool_prefix"; then
b0322a85
CE
6476 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6477set dummy ${ac_tool_prefix}mt; ac_word=$2
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6479$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6480if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8d138742
CE
6481 $as_echo_n "(cached) " >&6
6482else
b0322a85
CE
6483 if test -n "$MANIFEST_TOOL"; then
6484 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
d9898ee8 6485else
6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
b0322a85
CE
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6495 break 2
6496 fi
6497done
b0322a85 6498 done
dd184caf 6499IFS=$as_save_IFS
d9898ee8 6500
6501fi
6502fi
b0322a85
CE
6503MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6504if test -n "$MANIFEST_TOOL"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6506$as_echo "$MANIFEST_TOOL" >&6; }
d9898ee8 6507else
b0322a85 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6509$as_echo "no" >&6; }
d9898ee8 6510fi
6511
dd184caf 6512
d9898ee8 6513fi
b0322a85
CE
6514if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6515 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6516 # Extract the first word of "mt", so it can be a program name with args.
6517set dummy mt; ac_word=$2
6518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6519$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6520if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8d138742 6521 $as_echo_n "(cached) " >&6
d9898ee8 6522else
b0322a85
CE
6523 if test -n "$ac_ct_MANIFEST_TOOL"; then
6524 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
d9898ee8 6525else
6526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in $PATH
6528do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
b0322a85
CE
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6535 break 2
6536 fi
6537done
b0322a85 6538 done
dd184caf 6539IFS=$as_save_IFS
d9898ee8 6540
d9898ee8 6541fi
6542fi
b0322a85
CE
6543ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6544if test -n "$ac_ct_MANIFEST_TOOL"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6546$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
d9898ee8 6547else
b0322a85 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6549$as_echo "no" >&6; }
d9898ee8 6550fi
6551
b0322a85
CE
6552 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6553 MANIFEST_TOOL=":"
dd184caf 6554 else
6555 case $cross_compiling:$ac_tool_warned in
6556yes:)
b0322a85 6557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6559ac_tool_warned=yes ;;
6560esac
b0322a85 6561 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
dd184caf 6562 fi
d9898ee8 6563else
b0322a85 6564 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
d9898ee8 6565fi
6566
b0322a85
CE
6567test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6569$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6570if ${lt_cv_path_mainfest_tool+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572else
6573 lt_cv_path_mainfest_tool=no
6574 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6575 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6576 cat conftest.err >&5
6577 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6578 lt_cv_path_mainfest_tool=yes
6579 fi
6580 rm -f conftest*
6581fi
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6583$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6584if test "x$lt_cv_path_mainfest_tool" != xyes; then
6585 MANIFEST_TOOL=:
6586fi
d9898ee8 6587
d9898ee8 6588
8d138742
CE
6589
6590
6591
6592
b0322a85
CE
6593 case $host_os in
6594 rhapsody* | darwin*)
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6597set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6599$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6600if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742
CE
6601 $as_echo_n "(cached) " >&6
6602else
b0322a85
CE
6603 if test -n "$DSYMUTIL"; then
6604 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8d138742
CE
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
b0322a85
CE
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6615 break 2
6616 fi
6617done
b0322a85 6618 done
8d138742
CE
6619IFS=$as_save_IFS
6620
6621fi
6622fi
b0322a85
CE
6623DSYMUTIL=$ac_cv_prog_DSYMUTIL
6624if test -n "$DSYMUTIL"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6626$as_echo "$DSYMUTIL" >&6; }
8d138742 6627else
b0322a85 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6629$as_echo "no" >&6; }
6630fi
6631
6632
6633fi
b0322a85
CE
6634if test -z "$ac_cv_prog_DSYMUTIL"; then
6635 ac_ct_DSYMUTIL=$DSYMUTIL
6636 # Extract the first word of "dsymutil", so it can be a program name with args.
6637set dummy dsymutil; ac_word=$2
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6639$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6640if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8d138742
CE
6641 $as_echo_n "(cached) " >&6
6642else
b0322a85
CE
6643 if test -n "$ac_ct_DSYMUTIL"; then
6644 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8d138742
CE
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
b0322a85
CE
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6655 break 2
6656 fi
6657done
b0322a85 6658 done
8d138742
CE
6659IFS=$as_save_IFS
6660
6661fi
6662fi
b0322a85
CE
6663ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6664if test -n "$ac_ct_DSYMUTIL"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6666$as_echo "$ac_ct_DSYMUTIL" >&6; }
8d138742 6667else
b0322a85 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6669$as_echo "no" >&6; }
6670fi
6671
b0322a85
CE
6672 if test "x$ac_ct_DSYMUTIL" = x; then
6673 DSYMUTIL=":"
8d138742
CE
6674 else
6675 case $cross_compiling:$ac_tool_warned in
6676yes:)
b0322a85 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679ac_tool_warned=yes ;;
6680esac
b0322a85 6681 DSYMUTIL=$ac_ct_DSYMUTIL
8d138742
CE
6682 fi
6683else
b0322a85 6684 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8d138742
CE
6685fi
6686
b0322a85
CE
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if ${ac_cv_prog_NMEDIT+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694else
6695 if test -n "$NMEDIT"; then
6696 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709done
6710 done
6711IFS=$as_save_IFS
8d138742 6712
b0322a85
CE
6713fi
6714fi
6715NMEDIT=$ac_cv_prog_NMEDIT
6716if test -n "$NMEDIT"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6718$as_echo "$NMEDIT" >&6; }
6719else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
8d138742 6723
d9898ee8 6724
b0322a85
CE
6725fi
6726if test -z "$ac_cv_prog_NMEDIT"; then
6727 ac_ct_NMEDIT=$NMEDIT
6728 # Extract the first word of "nmedit", so it can be a program name with args.
6729set dummy nmedit; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734else
6735 if test -n "$ac_ct_NMEDIT"; then
6736 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750 done
6751IFS=$as_save_IFS
d9898ee8 6752
b0322a85
CE
6753fi
6754fi
6755ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6756if test -n "$ac_ct_NMEDIT"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6758$as_echo "$ac_ct_NMEDIT" >&6; }
6759else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
d9898ee8 6762fi
6763
b0322a85
CE
6764 if test "x$ac_ct_NMEDIT" = x; then
6765 NMEDIT=":"
6766 else
6767 case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773 NMEDIT=$ac_ct_NMEDIT
6774 fi
6775else
6776 NMEDIT="$ac_cv_prog_NMEDIT"
6777fi
d9898ee8 6778
b0322a85
CE
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6781set dummy ${ac_tool_prefix}lipo; ac_word=$2
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783$as_echo_n "checking for $ac_word... " >&6; }
6784if ${ac_cv_prog_LIPO+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786else
6787 if test -n "$LIPO"; then
6788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6789else
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801done
6802 done
6803IFS=$as_save_IFS
d9898ee8 6804
b0322a85
CE
6805fi
6806fi
6807LIPO=$ac_cv_prog_LIPO
6808if test -n "$LIPO"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6810$as_echo "$LIPO" >&6; }
6811else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813$as_echo "no" >&6; }
6814fi
d9898ee8 6815
d9898ee8 6816
b0322a85
CE
6817fi
6818if test -z "$ac_cv_prog_LIPO"; then
6819 ac_ct_LIPO=$LIPO
6820 # Extract the first word of "lipo", so it can be a program name with args.
6821set dummy lipo; ac_word=$2
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823$as_echo_n "checking for $ac_word... " >&6; }
6824if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826else
6827 if test -n "$ac_ct_LIPO"; then
6828 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6829else
6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6837 ac_cv_prog_ac_ct_LIPO="lipo"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841done
6842 done
6843IFS=$as_save_IFS
d9898ee8 6844
b0322a85
CE
6845fi
6846fi
6847ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6848if test -n "$ac_ct_LIPO"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6850$as_echo "$ac_ct_LIPO" >&6; }
6851else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853$as_echo "no" >&6; }
6854fi
d9898ee8 6855
b0322a85
CE
6856 if test "x$ac_ct_LIPO" = x; then
6857 LIPO=":"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860yes:)
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863ac_tool_warned=yes ;;
6864esac
6865 LIPO=$ac_ct_LIPO
6866 fi
6867else
6868 LIPO="$ac_cv_prog_LIPO"
6869fi
d9898ee8 6870
b0322a85
CE
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6873set dummy ${ac_tool_prefix}otool; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if ${ac_cv_prog_OTOOL+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878else
6879 if test -n "$OTOOL"; then
6880 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894 done
6895IFS=$as_save_IFS
d9898ee8 6896
b0322a85
CE
6897fi
6898fi
6899OTOOL=$ac_cv_prog_OTOOL
6900if test -n "$OTOOL"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6902$as_echo "$OTOOL" >&6; }
6903else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
d9898ee8 6907
d9898ee8 6908
b0322a85
CE
6909fi
6910if test -z "$ac_cv_prog_OTOOL"; then
6911 ac_ct_OTOOL=$OTOOL
6912 # Extract the first word of "otool", so it can be a program name with args.
6913set dummy otool; ac_word=$2
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915$as_echo_n "checking for $ac_word... " >&6; }
6916if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918else
6919 if test -n "$ac_ct_OTOOL"; then
6920 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_OTOOL="otool"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934 done
6935IFS=$as_save_IFS
d9898ee8 6936
b0322a85
CE
6937fi
6938fi
6939ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6940if test -n "$ac_ct_OTOOL"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6942$as_echo "$ac_ct_OTOOL" >&6; }
6943else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945$as_echo "no" >&6; }
6946fi
d9898ee8 6947
b0322a85
CE
6948 if test "x$ac_ct_OTOOL" = x; then
6949 OTOOL=":"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952yes:)
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955ac_tool_warned=yes ;;
6956esac
6957 OTOOL=$ac_ct_OTOOL
6958 fi
6959else
6960 OTOOL="$ac_cv_prog_OTOOL"
6961fi
d9898ee8 6962
b0322a85
CE
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6965set dummy ${ac_tool_prefix}otool64; ac_word=$2
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967$as_echo_n "checking for $ac_word... " >&6; }
6968if ${ac_cv_prog_OTOOL64+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970else
6971 if test -n "$OTOOL64"; then
6972 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6981 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985done
6986 done
6987IFS=$as_save_IFS
d9898ee8 6988
b0322a85
CE
6989fi
6990fi
6991OTOOL64=$ac_cv_prog_OTOOL64
6992if test -n "$OTOOL64"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6994$as_echo "$OTOOL64" >&6; }
6995else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997$as_echo "no" >&6; }
6998fi
d9898ee8 6999
7000
b0322a85
CE
7001fi
7002if test -z "$ac_cv_prog_OTOOL64"; then
7003 ac_ct_OTOOL64=$OTOOL64
7004 # Extract the first word of "otool64", so it can be a program name with args.
7005set dummy otool64; ac_word=$2
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007$as_echo_n "checking for $ac_word... " >&6; }
7008if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010else
7011 if test -n "$ac_ct_OTOOL64"; then
7012 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021 ac_cv_prog_ac_ct_OTOOL64="otool64"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025done
7026 done
7027IFS=$as_save_IFS
dd184caf 7028
b0322a85
CE
7029fi
7030fi
7031ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7032if test -n "$ac_ct_OTOOL64"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7034$as_echo "$ac_ct_OTOOL64" >&6; }
7035else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037$as_echo "no" >&6; }
7038fi
d9898ee8 7039
b0322a85
CE
7040 if test "x$ac_ct_OTOOL64" = x; then
7041 OTOOL64=":"
7042 else
7043 case $cross_compiling:$ac_tool_warned in
7044yes:)
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047ac_tool_warned=yes ;;
7048esac
7049 OTOOL64=$ac_ct_OTOOL64
7050 fi
7051else
7052 OTOOL64="$ac_cv_prog_OTOOL64"
7053fi
d9898ee8 7054
7055
d9898ee8 7056
d9898ee8 7057
d9898ee8 7058
8d138742
CE
7059
7060
7061
7062
7063
7064
7065
7066
d9898ee8 7067
7068
d9898ee8 7069
d9898ee8 7070
d9898ee8 7071
7072
d9898ee8 7073
d9898ee8 7074
7075
7076
d9898ee8 7077
d9898ee8 7078
7079
d9898ee8 7080
b0322a85
CE
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7082$as_echo_n "checking for -single_module linker flag... " >&6; }
7083if ${lt_cv_apple_cc_single_mod+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085else
7086 lt_cv_apple_cc_single_mod=no
7087 if test -z "${LT_MULTI_MODULE}"; then
7088 # By default we will add the -single_module flag. You can override
7089 # by either setting the environment variable LT_MULTI_MODULE
7090 # non-empty at configure time, or by adding -multi_module to the
7091 # link flags.
7092 rm -rf libconftest.dylib*
7093 echo "int foo(void){return 1;}" > conftest.c
7094 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7095-dynamiclib -Wl,-single_module conftest.c" >&5
7096 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7097 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7098 _lt_result=$?
7099 # If there is a non-empty error log, and "single_module"
7100 # appears in it, assume the flag caused a linker warning
7101 if test -s conftest.err && $GREP single_module conftest.err; then
7102 cat conftest.err >&5
7103 # Otherwise, if the output was created with a 0 exit code from
7104 # the compiler, it worked.
7105 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7106 lt_cv_apple_cc_single_mod=yes
7107 else
7108 cat conftest.err >&5
7109 fi
7110 rm -rf libconftest.dylib*
7111 rm -f conftest.*
7112 fi
7113fi
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7115$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
d9898ee8 7116
b0322a85
CE
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7118$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7119if ${lt_cv_ld_exported_symbols_list+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121else
7122 lt_cv_ld_exported_symbols_list=no
7123 save_LDFLAGS=$LDFLAGS
7124 echo "_main" > conftest.sym
7125 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127/* end confdefs.h. */
d9898ee8 7128
b0322a85
CE
7129int
7130main ()
7131{
d9898ee8 7132
b0322a85
CE
7133 ;
7134 return 0;
7135}
7136_ACEOF
7137if ac_fn_c_try_link "$LINENO"; then :
7138 lt_cv_ld_exported_symbols_list=yes
7139else
7140 lt_cv_ld_exported_symbols_list=no
7141fi
7142rm -f core conftest.err conftest.$ac_objext \
7143 conftest$ac_exeext conftest.$ac_ext
7144 LDFLAGS="$save_LDFLAGS"
d9898ee8 7145
b0322a85
CE
7146fi
7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7148$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
d9898ee8 7149
b0322a85
CE
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7151$as_echo_n "checking for -force_load linker flag... " >&6; }
7152if ${lt_cv_ld_force_load+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154else
7155 lt_cv_ld_force_load=no
7156 cat > conftest.c << _LT_EOF
7157int forced_loaded() { return 2;}
8d138742 7158_LT_EOF
b0322a85
CE
7159 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7160 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7161 echo "$AR cru libconftest.a conftest.o" >&5
7162 $AR cru libconftest.a conftest.o 2>&5
7163 echo "$RANLIB libconftest.a" >&5
7164 $RANLIB libconftest.a 2>&5
7165 cat > conftest.c << _LT_EOF
7166int main() { return 0;}
7167_LT_EOF
7168 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7169 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7170 _lt_result=$?
7171 if test -s conftest.err && $GREP force_load conftest.err; then
7172 cat conftest.err >&5
7173 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7174 lt_cv_ld_force_load=yes
8d138742 7175 else
b0322a85 7176 cat conftest.err >&5
d9898ee8 7177 fi
b0322a85
CE
7178 rm -f conftest.err libconftest.a conftest conftest.c
7179 rm -rf conftest.dSYM
d9898ee8 7180
b0322a85
CE
7181fi
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7183$as_echo "$lt_cv_ld_force_load" >&6; }
7184 case $host_os in
7185 rhapsody* | darwin1.[012])
7186 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7187 darwin1.*)
7188 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7189 darwin*) # darwin 5.x on
7190 # if running on 10.5 or later, the deployment target defaults
7191 # to the OS version, if on x86, and 10.4, the deployment
7192 # target defaults to 10.4. Don't you love it?
7193 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7194 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7195 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7196 10.[012]*)
7197 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7198 10.*)
7199 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7200 esac
7201 ;;
7202 esac
7203 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7204 _lt_dar_single_mod='$single_module'
7205 fi
7206 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7207 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8d138742 7208 else
b0322a85 7209 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8d138742 7210 fi
b0322a85
CE
7211 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7212 _lt_dsymutil='~$DSYMUTIL $lib || :'
7213 else
7214 _lt_dsymutil=
7215 fi
7216 ;;
7217 esac
d9898ee8 7218
b0322a85
CE
7219ac_ext=c
7220ac_cpp='$CPP $CPPFLAGS'
7221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223ac_compiler_gnu=$ac_cv_c_compiler_gnu
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7225$as_echo_n "checking how to run the C preprocessor... " >&6; }
7226# On Suns, sometimes $CPP names a directory.
7227if test -n "$CPP" && test -d "$CPP"; then
7228 CPP=
8d138742 7229fi
b0322a85
CE
7230if test -z "$CPP"; then
7231 if ${ac_cv_prog_CPP+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233else
7234 # Double quotes because CPP needs to be expanded
7235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7236 do
7237 ac_preproc_ok=false
7238for ac_c_preproc_warn_flag in '' yes
7239do
7240 # Use a header file that comes with gcc, so configuring glibc
7241 # with a fresh cross-compiler works.
7242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7243 # <limits.h> exists even on freestanding compilers.
7244 # On the NeXT, cc -E runs the code through the compiler's parser,
7245 # not just through cpp. "Syntax error" is here to catch this case.
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247/* end confdefs.h. */
7248#ifdef __STDC__
7249# include <limits.h>
7250#else
7251# include <assert.h>
7252#endif
7253 Syntax error
7254_ACEOF
7255if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7256
8d138742 7257else
b0322a85
CE
7258 # Broken: fails on valid input.
7259continue
8d138742 7260fi
b0322a85 7261rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7262
b0322a85
CE
7263 # OK, works on sane cases. Now check whether nonexistent headers
7264 # can be detected and how.
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h. */
7267#include <ac_nonexistent.h>
7268_ACEOF
7269if ac_fn_c_try_cpp "$LINENO"; then :
7270 # Broken: success on invalid input.
7271continue
7272else
7273 # Passes both tests.
7274ac_preproc_ok=:
7275break
7276fi
7277rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7278
b0322a85
CE
7279done
7280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7281rm -f conftest.i conftest.err conftest.$ac_ext
7282if $ac_preproc_ok; then :
7283 break
7284fi
d9898ee8 7285
b0322a85
CE
7286 done
7287 ac_cv_prog_CPP=$CPP
d9898ee8 7288
b0322a85
CE
7289fi
7290 CPP=$ac_cv_prog_CPP
7291else
7292 ac_cv_prog_CPP=$CPP
7293fi
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7295$as_echo "$CPP" >&6; }
7296ac_preproc_ok=false
7297for ac_c_preproc_warn_flag in '' yes
7298do
7299 # Use a header file that comes with gcc, so configuring glibc
7300 # with a fresh cross-compiler works.
7301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7302 # <limits.h> exists even on freestanding compilers.
7303 # On the NeXT, cc -E runs the code through the compiler's parser,
7304 # not just through cpp. "Syntax error" is here to catch this case.
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h. */
7307#ifdef __STDC__
7308# include <limits.h>
7309#else
7310# include <assert.h>
7311#endif
7312 Syntax error
7313_ACEOF
7314if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7315
b0322a85
CE
7316else
7317 # Broken: fails on valid input.
7318continue
7319fi
7320rm -f conftest.err conftest.i conftest.$ac_ext
ac40fd9e 7321
b0322a85
CE
7322 # OK, works on sane cases. Now check whether nonexistent headers
7323 # can be detected and how.
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h. */
7326#include <ac_nonexistent.h>
7327_ACEOF
7328if ac_fn_c_try_cpp "$LINENO"; then :
7329 # Broken: success on invalid input.
7330continue
7331else
7332 # Passes both tests.
7333ac_preproc_ok=:
7334break
7335fi
7336rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7337
b0322a85
CE
7338done
7339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7340rm -f conftest.i conftest.err conftest.$ac_ext
7341if $ac_preproc_ok; then :
d9898ee8 7342
b0322a85
CE
7343else
7344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7346as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7347See \`config.log' for more details" "$LINENO" 5; }
7348fi
d9898ee8 7349
b0322a85
CE
7350ac_ext=c
7351ac_cpp='$CPP $CPPFLAGS'
7352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7355
d9898ee8 7356
b0322a85
CE
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7358$as_echo_n "checking for ANSI C header files... " >&6; }
7359if ${ac_cv_header_stdc+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361else
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363/* end confdefs.h. */
7364#include <stdlib.h>
7365#include <stdarg.h>
7366#include <string.h>
7367#include <float.h>
d9898ee8 7368
b0322a85
CE
7369int
7370main ()
7371{
d9898ee8 7372
b0322a85
CE
7373 ;
7374 return 0;
7375}
7376_ACEOF
7377if ac_fn_c_try_compile "$LINENO"; then :
7378 ac_cv_header_stdc=yes
7379else
7380 ac_cv_header_stdc=no
7381fi
7382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7383
b0322a85
CE
7384if test $ac_cv_header_stdc = yes; then
7385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h. */
7388#include <string.h>
d9898ee8 7389
b0322a85
CE
7390_ACEOF
7391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7392 $EGREP "memchr" >/dev/null 2>&1; then :
d9898ee8 7393
b0322a85
CE
7394else
7395 ac_cv_header_stdc=no
7396fi
7397rm -f conftest*
d9898ee8 7398
b0322a85 7399fi
d9898ee8 7400
b0322a85
CE
7401if test $ac_cv_header_stdc = yes; then
7402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h. */
7405#include <stdlib.h>
d9898ee8 7406
b0322a85
CE
7407_ACEOF
7408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7409 $EGREP "free" >/dev/null 2>&1; then :
d9898ee8 7410
b0322a85
CE
7411else
7412 ac_cv_header_stdc=no
d9898ee8 7413fi
b0322a85 7414rm -f conftest*
d9898ee8 7415
b0322a85 7416fi
d9898ee8 7417
b0322a85
CE
7418if test $ac_cv_header_stdc = yes; then
7419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7420 if test "$cross_compiling" = yes; then :
7421 :
d9898ee8 7422else
b0322a85 7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 7424/* end confdefs.h. */
b0322a85
CE
7425#include <ctype.h>
7426#include <stdlib.h>
7427#if ((' ' & 0x0FF) == 0x020)
7428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7430#else
7431# define ISLOWER(c) \
7432 (('a' <= (c) && (c) <= 'i') \
7433 || ('j' <= (c) && (c) <= 'r') \
7434 || ('s' <= (c) && (c) <= 'z'))
7435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7436#endif
d9898ee8 7437
b0322a85 7438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8d138742
CE
7439int
7440main ()
7441{
b0322a85
CE
7442 int i;
7443 for (i = 0; i < 256; i++)
7444 if (XOR (islower (i), ISLOWER (i))
7445 || toupper (i) != TOUPPER (i))
7446 return 2;
8d138742
CE
7447 return 0;
7448}
7449_ACEOF
b0322a85
CE
7450if ac_fn_c_try_run "$LINENO"; then :
7451
8d138742 7452else
b0322a85
CE
7453 ac_cv_header_stdc=no
7454fi
7455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7456 conftest.$ac_objext conftest.beam conftest.$ac_ext
7457fi
d9898ee8 7458
8d138742 7459fi
b0322a85
CE
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7462$as_echo "$ac_cv_header_stdc" >&6; }
7463if test $ac_cv_header_stdc = yes; then
d9898ee8 7464
b0322a85 7465$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8d138742
CE
7466
7467fi
d9898ee8 7468
b0322a85
CE
7469# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7470for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7471 inttypes.h stdint.h unistd.h
7472do :
7473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7474ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7475"
7476if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7477 cat >>confdefs.h <<_ACEOF
7478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7479_ACEOF
d9898ee8 7480
b0322a85 7481fi
d9898ee8 7482
8d138742 7483done
d9898ee8 7484
d9898ee8 7485
b0322a85
CE
7486for ac_header in dlfcn.h
7487do :
7488 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7489"
7490if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7491 cat >>confdefs.h <<_ACEOF
7492#define HAVE_DLFCN_H 1
7493_ACEOF
d9898ee8 7494
8d138742 7495fi
b0322a85 7496
8d138742 7497done
d9898ee8 7498
d9898ee8 7499
d9898ee8 7500
d9898ee8 7501
d9898ee8 7502
b0322a85 7503# Set options
d9898ee8 7504
d9898ee8 7505
d9898ee8 7506
b0322a85 7507 enable_dlopen=no
d9898ee8 7508
d9898ee8 7509
b0322a85
CE
7510 enable_win32_dll=no
7511
7512
7513 # Check whether --enable-shared was given.
7514if test "${enable_shared+set}" = set; then :
7515 enableval=$enable_shared; p=${PACKAGE-default}
7516 case $enableval in
7517 yes) enable_shared=yes ;;
7518 no) enable_shared=no ;;
7519 *)
7520 enable_shared=no
7521 # Look at the argument we got. We use all the common list separators.
7522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7523 for pkg in $enableval; do
7524 IFS="$lt_save_ifs"
7525 if test "X$pkg" = "X$p"; then
7526 enable_shared=yes
7527 fi
7528 done
7529 IFS="$lt_save_ifs"
7530 ;;
7531 esac
8d138742 7532else
b0322a85 7533 enable_shared=yes
8d138742 7534fi
d9898ee8 7535
d9898ee8 7536
d9898ee8 7537
d9898ee8 7538
d9898ee8 7539
d9898ee8 7540
d9898ee8 7541
d9898ee8 7542
d9898ee8 7543
b0322a85
CE
7544 # Check whether --enable-static was given.
7545if test "${enable_static+set}" = set; then :
7546 enableval=$enable_static; p=${PACKAGE-default}
7547 case $enableval in
7548 yes) enable_static=yes ;;
7549 no) enable_static=no ;;
7550 *)
7551 enable_static=no
7552 # Look at the argument we got. We use all the common list separators.
7553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7554 for pkg in $enableval; do
7555 IFS="$lt_save_ifs"
7556 if test "X$pkg" = "X$p"; then
7557 enable_static=yes
7558 fi
7559 done
7560 IFS="$lt_save_ifs"
7561 ;;
7562 esac
8d138742 7563else
b0322a85 7564 enable_static=yes
8d138742 7565fi
d9898ee8 7566
8d138742 7567
8d138742 7568
8d138742
CE
7569
7570
8d138742 7571
b0322a85
CE
7572
7573
7574
7575
7576# Check whether --with-pic was given.
7577if test "${with_pic+set}" = set; then :
7578 withval=$with_pic; lt_p=${PACKAGE-default}
7579 case $withval in
7580 yes|no) pic_mode=$withval ;;
7581 *)
7582 pic_mode=default
7583 # Look at the argument we got. We use all the common list separators.
7584 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7585 for lt_pkg in $withval; do
7586 IFS="$lt_save_ifs"
7587 if test "X$lt_pkg" = "X$lt_p"; then
7588 pic_mode=yes
7589 fi
7590 done
7591 IFS="$lt_save_ifs"
7592 ;;
7593 esac
8d138742 7594else
b0322a85 7595 pic_mode=default
8d138742
CE
7596fi
7597
b0322a85
CE
7598
7599test -z "$pic_mode" && pic_mode=default
7600
7601
7602
7603
7604
7605
7606
7607 # Check whether --enable-fast-install was given.
7608if test "${enable_fast_install+set}" = set; then :
7609 enableval=$enable_fast_install; p=${PACKAGE-default}
7610 case $enableval in
7611 yes) enable_fast_install=yes ;;
7612 no) enable_fast_install=no ;;
7613 *)
7614 enable_fast_install=no
7615 # Look at the argument we got. We use all the common list separators.
7616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7617 for pkg in $enableval; do
7618 IFS="$lt_save_ifs"
7619 if test "X$pkg" = "X$p"; then
7620 enable_fast_install=yes
7621 fi
7622 done
7623 IFS="$lt_save_ifs"
7624 ;;
7625 esac
8d138742 7626else
b0322a85 7627 enable_fast_install=yes
8d138742
CE
7628fi
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
b0322a85
CE
7640# This can be used to rebuild libtool when needed
7641LIBTOOL_DEPS="$ltmain"
8d138742 7642
b0322a85
CE
7643# Always use our own libtool.
7644LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8d138742
CE
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
d9898ee8 7660
d9898ee8 7661
d9898ee8 7662
dd184caf 7663
d9898ee8 7664
8d138742
CE
7665
7666
d9898ee8 7667
d9898ee8 7668
dd184caf 7669
dd184caf 7670
d9898ee8 7671
d9898ee8 7672
d9898ee8 7673
d9898ee8 7674
b0322a85 7675test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7676
d9898ee8 7677
d9898ee8 7678
d9898ee8 7679
d9898ee8 7680
d9898ee8 7681
d9898ee8 7682
d9898ee8 7683
d9898ee8 7684
d9898ee8 7685
d9898ee8 7686
d9898ee8 7687
d9898ee8 7688
d9898ee8 7689
b0322a85
CE
7690if test -n "${ZSH_VERSION+set}" ; then
7691 setopt NO_GLOB_SUBST
8d138742 7692fi
b0322a85
CE
7693
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7695$as_echo_n "checking for objdir... " >&6; }
7696if ${lt_cv_objdir+:} false; then :
8d138742
CE
7697 $as_echo_n "(cached) " >&6
7698else
b0322a85
CE
7699 rm -f .libs 2>/dev/null
7700mkdir .libs 2>/dev/null
7701if test -d .libs; then
7702 lt_cv_objdir=.libs
7703else
7704 # MS-DOS does not allow filenames that begin with a dot.
7705 lt_cv_objdir=_libs
7706fi
7707rmdir .libs 2>/dev/null
7708fi
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7710$as_echo "$lt_cv_objdir" >&6; }
7711objdir=$lt_cv_objdir
d9898ee8 7712
d9898ee8 7713
d9898ee8 7714
d9898ee8 7715
d9898ee8 7716
b0322a85
CE
7717cat >>confdefs.h <<_ACEOF
7718#define LT_OBJDIR "$lt_cv_objdir/"
8d138742 7719_ACEOF
d9898ee8 7720
d9898ee8 7721
d9898ee8 7722
b0322a85
CE
7723
7724case $host_os in
7725aix3*)
7726 # AIX sometimes has problems with the GCC collect2 program. For some
7727 # reason, if we set the COLLECT_NAMES environment variable, the problems
7728 # vanish in a puff of smoke.
7729 if test "X${COLLECT_NAMES+set}" != Xset; then
7730 COLLECT_NAMES=
7731 export COLLECT_NAMES
7732 fi
7733 ;;
8d138742 7734esac
d9898ee8 7735
b0322a85
CE
7736# Global variables:
7737ofile=libtool
7738can_build_shared=yes
d9898ee8 7739
b0322a85
CE
7740# All known linkers require a `.a' archive for static linking (except MSVC,
7741# which needs '.lib').
7742libext=a
d9898ee8 7743
b0322a85 7744with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 7745
b0322a85
CE
7746old_CC="$CC"
7747old_CFLAGS="$CFLAGS"
d9898ee8 7748
b0322a85
CE
7749# Set sane defaults for various variables
7750test -z "$CC" && CC=cc
7751test -z "$LTCC" && LTCC=$CC
7752test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7753test -z "$LD" && LD=ld
7754test -z "$ac_objext" && ac_objext=o
d9898ee8 7755
b0322a85
CE
7756for cc_temp in $compiler""; do
7757 case $cc_temp in
7758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7760 \-*) ;;
7761 *) break;;
7762 esac
7763done
7764cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d9898ee8 7765
b0322a85
CE
7766
7767# Only perform the check for file, if the check method requires it
7768test -z "$MAGIC_CMD" && MAGIC_CMD=file
7769case $deplibs_check_method in
7770file_magic*)
7771 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7773$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7774if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
7775 $as_echo_n "(cached) " >&6
7776else
b0322a85
CE
7777 case $MAGIC_CMD in
7778[\\/*] | ?:[\\/]*)
7779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7780 ;;
7781*)
7782 lt_save_MAGIC_CMD="$MAGIC_CMD"
7783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7785 for ac_dir in $ac_dummy; do
7786 IFS="$lt_save_ifs"
7787 test -z "$ac_dir" && ac_dir=.
7788 if test -f $ac_dir/${ac_tool_prefix}file; then
7789 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7790 if test -n "$file_magic_test_file"; then
7791 case $deplibs_check_method in
7792 "file_magic "*)
7793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7796 $EGREP "$file_magic_regex" > /dev/null; then
7797 :
7798 else
7799 cat <<_LT_EOF 1>&2
d9898ee8 7800
b0322a85
CE
7801*** Warning: the command libtool uses to detect shared libraries,
7802*** $file_magic_cmd, produces output that libtool cannot recognize.
7803*** The result is that libtool may fail to recognize shared libraries
7804*** as such. This will affect the creation of libtool libraries that
7805*** depend on shared libraries, but programs linked with such libtool
7806*** libraries will work regardless of this problem. Nevertheless, you
7807*** may want to report the problem to your system manager and/or to
7808*** bug-libtool@gnu.org
8d138742 7809
b0322a85
CE
7810_LT_EOF
7811 fi ;;
7812 esac
8d138742 7813 fi
b0322a85 7814 break
8d138742
CE
7815 fi
7816 done
b0322a85
CE
7817 IFS="$lt_save_ifs"
7818 MAGIC_CMD="$lt_save_MAGIC_CMD"
7819 ;;
7820esac
7821fi
d9898ee8 7822
b0322a85
CE
7823MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7824if test -n "$MAGIC_CMD"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7826$as_echo "$MAGIC_CMD" >&6; }
8d138742 7827else
b0322a85
CE
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829$as_echo "no" >&6; }
8d138742 7830fi
d9898ee8 7831
d9898ee8 7832
d9898ee8 7833
ac40fd9e 7834
b0322a85
CE
7835
7836if test -z "$lt_cv_path_MAGIC_CMD"; then
7837 if test -n "$ac_tool_prefix"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7839$as_echo_n "checking for file... " >&6; }
7840if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742 7841 $as_echo_n "(cached) " >&6
d9898ee8 7842else
b0322a85
CE
7843 case $MAGIC_CMD in
7844[\\/*] | ?:[\\/]*)
7845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7846 ;;
7847*)
7848 lt_save_MAGIC_CMD="$MAGIC_CMD"
7849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7851 for ac_dir in $ac_dummy; do
7852 IFS="$lt_save_ifs"
7853 test -z "$ac_dir" && ac_dir=.
7854 if test -f $ac_dir/file; then
7855 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7856 if test -n "$file_magic_test_file"; then
7857 case $deplibs_check_method in
7858 "file_magic "*)
7859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7862 $EGREP "$file_magic_regex" > /dev/null; then
7863 :
7864 else
7865 cat <<_LT_EOF 1>&2
d9898ee8 7866
b0322a85
CE
7867*** Warning: the command libtool uses to detect shared libraries,
7868*** $file_magic_cmd, produces output that libtool cannot recognize.
7869*** The result is that libtool may fail to recognize shared libraries
7870*** as such. This will affect the creation of libtool libraries that
7871*** depend on shared libraries, but programs linked with such libtool
7872*** libraries will work regardless of this problem. Nevertheless, you
7873*** may want to report the problem to your system manager and/or to
7874*** bug-libtool@gnu.org
d9898ee8 7875
b0322a85
CE
7876_LT_EOF
7877 fi ;;
7878 esac
7879 fi
7880 break
7881 fi
7882 done
7883 IFS="$lt_save_ifs"
7884 MAGIC_CMD="$lt_save_MAGIC_CMD"
7885 ;;
8d138742 7886esac
8d138742 7887fi
d9898ee8 7888
b0322a85
CE
7889MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7890if test -n "$MAGIC_CMD"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7892$as_echo "$MAGIC_CMD" >&6; }
8d138742 7893else
b0322a85
CE
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
8d138742 7896fi
d9898ee8 7897
ac40fd9e 7898
b0322a85
CE
7899 else
7900 MAGIC_CMD=:
7901 fi
8d138742 7902fi
d9898ee8 7903
b0322a85
CE
7904 fi
7905 ;;
7906esac
d9898ee8 7907
b0322a85 7908# Use C for the default configuration in the libtool script
d9898ee8 7909
b0322a85 7910lt_save_CC="$CC"
8d138742
CE
7911ac_ext=c
7912ac_cpp='$CPP $CPPFLAGS'
7913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7916
d9898ee8 7917
b0322a85
CE
7918# Source file extension for C test sources.
7919ac_ext=c
d9898ee8 7920
b0322a85
CE
7921# Object file extension for compiled C test sources.
7922objext=o
7923objext=$objext
d9898ee8 7924
b0322a85
CE
7925# Code to be used in simple compile tests
7926lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7927
b0322a85
CE
7928# Code to be used in simple link tests
7929lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7930
d9898ee8 7931
d9898ee8 7932
d9898ee8 7933
d9898ee8 7934
d9898ee8 7935
d9898ee8 7936
b0322a85
CE
7937# If no C compiler was specified, use CC.
7938LTCC=${LTCC-"$CC"}
ac40fd9e 7939
b0322a85
CE
7940# If no C compiler flags were specified, use CFLAGS.
7941LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 7942
b0322a85
CE
7943# Allow CC to be a program name with arguments.
7944compiler=$CC
d9898ee8 7945
b0322a85
CE
7946# Save the default compiler, since it gets overwritten when the other
7947# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7948compiler_DEFAULT=$CC
d9898ee8 7949
b0322a85
CE
7950# save warnings/boilerplate of simple test code
7951ac_outfile=conftest.$ac_objext
7952echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7953eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7954_lt_compiler_boilerplate=`cat conftest.err`
7955$RM conftest*
d9898ee8 7956
b0322a85
CE
7957ac_outfile=conftest.$ac_objext
7958echo "$lt_simple_link_test_code" >conftest.$ac_ext
7959eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7960_lt_linker_boilerplate=`cat conftest.err`
7961$RM -r conftest*
d9898ee8 7962
d9898ee8 7963
b0322a85 7964if test -n "$compiler"; then
d9898ee8 7965
b0322a85 7966lt_prog_compiler_no_builtin_flag=
d9898ee8 7967
b0322a85
CE
7968if test "$GCC" = yes; then
7969 case $cc_basename in
7970 nvcc*)
7971 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7972 *)
7973 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7974 esac
d9898ee8 7975
b0322a85
CE
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7977$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7978if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7979 $as_echo_n "(cached) " >&6
d9898ee8 7980else
b0322a85
CE
7981 lt_cv_prog_compiler_rtti_exceptions=no
7982 ac_outfile=conftest.$ac_objext
7983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7984 lt_compiler_flag="-fno-rtti -fno-exceptions"
7985 # Insert the option either (1) after the last *FLAGS variable, or
7986 # (2) before a word containing "conftest.", or (3) at the end.
7987 # Note that $ac_compile itself does not contain backslashes and begins
7988 # with a dollar sign (not a hyphen), so the echo should work correctly.
7989 # The option is referenced via a variable to avoid confusing sed.
7990 lt_compile=`echo "$ac_compile" | $SED \
7991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7993 -e 's:$: $lt_compiler_flag:'`
7994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7995 (eval "$lt_compile" 2>conftest.err)
7996 ac_status=$?
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 if (exit $ac_status) && test -s "$ac_outfile"; then
8000 # The compiler can only warn and ignore the option if not recognized
8001 # So say no if there are warnings other than the usual output.
8002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8005 lt_cv_prog_compiler_rtti_exceptions=yes
8006 fi
8007 fi
8008 $RM conftest*
d9898ee8 8009
b0322a85
CE
8010fi
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8012$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
dd184caf 8013
b0322a85
CE
8014if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8015 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
d9898ee8 8016else
b0322a85 8017 :
8d138742 8018fi
d9898ee8 8019
b0322a85 8020fi
d9898ee8 8021
d9898ee8 8022
d9898ee8 8023
d9898ee8 8024
d9898ee8 8025
d9898ee8 8026
b0322a85
CE
8027 lt_prog_compiler_wl=
8028lt_prog_compiler_pic=
8029lt_prog_compiler_static=
d9898ee8 8030
d9898ee8 8031
b0322a85
CE
8032 if test "$GCC" = yes; then
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_static='-static'
d9898ee8 8035
b0322a85
CE
8036 case $host_os in
8037 aix*)
8038 # All AIX code is PIC.
8039 if test "$host_cpu" = ia64; then
8040 # AIX 5 now supports IA64 processor
8041 lt_prog_compiler_static='-Bstatic'
8042 fi
8043 ;;
d9898ee8 8044
b0322a85
CE
8045 amigaos*)
8046 case $host_cpu in
8047 powerpc)
8048 # see comment about AmigaOS4 .so support
8049 lt_prog_compiler_pic='-fPIC'
8050 ;;
8051 m68k)
8052 # FIXME: we need at least 68020 code to build shared libraries, but
8053 # adding the `-m68020' flag to GCC prevents building anything better,
8054 # like `-m68040'.
8055 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8056 ;;
8057 esac
8058 ;;
d9898ee8 8059
b0322a85
CE
8060 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8061 # PIC is the default for these OSes.
8062 ;;
d9898ee8 8063
b0322a85
CE
8064 mingw* | cygwin* | pw32* | os2* | cegcc*)
8065 # This hack is so that the source file can tell whether it is being
8066 # built for inclusion in a dll (and should export symbols for example).
8067 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8068 # (--disable-auto-import) libraries
8069 lt_prog_compiler_pic='-DDLL_EXPORT'
8070 ;;
dd184caf 8071
b0322a85
CE
8072 darwin* | rhapsody*)
8073 # PIC is the default on this platform
8074 # Common symbols not allowed in MH_DYLIB files
8075 lt_prog_compiler_pic='-fno-common'
8076 ;;
d9898ee8 8077
b0322a85
CE
8078 haiku*)
8079 # PIC is the default for Haiku.
8080 # The "-static" flag exists, but is broken.
8081 lt_prog_compiler_static=
8082 ;;
d9898ee8 8083
b0322a85
CE
8084 hpux*)
8085 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8086 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8087 # sets the default TLS model and affects inlining.
8088 case $host_cpu in
8089 hppa*64*)
8090 # +Z the default
8091 ;;
8092 *)
8093 lt_prog_compiler_pic='-fPIC'
8094 ;;
8095 esac
8096 ;;
dd184caf 8097
b0322a85
CE
8098 interix[3-9]*)
8099 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8100 # Instead, we relocate shared libraries at runtime.
8101 ;;
d9898ee8 8102
b0322a85
CE
8103 msdosdjgpp*)
8104 # Just because we use GCC doesn't mean we suddenly get shared libraries
8105 # on systems that don't support them.
8106 lt_prog_compiler_can_build_shared=no
8107 enable_shared=no
8108 ;;
d9898ee8 8109
b0322a85
CE
8110 *nto* | *qnx*)
8111 # QNX uses GNU C++, but need to define -shared option too, otherwise
8112 # it will coredump.
8113 lt_prog_compiler_pic='-fPIC -shared'
8114 ;;
dd184caf 8115
b0322a85
CE
8116 sysv4*MP*)
8117 if test -d /usr/nec; then
8118 lt_prog_compiler_pic=-Kconform_pic
8119 fi
8120 ;;
d9898ee8 8121
b0322a85
CE
8122 *)
8123 lt_prog_compiler_pic='-fPIC'
8124 ;;
8125 esac
d9898ee8 8126
b0322a85
CE
8127 case $cc_basename in
8128 nvcc*) # Cuda Compiler Driver 2.2
8129 lt_prog_compiler_wl='-Xlinker '
8130 if test -n "$lt_prog_compiler_pic"; then
8131 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8132 fi
8133 ;;
8134 esac
8135 else
8136 # PORTME Check for flag to pass linker flags through the system compiler.
8137 case $host_os in
8138 aix*)
8139 lt_prog_compiler_wl='-Wl,'
8140 if test "$host_cpu" = ia64; then
8141 # AIX 5 now supports IA64 processor
8142 lt_prog_compiler_static='-Bstatic'
8143 else
8144 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8145 fi
8146 ;;
dd184caf 8147
b0322a85
CE
8148 mingw* | cygwin* | pw32* | os2* | cegcc*)
8149 # This hack is so that the source file can tell whether it is being
8150 # built for inclusion in a dll (and should export symbols for example).
8151 lt_prog_compiler_pic='-DDLL_EXPORT'
8152 ;;
d9898ee8 8153
b0322a85
CE
8154 hpux9* | hpux10* | hpux11*)
8155 lt_prog_compiler_wl='-Wl,'
8156 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8157 # not for PA HP-UX.
8158 case $host_cpu in
8159 hppa*64*|ia64*)
8160 # +Z the default
8161 ;;
8162 *)
8163 lt_prog_compiler_pic='+Z'
8164 ;;
8165 esac
8166 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8167 lt_prog_compiler_static='${wl}-a ${wl}archive'
8168 ;;
d9898ee8 8169
b0322a85
CE
8170 irix5* | irix6* | nonstopux*)
8171 lt_prog_compiler_wl='-Wl,'
8172 # PIC (with -KPIC) is the default.
8173 lt_prog_compiler_static='-non_shared'
8174 ;;
d9898ee8 8175
b0322a85
CE
8176 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8177 case $cc_basename in
8178 # old Intel for x86_64 which still supported -KPIC.
8179 ecc*)
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-KPIC'
8182 lt_prog_compiler_static='-static'
8183 ;;
8184 # icc used to be incompatible with GCC.
8185 # ICC 10 doesn't accept -KPIC any more.
8186 icc* | ifort*)
8187 lt_prog_compiler_wl='-Wl,'
8188 lt_prog_compiler_pic='-fPIC'
8189 lt_prog_compiler_static='-static'
8190 ;;
8191 # Lahey Fortran 8.1.
8192 lf95*)
8193 lt_prog_compiler_wl='-Wl,'
8194 lt_prog_compiler_pic='--shared'
8195 lt_prog_compiler_static='--static'
8196 ;;
8197 nagfor*)
8198 # NAG Fortran compiler
8199 lt_prog_compiler_wl='-Wl,-Wl,,'
8200 lt_prog_compiler_pic='-PIC'
8201 lt_prog_compiler_static='-Bstatic'
8202 ;;
8203 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8204 # Portland Group compilers (*not* the Pentium gcc compiler,
8205 # which looks to be a dead project)
8206 lt_prog_compiler_wl='-Wl,'
8207 lt_prog_compiler_pic='-fpic'
8208 lt_prog_compiler_static='-Bstatic'
8209 ;;
8210 ccc*)
8211 lt_prog_compiler_wl='-Wl,'
8212 # All Alpha code is PIC.
8213 lt_prog_compiler_static='-non_shared'
8214 ;;
8215 xl* | bgxl* | bgf* | mpixl*)
8216 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8217 lt_prog_compiler_wl='-Wl,'
8218 lt_prog_compiler_pic='-qpic'
8219 lt_prog_compiler_static='-qstaticlink'
8220 ;;
8221 *)
8222 case `$CC -V 2>&1 | sed 5q` in
8223 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8224 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8225 lt_prog_compiler_pic='-KPIC'
8226 lt_prog_compiler_static='-Bstatic'
8227 lt_prog_compiler_wl=''
8228 ;;
8229 *Sun\ F* | *Sun*Fortran*)
8230 lt_prog_compiler_pic='-KPIC'
8231 lt_prog_compiler_static='-Bstatic'
8232 lt_prog_compiler_wl='-Qoption ld '
8233 ;;
8234 *Sun\ C*)
8235 # Sun C 5.9
8236 lt_prog_compiler_pic='-KPIC'
8237 lt_prog_compiler_static='-Bstatic'
8238 lt_prog_compiler_wl='-Wl,'
8239 ;;
8240 *Intel*\ [CF]*Compiler*)
8241 lt_prog_compiler_wl='-Wl,'
8242 lt_prog_compiler_pic='-fPIC'
8243 lt_prog_compiler_static='-static'
8244 ;;
8245 *Portland\ Group*)
8246 lt_prog_compiler_wl='-Wl,'
8247 lt_prog_compiler_pic='-fpic'
8248 lt_prog_compiler_static='-Bstatic'
8249 ;;
8250 esac
8251 ;;
8252 esac
8253 ;;
d9898ee8 8254
b0322a85
CE
8255 newsos6)
8256 lt_prog_compiler_pic='-KPIC'
8257 lt_prog_compiler_static='-Bstatic'
8258 ;;
d9898ee8 8259
b0322a85
CE
8260 *nto* | *qnx*)
8261 # QNX uses GNU C++, but need to define -shared option too, otherwise
8262 # it will coredump.
8263 lt_prog_compiler_pic='-fPIC -shared'
8264 ;;
d9898ee8 8265
b0322a85
CE
8266 osf3* | osf4* | osf5*)
8267 lt_prog_compiler_wl='-Wl,'
8268 # All OSF/1 code is PIC.
8269 lt_prog_compiler_static='-non_shared'
8270 ;;
d9898ee8 8271
b0322a85
CE
8272 rdos*)
8273 lt_prog_compiler_static='-non_shared'
8274 ;;
d9898ee8 8275
b0322a85
CE
8276 solaris*)
8277 lt_prog_compiler_pic='-KPIC'
8278 lt_prog_compiler_static='-Bstatic'
8279 case $cc_basename in
8280 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8281 lt_prog_compiler_wl='-Qoption ld ';;
8282 *)
8283 lt_prog_compiler_wl='-Wl,';;
8284 esac
8285 ;;
d9898ee8 8286
b0322a85
CE
8287 sunos4*)
8288 lt_prog_compiler_wl='-Qoption ld '
8289 lt_prog_compiler_pic='-PIC'
8290 lt_prog_compiler_static='-Bstatic'
8291 ;;
d9898ee8 8292
b0322a85
CE
8293 sysv4 | sysv4.2uw2* | sysv4.3*)
8294 lt_prog_compiler_wl='-Wl,'
8295 lt_prog_compiler_pic='-KPIC'
8296 lt_prog_compiler_static='-Bstatic'
8297 ;;
d9898ee8 8298
b0322a85
CE
8299 sysv4*MP*)
8300 if test -d /usr/nec ;then
8301 lt_prog_compiler_pic='-Kconform_pic'
8302 lt_prog_compiler_static='-Bstatic'
8303 fi
8304 ;;
d9898ee8 8305
b0322a85
CE
8306 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_pic='-KPIC'
8309 lt_prog_compiler_static='-Bstatic'
8310 ;;
d9898ee8 8311
b0322a85
CE
8312 unicos*)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_can_build_shared=no
8315 ;;
d9898ee8 8316
b0322a85
CE
8317 uts4*)
8318 lt_prog_compiler_pic='-pic'
8319 lt_prog_compiler_static='-Bstatic'
8320 ;;
d9898ee8 8321
b0322a85
CE
8322 *)
8323 lt_prog_compiler_can_build_shared=no
8324 ;;
8325 esac
8326 fi
d9898ee8 8327
b0322a85
CE
8328case $host_os in
8329 # For platforms which do not support PIC, -DPIC is meaningless:
8330 *djgpp*)
8331 lt_prog_compiler_pic=
8332 ;;
8333 *)
8334 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8335 ;;
8336esac
d9898ee8 8337
b0322a85
CE
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8339$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8340if ${lt_cv_prog_compiler_pic+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342else
8343 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8346$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8347lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8d138742 8348
b0322a85
CE
8349#
8350# Check to make sure the PIC flag actually works.
8351#
8352if test -n "$lt_prog_compiler_pic"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8354$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8355if ${lt_cv_prog_compiler_pic_works+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357else
8358 lt_cv_prog_compiler_pic_works=no
8359 ac_outfile=conftest.$ac_objext
8360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8361 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8362 # Insert the option either (1) after the last *FLAGS variable, or
8363 # (2) before a word containing "conftest.", or (3) at the end.
8364 # Note that $ac_compile itself does not contain backslashes and begins
8365 # with a dollar sign (not a hyphen), so the echo should work correctly.
8366 # The option is referenced via a variable to avoid confusing sed.
8367 lt_compile=`echo "$ac_compile" | $SED \
8368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8370 -e 's:$: $lt_compiler_flag:'`
8371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8372 (eval "$lt_compile" 2>conftest.err)
8373 ac_status=$?
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 if (exit $ac_status) && test -s "$ac_outfile"; then
8377 # The compiler can only warn and ignore the option if not recognized
8378 # So say no if there are warnings other than the usual output.
8379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8382 lt_cv_prog_compiler_pic_works=yes
8383 fi
8384 fi
8385 $RM conftest*
8d138742 8386
b0322a85
CE
8387fi
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8389$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 8390
b0322a85
CE
8391if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8392 case $lt_prog_compiler_pic in
8393 "" | " "*) ;;
8394 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8395 esac
8396else
8397 lt_prog_compiler_pic=
8398 lt_prog_compiler_can_build_shared=no
8399fi
d9898ee8 8400
b0322a85 8401fi
d9898ee8 8402
d9898ee8 8403
d9898ee8 8404
d9898ee8 8405
d9898ee8 8406
d9898ee8 8407
8408
8d138742
CE
8409
8410
8411
d9898ee8 8412
b0322a85
CE
8413#
8414# Check to make sure the static flag actually works.
8415#
8416wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8418$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8419if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742 8420 $as_echo_n "(cached) " >&6
d9898ee8 8421else
b0322a85
CE
8422 lt_cv_prog_compiler_static_works=no
8423 save_LDFLAGS="$LDFLAGS"
8424 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8425 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8427 # The linker can only warn and ignore the option if not recognized
8428 # So say no if there are warnings
8429 if test -s conftest.err; then
8430 # Append any errors to the config.log.
8431 cat conftest.err 1>&5
8432 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8434 if diff conftest.exp conftest.er2 >/dev/null; then
8435 lt_cv_prog_compiler_static_works=yes
8436 fi
8437 else
8438 lt_cv_prog_compiler_static_works=yes
8439 fi
8440 fi
8441 $RM -r conftest*
8442 LDFLAGS="$save_LDFLAGS"
8443
8d138742 8444fi
b0322a85
CE
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8446$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8d138742 8447
b0322a85
CE
8448if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8449 :
8450else
8451 lt_prog_compiler_static=
8452fi
8d138742
CE
8453
8454
8455
8456
d9898ee8 8457
d9898ee8 8458
d9898ee8 8459
b0322a85
CE
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8461$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8462if ${lt_cv_prog_compiler_c_o+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464else
8465 lt_cv_prog_compiler_c_o=no
8466 $RM -r conftest 2>/dev/null
8467 mkdir conftest
8468 cd conftest
8469 mkdir out
8470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8471
b0322a85
CE
8472 lt_compiler_flag="-o out/conftest2.$ac_objext"
8473 # Insert the option either (1) after the last *FLAGS variable, or
8474 # (2) before a word containing "conftest.", or (3) at the end.
8475 # Note that $ac_compile itself does not contain backslashes and begins
8476 # with a dollar sign (not a hyphen), so the echo should work correctly.
8477 lt_compile=`echo "$ac_compile" | $SED \
8478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8480 -e 's:$: $lt_compiler_flag:'`
8481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8482 (eval "$lt_compile" 2>out/conftest.err)
8483 ac_status=$?
8484 cat out/conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8487 then
8488 # The compiler can only warn and ignore the option if not recognized
8489 # So say no if there are warnings
8490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8493 lt_cv_prog_compiler_c_o=yes
8494 fi
8495 fi
8496 chmod u+w . 2>&5
8497 $RM conftest*
8498 # SGI C++ compiler will create directory out/ii_files/ for
8499 # template instantiation
8500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8501 $RM out/* && rmdir out
8502 cd ..
8503 $RM -r conftest
8504 $RM conftest*
d9898ee8 8505
b0322a85
CE
8506fi
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8508$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8509
d9898ee8 8510
d9898ee8 8511
d9898ee8 8512
8513
d9898ee8 8514
b0322a85
CE
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8516$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8517if ${lt_cv_prog_compiler_c_o+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519else
8520 lt_cv_prog_compiler_c_o=no
8521 $RM -r conftest 2>/dev/null
8522 mkdir conftest
8523 cd conftest
8524 mkdir out
8525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8526
b0322a85
CE
8527 lt_compiler_flag="-o out/conftest2.$ac_objext"
8528 # Insert the option either (1) after the last *FLAGS variable, or
8529 # (2) before a word containing "conftest.", or (3) at the end.
8530 # Note that $ac_compile itself does not contain backslashes and begins
8531 # with a dollar sign (not a hyphen), so the echo should work correctly.
8532 lt_compile=`echo "$ac_compile" | $SED \
8533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8535 -e 's:$: $lt_compiler_flag:'`
8536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8537 (eval "$lt_compile" 2>out/conftest.err)
8538 ac_status=$?
8539 cat out/conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8542 then
8543 # The compiler can only warn and ignore the option if not recognized
8544 # So say no if there are warnings
8545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8548 lt_cv_prog_compiler_c_o=yes
8549 fi
8550 fi
8551 chmod u+w . 2>&5
8552 $RM conftest*
8553 # SGI C++ compiler will create directory out/ii_files/ for
8554 # template instantiation
8555 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8556 $RM out/* && rmdir out
8557 cd ..
8558 $RM -r conftest
8559 $RM conftest*
d9898ee8 8560
b0322a85
CE
8561fi
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8563$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8564
8565
d9898ee8 8566
d9898ee8 8567
b0322a85
CE
8568hard_links="nottested"
8569if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8570 # do not overwrite the value of need_locks provided by the user
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8572$as_echo_n "checking if we can lock with hard links... " >&6; }
8573 hard_links=yes
8574 $RM conftest*
8575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8576 touch conftest.a
8577 ln conftest.a conftest.b 2>&5 || hard_links=no
8578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8580$as_echo "$hard_links" >&6; }
8581 if test "$hard_links" = no; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8583$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8584 need_locks=warn
d9898ee8 8585 fi
b0322a85
CE
8586else
8587 need_locks=no
8588fi
d9898ee8 8589
d9898ee8 8590
d9898ee8 8591
d9898ee8 8592
d9898ee8 8593
d9898ee8 8594
b0322a85
CE
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8596$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8597
b0322a85
CE
8598 runpath_var=
8599 allow_undefined_flag=
8600 always_export_symbols=no
8601 archive_cmds=
8602 archive_expsym_cmds=
8603 compiler_needs_object=no
8604 enable_shared_with_static_runtimes=no
8605 export_dynamic_flag_spec=
8606 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8607 hardcode_automatic=no
8608 hardcode_direct=no
8609 hardcode_direct_absolute=no
8610 hardcode_libdir_flag_spec=
8611 hardcode_libdir_separator=
8612 hardcode_minus_L=no
8613 hardcode_shlibpath_var=unsupported
8614 inherit_rpath=no
8615 link_all_deplibs=unknown
8616 module_cmds=
8617 module_expsym_cmds=
8618 old_archive_from_new_cmds=
8619 old_archive_from_expsyms_cmds=
8620 thread_safe_flag_spec=
8621 whole_archive_flag_spec=
8622 # include_expsyms should be a list of space-separated symbols to be *always*
8623 # included in the symbol list
8624 include_expsyms=
8625 # exclude_expsyms can be an extended regexp of symbols to exclude
8626 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8627 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8628 # as well as any symbol that contains `d'.
8629 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8630 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8631 # platforms (ab)use it in PIC code, but their linkers get confused if
8632 # the symbol is explicitly referenced. Since portable code cannot
8633 # rely on this symbol name, it's probably fine to never include it in
8634 # preloaded symbol tables.
8635 # Exclude shared library initialization/finalization symbols.
8636 extract_expsyms_cmds=
d9898ee8 8637
b0322a85
CE
8638 case $host_os in
8639 cygwin* | mingw* | pw32* | cegcc*)
8640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8641 # When not using gcc, we currently assume that we are using
8642 # Microsoft Visual C++.
8643 if test "$GCC" != yes; then
8644 with_gnu_ld=no
8d138742 8645 fi
b0322a85
CE
8646 ;;
8647 interix*)
8648 # we just hope/assume this is gcc and not c89 (= MSVC++)
8649 with_gnu_ld=yes
8650 ;;
8651 openbsd*)
8652 with_gnu_ld=no
8653 ;;
8654 esac
d9898ee8 8655
b0322a85 8656 ld_shlibs=yes
d9898ee8 8657
b0322a85
CE
8658 # On some targets, GNU ld is compatible enough with the native linker
8659 # that we're better off using the native interface for both.
8660 lt_use_gnu_ld_interface=no
8661 if test "$with_gnu_ld" = yes; then
8662 case $host_os in
8663 aix*)
8664 # The AIX port of GNU ld has always aspired to compatibility
8665 # with the native linker. However, as the warning in the GNU ld
8666 # block says, versions before 2.19.5* couldn't really create working
8667 # shared libraries, regardless of the interface used.
8668 case `$LD -v 2>&1` in
8669 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8670 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8671 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8672 *)
8673 lt_use_gnu_ld_interface=yes
8674 ;;
8675 esac
8676 ;;
8677 *)
8678 lt_use_gnu_ld_interface=yes
8679 ;;
8680 esac
8681 fi
d9898ee8 8682
b0322a85
CE
8683 if test "$lt_use_gnu_ld_interface" = yes; then
8684 # If archive_cmds runs LD, not CC, wlarc should be empty
8685 wlarc='${wl}'
d9898ee8 8686
b0322a85
CE
8687 # Set some defaults for GNU ld with shared library support. These
8688 # are reset later if shared libraries are not supported. Putting them
8689 # here allows them to be overridden if necessary.
8690 runpath_var=LD_RUN_PATH
8691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8692 export_dynamic_flag_spec='${wl}--export-dynamic'
8693 # ancient GNU ld didn't support --whole-archive et. al.
8694 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8695 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8696 else
8697 whole_archive_flag_spec=
8698 fi
8699 supports_anon_versioning=no
8700 case `$LD -v 2>&1` in
8701 *GNU\ gold*) supports_anon_versioning=yes ;;
8702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8705 *\ 2.11.*) ;; # other 2.11 versions
8706 *) supports_anon_versioning=yes ;;
8707 esac
d9898ee8 8708
b0322a85
CE
8709 # See if GNU ld supports shared libraries.
8710 case $host_os in
8711 aix[3-9]*)
8712 # On AIX/PPC, the GNU linker is very broken
8713 if test "$host_cpu" != ia64; then
8714 ld_shlibs=no
8715 cat <<_LT_EOF 1>&2
d9898ee8 8716
b0322a85
CE
8717*** Warning: the GNU linker, at least up to release 2.19, is reported
8718*** to be unable to reliably create shared libraries on AIX.
8719*** Therefore, libtool is disabling shared libraries support. If you
8720*** really care for shared libraries, you may want to install binutils
8721*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8722*** You will then need to restart the configuration process.
d9898ee8 8723
8d138742 8724_LT_EOF
8d138742 8725 fi
b0322a85 8726 ;;
d9898ee8 8727
b0322a85
CE
8728 amigaos*)
8729 case $host_cpu in
8730 powerpc)
8731 # see comment about AmigaOS4 .so support
8732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733 archive_expsym_cmds=''
8734 ;;
8735 m68k)
8736 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)'
8737 hardcode_libdir_flag_spec='-L$libdir'
8738 hardcode_minus_L=yes
8739 ;;
8740 esac
8741 ;;
d9898ee8 8742
b0322a85
CE
8743 beos*)
8744 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8745 allow_undefined_flag=unsupported
8746 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8747 # support --undefined. This deserves some investigation. FIXME
8748 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749 else
8750 ld_shlibs=no
8751 fi
8752 ;;
d9898ee8 8753
b0322a85
CE
8754 cygwin* | mingw* | pw32* | cegcc*)
8755 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8756 # as there is no search path for DLLs.
8757 hardcode_libdir_flag_spec='-L$libdir'
8758 export_dynamic_flag_spec='${wl}--export-all-symbols'
8759 allow_undefined_flag=unsupported
8760 always_export_symbols=no
8761 enable_shared_with_static_runtimes=yes
8762 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8763 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d9898ee8 8764
b0322a85
CE
8765 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8767 # If the export-symbols file already is a .def file (1st line
8768 # is EXPORTS), use it as is; otherwise, prepend...
8769 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8770 cp $export_symbols $output_objdir/$soname.def;
8771 else
8772 echo EXPORTS > $output_objdir/$soname.def;
8773 cat $export_symbols >> $output_objdir/$soname.def;
8774 fi~
8775 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8776 else
8777 ld_shlibs=no
8778 fi
8779 ;;
d9898ee8 8780
b0322a85
CE
8781 haiku*)
8782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8783 link_all_deplibs=yes
8784 ;;
d9898ee8 8785
b0322a85
CE
8786 interix[3-9]*)
8787 hardcode_direct=no
8788 hardcode_shlibpath_var=no
8789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8790 export_dynamic_flag_spec='${wl}-E'
8791 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8792 # Instead, shared libraries are loaded at an image base (0x10000000 by
8793 # default) and relocated if they conflict, which is a slow very memory
8794 # consuming and fragmenting process. To avoid this, we pick a random,
8795 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8796 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8797 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8798 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'
8799 ;;
d9898ee8 8800
b0322a85
CE
8801 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8802 tmp_diet=no
8803 if test "$host_os" = linux-dietlibc; then
8804 case $cc_basename in
8805 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8806 esac
8807 fi
8808 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8809 && test "$tmp_diet" = no
8810 then
8811 tmp_addflag=' $pic_flag'
8812 tmp_sharedflag='-shared'
8813 case $cc_basename,$host_cpu in
8814 pgcc*) # Portland Group C compiler
8815 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8816 tmp_addflag=' $pic_flag'
8817 ;;
8818 pgf77* | pgf90* | pgf95* | pgfortran*)
8819 # Portland Group f77 and f90 compilers
8820 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8821 tmp_addflag=' $pic_flag -Mnomain' ;;
8822 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8823 tmp_addflag=' -i_dynamic' ;;
8824 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8825 tmp_addflag=' -i_dynamic -nofor_main' ;;
8826 ifc* | ifort*) # Intel Fortran compiler
8827 tmp_addflag=' -nofor_main' ;;
8828 lf95*) # Lahey Fortran 8.1
8829 whole_archive_flag_spec=
8830 tmp_sharedflag='--shared' ;;
8831 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8832 tmp_sharedflag='-qmkshrobj'
8833 tmp_addflag= ;;
8834 nvcc*) # Cuda Compiler Driver 2.2
8835 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8836 compiler_needs_object=yes
8837 ;;
8838 esac
8839 case `$CC -V 2>&1 | sed 5q` in
8840 *Sun\ C*) # Sun C 5.9
8841 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8842 compiler_needs_object=yes
8843 tmp_sharedflag='-G' ;;
8844 *Sun\ F*) # Sun Fortran 8.3
8845 tmp_sharedflag='-G' ;;
8846 esac
8847 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8848
b0322a85
CE
8849 if test "x$supports_anon_versioning" = xyes; then
8850 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8852 echo "local: *; };" >> $output_objdir/$libname.ver~
8853 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8854 fi
d9898ee8 8855
b0322a85
CE
8856 case $cc_basename in
8857 xlf* | bgf* | bgxlf* | mpixlf*)
8858 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8859 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8861 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8862 if test "x$supports_anon_versioning" = xyes; then
8863 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8865 echo "local: *; };" >> $output_objdir/$libname.ver~
8866 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8867 fi
8868 ;;
8869 esac
8870 else
8871 ld_shlibs=no
8872 fi
8873 ;;
d9898ee8 8874
b0322a85
CE
8875 netbsd*)
8876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8877 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8878 wlarc=
8879 else
8880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8882 fi
8883 ;;
d9898ee8 8884
b0322a85
CE
8885 solaris*)
8886 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8887 ld_shlibs=no
8888 cat <<_LT_EOF 1>&2
d9898ee8 8889
b0322a85
CE
8890*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8891*** create shared libraries on Solaris systems. Therefore, libtool
8892*** is disabling shared libraries support. We urge you to upgrade GNU
8893*** binutils to release 2.9.1 or newer. Another option is to modify
8894*** your PATH or compiler configuration so that the native linker is
8895*** used, and then restart.
d9898ee8 8896
b0322a85
CE
8897_LT_EOF
8898 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8899 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8900 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8901 else
8902 ld_shlibs=no
8903 fi
8904 ;;
d9898ee8 8905
b0322a85
CE
8906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8907 case `$LD -v 2>&1` in
8908 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8909 ld_shlibs=no
8910 cat <<_LT_EOF 1>&2
d9898ee8 8911
b0322a85
CE
8912*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8913*** reliably create shared libraries on SCO systems. Therefore, libtool
8914*** is disabling shared libraries support. We urge you to upgrade GNU
8915*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8916*** your PATH or compiler configuration so that the native linker is
8917*** used, and then restart.
d9898ee8 8918
b0322a85
CE
8919_LT_EOF
8920 ;;
8921 *)
8922 # For security reasons, it is highly recommended that you always
8923 # use absolute paths for naming shared libraries, and exclude the
8924 # DT_RUNPATH tag from executables and libraries. But doing so
8925 # requires that you compile everything twice, which is a pain.
8926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8930 else
8931 ld_shlibs=no
8932 fi
8933 ;;
8934 esac
8935 ;;
d9898ee8 8936
b0322a85
CE
8937 sunos4*)
8938 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8939 wlarc=
8940 hardcode_direct=yes
8941 hardcode_shlibpath_var=no
8942 ;;
d9898ee8 8943
b0322a85
CE
8944 *)
8945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8946 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8947 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8948 else
8949 ld_shlibs=no
8950 fi
8951 ;;
8952 esac
d9898ee8 8953
b0322a85
CE
8954 if test "$ld_shlibs" = no; then
8955 runpath_var=
8956 hardcode_libdir_flag_spec=
8957 export_dynamic_flag_spec=
8958 whole_archive_flag_spec=
8959 fi
8960 else
8961 # PORTME fill in a description of your system's linker (not GNU ld)
8962 case $host_os in
8963 aix3*)
8964 allow_undefined_flag=unsupported
8965 always_export_symbols=yes
8966 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'
8967 # Note: this linker hardcodes the directories in LIBPATH if there
8968 # are no directories specified by -L.
8969 hardcode_minus_L=yes
8970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8971 # Neither direct hardcoding nor static linking is supported with a
8972 # broken collect2.
8973 hardcode_direct=unsupported
8974 fi
8975 ;;
d9898ee8 8976
b0322a85
CE
8977 aix[4-9]*)
8978 if test "$host_cpu" = ia64; then
8979 # On IA64, the linker does run time linking by default, so we don't
8980 # have to do anything special.
8981 aix_use_runtimelinking=no
8982 exp_sym_flag='-Bexport'
8983 no_entry_flag=""
8984 else
8985 # If we're using GNU nm, then we don't want the "-C" option.
8986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8987 # Also, AIX nm treats weak defined symbols like other global
8988 # defined symbols, whereas GNU nm marks them as "W".
8989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8990 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8991 else
8992 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'
8993 fi
8994 aix_use_runtimelinking=no
d9898ee8 8995
b0322a85
CE
8996 # Test if we are trying to use run time linking or normal
8997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8998 # need to do runtime linking.
8999 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9000 for ld_flag in $LDFLAGS; do
9001 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9002 aix_use_runtimelinking=yes
9003 break
9004 fi
9005 done
9006 ;;
9007 esac
d9898ee8 9008
b0322a85
CE
9009 exp_sym_flag='-bexport'
9010 no_entry_flag='-bnoentry'
9011 fi
d9898ee8 9012
b0322a85
CE
9013 # When large executables or shared objects are built, AIX ld can
9014 # have problems creating the table of contents. If linking a library
9015 # or program results in "error TOC overflow" add -mminimal-toc to
9016 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9017 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 9018
b0322a85
CE
9019 archive_cmds=''
9020 hardcode_direct=yes
9021 hardcode_direct_absolute=yes
9022 hardcode_libdir_separator=':'
9023 link_all_deplibs=yes
9024 file_list_spec='${wl}-f,'
d9898ee8 9025
b0322a85
CE
9026 if test "$GCC" = yes; then
9027 case $host_os in aix4.[012]|aix4.[012].*)
9028 # We only want to do this on AIX 4.2 and lower, the check
9029 # below for broken collect2 doesn't work under 4.3+
9030 collect2name=`${CC} -print-prog-name=collect2`
9031 if test -f "$collect2name" &&
9032 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9033 then
9034 # We have reworked collect2
9035 :
9036 else
9037 # We have old collect2
9038 hardcode_direct=unsupported
9039 # It fails to find uninstalled libraries when the uninstalled
9040 # path is not listed in the libpath. Setting hardcode_minus_L
9041 # to unsupported forces relinking
9042 hardcode_minus_L=yes
9043 hardcode_libdir_flag_spec='-L$libdir'
9044 hardcode_libdir_separator=
9045 fi
9046 ;;
9047 esac
9048 shared_flag='-shared'
9049 if test "$aix_use_runtimelinking" = yes; then
9050 shared_flag="$shared_flag "'${wl}-G'
9051 fi
9052 else
9053 # not using gcc
9054 if test "$host_cpu" = ia64; then
9055 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9056 # chokes on -Wl,-G. The following line is correct:
9057 shared_flag='-G'
9058 else
9059 if test "$aix_use_runtimelinking" = yes; then
9060 shared_flag='${wl}-G'
9061 else
9062 shared_flag='${wl}-bM:SRE'
9063 fi
9064 fi
9065 fi
d9898ee8 9066
b0322a85
CE
9067 export_dynamic_flag_spec='${wl}-bexpall'
9068 # It seems that -bexpall does not export symbols beginning with
9069 # underscore (_), so it is better to generate a list of symbols to export.
9070 always_export_symbols=yes
9071 if test "$aix_use_runtimelinking" = yes; then
9072 # Warning - without using the other runtime loading flags (-brtl),
9073 # -berok will link without error, but may produce a broken library.
9074 allow_undefined_flag='-berok'
9075 # Determine the default libpath from the value encoded in an
9076 # empty executable.
9077 if test "${lt_cv_aix_libpath+set}" = set; then
9078 aix_libpath=$lt_cv_aix_libpath
8d138742 9079else
b0322a85
CE
9080 if ${lt_cv_aix_libpath_+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082else
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084/* end confdefs.h. */
9085
9086int
9087main ()
9088{
9089
9090 ;
9091 return 0;
9092}
9093_ACEOF
9094if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9095
b0322a85
CE
9096 lt_aix_libpath_sed='
9097 /Import File Strings/,/^$/ {
9098 /^0/ {
9099 s/^0 *\([^ ]*\) *$/\1/
9100 p
9101 }
9102 }'
9103 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9104 # Check for a 64-bit object if we didn't find anything.
9105 if test -z "$lt_cv_aix_libpath_"; then
9106 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9107 fi
8d138742 9108fi
b0322a85
CE
9109rm -f core conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9111 if test -z "$lt_cv_aix_libpath_"; then
9112 lt_cv_aix_libpath_="/usr/lib:/lib"
9113 fi
d9898ee8 9114
b0322a85 9115fi
d9898ee8 9116
b0322a85
CE
9117 aix_libpath=$lt_cv_aix_libpath_
9118fi
d9898ee8 9119
b0322a85
CE
9120 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9121 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9122 else
9123 if test "$host_cpu" = ia64; then
9124 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9125 allow_undefined_flag="-z nodefs"
9126 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"
9127 else
9128 # Determine the default libpath from the value encoded in an
9129 # empty executable.
9130 if test "${lt_cv_aix_libpath+set}" = set; then
9131 aix_libpath=$lt_cv_aix_libpath
9132else
9133 if ${lt_cv_aix_libpath_+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135else
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137/* end confdefs.h. */
d9898ee8 9138
b0322a85
CE
9139int
9140main ()
9141{
d9898ee8 9142
b0322a85
CE
9143 ;
9144 return 0;
9145}
9146_ACEOF
9147if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9148
b0322a85
CE
9149 lt_aix_libpath_sed='
9150 /Import File Strings/,/^$/ {
9151 /^0/ {
9152 s/^0 *\([^ ]*\) *$/\1/
9153 p
9154 }
9155 }'
9156 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9157 # Check for a 64-bit object if we didn't find anything.
9158 if test -z "$lt_cv_aix_libpath_"; then
9159 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9160 fi
9161fi
9162rm -f core conftest.err conftest.$ac_objext \
9163 conftest$ac_exeext conftest.$ac_ext
9164 if test -z "$lt_cv_aix_libpath_"; then
9165 lt_cv_aix_libpath_="/usr/lib:/lib"
9166 fi
d9898ee8 9167
b0322a85 9168fi
d9898ee8 9169
b0322a85
CE
9170 aix_libpath=$lt_cv_aix_libpath_
9171fi
d9898ee8 9172
b0322a85
CE
9173 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9174 # Warning - without using the other run time loading flags,
9175 # -berok will link without error, but may produce a broken library.
9176 no_undefined_flag=' ${wl}-bernotok'
9177 allow_undefined_flag=' ${wl}-berok'
9178 if test "$with_gnu_ld" = yes; then
9179 # We only use this code for GNU lds that support --whole-archive.
9180 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9181 else
9182 # Exported symbols can be pulled into shared objects from archives
9183 whole_archive_flag_spec='$convenience'
9184 fi
9185 archive_cmds_need_lc=yes
9186 # This is similar to how AIX traditionally builds its shared libraries.
9187 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'
9188 fi
8d138742
CE
9189 fi
9190 ;;
d9898ee8 9191
8d138742
CE
9192 amigaos*)
9193 case $host_cpu in
9194 powerpc)
9195 # see comment about AmigaOS4 .so support
b0322a85
CE
9196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9197 archive_expsym_cmds=''
8d138742
CE
9198 ;;
9199 m68k)
b0322a85
CE
9200 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)'
9201 hardcode_libdir_flag_spec='-L$libdir'
9202 hardcode_minus_L=yes
8d138742
CE
9203 ;;
9204 esac
9205 ;;
d9898ee8 9206
b0322a85
CE
9207 bsdi[45]*)
9208 export_dynamic_flag_spec=-rdynamic
8d138742 9209 ;;
d9898ee8 9210
b0322a85
CE
9211 cygwin* | mingw* | pw32* | cegcc*)
9212 # When not using gcc, we currently assume that we are using
9213 # Microsoft Visual C++.
9214 # hardcode_libdir_flag_spec is actually meaningless, as there is
9215 # no search path for DLLs.
9216 case $cc_basename in
9217 cl*)
9218 # Native MSVC
9219 hardcode_libdir_flag_spec=' '
9220 allow_undefined_flag=unsupported
9221 always_export_symbols=yes
9222 file_list_spec='@'
9223 # Tell ltmain to make .lib files, not .a files.
9224 libext=lib
9225 # Tell ltmain to make .dll files, not .so files.
9226 shrext_cmds=".dll"
9227 # FIXME: Setting linknames here is a bad hack.
9228 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9229 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9230 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9231 else
9232 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9233 fi~
9234 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9235 linknames='
9236 # The linker will not automatically build a static lib if we build a DLL.
9237 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9238 enable_shared_with_static_runtimes=yes
9239 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9240 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9241 # Don't use ranlib
9242 old_postinstall_cmds='chmod 644 $oldlib'
9243 postlink_cmds='lt_outputfile="@OUTPUT@"~
9244 lt_tool_outputfile="@TOOL_OUTPUT@"~
9245 case $lt_outputfile in
9246 *.exe|*.EXE) ;;
9247 *)
9248 lt_outputfile="$lt_outputfile.exe"
9249 lt_tool_outputfile="$lt_tool_outputfile.exe"
9250 ;;
9251 esac~
9252 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9253 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9254 $RM "$lt_outputfile.manifest";
9255 fi'
8d138742
CE
9256 ;;
9257 *)
b0322a85
CE
9258 # Assume MSVC wrapper
9259 hardcode_libdir_flag_spec=' '
9260 allow_undefined_flag=unsupported
9261 # Tell ltmain to make .lib files, not .a files.
9262 libext=lib
9263 # Tell ltmain to make .dll files, not .so files.
9264 shrext_cmds=".dll"
9265 # FIXME: Setting linknames here is a bad hack.
9266 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9267 # The linker will automatically build a .lib file if we build a DLL.
9268 old_archive_from_new_cmds='true'
9269 # FIXME: Should let the user specify the lib program.
9270 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9271 enable_shared_with_static_runtimes=yes
8d138742
CE
9272 ;;
9273 esac
9274 ;;
d9898ee8 9275
b0322a85 9276 darwin* | rhapsody*)
d9898ee8 9277
d9898ee8 9278
b0322a85
CE
9279 archive_cmds_need_lc=no
9280 hardcode_direct=no
9281 hardcode_automatic=yes
9282 hardcode_shlibpath_var=unsupported
9283 if test "$lt_cv_ld_force_load" = "yes"; then
9284 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
d9898ee8 9285
b0322a85
CE
9286 else
9287 whole_archive_flag_spec=''
9288 fi
9289 link_all_deplibs=yes
9290 allow_undefined_flag="$_lt_dar_allow_undefined"
9291 case $cc_basename in
9292 ifort*) _lt_dar_can_shared=yes ;;
9293 *) _lt_dar_can_shared=$GCC ;;
9294 esac
9295 if test "$_lt_dar_can_shared" = "yes"; then
9296 output_verbose_link_cmd=func_echo_all
9297 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9298 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9299 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}"
9300 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}"
d9898ee8 9301
8d138742 9302 else
b0322a85
CE
9303 ld_shlibs=no
9304 fi
d9898ee8 9305
8d138742 9306 ;;
d9898ee8 9307
b0322a85
CE
9308 dgux*)
9309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_libdir_flag_spec='-L$libdir'
9311 hardcode_shlibpath_var=no
8d138742 9312 ;;
d9898ee8 9313
b0322a85
CE
9314 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9315 # support. Future versions do this automatically, but an explicit c++rt0.o
9316 # does not break anything, and helps significantly (at the cost of a little
9317 # extra space).
9318 freebsd2.2*)
9319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9320 hardcode_libdir_flag_spec='-R$libdir'
9321 hardcode_direct=yes
9322 hardcode_shlibpath_var=no
8d138742 9323 ;;
d9898ee8 9324
b0322a85
CE
9325 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9326 freebsd2.*)
9327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_direct=yes
9329 hardcode_minus_L=yes
9330 hardcode_shlibpath_var=no
8d138742 9331 ;;
d9898ee8 9332
b0322a85
CE
9333 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9334 freebsd* | dragonfly*)
9335 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9336 hardcode_libdir_flag_spec='-R$libdir'
9337 hardcode_direct=yes
9338 hardcode_shlibpath_var=no
8d138742 9339 ;;
d9898ee8 9340
b0322a85
CE
9341 hpux9*)
9342 if test "$GCC" = yes; then
9343 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9344 else
9345 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'
9346 fi
9347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9348 hardcode_libdir_separator=:
9349 hardcode_direct=yes
d9898ee8 9350
b0322a85
CE
9351 # hardcode_minus_L: Not really in the search PATH,
9352 # but as the default location of the library.
9353 hardcode_minus_L=yes
9354 export_dynamic_flag_spec='${wl}-E'
8d138742 9355 ;;
d9898ee8 9356
b0322a85
CE
9357 hpux10*)
9358 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9359 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9360 else
9361 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9362 fi
9363 if test "$with_gnu_ld" = no; then
9364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9365 hardcode_libdir_separator=:
9366 hardcode_direct=yes
9367 hardcode_direct_absolute=yes
9368 export_dynamic_flag_spec='${wl}-E'
9369 # hardcode_minus_L: Not really in the search PATH,
9370 # but as the default location of the library.
9371 hardcode_minus_L=yes
9372 fi
8d138742 9373 ;;
d9898ee8 9374
b0322a85
CE
9375 hpux11*)
9376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9377 case $host_cpu in
9378 hppa*64*)
9379 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 ;;
9381 ia64*)
9382 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9383 ;;
9384 *)
9385 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9386 ;;
9387 esac
9388 else
9389 case $host_cpu in
9390 hppa*64*)
9391 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 ;;
9393 ia64*)
9394 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9395 ;;
9396 *)
d9898ee8 9397
b0322a85
CE
9398 # Older versions of the 11.00 compiler do not understand -b yet
9399 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9401$as_echo_n "checking if $CC understands -b... " >&6; }
9402if ${lt_cv_prog_compiler__b+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404else
9405 lt_cv_prog_compiler__b=no
9406 save_LDFLAGS="$LDFLAGS"
9407 LDFLAGS="$LDFLAGS -b"
9408 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9410 # The linker can only warn and ignore the option if not recognized
9411 # So say no if there are warnings
9412 if test -s conftest.err; then
9413 # Append any errors to the config.log.
9414 cat conftest.err 1>&5
9415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9417 if diff conftest.exp conftest.er2 >/dev/null; then
9418 lt_cv_prog_compiler__b=yes
9419 fi
9420 else
9421 lt_cv_prog_compiler__b=yes
9422 fi
9423 fi
9424 $RM -r conftest*
9425 LDFLAGS="$save_LDFLAGS"
d9898ee8 9426
b0322a85
CE
9427fi
9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9429$as_echo "$lt_cv_prog_compiler__b" >&6; }
d9898ee8 9430
b0322a85
CE
9431if test x"$lt_cv_prog_compiler__b" = xyes; then
9432 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9433else
9434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9435fi
9436
9437 ;;
9438 esac
8d138742 9439 fi
b0322a85
CE
9440 if test "$with_gnu_ld" = no; then
9441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9442 hardcode_libdir_separator=:
d9898ee8 9443
b0322a85
CE
9444 case $host_cpu in
9445 hppa*64*|ia64*)
9446 hardcode_direct=no
9447 hardcode_shlibpath_var=no
9448 ;;
9449 *)
9450 hardcode_direct=yes
9451 hardcode_direct_absolute=yes
9452 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9453
b0322a85
CE
9454 # hardcode_minus_L: Not really in the search PATH,
9455 # but as the default location of the library.
9456 hardcode_minus_L=yes
9457 ;;
9458 esac
9459 fi
8d138742 9460 ;;
d9898ee8 9461
b0322a85
CE
9462 irix5* | irix6* | nonstopux*)
9463 if test "$GCC" = yes; then
9464 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9465 # Try to use the -exported_symbol ld option, if it does not
9466 # work, assume that -exports_file does not work either and
9467 # implicitly export all symbols.
9468 # This should be the same for all languages, so no per-tag cache variable.
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9470$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9471if ${lt_cv_irix_exported_symbol+:} false; then :
9472 $as_echo_n "(cached) " >&6
9473else
9474 save_LDFLAGS="$LDFLAGS"
9475 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h. */
9478int foo (void) { return 0; }
9479_ACEOF
9480if ac_fn_c_try_link "$LINENO"; then :
9481 lt_cv_irix_exported_symbol=yes
9482else
9483 lt_cv_irix_exported_symbol=no
9484fi
9485rm -f core conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487 LDFLAGS="$save_LDFLAGS"
9488fi
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9490$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9491 if test "$lt_cv_irix_exported_symbol" = yes; then
9492 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9493 fi
9494 else
9495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9497 fi
9498 archive_cmds_need_lc='no'
9499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500 hardcode_libdir_separator=:
9501 inherit_rpath=yes
9502 link_all_deplibs=yes
8d138742 9503 ;;
d9898ee8 9504
b0322a85
CE
9505 netbsd*)
9506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9508 else
9509 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9510 fi
9511 hardcode_libdir_flag_spec='-R$libdir'
9512 hardcode_direct=yes
9513 hardcode_shlibpath_var=no
8d138742 9514 ;;
d9898ee8 9515
b0322a85
CE
9516 newsos6)
9517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518 hardcode_direct=yes
9519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9520 hardcode_libdir_separator=:
9521 hardcode_shlibpath_var=no
9522 ;;
d9898ee8 9523
b0322a85
CE
9524 *nto* | *qnx*)
9525 ;;
d9898ee8 9526
b0322a85
CE
9527 openbsd*)
9528 if test -f /usr/libexec/ld.so; then
9529 hardcode_direct=yes
9530 hardcode_shlibpath_var=no
9531 hardcode_direct_absolute=yes
9532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9534 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9536 export_dynamic_flag_spec='${wl}-E'
9537 else
9538 case $host_os in
9539 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_libdir_flag_spec='-R$libdir'
9542 ;;
9543 *)
9544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546 ;;
9547 esac
9548 fi
9549 else
9550 ld_shlibs=no
9551 fi
9552 ;;
d9898ee8 9553
b0322a85
CE
9554 os2*)
9555 hardcode_libdir_flag_spec='-L$libdir'
9556 hardcode_minus_L=yes
9557 allow_undefined_flag=unsupported
9558 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'
9559 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9560 ;;
d9898ee8 9561
b0322a85
CE
9562 osf3*)
9563 if test "$GCC" = yes; then
9564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9565 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9566 else
9567 allow_undefined_flag=' -expect_unresolved \*'
9568 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9569 fi
9570 archive_cmds_need_lc='no'
9571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572 hardcode_libdir_separator=:
9573 ;;
d9898ee8 9574
b0322a85
CE
9575 osf4* | osf5*) # as osf3* with the addition of -msym flag
9576 if test "$GCC" = yes; then
9577 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9578 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580 else
9581 allow_undefined_flag=' -expect_unresolved \*'
9582 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9583 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~
9584 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d9898ee8 9585
b0322a85
CE
9586 # Both c and cxx compiler support -rpath directly
9587 hardcode_libdir_flag_spec='-rpath $libdir'
9588 fi
9589 archive_cmds_need_lc='no'
9590 hardcode_libdir_separator=:
9591 ;;
d9898ee8 9592
b0322a85
CE
9593 solaris*)
9594 no_undefined_flag=' -z defs'
9595 if test "$GCC" = yes; then
9596 wlarc='${wl}'
9597 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9600 else
9601 case `$CC -V 2>&1` in
9602 *"Compilers 5.0"*)
9603 wlarc=''
9604 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9606 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9607 ;;
9608 *)
9609 wlarc='${wl}'
9610 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9613 ;;
9614 esac
9615 fi
9616 hardcode_libdir_flag_spec='-R$libdir'
9617 hardcode_shlibpath_var=no
9618 case $host_os in
9619 solaris2.[0-5] | solaris2.[0-5].*) ;;
9620 *)
9621 # The compiler driver will combine and reorder linker options,
9622 # but understands `-z linker_flag'. GCC discards it without `$wl',
9623 # but is careful enough not to reorder.
9624 # Supported since Solaris 2.6 (maybe 2.5.1?)
9625 if test "$GCC" = yes; then
9626 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9627 else
9628 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9629 fi
9630 ;;
9631 esac
9632 link_all_deplibs=yes
9633 ;;
d9898ee8 9634
b0322a85
CE
9635 sunos4*)
9636 if test "x$host_vendor" = xsequent; then
9637 # Use $CC to link under sequent, because it throws in some extra .o
9638 # files that make .init and .fini sections work.
9639 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9640 else
9641 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9642 fi
9643 hardcode_libdir_flag_spec='-L$libdir'
9644 hardcode_direct=yes
9645 hardcode_minus_L=yes
9646 hardcode_shlibpath_var=no
9647 ;;
d9898ee8 9648
b0322a85
CE
9649 sysv4)
9650 case $host_vendor in
9651 sni)
9652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653 hardcode_direct=yes # is this really true???
9654 ;;
9655 siemens)
9656 ## LD is ld it makes a PLAMLIB
9657 ## CC just makes a GrossModule.
9658 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9659 reload_cmds='$CC -r -o $output$reload_objs'
9660 hardcode_direct=no
9661 ;;
9662 motorola)
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9665 ;;
9666 esac
9667 runpath_var='LD_RUN_PATH'
9668 hardcode_shlibpath_var=no
9669 ;;
d9898ee8 9670
b0322a85
CE
9671 sysv4.3*)
9672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_shlibpath_var=no
9674 export_dynamic_flag_spec='-Bexport'
9675 ;;
d9898ee8 9676
b0322a85
CE
9677 sysv4*MP*)
9678 if test -d /usr/nec; then
9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_shlibpath_var=no
9681 runpath_var=LD_RUN_PATH
9682 hardcode_runpath_var=yes
9683 ld_shlibs=yes
9684 fi
9685 ;;
d9898ee8 9686
b0322a85
CE
9687 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9688 no_undefined_flag='${wl}-z,text'
9689 archive_cmds_need_lc=no
9690 hardcode_shlibpath_var=no
9691 runpath_var='LD_RUN_PATH'
d9898ee8 9692
b0322a85
CE
9693 if test "$GCC" = yes; then
9694 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 else
9697 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 fi
9700 ;;
d9898ee8 9701
b0322a85
CE
9702 sysv5* | sco3.2v5* | sco5v6*)
9703 # Note: We can NOT use -z defs as we might desire, because we do not
9704 # link with -lc, and that would cause any symbols used from libc to
9705 # always be unresolved, which means just about no library would
9706 # ever link correctly. If we're not using GNU ld we use -z text
9707 # though, which does catch some bad symbols but isn't as heavy-handed
9708 # as -z defs.
9709 no_undefined_flag='${wl}-z,text'
9710 allow_undefined_flag='${wl}-z,nodefs'
9711 archive_cmds_need_lc=no
9712 hardcode_shlibpath_var=no
9713 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9714 hardcode_libdir_separator=':'
9715 link_all_deplibs=yes
9716 export_dynamic_flag_spec='${wl}-Bexport'
9717 runpath_var='LD_RUN_PATH'
d9898ee8 9718
b0322a85
CE
9719 if test "$GCC" = yes; then
9720 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 else
9723 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 fi
9726 ;;
d9898ee8 9727
b0322a85
CE
9728 uts4*)
9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_shlibpath_var=no
9732 ;;
d9898ee8 9733
b0322a85
CE
9734 *)
9735 ld_shlibs=no
9736 ;;
9737 esac
d9898ee8 9738
b0322a85
CE
9739 if test x$host_vendor = xsni; then
9740 case $host in
9741 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9742 export_dynamic_flag_spec='${wl}-Blargedynsym'
9743 ;;
9744 esac
9745 fi
9746 fi
d9898ee8 9747
b0322a85
CE
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9749$as_echo "$ld_shlibs" >&6; }
9750test "$ld_shlibs" = no && can_build_shared=no
dd184caf 9751
b0322a85 9752with_gnu_ld=$with_gnu_ld
d9898ee8 9753
d9898ee8 9754
d9898ee8 9755
d9898ee8 9756
d9898ee8 9757
d9898ee8 9758
d9898ee8 9759
d9898ee8 9760
9761
9762
9763
d9898ee8 9764
b0322a85
CE
9765
9766
9767
9768#
9769# Do we need to explicitly link libc?
9770#
9771case "x$archive_cmds_need_lc" in
9772x|xyes)
9773 # Assume -lc should be added
9774 archive_cmds_need_lc=yes
9775
9776 if test "$enable_shared" = yes && test "$GCC" = yes; then
9777 case $archive_cmds in
9778 *'~'*)
9779 # FIXME: we may have to deal with multi-command sequences.
9780 ;;
9781 '$CC '*)
9782 # Test whether the compiler implicitly links with -lc since on some
9783 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9784 # to ld, don't add -lc before -lgcc.
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9786$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9787if ${lt_cv_archive_cmds_need_lc+:} false; then :
8d138742
CE
9788 $as_echo_n "(cached) " >&6
9789else
b0322a85
CE
9790 $RM conftest*
9791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9792
b0322a85
CE
9793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9794 (eval $ac_compile) 2>&5
9795 ac_status=$?
9796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9797 test $ac_status = 0; } 2>conftest.err; then
9798 soname=conftest
9799 lib=conftest
9800 libobjs=conftest.$ac_objext
9801 deplibs=
9802 wl=$lt_prog_compiler_wl
9803 pic_flag=$lt_prog_compiler_pic
9804 compiler_flags=-v
9805 linker_flags=-v
9806 verstring=
9807 output_objdir=.
9808 libname=conftest
9809 lt_save_allow_undefined_flag=$allow_undefined_flag
9810 allow_undefined_flag=
9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9812 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9813 ac_status=$?
9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815 test $ac_status = 0; }
9816 then
9817 lt_cv_archive_cmds_need_lc=no
9818 else
9819 lt_cv_archive_cmds_need_lc=yes
9820 fi
9821 allow_undefined_flag=$lt_save_allow_undefined_flag
9822 else
9823 cat conftest.err 1>&5
9824 fi
9825 $RM conftest*
d9898ee8 9826
8d138742 9827fi
b0322a85
CE
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9829$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9830 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9831 ;;
9832 esac
9833 fi
9834 ;;
9835esac
d9898ee8 9836
d9898ee8 9837
d9898ee8 9838
d9898ee8 9839
d9898ee8 9840
d9898ee8 9841
d9898ee8 9842
9843
d9898ee8 9844
d9898ee8 9845
9846
dd184caf 9847
d9898ee8 9848
d9898ee8 9849
d9898ee8 9850
9851
d9898ee8 9852
d9898ee8 9853
d9898ee8 9854
d9898ee8 9855
d9898ee8 9856
d9898ee8 9857
d9898ee8 9858
d9898ee8 9859
d9898ee8 9860
d9898ee8 9861
d9898ee8 9862
d9898ee8 9863
ac40fd9e 9864
d9898ee8 9865
d9898ee8 9866
d9898ee8 9867
d9898ee8 9868
d9898ee8 9869
d9898ee8 9870
d9898ee8 9871
d9898ee8 9872
d9898ee8 9873
d9898ee8 9874
d9898ee8 9875
d9898ee8 9876
d9898ee8 9877
d9898ee8 9878
d9898ee8 9879
d9898ee8 9880
d9898ee8 9881
d9898ee8 9882
ac40fd9e 9883
d9898ee8 9884
d9898ee8 9885
d9898ee8 9886
d9898ee8 9887
d9898ee8 9888
d9898ee8 9889
d9898ee8 9890
d9898ee8 9891
d9898ee8 9892
d9898ee8 9893
d9898ee8 9894
9895
d9898ee8 9896
d9898ee8 9897
d9898ee8 9898
d9898ee8 9899
d9898ee8 9900
d9898ee8 9901
d9898ee8 9902
d9898ee8 9903
d9898ee8 9904
d9898ee8 9905
d9898ee8 9906
d9898ee8 9907
d9898ee8 9908
d9898ee8 9909
d9898ee8 9910
d9898ee8 9911
d9898ee8 9912
d9898ee8 9913
d9898ee8 9914
d9898ee8 9915
d9898ee8 9916
d9898ee8 9917
d9898ee8 9918
d9898ee8 9919
d9898ee8 9920
d9898ee8 9921
d9898ee8 9922
d9898ee8 9923
d9898ee8 9924
d9898ee8 9925
d9898ee8 9926
d9898ee8 9927
d9898ee8 9928
d9898ee8 9929
d9898ee8 9930
d9898ee8 9931
d9898ee8 9932
d9898ee8 9933
d9898ee8 9934
d9898ee8 9935
d9898ee8 9936
d9898ee8 9937
d9898ee8 9938
d9898ee8 9939
d9898ee8 9940
d9898ee8 9941
d9898ee8 9942
d9898ee8 9943
d9898ee8 9944
d9898ee8 9945
d9898ee8 9946
d9898ee8 9947
d9898ee8 9948
d9898ee8 9949
d9898ee8 9950
d9898ee8 9951
d9898ee8 9952
d9898ee8 9953
d9898ee8 9954
d9898ee8 9955
d9898ee8 9956
d9898ee8 9957
d9898ee8 9958
d9898ee8 9959
d9898ee8 9960
d9898ee8 9961
d9898ee8 9962
d9898ee8 9963
d9898ee8 9964
d9898ee8 9965
d9898ee8 9966
d9898ee8 9967
d9898ee8 9968
d9898ee8 9969
d9898ee8 9970
d9898ee8 9971
d9898ee8 9972
d9898ee8 9973
d9898ee8 9974
d9898ee8 9975
d9898ee8 9976
d9898ee8 9977
d9898ee8 9978
d9898ee8 9979
d9898ee8 9980
d9898ee8 9981
d9898ee8 9982
d9898ee8 9983
d9898ee8 9984
d9898ee8 9985
d9898ee8 9986
d9898ee8 9987
b0322a85 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
9989$as_echo_n "checking dynamic linker characteristics... " >&6; }
9990
9991if test "$GCC" = yes; then
9992 case $host_os in
9993 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9994 *) lt_awk_arg="/^libraries:/" ;;
9995 esac
b0322a85
CE
9996 case $host_os in
9997 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9998 *) lt_sed_strip_eq="s,=/,/,g" ;;
9999 esac
10000 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10001 case $lt_search_path_spec in
10002 *\;*)
8d138742
CE
10003 # if the path contains ";" then we assume it to be the separator
10004 # otherwise default to the standard path separator (i.e. ":") - it is
10005 # assumed that no part of a normal pathname contains ";" but that should
10006 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
10007 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10008 ;;
10009 *)
10010 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10011 ;;
10012 esac
8d138742
CE
10013 # Ok, now we have the path, separated by spaces, we can step through it
10014 # and add multilib dir if necessary.
10015 lt_tmp_lt_search_path_spec=
10016 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10017 for lt_sys_path in $lt_search_path_spec; do
10018 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10019 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10020 else
10021 test -d "$lt_sys_path" && \
10022 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10023 fi
10024 done
b0322a85 10025 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
8d138742
CE
10026BEGIN {RS=" "; FS="/|\n";} {
10027 lt_foo="";
10028 lt_count=0;
10029 for (lt_i = NF; lt_i > 0; lt_i--) {
10030 if ($lt_i != "" && $lt_i != ".") {
10031 if ($lt_i == "..") {
10032 lt_count++;
10033 } else {
10034 if (lt_count == 0) {
10035 lt_foo="/" $lt_i lt_foo;
10036 } else {
10037 lt_count--;
10038 }
10039 }
10040 }
10041 }
10042 if (lt_foo != "") { lt_freq[lt_foo]++; }
10043 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10044}'`
b0322a85
CE
10045 # AWK program above erroneously prepends '/' to C:/dos/paths
10046 # for these hosts.
10047 case $host_os in
10048 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10049 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10050 esac
10051 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
10052else
10053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
d9898ee8 10054fi
8d138742
CE
10055library_names_spec=
10056libname_spec='lib$name'
10057soname_spec=
10058shrext_cmds=".so"
10059postinstall_cmds=
10060postuninstall_cmds=
10061finish_cmds=
10062finish_eval=
10063shlibpath_var=
10064shlibpath_overrides_runpath=unknown
10065version_type=none
10066dynamic_linker="$host_os ld.so"
10067sys_lib_dlsearch_path_spec="/lib /usr/lib"
10068need_lib_prefix=unknown
10069hardcode_into_libs=no
d9898ee8 10070
8d138742
CE
10071# when you set need_version to no, make sure it does not cause -set_version
10072# flags to be left without arguments
10073need_version=unknown
d9898ee8 10074
8d138742
CE
10075case $host_os in
10076aix3*)
b0322a85 10077 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10079 shlibpath_var=LIBPATH
d9898ee8 10080
8d138742
CE
10081 # AIX 3 has no versioning support, so we append a major version to the name.
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 ;;
d9898ee8 10084
8d138742 10085aix[4-9]*)
b0322a85 10086 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10087 need_lib_prefix=no
10088 need_version=no
10089 hardcode_into_libs=yes
10090 if test "$host_cpu" = ia64; then
10091 # AIX 5 supports IA64
10092 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 else
10095 # With GCC up to 2.95.x, collect2 would create an import file
10096 # for dependence libraries. The import file would start with
10097 # the line `#! .'. This would cause the generated library to
10098 # depend on `.', always an invalid library. This was fixed in
10099 # development snapshots of GCC prior to 3.0.
10100 case $host_os in
10101 aix4 | aix4.[01] | aix4.[01].*)
10102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10103 echo ' yes '
10104 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10105 :
10106 else
10107 can_build_shared=no
10108 fi
10109 ;;
10110 esac
10111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10112 # soname into executable. Probably we can add versioning support to
10113 # collect2, so additional links can be useful in future.
10114 if test "$aix_use_runtimelinking" = yes; then
10115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10116 # instead of lib<name>.a to let people know that these are not
10117 # typical AIX shared libraries.
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 else
10120 # We preserve .a as extension for shared libraries through AIX4.2
10121 # and later when we are not doing run time linking.
10122 library_names_spec='${libname}${release}.a $libname.a'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 fi
10125 shlibpath_var=LIBPATH
10126 fi
10127 ;;
10128
10129amigaos*)
10130 case $host_cpu in
10131 powerpc)
10132 # Since July 2007 AmigaOS4 officially supports .so libraries.
10133 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 ;;
10136 m68k)
10137 library_names_spec='$libname.ixlibrary $libname.a'
10138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b0322a85 10139 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8d138742
CE
10140 ;;
10141 esac
10142 ;;
10143
10144beos*)
10145 library_names_spec='${libname}${shared_ext}'
10146 dynamic_linker="$host_os ld.so"
10147 shlibpath_var=LIBRARY_PATH
10148 ;;
10149
10150bsdi[45]*)
b0322a85 10151 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10152 need_version=no
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10159 # the default ld.so.conf also contains /usr/contrib/lib and
10160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10161 # libtool to hard-code these into programs
10162 ;;
d9898ee8 10163
8d138742
CE
10164cygwin* | mingw* | pw32* | cegcc*)
10165 version_type=windows
10166 shrext_cmds=".dll"
10167 need_version=no
10168 need_lib_prefix=no
d9898ee8 10169
b0322a85
CE
10170 case $GCC,$cc_basename in
10171 yes,*)
10172 # gcc
8d138742
CE
10173 library_names_spec='$libname.dll.a'
10174 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10175 postinstall_cmds='base_file=`basename \${file}`~
10176 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10177 dldir=$destdir/`dirname \$dlpath`~
10178 test -d \$dldir || mkdir -p \$dldir~
10179 $install_prog $dir/$dlname \$dldir/$dlname~
10180 chmod a+x \$dldir/$dlname~
10181 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10182 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10183 fi'
10184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10185 dlpath=$dir/\$dldll~
10186 $RM \$dlpath'
10187 shlibpath_overrides_runpath=yes
d9898ee8 10188
8d138742
CE
10189 case $host_os in
10190 cygwin*)
10191 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10192 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
b0322a85
CE
10193
10194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
8d138742
CE
10195 ;;
10196 mingw* | cegcc*)
10197 # MinGW DLLs use traditional 'lib' prefix
10198 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8d138742
CE
10199 ;;
10200 pw32*)
10201 # pw32 DLLs use 'pw' prefix rather than 'lib'
10202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 ;;
10204 esac
b0322a85
CE
10205 dynamic_linker='Win32 ld.exe'
10206 ;;
10207
10208 *,cl*)
10209 # Native MSVC
10210 libname_spec='$name'
10211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10212 library_names_spec='${libname}.dll.lib'
10213
10214 case $build_os in
10215 mingw*)
10216 sys_lib_search_path_spec=
10217 lt_save_ifs=$IFS
10218 IFS=';'
10219 for lt_path in $LIB
10220 do
10221 IFS=$lt_save_ifs
10222 # Let DOS variable expansion print the short 8.3 style file name.
10223 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10224 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10225 done
10226 IFS=$lt_save_ifs
10227 # Convert to MSYS style.
10228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10229 ;;
10230 cygwin*)
10231 # Convert to unix form, then to dos form, then back to unix form
10232 # but this time dos style (no spaces!) so that the unix form looks
10233 # like /cygdrive/c/PROGRA~1:/cygdr...
10234 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10235 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10236 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10237 ;;
10238 *)
10239 sys_lib_search_path_spec="$LIB"
10240 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10241 # It is most probably a Windows format PATH.
10242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10243 else
10244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10245 fi
10246 # FIXME: find the short name or the path components, as spaces are
10247 # common. (e.g. "Program Files" -> "PROGRA~1")
10248 ;;
10249 esac
10250
10251 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10252 postinstall_cmds='base_file=`basename \${file}`~
10253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10254 dldir=$destdir/`dirname \$dlpath`~
10255 test -d \$dldir || mkdir -p \$dldir~
10256 $install_prog $dir/$dlname \$dldir/$dlname'
10257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10258 dlpath=$dir/\$dldll~
10259 $RM \$dlpath'
10260 shlibpath_overrides_runpath=yes
10261 dynamic_linker='Win32 link.exe'
8d138742 10262 ;;
d9898ee8 10263
8d138742 10264 *)
b0322a85 10265 # Assume MSVC wrapper
8d138742 10266 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b0322a85 10267 dynamic_linker='Win32 ld.exe'
8d138742
CE
10268 ;;
10269 esac
8d138742
CE
10270 # FIXME: first we should search . and the directory the executable is in
10271 shlibpath_var=PATH
10272 ;;
d9898ee8 10273
8d138742
CE
10274darwin* | rhapsody*)
10275 dynamic_linker="$host_os dyld"
10276 version_type=darwin
10277 need_lib_prefix=no
10278 need_version=no
10279 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10280 soname_spec='${libname}${release}${major}$shared_ext'
10281 shlibpath_overrides_runpath=yes
10282 shlibpath_var=DYLD_LIBRARY_PATH
10283 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
d9898ee8 10284
8d138742
CE
10285 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10286 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10287 ;;
d9898ee8 10288
8d138742 10289dgux*)
b0322a85 10290 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10291 need_lib_prefix=no
10292 need_version=no
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 ;;
d9898ee8 10297
8d138742
CE
10298freebsd* | dragonfly*)
10299 # DragonFly does not have aout. When/if they implement a new
10300 # versioning mechanism, adjust this.
10301 if test -x /usr/bin/objformat; then
10302 objformat=`/usr/bin/objformat`
10303 else
10304 case $host_os in
b0322a85 10305 freebsd[23].*) objformat=aout ;;
8d138742
CE
10306 *) objformat=elf ;;
10307 esac
10308 fi
10309 version_type=freebsd-$objformat
10310 case $version_type in
10311 freebsd-elf*)
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10313 need_version=no
10314 need_lib_prefix=no
10315 ;;
10316 freebsd-*)
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10318 need_version=yes
10319 ;;
10320 esac
10321 shlibpath_var=LD_LIBRARY_PATH
10322 case $host_os in
b0322a85 10323 freebsd2.*)
8d138742
CE
10324 shlibpath_overrides_runpath=yes
10325 ;;
10326 freebsd3.[01]* | freebsdelf3.[01]*)
10327 shlibpath_overrides_runpath=yes
10328 hardcode_into_libs=yes
10329 ;;
10330 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10331 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10332 shlibpath_overrides_runpath=no
10333 hardcode_into_libs=yes
10334 ;;
10335 *) # from 4.6 on, and DragonFly
10336 shlibpath_overrides_runpath=yes
10337 hardcode_into_libs=yes
10338 ;;
10339 esac
10340 ;;
d9898ee8 10341
8d138742 10342gnu*)
b0322a85 10343 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10344 need_lib_prefix=no
10345 need_version=no
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 shlibpath_var=LD_LIBRARY_PATH
b0322a85
CE
10349 shlibpath_overrides_runpath=no
10350 hardcode_into_libs=yes
10351 ;;
10352
10353haiku*)
10354 version_type=linux # correct to gnu/linux during the next big refactor
10355 need_lib_prefix=no
10356 need_version=no
10357 dynamic_linker="$host_os runtime_loader"
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 shlibpath_var=LIBRARY_PATH
10361 shlibpath_overrides_runpath=yes
10362 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
8d138742
CE
10363 hardcode_into_libs=yes
10364 ;;
d9898ee8 10365
8d138742
CE
10366hpux9* | hpux10* | hpux11*)
10367 # Give a soname corresponding to the major version so that dld.sl refuses to
10368 # link against other versions.
10369 version_type=sunos
10370 need_lib_prefix=no
10371 need_version=no
10372 case $host_cpu in
10373 ia64*)
10374 shrext_cmds='.so'
10375 hardcode_into_libs=yes
10376 dynamic_linker="$host_os dld.so"
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380 soname_spec='${libname}${release}${shared_ext}$major'
10381 if test "X$HPUX_IA64_MODE" = X32; then
10382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10383 else
10384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10385 fi
10386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10387 ;;
10388 hppa*64*)
10389 shrext_cmds='.sl'
10390 hardcode_into_libs=yes
10391 dynamic_linker="$host_os dld.sl"
10392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10398 ;;
10399 *)
10400 shrext_cmds='.sl'
10401 dynamic_linker="$host_os dld.sl"
10402 shlibpath_var=SHLIB_PATH
10403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 ;;
10407 esac
b0322a85 10408 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
8d138742 10409 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
10410 # or fails outright, so override atomically:
10411 install_override_mode=555
8d138742 10412 ;;
d9898ee8 10413
8d138742 10414interix[3-9]*)
b0322a85 10415 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=no
10423 hardcode_into_libs=yes
10424 ;;
10425
10426irix5* | irix6* | nonstopux*)
10427 case $host_os in
10428 nonstopux*) version_type=nonstopux ;;
10429 *)
10430 if test "$lt_cv_prog_gnu_ld" = yes; then
b0322a85 10431 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10432 else
10433 version_type=irix
10434 fi ;;
d9898ee8 10435 esac
8d138742
CE
10436 need_lib_prefix=no
10437 need_version=no
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10440 case $host_os in
10441 irix5* | nonstopux*)
10442 libsuff= shlibsuff=
10443 ;;
10444 *)
10445 case $LD in # libtool.m4 will add one of these switches to LD
10446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10447 libsuff= shlibsuff= libmagic=32-bit;;
10448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10449 libsuff=32 shlibsuff=N32 libmagic=N32;;
10450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10452 *) libsuff= shlibsuff= libmagic=never-match;;
10453 esac
10454 ;;
10455 esac
10456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10457 shlibpath_overrides_runpath=no
10458 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10459 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10460 hardcode_into_libs=yes
10461 ;;
d9898ee8 10462
8d138742
CE
10463# No shared lib support for Linux oldld, aout, or coff.
10464linux*oldld* | linux*aout* | linux*coff*)
10465 dynamic_linker=no
10466 ;;
d9898ee8 10467
b0322a85
CE
10468# This must be glibc/ELF.
10469linux* | k*bsd*-gnu | kopensolaris*-gnu)
10470 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10471 need_lib_prefix=no
10472 need_version=no
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 shlibpath_overrides_runpath=no
b0322a85 10478
8d138742 10479 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
10480 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10481 $as_echo_n "(cached) " >&6
10482else
10483 lt_cv_shlibpath_overrides_runpath=no
10484 save_LDFLAGS=$LDFLAGS
10485 save_libdir=$libdir
10486 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10487 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 10489/* end confdefs.h. */
d9898ee8 10490
8d138742
CE
10491int
10492main ()
10493{
d9898ee8 10494
8d138742
CE
10495 ;
10496 return 0;
10497}
10498_ACEOF
b0322a85
CE
10499if ac_fn_c_try_link "$LINENO"; then :
10500 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10501 lt_cv_shlibpath_overrides_runpath=yes
8d138742 10502fi
b0322a85
CE
10503fi
10504rm -f core conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10506 LDFLAGS=$save_LDFLAGS
10507 libdir=$save_libdir
d9898ee8 10508
8d138742 10509fi
d9898ee8 10510
b0322a85 10511 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d9898ee8 10512
8d138742
CE
10513 # This implies no fast_install, which is unacceptable.
10514 # Some rework will be needed to allow for fast_install
10515 # before this can be enabled.
10516 hardcode_into_libs=yes
d9898ee8 10517
8d138742
CE
10518 # Add ABI-specific directories to the system library path.
10519 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 10520
8d138742
CE
10521 # Append ld.so.conf contents to the search path
10522 if test -f /etc/ld.so.conf; then
b0322a85 10523 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
8d138742 10524 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
b0322a85 10525
8d138742 10526 fi
d9898ee8 10527
8d138742
CE
10528 # We used to test for /lib/ld.so.1 and disable shared libraries on
10529 # powerpc, because MkLinux only supported shared libraries with the
10530 # GNU dynamic linker. Since this was broken with cross compilers,
10531 # most powerpc-linux boxes support dynamic linking these days and
10532 # people can always --disable-shared, the test was removed, and we
10533 # assume the GNU/Linux dynamic linker is in use.
10534 dynamic_linker='GNU/Linux ld.so'
10535 ;;
d9898ee8 10536
8d138742
CE
10537netbsd*)
10538 version_type=sunos
10539 need_lib_prefix=no
10540 need_version=no
10541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10544 dynamic_linker='NetBSD (a.out) ld.so'
10545 else
10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10547 soname_spec='${libname}${release}${shared_ext}$major'
10548 dynamic_linker='NetBSD ld.elf_so'
10549 fi
10550 shlibpath_var=LD_LIBRARY_PATH
10551 shlibpath_overrides_runpath=yes
10552 hardcode_into_libs=yes
10553 ;;
d9898ee8 10554
8d138742 10555newsos6)
b0322a85 10556 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=yes
10560 ;;
d9898ee8 10561
8d138742
CE
10562*nto* | *qnx*)
10563 version_type=qnx
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 shlibpath_overrides_runpath=no
10570 hardcode_into_libs=yes
10571 dynamic_linker='ldqnx.so'
10572 ;;
d9898ee8 10573
8d138742
CE
10574openbsd*)
10575 version_type=sunos
10576 sys_lib_dlsearch_path_spec="/usr/lib"
10577 need_lib_prefix=no
10578 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10579 case $host_os in
10580 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10581 *) need_version=no ;;
10582 esac
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 10587 case $host_os in
8d138742
CE
10588 openbsd2.[89] | openbsd2.[89].*)
10589 shlibpath_overrides_runpath=no
d9898ee8 10590 ;;
ac40fd9e 10591 *)
8d138742 10592 shlibpath_overrides_runpath=yes
ac40fd9e 10593 ;;
d9898ee8 10594 esac
8d138742
CE
10595 else
10596 shlibpath_overrides_runpath=yes
10597 fi
10598 ;;
d9898ee8 10599
8d138742
CE
10600os2*)
10601 libname_spec='$name'
10602 shrext_cmds=".dll"
10603 need_lib_prefix=no
10604 library_names_spec='$libname${shared_ext} $libname.a'
10605 dynamic_linker='OS/2 ld.exe'
10606 shlibpath_var=LIBPATH
10607 ;;
d9898ee8 10608
8d138742
CE
10609osf3* | osf4* | osf5*)
10610 version_type=osf
10611 need_lib_prefix=no
10612 need_version=no
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10617 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10618 ;;
ac40fd9e 10619
8d138742
CE
10620rdos*)
10621 dynamic_linker=no
10622 ;;
d9898ee8 10623
8d138742 10624solaris*)
b0322a85 10625 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10626 need_lib_prefix=no
10627 need_version=no
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath=yes
10632 hardcode_into_libs=yes
10633 # ldd complains unless libraries are executable
10634 postinstall_cmds='chmod +x $lib'
10635 ;;
d9898ee8 10636
8d138742
CE
10637sunos4*)
10638 version_type=sunos
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 shlibpath_overrides_runpath=yes
10643 if test "$with_gnu_ld" = yes; then
10644 need_lib_prefix=no
10645 fi
10646 need_version=yes
10647 ;;
d9898ee8 10648
8d138742 10649sysv4 | sysv4.3*)
b0322a85 10650 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 case $host_vendor in
10655 sni)
10656 shlibpath_overrides_runpath=no
10657 need_lib_prefix=no
10658 runpath_var=LD_RUN_PATH
d9898ee8 10659 ;;
8d138742
CE
10660 siemens)
10661 need_lib_prefix=no
d9898ee8 10662 ;;
8d138742
CE
10663 motorola)
10664 need_lib_prefix=no
10665 need_version=no
10666 shlibpath_overrides_runpath=no
10667 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
d9898ee8 10668 ;;
8d138742
CE
10669 esac
10670 ;;
d9898ee8 10671
8d138742
CE
10672sysv4*MP*)
10673 if test -d /usr/nec ;then
b0322a85 10674 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10675 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10676 soname_spec='$libname${shared_ext}.$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 fi
10679 ;;
d9898ee8 10680
8d138742
CE
10681sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10682 version_type=freebsd-elf
10683 need_lib_prefix=no
10684 need_version=no
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 shlibpath_var=LD_LIBRARY_PATH
10688 shlibpath_overrides_runpath=yes
10689 hardcode_into_libs=yes
10690 if test "$with_gnu_ld" = yes; then
10691 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10692 else
10693 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10694 case $host_os in
10695 sco3.2v5*)
10696 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10697 ;;
d9898ee8 10698 esac
10699 fi
8d138742
CE
10700 sys_lib_dlsearch_path_spec='/usr/lib'
10701 ;;
d9898ee8 10702
8d138742
CE
10703tpf*)
10704 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 10705 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10706 need_lib_prefix=no
10707 need_version=no
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=no
10711 hardcode_into_libs=yes
10712 ;;
d9898ee8 10713
8d138742 10714uts4*)
b0322a85 10715 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 ;;
d9898ee8 10720
8d138742
CE
10721*)
10722 dynamic_linker=no
10723 ;;
10724esac
b0322a85 10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742
CE
10726$as_echo "$dynamic_linker" >&6; }
10727test "$dynamic_linker" = no && can_build_shared=no
d9898ee8 10728
8d138742
CE
10729variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10730if test "$GCC" = yes; then
10731 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d9898ee8 10732fi
d9898ee8 10733
8d138742
CE
10734if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10735 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 10736fi
8d138742
CE
10737if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10738 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 10739fi
d9898ee8 10740
d9898ee8 10741
d9898ee8 10742
d9898ee8 10743
10744
d9898ee8 10745
d9898ee8 10746
d9898ee8 10747
10748
d9898ee8 10749
d9898ee8 10750
d9898ee8 10751
d9898ee8 10752
d9898ee8 10753
d9898ee8 10754
d9898ee8 10755
d9898ee8 10756
d9898ee8 10757
d9898ee8 10758
d9898ee8 10759
d9898ee8 10760
d9898ee8 10761
d9898ee8 10762
d9898ee8 10763
d9898ee8 10764
d9898ee8 10765
d9898ee8 10766
d9898ee8 10767
d9898ee8 10768
d9898ee8 10769
d9898ee8 10770
d9898ee8 10771
d9898ee8 10772
d9898ee8 10773
d9898ee8 10774
d9898ee8 10775
d9898ee8 10776
d9898ee8 10777
d9898ee8 10778
d9898ee8 10779
d9898ee8 10780
d9898ee8 10781
d9898ee8 10782
dd184caf 10783
dd184caf 10784
d9898ee8 10785
d9898ee8 10786
d9898ee8 10787
d9898ee8 10788
dd184caf 10789
dd184caf 10790
d9898ee8 10791
d9898ee8 10792
d9898ee8 10793
d9898ee8 10794
d9898ee8 10795
d9898ee8 10796
d9898ee8 10797
d9898ee8 10798
d9898ee8 10799
d9898ee8 10800
d9898ee8 10801
d9898ee8 10802
d9898ee8 10803
d9898ee8 10804
d9898ee8 10805
d9898ee8 10806
d9898ee8 10807
d9898ee8 10808
d9898ee8 10809
d9898ee8 10810
d9898ee8 10811
d9898ee8 10812
d9898ee8 10813
d9898ee8 10814
d9898ee8 10815
b0322a85
CE
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10833$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10834hardcode_action=
10835if test -n "$hardcode_libdir_flag_spec" ||
10836 test -n "$runpath_var" ||
10837 test "X$hardcode_automatic" = "Xyes" ; then
10838
10839 # We can hardcode non-existent directories.
10840 if test "$hardcode_direct" != no &&
10841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10842 # have to relink, otherwise we might link with an installed library
10843 # when we should be linking with a yet-to-be-installed one
10844 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10845 test "$hardcode_minus_L" != no; then
10846 # Linking always hardcodes the temporary library directory.
10847 hardcode_action=relink
10848 else
10849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10850 hardcode_action=immediate
10851 fi
10852else
10853 # We cannot hardcode anything, or else we can only hardcode existing
10854 # directories.
10855 hardcode_action=unsupported
10856fi
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10858$as_echo "$hardcode_action" >&6; }
10859
10860if test "$hardcode_action" = relink ||
10861 test "$inherit_rpath" = yes; then
10862 # Fast installation is not supported
10863 enable_fast_install=no
10864elif test "$shlibpath_overrides_runpath" = yes ||
10865 test "$enable_shared" = no; then
10866 # Fast installation is not necessary
10867 enable_fast_install=needless
10868fi
10869
10870
10871
10872
10873
10874
10875 if test "x$enable_dlopen" != xyes; then
10876 enable_dlopen=unknown
10877 enable_dlopen_self=unknown
10878 enable_dlopen_self_static=unknown
10879else
10880 lt_cv_dlopen=no
10881 lt_cv_dlopen_libs=
10882
10883 case $host_os in
10884 beos*)
10885 lt_cv_dlopen="load_add_on"
10886 lt_cv_dlopen_libs=
10887 lt_cv_dlopen_self=yes
10888 ;;
10889
10890 mingw* | pw32* | cegcc*)
10891 lt_cv_dlopen="LoadLibrary"
10892 lt_cv_dlopen_libs=
10893 ;;
10894
10895 cygwin*)
10896 lt_cv_dlopen="dlopen"
10897 lt_cv_dlopen_libs=
10898 ;;
10899
10900 darwin*)
10901 # if libdl is installed we need to link against it
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10903$as_echo_n "checking for dlopen in -ldl... " >&6; }
10904if ${ac_cv_lib_dl_dlopen+:} false; then :
10905 $as_echo_n "(cached) " >&6
10906else
10907 ac_check_lib_save_LIBS=$LIBS
10908LIBS="-ldl $LIBS"
10909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910/* end confdefs.h. */
10911
10912/* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915#ifdef __cplusplus
10916extern "C"
10917#endif
10918char dlopen ();
10919int
10920main ()
10921{
10922return dlopen ();
10923 ;
10924 return 0;
10925}
10926_ACEOF
10927if ac_fn_c_try_link "$LINENO"; then :
10928 ac_cv_lib_dl_dlopen=yes
10929else
10930 ac_cv_lib_dl_dlopen=no
10931fi
10932rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934LIBS=$ac_check_lib_save_LIBS
10935fi
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10937$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10938if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10940else
10941
10942 lt_cv_dlopen="dyld"
10943 lt_cv_dlopen_libs=
10944 lt_cv_dlopen_self=yes
10945
10946fi
10947
10948 ;;
10949
10950 *)
10951 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10952if test "x$ac_cv_func_shl_load" = xyes; then :
10953 lt_cv_dlopen="shl_load"
10954else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10956$as_echo_n "checking for shl_load in -ldld... " >&6; }
10957if ${ac_cv_lib_dld_shl_load+:} false; then :
10958 $as_echo_n "(cached) " >&6
10959else
10960 ac_check_lib_save_LIBS=$LIBS
10961LIBS="-ldld $LIBS"
10962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963/* end confdefs.h. */
10964
10965/* Override any GCC internal prototype to avoid an error.
10966 Use char because int might match the return type of a GCC
10967 builtin and then its argument prototype would still apply. */
10968#ifdef __cplusplus
10969extern "C"
10970#endif
10971char shl_load ();
10972int
10973main ()
10974{
10975return shl_load ();
10976 ;
10977 return 0;
10978}
10979_ACEOF
10980if ac_fn_c_try_link "$LINENO"; then :
10981 ac_cv_lib_dld_shl_load=yes
10982else
10983 ac_cv_lib_dld_shl_load=no
10984fi
10985rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987LIBS=$ac_check_lib_save_LIBS
10988fi
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10990$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10991if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10992 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10993else
10994 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10995if test "x$ac_cv_func_dlopen" = xyes; then :
10996 lt_cv_dlopen="dlopen"
10997else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10999$as_echo_n "checking for dlopen in -ldl... " >&6; }
11000if ${ac_cv_lib_dl_dlopen+:} false; then :
11001 $as_echo_n "(cached) " >&6
11002else
11003 ac_check_lib_save_LIBS=$LIBS
11004LIBS="-ldl $LIBS"
11005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h. */
11007
11008/* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11011#ifdef __cplusplus
11012extern "C"
11013#endif
11014char dlopen ();
11015int
11016main ()
11017{
11018return dlopen ();
11019 ;
11020 return 0;
11021}
11022_ACEOF
11023if ac_fn_c_try_link "$LINENO"; then :
11024 ac_cv_lib_dl_dlopen=yes
11025else
11026 ac_cv_lib_dl_dlopen=no
11027fi
11028rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11030LIBS=$ac_check_lib_save_LIBS
11031fi
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11033$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11034if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11036else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11038$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11039if ${ac_cv_lib_svld_dlopen+:} false; then :
11040 $as_echo_n "(cached) " >&6
11041else
11042 ac_check_lib_save_LIBS=$LIBS
11043LIBS="-lsvld $LIBS"
11044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045/* end confdefs.h. */
11046
11047/* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11050#ifdef __cplusplus
11051extern "C"
11052#endif
11053char dlopen ();
11054int
11055main ()
11056{
11057return dlopen ();
11058 ;
11059 return 0;
11060}
11061_ACEOF
11062if ac_fn_c_try_link "$LINENO"; then :
11063 ac_cv_lib_svld_dlopen=yes
11064else
11065 ac_cv_lib_svld_dlopen=no
11066fi
11067rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069LIBS=$ac_check_lib_save_LIBS
11070fi
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11072$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11073if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11075else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11077$as_echo_n "checking for dld_link in -ldld... " >&6; }
11078if ${ac_cv_lib_dld_dld_link+:} false; then :
11079 $as_echo_n "(cached) " >&6
11080else
11081 ac_check_lib_save_LIBS=$LIBS
11082LIBS="-ldld $LIBS"
11083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084/* end confdefs.h. */
11085
11086/* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11089#ifdef __cplusplus
11090extern "C"
11091#endif
11092char dld_link ();
11093int
11094main ()
11095{
11096return dld_link ();
11097 ;
11098 return 0;
11099}
11100_ACEOF
11101if ac_fn_c_try_link "$LINENO"; then :
11102 ac_cv_lib_dld_dld_link=yes
11103else
11104 ac_cv_lib_dld_dld_link=no
11105fi
11106rm -f core conftest.err conftest.$ac_objext \
11107 conftest$ac_exeext conftest.$ac_ext
11108LIBS=$ac_check_lib_save_LIBS
11109fi
11110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11111$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11112if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11113 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11114fi
11115
11116
11117fi
11118
11119
11120fi
11121
11122
11123fi
11124
11125
11126fi
11127
11128
11129fi
11130
11131 ;;
11132 esac
11133
11134 if test "x$lt_cv_dlopen" != xno; then
11135 enable_dlopen=yes
11136 else
11137 enable_dlopen=no
11138 fi
11139
11140 case $lt_cv_dlopen in
11141 dlopen)
11142 save_CPPFLAGS="$CPPFLAGS"
11143 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11144
11145 save_LDFLAGS="$LDFLAGS"
11146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11147
11148 save_LIBS="$LIBS"
11149 LIBS="$lt_cv_dlopen_libs $LIBS"
11150
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11152$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11153if ${lt_cv_dlopen_self+:} false; then :
11154 $as_echo_n "(cached) " >&6
11155else
11156 if test "$cross_compiling" = yes; then :
11157 lt_cv_dlopen_self=cross
11158else
11159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11160 lt_status=$lt_dlunknown
11161 cat > conftest.$ac_ext <<_LT_EOF
11162#line $LINENO "configure"
11163#include "confdefs.h"
11164
11165#if HAVE_DLFCN_H
11166#include <dlfcn.h>
11167#endif
11168
11169#include <stdio.h>
11170
11171#ifdef RTLD_GLOBAL
11172# define LT_DLGLOBAL RTLD_GLOBAL
11173#else
11174# ifdef DL_GLOBAL
11175# define LT_DLGLOBAL DL_GLOBAL
11176# else
11177# define LT_DLGLOBAL 0
11178# endif
11179#endif
11180
11181/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11182 find out it does not work in some platform. */
11183#ifndef LT_DLLAZY_OR_NOW
11184# ifdef RTLD_LAZY
11185# define LT_DLLAZY_OR_NOW RTLD_LAZY
11186# else
11187# ifdef DL_LAZY
11188# define LT_DLLAZY_OR_NOW DL_LAZY
11189# else
11190# ifdef RTLD_NOW
11191# define LT_DLLAZY_OR_NOW RTLD_NOW
11192# else
11193# ifdef DL_NOW
11194# define LT_DLLAZY_OR_NOW DL_NOW
11195# else
11196# define LT_DLLAZY_OR_NOW 0
11197# endif
11198# endif
11199# endif
11200# endif
11201#endif
11202
11203/* When -fvisbility=hidden is used, assume the code has been annotated
11204 correspondingly for the symbols needed. */
11205#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11206int fnord () __attribute__((visibility("default")));
11207#endif
11208
11209int fnord () { return 42; }
11210int main ()
11211{
11212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11213 int status = $lt_dlunknown;
11214
11215 if (self)
11216 {
11217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11218 else
11219 {
11220 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11221 else puts (dlerror ());
11222 }
11223 /* dlclose (self); */
11224 }
11225 else
11226 puts (dlerror ());
11227
11228 return status;
11229}
11230_LT_EOF
11231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11232 (eval $ac_link) 2>&5
11233 ac_status=$?
11234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11235 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11236 (./conftest; exit; ) >&5 2>/dev/null
11237 lt_status=$?
11238 case x$lt_status in
11239 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11240 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11241 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11242 esac
11243 else :
11244 # compilation failed
11245 lt_cv_dlopen_self=no
11246 fi
11247fi
11248rm -fr conftest*
11249
11250
11251fi
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11253$as_echo "$lt_cv_dlopen_self" >&6; }
11254
11255 if test "x$lt_cv_dlopen_self" = xyes; then
11256 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11258$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11259if ${lt_cv_dlopen_self_static+:} false; then :
11260 $as_echo_n "(cached) " >&6
11261else
11262 if test "$cross_compiling" = yes; then :
11263 lt_cv_dlopen_self_static=cross
11264else
11265 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11266 lt_status=$lt_dlunknown
11267 cat > conftest.$ac_ext <<_LT_EOF
11268#line $LINENO "configure"
11269#include "confdefs.h"
11270
11271#if HAVE_DLFCN_H
11272#include <dlfcn.h>
11273#endif
11274
11275#include <stdio.h>
11276
11277#ifdef RTLD_GLOBAL
11278# define LT_DLGLOBAL RTLD_GLOBAL
11279#else
11280# ifdef DL_GLOBAL
11281# define LT_DLGLOBAL DL_GLOBAL
11282# else
11283# define LT_DLGLOBAL 0
11284# endif
11285#endif
11286
11287/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11288 find out it does not work in some platform. */
11289#ifndef LT_DLLAZY_OR_NOW
11290# ifdef RTLD_LAZY
11291# define LT_DLLAZY_OR_NOW RTLD_LAZY
11292# else
11293# ifdef DL_LAZY
11294# define LT_DLLAZY_OR_NOW DL_LAZY
11295# else
11296# ifdef RTLD_NOW
11297# define LT_DLLAZY_OR_NOW RTLD_NOW
11298# else
11299# ifdef DL_NOW
11300# define LT_DLLAZY_OR_NOW DL_NOW
11301# else
11302# define LT_DLLAZY_OR_NOW 0
11303# endif
11304# endif
11305# endif
11306# endif
11307#endif
11308
11309/* When -fvisbility=hidden is used, assume the code has been annotated
11310 correspondingly for the symbols needed. */
11311#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11312int fnord () __attribute__((visibility("default")));
11313#endif
11314
11315int fnord () { return 42; }
11316int main ()
11317{
11318 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11319 int status = $lt_dlunknown;
11320
11321 if (self)
11322 {
11323 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11324 else
11325 {
11326 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11327 else puts (dlerror ());
11328 }
11329 /* dlclose (self); */
11330 }
11331 else
11332 puts (dlerror ());
11333
11334 return status;
11335}
11336_LT_EOF
11337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11338 (eval $ac_link) 2>&5
11339 ac_status=$?
11340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11341 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11342 (./conftest; exit; ) >&5 2>/dev/null
11343 lt_status=$?
11344 case x$lt_status in
11345 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11346 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11347 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11348 esac
11349 else :
11350 # compilation failed
11351 lt_cv_dlopen_self_static=no
11352 fi
11353fi
11354rm -fr conftest*
11355
11356
11357fi
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11359$as_echo "$lt_cv_dlopen_self_static" >&6; }
11360 fi
11361
11362 CPPFLAGS="$save_CPPFLAGS"
11363 LDFLAGS="$save_LDFLAGS"
11364 LIBS="$save_LIBS"
11365 ;;
11366 esac
11367
11368 case $lt_cv_dlopen_self in
11369 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11370 *) enable_dlopen_self=unknown ;;
11371 esac
11372
11373 case $lt_cv_dlopen_self_static in
11374 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11375 *) enable_dlopen_self_static=unknown ;;
11376 esac
11377fi
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395striplib=
11396old_striplib=
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11398$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11399if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11403$as_echo "yes" >&6; }
11404else
11405# FIXME - insert some real tests, host_os isn't really good enough
11406 case $host_os in
11407 darwin*)
11408 if test -n "$STRIP" ; then
11409 striplib="$STRIP -x"
11410 old_striplib="$STRIP -S"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11412$as_echo "yes" >&6; }
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415$as_echo "no" >&6; }
11416 fi
11417 ;;
11418 *)
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420$as_echo "no" >&6; }
11421 ;;
11422 esac
11423fi
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436 # Report which library types will actually be built
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11438$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11440$as_echo "$can_build_shared" >&6; }
11441
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11443$as_echo_n "checking whether to build shared libraries... " >&6; }
11444 test "$can_build_shared" = "no" && enable_shared=no
11445
11446 # On AIX, shared libraries and static libraries use the same namespace, and
11447 # are all built from PIC.
11448 case $host_os in
11449 aix3*)
11450 test "$enable_shared" = yes && enable_static=no
11451 if test -n "$RANLIB"; then
11452 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11453 postinstall_cmds='$RANLIB $lib'
11454 fi
11455 ;;
11456
11457 aix[4-9]*)
11458 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11459 test "$enable_shared" = yes && enable_static=no
11460 fi
11461 ;;
11462 esac
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11464$as_echo "$enable_shared" >&6; }
11465
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11467$as_echo_n "checking whether to build static libraries... " >&6; }
11468 # Make sure either enable_shared or enable_static is yes.
11469 test "$enable_shared" = yes || enable_static=yes
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11471$as_echo "$enable_static" >&6; }
11472
11473
11474
11475
11476fi
11477ac_ext=c
11478ac_cpp='$CPP $CPPFLAGS'
11479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11481ac_compiler_gnu=$ac_cv_c_compiler_gnu
11482
11483CC="$lt_save_CC"
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499 ac_config_commands="$ac_config_commands libtool"
11500
11501
11502
11503
11504# Only expand once:
11505
11506
11507
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11509$as_echo_n "checking whether ln -s works... " >&6; }
11510LN_S=$as_ln_s
11511if test "$LN_S" = "ln -s"; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11513$as_echo "yes" >&6; }
11514else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11516$as_echo "no, using $LN_S" >&6; }
11517fi
11518
11519ac_ext=c
11520ac_cpp='$CPP $CPPFLAGS'
11521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11523ac_compiler_gnu=$ac_cv_c_compiler_gnu
11524if test -n "$ac_tool_prefix"; then
11525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11526set dummy ${ac_tool_prefix}gcc; ac_word=$2
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11528$as_echo_n "checking for $ac_word... " >&6; }
11529if ${ac_cv_prog_CC+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531else
11532 if test -n "$CC"; then
11533 ac_cv_prog_CC="$CC" # Let the user override the test.
11534else
11535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536for as_dir in $PATH
11537do
11538 IFS=$as_save_IFS
11539 test -z "$as_dir" && as_dir=.
11540 for ac_exec_ext in '' $ac_executable_extensions; do
11541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 break 2
11545 fi
11546done
11547 done
11548IFS=$as_save_IFS
11549
11550fi
11551fi
11552CC=$ac_cv_prog_CC
11553if test -n "$CC"; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11555$as_echo "$CC" >&6; }
11556else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558$as_echo "no" >&6; }
11559fi
11560
11561
11562fi
11563if test -z "$ac_cv_prog_CC"; then
11564 ac_ct_CC=$CC
11565 # Extract the first word of "gcc", so it can be a program name with args.
11566set dummy gcc; ac_word=$2
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568$as_echo_n "checking for $ac_word... " >&6; }
11569if ${ac_cv_prog_ac_ct_CC+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571else
11572 if test -n "$ac_ct_CC"; then
11573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11574else
11575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576for as_dir in $PATH
11577do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11582 ac_cv_prog_ac_ct_CC="gcc"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11585 fi
11586done
11587 done
11588IFS=$as_save_IFS
11589
11590fi
11591fi
11592ac_ct_CC=$ac_cv_prog_ac_ct_CC
11593if test -n "$ac_ct_CC"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11595$as_echo "$ac_ct_CC" >&6; }
11596else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598$as_echo "no" >&6; }
11599fi
11600
11601 if test "x$ac_ct_CC" = x; then
11602 CC=""
11603 else
11604 case $cross_compiling:$ac_tool_warned in
11605yes:)
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11608ac_tool_warned=yes ;;
11609esac
11610 CC=$ac_ct_CC
11611 fi
11612else
11613 CC="$ac_cv_prog_CC"
11614fi
11615
11616if test -z "$CC"; then
11617 if test -n "$ac_tool_prefix"; then
11618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11619set dummy ${ac_tool_prefix}cc; ac_word=$2
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621$as_echo_n "checking for $ac_word... " >&6; }
11622if ${ac_cv_prog_CC+:} false; then :
11623 $as_echo_n "(cached) " >&6
11624else
11625 if test -n "$CC"; then
11626 ac_cv_prog_CC="$CC" # Let the user override the test.
11627else
11628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629for as_dir in $PATH
11630do
11631 IFS=$as_save_IFS
11632 test -z "$as_dir" && as_dir=.
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11635 ac_cv_prog_CC="${ac_tool_prefix}cc"
11636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11637 break 2
11638 fi
11639done
11640 done
11641IFS=$as_save_IFS
11642
11643fi
11644fi
11645CC=$ac_cv_prog_CC
11646if test -n "$CC"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11648$as_echo "$CC" >&6; }
11649else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
11652fi
11653
11654
11655 fi
11656fi
11657if test -z "$CC"; then
11658 # Extract the first word of "cc", so it can be a program name with args.
11659set dummy cc; ac_word=$2
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11661$as_echo_n "checking for $ac_word... " >&6; }
11662if ${ac_cv_prog_CC+:} false; then :
11663 $as_echo_n "(cached) " >&6
11664else
11665 if test -n "$CC"; then
11666 ac_cv_prog_CC="$CC" # Let the user override the test.
11667else
11668 ac_prog_rejected=no
11669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670for as_dir in $PATH
11671do
11672 IFS=$as_save_IFS
11673 test -z "$as_dir" && as_dir=.
11674 for ac_exec_ext in '' $ac_executable_extensions; do
11675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11677 ac_prog_rejected=yes
11678 continue
11679 fi
11680 ac_cv_prog_CC="cc"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 break 2
11683 fi
11684done
11685 done
11686IFS=$as_save_IFS
11687
11688if test $ac_prog_rejected = yes; then
11689 # We found a bogon in the path, so make sure we never use it.
11690 set dummy $ac_cv_prog_CC
11691 shift
11692 if test $# != 0; then
11693 # We chose a different compiler from the bogus one.
11694 # However, it has the same basename, so the bogon will be chosen
11695 # first if we set CC to just the basename; use the full file name.
11696 shift
11697 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
d9898ee8 11698 fi
8d138742 11699fi
8d138742 11700fi
b0322a85
CE
11701fi
11702CC=$ac_cv_prog_CC
11703if test -n "$CC"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11705$as_echo "$CC" >&6; }
8d138742 11706else
b0322a85
CE
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
11709fi
d9898ee8 11710
d9898ee8 11711
b0322a85
CE
11712fi
11713if test -z "$CC"; then
11714 if test -n "$ac_tool_prefix"; then
11715 for ac_prog in cl.exe
11716 do
11717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720$as_echo_n "checking for $ac_word... " >&6; }
11721if ${ac_cv_prog_CC+:} false; then :
8d138742
CE
11722 $as_echo_n "(cached) " >&6
11723else
b0322a85
CE
11724 if test -n "$CC"; then
11725 ac_cv_prog_CC="$CC" # Let the user override the test.
8d138742 11726else
b0322a85
CE
11727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728for as_dir in $PATH
11729do
11730 IFS=$as_save_IFS
11731 test -z "$as_dir" && as_dir=.
11732 for ac_exec_ext in '' $ac_executable_extensions; do
11733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 break 2
11737 fi
11738done
11739 done
11740IFS=$as_save_IFS
d9898ee8 11741
8d138742 11742fi
8d138742 11743fi
b0322a85
CE
11744CC=$ac_cv_prog_CC
11745if test -n "$CC"; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11747$as_echo "$CC" >&6; }
8d138742 11748else
b0322a85
CE
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750$as_echo "no" >&6; }
8d138742 11751fi
d9898ee8 11752
d9898ee8 11753
b0322a85
CE
11754 test -n "$CC" && break
11755 done
11756fi
11757if test -z "$CC"; then
11758 ac_ct_CC=$CC
11759 for ac_prog in cl.exe
11760do
11761 # Extract the first word of "$ac_prog", so it can be a program name with args.
11762set dummy $ac_prog; ac_word=$2
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764$as_echo_n "checking for $ac_word... " >&6; }
11765if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742
CE
11766 $as_echo_n "(cached) " >&6
11767else
b0322a85
CE
11768 if test -n "$ac_ct_CC"; then
11769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11770else
11771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772for as_dir in $PATH
11773do
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778 ac_cv_prog_ac_ct_CC="$ac_prog"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780 break 2
11781 fi
11782done
11783 done
11784IFS=$as_save_IFS
8d138742 11785
b0322a85
CE
11786fi
11787fi
11788ac_ct_CC=$ac_cv_prog_ac_ct_CC
11789if test -n "$ac_ct_CC"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11791$as_echo "$ac_ct_CC" >&6; }
11792else
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794$as_echo "no" >&6; }
11795fi
8d138742 11796
8d138742 11797
b0322a85
CE
11798 test -n "$ac_ct_CC" && break
11799done
8d138742 11800
b0322a85
CE
11801 if test "x$ac_ct_CC" = x; then
11802 CC=""
11803 else
11804 case $cross_compiling:$ac_tool_warned in
11805yes:)
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11808ac_tool_warned=yes ;;
8d138742 11809esac
b0322a85
CE
11810 CC=$ac_ct_CC
11811 fi
8d138742 11812fi
ac40fd9e 11813
8d138742 11814fi
d9898ee8 11815
b0322a85
CE
11816
11817test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11819as_fn_error $? "no acceptable C compiler found in \$PATH
11820See \`config.log' for more details" "$LINENO" 5; }
11821
11822# Provide some information about the compiler.
11823$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11824set X $ac_compile
11825ac_compiler=$2
11826for ac_option in --version -v -V -qversion; do
11827 { { ac_try="$ac_compiler $ac_option >&5"
8d138742
CE
11828case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831esac
b0322a85
CE
11832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11833$as_echo "$ac_try_echo"; } >&5
11834 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8d138742 11835 ac_status=$?
b0322a85
CE
11836 if test -s conftest.err; then
11837 sed '10a\
11838... rest of stderr output deleted ...
11839 10q' conftest.err >conftest.er1
11840 cat conftest.er1 >&5
11841 fi
11842 rm -f conftest.er1 conftest.err
11843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11844 test $ac_status = 0; }
11845done
d9898ee8 11846
b0322a85
CE
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11848$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11849if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742
CE
11850 $as_echo_n "(cached) " >&6
11851else
b0322a85 11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11853/* end confdefs.h. */
8d138742
CE
11854
11855int
11856main ()
11857{
b0322a85
CE
11858#ifndef __GNUC__
11859 choke me
11860#endif
11861
8d138742
CE
11862 ;
11863 return 0;
11864}
11865_ACEOF
b0322a85
CE
11866if ac_fn_c_try_compile "$LINENO"; then :
11867 ac_compiler_gnu=yes
8d138742 11868else
b0322a85 11869 ac_compiler_gnu=no
8d138742 11870fi
b0322a85
CE
11871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872ac_cv_c_compiler_gnu=$ac_compiler_gnu
d9898ee8 11873
8d138742 11874fi
b0322a85
CE
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11876$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11877if test $ac_compiler_gnu = yes; then
11878 GCC=yes
8d138742 11879else
b0322a85
CE
11880 GCC=
11881fi
11882ac_test_CFLAGS=${CFLAGS+set}
11883ac_save_CFLAGS=$CFLAGS
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11885$as_echo_n "checking whether $CC accepts -g... " >&6; }
11886if ${ac_cv_prog_cc_g+:} false; then :
8d138742
CE
11887 $as_echo_n "(cached) " >&6
11888else
b0322a85
CE
11889 ac_save_c_werror_flag=$ac_c_werror_flag
11890 ac_c_werror_flag=yes
11891 ac_cv_prog_cc_g=no
11892 CFLAGS="-g"
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11894/* end confdefs.h. */
d9898ee8 11895
8d138742
CE
11896int
11897main ()
11898{
b0322a85 11899
8d138742
CE
11900 ;
11901 return 0;
11902}
11903_ACEOF
b0322a85
CE
11904if ac_fn_c_try_compile "$LINENO"; then :
11905 ac_cv_prog_cc_g=yes
8d138742 11906else
b0322a85
CE
11907 CFLAGS=""
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909/* end confdefs.h. */
d9898ee8 11910
b0322a85
CE
11911int
11912main ()
11913{
d9898ee8 11914
b0322a85
CE
11915 ;
11916 return 0;
11917}
8d138742 11918_ACEOF
b0322a85
CE
11919if ac_fn_c_try_compile "$LINENO"; then :
11920
11921else
11922 ac_c_werror_flag=$ac_save_c_werror_flag
11923 CFLAGS="-g"
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11925/* end confdefs.h. */
d9898ee8 11926
8d138742
CE
11927int
11928main ()
11929{
b0322a85 11930
8d138742
CE
11931 ;
11932 return 0;
11933}
11934_ACEOF
b0322a85
CE
11935if ac_fn_c_try_compile "$LINENO"; then :
11936 ac_cv_prog_cc_g=yes
8d138742 11937fi
b0322a85 11938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 11939fi
b0322a85
CE
11940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941fi
11942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 ac_c_werror_flag=$ac_save_c_werror_flag
11944fi
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11946$as_echo "$ac_cv_prog_cc_g" >&6; }
11947if test "$ac_test_CFLAGS" = set; then
11948 CFLAGS=$ac_save_CFLAGS
11949elif test $ac_cv_prog_cc_g = yes; then
11950 if test "$GCC" = yes; then
11951 CFLAGS="-g -O2"
11952 else
11953 CFLAGS="-g"
11954 fi
8d138742 11955else
b0322a85
CE
11956 if test "$GCC" = yes; then
11957 CFLAGS="-O2"
11958 else
11959 CFLAGS=
11960 fi
11961fi
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11963$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11964if ${ac_cv_prog_cc_c89+:} false; then :
8d138742
CE
11965 $as_echo_n "(cached) " >&6
11966else
b0322a85
CE
11967 ac_cv_prog_cc_c89=no
11968ac_save_CC=$CC
11969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11970/* end confdefs.h. */
b0322a85
CE
11971#include <stdarg.h>
11972#include <stdio.h>
11973struct stat;
11974/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11975struct buf { int x; };
11976FILE * (*rcsopen) (struct buf *, struct stat *, int);
11977static char *e (p, i)
11978 char **p;
11979 int i;
11980{
11981 return p[i];
11982}
11983static char *f (char * (*g) (char **, int), char **p, ...)
11984{
11985 char *s;
11986 va_list v;
11987 va_start (v,p);
11988 s = g (p, va_arg (v,int));
11989 va_end (v);
11990 return s;
11991}
8d138742 11992
b0322a85
CE
11993/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11994 function prototypes and stuff, but not '\xHH' hex character constants.
11995 These don't provoke an error unfortunately, instead are silently treated
11996 as 'x'. The following induces an error, until -std is added to get
11997 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11998 array size at least. It's necessary to write '\x00'==0 to get something
11999 that's true only with -std. */
12000int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12001
12002/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12003 inside strings and character constants. */
12004#define FOO(x) 'x'
12005int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12006
12007int test (int i, double x);
12008struct s1 {int (*f) (int a);};
12009struct s2 {int (*f) (double a);};
12010int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12011int argc;
12012char **argv;
8d138742
CE
12013int
12014main ()
12015{
b0322a85 12016return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8d138742
CE
12017 ;
12018 return 0;
12019}
12020_ACEOF
b0322a85
CE
12021for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12022 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12023do
12024 CC="$ac_save_CC $ac_arg"
12025 if ac_fn_c_try_compile "$LINENO"; then :
12026 ac_cv_prog_cc_c89=$ac_arg
12027fi
12028rm -f core conftest.err conftest.$ac_objext
12029 test "x$ac_cv_prog_cc_c89" != "xno" && break
12030done
12031rm -f conftest.$ac_ext
12032CC=$ac_save_CC
12033
12034fi
12035# AC_CACHE_VAL
12036case "x$ac_cv_prog_cc_c89" in
12037 x)
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12039$as_echo "none needed" >&6; } ;;
12040 xno)
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12042$as_echo "unsupported" >&6; } ;;
12043 *)
12044 CC="$CC $ac_cv_prog_cc_c89"
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12046$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12047esac
12048if test "x$ac_cv_prog_cc_c89" != xno; then :
8d138742 12049
8d138742 12050fi
d9898ee8 12051
b0322a85
CE
12052ac_ext=c
12053ac_cpp='$CPP $CPPFLAGS'
12054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12056ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 12057
b0322a85 12058depcc="$CC" am_compiler_list=
d9898ee8 12059
b0322a85
CE
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12061$as_echo_n "checking dependency style of $depcc... " >&6; }
12062if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064else
12065 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12066 # We make a subdir and do the tests there. Otherwise we can end up
12067 # making bogus files that we don't know about and never remove. For
12068 # instance it was reported that on HP-UX the gcc test will end up
12069 # making a dummy file named 'D' -- because '-MD' means "put the output
12070 # in D".
12071 rm -rf conftest.dir
12072 mkdir conftest.dir
12073 # Copy depcomp to subdir because otherwise we won't find it if we're
12074 # using a relative directory.
12075 cp "$am_depcomp" conftest.dir
12076 cd conftest.dir
12077 # We will build objects and dependencies in a subdirectory because
12078 # it helps to detect inapplicable dependency modes. For instance
12079 # both Tru64's cc and ICC support -MD to output dependencies as a
12080 # side effect of compilation, but ICC will put the dependencies in
12081 # the current directory while Tru64 will put them in the object
12082 # directory.
12083 mkdir sub
ac40fd9e 12084
b0322a85
CE
12085 am_cv_CC_dependencies_compiler_type=none
12086 if test "$am_compiler_list" = ""; then
12087 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12088 fi
12089 am__universal=false
12090 case " $depcc " in #(
12091 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12092 esac
d9898ee8 12093
b0322a85
CE
12094 for depmode in $am_compiler_list; do
12095 # Setup a source with many dependencies, because some compilers
12096 # like to wrap large dependency lists on column 80 (with \), and
12097 # we should not choose a depcomp mode which is confused by this.
12098 #
12099 # We need to recreate these files for each test, as the compiler may
12100 # overwrite some of them when testing with obscure command lines.
12101 # This happens at least with the AIX C compiler.
12102 : > sub/conftest.c
12103 for i in 1 2 3 4 5 6; do
12104 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12105 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12106 # Solaris 10 /bin/sh.
12107 echo '/* dummy */' > sub/conftst$i.h
12108 done
12109 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
d9898ee8 12110
b0322a85
CE
12111 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12112 # mode. It turns out that the SunPro C++ compiler does not properly
12113 # handle '-M -o', and we need to detect this. Also, some Intel
12114 # versions had trouble with output in subdirs.
12115 am__obj=sub/conftest.${OBJEXT-o}
12116 am__minus_obj="-o $am__obj"
12117 case $depmode in
12118 gcc)
12119 # This depmode causes a compiler race in universal mode.
12120 test "$am__universal" = false || continue
12121 ;;
12122 nosideeffect)
12123 # After this tag, mechanisms are not by side-effect, so they'll
12124 # only be used when explicitly requested.
12125 if test "x$enable_dependency_tracking" = xyes; then
12126 continue
12127 else
12128 break
12129 fi
12130 ;;
12131 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12132 # This compiler won't grok '-c -o', but also, the minuso test has
12133 # not run yet. These depmodes are late enough in the game, and
12134 # so weak that their functioning should not be impacted.
12135 am__obj=conftest.${OBJEXT-o}
12136 am__minus_obj=
12137 ;;
12138 none) break ;;
12139 esac
12140 if depmode=$depmode \
12141 source=sub/conftest.c object=$am__obj \
12142 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12143 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12144 >/dev/null 2>conftest.err &&
12145 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12146 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12147 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12148 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12149 # icc doesn't choke on unknown options, it will just issue warnings
12150 # or remarks (even with -Werror). So we grep stderr for any message
12151 # that says an option was ignored or not supported.
12152 # When given -MP, icc 7.0 and 7.1 complain thusly:
12153 # icc: Command line warning: ignoring option '-M'; no argument required
12154 # The diagnosis changed in icc 8.0:
12155 # icc: Command line remark: option '-MP' not supported
12156 if (grep 'ignoring option' conftest.err ||
12157 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12158 am_cv_CC_dependencies_compiler_type=$depmode
12159 break
12160 fi
12161 fi
12162 done
d9898ee8 12163
b0322a85
CE
12164 cd ..
12165 rm -rf conftest.dir
12166else
12167 am_cv_CC_dependencies_compiler_type=none
8d138742 12168fi
d9898ee8 12169
8d138742 12170fi
b0322a85
CE
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12172$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12173CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
d9898ee8 12174
b0322a85
CE
12175 if
12176 test "x$enable_dependency_tracking" != xno \
12177 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12178 am__fastdepCC_TRUE=
12179 am__fastdepCC_FALSE='#'
12180else
12181 am__fastdepCC_TRUE='#'
12182 am__fastdepCC_FALSE=
d9898ee8 12183fi
12184
d9898ee8 12185
b0322a85
CE
12186ac_ext=cpp
12187ac_cpp='$CXXCPP $CPPFLAGS'
12188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12191if test -z "$CXX"; then
12192 if test -n "$CCC"; then
12193 CXX=$CCC
d9898ee8 12194 else
b0322a85
CE
12195 if test -n "$ac_tool_prefix"; then
12196 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12197 do
12198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12199set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201$as_echo_n "checking for $ac_word... " >&6; }
12202if ${ac_cv_prog_CXX+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204else
12205 if test -n "$CXX"; then
12206 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12207else
12208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209for as_dir in $PATH
12210do
12211 IFS=$as_save_IFS
12212 test -z "$as_dir" && as_dir=.
12213 for ac_exec_ext in '' $ac_executable_extensions; do
12214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12215 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 break 2
d9898ee8 12218 fi
b0322a85
CE
12219done
12220 done
12221IFS=$as_save_IFS
8d138742 12222
b0322a85
CE
12223fi
12224fi
12225CXX=$ac_cv_prog_CXX
12226if test -n "$CXX"; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12228$as_echo "$CXX" >&6; }
12229else
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231$as_echo "no" >&6; }
12232fi
8d138742 12233
8d138742 12234
b0322a85
CE
12235 test -n "$CXX" && break
12236 done
12237fi
12238if test -z "$CXX"; then
12239 ac_ct_CXX=$CXX
12240 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12241do
12242 # Extract the first word of "$ac_prog", so it can be a program name with args.
12243set dummy $ac_prog; ac_word=$2
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245$as_echo_n "checking for $ac_word... " >&6; }
12246if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8d138742 12247 $as_echo_n "(cached) " >&6
d9898ee8 12248else
b0322a85
CE
12249 if test -n "$ac_ct_CXX"; then
12250 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8d138742 12251else
b0322a85
CE
12252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253for as_dir in $PATH
12254do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12259 ac_cv_prog_ac_ct_CXX="$ac_prog"
12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 break 2
12262 fi
12263done
12264 done
12265IFS=$as_save_IFS
d9898ee8 12266
b0322a85
CE
12267fi
12268fi
12269ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12270if test -n "$ac_ct_CXX"; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12272$as_echo "$ac_ct_CXX" >&6; }
12273else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275$as_echo "no" >&6; }
12276fi
d9898ee8 12277
d9898ee8 12278
b0322a85
CE
12279 test -n "$ac_ct_CXX" && break
12280done
d9898ee8 12281
b0322a85
CE
12282 if test "x$ac_ct_CXX" = x; then
12283 CXX="g++"
8d138742 12284 else
b0322a85
CE
12285 case $cross_compiling:$ac_tool_warned in
12286yes:)
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12289ac_tool_warned=yes ;;
12290esac
12291 CXX=$ac_ct_CXX
12292 fi
12293fi
d9898ee8 12294
8d138742
CE
12295 fi
12296fi
b0322a85
CE
12297# Provide some information about the compiler.
12298$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12299set X $ac_compile
12300ac_compiler=$2
12301for ac_option in --version -v -V -qversion; do
12302 { { ac_try="$ac_compiler $ac_option >&5"
12303case "(($ac_try" in
12304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305 *) ac_try_echo=$ac_try;;
12306esac
12307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12308$as_echo "$ac_try_echo"; } >&5
12309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12310 ac_status=$?
12311 if test -s conftest.err; then
12312 sed '10a\
12313... rest of stderr output deleted ...
12314 10q' conftest.err >conftest.er1
12315 cat conftest.er1 >&5
12316 fi
12317 rm -f conftest.er1 conftest.err
12318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12319 test $ac_status = 0; }
12320done
12321
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12323$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12324if ${ac_cv_cxx_compiler_gnu+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326else
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328/* end confdefs.h. */
d9898ee8 12329
b0322a85
CE
12330int
12331main ()
12332{
12333#ifndef __GNUC__
12334 choke me
12335#endif
d9898ee8 12336
b0322a85
CE
12337 ;
12338 return 0;
12339}
12340_ACEOF
12341if ac_fn_cxx_try_compile "$LINENO"; then :
12342 ac_compiler_gnu=yes
12343else
12344 ac_compiler_gnu=no
8d138742 12345fi
b0322a85
CE
12346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12347ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8d138742 12348
b0322a85
CE
12349fi
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12351$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12352if test $ac_compiler_gnu = yes; then
12353 GXX=yes
8d138742 12354else
b0322a85
CE
12355 GXX=
12356fi
12357ac_test_CXXFLAGS=${CXXFLAGS+set}
12358ac_save_CXXFLAGS=$CXXFLAGS
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12360$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12361if ${ac_cv_prog_cxx_g+:} false; then :
12362 $as_echo_n "(cached) " >&6
8d138742 12363else
b0322a85
CE
12364 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12365 ac_cxx_werror_flag=yes
12366 ac_cv_prog_cxx_g=no
12367 CXXFLAGS="-g"
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369/* end confdefs.h. */
8d138742 12370
b0322a85
CE
12371int
12372main ()
12373{
8d138742 12374
b0322a85
CE
12375 ;
12376 return 0;
12377}
12378_ACEOF
12379if ac_fn_cxx_try_compile "$LINENO"; then :
12380 ac_cv_prog_cxx_g=yes
12381else
12382 CXXFLAGS=""
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384/* end confdefs.h. */
d9898ee8 12385
b0322a85
CE
12386int
12387main ()
12388{
d9898ee8 12389
b0322a85
CE
12390 ;
12391 return 0;
12392}
12393_ACEOF
12394if ac_fn_cxx_try_compile "$LINENO"; then :
d9898ee8 12395
b0322a85
CE
12396else
12397 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12398 CXXFLAGS="-g"
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400/* end confdefs.h. */
12401
12402int
12403main ()
8d138742 12404{
d9898ee8 12405
b0322a85
CE
12406 ;
12407 return 0;
12408}
12409_ACEOF
12410if ac_fn_cxx_try_compile "$LINENO"; then :
12411 ac_cv_prog_cxx_g=yes
12412fi
12413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414fi
12415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416fi
12417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12419fi
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12421$as_echo "$ac_cv_prog_cxx_g" >&6; }
12422if test "$ac_test_CXXFLAGS" = set; then
12423 CXXFLAGS=$ac_save_CXXFLAGS
12424elif test $ac_cv_prog_cxx_g = yes; then
12425 if test "$GXX" = yes; then
12426 CXXFLAGS="-g -O2"
8d138742 12427 else
b0322a85
CE
12428 CXXFLAGS="-g"
12429 fi
12430else
12431 if test "$GXX" = yes; then
12432 CXXFLAGS="-O2"
12433 else
12434 CXXFLAGS=
12435 fi
12436fi
12437ac_ext=c
12438ac_cpp='$CPP $CPPFLAGS'
12439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12441ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 12442
b0322a85
CE
12443depcc="$CXX" am_compiler_list=
12444
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12446$as_echo_n "checking dependency style of $depcc... " >&6; }
12447if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449else
12450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12451 # We make a subdir and do the tests there. Otherwise we can end up
12452 # making bogus files that we don't know about and never remove. For
12453 # instance it was reported that on HP-UX the gcc test will end up
12454 # making a dummy file named 'D' -- because '-MD' means "put the output
12455 # in D".
12456 rm -rf conftest.dir
12457 mkdir conftest.dir
12458 # Copy depcomp to subdir because otherwise we won't find it if we're
12459 # using a relative directory.
12460 cp "$am_depcomp" conftest.dir
12461 cd conftest.dir
12462 # We will build objects and dependencies in a subdirectory because
12463 # it helps to detect inapplicable dependency modes. For instance
12464 # both Tru64's cc and ICC support -MD to output dependencies as a
12465 # side effect of compilation, but ICC will put the dependencies in
12466 # the current directory while Tru64 will put them in the object
12467 # directory.
12468 mkdir sub
12469
12470 am_cv_CXX_dependencies_compiler_type=none
12471 if test "$am_compiler_list" = ""; then
12472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12473 fi
12474 am__universal=false
12475 case " $depcc " in #(
12476 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12477 esac
12478
12479 for depmode in $am_compiler_list; do
12480 # Setup a source with many dependencies, because some compilers
12481 # like to wrap large dependency lists on column 80 (with \), and
12482 # we should not choose a depcomp mode which is confused by this.
12483 #
12484 # We need to recreate these files for each test, as the compiler may
12485 # overwrite some of them when testing with obscure command lines.
12486 # This happens at least with the AIX C compiler.
12487 : > sub/conftest.c
12488 for i in 1 2 3 4 5 6; do
12489 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12490 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12491 # Solaris 10 /bin/sh.
12492 echo '/* dummy */' > sub/conftst$i.h
12493 done
12494 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12495
12496 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12497 # mode. It turns out that the SunPro C++ compiler does not properly
12498 # handle '-M -o', and we need to detect this. Also, some Intel
12499 # versions had trouble with output in subdirs.
12500 am__obj=sub/conftest.${OBJEXT-o}
12501 am__minus_obj="-o $am__obj"
12502 case $depmode in
12503 gcc)
12504 # This depmode causes a compiler race in universal mode.
12505 test "$am__universal" = false || continue
12506 ;;
12507 nosideeffect)
12508 # After this tag, mechanisms are not by side-effect, so they'll
12509 # only be used when explicitly requested.
12510 if test "x$enable_dependency_tracking" = xyes; then
12511 continue
12512 else
12513 break
12514 fi
12515 ;;
12516 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12517 # This compiler won't grok '-c -o', but also, the minuso test has
12518 # not run yet. These depmodes are late enough in the game, and
12519 # so weak that their functioning should not be impacted.
12520 am__obj=conftest.${OBJEXT-o}
12521 am__minus_obj=
12522 ;;
12523 none) break ;;
8d138742 12524 esac
b0322a85
CE
12525 if depmode=$depmode \
12526 source=sub/conftest.c object=$am__obj \
12527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12528 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12529 >/dev/null 2>conftest.err &&
12530 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12532 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12534 # icc doesn't choke on unknown options, it will just issue warnings
12535 # or remarks (even with -Werror). So we grep stderr for any message
12536 # that says an option was ignored or not supported.
12537 # When given -MP, icc 7.0 and 7.1 complain thusly:
12538 # icc: Command line warning: ignoring option '-M'; no argument required
12539 # The diagnosis changed in icc 8.0:
12540 # icc: Command line remark: option '-MP' not supported
12541 if (grep 'ignoring option' conftest.err ||
12542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12543 am_cv_CXX_dependencies_compiler_type=$depmode
12544 break
12545 fi
8d138742 12546 fi
b0322a85 12547 done
d9898ee8 12548
b0322a85
CE
12549 cd ..
12550 rm -rf conftest.dir
12551else
12552 am_cv_CXX_dependencies_compiler_type=none
8d138742 12553fi
d9898ee8 12554
b0322a85
CE
12555fi
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12557$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12558CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d9898ee8 12559
b0322a85
CE
12560 if
12561 test "x$enable_dependency_tracking" != xno \
12562 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12563 am__fastdepCXX_TRUE=
12564 am__fastdepCXX_FALSE='#'
8d138742 12565else
b0322a85
CE
12566 am__fastdepCXX_TRUE='#'
12567 am__fastdepCXX_FALSE=
8d138742 12568fi
d9898ee8 12569
d9898ee8 12570
d9898ee8 12571
d9898ee8 12572
b0322a85
CE
12573func_stripname_cnf ()
12574{
12575 case ${2} in
12576 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12577 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12578 esac
12579} # func_stripname_cnf
d9898ee8 12580
b0322a85
CE
12581 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12582 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12583 (test "X$CXX" != "Xg++"))) ; then
12584 ac_ext=cpp
12585ac_cpp='$CXXCPP $CPPFLAGS'
12586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12590$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12591if test -z "$CXXCPP"; then
12592 if ${ac_cv_prog_CXXCPP+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594else
12595 # Double quotes because CXXCPP needs to be expanded
12596 for CXXCPP in "$CXX -E" "/lib/cpp"
12597 do
12598 ac_preproc_ok=false
12599for ac_cxx_preproc_warn_flag in '' yes
12600do
12601 # Use a header file that comes with gcc, so configuring glibc
12602 # with a fresh cross-compiler works.
12603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12604 # <limits.h> exists even on freestanding compilers.
12605 # On the NeXT, cc -E runs the code through the compiler's parser,
12606 # not just through cpp. "Syntax error" is here to catch this case.
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608/* end confdefs.h. */
12609#ifdef __STDC__
12610# include <limits.h>
12611#else
12612# include <assert.h>
12613#endif
12614 Syntax error
12615_ACEOF
12616if ac_fn_cxx_try_cpp "$LINENO"; then :
d9898ee8 12617
b0322a85
CE
12618else
12619 # Broken: fails on valid input.
12620continue
12621fi
12622rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 12623
b0322a85
CE
12624 # OK, works on sane cases. Now check whether nonexistent headers
12625 # can be detected and how.
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627/* end confdefs.h. */
12628#include <ac_nonexistent.h>
12629_ACEOF
12630if ac_fn_cxx_try_cpp "$LINENO"; then :
12631 # Broken: success on invalid input.
12632continue
12633else
12634 # Passes both tests.
12635ac_preproc_ok=:
12636break
12637fi
12638rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 12639
b0322a85
CE
12640done
12641# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12642rm -f conftest.i conftest.err conftest.$ac_ext
12643if $ac_preproc_ok; then :
12644 break
12645fi
d9898ee8 12646
b0322a85
CE
12647 done
12648 ac_cv_prog_CXXCPP=$CXXCPP
d9898ee8 12649
b0322a85
CE
12650fi
12651 CXXCPP=$ac_cv_prog_CXXCPP
12652else
12653 ac_cv_prog_CXXCPP=$CXXCPP
12654fi
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12656$as_echo "$CXXCPP" >&6; }
12657ac_preproc_ok=false
12658for ac_cxx_preproc_warn_flag in '' yes
12659do
12660 # Use a header file that comes with gcc, so configuring glibc
12661 # with a fresh cross-compiler works.
12662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12663 # <limits.h> exists even on freestanding compilers.
12664 # On the NeXT, cc -E runs the code through the compiler's parser,
12665 # not just through cpp. "Syntax error" is here to catch this case.
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667/* end confdefs.h. */
12668#ifdef __STDC__
12669# include <limits.h>
12670#else
12671# include <assert.h>
12672#endif
12673 Syntax error
12674_ACEOF
12675if ac_fn_cxx_try_cpp "$LINENO"; then :
d9898ee8 12676
b0322a85
CE
12677else
12678 # Broken: fails on valid input.
12679continue
12680fi
12681rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 12682
b0322a85
CE
12683 # OK, works on sane cases. Now check whether nonexistent headers
12684 # can be detected and how.
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686/* end confdefs.h. */
12687#include <ac_nonexistent.h>
12688_ACEOF
12689if ac_fn_cxx_try_cpp "$LINENO"; then :
12690 # Broken: success on invalid input.
12691continue
12692else
12693 # Passes both tests.
12694ac_preproc_ok=:
12695break
12696fi
12697rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 12698
b0322a85
CE
12699done
12700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12701rm -f conftest.i conftest.err conftest.$ac_ext
12702if $ac_preproc_ok; then :
d9898ee8 12703
b0322a85
CE
12704else
12705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12707as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12708See \`config.log' for more details" "$LINENO" 5; }
8d138742 12709fi
b0322a85 12710
8d138742
CE
12711ac_ext=c
12712ac_cpp='$CPP $CPPFLAGS'
12713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12715ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 12716
b0322a85
CE
12717else
12718 _lt_caught_CXX_error=yes
12719fi
d9898ee8 12720
8d138742
CE
12721ac_ext=cpp
12722ac_cpp='$CXXCPP $CPPFLAGS'
12723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
d9898ee8 12726
8d138742
CE
12727archive_cmds_need_lc_CXX=no
12728allow_undefined_flag_CXX=
12729always_export_symbols_CXX=no
12730archive_expsym_cmds_CXX=
12731compiler_needs_object_CXX=no
12732export_dynamic_flag_spec_CXX=
12733hardcode_direct_CXX=no
12734hardcode_direct_absolute_CXX=no
12735hardcode_libdir_flag_spec_CXX=
8d138742
CE
12736hardcode_libdir_separator_CXX=
12737hardcode_minus_L_CXX=no
12738hardcode_shlibpath_var_CXX=unsupported
12739hardcode_automatic_CXX=no
12740inherit_rpath_CXX=no
12741module_cmds_CXX=
12742module_expsym_cmds_CXX=
12743link_all_deplibs_CXX=unknown
12744old_archive_cmds_CXX=$old_archive_cmds
b0322a85
CE
12745reload_flag_CXX=$reload_flag
12746reload_cmds_CXX=$reload_cmds
8d138742
CE
12747no_undefined_flag_CXX=
12748whole_archive_flag_spec_CXX=
12749enable_shared_with_static_runtimes_CXX=no
d9898ee8 12750
8d138742
CE
12751# Source file extension for C++ test sources.
12752ac_ext=cpp
d9898ee8 12753
8d138742
CE
12754# Object file extension for compiled C++ test sources.
12755objext=o
12756objext_CXX=$objext
d9898ee8 12757
8d138742
CE
12758# No sense in running all these tests if we already determined that
12759# the CXX compiler isn't working. Some variables (like enable_shared)
12760# are currently assumed to apply to all compilers on this platform,
12761# and will be corrupted by setting them based on a non-working compiler.
12762if test "$_lt_caught_CXX_error" != yes; then
12763 # Code to be used in simple compile tests
12764 lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 12765
8d138742
CE
12766 # Code to be used in simple link tests
12767 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 12768
8d138742 12769 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
d9898ee8 12770
d9898ee8 12771
d9898ee8 12772
d9898ee8 12773
d9898ee8 12774
d9898ee8 12775
8d138742
CE
12776# If no C compiler was specified, use CC.
12777LTCC=${LTCC-"$CC"}
d9898ee8 12778
8d138742
CE
12779# If no C compiler flags were specified, use CFLAGS.
12780LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 12781
8d138742
CE
12782# Allow CC to be a program name with arguments.
12783compiler=$CC
d9898ee8 12784
d9898ee8 12785
8d138742
CE
12786 # save warnings/boilerplate of simple test code
12787 ac_outfile=conftest.$ac_objext
12788echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12789eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12790_lt_compiler_boilerplate=`cat conftest.err`
12791$RM conftest*
d9898ee8 12792
8d138742
CE
12793 ac_outfile=conftest.$ac_objext
12794echo "$lt_simple_link_test_code" >conftest.$ac_ext
12795eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12796_lt_linker_boilerplate=`cat conftest.err`
12797$RM -r conftest*
12798
12799
12800 # Allow CC to be a program name with arguments.
12801 lt_save_CC=$CC
b0322a85 12802 lt_save_CFLAGS=$CFLAGS
8d138742
CE
12803 lt_save_LD=$LD
12804 lt_save_GCC=$GCC
12805 GCC=$GXX
12806 lt_save_with_gnu_ld=$with_gnu_ld
12807 lt_save_path_LD=$lt_cv_path_LD
12808 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12809 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12810 else
12811 $as_unset lt_cv_prog_gnu_ld
12812 fi
12813 if test -n "${lt_cv_path_LDCXX+set}"; then
12814 lt_cv_path_LD=$lt_cv_path_LDCXX
12815 else
12816 $as_unset lt_cv_path_LD
12817 fi
12818 test -z "${LDCXX+set}" || LD=$LDCXX
12819 CC=${CXX-"c++"}
b0322a85 12820 CFLAGS=$CXXFLAGS
8d138742
CE
12821 compiler=$CC
12822 compiler_CXX=$CC
12823 for cc_temp in $compiler""; do
12824 case $cc_temp in
12825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12827 \-*) ;;
12828 *) break;;
12829 esac
12830done
b0322a85 12831cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d9898ee8 12832
d9898ee8 12833
8d138742
CE
12834 if test -n "$compiler"; then
12835 # We don't want -fno-exception when compiling C++ code, so set the
12836 # no_builtin_flag separately
12837 if test "$GXX" = yes; then
12838 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12839 else
12840 lt_prog_compiler_no_builtin_flag_CXX=
12841 fi
d9898ee8 12842
8d138742
CE
12843 if test "$GXX" = yes; then
12844 # Set up default GNU C++ configuration
d9898ee8 12845
d9898ee8 12846
d9898ee8 12847
8d138742 12848# Check whether --with-gnu-ld was given.
b0322a85 12849if test "${with_gnu_ld+set}" = set; then :
8d138742
CE
12850 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12851else
12852 with_gnu_ld=no
12853fi
d9898ee8 12854
8d138742
CE
12855ac_prog=ld
12856if test "$GCC" = yes; then
12857 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742
CE
12859$as_echo_n "checking for ld used by $CC... " >&6; }
12860 case $host in
12861 *-*-mingw*)
12862 # gcc leaves a trailing carriage return which upsets mingw
12863 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12864 *)
12865 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12866 esac
12867 case $ac_prog in
12868 # Accept absolute paths.
12869 [\\/]* | ?:[\\/]*)
12870 re_direlt='/[^/][^/]*/\.\./'
12871 # Canonicalize the pathname of ld
12872 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12873 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12874 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12875 done
12876 test -z "$LD" && LD="$ac_prog"
12877 ;;
12878 "")
12879 # If it fails, then pretend we aren't using GCC.
12880 ac_prog=ld
12881 ;;
12882 *)
12883 # If it is relative, then search for the first ld in PATH.
12884 with_gnu_ld=unknown
12885 ;;
12886 esac
12887elif test "$with_gnu_ld" = yes; then
b0322a85 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742
CE
12889$as_echo_n "checking for GNU ld... " >&6; }
12890else
b0322a85 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742
CE
12892$as_echo_n "checking for non-GNU ld... " >&6; }
12893fi
b0322a85 12894if ${lt_cv_path_LD+:} false; then :
8d138742
CE
12895 $as_echo_n "(cached) " >&6
12896else
12897 if test -z "$LD"; then
12898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12899 for ac_dir in $PATH; do
12900 IFS="$lt_save_ifs"
12901 test -z "$ac_dir" && ac_dir=.
12902 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12903 lt_cv_path_LD="$ac_dir/$ac_prog"
12904 # Check to see if the program is GNU ld. I'd rather use --version,
12905 # but apparently some variants of GNU ld only accept -v.
12906 # Break only if it was the GNU/non-GNU ld that we prefer.
12907 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12908 *GNU* | *'with BFD'*)
12909 test "$with_gnu_ld" != no && break
12910 ;;
12911 *)
12912 test "$with_gnu_ld" != yes && break
12913 ;;
12914 esac
12915 fi
12916 done
12917 IFS="$lt_save_ifs"
12918else
12919 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12920fi
12921fi
d9898ee8 12922
8d138742
CE
12923LD="$lt_cv_path_LD"
12924if test -n "$LD"; then
b0322a85 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742
CE
12926$as_echo "$LD" >&6; }
12927else
b0322a85 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
12929$as_echo "no" >&6; }
12930fi
b0322a85
CE
12931test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 12933$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 12934if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742
CE
12935 $as_echo_n "(cached) " >&6
12936else
12937 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12938case `$LD -v 2>&1 </dev/null` in
12939*GNU* | *'with BFD'*)
12940 lt_cv_prog_gnu_ld=yes
12941 ;;
12942*)
12943 lt_cv_prog_gnu_ld=no
12944 ;;
12945esac
12946fi
b0322a85 12947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742
CE
12948$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12949with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 12950
d9898ee8 12951
d9898ee8 12952
d9898ee8 12953
d9898ee8 12954
d9898ee8 12955
d9898ee8 12956
8d138742
CE
12957 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12958 # archiving commands below assume that GNU ld is being used.
12959 if test "$with_gnu_ld" = yes; then
b0322a85
CE
12960 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12961 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 12962
8d138742
CE
12963 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12964 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
d9898ee8 12965
8d138742
CE
12966 # If archive_cmds runs LD, not CC, wlarc should be empty
12967 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12968 # investigate it a little bit more. (MM)
12969 wlarc='${wl}'
d9898ee8 12970
8d138742
CE
12971 # ancient GNU ld didn't support --whole-archive et. al.
12972 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12973 $GREP 'no-whole-archive' > /dev/null; then
12974 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12975 else
12976 whole_archive_flag_spec_CXX=
12977 fi
12978 else
12979 with_gnu_ld=no
12980 wlarc=
12981
12982 # A generic and very simple default shared library creation
12983 # command for GNU C++ for the case where it uses the native
12984 # linker, instead of GNU ld. If possible, this setting should
12985 # overridden to take advantage of the native linker features on
12986 # the platform it is being used on.
12987 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12988 fi
d9898ee8 12989
8d138742
CE
12990 # Commands to make compiler produce verbose output that lists
12991 # what "hidden" libraries, object files and flags are used when
12992 # linking a shared library.
b0322a85 12993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
d9898ee8 12994
8d138742
CE
12995 else
12996 GXX=no
12997 with_gnu_ld=no
12998 wlarc=
12999 fi
d9898ee8 13000
8d138742 13001 # PORTME: fill in a description of your system's C++ link characteristics
b0322a85 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742
CE
13003$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13004 ld_shlibs_CXX=yes
13005 case $host_os in
13006 aix3*)
13007 # FIXME: insert proper C++ library support
13008 ld_shlibs_CXX=no
13009 ;;
13010 aix[4-9]*)
13011 if test "$host_cpu" = ia64; then
13012 # On IA64, the linker does run time linking by default, so we don't
13013 # have to do anything special.
13014 aix_use_runtimelinking=no
13015 exp_sym_flag='-Bexport'
13016 no_entry_flag=""
13017 else
13018 aix_use_runtimelinking=no
13019
13020 # Test if we are trying to use run time linking or normal
13021 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13022 # need to do runtime linking.
13023 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13024 for ld_flag in $LDFLAGS; do
13025 case $ld_flag in
13026 *-brtl*)
13027 aix_use_runtimelinking=yes
13028 break
13029 ;;
13030 esac
13031 done
13032 ;;
13033 esac
d9898ee8 13034
8d138742
CE
13035 exp_sym_flag='-bexport'
13036 no_entry_flag='-bnoentry'
13037 fi
d9898ee8 13038
8d138742
CE
13039 # When large executables or shared objects are built, AIX ld can
13040 # have problems creating the table of contents. If linking a library
13041 # or program results in "error TOC overflow" add -mminimal-toc to
13042 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13043 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13044
13045 archive_cmds_CXX=''
13046 hardcode_direct_CXX=yes
13047 hardcode_direct_absolute_CXX=yes
13048 hardcode_libdir_separator_CXX=':'
13049 link_all_deplibs_CXX=yes
13050 file_list_spec_CXX='${wl}-f,'
13051
13052 if test "$GXX" = yes; then
13053 case $host_os in aix4.[012]|aix4.[012].*)
13054 # We only want to do this on AIX 4.2 and lower, the check
13055 # below for broken collect2 doesn't work under 4.3+
13056 collect2name=`${CC} -print-prog-name=collect2`
13057 if test -f "$collect2name" &&
13058 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13059 then
13060 # We have reworked collect2
13061 :
13062 else
13063 # We have old collect2
13064 hardcode_direct_CXX=unsupported
13065 # It fails to find uninstalled libraries when the uninstalled
13066 # path is not listed in the libpath. Setting hardcode_minus_L
13067 # to unsupported forces relinking
13068 hardcode_minus_L_CXX=yes
13069 hardcode_libdir_flag_spec_CXX='-L$libdir'
13070 hardcode_libdir_separator_CXX=
13071 fi
13072 esac
13073 shared_flag='-shared'
13074 if test "$aix_use_runtimelinking" = yes; then
13075 shared_flag="$shared_flag "'${wl}-G'
13076 fi
13077 else
13078 # not using gcc
13079 if test "$host_cpu" = ia64; then
13080 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13081 # chokes on -Wl,-G. The following line is correct:
13082 shared_flag='-G'
13083 else
13084 if test "$aix_use_runtimelinking" = yes; then
13085 shared_flag='${wl}-G'
13086 else
13087 shared_flag='${wl}-bM:SRE'
13088 fi
13089 fi
13090 fi
d9898ee8 13091
8d138742
CE
13092 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13093 # It seems that -bexpall does not export symbols beginning with
13094 # underscore (_), so it is better to generate a list of symbols to
13095 # export.
13096 always_export_symbols_CXX=yes
13097 if test "$aix_use_runtimelinking" = yes; then
13098 # Warning - without using the other runtime loading flags (-brtl),
13099 # -berok will link without error, but may produce a broken library.
13100 allow_undefined_flag_CXX='-berok'
13101 # Determine the default libpath from the value encoded in an empty
13102 # executable.
b0322a85
CE
13103 if test "${lt_cv_aix_libpath+set}" = set; then
13104 aix_libpath=$lt_cv_aix_libpath
13105else
13106 if ${lt_cv_aix_libpath__CXX+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108else
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 13110/* end confdefs.h. */
d9898ee8 13111
8d138742
CE
13112int
13113main ()
13114{
d9898ee8 13115
8d138742
CE
13116 ;
13117 return 0;
13118}
b0322a85
CE
13119_ACEOF
13120if ac_fn_cxx_try_link "$LINENO"; then :
d9898ee8 13121
b0322a85
CE
13122 lt_aix_libpath_sed='
13123 /Import File Strings/,/^$/ {
13124 /^0/ {
13125 s/^0 *\([^ ]*\) *$/\1/
13126 p
13127 }
13128 }'
13129 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13130 # Check for a 64-bit object if we didn't find anything.
13131 if test -z "$lt_cv_aix_libpath__CXX"; then
13132 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13133 fi
13134fi
13135rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 if test -z "$lt_cv_aix_libpath__CXX"; then
13138 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13139 fi
d9898ee8 13140
8d138742 13141fi
d9898ee8 13142
b0322a85
CE
13143 aix_libpath=$lt_cv_aix_libpath__CXX
13144fi
d9898ee8 13145
8d138742 13146 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
d9898ee8 13147
b0322a85 13148 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8d138742
CE
13149 else
13150 if test "$host_cpu" = ia64; then
13151 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13152 allow_undefined_flag_CXX="-z nodefs"
13153 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"
13154 else
13155 # Determine the default libpath from the value encoded in an
13156 # empty executable.
b0322a85
CE
13157 if test "${lt_cv_aix_libpath+set}" = set; then
13158 aix_libpath=$lt_cv_aix_libpath
13159else
13160 if ${lt_cv_aix_libpath__CXX+:} false; then :
13161 $as_echo_n "(cached) " >&6
13162else
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 13164/* end confdefs.h. */
d9898ee8 13165
8d138742
CE
13166int
13167main ()
13168{
d9898ee8 13169
8d138742
CE
13170 ;
13171 return 0;
13172}
13173_ACEOF
b0322a85 13174if ac_fn_cxx_try_link "$LINENO"; then :
d9898ee8 13175
b0322a85
CE
13176 lt_aix_libpath_sed='
13177 /Import File Strings/,/^$/ {
13178 /^0/ {
13179 s/^0 *\([^ ]*\) *$/\1/
13180 p
13181 }
13182 }'
13183 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13184 # Check for a 64-bit object if we didn't find anything.
13185 if test -z "$lt_cv_aix_libpath__CXX"; then
13186 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13187 fi
13188fi
13189rm -f core conftest.err conftest.$ac_objext \
13190 conftest$ac_exeext conftest.$ac_ext
13191 if test -z "$lt_cv_aix_libpath__CXX"; then
13192 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13193 fi
d9898ee8 13194
8d138742 13195fi
d9898ee8 13196
b0322a85
CE
13197 aix_libpath=$lt_cv_aix_libpath__CXX
13198fi
d9898ee8 13199
8d138742
CE
13200 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13201 # Warning - without using the other run time loading flags,
13202 # -berok will link without error, but may produce a broken library.
13203 no_undefined_flag_CXX=' ${wl}-bernotok'
13204 allow_undefined_flag_CXX=' ${wl}-berok'
b0322a85
CE
13205 if test "$with_gnu_ld" = yes; then
13206 # We only use this code for GNU lds that support --whole-archive.
13207 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13208 else
13209 # Exported symbols can be pulled into shared objects from archives
13210 whole_archive_flag_spec_CXX='$convenience'
13211 fi
8d138742
CE
13212 archive_cmds_need_lc_CXX=yes
13213 # This is similar to how AIX traditionally builds its shared
13214 # libraries.
13215 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'
13216 fi
13217 fi
13218 ;;
d9898ee8 13219
8d138742
CE
13220 beos*)
13221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13222 allow_undefined_flag_CXX=unsupported
13223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13224 # support --undefined. This deserves some investigation. FIXME
13225 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226 else
13227 ld_shlibs_CXX=no
13228 fi
13229 ;;
d9898ee8 13230
8d138742
CE
13231 chorus*)
13232 case $cc_basename in
13233 *)
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13236 ;;
13237 esac
13238 ;;
d9898ee8 13239
8d138742 13240 cygwin* | mingw* | pw32* | cegcc*)
b0322a85
CE
13241 case $GXX,$cc_basename in
13242 ,cl* | no,cl*)
13243 # Native MSVC
13244 # hardcode_libdir_flag_spec is actually meaningless, as there is
13245 # no search path for DLLs.
13246 hardcode_libdir_flag_spec_CXX=' '
13247 allow_undefined_flag_CXX=unsupported
13248 always_export_symbols_CXX=yes
13249 file_list_spec_CXX='@'
13250 # Tell ltmain to make .lib files, not .a files.
13251 libext=lib
13252 # Tell ltmain to make .dll files, not .so files.
13253 shrext_cmds=".dll"
13254 # FIXME: Setting linknames here is a bad hack.
13255 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13256 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13257 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13258 else
13259 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13260 fi~
13261 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13262 linknames='
13263 # The linker will not automatically build a static lib if we build a DLL.
13264 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13265 enable_shared_with_static_runtimes_CXX=yes
13266 # Don't use ranlib
13267 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13268 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13269 lt_tool_outputfile="@TOOL_OUTPUT@"~
13270 case $lt_outputfile in
13271 *.exe|*.EXE) ;;
13272 *)
13273 lt_outputfile="$lt_outputfile.exe"
13274 lt_tool_outputfile="$lt_tool_outputfile.exe"
13275 ;;
13276 esac~
13277 func_to_tool_file "$lt_outputfile"~
13278 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13279 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13280 $RM "$lt_outputfile.manifest";
13281 fi'
13282 ;;
13283 *)
13284 # g++
13285 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13286 # as there is no search path for DLLs.
13287 hardcode_libdir_flag_spec_CXX='-L$libdir'
13288 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13289 allow_undefined_flag_CXX=unsupported
13290 always_export_symbols_CXX=no
13291 enable_shared_with_static_runtimes_CXX=yes
13292
13293 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13294 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'
13295 # If the export-symbols file already is a .def file (1st line
13296 # is EXPORTS), use it as is; otherwise, prepend...
13297 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13298 cp $export_symbols $output_objdir/$soname.def;
13299 else
13300 echo EXPORTS > $output_objdir/$soname.def;
13301 cat $export_symbols >> $output_objdir/$soname.def;
13302 fi~
13303 $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'
13304 else
13305 ld_shlibs_CXX=no
13306 fi
13307 ;;
13308 esac
13309 ;;
8d138742 13310 darwin* | rhapsody*)
d9898ee8 13311
13312
8d138742
CE
13313 archive_cmds_need_lc_CXX=no
13314 hardcode_direct_CXX=no
13315 hardcode_automatic_CXX=yes
13316 hardcode_shlibpath_var_CXX=unsupported
b0322a85
CE
13317 if test "$lt_cv_ld_force_load" = "yes"; then
13318 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13319
13320 else
13321 whole_archive_flag_spec_CXX=''
13322 fi
8d138742
CE
13323 link_all_deplibs_CXX=yes
13324 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13325 case $cc_basename in
13326 ifort*) _lt_dar_can_shared=yes ;;
13327 *) _lt_dar_can_shared=$GCC ;;
d9898ee8 13328 esac
8d138742 13329 if test "$_lt_dar_can_shared" = "yes"; then
b0322a85 13330 output_verbose_link_cmd=func_echo_all
8d138742
CE
13331 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}"
13332 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13333 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}"
13334 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}"
13335 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13336 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}"
13337 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}"
13338 fi
d9898ee8 13339
8d138742
CE
13340 else
13341 ld_shlibs_CXX=no
13342 fi
d9898ee8 13343
8d138742 13344 ;;
d9898ee8 13345
8d138742
CE
13346 dgux*)
13347 case $cc_basename in
13348 ec++*)
13349 # FIXME: insert proper C++ library support
13350 ld_shlibs_CXX=no
13351 ;;
13352 ghcx*)
13353 # Green Hills C++ Compiler
13354 # FIXME: insert proper C++ library support
13355 ld_shlibs_CXX=no
13356 ;;
13357 *)
13358 # FIXME: insert proper C++ library support
13359 ld_shlibs_CXX=no
13360 ;;
13361 esac
13362 ;;
d9898ee8 13363
b0322a85 13364 freebsd2.*)
8d138742
CE
13365 # C++ shared libraries reported to be fairly broken before
13366 # switch to ELF
13367 ld_shlibs_CXX=no
13368 ;;
d9898ee8 13369
8d138742
CE
13370 freebsd-elf*)
13371 archive_cmds_need_lc_CXX=no
13372 ;;
d9898ee8 13373
8d138742
CE
13374 freebsd* | dragonfly*)
13375 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13376 # conventions
13377 ld_shlibs_CXX=yes
13378 ;;
d9898ee8 13379
8d138742
CE
13380 gnu*)
13381 ;;
d9898ee8 13382
b0322a85
CE
13383 haiku*)
13384 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13385 link_all_deplibs_CXX=yes
13386 ;;
13387
8d138742
CE
13388 hpux9*)
13389 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13390 hardcode_libdir_separator_CXX=:
13391 export_dynamic_flag_spec_CXX='${wl}-E'
13392 hardcode_direct_CXX=yes
13393 hardcode_minus_L_CXX=yes # Not in the search PATH,
13394 # but as the default
13395 # location of the library.
13396
13397 case $cc_basename in
13398 CC*)
13399 # FIXME: insert proper C++ library support
13400 ld_shlibs_CXX=no
13401 ;;
13402 aCC*)
13403 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'
13404 # Commands to make compiler produce verbose output that lists
13405 # what "hidden" libraries, object files and flags are used when
13406 # linking a shared library.
13407 #
13408 # There doesn't appear to be a way to prevent this compiler from
13409 # explicitly linking system object files so we need to strip them
13410 # from the output so that they don't get included in the library
13411 # dependencies.
b0322a85 13412 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8d138742
CE
13413 ;;
13414 *)
13415 if test "$GXX" = yes; then
b0322a85 13416 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
8d138742
CE
13417 else
13418 # FIXME: insert proper C++ library support
13419 ld_shlibs_CXX=no
13420 fi
13421 ;;
13422 esac
13423 ;;
d9898ee8 13424
8d138742
CE
13425 hpux10*|hpux11*)
13426 if test $with_gnu_ld = no; then
13427 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13428 hardcode_libdir_separator_CXX=:
d9898ee8 13429
8d138742
CE
13430 case $host_cpu in
13431 hppa*64*|ia64*)
13432 ;;
13433 *)
13434 export_dynamic_flag_spec_CXX='${wl}-E'
13435 ;;
13436 esac
13437 fi
13438 case $host_cpu in
13439 hppa*64*|ia64*)
13440 hardcode_direct_CXX=no
13441 hardcode_shlibpath_var_CXX=no
13442 ;;
13443 *)
13444 hardcode_direct_CXX=yes
13445 hardcode_direct_absolute_CXX=yes
13446 hardcode_minus_L_CXX=yes # Not in the search PATH,
13447 # but as the default
13448 # location of the library.
13449 ;;
13450 esac
d9898ee8 13451
8d138742
CE
13452 case $cc_basename in
13453 CC*)
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13456 ;;
13457 aCC*)
13458 case $host_cpu in
13459 hppa*64*)
13460 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13461 ;;
13462 ia64*)
13463 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13464 ;;
13465 *)
13466 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13467 ;;
13468 esac
13469 # Commands to make compiler produce verbose output that lists
13470 # what "hidden" libraries, object files and flags are used when
13471 # linking a shared library.
13472 #
13473 # There doesn't appear to be a way to prevent this compiler from
13474 # explicitly linking system object files so we need to strip them
13475 # from the output so that they don't get included in the library
13476 # dependencies.
b0322a85 13477 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8d138742
CE
13478 ;;
13479 *)
13480 if test "$GXX" = yes; then
13481 if test $with_gnu_ld = no; then
13482 case $host_cpu in
13483 hppa*64*)
13484 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13485 ;;
13486 ia64*)
b0322a85 13487 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8d138742
CE
13488 ;;
13489 *)
b0322a85 13490 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8d138742
CE
13491 ;;
13492 esac
13493 fi
13494 else
13495 # FIXME: insert proper C++ library support
13496 ld_shlibs_CXX=no
13497 fi
13498 ;;
13499 esac
13500 ;;
d9898ee8 13501
8d138742
CE
13502 interix[3-9]*)
13503 hardcode_direct_CXX=no
13504 hardcode_shlibpath_var_CXX=no
13505 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13506 export_dynamic_flag_spec_CXX='${wl}-E'
13507 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13508 # Instead, shared libraries are loaded at an image base (0x10000000 by
13509 # default) and relocated if they conflict, which is a slow very memory
13510 # consuming and fragmenting process. To avoid this, we pick a random,
13511 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13512 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13513 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'
13514 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'
13515 ;;
13516 irix5* | irix6*)
13517 case $cc_basename in
13518 CC*)
13519 # SGI C++
b0322a85 13520 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8d138742
CE
13521
13522 # Archives containing C++ object files must be created using
13523 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13524 # necessary to make sure instantiated templates are included
13525 # in the archive.
13526 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13527 ;;
13528 *)
13529 if test "$GXX" = yes; then
13530 if test "$with_gnu_ld" = no; then
b0322a85 13531 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8d138742 13532 else
b0322a85 13533 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
8d138742
CE
13534 fi
13535 fi
13536 link_all_deplibs_CXX=yes
13537 ;;
13538 esac
13539 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13540 hardcode_libdir_separator_CXX=:
13541 inherit_rpath_CXX=yes
13542 ;;
d9898ee8 13543
b0322a85 13544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
13545 case $cc_basename in
13546 KCC*)
13547 # Kuck and Associates, Inc. (KAI) C++ Compiler
13548
13549 # KCC will only create a shared library if the output file
13550 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13551 # to its proper name (with version) after linking.
13552 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'
13553 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'
13554 # Commands to make compiler produce verbose output that lists
13555 # what "hidden" libraries, object files and flags are used when
13556 # linking a shared library.
13557 #
13558 # There doesn't appear to be a way to prevent this compiler from
13559 # explicitly linking system object files so we need to strip them
13560 # from the output so that they don't get included in the library
13561 # dependencies.
b0322a85 13562 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8d138742
CE
13563
13564 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13566
13567 # Archives containing C++ object files must be created using
13568 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13569 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13570 ;;
13571 icpc* | ecpc* )
13572 # Intel C++
13573 with_gnu_ld=yes
13574 # version 8.0 and above of icpc choke on multiply defined symbols
13575 # if we add $predep_objects and $postdep_objects, however 7.1 and
13576 # earlier do not add the objects themselves.
13577 case `$CC -V 2>&1` in
13578 *"Version 7."*)
13579 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13580 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'
13581 ;;
13582 *) # Version 8.0 or newer
13583 tmp_idyn=
13584 case $host_cpu in
13585 ia64*) tmp_idyn=' -i_dynamic';;
13586 esac
13587 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13588 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'
13589 ;;
13590 esac
13591 archive_cmds_need_lc_CXX=no
13592 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13593 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13594 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13595 ;;
13596 pgCC* | pgcpp*)
13597 # Portland Group C++ compiler
13598 case `$CC -V` in
b0322a85 13599 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
8d138742
CE
13600 prelink_cmds_CXX='tpldir=Template.dir~
13601 rm -rf $tpldir~
13602 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
b0322a85 13603 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
8d138742
CE
13604 old_archive_cmds_CXX='tpldir=Template.dir~
13605 rm -rf $tpldir~
13606 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
b0322a85 13607 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
8d138742
CE
13608 $RANLIB $oldlib'
13609 archive_cmds_CXX='tpldir=Template.dir~
13610 rm -rf $tpldir~
13611 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
b0322a85 13612 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
8d138742
CE
13613 archive_expsym_cmds_CXX='tpldir=Template.dir~
13614 rm -rf $tpldir~
13615 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
b0322a85 13616 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
8d138742 13617 ;;
b0322a85 13618 *) # Version 6 and above use weak symbols
8d138742
CE
13619 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13620 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'
13621 ;;
13622 esac
d9898ee8 13623
8d138742
CE
13624 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
b0322a85 13626 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8d138742
CE
13627 ;;
13628 cxx*)
13629 # Compaq C++
13630 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13631 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'
d9898ee8 13632
8d138742
CE
13633 runpath_var=LD_RUN_PATH
13634 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13635 hardcode_libdir_separator_CXX=:
d9898ee8 13636
8d138742
CE
13637 # Commands to make compiler produce verbose output that lists
13638 # what "hidden" libraries, object files and flags are used when
13639 # linking a shared library.
13640 #
13641 # There doesn't appear to be a way to prevent this compiler from
13642 # explicitly linking system object files so we need to strip them
13643 # from the output so that they don't get included in the library
13644 # dependencies.
b0322a85 13645 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
8d138742 13646 ;;
b0322a85 13647 xl* | mpixl* | bgxl*)
8d138742
CE
13648 # IBM XL 8.0 on PPC, with GNU ld
13649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13651 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652 if test "x$supports_anon_versioning" = xyes; then
13653 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13655 echo "local: *; };" >> $output_objdir/$libname.ver~
13656 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13657 fi
13658 ;;
13659 *)
13660 case `$CC -V 2>&1 | sed 5q` in
13661 *Sun\ C*)
13662 # Sun C++ 5.9
13663 no_undefined_flag_CXX=' -zdefs'
13664 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13665 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'
13666 hardcode_libdir_flag_spec_CXX='-R$libdir'
b0322a85 13667 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8d138742
CE
13668 compiler_needs_object_CXX=yes
13669
13670 # Not sure whether something based on
13671 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13672 # would be better.
b0322a85 13673 output_verbose_link_cmd='func_echo_all'
8d138742
CE
13674
13675 # Archives containing C++ object files must be created using
13676 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13677 # necessary to make sure instantiated templates are included
13678 # in the archive.
13679 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13680 ;;
13681 esac
13682 ;;
13683 esac
13684 ;;
d9898ee8 13685
8d138742
CE
13686 lynxos*)
13687 # FIXME: insert proper C++ library support
13688 ld_shlibs_CXX=no
13689 ;;
d9898ee8 13690
8d138742
CE
13691 m88k*)
13692 # FIXME: insert proper C++ library support
13693 ld_shlibs_CXX=no
13694 ;;
d9898ee8 13695
8d138742
CE
13696 mvs*)
13697 case $cc_basename in
13698 cxx*)
13699 # FIXME: insert proper C++ library support
13700 ld_shlibs_CXX=no
13701 ;;
13702 *)
13703 # FIXME: insert proper C++ library support
13704 ld_shlibs_CXX=no
13705 ;;
13706 esac
13707 ;;
d9898ee8 13708
8d138742
CE
13709 netbsd*)
13710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13711 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13712 wlarc=
13713 hardcode_libdir_flag_spec_CXX='-R$libdir'
13714 hardcode_direct_CXX=yes
13715 hardcode_shlibpath_var_CXX=no
13716 fi
13717 # Workaround some broken pre-1.5 toolchains
13718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13719 ;;
d9898ee8 13720
8d138742
CE
13721 *nto* | *qnx*)
13722 ld_shlibs_CXX=yes
13723 ;;
d9898ee8 13724
8d138742
CE
13725 openbsd2*)
13726 # C++ shared libraries are fairly broken
13727 ld_shlibs_CXX=no
d9898ee8 13728 ;;
8d138742
CE
13729
13730 openbsd*)
13731 if test -f /usr/libexec/ld.so; then
13732 hardcode_direct_CXX=yes
13733 hardcode_shlibpath_var_CXX=no
13734 hardcode_direct_absolute_CXX=yes
13735 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13736 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13738 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13739 export_dynamic_flag_spec_CXX='${wl}-E'
13740 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13741 fi
b0322a85 13742 output_verbose_link_cmd=func_echo_all
8d138742
CE
13743 else
13744 ld_shlibs_CXX=no
13745 fi
d9898ee8 13746 ;;
d9898ee8 13747
8d138742
CE
13748 osf3* | osf4* | osf5*)
13749 case $cc_basename in
13750 KCC*)
13751 # Kuck and Associates, Inc. (KAI) C++ Compiler
13752
13753 # KCC will only create a shared library if the output file
13754 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13755 # to its proper name (with version) after linking.
13756 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'
13757
13758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13759 hardcode_libdir_separator_CXX=:
13760
13761 # Archives containing C++ object files must be created using
13762 # the KAI C++ compiler.
13763 case $host in
13764 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13765 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13766 esac
13767 ;;
13768 RCC*)
13769 # Rational C++ 2.4.1
13770 # FIXME: insert proper C++ library support
13771 ld_shlibs_CXX=no
13772 ;;
13773 cxx*)
13774 case $host in
13775 osf3*)
13776 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 13777 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8d138742
CE
13778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13779 ;;
13780 *)
13781 allow_undefined_flag_CXX=' -expect_unresolved \*'
b0322a85 13782 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8d138742
CE
13783 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13784 echo "-hidden">> $lib.exp~
b0322a85 13785 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
8d138742
CE
13786 $RM $lib.exp'
13787 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13788 ;;
13789 esac
d9898ee8 13790
8d138742 13791 hardcode_libdir_separator_CXX=:
d9898ee8 13792
8d138742
CE
13793 # Commands to make compiler produce verbose output that lists
13794 # what "hidden" libraries, object files and flags are used when
13795 # linking a shared library.
13796 #
13797 # There doesn't appear to be a way to prevent this compiler from
13798 # explicitly linking system object files so we need to strip them
13799 # from the output so that they don't get included in the library
13800 # dependencies.
b0322a85 13801 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8d138742
CE
13802 ;;
13803 *)
13804 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13805 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13806 case $host in
13807 osf3*)
b0322a85 13808 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8d138742
CE
13809 ;;
13810 *)
b0322a85 13811 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8d138742
CE
13812 ;;
13813 esac
13814
13815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13816 hardcode_libdir_separator_CXX=:
13817
13818 # Commands to make compiler produce verbose output that lists
13819 # what "hidden" libraries, object files and flags are used when
13820 # linking a shared library.
b0322a85 13821 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8d138742
CE
13822
13823 else
13824 # FIXME: insert proper C++ library support
13825 ld_shlibs_CXX=no
13826 fi
13827 ;;
13828 esac
13829 ;;
13830
13831 psos*)
13832 # FIXME: insert proper C++ library support
13833 ld_shlibs_CXX=no
13834 ;;
13835
13836 sunos4*)
13837 case $cc_basename in
13838 CC*)
13839 # Sun C++ 4.x
13840 # FIXME: insert proper C++ library support
13841 ld_shlibs_CXX=no
13842 ;;
13843 lcc*)
13844 # Lucid
13845 # FIXME: insert proper C++ library support
13846 ld_shlibs_CXX=no
13847 ;;
13848 *)
13849 # FIXME: insert proper C++ library support
13850 ld_shlibs_CXX=no
13851 ;;
13852 esac
13853 ;;
d9898ee8 13854
8d138742
CE
13855 solaris*)
13856 case $cc_basename in
b0322a85 13857 CC* | sunCC*)
8d138742
CE
13858 # Sun C++ 4.2, 5.x and Centerline C++
13859 archive_cmds_need_lc_CXX=yes
13860 no_undefined_flag_CXX=' -zdefs'
13861 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13862 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13863 $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'
13864
13865 hardcode_libdir_flag_spec_CXX='-R$libdir'
13866 hardcode_shlibpath_var_CXX=no
13867 case $host_os in
13868 solaris2.[0-5] | solaris2.[0-5].*) ;;
13869 *)
13870 # The compiler driver will combine and reorder linker options,
13871 # but understands `-z linker_flag'.
13872 # Supported since Solaris 2.6 (maybe 2.5.1?)
13873 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13874 ;;
13875 esac
13876 link_all_deplibs_CXX=yes
d9898ee8 13877
b0322a85 13878 output_verbose_link_cmd='func_echo_all'
d9898ee8 13879
8d138742
CE
13880 # Archives containing C++ object files must be created using
13881 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13882 # necessary to make sure instantiated templates are included
13883 # in the archive.
13884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13885 ;;
13886 gcx*)
13887 # Green Hills C++ Compiler
13888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13889
13890 # The C++ compiler must be used to create the archive.
13891 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13892 ;;
13893 *)
13894 # GNU C++ compiler with Solaris linker
13895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13896 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13897 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
b0322a85 13898 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8d138742 13899 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
b0322a85 13900 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
8d138742
CE
13901
13902 # Commands to make compiler produce verbose output that lists
13903 # what "hidden" libraries, object files and flags are used when
13904 # linking a shared library.
b0322a85 13905 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8d138742
CE
13906 else
13907 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13908 # platform.
13909 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13910 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13911 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13912
13913 # Commands to make compiler produce verbose output that lists
13914 # what "hidden" libraries, object files and flags are used when
13915 # linking a shared library.
b0322a85 13916 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8d138742
CE
13917 fi
13918
13919 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13920 case $host_os in
13921 solaris2.[0-5] | solaris2.[0-5].*) ;;
13922 *)
13923 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13924 ;;
13925 esac
13926 fi
13927 ;;
13928 esac
d9898ee8 13929 ;;
8d138742
CE
13930
13931 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13932 no_undefined_flag_CXX='${wl}-z,text'
13933 archive_cmds_need_lc_CXX=no
13934 hardcode_shlibpath_var_CXX=no
13935 runpath_var='LD_RUN_PATH'
13936
13937 case $cc_basename in
13938 CC*)
13939 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13940 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ac40fd9e 13941 ;;
8d138742
CE
13942 *)
13943 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13944 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ac40fd9e 13945 ;;
d9898ee8 13946 esac
13947 ;;
13948
8d138742
CE
13949 sysv5* | sco3.2v5* | sco5v6*)
13950 # Note: We can NOT use -z defs as we might desire, because we do not
13951 # link with -lc, and that would cause any symbols used from libc to
13952 # always be unresolved, which means just about no library would
13953 # ever link correctly. If we're not using GNU ld we use -z text
13954 # though, which does catch some bad symbols but isn't as heavy-handed
13955 # as -z defs.
13956 no_undefined_flag_CXX='${wl}-z,text'
13957 allow_undefined_flag_CXX='${wl}-z,nodefs'
13958 archive_cmds_need_lc_CXX=no
13959 hardcode_shlibpath_var_CXX=no
13960 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13961 hardcode_libdir_separator_CXX=':'
13962 link_all_deplibs_CXX=yes
13963 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13964 runpath_var='LD_RUN_PATH'
d9898ee8 13965
8d138742
CE
13966 case $cc_basename in
13967 CC*)
13968 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13969 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
13970 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13971 '"$old_archive_cmds_CXX"
13972 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13973 '"$reload_cmds_CXX"
8d138742
CE
13974 ;;
13975 *)
13976 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13977 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13978 ;;
13979 esac
ac40fd9e 13980 ;;
13981
8d138742
CE
13982 tandem*)
13983 case $cc_basename in
13984 NCC*)
13985 # NonStop-UX NCC 3.20
13986 # FIXME: insert proper C++ library support
13987 ld_shlibs_CXX=no
13988 ;;
13989 *)
13990 # FIXME: insert proper C++ library support
13991 ld_shlibs_CXX=no
13992 ;;
13993 esac
13994 ;;
13995
13996 vxworks*)
13997 # FIXME: insert proper C++ library support
13998 ld_shlibs_CXX=no
13999 ;;
14000
d9898ee8 14001 *)
8d138742
CE
14002 # FIXME: insert proper C++ library support
14003 ld_shlibs_CXX=no
14004 ;;
14005 esac
d9898ee8 14006
b0322a85 14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
8d138742
CE
14008$as_echo "$ld_shlibs_CXX" >&6; }
14009 test "$ld_shlibs_CXX" = no && can_build_shared=no
d9898ee8 14010
8d138742
CE
14011 GCC_CXX="$GXX"
14012 LD_CXX="$LD"
d9898ee8 14013
8d138742
CE
14014 ## CAVEAT EMPTOR:
14015 ## There is no encapsulation within the following macros, do not change
14016 ## the running order or otherwise move them around unless you know exactly
14017 ## what you are doing...
14018 # Dependencies to place before and after the object being linked:
14019predep_objects_CXX=
14020postdep_objects_CXX=
14021predeps_CXX=
14022postdeps_CXX=
14023compiler_lib_search_path_CXX=
d9898ee8 14024
8d138742
CE
14025cat > conftest.$ac_ext <<_LT_EOF
14026class Foo
14027{
14028public:
14029 Foo (void) { a = 0; }
14030private:
14031 int a;
14032};
14033_LT_EOF
d9898ee8 14034
b0322a85
CE
14035
14036_lt_libdeps_save_CFLAGS=$CFLAGS
14037case "$CC $CFLAGS " in #(
14038*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14039*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14040*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14041esac
14042
14043if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
14044 (eval $ac_compile) 2>&5
14045 ac_status=$?
b0322a85
CE
14046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14047 test $ac_status = 0; }; then
8d138742
CE
14048 # Parse the compiler output and extract the necessary
14049 # objects, libraries and library flags.
d9898ee8 14050
8d138742
CE
14051 # Sentinel used to keep track of whether or not we are before
14052 # the conftest object file.
14053 pre_test_object_deps_done=no
d9898ee8 14054
8d138742 14055 for p in `eval "$output_verbose_link_cmd"`; do
b0322a85 14056 case ${prev}${p} in
d9898ee8 14057
8d138742
CE
14058 -L* | -R* | -l*)
14059 # Some compilers place space between "-{L,R}" and the path.
14060 # Remove the space.
14061 if test $p = "-L" ||
14062 test $p = "-R"; then
14063 prev=$p
14064 continue
8d138742 14065 fi
d9898ee8 14066
b0322a85
CE
14067 # Expand the sysroot to ease extracting the directories later.
14068 if test -z "$prev"; then
14069 case $p in
14070 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14071 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14072 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14073 esac
14074 fi
14075 case $p in
14076 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14077 esac
8d138742 14078 if test "$pre_test_object_deps_done" = no; then
b0322a85
CE
14079 case ${prev} in
14080 -L | -R)
8d138742
CE
14081 # Internal compiler library paths should come after those
14082 # provided the user. The postdeps already come after the
14083 # user supplied libs so there is no need to process them.
14084 if test -z "$compiler_lib_search_path_CXX"; then
14085 compiler_lib_search_path_CXX="${prev}${p}"
14086 else
14087 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14088 fi
14089 ;;
14090 # The "-l" case would never come before the object being
14091 # linked, so don't bother handling this case.
14092 esac
14093 else
14094 if test -z "$postdeps_CXX"; then
14095 postdeps_CXX="${prev}${p}"
14096 else
14097 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14098 fi
14099 fi
b0322a85 14100 prev=
8d138742 14101 ;;
d9898ee8 14102
b0322a85 14103 *.lto.$objext) ;; # Ignore GCC LTO objects
8d138742
CE
14104 *.$objext)
14105 # This assumes that the test object file only shows up
14106 # once in the compiler output.
14107 if test "$p" = "conftest.$objext"; then
14108 pre_test_object_deps_done=yes
14109 continue
14110 fi
d9898ee8 14111
8d138742
CE
14112 if test "$pre_test_object_deps_done" = no; then
14113 if test -z "$predep_objects_CXX"; then
14114 predep_objects_CXX="$p"
14115 else
14116 predep_objects_CXX="$predep_objects_CXX $p"
14117 fi
14118 else
14119 if test -z "$postdep_objects_CXX"; then
14120 postdep_objects_CXX="$p"
14121 else
14122 postdep_objects_CXX="$postdep_objects_CXX $p"
14123 fi
14124 fi
14125 ;;
d9898ee8 14126
8d138742
CE
14127 *) ;; # Ignore the rest.
14128
14129 esac
14130 done
14131
14132 # Clean up.
14133 rm -f a.out a.exe
d9898ee8 14134else
8d138742 14135 echo "libtool.m4: error: problem compiling CXX test program"
d9898ee8 14136fi
14137
8d138742 14138$RM -f confest.$objext
b0322a85 14139CFLAGS=$_lt_libdeps_save_CFLAGS
8d138742
CE
14140
14141# PORTME: override above test on systems where it is broken
d9898ee8 14142case $host_os in
8d138742
CE
14143interix[3-9]*)
14144 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14145 # hack all around it, let's just trust "g++" to DTRT.
14146 predep_objects_CXX=
14147 postdep_objects_CXX=
14148 postdeps_CXX=
14149 ;;
14150
14151linux*)
14152 case `$CC -V 2>&1 | sed 5q` in
14153 *Sun\ C*)
14154 # Sun C++ 5.9
14155
14156 # The more standards-conforming stlport4 library is
14157 # incompatible with the Cstd library. Avoid specifying
14158 # it if it's in CXXFLAGS. Ignore libCrun as
14159 # -library=stlport4 depends on it.
14160 case " $CXX $CXXFLAGS " in
14161 *" -library=stlport4 "*)
14162 solaris_use_stlport4=yes
14163 ;;
14164 esac
14165
14166 if test "$solaris_use_stlport4" != yes; then
14167 postdeps_CXX='-library=Cstd -library=Crun'
14168 fi
d9898ee8 14169 ;;
8d138742
CE
14170 esac
14171 ;;
14172
14173solaris*)
14174 case $cc_basename in
b0322a85 14175 CC* | sunCC*)
8d138742
CE
14176 # The more standards-conforming stlport4 library is
14177 # incompatible with the Cstd library. Avoid specifying
14178 # it if it's in CXXFLAGS. Ignore libCrun as
14179 # -library=stlport4 depends on it.
14180 case " $CXX $CXXFLAGS " in
14181 *" -library=stlport4 "*)
14182 solaris_use_stlport4=yes
14183 ;;
14184 esac
14185
14186 # Adding this requires a known-good setup of shared libraries for
14187 # Sun compiler versions before 5.6, else PIC objects from an old
14188 # archive will be linked into the output, leading to subtle bugs.
14189 if test "$solaris_use_stlport4" != yes; then
14190 postdeps_CXX='-library=Cstd -library=Crun'
14191 fi
d9898ee8 14192 ;;
8d138742
CE
14193 esac
14194 ;;
d9898ee8 14195esac
14196
d9898ee8 14197
8d138742
CE
14198case " $postdeps_CXX " in
14199*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14200esac
14201 compiler_lib_search_dirs_CXX=
14202if test -n "${compiler_lib_search_path_CXX}"; then
14203 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
d9898ee8 14204fi
d9898ee8 14205
d9898ee8 14206
14207
d9898ee8 14208
d9898ee8 14209
d9898ee8 14210
14211
d9898ee8 14212
d9898ee8 14213
d9898ee8 14214
d9898ee8 14215
d9898ee8 14216
d9898ee8 14217
d9898ee8 14218
d9898ee8 14219
d9898ee8 14220
d9898ee8 14221
d9898ee8 14222
d9898ee8 14223
d9898ee8 14224
d9898ee8 14225
d9898ee8 14226
d9898ee8 14227
d9898ee8 14228
d9898ee8 14229
8d138742
CE
14230
14231
14232
14233
14234
14235
14236 lt_prog_compiler_wl_CXX=
14237lt_prog_compiler_pic_CXX=
14238lt_prog_compiler_static_CXX=
14239
8d138742
CE
14240
14241 # C++ specific cases for pic, static, wl, etc.
14242 if test "$GXX" = yes; then
14243 lt_prog_compiler_wl_CXX='-Wl,'
14244 lt_prog_compiler_static_CXX='-static'
14245
14246 case $host_os in
14247 aix*)
14248 # All AIX code is PIC.
14249 if test "$host_cpu" = ia64; then
14250 # AIX 5 now supports IA64 processor
14251 lt_prog_compiler_static_CXX='-Bstatic'
d9898ee8 14252 fi
14253 ;;
14254
8d138742
CE
14255 amigaos*)
14256 case $host_cpu in
14257 powerpc)
14258 # see comment about AmigaOS4 .so support
14259 lt_prog_compiler_pic_CXX='-fPIC'
14260 ;;
14261 m68k)
14262 # FIXME: we need at least 68020 code to build shared libraries, but
14263 # adding the `-m68020' flag to GCC prevents building anything better,
14264 # like `-m68040'.
14265 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14266 ;;
14267 esac
14268 ;;
d9898ee8 14269
8d138742
CE
14270 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14271 # PIC is the default for these OSes.
14272 ;;
14273 mingw* | cygwin* | os2* | pw32* | cegcc*)
14274 # This hack is so that the source file can tell whether it is being
14275 # built for inclusion in a dll (and should export symbols for example).
14276 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14277 # (--disable-auto-import) libraries
14278 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14279 ;;
14280 darwin* | rhapsody*)
14281 # PIC is the default on this platform
14282 # Common symbols not allowed in MH_DYLIB files
14283 lt_prog_compiler_pic_CXX='-fno-common'
14284 ;;
14285 *djgpp*)
14286 # DJGPP does not support shared libraries at all
14287 lt_prog_compiler_pic_CXX=
14288 ;;
b0322a85
CE
14289 haiku*)
14290 # PIC is the default for Haiku.
14291 # The "-static" flag exists, but is broken.
14292 lt_prog_compiler_static_CXX=
14293 ;;
8d138742
CE
14294 interix[3-9]*)
14295 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14296 # Instead, we relocate shared libraries at runtime.
14297 ;;
14298 sysv4*MP*)
14299 if test -d /usr/nec; then
14300 lt_prog_compiler_pic_CXX=-Kconform_pic
14301 fi
14302 ;;
14303 hpux*)
14304 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14305 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14306 # sets the default TLS model and affects inlining.
14307 case $host_cpu in
14308 hppa*64*)
d9898ee8 14309 ;;
8d138742
CE
14310 *)
14311 lt_prog_compiler_pic_CXX='-fPIC'
d9898ee8 14312 ;;
14313 esac
14314 ;;
8d138742
CE
14315 *qnx* | *nto*)
14316 # QNX uses GNU C++, but need to define -shared option too, otherwise
14317 # it will coredump.
14318 lt_prog_compiler_pic_CXX='-fPIC -shared'
d9898ee8 14319 ;;
d9898ee8 14320 *)
8d138742 14321 lt_prog_compiler_pic_CXX='-fPIC'
d9898ee8 14322 ;;
14323 esac
d9898ee8 14324 else
d9898ee8 14325 case $host_os in
8d138742
CE
14326 aix[4-9]*)
14327 # All AIX code is PIC.
14328 if test "$host_cpu" = ia64; then
14329 # AIX 5 now supports IA64 processor
14330 lt_prog_compiler_static_CXX='-Bstatic'
d9898ee8 14331 else
8d138742 14332 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
d9898ee8 14333 fi
8d138742
CE
14334 ;;
14335 chorus*)
14336 case $cc_basename in
14337 cxch68*)
14338 # Green Hills C++ Compiler
14339 # _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"
d9898ee8 14340 ;;
14341 esac
8d138742 14342 ;;
b0322a85
CE
14343 mingw* | cygwin* | os2* | pw32* | cegcc*)
14344 # This hack is so that the source file can tell whether it is being
14345 # built for inclusion in a dll (and should export symbols for example).
14346 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14347 ;;
8d138742
CE
14348 dgux*)
14349 case $cc_basename in
14350 ec++*)
14351 lt_prog_compiler_pic_CXX='-KPIC'
14352 ;;
14353 ghcx*)
14354 # Green Hills C++ Compiler
14355 lt_prog_compiler_pic_CXX='-pic'
14356 ;;
14357 *)
14358 ;;
14359 esac
14360 ;;
14361 freebsd* | dragonfly*)
14362 # FreeBSD uses GNU C++
14363 ;;
14364 hpux9* | hpux10* | hpux11*)
14365 case $cc_basename in
14366 CC*)
14367 lt_prog_compiler_wl_CXX='-Wl,'
14368 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14369 if test "$host_cpu" != ia64; then
14370 lt_prog_compiler_pic_CXX='+Z'
14371 fi
14372 ;;
14373 aCC*)
14374 lt_prog_compiler_wl_CXX='-Wl,'
14375 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14376 case $host_cpu in
14377 hppa*64*|ia64*)
14378 # +Z the default
14379 ;;
14380 *)
14381 lt_prog_compiler_pic_CXX='+Z'
14382 ;;
14383 esac
14384 ;;
14385 *)
14386 ;;
14387 esac
14388 ;;
14389 interix*)
14390 # This is c89, which is MS Visual C++ (no shared libs)
14391 # Anyone wants to do a port?
14392 ;;
14393 irix5* | irix6* | nonstopux*)
14394 case $cc_basename in
14395 CC*)
14396 lt_prog_compiler_wl_CXX='-Wl,'
14397 lt_prog_compiler_static_CXX='-non_shared'
14398 # CC pic flag -KPIC is the default.
14399 ;;
14400 *)
14401 ;;
14402 esac
14403 ;;
b0322a85 14404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
14405 case $cc_basename in
14406 KCC*)
14407 # KAI C++ Compiler
14408 lt_prog_compiler_wl_CXX='--backend -Wl,'
14409 lt_prog_compiler_pic_CXX='-fPIC'
14410 ;;
14411 ecpc* )
14412 # old Intel C++ for x86_64 which still supported -KPIC.
14413 lt_prog_compiler_wl_CXX='-Wl,'
14414 lt_prog_compiler_pic_CXX='-KPIC'
14415 lt_prog_compiler_static_CXX='-static'
14416 ;;
14417 icpc* )
14418 # Intel C++, used to be incompatible with GCC.
14419 # ICC 10 doesn't accept -KPIC any more.
14420 lt_prog_compiler_wl_CXX='-Wl,'
14421 lt_prog_compiler_pic_CXX='-fPIC'
14422 lt_prog_compiler_static_CXX='-static'
14423 ;;
14424 pgCC* | pgcpp*)
14425 # Portland Group C++ compiler
14426 lt_prog_compiler_wl_CXX='-Wl,'
14427 lt_prog_compiler_pic_CXX='-fpic'
14428 lt_prog_compiler_static_CXX='-Bstatic'
14429 ;;
14430 cxx*)
14431 # Compaq C++
14432 # Make sure the PIC flag is empty. It appears that all Alpha
14433 # Linux and Compaq Tru64 Unix objects are PIC.
14434 lt_prog_compiler_pic_CXX=
14435 lt_prog_compiler_static_CXX='-non_shared'
14436 ;;
b0322a85
CE
14437 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14438 # IBM XL 8.0, 9.0 on PPC and BlueGene
8d138742
CE
14439 lt_prog_compiler_wl_CXX='-Wl,'
14440 lt_prog_compiler_pic_CXX='-qpic'
14441 lt_prog_compiler_static_CXX='-qstaticlink'
14442 ;;
14443 *)
14444 case `$CC -V 2>&1 | sed 5q` in
14445 *Sun\ C*)
14446 # Sun C++ 5.9
14447 lt_prog_compiler_pic_CXX='-KPIC'
14448 lt_prog_compiler_static_CXX='-Bstatic'
14449 lt_prog_compiler_wl_CXX='-Qoption ld '
14450 ;;
14451 esac
14452 ;;
14453 esac
14454 ;;
14455 lynxos*)
14456 ;;
14457 m88k*)
14458 ;;
14459 mvs*)
14460 case $cc_basename in
14461 cxx*)
14462 lt_prog_compiler_pic_CXX='-W c,exportall'
14463 ;;
14464 *)
14465 ;;
14466 esac
14467 ;;
14468 netbsd*)
14469 ;;
14470 *qnx* | *nto*)
14471 # QNX uses GNU C++, but need to define -shared option too, otherwise
14472 # it will coredump.
14473 lt_prog_compiler_pic_CXX='-fPIC -shared'
14474 ;;
14475 osf3* | osf4* | osf5*)
14476 case $cc_basename in
14477 KCC*)
14478 lt_prog_compiler_wl_CXX='--backend -Wl,'
14479 ;;
14480 RCC*)
14481 # Rational C++ 2.4.1
14482 lt_prog_compiler_pic_CXX='-pic'
14483 ;;
14484 cxx*)
14485 # Digital/Compaq C++
14486 lt_prog_compiler_wl_CXX='-Wl,'
14487 # Make sure the PIC flag is empty. It appears that all Alpha
14488 # Linux and Compaq Tru64 Unix objects are PIC.
14489 lt_prog_compiler_pic_CXX=
14490 lt_prog_compiler_static_CXX='-non_shared'
14491 ;;
14492 *)
14493 ;;
14494 esac
14495 ;;
14496 psos*)
14497 ;;
14498 solaris*)
14499 case $cc_basename in
b0322a85 14500 CC* | sunCC*)
8d138742
CE
14501 # Sun C++ 4.2, 5.x and Centerline C++
14502 lt_prog_compiler_pic_CXX='-KPIC'
14503 lt_prog_compiler_static_CXX='-Bstatic'
14504 lt_prog_compiler_wl_CXX='-Qoption ld '
14505 ;;
14506 gcx*)
14507 # Green Hills C++ Compiler
14508 lt_prog_compiler_pic_CXX='-PIC'
14509 ;;
14510 *)
14511 ;;
14512 esac
14513 ;;
14514 sunos4*)
14515 case $cc_basename in
14516 CC*)
14517 # Sun C++ 4.x
14518 lt_prog_compiler_pic_CXX='-pic'
14519 lt_prog_compiler_static_CXX='-Bstatic'
14520 ;;
14521 lcc*)
14522 # Lucid
14523 lt_prog_compiler_pic_CXX='-pic'
14524 ;;
14525 *)
14526 ;;
14527 esac
14528 ;;
14529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14530 case $cc_basename in
14531 CC*)
14532 lt_prog_compiler_wl_CXX='-Wl,'
14533 lt_prog_compiler_pic_CXX='-KPIC'
14534 lt_prog_compiler_static_CXX='-Bstatic'
14535 ;;
d9898ee8 14536 esac
8d138742
CE
14537 ;;
14538 tandem*)
14539 case $cc_basename in
14540 NCC*)
14541 # NonStop-UX NCC 3.20
14542 lt_prog_compiler_pic_CXX='-KPIC'
14543 ;;
14544 *)
14545 ;;
14546 esac
14547 ;;
14548 vxworks*)
14549 ;;
14550 *)
14551 lt_prog_compiler_can_build_shared_CXX=no
14552 ;;
14553 esac
14554 fi
d9898ee8 14555
8d138742
CE
14556case $host_os in
14557 # For platforms which do not support PIC, -DPIC is meaningless:
14558 *djgpp*)
14559 lt_prog_compiler_pic_CXX=
14560 ;;
14561 *)
14562 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14563 ;;
14564esac
d9898ee8 14565
b0322a85
CE
14566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14567$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14568if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14569 $as_echo_n "(cached) " >&6
14570else
14571 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14572fi
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14574$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14575lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
d9898ee8 14576
8d138742
CE
14577#
14578# Check to make sure the PIC flag actually works.
14579#
14580if test -n "$lt_prog_compiler_pic_CXX"; then
b0322a85 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
8d138742 14582$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
b0322a85 14583if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
8d138742 14584 $as_echo_n "(cached) " >&6
d9898ee8 14585else
8d138742
CE
14586 lt_cv_prog_compiler_pic_works_CXX=no
14587 ac_outfile=conftest.$ac_objext
14588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14589 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14590 # Insert the option either (1) after the last *FLAGS variable, or
14591 # (2) before a word containing "conftest.", or (3) at the end.
14592 # Note that $ac_compile itself does not contain backslashes and begins
14593 # with a dollar sign (not a hyphen), so the echo should work correctly.
14594 # The option is referenced via a variable to avoid confusing sed.
14595 lt_compile=`echo "$ac_compile" | $SED \
14596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14598 -e 's:$: $lt_compiler_flag:'`
b0322a85 14599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
14600 (eval "$lt_compile" 2>conftest.err)
14601 ac_status=$?
14602 cat conftest.err >&5
b0322a85 14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
14604 if (exit $ac_status) && test -s "$ac_outfile"; then
14605 # The compiler can only warn and ignore the option if not recognized
14606 # So say no if there are warnings other than the usual output.
b0322a85 14607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
14608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14610 lt_cv_prog_compiler_pic_works_CXX=yes
14611 fi
14612 fi
14613 $RM conftest*
dd184caf 14614
d9898ee8 14615fi
b0322a85 14616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
8d138742 14617$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
dd184caf 14618
8d138742
CE
14619if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14620 case $lt_prog_compiler_pic_CXX in
14621 "" | " "*) ;;
14622 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14623 esac
d9898ee8 14624else
8d138742
CE
14625 lt_prog_compiler_pic_CXX=
14626 lt_prog_compiler_can_build_shared_CXX=no
d9898ee8 14627fi
dd184caf 14628
8d138742 14629fi
d9898ee8 14630
d9898ee8 14631
d9898ee8 14632
b0322a85
CE
14633
14634
8d138742
CE
14635#
14636# Check to make sure the static flag actually works.
14637#
14638wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
b0322a85 14639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 14640$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 14641if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
8d138742
CE
14642 $as_echo_n "(cached) " >&6
14643else
14644 lt_cv_prog_compiler_static_works_CXX=no
14645 save_LDFLAGS="$LDFLAGS"
14646 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14647 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14648 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14649 # The linker can only warn and ignore the option if not recognized
14650 # So say no if there are warnings
14651 if test -s conftest.err; then
14652 # Append any errors to the config.log.
14653 cat conftest.err 1>&5
b0322a85 14654 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
14655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14656 if diff conftest.exp conftest.er2 >/dev/null; then
14657 lt_cv_prog_compiler_static_works_CXX=yes
14658 fi
14659 else
14660 lt_cv_prog_compiler_static_works_CXX=yes
14661 fi
14662 fi
14663 $RM -r conftest*
14664 LDFLAGS="$save_LDFLAGS"
d9898ee8 14665
8d138742 14666fi
b0322a85 14667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
8d138742 14668$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
d9898ee8 14669
8d138742
CE
14670if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14671 :
14672else
14673 lt_prog_compiler_static_CXX=
14674fi
d9898ee8 14675
d9898ee8 14676
d9898ee8 14677
d9898ee8 14678
b0322a85 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 14680$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 14681if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
8d138742
CE
14682 $as_echo_n "(cached) " >&6
14683else
14684 lt_cv_prog_compiler_c_o_CXX=no
14685 $RM -r conftest 2>/dev/null
14686 mkdir conftest
14687 cd conftest
14688 mkdir out
14689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14690
8d138742
CE
14691 lt_compiler_flag="-o out/conftest2.$ac_objext"
14692 # Insert the option either (1) after the last *FLAGS variable, or
14693 # (2) before a word containing "conftest.", or (3) at the end.
14694 # Note that $ac_compile itself does not contain backslashes and begins
14695 # with a dollar sign (not a hyphen), so the echo should work correctly.
14696 lt_compile=`echo "$ac_compile" | $SED \
14697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14699 -e 's:$: $lt_compiler_flag:'`
b0322a85 14700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
14701 (eval "$lt_compile" 2>out/conftest.err)
14702 ac_status=$?
14703 cat out/conftest.err >&5
b0322a85 14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
14705 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14706 then
14707 # The compiler can only warn and ignore the option if not recognized
14708 # So say no if there are warnings
b0322a85 14709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
14710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14712 lt_cv_prog_compiler_c_o_CXX=yes
14713 fi
14714 fi
14715 chmod u+w . 2>&5
14716 $RM conftest*
14717 # SGI C++ compiler will create directory out/ii_files/ for
14718 # template instantiation
14719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14720 $RM out/* && rmdir out
14721 cd ..
14722 $RM -r conftest
14723 $RM conftest*
d9898ee8 14724
8d138742 14725fi
b0322a85 14726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
8d138742 14727$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 14728
d9898ee8 14729
d9898ee8 14730
b0322a85 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 14732$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 14733if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
8d138742
CE
14734 $as_echo_n "(cached) " >&6
14735else
14736 lt_cv_prog_compiler_c_o_CXX=no
14737 $RM -r conftest 2>/dev/null
14738 mkdir conftest
14739 cd conftest
14740 mkdir out
14741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14742
8d138742
CE
14743 lt_compiler_flag="-o out/conftest2.$ac_objext"
14744 # Insert the option either (1) after the last *FLAGS variable, or
14745 # (2) before a word containing "conftest.", or (3) at the end.
14746 # Note that $ac_compile itself does not contain backslashes and begins
14747 # with a dollar sign (not a hyphen), so the echo should work correctly.
14748 lt_compile=`echo "$ac_compile" | $SED \
14749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14751 -e 's:$: $lt_compiler_flag:'`
b0322a85 14752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
14753 (eval "$lt_compile" 2>out/conftest.err)
14754 ac_status=$?
14755 cat out/conftest.err >&5
b0322a85 14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
14757 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14758 then
14759 # The compiler can only warn and ignore the option if not recognized
14760 # So say no if there are warnings
b0322a85 14761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
14762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14764 lt_cv_prog_compiler_c_o_CXX=yes
14765 fi
14766 fi
14767 chmod u+w . 2>&5
14768 $RM conftest*
14769 # SGI C++ compiler will create directory out/ii_files/ for
14770 # template instantiation
14771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14772 $RM out/* && rmdir out
14773 cd ..
14774 $RM -r conftest
14775 $RM conftest*
d9898ee8 14776
8d138742 14777fi
b0322a85 14778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
8d138742 14779$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 14780
d9898ee8 14781
d9898ee8 14782
d9898ee8 14783
8d138742
CE
14784hard_links="nottested"
14785if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14786 # do not overwrite the value of need_locks provided by the user
b0322a85 14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
14788$as_echo_n "checking if we can lock with hard links... " >&6; }
14789 hard_links=yes
14790 $RM conftest*
14791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14792 touch conftest.a
14793 ln conftest.a conftest.b 2>&5 || hard_links=no
14794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742
CE
14796$as_echo "$hard_links" >&6; }
14797 if test "$hard_links" = no; then
b0322a85 14798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8d138742
CE
14799$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14800 need_locks=warn
14801 fi
14802else
14803 need_locks=no
14804fi
d9898ee8 14805
d9898ee8 14806
d9898ee8 14807
b0322a85 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742
CE
14809$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14810
14811 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
b0322a85 14812 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8d138742
CE
14813 case $host_os in
14814 aix[4-9]*)
14815 # If we're using GNU nm, then we don't want the "-C" option.
14816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
b0322a85
CE
14817 # Also, AIX nm treats weak defined symbols like other global defined
14818 # symbols, whereas GNU nm marks them as "W".
8d138742 14819 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b0322a85 14820 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8d138742
CE
14821 else
14822 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'
14823 fi
14824 ;;
14825 pw32*)
14826 export_symbols_cmds_CXX="$ltdll_cmds"
b0322a85 14827 ;;
8d138742 14828 cygwin* | mingw* | cegcc*)
b0322a85
CE
14829 case $cc_basename in
14830 cl*)
14831 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14832 ;;
14833 *)
14834 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14835 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14836 ;;
14837 esac
14838 ;;
8d138742
CE
14839 *)
14840 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
b0322a85 14841 ;;
8d138742 14842 esac
8d138742 14843
b0322a85 14844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
8d138742
CE
14845$as_echo "$ld_shlibs_CXX" >&6; }
14846test "$ld_shlibs_CXX" = no && can_build_shared=no
14847
14848with_gnu_ld_CXX=$with_gnu_ld
d9898ee8 14849
d9898ee8 14850
d9898ee8 14851
d9898ee8 14852
d9898ee8 14853
d9898ee8 14854
14855#
14856# Do we need to explicitly link libc?
14857#
8d138742 14858case "x$archive_cmds_need_lc_CXX" in
d9898ee8 14859x|xyes)
14860 # Assume -lc should be added
8d138742 14861 archive_cmds_need_lc_CXX=yes
d9898ee8 14862
14863 if test "$enable_shared" = yes && test "$GCC" = yes; then
8d138742 14864 case $archive_cmds_CXX in
d9898ee8 14865 *'~'*)
14866 # FIXME: we may have to deal with multi-command sequences.
14867 ;;
14868 '$CC '*)
14869 # Test whether the compiler implicitly links with -lc since on some
14870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14871 # to ld, don't add -lc before -lgcc.
b0322a85 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 14873$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
14874if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14875 $as_echo_n "(cached) " >&6
14876else
14877 $RM conftest*
14878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14879
b0322a85 14880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 14881 (eval $ac_compile) 2>&5
14882 ac_status=$?
b0322a85
CE
14883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14884 test $ac_status = 0; } 2>conftest.err; then
14885 soname=conftest
14886 lib=conftest
14887 libobjs=conftest.$ac_objext
14888 deplibs=
14889 wl=$lt_prog_compiler_wl_CXX
14890 pic_flag=$lt_prog_compiler_pic_CXX
14891 compiler_flags=-v
14892 linker_flags=-v
14893 verstring=
14894 output_objdir=.
14895 libname=conftest
14896 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14897 allow_undefined_flag_CXX=
14898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742 14899 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
d9898ee8 14900 ac_status=$?
b0322a85
CE
14901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14902 test $ac_status = 0; }
14903 then
14904 lt_cv_archive_cmds_need_lc_CXX=no
14905 else
14906 lt_cv_archive_cmds_need_lc_CXX=yes
14907 fi
14908 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14909 else
14910 cat conftest.err 1>&5
14911 fi
14912 $RM conftest*
14913
14914fi
14915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14916$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14917 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
d9898ee8 14918 ;;
14919 esac
14920 fi
14921 ;;
14922esac
14923
8d138742
CE
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
b0322a85 14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
14986$as_echo_n "checking dynamic linker characteristics... " >&6; }
14987
d9898ee8 14988library_names_spec=
14989libname_spec='lib$name'
14990soname_spec=
14991shrext_cmds=".so"
14992postinstall_cmds=
14993postuninstall_cmds=
14994finish_cmds=
14995finish_eval=
14996shlibpath_var=
14997shlibpath_overrides_runpath=unknown
14998version_type=none
14999dynamic_linker="$host_os ld.so"
15000sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 15001need_lib_prefix=unknown
15002hardcode_into_libs=no
15003
15004# when you set need_version to no, make sure it does not cause -set_version
15005# flags to be left without arguments
15006need_version=unknown
15007
15008case $host_os in
15009aix3*)
b0322a85 15010 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15012 shlibpath_var=LIBPATH
15013
15014 # AIX 3 has no versioning support, so we append a major version to the name.
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 ;;
15017
8d138742 15018aix[4-9]*)
b0322a85 15019 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15020 need_lib_prefix=no
15021 need_version=no
15022 hardcode_into_libs=yes
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 supports IA64
15025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 else
15028 # With GCC up to 2.95.x, collect2 would create an import file
15029 # for dependence libraries. The import file would start with
15030 # the line `#! .'. This would cause the generated library to
15031 # depend on `.', always an invalid library. This was fixed in
15032 # development snapshots of GCC prior to 3.0.
15033 case $host_os in
15034 aix4 | aix4.[01] | aix4.[01].*)
15035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15036 echo ' yes '
8d138742 15037 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 15038 :
15039 else
15040 can_build_shared=no
15041 fi
15042 ;;
15043 esac
15044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15045 # soname into executable. Probably we can add versioning support to
15046 # collect2, so additional links can be useful in future.
15047 if test "$aix_use_runtimelinking" = yes; then
15048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15049 # instead of lib<name>.a to let people know that these are not
15050 # typical AIX shared libraries.
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052 else
15053 # We preserve .a as extension for shared libraries through AIX4.2
15054 # and later when we are not doing run time linking.
15055 library_names_spec='${libname}${release}.a $libname.a'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15057 fi
15058 shlibpath_var=LIBPATH
15059 fi
15060 ;;
15061
15062amigaos*)
8d138742
CE
15063 case $host_cpu in
15064 powerpc)
15065 # Since July 2007 AmigaOS4 officially supports .so libraries.
15066 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068 ;;
15069 m68k)
15070 library_names_spec='$libname.ixlibrary $libname.a'
15071 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b0322a85 15072 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8d138742
CE
15073 ;;
15074 esac
d9898ee8 15075 ;;
15076
15077beos*)
15078 library_names_spec='${libname}${shared_ext}'
15079 dynamic_linker="$host_os ld.so"
15080 shlibpath_var=LIBRARY_PATH
15081 ;;
15082
15083bsdi[45]*)
b0322a85 15084 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15085 need_version=no
15086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087 soname_spec='${libname}${release}${shared_ext}$major'
15088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15092 # the default ld.so.conf also contains /usr/contrib/lib and
15093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15094 # libtool to hard-code these into programs
15095 ;;
15096
8d138742 15097cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 15098 version_type=windows
15099 shrext_cmds=".dll"
15100 need_version=no
15101 need_lib_prefix=no
15102
b0322a85
CE
15103 case $GCC,$cc_basename in
15104 yes,*)
15105 # gcc
d9898ee8 15106 library_names_spec='$libname.dll.a'
15107 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15108 postinstall_cmds='base_file=`basename \${file}`~
8d138742 15109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 15110 dldir=$destdir/`dirname \$dlpath`~
15111 test -d \$dldir || mkdir -p \$dldir~
15112 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
15113 chmod a+x \$dldir/$dlname~
15114 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15115 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15116 fi'
d9898ee8 15117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15118 dlpath=$dir/\$dldll~
8d138742 15119 $RM \$dlpath'
d9898ee8 15120 shlibpath_overrides_runpath=yes
15121
15122 case $host_os in
15123 cygwin*)
15124 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15125 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
b0322a85 15126
d9898ee8 15127 ;;
8d138742 15128 mingw* | cegcc*)
d9898ee8 15129 # MinGW DLLs use traditional 'lib' prefix
15130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d9898ee8 15131 ;;
15132 pw32*)
15133 # pw32 DLLs use 'pw' prefix rather than 'lib'
15134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15135 ;;
15136 esac
b0322a85
CE
15137 dynamic_linker='Win32 ld.exe'
15138 ;;
15139
15140 *,cl*)
15141 # Native MSVC
15142 libname_spec='$name'
15143 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15144 library_names_spec='${libname}.dll.lib'
15145
15146 case $build_os in
15147 mingw*)
15148 sys_lib_search_path_spec=
15149 lt_save_ifs=$IFS
15150 IFS=';'
15151 for lt_path in $LIB
15152 do
15153 IFS=$lt_save_ifs
15154 # Let DOS variable expansion print the short 8.3 style file name.
15155 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15156 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15157 done
15158 IFS=$lt_save_ifs
15159 # Convert to MSYS style.
15160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15161 ;;
15162 cygwin*)
15163 # Convert to unix form, then to dos form, then back to unix form
15164 # but this time dos style (no spaces!) so that the unix form looks
15165 # like /cygdrive/c/PROGRA~1:/cygdr...
15166 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15167 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15168 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15169 ;;
15170 *)
15171 sys_lib_search_path_spec="$LIB"
15172 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15173 # It is most probably a Windows format PATH.
15174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15175 else
15176 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15177 fi
15178 # FIXME: find the short name or the path components, as spaces are
15179 # common. (e.g. "Program Files" -> "PROGRA~1")
15180 ;;
15181 esac
15182
15183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15184 postinstall_cmds='base_file=`basename \${file}`~
15185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15186 dldir=$destdir/`dirname \$dlpath`~
15187 test -d \$dldir || mkdir -p \$dldir~
15188 $install_prog $dir/$dlname \$dldir/$dlname'
15189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15190 dlpath=$dir/\$dldll~
15191 $RM \$dlpath'
15192 shlibpath_overrides_runpath=yes
15193 dynamic_linker='Win32 link.exe'
d9898ee8 15194 ;;
15195
15196 *)
b0322a85 15197 # Assume MSVC wrapper
d9898ee8 15198 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b0322a85 15199 dynamic_linker='Win32 ld.exe'
d9898ee8 15200 ;;
15201 esac
d9898ee8 15202 # FIXME: first we should search . and the directory the executable is in
15203 shlibpath_var=PATH
15204 ;;
15205
15206darwin* | rhapsody*)
15207 dynamic_linker="$host_os dyld"
15208 version_type=darwin
15209 need_lib_prefix=no
15210 need_version=no
8d138742 15211 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 15212 soname_spec='${libname}${release}${major}$shared_ext'
15213 shlibpath_overrides_runpath=yes
15214 shlibpath_var=DYLD_LIBRARY_PATH
15215 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 15216
d9898ee8 15217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15218 ;;
15219
15220dgux*)
b0322a85 15221 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15222 need_lib_prefix=no
15223 need_version=no
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15225 soname_spec='${libname}${release}${shared_ext}$major'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 ;;
15228
d9898ee8 15229freebsd* | dragonfly*)
15230 # DragonFly does not have aout. When/if they implement a new
15231 # versioning mechanism, adjust this.
15232 if test -x /usr/bin/objformat; then
15233 objformat=`/usr/bin/objformat`
15234 else
15235 case $host_os in
b0322a85 15236 freebsd[23].*) objformat=aout ;;
d9898ee8 15237 *) objformat=elf ;;
15238 esac
15239 fi
15240 version_type=freebsd-$objformat
15241 case $version_type in
15242 freebsd-elf*)
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15244 need_version=no
15245 need_lib_prefix=no
15246 ;;
15247 freebsd-*)
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15249 need_version=yes
15250 ;;
15251 esac
15252 shlibpath_var=LD_LIBRARY_PATH
15253 case $host_os in
b0322a85 15254 freebsd2.*)
d9898ee8 15255 shlibpath_overrides_runpath=yes
15256 ;;
15257 freebsd3.[01]* | freebsdelf3.[01]*)
15258 shlibpath_overrides_runpath=yes
15259 hardcode_into_libs=yes
15260 ;;
15261 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15262 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15263 shlibpath_overrides_runpath=no
15264 hardcode_into_libs=yes
15265 ;;
ac40fd9e 15266 *) # from 4.6 on, and DragonFly
d9898ee8 15267 shlibpath_overrides_runpath=yes
15268 hardcode_into_libs=yes
15269 ;;
15270 esac
15271 ;;
15272
15273gnu*)
b0322a85 15274 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15275 need_lib_prefix=no
15276 need_version=no
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 shlibpath_var=LD_LIBRARY_PATH
b0322a85
CE
15280 shlibpath_overrides_runpath=no
15281 hardcode_into_libs=yes
15282 ;;
15283
15284haiku*)
15285 version_type=linux # correct to gnu/linux during the next big refactor
15286 need_lib_prefix=no
15287 need_version=no
15288 dynamic_linker="$host_os runtime_loader"
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 shlibpath_var=LIBRARY_PATH
15292 shlibpath_overrides_runpath=yes
15293 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 15294 hardcode_into_libs=yes
15295 ;;
15296
15297hpux9* | hpux10* | hpux11*)
15298 # Give a soname corresponding to the major version so that dld.sl refuses to
15299 # link against other versions.
15300 version_type=sunos
15301 need_lib_prefix=no
15302 need_version=no
15303 case $host_cpu in
15304 ia64*)
15305 shrext_cmds='.so'
15306 hardcode_into_libs=yes
15307 dynamic_linker="$host_os dld.so"
15308 shlibpath_var=LD_LIBRARY_PATH
15309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311 soname_spec='${libname}${release}${shared_ext}$major'
15312 if test "X$HPUX_IA64_MODE" = X32; then
15313 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15314 else
15315 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15316 fi
15317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15318 ;;
8d138742
CE
15319 hppa*64*)
15320 shrext_cmds='.sl'
15321 hardcode_into_libs=yes
15322 dynamic_linker="$host_os dld.sl"
15323 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 soname_spec='${libname}${release}${shared_ext}$major'
15327 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15329 ;;
15330 *)
d9898ee8 15331 shrext_cmds='.sl'
15332 dynamic_linker="$host_os dld.sl"
15333 shlibpath_var=SHLIB_PATH
15334 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 ;;
15338 esac
b0322a85 15339 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 15340 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
15341 # or fails outright, so override atomically:
15342 install_override_mode=555
d9898ee8 15343 ;;
15344
ac40fd9e 15345interix[3-9]*)
b0322a85 15346 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15347 need_lib_prefix=no
15348 need_version=no
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15352 shlibpath_var=LD_LIBRARY_PATH
15353 shlibpath_overrides_runpath=no
15354 hardcode_into_libs=yes
15355 ;;
15356
15357irix5* | irix6* | nonstopux*)
15358 case $host_os in
15359 nonstopux*) version_type=nonstopux ;;
15360 *)
15361 if test "$lt_cv_prog_gnu_ld" = yes; then
b0322a85 15362 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15363 else
15364 version_type=irix
15365 fi ;;
15366 esac
15367 need_lib_prefix=no
15368 need_version=no
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15371 case $host_os in
15372 irix5* | nonstopux*)
15373 libsuff= shlibsuff=
15374 ;;
15375 *)
15376 case $LD in # libtool.m4 will add one of these switches to LD
15377 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15378 libsuff= shlibsuff= libmagic=32-bit;;
15379 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15380 libsuff=32 shlibsuff=N32 libmagic=N32;;
15381 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15382 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15383 *) libsuff= shlibsuff= libmagic=never-match;;
15384 esac
15385 ;;
15386 esac
15387 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15388 shlibpath_overrides_runpath=no
15389 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15390 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15391 hardcode_into_libs=yes
15392 ;;
15393
15394# No shared lib support for Linux oldld, aout, or coff.
15395linux*oldld* | linux*aout* | linux*coff*)
15396 dynamic_linker=no
15397 ;;
15398
b0322a85
CE
15399# This must be glibc/ELF.
15400linux* | k*bsd*-gnu | kopensolaris*-gnu)
15401 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15402 need_lib_prefix=no
15403 need_version=no
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=no
b0322a85 15409
8d138742 15410 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
15411 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15412 $as_echo_n "(cached) " >&6
15413else
15414 lt_cv_shlibpath_overrides_runpath=no
15415 save_LDFLAGS=$LDFLAGS
15416 save_libdir=$libdir
15417 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15418 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
15420/* end confdefs.h. */
15421
15422int
15423main ()
15424{
15425
15426 ;
15427 return 0;
15428}
15429_ACEOF
b0322a85
CE
15430if ac_fn_cxx_try_link "$LINENO"; then :
15431 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15432 lt_cv_shlibpath_overrides_runpath=yes
8d138742 15433fi
b0322a85
CE
15434fi
15435rm -f core conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
15437 LDFLAGS=$save_LDFLAGS
15438 libdir=$save_libdir
8d138742
CE
15439
15440fi
15441
b0322a85 15442 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8d138742 15443
d9898ee8 15444 # This implies no fast_install, which is unacceptable.
15445 # Some rework will be needed to allow for fast_install
15446 # before this can be enabled.
15447 hardcode_into_libs=yes
8d138742
CE
15448
15449 # Add ABI-specific directories to the system library path.
15450 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 15451
15452 # Append ld.so.conf contents to the search path
15453 if test -f /etc/ld.so.conf; then
b0322a85 15454 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
ac40fd9e 15455 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
b0322a85 15456
d9898ee8 15457 fi
15458
15459 # We used to test for /lib/ld.so.1 and disable shared libraries on
15460 # powerpc, because MkLinux only supported shared libraries with the
15461 # GNU dynamic linker. Since this was broken with cross compilers,
15462 # most powerpc-linux boxes support dynamic linking these days and
15463 # people can always --disable-shared, the test was removed, and we
15464 # assume the GNU/Linux dynamic linker is in use.
15465 dynamic_linker='GNU/Linux ld.so'
15466 ;;
15467
d9898ee8 15468netbsd*)
15469 version_type=sunos
15470 need_lib_prefix=no
15471 need_version=no
8d138742 15472 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15475 dynamic_linker='NetBSD (a.out) ld.so'
15476 else
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 dynamic_linker='NetBSD ld.elf_so'
15480 fi
15481 shlibpath_var=LD_LIBRARY_PATH
15482 shlibpath_overrides_runpath=yes
15483 hardcode_into_libs=yes
15484 ;;
15485
15486newsos6)
b0322a85 15487 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 shlibpath_overrides_runpath=yes
15491 ;;
15492
8d138742
CE
15493*nto* | *qnx*)
15494 version_type=qnx
d9898ee8 15495 need_lib_prefix=no
15496 need_version=no
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15498 soname_spec='${libname}${release}${shared_ext}$major'
15499 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
15500 shlibpath_overrides_runpath=no
15501 hardcode_into_libs=yes
15502 dynamic_linker='ldqnx.so'
d9898ee8 15503 ;;
15504
15505openbsd*)
15506 version_type=sunos
15507 sys_lib_dlsearch_path_spec="/usr/lib"
15508 need_lib_prefix=no
15509 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15510 case $host_os in
8d138742
CE
15511 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15512 *) need_version=no ;;
d9898ee8 15513 esac
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15516 shlibpath_var=LD_LIBRARY_PATH
8d138742 15517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 15518 case $host_os in
15519 openbsd2.[89] | openbsd2.[89].*)
15520 shlibpath_overrides_runpath=no
15521 ;;
15522 *)
15523 shlibpath_overrides_runpath=yes
15524 ;;
15525 esac
15526 else
15527 shlibpath_overrides_runpath=yes
15528 fi
15529 ;;
15530
15531os2*)
15532 libname_spec='$name'
15533 shrext_cmds=".dll"
15534 need_lib_prefix=no
15535 library_names_spec='$libname${shared_ext} $libname.a'
15536 dynamic_linker='OS/2 ld.exe'
15537 shlibpath_var=LIBPATH
15538 ;;
15539
15540osf3* | osf4* | osf5*)
15541 version_type=osf
15542 need_lib_prefix=no
15543 need_version=no
15544 soname_spec='${libname}${release}${shared_ext}$major'
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15549 ;;
15550
ac40fd9e 15551rdos*)
15552 dynamic_linker=no
15553 ;;
15554
d9898ee8 15555solaris*)
b0322a85 15556 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15557 need_lib_prefix=no
15558 need_version=no
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560 soname_spec='${libname}${release}${shared_ext}$major'
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes
15563 hardcode_into_libs=yes
15564 # ldd complains unless libraries are executable
15565 postinstall_cmds='chmod +x $lib'
15566 ;;
15567
15568sunos4*)
15569 version_type=sunos
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15571 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15572 shlibpath_var=LD_LIBRARY_PATH
15573 shlibpath_overrides_runpath=yes
15574 if test "$with_gnu_ld" = yes; then
15575 need_lib_prefix=no
15576 fi
15577 need_version=yes
15578 ;;
15579
15580sysv4 | sysv4.3*)
b0322a85 15581 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 shlibpath_var=LD_LIBRARY_PATH
15585 case $host_vendor in
15586 sni)
15587 shlibpath_overrides_runpath=no
15588 need_lib_prefix=no
d9898ee8 15589 runpath_var=LD_RUN_PATH
15590 ;;
15591 siemens)
15592 need_lib_prefix=no
15593 ;;
15594 motorola)
15595 need_lib_prefix=no
15596 need_version=no
15597 shlibpath_overrides_runpath=no
15598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15599 ;;
15600 esac
15601 ;;
15602
15603sysv4*MP*)
15604 if test -d /usr/nec ;then
b0322a85 15605 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15606 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15607 soname_spec='$libname${shared_ext}.$major'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 fi
15610 ;;
15611
15612sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15613 version_type=freebsd-elf
15614 need_lib_prefix=no
15615 need_version=no
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 shlibpath_var=LD_LIBRARY_PATH
8d138742 15619 shlibpath_overrides_runpath=yes
d9898ee8 15620 hardcode_into_libs=yes
15621 if test "$with_gnu_ld" = yes; then
15622 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 15623 else
15624 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 15625 case $host_os in
15626 sco3.2v5*)
15627 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15628 ;;
15629 esac
15630 fi
15631 sys_lib_dlsearch_path_spec='/usr/lib'
15632 ;;
15633
8d138742
CE
15634tpf*)
15635 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 15636 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
15637 need_lib_prefix=no
15638 need_version=no
15639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 shlibpath_overrides_runpath=no
15642 hardcode_into_libs=yes
15643 ;;
15644
d9898ee8 15645uts4*)
b0322a85 15646 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 ;;
15651
15652*)
15653 dynamic_linker=no
15654 ;;
15655esac
b0322a85 15656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 15657$as_echo "$dynamic_linker" >&6; }
d9898ee8 15658test "$dynamic_linker" = no && can_build_shared=no
15659
15660variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15661if test "$GCC" = yes; then
15662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15663fi
15664
8d138742
CE
15665if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15666 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15667fi
15668if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15669 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15670fi
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
d9898ee8 15706
b0322a85
CE
15707
15708
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
15710$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15711hardcode_action_CXX=
15712if test -n "$hardcode_libdir_flag_spec_CXX" ||
15713 test -n "$runpath_var_CXX" ||
15714 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15715
15716 # We can hardcode non-existent directories.
15717 if test "$hardcode_direct_CXX" != no &&
d9898ee8 15718 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15719 # have to relink, otherwise we might link with an installed library
15720 # when we should be linking with a yet-to-be-installed one
8d138742
CE
15721 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15722 test "$hardcode_minus_L_CXX" != no; then
d9898ee8 15723 # Linking always hardcodes the temporary library directory.
8d138742 15724 hardcode_action_CXX=relink
d9898ee8 15725 else
15726 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8d138742 15727 hardcode_action_CXX=immediate
d9898ee8 15728 fi
15729else
15730 # We cannot hardcode anything, or else we can only hardcode existing
15731 # directories.
8d138742 15732 hardcode_action_CXX=unsupported
d9898ee8 15733fi
b0322a85 15734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
8d138742 15735$as_echo "$hardcode_action_CXX" >&6; }
d9898ee8 15736
8d138742
CE
15737if test "$hardcode_action_CXX" = relink ||
15738 test "$inherit_rpath_CXX" = yes; then
d9898ee8 15739 # Fast installation is not supported
15740 enable_fast_install=no
15741elif test "$shlibpath_overrides_runpath" = yes ||
15742 test "$enable_shared" = no; then
15743 # Fast installation is not necessary
15744 enable_fast_install=needless
15745fi
15746
15747
d9898ee8 15748
d9898ee8 15749
d9898ee8 15750
d9898ee8 15751
d9898ee8 15752
8d138742 15753 fi # test -n "$compiler"
d9898ee8 15754
8d138742 15755 CC=$lt_save_CC
b0322a85 15756 CFLAGS=$lt_save_CFLAGS
8d138742
CE
15757 LDCXX=$LD
15758 LD=$lt_save_LD
15759 GCC=$lt_save_GCC
15760 with_gnu_ld=$lt_save_with_gnu_ld
15761 lt_cv_path_LDCXX=$lt_cv_path_LD
15762 lt_cv_path_LD=$lt_save_path_LD
15763 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15764 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15765fi # test "$_lt_caught_CXX_error" != yes
d9898ee8 15766
8d138742
CE
15767ac_ext=c
15768ac_cpp='$CPP $CPPFLAGS'
15769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15771ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 15772
d9898ee8 15773
b0322a85
CE
15774for ac_prog in perl5 perl
15775do
15776 # Extract the first word of "$ac_prog", so it can be a program name with args.
15777set dummy $ac_prog; ac_word=$2
15778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779$as_echo_n "checking for $ac_word... " >&6; }
15780if ${ac_cv_path_PERL+:} false; then :
15781 $as_echo_n "(cached) " >&6
15782else
15783 case $PERL in
15784 [\\/]* | ?:[\\/]*)
15785 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15786 ;;
15787 *)
15788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15789for as_dir in $LPATH
15790do
15791 IFS=$as_save_IFS
15792 test -z "$as_dir" && as_dir=.
15793 for ac_exec_ext in '' $ac_executable_extensions; do
15794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15795 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15797 break 2
15798 fi
15799done
15800 done
15801IFS=$as_save_IFS
15802
15803 ;;
15804esac
15805fi
15806PERL=$ac_cv_path_PERL
15807if test -n "$PERL"; then
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15809$as_echo "$PERL" >&6; }
15810else
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15812$as_echo "no" >&6; }
15813fi
15814
15815
15816 test -n "$PERL" && break
15817done
15818test -n "$PERL" || PERL="perl"
15819
d9898ee8 15820
b0322a85
CE
15821if test "$PERL" = "perl"
15822then
15823 as_fn_error $? "Perl not found." "$LINENO" 5
15824fi
d9898ee8 15825
d9898ee8 15826
d9898ee8 15827
b0322a85
CE
15828for ac_header in stddef.h wchar.h locale.h
15829do :
15830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15831ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15832if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15833 cat >>confdefs.h <<_ACEOF
15834#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15835_ACEOF
d9898ee8 15836
b0322a85 15837fi
d9898ee8 15838
b0322a85 15839done
d9898ee8 15840
d9898ee8 15841
d9898ee8 15842
d9898ee8 15843
b0322a85
CE
15844for ac_func in setlocale
15845do :
15846 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
15847if test "x$ac_cv_func_setlocale" = xyes; then :
15848 cat >>confdefs.h <<_ACEOF
15849#define HAVE_SETLOCALE 1
15850_ACEOF
d9898ee8 15851
b0322a85
CE
15852fi
15853done
15854
15855
15856 if test -f ${srcdir}/UnicodeData.txt; then
15857 UPDATE_UNICODE_TRUE=
15858 UPDATE_UNICODE_FALSE='#'
15859else
15860 UPDATE_UNICODE_TRUE='#'
15861 UPDATE_UNICODE_FALSE=
15862fi
d9898ee8 15863
d9898ee8 15864
b0322a85
CE
15865# Check whether --enable-largefile was given.
15866if test "${enable_largefile+set}" = set; then :
15867 enableval=$enable_largefile;
15868fi
d9898ee8 15869
b0322a85 15870if test "$enable_largefile" != no; then
d9898ee8 15871
b0322a85
CE
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15873$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15874if ${ac_cv_sys_largefile_CC+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876else
15877 ac_cv_sys_largefile_CC=no
15878 if test "$GCC" != yes; then
15879 ac_save_CC=$CC
15880 while :; do
15881 # IRIX 6.2 and later do not support large files by default,
15882 # so use the C compiler's -n32 option if that helps.
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h. */
15885#include <sys/types.h>
15886 /* Check that off_t can represent 2**63 - 1 correctly.
15887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15888 since some C++ compilers masquerading as C compilers
15889 incorrectly reject 9223372036854775807. */
15890#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15892 && LARGE_OFF_T % 2147483647 == 1)
15893 ? 1 : -1];
15894int
15895main ()
15896{
d9898ee8 15897
b0322a85
CE
15898 ;
15899 return 0;
15900}
15901_ACEOF
15902 if ac_fn_c_try_compile "$LINENO"; then :
15903 break
15904fi
15905rm -f core conftest.err conftest.$ac_objext
15906 CC="$CC -n32"
15907 if ac_fn_c_try_compile "$LINENO"; then :
15908 ac_cv_sys_largefile_CC=' -n32'; break
15909fi
15910rm -f core conftest.err conftest.$ac_objext
15911 break
15912 done
15913 CC=$ac_save_CC
15914 rm -f conftest.$ac_ext
15915 fi
15916fi
15917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15918$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15919 if test "$ac_cv_sys_largefile_CC" != no; then
15920 CC=$CC$ac_cv_sys_largefile_CC
15921 fi
d9898ee8 15922
b0322a85
CE
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15924$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15925if ${ac_cv_sys_file_offset_bits+:} false; then :
15926 $as_echo_n "(cached) " >&6
15927else
15928 while :; do
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930/* end confdefs.h. */
15931#include <sys/types.h>
15932 /* Check that off_t can represent 2**63 - 1 correctly.
15933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15934 since some C++ compilers masquerading as C compilers
15935 incorrectly reject 9223372036854775807. */
15936#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15938 && LARGE_OFF_T % 2147483647 == 1)
15939 ? 1 : -1];
15940int
15941main ()
15942{
d9898ee8 15943
b0322a85
CE
15944 ;
15945 return 0;
15946}
15947_ACEOF
15948if ac_fn_c_try_compile "$LINENO"; then :
15949 ac_cv_sys_file_offset_bits=no; break
15950fi
15951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953/* end confdefs.h. */
15954#define _FILE_OFFSET_BITS 64
15955#include <sys/types.h>
15956 /* Check that off_t can represent 2**63 - 1 correctly.
15957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15958 since some C++ compilers masquerading as C compilers
15959 incorrectly reject 9223372036854775807. */
15960#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15962 && LARGE_OFF_T % 2147483647 == 1)
15963 ? 1 : -1];
15964int
15965main ()
15966{
d9898ee8 15967
b0322a85
CE
15968 ;
15969 return 0;
15970}
15971_ACEOF
15972if ac_fn_c_try_compile "$LINENO"; then :
15973 ac_cv_sys_file_offset_bits=64; break
15974fi
15975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15976 ac_cv_sys_file_offset_bits=unknown
15977 break
15978done
15979fi
15980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15981$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15982case $ac_cv_sys_file_offset_bits in #(
15983 no | unknown) ;;
15984 *)
15985cat >>confdefs.h <<_ACEOF
15986#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15987_ACEOF
15988;;
15989esac
15990rm -rf conftest*
15991 if test $ac_cv_sys_file_offset_bits = unknown; then
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15993$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15994if ${ac_cv_sys_large_files+:} false; then :
8d138742
CE
15995 $as_echo_n "(cached) " >&6
15996else
b0322a85
CE
15997 while :; do
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 15999/* end confdefs.h. */
b0322a85
CE
16000#include <sys/types.h>
16001 /* Check that off_t can represent 2**63 - 1 correctly.
16002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16003 since some C++ compilers masquerading as C compilers
16004 incorrectly reject 9223372036854775807. */
16005#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16007 && LARGE_OFF_T % 2147483647 == 1)
16008 ? 1 : -1];
16009int
16010main ()
16011{
d9898ee8 16012
b0322a85
CE
16013 ;
16014 return 0;
16015}
16016_ACEOF
16017if ac_fn_c_try_compile "$LINENO"; then :
16018 ac_cv_sys_large_files=no; break
16019fi
16020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022/* end confdefs.h. */
16023#define _LARGE_FILES 1
16024#include <sys/types.h>
16025 /* Check that off_t can represent 2**63 - 1 correctly.
16026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16027 since some C++ compilers masquerading as C compilers
16028 incorrectly reject 9223372036854775807. */
16029#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16031 && LARGE_OFF_T % 2147483647 == 1)
16032 ? 1 : -1];
8d138742
CE
16033int
16034main ()
16035{
b0322a85 16036
8d138742
CE
16037 ;
16038 return 0;
16039}
16040_ACEOF
b0322a85
CE
16041if ac_fn_c_try_compile "$LINENO"; then :
16042 ac_cv_sys_large_files=1; break
16043fi
16044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045 ac_cv_sys_large_files=unknown
16046 break
16047done
16048fi
16049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16050$as_echo "$ac_cv_sys_large_files" >&6; }
16051case $ac_cv_sys_large_files in #(
16052 no | unknown) ;;
16053 *)
16054cat >>confdefs.h <<_ACEOF
16055#define _LARGE_FILES $ac_cv_sys_large_files
16056_ACEOF
16057;;
8d138742 16058esac
b0322a85
CE
16059rm -rf conftest*
16060 fi
d9898ee8 16061
d9898ee8 16062
8d138742 16063fi
d9898ee8 16064
d9898ee8 16065
b0322a85
CE
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16067$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16068if ${ac_cv_c_bigendian+:} false; then :
8d138742
CE
16069 $as_echo_n "(cached) " >&6
16070else
b0322a85
CE
16071 ac_cv_c_bigendian=unknown
16072 # See if we're dealing with a universal compiler.
16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16074/* end confdefs.h. */
b0322a85
CE
16075#ifndef __APPLE_CC__
16076 not a universal capable compiler
16077 #endif
16078 typedef int dummy;
d9898ee8 16079
b0322a85
CE
16080_ACEOF
16081if ac_fn_c_try_compile "$LINENO"; then :
16082
16083 # Check for potential -arch flags. It is not universal unless
16084 # there are at least two -arch flags with different values.
16085 ac_arch=
16086 ac_prev=
16087 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16088 if test -n "$ac_prev"; then
16089 case $ac_word in
16090 i?86 | x86_64 | ppc | ppc64)
16091 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16092 ac_arch=$ac_word
16093 else
16094 ac_cv_c_bigendian=universal
16095 break
16096 fi
16097 ;;
16098 esac
16099 ac_prev=
16100 elif test "x$ac_word" = "x-arch"; then
16101 ac_prev=arch
16102 fi
16103 done
16104fi
16105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16106 if test $ac_cv_c_bigendian = unknown; then
16107 # See if sys/param.h defines the BYTE_ORDER macro.
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109/* end confdefs.h. */
16110#include <sys/types.h>
16111 #include <sys/param.h>
d9898ee8 16112
b0322a85
CE
16113int
16114main ()
16115{
16116#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16117 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16118 && LITTLE_ENDIAN)
16119 bogus endian macros
16120 #endif
d9898ee8 16121
b0322a85
CE
16122 ;
16123 return 0;
16124}
16125_ACEOF
16126if ac_fn_c_try_compile "$LINENO"; then :
16127 # It does; now see whether it defined to BIG_ENDIAN or not.
16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129/* end confdefs.h. */
16130#include <sys/types.h>
16131 #include <sys/param.h>
d9898ee8 16132
8d138742
CE
16133int
16134main ()
16135{
b0322a85
CE
16136#if BYTE_ORDER != BIG_ENDIAN
16137 not big endian
16138 #endif
16139
8d138742
CE
16140 ;
16141 return 0;
16142}
16143_ACEOF
b0322a85
CE
16144if ac_fn_c_try_compile "$LINENO"; then :
16145 ac_cv_c_bigendian=yes
8d138742 16146else
b0322a85 16147 ac_cv_c_bigendian=no
8d138742 16148fi
b0322a85 16149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 16150fi
b0322a85
CE
16151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16152 fi
16153 if test $ac_cv_c_bigendian = unknown; then
16154 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156/* end confdefs.h. */
16157#include <limits.h>
d9898ee8 16158
b0322a85
CE
16159int
16160main ()
16161{
16162#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16163 bogus endian macros
16164 #endif
d9898ee8 16165
b0322a85
CE
16166 ;
16167 return 0;
16168}
8d138742 16169_ACEOF
b0322a85
CE
16170if ac_fn_c_try_compile "$LINENO"; then :
16171 # It does; now see whether it defined to _BIG_ENDIAN or not.
16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16173/* end confdefs.h. */
b0322a85 16174#include <limits.h>
d9898ee8 16175
8d138742
CE
16176int
16177main ()
16178{
b0322a85
CE
16179#ifndef _BIG_ENDIAN
16180 not big endian
16181 #endif
16182
8d138742
CE
16183 ;
16184 return 0;
16185}
16186_ACEOF
b0322a85
CE
16187if ac_fn_c_try_compile "$LINENO"; then :
16188 ac_cv_c_bigendian=yes
8d138742 16189else
b0322a85 16190 ac_cv_c_bigendian=no
8d138742 16191fi
b0322a85 16192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 16193fi
b0322a85
CE
16194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 fi
16196 if test $ac_cv_c_bigendian = unknown; then
16197 # Compile a test program.
16198 if test "$cross_compiling" = yes; then :
16199 # Try to guess by grepping values from an object file.
16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201/* end confdefs.h. */
16202short int ascii_mm[] =
16203 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16204 short int ascii_ii[] =
16205 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16206 int use_ascii (int i) {
16207 return ascii_mm[i] + ascii_ii[i];
16208 }
16209 short int ebcdic_ii[] =
16210 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16211 short int ebcdic_mm[] =
16212 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16213 int use_ebcdic (int i) {
16214 return ebcdic_mm[i] + ebcdic_ii[i];
16215 }
16216 extern int foo;
d9898ee8 16217
b0322a85
CE
16218int
16219main ()
16220{
16221return use_ascii (foo) == use_ebcdic (foo);
16222 ;
16223 return 0;
16224}
16225_ACEOF
16226if ac_fn_c_try_compile "$LINENO"; then :
16227 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16228 ac_cv_c_bigendian=yes
16229 fi
16230 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16231 if test "$ac_cv_c_bigendian" = unknown; then
16232 ac_cv_c_bigendian=no
16233 else
16234 # finding both strings is unlikely to happen, but who knows?
16235 ac_cv_c_bigendian=unknown
16236 fi
16237 fi
8d138742 16238fi
b0322a85 16239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 16240else
b0322a85 16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
16242/* end confdefs.h. */
16243$ac_includes_default
b0322a85
CE
16244int
16245main ()
16246{
d9898ee8 16247
b0322a85
CE
16248 /* Are we little or big endian? From Harbison&Steele. */
16249 union
16250 {
16251 long int l;
16252 char c[sizeof (long int)];
16253 } u;
16254 u.l = 1;
16255 return u.c[sizeof (long int) - 1] == 1;
d9898ee8 16256
b0322a85
CE
16257 ;
16258 return 0;
16259}
8d138742 16260_ACEOF
b0322a85
CE
16261if ac_fn_c_try_run "$LINENO"; then :
16262 ac_cv_c_bigendian=no
8d138742 16263else
b0322a85 16264 ac_cv_c_bigendian=yes
8d138742 16265fi
b0322a85
CE
16266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16267 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742 16268fi
d9898ee8 16269
b0322a85
CE
16270 fi
16271fi
16272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16273$as_echo "$ac_cv_c_bigendian" >&6; }
16274 case $ac_cv_c_bigendian in #(
16275 yes)
16276 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16277;; #(
16278 no)
16279 ;; #(
16280 universal)
d9898ee8 16281
b0322a85 16282$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
d9898ee8 16283
b0322a85
CE
16284 ;; #(
16285 *)
16286 as_fn_error $? "unknown endianness
16287 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16288 esac
d9898ee8 16289
d9898ee8 16290
b0322a85
CE
16291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcharset is used" >&5
16292$as_echo_n "checking whether libcharset is used... " >&6; }
d9898ee8 16293
b0322a85
CE
16294# Check whether --with-libcharset was given.
16295if test "${with_libcharset+set}" = set; then :
16296 withval=$with_libcharset; unicode_with_libcharset=$withval
8d138742 16297else
b0322a85 16298 unicode_with_libcharset=no
8d138742 16299fi
d9898ee8 16300
b0322a85
CE
16301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $unicode_with_libcharset" >&5
16302$as_echo "$unicode_with_libcharset" >&6; }
16303if test "$unicode_with_libcharset" = "yes"; then
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5
16305$as_echo_n "checking for locale_charset in -lcharset... " >&6; }
16306if ${ac_cv_lib_charset_locale_charset+:} false; then :
8d138742
CE
16307 $as_echo_n "(cached) " >&6
16308else
b0322a85
CE
16309 ac_check_lib_save_LIBS=$LIBS
16310LIBS="-lcharset $LIBS"
16311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16312/* end confdefs.h. */
d9898ee8 16313
b0322a85
CE
16314/* Override any GCC internal prototype to avoid an error.
16315 Use char because int might match the return type of a GCC
16316 builtin and then its argument prototype would still apply. */
16317#ifdef __cplusplus
16318extern "C"
16319#endif
16320char locale_charset ();
8d138742
CE
16321int
16322main ()
16323{
b0322a85 16324return locale_charset ();
8d138742
CE
16325 ;
16326 return 0;
16327}
16328_ACEOF
b0322a85
CE
16329if ac_fn_c_try_link "$LINENO"; then :
16330 ac_cv_lib_charset_locale_charset=yes
8d138742 16331else
b0322a85 16332 ac_cv_lib_charset_locale_charset=no
8d138742 16333fi
b0322a85
CE
16334rm -f core conftest.err conftest.$ac_objext \
16335 conftest$ac_exeext conftest.$ac_ext
16336LIBS=$ac_check_lib_save_LIBS
16337fi
16338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5
16339$as_echo "$ac_cv_lib_charset_locale_charset" >&6; }
16340if test "x$ac_cv_lib_charset_locale_charset" = xyes; then :
16341 cat >>confdefs.h <<_ACEOF
16342#define HAVE_LIBCHARSET 1
16343_ACEOF
16344
16345 LIBS="-lcharset $LIBS"
d9898ee8 16346
8d138742 16347fi
d9898ee8 16348
b0322a85
CE
16349 if test "$ac_cv_lib_charset_locale_charset" = "yes"; then
16350 for ac_header in localcharset.h libcharset.h
16351do :
16352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16353ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16354if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16355 cat >>confdefs.h <<_ACEOF
16356#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8d138742 16357_ACEOF
d9898ee8 16358
8d138742 16359fi
d9898ee8 16360
b0322a85
CE
16361done
16362
16363 else
16364 as_fn_error $? "libcharset was not found. Install libcharset package." "$LINENO" 5
16365 fi
16366
16367cat >>confdefs.h <<_ACEOF
16368#define UNICODE_USE_LIBCHARSET 1
16369_ACEOF
16370
16371else
16372
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16374$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16375if ${am_cv_langinfo_codeset+:} false; then :
8d138742
CE
16376 $as_echo_n "(cached) " >&6
16377else
b0322a85 16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16379/* end confdefs.h. */
b0322a85 16380#include <langinfo.h>
8d138742
CE
16381int
16382main ()
16383{
b0322a85 16384char* cs = nl_langinfo(CODESET); return !cs;
8d138742
CE
16385 ;
16386 return 0;
16387}
16388_ACEOF
b0322a85
CE
16389if ac_fn_c_try_link "$LINENO"; then :
16390 am_cv_langinfo_codeset=yes
8d138742 16391else
b0322a85 16392 am_cv_langinfo_codeset=no
8d138742 16393fi
b0322a85
CE
16394rm -f core conftest.err conftest.$ac_objext \
16395 conftest$ac_exeext conftest.$ac_ext
d9898ee8 16396
d9898ee8 16397fi
b0322a85
CE
16398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
16399$as_echo "$am_cv_langinfo_codeset" >&6; }
16400 if test $am_cv_langinfo_codeset = yes; then
d9898ee8 16401
b0322a85 16402$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
d9898ee8 16403
b0322a85 16404 fi
d9898ee8 16405
8d138742 16406fi
d9898ee8 16407
b0322a85 16408save_LIBS="$LIBS"
d9898ee8 16409
b0322a85 16410LIBS="$LIBS -liconv"
d9898ee8 16411
b0322a85 16412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 16413/* end confdefs.h. */
d9898ee8 16414
b0322a85
CE
16415#include <iconv.h>
16416
8d138742
CE
16417int
16418main ()
16419{
d9898ee8 16420
b0322a85
CE
16421
16422iconv_open("","");
d9898ee8 16423
8d138742
CE
16424 ;
16425 return 0;
16426}
16427_ACEOF
b0322a85
CE
16428if ac_fn_c_try_link "$LINENO"; then :
16429 :
8d138742 16430else
b0322a85 16431 LIBS="$save_LIBS"
8d138742 16432fi
b0322a85
CE
16433rm -f core conftest.err conftest.$ac_objext \
16434 conftest$ac_exeext conftest.$ac_ext
d9898ee8 16435
b0322a85 16436if test "$GCC" = "yes"
8d138742 16437then
b0322a85 16438 CFLAGS="$CFLAGS -Wall -fexceptions"
8d138742 16439fi
b0322a85
CE
16440CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
16441CXXFLAGS="-I.. -I$srcdir/.. $CXXFLAGS"
8d138742 16442ac_config_files="$ac_config_files Makefile"
d9898ee8 16443
8d138742
CE
16444cat >confcache <<\_ACEOF
16445# This file is a shell script that caches the results of configure
16446# tests run on this system so they can be shared between configure
16447# scripts and configure runs, see configure's option --config-cache.
16448# It is not useful on other systems. If it contains results you don't
16449# want to keep, you may remove or edit it.
16450#
16451# config.status only pays attention to the cache file if you give it
16452# the --recheck option to rerun configure.
16453#
16454# `ac_cv_env_foo' variables (set or unset) will be overridden when
16455# loading this file, other *unset* `ac_cv_foo' will be assigned the
16456# following values.
d9898ee8 16457
8d138742 16458_ACEOF
d9898ee8 16459
8d138742
CE
16460# The following way of writing the cache mishandles newlines in values,
16461# but we know of no workaround that is simple, portable, and efficient.
16462# So, we kill variables containing newlines.
16463# Ultrix sh set writes to stderr and can't be redirected directly,
16464# and sets the high bit in the cache file unless we assign to the vars.
16465(
16466 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16467 eval ac_val=\$$ac_var
16468 case $ac_val in #(
16469 *${as_nl}*)
16470 case $ac_var in #(
b0322a85 16471 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
16472$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16473 esac
16474 case $ac_var in #(
16475 _ | IFS | as_nl) ;; #(
16476 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 16477 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742 16478 esac ;;
d9898ee8 16479 esac
16480 done
16481
8d138742
CE
16482 (set) 2>&1 |
16483 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16484 *${as_nl}ac_space=\ *)
b0322a85
CE
16485 # `set' does not quote correctly, so add quotes: double-quote
16486 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
16487 sed -n \
16488 "s/'/'\\\\''/g;
16489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16490 ;; #(
16491 *)
16492 # `set' quotes correctly as required by POSIX, so do not add quotes.
16493 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16494 ;;
16495 esac |
16496 sort
16497) |
16498 sed '
16499 /^ac_cv_env_/b end
16500 t clear
16501 :clear
16502 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16503 t end
16504 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16505 :end' >>confcache
16506if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16507 if test -w "$cache_file"; then
b0322a85
CE
16508 if test "x$cache_file" != "x/dev/null"; then
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 16510$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
16511 if test ! -f "$cache_file" || test -h "$cache_file"; then
16512 cat confcache >"$cache_file"
16513 else
16514 case $cache_file in #(
16515 */* | ?:*)
16516 mv -f confcache "$cache_file"$$ &&
16517 mv -f "$cache_file"$$ "$cache_file" ;; #(
16518 *)
16519 mv -f confcache "$cache_file" ;;
16520 esac
16521 fi
16522 fi
8d138742 16523 else
b0322a85 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
16525$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16526 fi
16527fi
16528rm -f confcache
d9898ee8 16529
8d138742
CE
16530test "x$prefix" = xNONE && prefix=$ac_default_prefix
16531# Let make expand exec_prefix.
16532test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 16533
8d138742 16534DEFS=-DHAVE_CONFIG_H
d9898ee8 16535
8d138742
CE
16536ac_libobjs=
16537ac_ltlibobjs=
16538for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16539 # 1. Remove the extension, and $U if already installed.
16540 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16541 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16542 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16543 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
16544 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16545 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
16546done
16547LIBOBJS=$ac_libobjs
d9898ee8 16548
8d138742 16549LTLIBOBJS=$ac_ltlibobjs
d9898ee8 16550
d9898ee8 16551
b0322a85
CE
16552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16553$as_echo_n "checking that generated files are newer than configure... " >&6; }
16554 if test -n "$am_sleep_pid"; then
16555 # Hide warnings about reused PIDs.
16556 wait $am_sleep_pid 2>/dev/null
16557 fi
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16559$as_echo "done" >&6; }
8d138742
CE
16560 if test -n "$EXEEXT"; then
16561 am__EXEEXT_TRUE=
16562 am__EXEEXT_FALSE='#'
16563else
16564 am__EXEEXT_TRUE='#'
16565 am__EXEEXT_FALSE=
16566fi
d9898ee8 16567
8d138742 16568if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
16569 as_fn_error $? "conditional \"AMDEP\" was never defined.
16570Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
16571fi
16572if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
16573 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16574Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
16575fi
16576if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
16577 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16578Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
16579fi
16580if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
b0322a85
CE
16581 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16582Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742 16583fi
b0322a85
CE
16584if test -z "${UPDATE_UNICODE_TRUE}" && test -z "${UPDATE_UNICODE_FALSE}"; then
16585 as_fn_error $? "conditional \"UPDATE_UNICODE\" was never defined.
16586Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742 16587fi
d9898ee8 16588
b0322a85
CE
16589
16590: "${CONFIG_STATUS=./config.status}"
8d138742
CE
16591ac_write_fail=0
16592ac_clean_files_save=$ac_clean_files
16593ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 16594{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 16595$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
16596as_write_fail=0
16597cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
16598#! $SHELL
16599# Generated by $as_me.
16600# Run this file to recreate the current configuration.
16601# Compiler output produced by configure, useful for debugging
16602# configure, is in config.log if it exists.
d9898ee8 16603
8d138742
CE
16604debug=false
16605ac_cs_recheck=false
16606ac_cs_silent=false
d9898ee8 16607
b0322a85
CE
16608SHELL=\${CONFIG_SHELL-$SHELL}
16609export SHELL
16610_ASEOF
16611cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16612## -------------------- ##
16613## M4sh Initialization. ##
16614## -------------------- ##
d9898ee8 16615
8d138742
CE
16616# Be more Bourne compatible
16617DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 16618if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
16619 emulate sh
16620 NULLCMD=:
16621 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16622 # is contrary to our usage. Disable this feature.
16623 alias -g '${1+"$@"}'='"$@"'
16624 setopt NO_GLOB_SUBST
16625else
b0322a85
CE
16626 case `(set -o) 2>/dev/null` in #(
16627 *posix*) :
16628 set -o posix ;; #(
16629 *) :
16630 ;;
8d138742 16631esac
8d138742 16632fi
d9898ee8 16633
d9898ee8 16634
8d138742
CE
16635as_nl='
16636'
16637export as_nl
16638# Printing a long string crashes Solaris 7 /usr/bin/printf.
16639as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16640as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16641as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
16642# Prefer a ksh shell builtin over an external printf program on Solaris,
16643# but without wasting forks for bash or zsh.
16644if test -z "$BASH_VERSION$ZSH_VERSION" \
16645 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16646 as_echo='print -r --'
16647 as_echo_n='print -rn --'
16648elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
16649 as_echo='printf %s\n'
16650 as_echo_n='printf %s'
16651else
16652 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16653 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16654 as_echo_n='/usr/ucb/echo -n'
16655 else
16656 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16657 as_echo_n_body='eval
16658 arg=$1;
b0322a85 16659 case $arg in #(
8d138742
CE
16660 *"$as_nl"*)
16661 expr "X$arg" : "X\\(.*\\)$as_nl";
16662 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16663 esac;
16664 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16665 '
16666 export as_echo_n_body
16667 as_echo_n='sh -c $as_echo_n_body as_echo'
16668 fi
16669 export as_echo_body
16670 as_echo='sh -c $as_echo_body as_echo'
16671fi
d9898ee8 16672
8d138742
CE
16673# The user is always right.
16674if test "${PATH_SEPARATOR+set}" != set; then
16675 PATH_SEPARATOR=:
16676 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16677 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16678 PATH_SEPARATOR=';'
16679 }
16680fi
d9898ee8 16681
d9898ee8 16682
8d138742
CE
16683# IFS
16684# We need space, tab and new line, in precisely that order. Quoting is
16685# there to prevent editors from complaining about space-tab.
16686# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16687# splitting by setting IFS to empty value.)
16688IFS=" "" $as_nl"
d9898ee8 16689
8d138742 16690# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
16691as_myself=
16692case $0 in #((
8d138742
CE
16693 *[\\/]* ) as_myself=$0 ;;
16694 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16695for as_dir in $PATH
16696do
16697 IFS=$as_save_IFS
16698 test -z "$as_dir" && as_dir=.
b0322a85
CE
16699 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16700 done
8d138742 16701IFS=$as_save_IFS
d9898ee8 16702
8d138742
CE
16703 ;;
16704esac
16705# We did not find ourselves, most probably we were run as `sh COMMAND'
16706# in which case we are not to be found in the path.
16707if test "x$as_myself" = x; then
16708 as_myself=$0
16709fi
16710if test ! -f "$as_myself"; then
16711 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 16712 exit 1
8d138742 16713fi
d9898ee8 16714
b0322a85
CE
16715# Unset variables that we do not need and which cause bugs (e.g. in
16716# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16717# suppresses any "Segmentation fault" message there. '((' could
16718# trigger a bug in pdksh 5.2.14.
16719for as_var in BASH_ENV ENV MAIL MAILPATH
16720do eval test x\${$as_var+set} = xset \
16721 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
16722done
16723PS1='$ '
16724PS2='> '
16725PS4='+ '
d9898ee8 16726
8d138742
CE
16727# NLS nuisances.
16728LC_ALL=C
16729export LC_ALL
16730LANGUAGE=C
16731export LANGUAGE
d9898ee8 16732
b0322a85
CE
16733# CDPATH.
16734(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16735
16736
16737# as_fn_error STATUS ERROR [LINENO LOG_FD]
16738# ----------------------------------------
16739# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16740# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16741# script with STATUS, using 1 if that was 0.
16742as_fn_error ()
16743{
16744 as_status=$1; test $as_status -eq 0 && as_status=1
16745 if test "$4"; then
16746 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16747 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16748 fi
16749 $as_echo "$as_me: error: $2" >&2
16750 as_fn_exit $as_status
16751} # as_fn_error
16752
16753
16754# as_fn_set_status STATUS
16755# -----------------------
16756# Set $? to STATUS, without forking.
16757as_fn_set_status ()
16758{
16759 return $1
16760} # as_fn_set_status
16761
16762# as_fn_exit STATUS
16763# -----------------
16764# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16765as_fn_exit ()
16766{
16767 set +e
16768 as_fn_set_status $1
16769 exit $1
16770} # as_fn_exit
16771
16772# as_fn_unset VAR
16773# ---------------
16774# Portably unset VAR.
16775as_fn_unset ()
16776{
16777 { eval $1=; unset $1;}
16778}
16779as_unset=as_fn_unset
16780# as_fn_append VAR VALUE
16781# ----------------------
16782# Append the text in VALUE to the end of the definition contained in VAR. Take
16783# advantage of any shell optimizations that allow amortized linear growth over
16784# repeated appends, instead of the typical quadratic growth present in naive
16785# implementations.
16786if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16787 eval 'as_fn_append ()
16788 {
16789 eval $1+=\$2
16790 }'
16791else
16792 as_fn_append ()
16793 {
16794 eval $1=\$$1\$2
16795 }
16796fi # as_fn_append
16797
16798# as_fn_arith ARG...
16799# ------------------
16800# Perform arithmetic evaluation on the ARGs, and store the result in the
16801# global $as_val. Take advantage of shells that can avoid forks. The arguments
16802# must be portable across $(()) and expr.
16803if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16804 eval 'as_fn_arith ()
16805 {
16806 as_val=$(( $* ))
16807 }'
16808else
16809 as_fn_arith ()
16810 {
16811 as_val=`expr "$@" || test $? -eq 1`
16812 }
16813fi # as_fn_arith
16814
16815
8d138742
CE
16816if expr a : '\(a\)' >/dev/null 2>&1 &&
16817 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16818 as_expr=expr
16819else
16820 as_expr=false
16821fi
d9898ee8 16822
8d138742
CE
16823if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16824 as_basename=basename
16825else
16826 as_basename=false
16827fi
d9898ee8 16828
b0322a85
CE
16829if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16830 as_dirname=dirname
16831else
16832 as_dirname=false
16833fi
d9898ee8 16834
8d138742
CE
16835as_me=`$as_basename -- "$0" ||
16836$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16837 X"$0" : 'X\(//\)$' \| \
16838 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16839$as_echo X/"$0" |
16840 sed '/^.*\/\([^/][^/]*\)\/*$/{
16841 s//\1/
16842 q
16843 }
16844 /^X\/\(\/\/\)$/{
16845 s//\1/
16846 q
16847 }
16848 /^X\/\(\/\).*/{
16849 s//\1/
16850 q
16851 }
16852 s/.*/./; q'`
d9898ee8 16853
b0322a85
CE
16854# Avoid depending upon Character Ranges.
16855as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16856as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16857as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16858as_cr_digits='0123456789'
16859as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 16860
8d138742 16861ECHO_C= ECHO_N= ECHO_T=
b0322a85 16862case `echo -n x` in #(((((
8d138742 16863-n*)
b0322a85 16864 case `echo 'xy\c'` in
8d138742 16865 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
16866 xy) ECHO_C='\c';;
16867 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16868 ECHO_T=' ';;
8d138742
CE
16869 esac;;
16870*)
16871 ECHO_N='-n';;
16872esac
d9898ee8 16873
8d138742
CE
16874rm -f conf$$ conf$$.exe conf$$.file
16875if test -d conf$$.dir; then
16876 rm -f conf$$.dir/conf$$.file
16877else
16878 rm -f conf$$.dir
16879 mkdir conf$$.dir 2>/dev/null
16880fi
16881if (echo >conf$$.file) 2>/dev/null; then
16882 if ln -s conf$$.file conf$$ 2>/dev/null; then
16883 as_ln_s='ln -s'
16884 # ... but there are two gotchas:
16885 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16886 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
b0322a85 16887 # In both cases, we have to default to `cp -pR'.
8d138742 16888 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
b0322a85 16889 as_ln_s='cp -pR'
8d138742
CE
16890 elif ln conf$$.file conf$$ 2>/dev/null; then
16891 as_ln_s=ln
16892 else
b0322a85 16893 as_ln_s='cp -pR'
8d138742
CE
16894 fi
16895else
b0322a85 16896 as_ln_s='cp -pR'
8d138742
CE
16897fi
16898rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16899rmdir conf$$.dir 2>/dev/null
d9898ee8 16900
b0322a85
CE
16901
16902# as_fn_mkdir_p
16903# -------------
16904# Create "$as_dir" as a directory, including parents if necessary.
16905as_fn_mkdir_p ()
16906{
16907
16908 case $as_dir in #(
16909 -*) as_dir=./$as_dir;;
16910 esac
16911 test -d "$as_dir" || eval $as_mkdir_p || {
16912 as_dirs=
16913 while :; do
16914 case $as_dir in #(
16915 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16916 *) as_qdir=$as_dir;;
16917 esac
16918 as_dirs="'$as_qdir' $as_dirs"
16919 as_dir=`$as_dirname -- "$as_dir" ||
16920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16921 X"$as_dir" : 'X\(//\)[^/]' \| \
16922 X"$as_dir" : 'X\(//\)$' \| \
16923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16924$as_echo X"$as_dir" |
16925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16926 s//\1/
16927 q
16928 }
16929 /^X\(\/\/\)[^/].*/{
16930 s//\1/
16931 q
16932 }
16933 /^X\(\/\/\)$/{
16934 s//\1/
16935 q
16936 }
16937 /^X\(\/\).*/{
16938 s//\1/
16939 q
16940 }
16941 s/.*/./; q'`
16942 test -d "$as_dir" && break
16943 done
16944 test -z "$as_dirs" || eval "mkdir $as_dirs"
16945 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16946
16947
16948} # as_fn_mkdir_p
8d138742 16949if mkdir -p . 2>/dev/null; then
b0322a85 16950 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
16951else
16952 test -d ./-p && rmdir ./-p
16953 as_mkdir_p=false
16954fi
d9898ee8 16955
b0322a85
CE
16956
16957# as_fn_executable_p FILE
16958# -----------------------
16959# Test if FILE is an executable regular file.
16960as_fn_executable_p ()
16961{
16962 test -f "$1" && test -x "$1"
16963} # as_fn_executable_p
16964as_test_x='test -x'
16965as_executable_p=as_fn_executable_p
d9898ee8 16966
8d138742
CE
16967# Sed expression to map a string onto a valid CPP name.
16968as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 16969
8d138742
CE
16970# Sed expression to map a string onto a valid variable name.
16971as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 16972
d9898ee8 16973
8d138742 16974exec 6>&1
b0322a85
CE
16975## ----------------------------------- ##
16976## Main body of $CONFIG_STATUS script. ##
16977## ----------------------------------- ##
16978_ASEOF
16979test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 16980
b0322a85
CE
16981cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16982# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
16983# report actual input values of CONFIG_FILES etc. instead of their
16984# values after options handling.
16985ac_log="
b0322a85
CE
16986This file was extended by unicode $as_me 0.10, which was
16987generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 16988
8d138742
CE
16989 CONFIG_FILES = $CONFIG_FILES
16990 CONFIG_HEADERS = $CONFIG_HEADERS
16991 CONFIG_LINKS = $CONFIG_LINKS
16992 CONFIG_COMMANDS = $CONFIG_COMMANDS
16993 $ $0 $@
d9898ee8 16994
8d138742
CE
16995on `(hostname || uname -n) 2>/dev/null | sed 1q`
16996"
d9898ee8 16997
8d138742 16998_ACEOF
d9898ee8 16999
8d138742
CE
17000case $ac_config_files in *"
17001"*) set x $ac_config_files; shift; ac_config_files=$*;;
17002esac
d9898ee8 17003
8d138742
CE
17004case $ac_config_headers in *"
17005"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17006esac
d9898ee8 17007
d9898ee8 17008
8d138742
CE
17009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17010# Files that config.status was made for.
17011config_files="$ac_config_files"
17012config_headers="$ac_config_headers"
17013config_commands="$ac_config_commands"
d9898ee8 17014
8d138742 17015_ACEOF
d9898ee8 17016
8d138742
CE
17017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17018ac_cs_usage="\
b0322a85
CE
17019\`$as_me' instantiates files and other configuration actions
17020from templates according to the current configuration. Unless the files
17021and actions are specified as TAGs, all are instantiated by default.
d9898ee8 17022
b0322a85 17023Usage: $0 [OPTION]... [TAG]...
d9898ee8 17024
8d138742
CE
17025 -h, --help print this help, then exit
17026 -V, --version print version number and configuration settings, then exit
b0322a85 17027 --config print configuration, then exit
8d138742
CE
17028 -q, --quiet, --silent
17029 do not print progress messages
17030 -d, --debug don't remove temporary files
17031 --recheck update $as_me by reconfiguring in the same conditions
17032 --file=FILE[:TEMPLATE]
17033 instantiate the configuration file FILE
17034 --header=FILE[:TEMPLATE]
17035 instantiate the configuration header FILE
d9898ee8 17036
8d138742
CE
17037Configuration files:
17038$config_files
d9898ee8 17039
8d138742
CE
17040Configuration headers:
17041$config_headers
d9898ee8 17042
8d138742
CE
17043Configuration commands:
17044$config_commands
d9898ee8 17045
b0322a85 17046Report bugs to <courier-maildrop@lists.sourceforge.net>."
d9898ee8 17047
8d138742
CE
17048_ACEOF
17049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 17050ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742 17051ac_cs_version="\\
b0322a85
CE
17052unicode config.status 0.10
17053configured by $0, generated by GNU Autoconf 2.69,
17054 with options \\"\$ac_cs_config\\"
d9898ee8 17055
b0322a85 17056Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
17057This config.status script is free software; the Free Software Foundation
17058gives unlimited permission to copy, distribute and modify it."
d9898ee8 17059
8d138742
CE
17060ac_pwd='$ac_pwd'
17061srcdir='$srcdir'
17062INSTALL='$INSTALL'
17063MKDIR_P='$MKDIR_P'
17064AWK='$AWK'
17065test -n "\$AWK" || AWK=awk
17066_ACEOF
d9898ee8 17067
8d138742
CE
17068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17069# The default lists apply if the user does not specify any file.
17070ac_need_defaults=:
17071while test $# != 0
17072do
17073 case $1 in
b0322a85 17074 --*=?*)
8d138742
CE
17075 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17076 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17077 ac_shift=:
17078 ;;
b0322a85
CE
17079 --*=)
17080 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17081 ac_optarg=
17082 ac_shift=:
17083 ;;
8d138742
CE
17084 *)
17085 ac_option=$1
17086 ac_optarg=$2
17087 ac_shift=shift
17088 ;;
17089 esac
d9898ee8 17090
8d138742
CE
17091 case $ac_option in
17092 # Handling of the options.
17093 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17094 ac_cs_recheck=: ;;
17095 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17096 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
17097 --config | --confi | --conf | --con | --co | --c )
17098 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
17099 --debug | --debu | --deb | --de | --d | -d )
17100 debug=: ;;
17101 --file | --fil | --fi | --f )
17102 $ac_shift
17103 case $ac_optarg in
17104 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 17105 '') as_fn_error $? "missing file argument" ;;
8d138742 17106 esac
b0322a85 17107 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
17108 ac_need_defaults=false;;
17109 --header | --heade | --head | --hea )
17110 $ac_shift
17111 case $ac_optarg in
17112 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17113 esac
b0322a85 17114 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
17115 ac_need_defaults=false;;
17116 --he | --h)
17117 # Conflict between --help and --header
b0322a85
CE
17118 as_fn_error $? "ambiguous option: \`$1'
17119Try \`$0 --help' for more information.";;
8d138742
CE
17120 --help | --hel | -h )
17121 $as_echo "$ac_cs_usage"; exit ;;
17122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17123 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17124 ac_cs_silent=: ;;
d9898ee8 17125
8d138742 17126 # This is an error.
b0322a85
CE
17127 -*) as_fn_error $? "unrecognized option: \`$1'
17128Try \`$0 --help' for more information." ;;
d9898ee8 17129
b0322a85 17130 *) as_fn_append ac_config_targets " $1"
8d138742 17131 ac_need_defaults=false ;;
d9898ee8 17132
8d138742
CE
17133 esac
17134 shift
17135done
d9898ee8 17136
8d138742 17137ac_configure_extra_args=
d9898ee8 17138
8d138742
CE
17139if $ac_cs_silent; then
17140 exec 6>/dev/null
17141 ac_configure_extra_args="$ac_configure_extra_args --silent"
17142fi
d9898ee8 17143
8d138742
CE
17144_ACEOF
17145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17146if \$ac_cs_recheck; then
b0322a85 17147 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
17148 shift
17149 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17150 CONFIG_SHELL='$SHELL'
17151 export CONFIG_SHELL
17152 exec "\$@"
17153fi
d9898ee8 17154
8d138742
CE
17155_ACEOF
17156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17157exec 5>>config.log
17158{
17159 echo
17160 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17161## Running $as_me. ##
17162_ASBOX
17163 $as_echo "$ac_log"
17164} >&5
d9898ee8 17165
8d138742
CE
17166_ACEOF
17167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17168#
17169# INIT-COMMANDS
17170#
17171AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 17172
d9898ee8 17173
8d138742
CE
17174# The HP-UX ksh and POSIX shell print the target directory to stdout
17175# if CDPATH is set.
17176(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 17177
8d138742
CE
17178sed_quote_subst='$sed_quote_subst'
17179double_quote_subst='$double_quote_subst'
17180delay_variable_subst='$delay_variable_subst'
b0322a85
CE
17181macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17182macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17183enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17184enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17185pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17186enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17187SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17188ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17189PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17190host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17191host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17192host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17193build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17194build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17195build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17196SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17197Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17198GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17199EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17200FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17201LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17202NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17203LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17204max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17205ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17206exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17207lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17208lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17209lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17210lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17211lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17212reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17213reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17214OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17215deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17216file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17217file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17218want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17219DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17220sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17221AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17222AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17223archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17224STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17225RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17226old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17227old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17228old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17229lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17230CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17231CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17232compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17233GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17234lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17235lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17236lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17237lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17238nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17239lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17240objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17241MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17242lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17243lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17244lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17245lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17246lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17247need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17248MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17249DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17250NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17251LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17252OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17253OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17254libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17255shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17256extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17257archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17258enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17259export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17260whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17261compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17262old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17263old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17264archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17265archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17266module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17267module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17268with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17269allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17270no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17271hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17272hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17273hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17274hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17275hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17276hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17277hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17278inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17279link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17280always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17281export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17282exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17283include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17284prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17285postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17286file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17287variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17288need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17289need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17290version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17291runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17292shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17293shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17294libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17295library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17296soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17297install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17298postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17299postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17300finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17301finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17302hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17303sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17304sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17305hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17306enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17307enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17308enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17309old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17310striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17311compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17312predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17313postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17314predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17315postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17316compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17317LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17318reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17319reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17320old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17321compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17322GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17323lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17324lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17325lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17326lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17327lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17328archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17329enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17330export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17331whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17332compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17333old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17334old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17335archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17336archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17337module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17338module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17339with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17340allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17341no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17342hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17343hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17344hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17345hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17346hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17347hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17348hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17349inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17350link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17351always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17352export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17353exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17354include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17355prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17356postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17357file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17358hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17359compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17360predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17361postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17362predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17363postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17364compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
8d138742
CE
17365
17366LTCC='$LTCC'
17367LTCFLAGS='$LTCFLAGS'
17368compiler='$compiler_DEFAULT'
17369
b0322a85
CE
17370# A function that is used when there is no print builtin or printf.
17371func_fallback_echo ()
17372{
17373 eval 'cat <<_LTECHO_EOF
17374\$1
17375_LTECHO_EOF'
17376}
17377
8d138742 17378# Quote evaled strings.
b0322a85
CE
17379for var in SHELL \
17380ECHO \
17381PATH_SEPARATOR \
17382SED \
8d138742
CE
17383GREP \
17384EGREP \
17385FGREP \
17386LD \
17387NM \
17388LN_S \
17389lt_SP2NL \
17390lt_NL2SP \
17391reload_flag \
17392OBJDUMP \
17393deplibs_check_method \
17394file_magic_cmd \
b0322a85
CE
17395file_magic_glob \
17396want_nocaseglob \
17397DLLTOOL \
17398sharedlib_from_linklib_cmd \
8d138742
CE
17399AR \
17400AR_FLAGS \
b0322a85 17401archiver_list_spec \
8d138742
CE
17402STRIP \
17403RANLIB \
17404CC \
17405CFLAGS \
17406compiler \
17407lt_cv_sys_global_symbol_pipe \
17408lt_cv_sys_global_symbol_to_cdecl \
17409lt_cv_sys_global_symbol_to_c_name_address \
17410lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
b0322a85 17411nm_file_list_spec \
8d138742 17412lt_prog_compiler_no_builtin_flag \
8d138742 17413lt_prog_compiler_pic \
b0322a85 17414lt_prog_compiler_wl \
8d138742
CE
17415lt_prog_compiler_static \
17416lt_cv_prog_compiler_c_o \
17417need_locks \
b0322a85 17418MANIFEST_TOOL \
8d138742
CE
17419DSYMUTIL \
17420NMEDIT \
17421LIPO \
17422OTOOL \
17423OTOOL64 \
17424shrext_cmds \
17425export_dynamic_flag_spec \
17426whole_archive_flag_spec \
17427compiler_needs_object \
17428with_gnu_ld \
17429allow_undefined_flag \
17430no_undefined_flag \
17431hardcode_libdir_flag_spec \
8d138742 17432hardcode_libdir_separator \
8d138742
CE
17433exclude_expsyms \
17434include_expsyms \
17435file_list_spec \
17436variables_saved_for_relink \
17437libname_spec \
17438library_names_spec \
17439soname_spec \
b0322a85 17440install_override_mode \
8d138742
CE
17441finish_eval \
17442old_striplib \
17443striplib \
17444compiler_lib_search_dirs \
17445predep_objects \
17446postdep_objects \
17447predeps \
17448postdeps \
17449compiler_lib_search_path \
17450LD_CXX \
b0322a85 17451reload_flag_CXX \
8d138742
CE
17452compiler_CXX \
17453lt_prog_compiler_no_builtin_flag_CXX \
8d138742 17454lt_prog_compiler_pic_CXX \
b0322a85 17455lt_prog_compiler_wl_CXX \
8d138742
CE
17456lt_prog_compiler_static_CXX \
17457lt_cv_prog_compiler_c_o_CXX \
17458export_dynamic_flag_spec_CXX \
17459whole_archive_flag_spec_CXX \
17460compiler_needs_object_CXX \
17461with_gnu_ld_CXX \
17462allow_undefined_flag_CXX \
17463no_undefined_flag_CXX \
17464hardcode_libdir_flag_spec_CXX \
8d138742 17465hardcode_libdir_separator_CXX \
8d138742
CE
17466exclude_expsyms_CXX \
17467include_expsyms_CXX \
17468file_list_spec_CXX \
17469compiler_lib_search_dirs_CXX \
17470predep_objects_CXX \
17471postdep_objects_CXX \
17472predeps_CXX \
17473postdeps_CXX \
17474compiler_lib_search_path_CXX; do
b0322a85 17475 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 17476 *[\\\\\\\`\\"\\\$]*)
b0322a85 17477 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
8d138742
CE
17478 ;;
17479 *)
17480 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17481 ;;
17482 esac
17483done
d9898ee8 17484
8d138742
CE
17485# Double-quote double-evaled strings.
17486for var in reload_cmds \
17487old_postinstall_cmds \
17488old_postuninstall_cmds \
17489old_archive_cmds \
17490extract_expsyms_cmds \
17491old_archive_from_new_cmds \
17492old_archive_from_expsyms_cmds \
17493archive_cmds \
17494archive_expsym_cmds \
17495module_cmds \
17496module_expsym_cmds \
17497export_symbols_cmds \
17498prelink_cmds \
b0322a85 17499postlink_cmds \
8d138742
CE
17500postinstall_cmds \
17501postuninstall_cmds \
17502finish_cmds \
17503sys_lib_search_path_spec \
17504sys_lib_dlsearch_path_spec \
b0322a85 17505reload_cmds_CXX \
8d138742
CE
17506old_archive_cmds_CXX \
17507old_archive_from_new_cmds_CXX \
17508old_archive_from_expsyms_cmds_CXX \
17509archive_cmds_CXX \
17510archive_expsym_cmds_CXX \
17511module_cmds_CXX \
17512module_expsym_cmds_CXX \
17513export_symbols_cmds_CXX \
b0322a85
CE
17514prelink_cmds_CXX \
17515postlink_cmds_CXX; do
17516 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 17517 *[\\\\\\\`\\"\\\$]*)
b0322a85 17518 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
8d138742
CE
17519 ;;
17520 *)
17521 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17522 ;;
17523 esac
17524done
d9898ee8 17525
8d138742
CE
17526ac_aux_dir='$ac_aux_dir'
17527xsi_shell='$xsi_shell'
17528lt_shell_append='$lt_shell_append'
d9898ee8 17529
8d138742
CE
17530# See if we are running on zsh, and set the options which allow our
17531# commands through without removal of \ escapes INIT.
17532if test -n "\${ZSH_VERSION+set}" ; then
17533 setopt NO_GLOB_SUBST
17534fi
d9898ee8 17535
17536
8d138742
CE
17537 PACKAGE='$PACKAGE'
17538 VERSION='$VERSION'
17539 TIMESTAMP='$TIMESTAMP'
17540 RM='$RM'
17541 ofile='$ofile'
d9898ee8 17542
17543
d9898ee8 17544
d9898ee8 17545
d9898ee8 17546
d9898ee8 17547
8d138742 17548_ACEOF
d9898ee8 17549
8d138742 17550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 17551
8d138742
CE
17552# Handling of arguments.
17553for ac_config_target in $ac_config_targets
17554do
17555 case $ac_config_target in
b0322a85 17556 "unicode_config.h") CONFIG_HEADERS="$CONFIG_HEADERS unicode_config.h" ;;
8d138742
CE
17557 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17558 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
d9898ee8 17560
b0322a85 17561 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
17562 esac
17563done
d9898ee8 17564
d9898ee8 17565
8d138742
CE
17566# If the user did not use the arguments to specify the items to instantiate,
17567# then the envvar interface is used. Set only those that are not.
17568# We use the long form for the default assignment because of an extremely
17569# bizarre bug on SunOS 4.1.3.
17570if $ac_need_defaults; then
17571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17572 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17573 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17574fi
d9898ee8 17575
8d138742
CE
17576# Have a temporary directory for convenience. Make it in the build tree
17577# simply because there is no reason against having it here, and in addition,
17578# creating and moving files from /tmp can sometimes cause problems.
17579# Hook for its removal unless debugging.
17580# Note that there is a small window in which the directory will not be cleaned:
17581# after its creation but before its name has been assigned to `$tmp'.
17582$debug ||
17583{
b0322a85 17584 tmp= ac_tmp=
8d138742 17585 trap 'exit_status=$?
b0322a85
CE
17586 : "${ac_tmp:=$tmp}"
17587 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 17588' 0
b0322a85 17589 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
17590}
17591# Create a (secure) tmp directory for tmp files.
d9898ee8 17592
8d138742
CE
17593{
17594 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 17595 test -d "$tmp"
8d138742
CE
17596} ||
17597{
17598 tmp=./conf$$-$RANDOM
17599 (umask 077 && mkdir "$tmp")
b0322a85
CE
17600} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17601ac_tmp=$tmp
d9898ee8 17602
8d138742
CE
17603# Set up the scripts for CONFIG_FILES section.
17604# No need to generate them if there are no CONFIG_FILES.
17605# This happens for instance with `./config.status config.h'.
17606if test -n "$CONFIG_FILES"; then
d9898ee8 17607
17608
b0322a85
CE
17609ac_cr=`echo X | tr X '\015'`
17610# On cygwin, bash can eat \r inside `` if the user requested igncr.
17611# But we know of no other shell where ac_cr would be empty at this
17612# point, so we can use a bashism as a fallback.
17613if test "x$ac_cr" = x; then
17614 eval ac_cr=\$\'\\r\'
17615fi
8d138742
CE
17616ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17617if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17618 ac_cs_awk_cr='\\r'
17619else
17620 ac_cs_awk_cr=$ac_cr
17621fi
d9898ee8 17622
b0322a85 17623echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8d138742 17624_ACEOF
d9898ee8 17625
17626
8d138742
CE
17627{
17628 echo "cat >conf$$subs.awk <<_ACEOF" &&
17629 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17630 echo "_ACEOF"
17631} >conf$$subs.sh ||
b0322a85
CE
17632 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17633ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
17634ac_delim='%!_!# '
17635for ac_last_try in false false false false false :; do
17636 . ./conf$$subs.sh ||
b0322a85 17637 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 17638
8d138742
CE
17639 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17640 if test $ac_delim_n = $ac_delim_num; then
17641 break
17642 elif $ac_last_try; then
b0322a85 17643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
17644 else
17645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17646 fi
17647done
17648rm -f conf$$subs.sh
d9898ee8 17649
8d138742 17650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 17651cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
17652_ACEOF
17653sed -n '
17654h
17655s/^/S["/; s/!.*/"]=/
17656p
17657g
17658s/^[^!]*!//
17659:repl
17660t repl
17661s/'"$ac_delim"'$//
17662t delim
17663:nl
17664h
b0322a85 17665s/\(.\{148\}\)..*/\1/
8d138742
CE
17666t more1
17667s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17668p
17669n
17670b repl
17671:more1
17672s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17673p
17674g
17675s/.\{148\}//
17676t nl
17677:delim
17678h
b0322a85 17679s/\(.\{148\}\)..*/\1/
8d138742
CE
17680t more2
17681s/["\\]/\\&/g; s/^/"/; s/$/"/
17682p
17683b
17684:more2
17685s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17686p
17687g
17688s/.\{148\}//
17689t delim
17690' <conf$$subs.awk | sed '
17691/^[^""]/{
17692 N
17693 s/\n//
17694}
17695' >>$CONFIG_STATUS || ac_write_fail=1
17696rm -f conf$$subs.awk
17697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17698_ACAWK
b0322a85 17699cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
17700 for (key in S) S_is_set[key] = 1
17701 FS = "\a"
d9898ee8 17702
8d138742
CE
17703}
17704{
17705 line = $ 0
17706 nfields = split(line, field, "@")
17707 substed = 0
17708 len = length(field[1])
17709 for (i = 2; i < nfields; i++) {
17710 key = field[i]
17711 keylen = length(key)
17712 if (S_is_set[key]) {
17713 value = S[key]
17714 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17715 len += length(value) + length(field[++i])
17716 substed = 1
17717 } else
17718 len += 1 + keylen
17719 }
d9898ee8 17720
8d138742
CE
17721 print line
17722}
d9898ee8 17723
8d138742
CE
17724_ACAWK
17725_ACEOF
17726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17727if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17728 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17729else
17730 cat
b0322a85
CE
17731fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17732 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8d138742 17733_ACEOF
d9898ee8 17734
b0322a85
CE
17735# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17736# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
17737# trailing colons and then remove the whole line if VPATH becomes empty
17738# (actually we leave an empty line to preserve line numbers).
17739if test "x$srcdir" = x.; then
b0322a85
CE
17740 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17741h
17742s///
17743s/^/:/
17744s/[ ]*$/:/
17745s/:\$(srcdir):/:/g
17746s/:\${srcdir}:/:/g
17747s/:@srcdir@:/:/g
17748s/^:*//
8d138742 17749s/:*$//
b0322a85
CE
17750x
17751s/\(=[ ]*\).*/\1/
17752G
17753s/\n//
8d138742
CE
17754s/^[^=]*=[ ]*$//
17755}'
17756fi
d9898ee8 17757
8d138742
CE
17758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17759fi # test -n "$CONFIG_FILES"
d9898ee8 17760
8d138742
CE
17761# Set up the scripts for CONFIG_HEADERS section.
17762# No need to generate them if there are no CONFIG_HEADERS.
17763# This happens for instance with `./config.status Makefile'.
17764if test -n "$CONFIG_HEADERS"; then
b0322a85 17765cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742
CE
17766BEGIN {
17767_ACEOF
d9898ee8 17768
8d138742
CE
17769# Transform confdefs.h into an awk script `defines.awk', embedded as
17770# here-document in config.status, that substitutes the proper values into
17771# config.h.in to produce config.h.
d9898ee8 17772
8d138742
CE
17773# Create a delimiter string that does not exist in confdefs.h, to ease
17774# handling of long lines.
17775ac_delim='%!_!# '
17776for ac_last_try in false false :; do
b0322a85
CE
17777 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17778 if test -z "$ac_tt"; then
8d138742
CE
17779 break
17780 elif $ac_last_try; then
b0322a85 17781 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
17782 else
17783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17784 fi
17785done
d9898ee8 17786
8d138742
CE
17787# For the awk script, D is an array of macro values keyed by name,
17788# likewise P contains macro parameters if any. Preserve backslash
17789# newline sequences.
d9898ee8 17790
8d138742
CE
17791ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17792sed -n '
17793s/.\{148\}/&'"$ac_delim"'/g
17794t rset
17795:rset
17796s/^[ ]*#[ ]*define[ ][ ]*/ /
17797t def
17798d
17799:def
17800s/\\$//
17801t bsnl
17802s/["\\]/\\&/g
17803s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17804D["\1"]=" \3"/p
17805s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17806d
17807:bsnl
17808s/["\\]/\\&/g
17809s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17810D["\1"]=" \3\\\\\\n"\\/p
17811t cont
17812s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17813t cont
17814d
17815:cont
17816n
17817s/.\{148\}/&'"$ac_delim"'/g
17818t clear
17819:clear
17820s/\\$//
17821t bsnlc
17822s/["\\]/\\&/g; s/^/"/; s/$/"/p
17823d
17824:bsnlc
17825s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17826b cont
17827' <confdefs.h | sed '
17828s/'"$ac_delim"'/"\\\
17829"/g' >>$CONFIG_STATUS || ac_write_fail=1
17830
17831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17832 for (key in D) D_is_set[key] = 1
17833 FS = "\a"
17834}
17835/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17836 line = \$ 0
17837 split(line, arg, " ")
17838 if (arg[1] == "#") {
17839 defundef = arg[2]
17840 mac1 = arg[3]
17841 } else {
17842 defundef = substr(arg[1], 2)
17843 mac1 = arg[2]
17844 }
17845 split(mac1, mac2, "(") #)
17846 macro = mac2[1]
17847 prefix = substr(line, 1, index(line, defundef) - 1)
17848 if (D_is_set[macro]) {
17849 # Preserve the white space surrounding the "#".
17850 print prefix "define", macro P[macro] D[macro]
17851 next
17852 } else {
17853 # Replace #undef with comments. This is necessary, for example,
17854 # in the case of _POSIX_SOURCE, which is predefined and required
17855 # on some systems where configure will not decide to define it.
17856 if (defundef == "undef") {
17857 print "/*", prefix defundef, macro, "*/"
17858 next
17859 }
17860 }
17861}
17862{ print }
17863_ACAWK
17864_ACEOF
17865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 17866 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 17867fi # test -n "$CONFIG_HEADERS"
d9898ee8 17868
17869
8d138742
CE
17870eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17871shift
17872for ac_tag
17873do
17874 case $ac_tag in
17875 :[FHLC]) ac_mode=$ac_tag; continue;;
17876 esac
17877 case $ac_mode$ac_tag in
17878 :[FHL]*:*);;
b0322a85 17879 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
17880 :[FH]-) ac_tag=-:-;;
17881 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17882 esac
17883 ac_save_IFS=$IFS
17884 IFS=:
17885 set x $ac_tag
17886 IFS=$ac_save_IFS
17887 shift
17888 ac_file=$1
17889 shift
d9898ee8 17890
8d138742
CE
17891 case $ac_mode in
17892 :L) ac_source=$1;;
17893 :[FH])
17894 ac_file_inputs=
17895 for ac_f
17896 do
17897 case $ac_f in
b0322a85 17898 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
17899 *) # Look for the file first in the build tree, then in the source tree
17900 # (if the path is not absolute). The absolute path cannot be DOS-style,
17901 # because $ac_f cannot contain `:'.
17902 test -f "$ac_f" ||
17903 case $ac_f in
17904 [\\/$]*) false;;
17905 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17906 esac ||
b0322a85 17907 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
17908 esac
17909 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 17910 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 17911 done
d9898ee8 17912
8d138742
CE
17913 # Let's still pretend it is `configure' which instantiates (i.e., don't
17914 # use $as_me), people would be surprised to read:
17915 # /* config.h. Generated by config.status. */
17916 configure_input='Generated from '`
17917 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17918 `' by configure.'
17919 if test x"$ac_file" != x-; then
17920 configure_input="$ac_file. $configure_input"
b0322a85 17921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
17922$as_echo "$as_me: creating $ac_file" >&6;}
17923 fi
17924 # Neutralize special characters interpreted by sed in replacement strings.
17925 case $configure_input in #(
17926 *\&* | *\|* | *\\* )
17927 ac_sed_conf_input=`$as_echo "$configure_input" |
17928 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17929 *) ac_sed_conf_input=$configure_input;;
17930 esac
d9898ee8 17931
8d138742 17932 case $ac_tag in
b0322a85
CE
17933 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17934 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
17935 esac
17936 ;;
17937 esac
dd184caf 17938
8d138742
CE
17939 ac_dir=`$as_dirname -- "$ac_file" ||
17940$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17941 X"$ac_file" : 'X\(//\)[^/]' \| \
17942 X"$ac_file" : 'X\(//\)$' \| \
17943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17944$as_echo X"$ac_file" |
17945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17946 s//\1/
17947 q
17948 }
17949 /^X\(\/\/\)[^/].*/{
17950 s//\1/
17951 q
17952 }
17953 /^X\(\/\/\)$/{
17954 s//\1/
17955 q
17956 }
17957 /^X\(\/\).*/{
17958 s//\1/
17959 q
17960 }
17961 s/.*/./; q'`
b0322a85 17962 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742 17963 ac_builddir=.
d9898ee8 17964
8d138742
CE
17965case "$ac_dir" in
17966.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17967*)
17968 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17969 # A ".." for each directory in $ac_dir_suffix.
17970 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17971 case $ac_top_builddir_sub in
17972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17974 esac ;;
17975esac
17976ac_abs_top_builddir=$ac_pwd
17977ac_abs_builddir=$ac_pwd$ac_dir_suffix
17978# for backward compatibility:
17979ac_top_builddir=$ac_top_build_prefix
d9898ee8 17980
8d138742
CE
17981case $srcdir in
17982 .) # We are building in place.
17983 ac_srcdir=.
17984 ac_top_srcdir=$ac_top_builddir_sub
17985 ac_abs_top_srcdir=$ac_pwd ;;
17986 [\\/]* | ?:[\\/]* ) # Absolute name.
17987 ac_srcdir=$srcdir$ac_dir_suffix;
17988 ac_top_srcdir=$srcdir
17989 ac_abs_top_srcdir=$srcdir ;;
17990 *) # Relative name.
17991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17992 ac_top_srcdir=$ac_top_build_prefix$srcdir
17993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17994esac
17995ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 17996
d9898ee8 17997
8d138742
CE
17998 case $ac_mode in
17999 :F)
18000 #
18001 # CONFIG_FILE
18002 #
d9898ee8 18003
8d138742
CE
18004 case $INSTALL in
18005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18007 esac
18008 ac_MKDIR_P=$MKDIR_P
18009 case $MKDIR_P in
18010 [\\/$]* | ?:[\\/]* ) ;;
18011 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18012 esac
18013_ACEOF
d9898ee8 18014
8d138742
CE
18015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18016# If the template does not know about datarootdir, expand it.
18017# FIXME: This hack should be removed a few years after 2.60.
18018ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
18019ac_sed_dataroot='
18020/datarootdir/ {
18021 p
18022 q
d9898ee8 18023}
8d138742
CE
18024/@datadir@/p
18025/@docdir@/p
18026/@infodir@/p
18027/@localedir@/p
b0322a85 18028/@mandir@/p'
8d138742
CE
18029case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18030*datarootdir*) ac_datarootdir_seen=yes;;
18031*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 18032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742 18033$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 18034_ACEOF
8d138742
CE
18035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18036 ac_datarootdir_hack='
18037 s&@datadir@&$datadir&g
18038 s&@docdir@&$docdir&g
18039 s&@infodir@&$infodir&g
18040 s&@localedir@&$localedir&g
18041 s&@mandir@&$mandir&g
b0322a85 18042 s&\\\${datarootdir}&$datarootdir&g' ;;
dd184caf 18043esac
8d138742 18044_ACEOF
d9898ee8 18045
8d138742
CE
18046# Neutralize VPATH when `$srcdir' = `.'.
18047# Shell code in configure.ac might set extrasub.
18048# FIXME: do we really want to maintain this feature?
18049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18050ac_sed_extra="$ac_vpsub
18051$extrasub
d9898ee8 18052_ACEOF
8d138742
CE
18053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18054:t
18055/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18056s|@configure_input@|$ac_sed_conf_input|;t t
18057s&@top_builddir@&$ac_top_builddir_sub&;t t
18058s&@top_build_prefix@&$ac_top_build_prefix&;t t
18059s&@srcdir@&$ac_srcdir&;t t
18060s&@abs_srcdir@&$ac_abs_srcdir&;t t
18061s&@top_srcdir@&$ac_top_srcdir&;t t
18062s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18063s&@builddir@&$ac_builddir&;t t
18064s&@abs_builddir@&$ac_abs_builddir&;t t
18065s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18066s&@INSTALL@&$ac_INSTALL&;t t
18067s&@MKDIR_P@&$ac_MKDIR_P&;t t
18068$ac_datarootdir_hack
18069"
b0322a85
CE
18070eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18071 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 18072
8d138742 18073test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
18074 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18076 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18078which seems to be undefined. Please make sure it is defined" >&5
8d138742 18079$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 18080which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 18081
b0322a85 18082 rm -f "$ac_tmp/stdin"
8d138742 18083 case $ac_file in
b0322a85
CE
18084 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18085 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 18086 esac \
b0322a85 18087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
18088 ;;
18089 :H)
18090 #
18091 # CONFIG_HEADER
18092 #
18093 if test x"$ac_file" != x-; then
18094 {
18095 $as_echo "/* $configure_input */" \
b0322a85
CE
18096 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18097 } >"$ac_tmp/config.h" \
18098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18099 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
18101$as_echo "$as_me: $ac_file is unchanged" >&6;}
18102 else
18103 rm -f "$ac_file"
b0322a85
CE
18104 mv "$ac_tmp/config.h" "$ac_file" \
18105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
18106 fi
18107 else
18108 $as_echo "/* $configure_input */" \
b0322a85
CE
18109 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18110 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
18111 fi
18112# Compute "$ac_file"'s index in $config_headers.
18113_am_arg="$ac_file"
18114_am_stamp_count=1
18115for _am_header in $config_headers :; do
18116 case $_am_header in
18117 $_am_arg | $_am_arg:* )
18118 break ;;
18119 * )
18120 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18121 esac
18122done
18123echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18124$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18125 X"$_am_arg" : 'X\(//\)[^/]' \| \
18126 X"$_am_arg" : 'X\(//\)$' \| \
18127 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18128$as_echo X"$_am_arg" |
18129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18130 s//\1/
18131 q
18132 }
18133 /^X\(\/\/\)[^/].*/{
18134 s//\1/
18135 q
18136 }
18137 /^X\(\/\/\)$/{
18138 s//\1/
18139 q
18140 }
18141 /^X\(\/\).*/{
18142 s//\1/
18143 q
18144 }
18145 s/.*/./; q'`/stamp-h$_am_stamp_count
18146 ;;
d9898ee8 18147
b0322a85 18148 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
18149$as_echo "$as_me: executing $ac_file commands" >&6;}
18150 ;;
18151 esac
d9898ee8 18152
d9898ee8 18153
8d138742
CE
18154 case $ac_file$ac_mode in
18155 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 18156 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
18157 # are listed without --file. Let's play safe and only enable the eval
18158 # if we detect the quoting.
18159 case $CONFIG_FILES in
18160 *\'*) eval set x "$CONFIG_FILES" ;;
18161 *) set x $CONFIG_FILES ;;
18162 esac
18163 shift
18164 for mf
18165 do
18166 # Strip MF so we end up with the name of the file.
18167 mf=`echo "$mf" | sed -e 's/:.*$//'`
18168 # Check whether this is an Automake generated Makefile or not.
b0322a85 18169 # We used to match only the files named 'Makefile.in', but
8d138742
CE
18170 # some people rename them; so instead we look at the file content.
18171 # Grep'ing the first line is not enough: some people post-process
18172 # each Makefile.in and add a new line on top of each file to say so.
18173 # Grep'ing the whole file is not good either: AIX grep has a line
18174 # limit of 2048, but all sed's we know have understand at least 4000.
18175 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18176 dirpart=`$as_dirname -- "$mf" ||
18177$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18178 X"$mf" : 'X\(//\)[^/]' \| \
18179 X"$mf" : 'X\(//\)$' \| \
18180 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18181$as_echo X"$mf" |
18182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18183 s//\1/
18184 q
18185 }
18186 /^X\(\/\/\)[^/].*/{
18187 s//\1/
18188 q
18189 }
18190 /^X\(\/\/\)$/{
18191 s//\1/
18192 q
18193 }
18194 /^X\(\/\).*/{
18195 s//\1/
18196 q
18197 }
18198 s/.*/./; q'`
18199 else
18200 continue
18201 fi
18202 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 18203 # from the Makefile without running 'make'.
8d138742
CE
18204 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18205 test -z "$DEPDIR" && continue
18206 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 18207 test -z "$am__include" && continue
8d138742 18208 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
18209 # Find all dependency output files, they are included files with
18210 # $(DEPDIR) in their names. We invoke sed twice because it is the
18211 # simplest approach to changing $(DEPDIR) to its actual value in the
18212 # expansion.
18213 for file in `sed -n "
18214 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 18215 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
18216 # Make sure the directory exists.
18217 test -f "$dirpart/$file" && continue
18218 fdir=`$as_dirname -- "$file" ||
18219$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18220 X"$file" : 'X\(//\)[^/]' \| \
18221 X"$file" : 'X\(//\)$' \| \
18222 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18223$as_echo X"$file" |
18224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18225 s//\1/
18226 q
18227 }
18228 /^X\(\/\/\)[^/].*/{
18229 s//\1/
18230 q
18231 }
18232 /^X\(\/\/\)$/{
18233 s//\1/
18234 q
18235 }
18236 /^X\(\/\).*/{
18237 s//\1/
18238 q
18239 }
18240 s/.*/./; q'`
b0322a85 18241 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
18242 # echo "creating $dirpart/$file"
18243 echo '# dummy' > "$dirpart/$file"
18244 done
18245 done
d9898ee8 18246}
8d138742
CE
18247 ;;
18248 "libtool":C)
d9898ee8 18249
8d138742
CE
18250 # See if we are running on zsh, and set the options which allow our
18251 # commands through without removal of \ escapes.
18252 if test -n "${ZSH_VERSION+set}" ; then
18253 setopt NO_GLOB_SUBST
18254 fi
dd184caf 18255
8d138742
CE
18256 cfgfile="${ofile}T"
18257 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18258 $RM "$cfgfile"
d9898ee8 18259
8d138742
CE
18260 cat <<_LT_EOF >> "$cfgfile"
18261#! $SHELL
d9898ee8 18262
8d138742
CE
18263# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18264# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18265# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18266# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18267#
18268# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
b0322a85
CE
18269# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18270# Foundation, Inc.
8d138742
CE
18271# Written by Gordon Matzigkeit, 1996
18272#
18273# This file is part of GNU Libtool.
18274#
18275# GNU Libtool is free software; you can redistribute it and/or
18276# modify it under the terms of the GNU General Public License as
18277# published by the Free Software Foundation; either version 2 of
18278# the License, or (at your option) any later version.
18279#
18280# As a special exception to the GNU General Public License,
18281# if you distribute this file as part of a program or library that
18282# is built using GNU Libtool, you may include this file under the
18283# same distribution terms that you use for the rest of that program.
18284#
18285# GNU Libtool is distributed in the hope that it will be useful,
18286# but WITHOUT ANY WARRANTY; without even the implied warranty of
18287# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18288# GNU General Public License for more details.
18289#
18290# You should have received a copy of the GNU General Public License
18291# along with GNU Libtool; see the file COPYING. If not, a copy
18292# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18293# obtained by writing to the Free Software Foundation, Inc.,
18294# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 18295
18296
8d138742
CE
18297# The names of the tagged configurations supported by this script.
18298available_tags="CXX "
d9898ee8 18299
8d138742 18300# ### BEGIN LIBTOOL CONFIG
dd184caf 18301
8d138742
CE
18302# Which release of libtool.m4 was used?
18303macro_version=$macro_version
18304macro_revision=$macro_revision
d9898ee8 18305
8d138742
CE
18306# Whether or not to build shared libraries.
18307build_libtool_libs=$enable_shared
d9898ee8 18308
8d138742
CE
18309# Whether or not to build static libraries.
18310build_old_libs=$enable_static
dd184caf 18311
8d138742
CE
18312# What type of objects to build.
18313pic_mode=$pic_mode
d9898ee8 18314
8d138742
CE
18315# Whether or not to optimize for fast installation.
18316fast_install=$enable_fast_install
d9898ee8 18317
b0322a85
CE
18318# Shell to use when invoking shell scripts.
18319SHELL=$lt_SHELL
18320
18321# An echo program that protects backslashes.
18322ECHO=$lt_ECHO
18323
18324# The PATH separator for the build system.
18325PATH_SEPARATOR=$lt_PATH_SEPARATOR
18326
8d138742
CE
18327# The host system.
18328host_alias=$host_alias
18329host=$host
18330host_os=$host_os
d9898ee8 18331
8d138742
CE
18332# The build system.
18333build_alias=$build_alias
18334build=$build
18335build_os=$build_os
d9898ee8 18336
8d138742
CE
18337# A sed program that does not truncate output.
18338SED=$lt_SED
d9898ee8 18339
8d138742
CE
18340# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18341Xsed="\$SED -e 1s/^X//"
d9898ee8 18342
8d138742
CE
18343# A grep program that handles long lines.
18344GREP=$lt_GREP
d9898ee8 18345
8d138742
CE
18346# An ERE matcher.
18347EGREP=$lt_EGREP
d9898ee8 18348
8d138742
CE
18349# A literal string matcher.
18350FGREP=$lt_FGREP
d9898ee8 18351
8d138742
CE
18352# A BSD- or MS-compatible name lister.
18353NM=$lt_NM
d9898ee8 18354
8d138742
CE
18355# Whether we need soft or hard links.
18356LN_S=$lt_LN_S
d9898ee8 18357
8d138742
CE
18358# What is the maximum length of a command?
18359max_cmd_len=$max_cmd_len
d9898ee8 18360
8d138742
CE
18361# Object file suffix (normally "o").
18362objext=$ac_objext
d9898ee8 18363
8d138742
CE
18364# Executable file suffix (normally "").
18365exeext=$exeext
d9898ee8 18366
8d138742
CE
18367# whether the shell understands "unset".
18368lt_unset=$lt_unset
d9898ee8 18369
8d138742
CE
18370# turn spaces into newlines.
18371SP2NL=$lt_lt_SP2NL
d9898ee8 18372
8d138742
CE
18373# turn newlines into spaces.
18374NL2SP=$lt_lt_NL2SP
dd184caf 18375
b0322a85
CE
18376# convert \$build file names to \$host format.
18377to_host_file_cmd=$lt_cv_to_host_file_cmd
18378
18379# convert \$build files to toolchain format.
18380to_tool_file_cmd=$lt_cv_to_tool_file_cmd
d9898ee8 18381
8d138742
CE
18382# An object symbol dumper.
18383OBJDUMP=$lt_OBJDUMP
d9898ee8 18384
8d138742
CE
18385# Method to check whether dependent libraries are shared objects.
18386deplibs_check_method=$lt_deplibs_check_method
d9898ee8 18387
b0322a85 18388# Command to use when deplibs_check_method = "file_magic".
8d138742 18389file_magic_cmd=$lt_file_magic_cmd
d9898ee8 18390
b0322a85
CE
18391# How to find potential files when deplibs_check_method = "file_magic".
18392file_magic_glob=$lt_file_magic_glob
18393
18394# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18395want_nocaseglob=$lt_want_nocaseglob
18396
18397# DLL creation program.
18398DLLTOOL=$lt_DLLTOOL
18399
18400# Command to associate shared and link libraries.
18401sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18402
8d138742
CE
18403# The archiver.
18404AR=$lt_AR
b0322a85
CE
18405
18406# Flags to create an archive.
8d138742 18407AR_FLAGS=$lt_AR_FLAGS
dd184caf 18408
b0322a85
CE
18409# How to feed a file listing to the archiver.
18410archiver_list_spec=$lt_archiver_list_spec
18411
8d138742
CE
18412# A symbol stripping program.
18413STRIP=$lt_STRIP
d9898ee8 18414
8d138742
CE
18415# Commands used to install an old-style archive.
18416RANLIB=$lt_RANLIB
18417old_postinstall_cmds=$lt_old_postinstall_cmds
18418old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 18419
b0322a85
CE
18420# Whether to use a lock for old archive extraction.
18421lock_old_archive_extraction=$lock_old_archive_extraction
18422
8d138742
CE
18423# A C compiler.
18424LTCC=$lt_CC
d9898ee8 18425
8d138742
CE
18426# LTCC compiler flags.
18427LTCFLAGS=$lt_CFLAGS
d9898ee8 18428
8d138742
CE
18429# Take the output of nm and produce a listing of raw symbols and C names.
18430global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 18431
8d138742
CE
18432# Transform the output of nm in a proper C declaration.
18433global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 18434
8d138742
CE
18435# Transform the output of nm in a C name address pair.
18436global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 18437
8d138742
CE
18438# Transform the output of nm in a C name address pair when lib prefix is needed.
18439global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 18440
b0322a85
CE
18441# Specify filename containing input files for \$NM.
18442nm_file_list_spec=$lt_nm_file_list_spec
d9898ee8 18443
b0322a85
CE
18444# The root where to search for dependent libraries,and in which our libraries should be installed.
18445lt_sysroot=$lt_sysroot
d9898ee8 18446
b0322a85
CE
18447# The name of the directory that contains temporary libtool files.
18448objdir=$objdir
dd184caf 18449
8d138742
CE
18450# Used to examine libraries when file_magic_cmd begins with "file".
18451MAGIC_CMD=$MAGIC_CMD
d9898ee8 18452
8d138742
CE
18453# Must we lock files when doing compilation?
18454need_locks=$lt_need_locks
d9898ee8 18455
b0322a85
CE
18456# Manifest tool.
18457MANIFEST_TOOL=$lt_MANIFEST_TOOL
18458
8d138742
CE
18459# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18460DSYMUTIL=$lt_DSYMUTIL
d9898ee8 18461
8d138742
CE
18462# Tool to change global to local symbols on Mac OS X.
18463NMEDIT=$lt_NMEDIT
dd184caf 18464
8d138742
CE
18465# Tool to manipulate fat objects and archives on Mac OS X.
18466LIPO=$lt_LIPO
d9898ee8 18467
8d138742
CE
18468# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18469OTOOL=$lt_OTOOL
d9898ee8 18470
8d138742
CE
18471# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18472OTOOL64=$lt_OTOOL64
dd184caf 18473
8d138742
CE
18474# Old archive suffix (normally "a").
18475libext=$libext
18476
18477# Shared library suffix (normally ".so").
18478shrext_cmds=$lt_shrext_cmds
18479
18480# The commands to extract the exported symbol list from a shared archive.
18481extract_expsyms_cmds=$lt_extract_expsyms_cmds
18482
18483# Variables whose values should be saved in libtool wrapper scripts and
18484# restored at link time.
18485variables_saved_for_relink=$lt_variables_saved_for_relink
18486
18487# Do we need the "lib" prefix for modules?
18488need_lib_prefix=$need_lib_prefix
18489
18490# Do we need a version for libraries?
18491need_version=$need_version
18492
18493# Library versioning type.
18494version_type=$version_type
d9898ee8 18495
8d138742
CE
18496# Shared library runtime path variable.
18497runpath_var=$runpath_var
d9898ee8 18498
8d138742
CE
18499# Shared library path variable.
18500shlibpath_var=$shlibpath_var
d9898ee8 18501
8d138742
CE
18502# Is shlibpath searched before the hard-coded library search path?
18503shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 18504
8d138742
CE
18505# Format of library name prefix.
18506libname_spec=$lt_libname_spec
d9898ee8 18507
8d138742
CE
18508# List of archive names. First name is the real one, the rest are links.
18509# The last name is the one that the linker finds with -lNAME
18510library_names_spec=$lt_library_names_spec
d9898ee8 18511
8d138742
CE
18512# The coded name of the library, if different from the real name.
18513soname_spec=$lt_soname_spec
d9898ee8 18514
b0322a85
CE
18515# Permission mode override for installation of shared libraries.
18516install_override_mode=$lt_install_override_mode
18517
8d138742
CE
18518# Command to use after installation of a shared archive.
18519postinstall_cmds=$lt_postinstall_cmds
d9898ee8 18520
8d138742
CE
18521# Command to use after uninstallation of a shared archive.
18522postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 18523
8d138742
CE
18524# Commands used to finish a libtool library installation in a directory.
18525finish_cmds=$lt_finish_cmds
d9898ee8 18526
8d138742
CE
18527# As "finish_cmds", except a single script fragment to be evaled but
18528# not shown.
18529finish_eval=$lt_finish_eval
dd184caf 18530
8d138742
CE
18531# Whether we should hardcode library paths into libraries.
18532hardcode_into_libs=$hardcode_into_libs
dd184caf 18533
8d138742
CE
18534# Compile-time system search path for libraries.
18535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
dd184caf 18536
8d138742
CE
18537# Run-time system search path for libraries.
18538sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
dd184caf 18539
8d138742
CE
18540# Whether dlopen is supported.
18541dlopen_support=$enable_dlopen
dd184caf 18542
8d138742
CE
18543# Whether dlopen of programs is supported.
18544dlopen_self=$enable_dlopen_self
dd184caf 18545
8d138742
CE
18546# Whether dlopen of statically linked programs is supported.
18547dlopen_self_static=$enable_dlopen_self_static
d9898ee8 18548
8d138742
CE
18549# Commands to strip libraries.
18550old_striplib=$lt_old_striplib
18551striplib=$lt_striplib
d9898ee8 18552
18553
8d138742
CE
18554# The linker used to build libraries.
18555LD=$lt_LD
dd184caf 18556
b0322a85
CE
18557# How to create reloadable object files.
18558reload_flag=$lt_reload_flag
18559reload_cmds=$lt_reload_cmds
18560
8d138742
CE
18561# Commands used to build an old-style archive.
18562old_archive_cmds=$lt_old_archive_cmds
dd184caf 18563
8d138742
CE
18564# A language specific compiler.
18565CC=$lt_compiler
dd184caf 18566
8d138742
CE
18567# Is the compiler the GNU compiler?
18568with_gcc=$GCC
d9898ee8 18569
8d138742
CE
18570# Compiler flag to turn off builtin functions.
18571no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
d9898ee8 18572
8d138742
CE
18573# Additional compiler flags for building library objects.
18574pic_flag=$lt_lt_prog_compiler_pic
d9898ee8 18575
b0322a85
CE
18576# How to pass a linker flag through the compiler.
18577wl=$lt_lt_prog_compiler_wl
18578
8d138742
CE
18579# Compiler flag to prevent dynamic linking.
18580link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 18581
8d138742
CE
18582# Does compiler simultaneously support -c and -o options?
18583compiler_c_o=$lt_lt_cv_prog_compiler_c_o
d9898ee8 18584
8d138742
CE
18585# Whether or not to add -lc for building shared libraries.
18586build_libtool_need_lc=$archive_cmds_need_lc
d9898ee8 18587
8d138742
CE
18588# Whether or not to disallow shared libs when runtime libs are static.
18589allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
d9898ee8 18590
8d138742
CE
18591# Compiler flag to allow reflexive dlopens.
18592export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 18593
8d138742
CE
18594# Compiler flag to generate shared objects directly from archives.
18595whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 18596
8d138742
CE
18597# Whether the compiler copes with passing no objects directly.
18598compiler_needs_object=$lt_compiler_needs_object
d9898ee8 18599
8d138742
CE
18600# Create an old-style archive from a shared archive.
18601old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18602
18603# Create a temporary old-style archive to link instead of a shared archive.
18604old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 18605
8d138742
CE
18606# Commands used to build a shared archive.
18607archive_cmds=$lt_archive_cmds
18608archive_expsym_cmds=$lt_archive_expsym_cmds
d9898ee8 18609
8d138742
CE
18610# Commands used to build a loadable module if different from building
18611# a shared archive.
18612module_cmds=$lt_module_cmds
18613module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 18614
8d138742
CE
18615# Whether we are building with GNU ld or not.
18616with_gnu_ld=$lt_with_gnu_ld
d9898ee8 18617
8d138742
CE
18618# Flag that allows shared libraries with undefined symbols to be built.
18619allow_undefined_flag=$lt_allow_undefined_flag
d9898ee8 18620
8d138742
CE
18621# Flag that enforces no undefined symbols.
18622no_undefined_flag=$lt_no_undefined_flag
d9898ee8 18623
8d138742
CE
18624# Flag to hardcode \$libdir into a binary during linking.
18625# This must work even if \$libdir does not exist
18626hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
d9898ee8 18627
8d138742
CE
18628# Whether we need a single "-rpath" flag with a separated argument.
18629hardcode_libdir_separator=$lt_hardcode_libdir_separator
d9898ee8 18630
8d138742
CE
18631# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18632# DIR into the resulting binary.
18633hardcode_direct=$hardcode_direct
d9898ee8 18634
8d138742
CE
18635# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18636# DIR into the resulting binary and the resulting library dependency is
18637# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18638# library is relocated.
18639hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 18640
8d138742
CE
18641# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18642# into the resulting binary.
18643hardcode_minus_L=$hardcode_minus_L
d9898ee8 18644
8d138742
CE
18645# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18646# into the resulting binary.
18647hardcode_shlibpath_var=$hardcode_shlibpath_var
d9898ee8 18648
8d138742
CE
18649# Set to "yes" if building a shared library automatically hardcodes DIR
18650# into the library and all subsequent libraries and executables linked
18651# against it.
18652hardcode_automatic=$hardcode_automatic
d9898ee8 18653
8d138742
CE
18654# Set to yes if linker adds runtime paths of dependent libraries
18655# to runtime path list.
18656inherit_rpath=$inherit_rpath
dd184caf 18657
8d138742
CE
18658# Whether libtool must link a program against all its dependency libraries.
18659link_all_deplibs=$link_all_deplibs
d9898ee8 18660
8d138742
CE
18661# Set to "yes" if exported symbols are required.
18662always_export_symbols=$always_export_symbols
d9898ee8 18663
8d138742
CE
18664# The commands to list exported symbols.
18665export_symbols_cmds=$lt_export_symbols_cmds
d9898ee8 18666
8d138742
CE
18667# Symbols that should not be listed in the preloaded symbols.
18668exclude_expsyms=$lt_exclude_expsyms
d9898ee8 18669
8d138742
CE
18670# Symbols that must always be exported.
18671include_expsyms=$lt_include_expsyms
d9898ee8 18672
8d138742
CE
18673# Commands necessary for linking programs (against libraries) with templates.
18674prelink_cmds=$lt_prelink_cmds
d9898ee8 18675
b0322a85
CE
18676# Commands necessary for finishing linking programs.
18677postlink_cmds=$lt_postlink_cmds
18678
8d138742
CE
18679# Specify filename containing input files.
18680file_list_spec=$lt_file_list_spec
d9898ee8 18681
8d138742
CE
18682# How to hardcode a shared library path into an executable.
18683hardcode_action=$hardcode_action
d9898ee8 18684
8d138742
CE
18685# The directories searched by this compiler when creating a shared library.
18686compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
d9898ee8 18687
8d138742
CE
18688# Dependencies to place before and after the objects being linked to
18689# create a shared library.
18690predep_objects=$lt_predep_objects
18691postdep_objects=$lt_postdep_objects
18692predeps=$lt_predeps
18693postdeps=$lt_postdeps
d9898ee8 18694
8d138742
CE
18695# The library search path used internally by the compiler when linking
18696# a shared library.
18697compiler_lib_search_path=$lt_compiler_lib_search_path
dd184caf 18698
8d138742 18699# ### END LIBTOOL CONFIG
d9898ee8 18700
8d138742
CE
18701_LT_EOF
18702
18703 case $host_os in
18704 aix3*)
18705 cat <<\_LT_EOF >> "$cfgfile"
18706# AIX sometimes has problems with the GCC collect2 program. For some
18707# reason, if we set the COLLECT_NAMES environment variable, the problems
18708# vanish in a puff of smoke.
18709if test "X${COLLECT_NAMES+set}" != Xset; then
18710 COLLECT_NAMES=
18711 export COLLECT_NAMES
18712fi
18713_LT_EOF
d9898ee8 18714 ;;
d9898ee8 18715 esac
18716
d9898ee8 18717
8d138742 18718ltmain="$ac_aux_dir/ltmain.sh"
d9898ee8 18719
d9898ee8 18720
8d138742
CE
18721 # We use sed instead of cat because bash on DJGPP gets confused if
18722 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18723 # text mode, it properly converts lines to CR/LF. This bash problem
18724 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
18725 sed '$q' "$ltmain" >> "$cfgfile" \
18726 || (rm -f "$cfgfile"; exit 1)
18727
18728 if test x"$xsi_shell" = xyes; then
18729 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18730func_dirname ()\
18731{\
18732\ case ${1} in\
18733\ */*) func_dirname_result="${1%/*}${2}" ;;\
18734\ * ) func_dirname_result="${3}" ;;\
18735\ esac\
18736} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18737 && mv -f "$cfgfile.tmp" "$cfgfile" \
18738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18739test 0 -eq $? || _lt_function_replace_fail=:
18740
18741
18742 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18743func_basename ()\
18744{\
18745\ func_basename_result="${1##*/}"\
18746} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18747 && mv -f "$cfgfile.tmp" "$cfgfile" \
18748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18749test 0 -eq $? || _lt_function_replace_fail=:
18750
18751
18752 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18753func_dirname_and_basename ()\
18754{\
18755\ case ${1} in\
18756\ */*) func_dirname_result="${1%/*}${2}" ;;\
18757\ * ) func_dirname_result="${3}" ;;\
18758\ esac\
18759\ func_basename_result="${1##*/}"\
18760} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18761 && mv -f "$cfgfile.tmp" "$cfgfile" \
18762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18763test 0 -eq $? || _lt_function_replace_fail=:
18764
18765
18766 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18767func_stripname ()\
18768{\
18769\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18770\ # positional parameters, so assign one to ordinary parameter first.\
18771\ func_stripname_result=${3}\
18772\ func_stripname_result=${func_stripname_result#"${1}"}\
18773\ func_stripname_result=${func_stripname_result%"${2}"}\
18774} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18775 && mv -f "$cfgfile.tmp" "$cfgfile" \
18776 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18777test 0 -eq $? || _lt_function_replace_fail=:
18778
18779
18780 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18781func_split_long_opt ()\
18782{\
18783\ func_split_long_opt_name=${1%%=*}\
18784\ func_split_long_opt_arg=${1#*=}\
18785} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18786 && mv -f "$cfgfile.tmp" "$cfgfile" \
18787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18788test 0 -eq $? || _lt_function_replace_fail=:
18789
18790
18791 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18792func_split_short_opt ()\
18793{\
18794\ func_split_short_opt_arg=${1#??}\
18795\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18796} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18797 && mv -f "$cfgfile.tmp" "$cfgfile" \
18798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18799test 0 -eq $? || _lt_function_replace_fail=:
18800
18801
18802 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18803func_lo2o ()\
18804{\
18805\ case ${1} in\
18806\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18807\ *) func_lo2o_result=${1} ;;\
18808\ esac\
18809} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18810 && mv -f "$cfgfile.tmp" "$cfgfile" \
18811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18812test 0 -eq $? || _lt_function_replace_fail=:
18813
18814
18815 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18816func_xform ()\
18817{\
18818 func_xform_result=${1%.*}.lo\
18819} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18820 && mv -f "$cfgfile.tmp" "$cfgfile" \
18821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18822test 0 -eq $? || _lt_function_replace_fail=:
18823
18824
18825 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18826func_arith ()\
18827{\
18828 func_arith_result=$(( $* ))\
18829} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18830 && mv -f "$cfgfile.tmp" "$cfgfile" \
18831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18832test 0 -eq $? || _lt_function_replace_fail=:
18833
18834
18835 sed -e '/^func_len ()$/,/^} # func_len /c\
18836func_len ()\
18837{\
18838 func_len_result=${#1}\
18839} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18840 && mv -f "$cfgfile.tmp" "$cfgfile" \
18841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18842test 0 -eq $? || _lt_function_replace_fail=:
18843
18844fi
18845
18846if test x"$lt_shell_append" = xyes; then
18847 sed -e '/^func_append ()$/,/^} # func_append /c\
18848func_append ()\
18849{\
18850 eval "${1}+=\\${2}"\
18851} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18852 && mv -f "$cfgfile.tmp" "$cfgfile" \
18853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18854test 0 -eq $? || _lt_function_replace_fail=:
18855
18856
18857 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18858func_append_quoted ()\
18859{\
18860\ func_quote_for_eval "${2}"\
18861\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18862} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18863 && mv -f "$cfgfile.tmp" "$cfgfile" \
18864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18865test 0 -eq $? || _lt_function_replace_fail=:
18866
18867
18868 # Save a `func_append' function call where possible by direct use of '+='
18869 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18870 && mv -f "$cfgfile.tmp" "$cfgfile" \
18871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18872 test 0 -eq $? || _lt_function_replace_fail=:
18873else
18874 # Save a `func_append' function call even when '+=' is not available
18875 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18876 && mv -f "$cfgfile.tmp" "$cfgfile" \
18877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18878 test 0 -eq $? || _lt_function_replace_fail=:
18879fi
18880
18881if test x"$_lt_function_replace_fail" = x":"; then
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18883$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18884fi
18885
18886
18887 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
18888 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18889 chmod +x "$ofile"
dd184caf 18890
dd184caf 18891
8d138742 18892 cat <<_LT_EOF >> "$ofile"
dd184caf 18893
8d138742 18894# ### BEGIN LIBTOOL TAG CONFIG: CXX
dd184caf 18895
8d138742
CE
18896# The linker used to build libraries.
18897LD=$lt_LD_CXX
d9898ee8 18898
b0322a85
CE
18899# How to create reloadable object files.
18900reload_flag=$lt_reload_flag_CXX
18901reload_cmds=$lt_reload_cmds_CXX
18902
8d138742
CE
18903# Commands used to build an old-style archive.
18904old_archive_cmds=$lt_old_archive_cmds_CXX
dd184caf 18905
8d138742
CE
18906# A language specific compiler.
18907CC=$lt_compiler_CXX
dd184caf 18908
8d138742
CE
18909# Is the compiler the GNU compiler?
18910with_gcc=$GCC_CXX
dd184caf 18911
8d138742
CE
18912# Compiler flag to turn off builtin functions.
18913no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
dd184caf 18914
8d138742
CE
18915# Additional compiler flags for building library objects.
18916pic_flag=$lt_lt_prog_compiler_pic_CXX
dd184caf 18917
b0322a85
CE
18918# How to pass a linker flag through the compiler.
18919wl=$lt_lt_prog_compiler_wl_CXX
18920
8d138742
CE
18921# Compiler flag to prevent dynamic linking.
18922link_static_flag=$lt_lt_prog_compiler_static_CXX
dd184caf 18923
8d138742
CE
18924# Does compiler simultaneously support -c and -o options?
18925compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dd184caf 18926
8d138742
CE
18927# Whether or not to add -lc for building shared libraries.
18928build_libtool_need_lc=$archive_cmds_need_lc_CXX
dd184caf 18929
8d138742
CE
18930# Whether or not to disallow shared libs when runtime libs are static.
18931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
d9898ee8 18932
8d138742
CE
18933# Compiler flag to allow reflexive dlopens.
18934export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18935
18936# Compiler flag to generate shared objects directly from archives.
18937whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18938
18939# Whether the compiler copes with passing no objects directly.
18940compiler_needs_object=$lt_compiler_needs_object_CXX
18941
18942# Create an old-style archive from a shared archive.
18943old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18944
18945# Create a temporary old-style archive to link instead of a shared archive.
18946old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18947
18948# Commands used to build a shared archive.
18949archive_cmds=$lt_archive_cmds_CXX
18950archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18951
18952# Commands used to build a loadable module if different from building
18953# a shared archive.
18954module_cmds=$lt_module_cmds_CXX
18955module_expsym_cmds=$lt_module_expsym_cmds_CXX
18956
18957# Whether we are building with GNU ld or not.
18958with_gnu_ld=$lt_with_gnu_ld_CXX
18959
18960# Flag that allows shared libraries with undefined symbols to be built.
18961allow_undefined_flag=$lt_allow_undefined_flag_CXX
18962
18963# Flag that enforces no undefined symbols.
18964no_undefined_flag=$lt_no_undefined_flag_CXX
18965
18966# Flag to hardcode \$libdir into a binary during linking.
18967# This must work even if \$libdir does not exist
18968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18969
8d138742
CE
18970# Whether we need a single "-rpath" flag with a separated argument.
18971hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18972
18973# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18974# DIR into the resulting binary.
18975hardcode_direct=$hardcode_direct_CXX
18976
18977# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18978# DIR into the resulting binary and the resulting library dependency is
18979# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18980# library is relocated.
18981hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18982
18983# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18984# into the resulting binary.
18985hardcode_minus_L=$hardcode_minus_L_CXX
d9898ee8 18986
8d138742
CE
18987# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18988# into the resulting binary.
18989hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
d9898ee8 18990
8d138742
CE
18991# Set to "yes" if building a shared library automatically hardcodes DIR
18992# into the library and all subsequent libraries and executables linked
18993# against it.
18994hardcode_automatic=$hardcode_automatic_CXX
d9898ee8 18995
8d138742
CE
18996# Set to yes if linker adds runtime paths of dependent libraries
18997# to runtime path list.
18998inherit_rpath=$inherit_rpath_CXX
d9898ee8 18999
8d138742
CE
19000# Whether libtool must link a program against all its dependency libraries.
19001link_all_deplibs=$link_all_deplibs_CXX
d9898ee8 19002
8d138742
CE
19003# Set to "yes" if exported symbols are required.
19004always_export_symbols=$always_export_symbols_CXX
dd184caf 19005
8d138742
CE
19006# The commands to list exported symbols.
19007export_symbols_cmds=$lt_export_symbols_cmds_CXX
dd184caf 19008
8d138742
CE
19009# Symbols that should not be listed in the preloaded symbols.
19010exclude_expsyms=$lt_exclude_expsyms_CXX
dd184caf 19011
8d138742
CE
19012# Symbols that must always be exported.
19013include_expsyms=$lt_include_expsyms_CXX
dd184caf 19014
8d138742
CE
19015# Commands necessary for linking programs (against libraries) with templates.
19016prelink_cmds=$lt_prelink_cmds_CXX
d9898ee8 19017
b0322a85
CE
19018# Commands necessary for finishing linking programs.
19019postlink_cmds=$lt_postlink_cmds_CXX
19020
8d138742
CE
19021# Specify filename containing input files.
19022file_list_spec=$lt_file_list_spec_CXX
d9898ee8 19023
8d138742
CE
19024# How to hardcode a shared library path into an executable.
19025hardcode_action=$hardcode_action_CXX
d9898ee8 19026
8d138742
CE
19027# The directories searched by this compiler when creating a shared library.
19028compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
d9898ee8 19029
8d138742
CE
19030# Dependencies to place before and after the objects being linked to
19031# create a shared library.
19032predep_objects=$lt_predep_objects_CXX
19033postdep_objects=$lt_postdep_objects_CXX
19034predeps=$lt_predeps_CXX
19035postdeps=$lt_postdeps_CXX
19036
19037# The library search path used internally by the compiler when linking
19038# a shared library.
19039compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19040
19041# ### END LIBTOOL TAG CONFIG: CXX
19042_LT_EOF
d9898ee8 19043
d9898ee8 19044 ;;
dd184caf 19045
d9898ee8 19046 esac
dd184caf 19047done # for ac_tag
d9898ee8 19048
d9898ee8 19049
b0322a85 19050as_fn_exit 0
d9898ee8 19051_ACEOF
d9898ee8 19052ac_clean_files=$ac_clean_files_save
19053
8d138742 19054test $ac_write_fail = 0 ||
b0322a85 19055 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 19056
d9898ee8 19057
19058# configure is writing to config.log, and then calls config.status.
19059# config.status does its own redirection, appending to config.log.
19060# Unfortunately, on DOS this fails, as config.log is still kept open
19061# by configure, so config.status won't be able to write to it; its
19062# output is simply discarded. So we exec the FD to /dev/null,
19063# effectively closing config.log, so it can be properly (re)opened and
19064# appended to by config.status. When coming back to configure, we
19065# need to make the FD available again.
19066if test "$no_create" != yes; then
19067 ac_cs_success=:
19068 ac_config_status_args=
19069 test "$silent" = yes &&
19070 ac_config_status_args="$ac_config_status_args --quiet"
19071 exec 5>/dev/null
19072 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19073 exec 5>>config.log
19074 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19075 # would make configure fail if this is the last instruction.
b0322a85 19076 $ac_cs_success || as_fn_exit 1
d9898ee8 19077fi
8d138742 19078if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
19080$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19081fi
d9898ee8 19082