Merge branch 'debian'
[hcoop/debian/courier-authlib.git] / libs / sha1 / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b0322a85 3# Generated by GNU Autoconf 2.69 for libsha1 1.21.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
b0322a85
CE
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
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'
56 else
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'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
dd184caf 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
8d138742
CE
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-users@lists.sourceforge.net about your system,
279$0: 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
dd184caf 545else
b0322a85 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
556fi
dd184caf 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
dd184caf 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='libsha1'
592PACKAGE_TARNAME='libsha1'
d9898ee8 593PACKAGE_VERSION='1.21'
b0322a85 594PACKAGE_STRING='libsha1 1.21'
d9898ee8 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 596PACKAGE_URL=''
d9898ee8 597
598ac_unique_file="hmac.c"
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
dd184caf 639CPP
8d138742
CE
640OTOOL64
641OTOOL
642LIPO
643NMEDIT
644DSYMUTIL
b0322a85 645MANIFEST_TOOL
8d138742 646RANLIB
b0322a85 647ac_ct_AR
8d138742 648AR
b0322a85 649DLLTOOL
8d138742
CE
650OBJDUMP
651NM
652ac_ct_DUMPBIN
653DUMPBIN
654LD
655FGREP
656EGREP
657GREP
658SED
659host_os
660host_vendor
661host_cpu
662host
663build_os
664build_vendor
665build_cpu
666build
dd184caf 667LIBTOOL
b0322a85 668LN_S
8d138742
CE
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
b0322a85 672am__nodep
8d138742
CE
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__quote
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
8d138742
CE
686HMACC_FALSE
687HMACC_TRUE
b0322a85
CE
688AM_BACKSLASH
689AM_DEFAULT_VERBOSITY
690AM_DEFAULT_V
691AM_V
8d138742
CE
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
b0322a85 745PACKAGE_URL
8d138742
CE
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
d9898ee8 753ac_subst_files=''
8d138742
CE
754ac_user_opts='
755enable_option_checking
b0322a85 756enable_silent_rules
8d138742
CE
757enable_dependency_tracking
758enable_shared
759enable_static
760with_pic
761enable_fast_install
762with_gnu_ld
b0322a85 763with_sysroot
8d138742
CE
764enable_libtool_lock
765with_int32
b0322a85
CE
766with_int64
767enable_largefile
8d138742 768'
dd184caf 769 ac_precious_vars='build_alias
770host_alias
771target_alias
772CC
773CFLAGS
774LDFLAGS
775LIBS
776CPPFLAGS
8d138742 777CPP'
dd184caf 778
d9898ee8 779
780# Initialize some variables set by options.
781ac_init_help=
782ac_init_version=false
8d138742
CE
783ac_unrecognized_opts=
784ac_unrecognized_sep=
d9898ee8 785# The variables have the same names as the options, with
786# dashes changed to underlines.
787cache_file=/dev/null
788exec_prefix=NONE
789no_create=
790no_recursion=
791prefix=NONE
792program_prefix=NONE
793program_suffix=NONE
794program_transform_name=s,x,x,
795silent=
796site=
797srcdir=
798verbose=
799x_includes=NONE
800x_libraries=NONE
801
802# Installation directory options.
803# These are left unexpanded so users can "make install exec_prefix=/foo"
804# and all the variables that are supposed to be based on exec_prefix
805# by default will actually change.
806# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 807# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 808bindir='${exec_prefix}/bin'
809sbindir='${exec_prefix}/sbin'
810libexecdir='${exec_prefix}/libexec'
dd184caf 811datarootdir='${prefix}/share'
812datadir='${datarootdir}'
d9898ee8 813sysconfdir='${prefix}/etc'
814sharedstatedir='${prefix}/com'
815localstatedir='${prefix}/var'
d9898ee8 816includedir='${prefix}/include'
817oldincludedir='/usr/include'
dd184caf 818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819infodir='${datarootdir}/info'
820htmldir='${docdir}'
821dvidir='${docdir}'
822pdfdir='${docdir}'
823psdir='${docdir}'
824libdir='${exec_prefix}/lib'
825localedir='${datarootdir}/locale'
826mandir='${datarootdir}/man'
d9898ee8 827
828ac_prev=
dd184caf 829ac_dashdash=
d9898ee8 830for ac_option
831do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
dd184caf 834 eval $ac_prev=\$ac_option
d9898ee8 835 ac_prev=
836 continue
837 fi
838
dd184caf 839 case $ac_option in
b0322a85
CE
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
dd184caf 843 esac
d9898ee8 844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
dd184caf 847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
d9898ee8 850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
dd184caf 871 -datadir | --datadir | --datadi | --datad)
d9898ee8 872 ac_prev=datadir ;;
dd184caf 873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 874 datadir=$ac_optarg ;;
875
dd184caf 876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
d9898ee8 883 -disable-* | --disable-*)
8d138742 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 885 # Reject names that are not valid shell variable names.
8d138742 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 887 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892"enable_$ac_useropt"
893"*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
dd184caf 898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
d9898ee8 908
909 -enable-* | --enable-*)
8d138742 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 911 # Reject names that are not valid shell variable names.
8d138742 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 913 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
dd184caf 950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
d9898ee8 956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
dd184caf 980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
d9898ee8 985 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 986 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
dd184caf 1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
d9898ee8 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
8d138742 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1115 # Reject names that are not valid shell variable names.
8d138742 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1117 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1128
1129 -without-* | --without-*)
8d138742 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1131 # Reject names that are not valid shell variable names.
8d138742 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1133 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
d9898ee8 1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
b0322a85
CE
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164Try \`$0 --help' for more information"
d9898ee8 1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
b0322a85
CE
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
dd184caf 1174 eval $ac_envvar=\$ac_optarg
d9898ee8 1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
8d138742 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1183 ;;
1184
1185 esac
1186done
1187
1188if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1190 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1191fi
1192
8d138742
CE
1193if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
b0322a85 1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199fi
1200
1201# Check all directory arguments for consistency.
dd184caf 1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
d9898ee8 1206do
dd184caf 1207 eval ac_val=\$$ac_var
8d138742
CE
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
d9898ee8 1215 case $ac_val in
dd184caf 1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1218 esac
b0322a85 1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1220done
1221
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
d9898ee8 1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
dd184caf 1244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1247 as_fn_error $? "working directory cannot be determined"
dd184caf 1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1249 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1250
1251
d9898ee8 1252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
dd184caf 1255 # Try the directory containing this script, then the parent directory.
8d138742
CE
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261$as_echo X"$as_myself" |
dd184caf 1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
d9898ee8 1279 srcdir=$ac_confdir
dd184caf 1280 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
dd184caf 1286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1289fi
dd184caf 1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
b0322a85 1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
d9898ee8 1310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
b0322a85 1318\`configure' configures libsha1 1.21 to adapt to many kinds of systems.
d9898ee8 1319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
b0322a85 1332 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
d9898ee8 1338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1340 [$ac_default_prefix]
d9898ee8 1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1342 [PREFIX]
d9898ee8 1343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
8d138742
CE
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
b0322a85 1366 --docdir=DIR documentation root [DATAROOTDIR/doc/libsha1]
8d138742
CE
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
1387 case $ac_init_help in
b0322a85 1388 short | recursive ) echo "Configuration of libsha1 1.21:";;
d9898ee8 1389 esac
1390 cat <<\_ACEOF
1391
1392Optional Features:
8d138742 1393 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b0322a85
CE
1396 --enable-silent-rules less verbose build output (undo: "make V=1")
1397 --disable-silent-rules verbose build output (undo: "make V=0")
1398 --enable-dependency-tracking
1399 do not reject slow dependency extractors
1400 --disable-dependency-tracking
1401 speeds up one-time build
dd184caf 1402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
b0322a85 1407 --disable-largefile omit support for large files
d9898ee8 1408
1409Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b0322a85 1412 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
d9898ee8 1413 both]
8d138742 1414 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0322a85
CE
1415 --with-sysroot=DIR Search for dependent libraries within DIR
1416 (or the compiler's sysroot if not specified).
d9898ee8 1417 --with-int32='type' use 'type' for an unsigned 32 bit integer type
1418 ( default is 'unsigned')
b0322a85
CE
1419 --with-int64='type' use 'type' for an unsigned 64 bit integer type
1420 ( default is 'unsigned')
d9898ee8 1421
1422Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
dd184caf 1427 LIBS libraries to pass to the linker, e.g. -l<library>
b0322a85 1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dd184caf 1429 you have headers in a nonstandard directory <include dir>
d9898ee8 1430 CPP C preprocessor
d9898ee8 1431
1432Use these variables to override the choices made by `configure' or to help
1433it to find libraries and programs with nonstandard names/locations.
1434
1435Report bugs to <courier-users@lists.sourceforge.net>.
1436_ACEOF
dd184caf 1437ac_status=$?
d9898ee8 1438fi
1439
1440if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
d9898ee8 1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 continue
d9898ee8 1446 ac_builddir=.
1447
dd184caf 1448case "$ac_dir" in
1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450*)
8d138742 1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1452 # A ".." for each directory in $ac_dir_suffix.
8d138742 1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458esac
1459ac_abs_top_builddir=$ac_pwd
1460ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461# for backward compatibility:
1462ac_top_builddir=$ac_top_build_prefix
d9898ee8 1463
1464case $srcdir in
dd184caf 1465 .) # We are building in place.
d9898ee8 1466 ac_srcdir=.
dd184caf 1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1470 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1477esac
dd184caf 1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1488 else
8d138742 1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1490 fi || ac_status=$?
1491 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1492 done
1493fi
1494
dd184caf 1495test -n "$ac_init_help" && exit $ac_status
d9898ee8 1496if $ac_init_version; then
1497 cat <<\_ACEOF
b0322a85
CE
1498libsha1 configure 1.21
1499generated by GNU Autoconf 2.69
d9898ee8 1500
b0322a85 1501Copyright (C) 2012 Free Software Foundation, Inc.
d9898ee8 1502This configure script is free software; the Free Software Foundation
1503gives unlimited permission to copy, distribute and modify it.
1504_ACEOF
dd184caf 1505 exit
d9898ee8 1506fi
d9898ee8 1507
b0322a85
CE
1508## ------------------------ ##
1509## Autoconf initialization. ##
1510## ------------------------ ##
d9898ee8 1511
b0322a85
CE
1512# ac_fn_c_try_compile LINENO
1513# --------------------------
1514# Try to compile conftest.$ac_ext, and return whether this succeeded.
1515ac_fn_c_try_compile ()
d9898ee8 1516{
b0322a85
CE
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1520case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523esac
1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525$as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1538 ac_retval=0
1539else
1540 $as_echo "$as_me: failed program was:" >&5
1541sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 1542
b0322a85
CE
1543 ac_retval=1
1544fi
1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546 as_fn_set_status $ac_retval
1547
1548} # ac_fn_c_try_compile
1549
1550# ac_fn_c_try_link LINENO
1551# -----------------------
1552# Try to link conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_link ()
1554{
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1558case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
1577 test -x conftest$ac_exeext
1578 }; then :
1579 ac_retval=0
1580else
1581 $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585fi
1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588 # interfere with the next link command; also delete a directory that is
1589 # left behind by Apple's compiler. We do this before executing the actions.
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594} # ac_fn_c_try_link
1595
1596# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597# -------------------------------------------------------
1598# Tests whether HEADER exists and can be compiled using the include files in
1599# INCLUDES, setting the cache variable VAR accordingly.
1600ac_fn_c_check_header_compile ()
1601{
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604$as_echo_n "checking for $2... " >&6; }
1605if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1607else
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h. */
1610$4
1611#include <$2>
1612_ACEOF
1613if ac_fn_c_try_compile "$LINENO"; then :
1614 eval "$3=yes"
1615else
1616 eval "$3=no"
1617fi
1618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619fi
1620eval ac_res=\$$3
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622$as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625} # ac_fn_c_check_header_compile
1626
1627# ac_fn_c_try_cpp LINENO
1628# ----------------------
1629# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_cpp ()
1631{
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 }; then :
1652 ac_retval=0
1653else
1654 $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_cpp
1663
1664# ac_fn_c_try_run LINENO
1665# ----------------------
1666# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667# that executables *can* be run.
1668ac_fn_c_try_run ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1692 ac_retval=0
1693else
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=$ac_status
1699fi
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704} # ac_fn_c_try_run
1705
1706# ac_fn_c_check_func LINENO FUNC VAR
1707# ----------------------------------
1708# Tests whether FUNC exists, setting the cache variable VAR accordingly
1709ac_fn_c_check_func ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713$as_echo_n "checking for $2... " >&6; }
1714if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h. */
1719/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721#define $2 innocuous_$2
1722
1723/* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below.
1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726 <limits.h> exists even on freestanding compilers. */
1727
1728#ifdef __STDC__
1729# include <limits.h>
1730#else
1731# include <assert.h>
1732#endif
1733
1734#undef $2
1735
1736/* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1739#ifdef __cplusplus
1740extern "C"
1741#endif
1742char $2 ();
1743/* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746#if defined __stub_$2 || defined __stub___$2
1747choke me
1748#endif
1749
1750int
1751main ()
1752{
1753return $2 ();
1754 ;
1755 return 0;
1756}
1757_ACEOF
1758if ac_fn_c_try_link "$LINENO"; then :
1759 eval "$3=yes"
1760else
1761 eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext \
1764 conftest$ac_exeext conftest.$ac_ext
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771} # ac_fn_c_check_func
1772
1773# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776# the include files in INCLUDES and setting the cache variable VAR
1777# accordingly.
1778ac_fn_c_check_header_mongrel ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1786fi
1787eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790else
1791 # Is the header compilable?
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793$as_echo_n "checking $2 usability... " >&6; }
1794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795/* end confdefs.h. */
1796$4
1797#include <$2>
1798_ACEOF
1799if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1801else
1802 ac_header_compiler=no
1803fi
1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806$as_echo "$ac_header_compiler" >&6; }
1807
1808# Is the header present?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810$as_echo_n "checking $2 presence... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1817else
1818 ac_header_preproc=no
1819fi
1820rm -f conftest.err conftest.i conftest.$ac_ext
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822$as_echo "$ac_header_preproc" >&6; }
1823
1824# So? What about this header?
1825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826 yes:no: )
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 ;;
1832 no:yes:* )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843( $as_echo "## -------------------------------------------------- ##
1844## Report this to courier-users@lists.sourceforge.net ##
1845## -------------------------------------------------- ##"
1846 ) | sed "s/^/$as_me: WARNING: /" >&2
1847 ;;
1848esac
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
1851if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853else
1854 eval "$3=\$ac_header_compiler"
1855fi
1856eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859fi
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862} # ac_fn_c_check_header_mongrel
1863
1864# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1865# --------------------------------------------
1866# Tries to find the compile-time value of EXPR in a program that includes
1867# INCLUDES, setting VAR accordingly. Returns whether the value could be
1868# computed
1869ac_fn_c_compute_int ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if test "$cross_compiling" = yes; then
1873 # Depending upon the size, compute the lo and hi bounds.
1874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h. */
1876$4
1877int
1878main ()
1879{
1880static int test_array [1 - 2 * !(($2) >= 0)];
1881test_array [0] = 0;
1882return test_array [0];
1883
1884 ;
1885 return 0;
1886}
1887_ACEOF
1888if ac_fn_c_try_compile "$LINENO"; then :
1889 ac_lo=0 ac_mid=0
1890 while :; do
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h. */
1893$4
1894int
1895main ()
1896{
1897static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1898test_array [0] = 0;
1899return test_array [0];
1900
1901 ;
1902 return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_hi=$ac_mid; break
1907else
1908 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1909 if test $ac_lo -le $ac_mid; then
1910 ac_lo= ac_hi=
1911 break
1912 fi
1913 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 done
1917else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$4
1921int
1922main ()
1923{
1924static int test_array [1 - 2 * !(($2) < 0)];
1925test_array [0] = 0;
1926return test_array [0];
1927
1928 ;
1929 return 0;
1930}
1931_ACEOF
1932if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_hi=-1 ac_mid=-1
1934 while :; do
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h. */
1937$4
1938int
1939main ()
1940{
1941static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1942test_array [0] = 0;
1943return test_array [0];
1944
1945 ;
1946 return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
1950 ac_lo=$ac_mid; break
1951else
1952 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1953 if test $ac_mid -le $ac_hi; then
1954 ac_lo= ac_hi=
1955 break
1956 fi
1957 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1958fi
1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 done
1961else
1962 ac_lo= ac_hi=
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967# Binary search between lo and hi bounds.
1968while test "x$ac_lo" != "x$ac_hi"; do
1969 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h. */
1972$4
1973int
1974main ()
1975{
1976static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1977test_array [0] = 0;
1978return test_array [0];
1979
1980 ;
1981 return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985 ac_hi=$ac_mid
1986else
1987 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1988fi
1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990done
1991case $ac_lo in #((
1992?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1993'') ac_retval=1 ;;
1994esac
1995 else
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h. */
1998$4
1999static long int longval () { return $2; }
2000static unsigned long int ulongval () { return $2; }
2001#include <stdio.h>
2002#include <stdlib.h>
2003int
2004main ()
2005{
2006
2007 FILE *f = fopen ("conftest.val", "w");
2008 if (! f)
2009 return 1;
2010 if (($2) < 0)
2011 {
2012 long int i = longval ();
2013 if (i != ($2))
2014 return 1;
2015 fprintf (f, "%ld", i);
2016 }
2017 else
2018 {
2019 unsigned long int i = ulongval ();
2020 if (i != ($2))
2021 return 1;
2022 fprintf (f, "%lu", i);
2023 }
2024 /* Do not output a trailing newline, as this causes \r\n confusion
2025 on some platforms. */
2026 return ferror (f) || fclose (f) != 0;
2027
2028 ;
2029 return 0;
2030}
2031_ACEOF
2032if ac_fn_c_try_run "$LINENO"; then :
2033 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2034else
2035 ac_retval=1
2036fi
2037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2038 conftest.$ac_objext conftest.beam conftest.$ac_ext
2039rm -f conftest.val
2040
2041 fi
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status $ac_retval
2044
2045} # ac_fn_c_compute_int
2046cat >config.log <<_ACEOF
2047This file contains any messages produced by compilers while
2048running configure, to aid debugging if configure makes a mistake.
2049
2050It was created by libsha1 $as_me 1.21, which was
2051generated by GNU Autoconf 2.69. Invocation command line was
2052
2053 $ $0 $@
2054
2055_ACEOF
2056exec 5>>config.log
2057{
2058cat <<_ASUNAME
2059## --------- ##
2060## Platform. ##
2061## --------- ##
2062
2063hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2064uname -m = `(uname -m) 2>/dev/null || echo unknown`
2065uname -r = `(uname -r) 2>/dev/null || echo unknown`
2066uname -s = `(uname -s) 2>/dev/null || echo unknown`
2067uname -v = `(uname -v) 2>/dev/null || echo unknown`
d9898ee8 2068
2069/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2070/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2071
2072/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2073/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2074/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 2075/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 2076/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2077/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2078/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2079
2080_ASUNAME
2081
2082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083for as_dir in $PATH
2084do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
b0322a85
CE
2087 $as_echo "PATH: $as_dir"
2088 done
dd184caf 2089IFS=$as_save_IFS
d9898ee8 2090
2091} >&5
2092
2093cat >&5 <<_ACEOF
2094
2095
2096## ----------- ##
2097## Core tests. ##
2098## ----------- ##
2099
2100_ACEOF
2101
2102
2103# Keep a trace of the command line.
2104# Strip out --no-create and --no-recursion so they do not pile up.
2105# Strip out --silent because we don't want to record it for future runs.
2106# Also quote any args containing shell meta-characters.
2107# Make two passes to allow for proper duplicate-argument suppression.
2108ac_configure_args=
2109ac_configure_args0=
2110ac_configure_args1=
d9898ee8 2111ac_must_keep_next=false
2112for ac_pass in 1 2
2113do
2114 for ac_arg
2115 do
2116 case $ac_arg in
2117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2119 | -silent | --silent | --silen | --sile | --sil)
2120 continue ;;
dd184caf 2121 *\'*)
8d138742 2122 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2123 esac
2124 case $ac_pass in
b0322a85 2125 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 2126 2)
b0322a85 2127 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 2128 if test $ac_must_keep_next = true; then
2129 ac_must_keep_next=false # Got value, back to normal.
2130 else
2131 case $ac_arg in
2132 *=* | --config-cache | -C | -disable-* | --disable-* \
2133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2135 | -with-* | --with-* | -without-* | --without-* | --x)
2136 case "$ac_configure_args0 " in
2137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2138 esac
2139 ;;
2140 -* ) ac_must_keep_next=true ;;
2141 esac
2142 fi
b0322a85 2143 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 2144 ;;
2145 esac
2146 done
2147done
b0322a85
CE
2148{ ac_configure_args0=; unset ac_configure_args0;}
2149{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 2150
2151# When interrupted or exit'd, cleanup temporary files, and complete
2152# config.log. We remove comments because anyway the quotes in there
2153# would cause problems or look ugly.
dd184caf 2154# WARNING: Use '\'' to represent an apostrophe within the trap.
2155# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 2156trap 'exit_status=$?
2157 # Save into config.log some information that might help in debugging.
2158 {
2159 echo
2160
b0322a85 2161 $as_echo "## ---------------- ##
d9898ee8 2162## Cache variables. ##
b0322a85 2163## ---------------- ##"
d9898ee8 2164 echo
2165 # The following way of writing the cache mishandles newlines in values,
dd184caf 2166(
2167 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2168 eval ac_val=\$$ac_var
2169 case $ac_val in #(
2170 *${as_nl}*)
2171 case $ac_var in #(
b0322a85 2172 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 2173$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 2174 esac
2175 case $ac_var in #(
2176 _ | IFS | as_nl) ;; #(
8d138742 2177 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 2178 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2179 esac ;;
2180 esac
2181 done
d9898ee8 2182 (set) 2>&1 |
dd184caf 2183 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2184 *${as_nl}ac_space=\ *)
d9898ee8 2185 sed -n \
dd184caf 2186 "s/'\''/'\''\\\\'\'''\''/g;
2187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188 ;; #(
d9898ee8 2189 *)
dd184caf 2190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2191 ;;
dd184caf 2192 esac |
2193 sort
2194)
d9898ee8 2195 echo
2196
b0322a85 2197 $as_echo "## ----------------- ##
d9898ee8 2198## Output variables. ##
b0322a85 2199## ----------------- ##"
d9898ee8 2200 echo
2201 for ac_var in $ac_subst_vars
2202 do
dd184caf 2203 eval ac_val=\$$ac_var
2204 case $ac_val in
8d138742 2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2206 esac
8d138742 2207 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2208 done | sort
2209 echo
2210
2211 if test -n "$ac_subst_files"; then
b0322a85 2212 $as_echo "## ------------------- ##
dd184caf 2213## File substitutions. ##
b0322a85 2214## ------------------- ##"
d9898ee8 2215 echo
2216 for ac_var in $ac_subst_files
2217 do
dd184caf 2218 eval ac_val=\$$ac_var
2219 case $ac_val in
8d138742 2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2221 esac
8d138742 2222 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2223 done | sort
2224 echo
2225 fi
2226
2227 if test -s confdefs.h; then
b0322a85 2228 $as_echo "## ----------- ##
d9898ee8 2229## confdefs.h. ##
b0322a85 2230## ----------- ##"
d9898ee8 2231 echo
dd184caf 2232 cat confdefs.h
d9898ee8 2233 echo
2234 fi
2235 test "$ac_signal" != 0 &&
8d138742
CE
2236 $as_echo "$as_me: caught signal $ac_signal"
2237 $as_echo "$as_me: exit $exit_status"
d9898ee8 2238 } >&5
dd184caf 2239 rm -f core *.core core.conftest.* &&
2240 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2241 exit $exit_status
dd184caf 2242' 0
d9898ee8 2243for ac_signal in 1 2 13 15; do
b0322a85 2244 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2245done
2246ac_signal=0
2247
2248# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2249rm -f -r conftest* confdefs.h
d9898ee8 2250
b0322a85
CE
2251$as_echo "/* confdefs.h */" > confdefs.h
2252
d9898ee8 2253# Predefined preprocessor variables.
2254
2255cat >>confdefs.h <<_ACEOF
2256#define PACKAGE_NAME "$PACKAGE_NAME"
2257_ACEOF
2258
d9898ee8 2259cat >>confdefs.h <<_ACEOF
2260#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2261_ACEOF
2262
d9898ee8 2263cat >>confdefs.h <<_ACEOF
2264#define PACKAGE_VERSION "$PACKAGE_VERSION"
2265_ACEOF
2266
d9898ee8 2267cat >>confdefs.h <<_ACEOF
2268#define PACKAGE_STRING "$PACKAGE_STRING"
2269_ACEOF
2270
d9898ee8 2271cat >>confdefs.h <<_ACEOF
2272#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2273_ACEOF
2274
b0322a85
CE
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_URL "$PACKAGE_URL"
2277_ACEOF
2278
d9898ee8 2279
2280# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2281# Prefer an explicitly selected file to automatically selected ones.
2282ac_site_file1=NONE
2283ac_site_file2=NONE
dd184caf 2284if test -n "$CONFIG_SITE"; then
b0322a85
CE
2285 # We do not want a PATH search for config.site.
2286 case $CONFIG_SITE in #((
2287 -*) ac_site_file1=./$CONFIG_SITE;;
2288 */*) ac_site_file1=$CONFIG_SITE;;
2289 *) ac_site_file1=./$CONFIG_SITE;;
2290 esac
dd184caf 2291elif test "x$prefix" != xNONE; then
8d138742
CE
2292 ac_site_file1=$prefix/share/config.site
2293 ac_site_file2=$prefix/etc/config.site
dd184caf 2294else
8d138742
CE
2295 ac_site_file1=$ac_default_prefix/share/config.site
2296 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2297fi
8d138742 2298for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2299do
8d138742 2300 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2301 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2303$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2304 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2305 . "$ac_site_file" \
2306 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308as_fn_error $? "failed to load site script $ac_site_file
2309See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2310 fi
2311done
2312
2313if test -r "$cache_file"; then
b0322a85
CE
2314 # Some versions of bash will fail to source /dev/null (special files
2315 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2316 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2318$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2319 case $cache_file in
dd184caf 2320 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2321 *) . "./$cache_file";;
d9898ee8 2322 esac
2323 fi
2324else
b0322a85 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2326$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2327 >$cache_file
2328fi
2329
2330# Check that the precious variables saved in the cache have kept the same
2331# value.
2332ac_cache_corrupted=false
dd184caf 2333for ac_var in $ac_precious_vars; do
d9898ee8 2334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2335 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2336 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2337 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2338 case $ac_old_set,$ac_new_set in
2339 set,)
b0322a85 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2341$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2342 ac_cache_corrupted=: ;;
2343 ,set)
b0322a85 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2345$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2346 ac_cache_corrupted=: ;;
2347 ,);;
2348 *)
2349 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2350 # differences in whitespace do not lead to failure.
2351 ac_old_val_w=`echo x $ac_old_val`
2352 ac_new_val_w=`echo x $ac_new_val`
2353 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2355$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2356 ac_cache_corrupted=:
2357 else
b0322a85 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2359$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2360 eval $ac_var=\$ac_old_val
2361 fi
b0322a85 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2363$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2365$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2366 fi;;
2367 esac
2368 # Pass precious variables to config.status.
2369 if test "$ac_new_set" = set; then
2370 case $ac_new_val in
8d138742 2371 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2372 *) ac_arg=$ac_var=$ac_new_val ;;
2373 esac
2374 case " $ac_configure_args " in
2375 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2376 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2377 esac
2378 fi
2379done
2380if $ac_cache_corrupted; then
b0322a85 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2384$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2385 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2386fi
b0322a85
CE
2387## -------------------- ##
2388## Main body of script. ##
2389## -------------------- ##
d9898ee8 2390
dd184caf 2391ac_ext=c
2392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2396
2397
2398
2399>confdefs.h # Kill PACKAGE_ macros
2400
2401
d9898ee8 2402ac_aux_dir=
b0322a85 2403for ac_dir in ../.. "$srcdir"/../..; do
dd184caf 2404 if test -f "$ac_dir/install-sh"; then
d9898ee8 2405 ac_aux_dir=$ac_dir
2406 ac_install_sh="$ac_aux_dir/install-sh -c"
2407 break
dd184caf 2408 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2409 ac_aux_dir=$ac_dir
2410 ac_install_sh="$ac_aux_dir/install.sh -c"
2411 break
dd184caf 2412 elif test -f "$ac_dir/shtool"; then
d9898ee8 2413 ac_aux_dir=$ac_dir
2414 ac_install_sh="$ac_aux_dir/shtool install -c"
2415 break
2416 fi
2417done
2418if test -z "$ac_aux_dir"; then
b0322a85 2419 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
d9898ee8 2420fi
dd184caf 2421
2422# These three variables are undocumented and unsupported,
2423# and are intended to be withdrawn in a future Autoconf release.
2424# They can cause serious problems if a builder's source tree is in a directory
2425# whose full name contains unusual characters.
2426ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2427ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2428ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2429
d9898ee8 2430
b0322a85
CE
2431ac_config_headers="$ac_config_headers config.h"
2432
2433am__api_version='1.13'
2434
d9898ee8 2435# Find a good install program. We prefer a C program (faster),
2436# so one script is as good as another. But avoid the broken or
2437# incompatible versions:
2438# SysV /etc/install, /usr/sbin/install
2439# SunOS /usr/etc/install
2440# IRIX /sbin/install
2441# AIX /bin/install
2442# AmigaOS /C/install, which installs bootblocks on floppy discs
2443# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2446# OS/2's system install, which has a completely different semantic
2447# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2448# Reject install programs that cannot install multiple files.
b0322a85 2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2450$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2451if test -z "$INSTALL"; then
b0322a85 2452if ${ac_cv_path_install+:} false; then :
8d138742 2453 $as_echo_n "(cached) " >&6
d9898ee8 2454else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
b0322a85
CE
2460 # Account for people who put trailing slashes in PATH elements.
2461case $as_dir/ in #((
2462 ./ | .// | /[cC]/* | \
d9898ee8 2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2465 /usr/ucb/* ) ;;
2466 *)
2467 # OSF1 and SCO ODT 3.0 have their own names for install.
2468 # Don't use installbsd from OSF since it installs stuff as root
2469 # by default.
2470 for ac_prog in ginstall scoinst install; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2472 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2473 if test $ac_prog = install &&
2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475 # AIX install. It has an incompatible calling convention.
2476 :
2477 elif test $ac_prog = install &&
2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # program-specific install script used by HP pwplus--don't use.
2480 :
2481 else
8d138742
CE
2482 rm -rf conftest.one conftest.two conftest.dir
2483 echo one > conftest.one
2484 echo two > conftest.two
2485 mkdir conftest.dir
2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487 test -s conftest.one && test -s conftest.two &&
2488 test -s conftest.dir/conftest.one &&
2489 test -s conftest.dir/conftest.two
2490 then
2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2492 break 3
2493 fi
d9898ee8 2494 fi
2495 fi
2496 done
2497 done
2498 ;;
2499esac
8d138742 2500
b0322a85 2501 done
dd184caf 2502IFS=$as_save_IFS
d9898ee8 2503
8d138742 2504rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2505
2506fi
2507 if test "${ac_cv_path_install+set}" = set; then
2508 INSTALL=$ac_cv_path_install
2509 else
dd184caf 2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for INSTALL within a source directory, because that will
d9898ee8 2512 # break other packages using the cache if that directory is
dd184caf 2513 # removed, or if the value is a relative name.
d9898ee8 2514 INSTALL=$ac_install_sh
2515 fi
2516fi
b0322a85 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2518$as_echo "$INSTALL" >&6; }
d9898ee8 2519
2520# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521# It thinks the first close brace ends the variable substitution.
2522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2523
2524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2525
2526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2527
b0322a85 2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2529$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2530# Reject unsafe characters in $srcdir or the absolute working directory
2531# name. Accept space and tab only in the latter.
2532am_lf='
2533'
2534case `pwd` in
2535 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2536 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2537esac
2538case $srcdir in
2539 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2540 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2541esac
2542
b0322a85 2543# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2544# arguments. Must try -L first in case configure is actually a
2545# symlink; some systems play weird games with the mod time of symlinks
2546# (eg FreeBSD returns the mod time of the symlink's containing
2547# directory).
2548if (
b0322a85
CE
2549 am_has_slept=no
2550 for am_try in 1 2; do
2551 echo "timestamp, slept: $am_has_slept" > conftest.file
2552 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2553 if test "$*" = "X"; then
2554 # -L didn't work.
2555 set X `ls -t "$srcdir/configure" conftest.file`
2556 fi
2557 if test "$*" != "X $srcdir/configure conftest.file" \
2558 && test "$*" != "X conftest.file $srcdir/configure"; then
2559
2560 # If neither matched, then we have a broken ls. This can happen
2561 # if, for instance, CONFIG_SHELL is bash and it inherits a
2562 # broken ls alias from the environment. This has actually
2563 # happened. Such a system could not be considered "sane".
2564 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2565 alias in your environment" "$LINENO" 5
2566 fi
2567 if test "$2" = conftest.file || test $am_try -eq 2; then
2568 break
2569 fi
2570 # Just in case.
2571 sleep 1
2572 am_has_slept=yes
2573 done
d9898ee8 2574 test "$2" = conftest.file
2575 )
2576then
2577 # Ok.
2578 :
2579else
b0322a85
CE
2580 as_fn_error $? "newly created file is older than distributed files!
2581Check your system clock" "$LINENO" 5
d9898ee8 2582fi
b0322a85 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2584$as_echo "yes" >&6; }
b0322a85
CE
2585# If we didn't sleep, we still need to ensure time stamps of config.status and
2586# generated files are strictly newer.
2587am_sleep_pid=
2588if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2589 ( sleep 1 ) &
2590 am_sleep_pid=$!
2591fi
2592
2593rm -f conftest.file
2594
d9898ee8 2595test "$program_prefix" != NONE &&
dd184caf 2596 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2597# Use a double $ so make ignores it.
2598test "$program_suffix" != NONE &&
dd184caf 2599 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2600# Double any \ or $.
d9898ee8 2601# By default was `s,x,x', remove it if useless.
8d138742
CE
2602ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2603program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2604
2605# expand $ac_aux_dir to an absolute path
2606am_aux_dir=`cd $ac_aux_dir && pwd`
2607
8d138742
CE
2608if test x"${MISSING+set}" != xset; then
2609 case $am_aux_dir in
2610 *\ * | *\ *)
2611 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2612 *)
2613 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2614 esac
2615fi
d9898ee8 2616# Use eval to expand $SHELL
b0322a85
CE
2617if eval "$MISSING --is-lightweight"; then
2618 am_missing_run="$MISSING "
d9898ee8 2619else
2620 am_missing_run=
b0322a85
CE
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2622$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2623fi
2624
2625if test x"${install_sh}" != xset; then
2626 case $am_aux_dir in
2627 *\ * | *\ *)
2628 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2629 *)
2630 install_sh="\${SHELL} $am_aux_dir/install-sh"
2631 esac
2632fi
2633
b0322a85
CE
2634# Installed binaries are usually stripped using 'strip' when the user
2635# run "make install-strip". However 'strip' might not be the right
8d138742 2636# tool to use in cross-compilation environments, therefore Automake
b0322a85 2637# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2638if test "$cross_compiling" != no; then
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2641set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2643$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2644if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2645 $as_echo_n "(cached) " >&6
2646else
2647 if test -n "$STRIP"; then
2648 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
b0322a85
CE
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2657 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2659 break 2
2660 fi
2661done
b0322a85 2662 done
8d138742
CE
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667STRIP=$ac_cv_prog_STRIP
2668if test -n "$STRIP"; then
b0322a85 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2670$as_echo "$STRIP" >&6; }
2671else
b0322a85 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2673$as_echo "no" >&6; }
d9898ee8 2674fi
2675
8d138742
CE
2676
2677fi
2678if test -z "$ac_cv_prog_STRIP"; then
2679 ac_ct_STRIP=$STRIP
2680 # Extract the first word of "strip", so it can be a program name with args.
2681set dummy strip; ac_word=$2
b0322a85 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2683$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2684if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2685 $as_echo_n "(cached) " >&6
2686else
2687 if test -n "$ac_ct_STRIP"; then
2688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
b0322a85
CE
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2697 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2699 break 2
2700 fi
2701done
b0322a85 2702 done
8d138742
CE
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2708if test -n "$ac_ct_STRIP"; then
b0322a85 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2710$as_echo "$ac_ct_STRIP" >&6; }
2711else
b0322a85 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2713$as_echo "no" >&6; }
2714fi
2715
2716 if test "x$ac_ct_STRIP" = x; then
2717 STRIP=":"
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720yes:)
b0322a85 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2723ac_tool_warned=yes ;;
2724esac
2725 STRIP=$ac_ct_STRIP
2726 fi
2727else
2728 STRIP="$ac_cv_prog_STRIP"
2729fi
2730
2731fi
2732INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2733
b0322a85 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2735$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2736if test -z "$MKDIR_P"; then
b0322a85 2737 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2738 $as_echo_n "(cached) " >&6
dd184caf 2739else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2742do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
b0322a85 2745 for ac_prog in mkdir gmkdir; do
dd184caf 2746 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2747 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2748 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2749 'mkdir (GNU coreutils) '* | \
2750 'mkdir (coreutils) '* | \
2751 'mkdir (fileutils) '4.1*)
2752 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2753 break 3;;
2754 esac
2755 done
2756 done
b0322a85 2757 done
dd184caf 2758IFS=$as_save_IFS
2759
2760fi
2761
b0322a85 2762 test -d ./--version && rmdir ./--version
dd184caf 2763 if test "${ac_cv_path_mkdir+set}" = set; then
2764 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2765 else
dd184caf 2766 # As a last resort, use the slow shell script. Don't cache a
2767 # value for MKDIR_P within a source directory, because that will
2768 # break other packages using the cache if that directory is
2769 # removed, or if the value is a relative name.
dd184caf 2770 MKDIR_P="$ac_install_sh -d"
d9898ee8 2771 fi
2772fi
b0322a85 2773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2774$as_echo "$MKDIR_P" >&6; }
dd184caf 2775
d9898ee8 2776for ac_prog in gawk mawk nawk awk
2777do
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779set dummy $ac_prog; ac_word=$2
b0322a85 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2781$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2782if ${ac_cv_prog_AWK+:} false; then :
8d138742 2783 $as_echo_n "(cached) " >&6
d9898ee8 2784else
2785 if test -n "$AWK"; then
2786 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
b0322a85
CE
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2795 ac_cv_prog_AWK="$ac_prog"
b0322a85 2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2797 break 2
2798 fi
2799done
b0322a85 2800 done
dd184caf 2801IFS=$as_save_IFS
d9898ee8 2802
2803fi
2804fi
2805AWK=$ac_cv_prog_AWK
2806if test -n "$AWK"; then
b0322a85 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2808$as_echo "$AWK" >&6; }
d9898ee8 2809else
b0322a85 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2811$as_echo "no" >&6; }
d9898ee8 2812fi
2813
dd184caf 2814
d9898ee8 2815 test -n "$AWK" && break
2816done
2817
b0322a85 2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2819$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2820set x ${MAKE-make}
2821ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2822if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2823 $as_echo_n "(cached) " >&6
d9898ee8 2824else
2825 cat >conftest.make <<\_ACEOF
dd184caf 2826SHELL = /bin/sh
d9898ee8 2827all:
dd184caf 2828 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2829_ACEOF
b0322a85 2830# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2831case `${MAKE-make} -f conftest.make 2>/dev/null` in
2832 *@@@%%%=?*=@@@%%%*)
2833 eval ac_cv_prog_make_${ac_make}_set=yes;;
2834 *)
2835 eval ac_cv_prog_make_${ac_make}_set=no;;
2836esac
d9898ee8 2837rm -f conftest.make
2838fi
dd184caf 2839if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2841$as_echo "yes" >&6; }
d9898ee8 2842 SET_MAKE=
2843else
b0322a85 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2845$as_echo "no" >&6; }
d9898ee8 2846 SET_MAKE="MAKE=${MAKE-make}"
2847fi
2848
2849rm -rf .tst 2>/dev/null
2850mkdir .tst 2>/dev/null
2851if test -d .tst; then
2852 am__leading_dot=.
2853else
2854 am__leading_dot=_
2855fi
2856rmdir .tst 2>/dev/null
2857
b0322a85
CE
2858# Check whether --enable-silent-rules was given.
2859if test "${enable_silent_rules+set}" = set; then :
2860 enableval=$enable_silent_rules;
d9898ee8 2861fi
2862
b0322a85
CE
2863case $enable_silent_rules in # (((
2864 yes) AM_DEFAULT_VERBOSITY=0;;
2865 no) AM_DEFAULT_VERBOSITY=1;;
2866 *) AM_DEFAULT_VERBOSITY=1;;
2867esac
2868am_make=${MAKE-make}
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2870$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2871if ${am_cv_make_support_nested_variables+:} false; then :
8d138742 2872 $as_echo_n "(cached) " >&6
d9898ee8 2873else
b0322a85
CE
2874 if $as_echo 'TRUE=$(BAR$(V))
2875BAR0=false
2876BAR1=true
2877V=1
2878am__doit:
2879 @$(TRUE)
2880.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2881 am_cv_make_support_nested_variables=yes
d9898ee8 2882else
b0322a85 2883 am_cv_make_support_nested_variables=no
d9898ee8 2884fi
2885fi
b0322a85
CE
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2887$as_echo "$am_cv_make_support_nested_variables" >&6; }
2888if test $am_cv_make_support_nested_variables = yes; then
2889 AM_V='$(V)'
2890 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
d9898ee8 2891else
b0322a85
CE
2892 AM_V=$AM_DEFAULT_VERBOSITY
2893 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
d9898ee8 2894fi
b0322a85 2895AM_BACKSLASH='\'
d9898ee8 2896
b0322a85
CE
2897if test "`cd $srcdir && pwd`" != "`pwd`"; then
2898 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2899 # is not polluted with repeated "-I."
2900 am__isrc=' -I$(srcdir)'
2901 # test to see if srcdir already configured
2902 if test -f $srcdir/config.status; then
2903 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2904 fi
d9898ee8 2905fi
b0322a85
CE
2906
2907# test whether we have cygpath
2908if test -z "$CYGPATH_W"; then
2909 if (cygpath --version) >/dev/null 2>/dev/null; then
2910 CYGPATH_W='cygpath -w'
d9898ee8 2911 else
b0322a85 2912 CYGPATH_W=echo
d9898ee8 2913 fi
2914fi
d9898ee8 2915
d9898ee8 2916
b0322a85
CE
2917# Define the identity of the package.
2918 PACKAGE='libsha1'
2919 VERSION='1.21'
d9898ee8 2920
d9898ee8 2921
b0322a85
CE
2922# Some tools Automake needs.
2923
2924ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925
2926
2927AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2928
2929
2930AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931
2932
2933AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2934
2935
2936MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937
2938# For better backward compatibility. To be removed once Automake 1.9.x
2939# dies out for good. For more background, see:
2940# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2941# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2942mkdir_p='$(MKDIR_P)'
2943
2944# We need awk for the "check" target. The system "awk" is bad on
2945# some platforms.
2946# Always define AMTAR for backward compatibility. Yes, it's still used
2947# in the wild :-( We should find a proper way to deprecate it ...
2948AMTAR='$${TAR-tar}'
2949
2950
2951# We'll loop over all known methods to create a tar archive until one works.
2952_am_tools='gnutar pax cpio none'
2953
2954am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2955
2956
2957
2958
2959
2960
2961
2962 if test -d ${srcdir}/../libhmac; then
2963 HMACC_TRUE=
2964 HMACC_FALSE='#'
d9898ee8 2965else
b0322a85
CE
2966 HMACC_TRUE='#'
2967 HMACC_FALSE=
d9898ee8 2968fi
2969
b0322a85 2970
d9898ee8 2971ac_ext=c
2972ac_cpp='$CPP $CPPFLAGS'
2973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2978set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2980$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2981if ${ac_cv_prog_CC+:} false; then :
8d138742 2982 $as_echo_n "(cached) " >&6
d9898ee8 2983else
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986else
2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988for as_dir in $PATH
2989do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
b0322a85
CE
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2994 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2996 break 2
2997 fi
2998done
b0322a85 2999 done
dd184caf 3000IFS=$as_save_IFS
d9898ee8 3001
3002fi
3003fi
3004CC=$ac_cv_prog_CC
3005if test -n "$CC"; then
b0322a85 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3007$as_echo "$CC" >&6; }
d9898ee8 3008else
b0322a85 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3010$as_echo "no" >&6; }
d9898ee8 3011fi
3012
dd184caf 3013
d9898ee8 3014fi
3015if test -z "$ac_cv_prog_CC"; then
3016 ac_ct_CC=$CC
3017 # Extract the first word of "gcc", so it can be a program name with args.
3018set dummy gcc; ac_word=$2
b0322a85 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3020$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3021if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3022 $as_echo_n "(cached) " >&6
d9898ee8 3023else
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
b0322a85
CE
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3034 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3036 break 2
3037 fi
3038done
b0322a85 3039 done
dd184caf 3040IFS=$as_save_IFS
d9898ee8 3041
3042fi
3043fi
3044ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045if test -n "$ac_ct_CC"; then
b0322a85 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3047$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3048else
b0322a85 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3050$as_echo "no" >&6; }
d9898ee8 3051fi
3052
dd184caf 3053 if test "x$ac_ct_CC" = x; then
3054 CC=""
3055 else
3056 case $cross_compiling:$ac_tool_warned in
3057yes:)
b0322a85 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3060ac_tool_warned=yes ;;
3061esac
3062 CC=$ac_ct_CC
3063 fi
d9898ee8 3064else
3065 CC="$ac_cv_prog_CC"
3066fi
3067
3068if test -z "$CC"; then
dd184caf 3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 3071set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3073$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3074if ${ac_cv_prog_CC+:} false; then :
8d138742 3075 $as_echo_n "(cached) " >&6
d9898ee8 3076else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
b0322a85
CE
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3087 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3089 break 2
3090 fi
3091done
b0322a85 3092 done
dd184caf 3093IFS=$as_save_IFS
d9898ee8 3094
3095fi
3096fi
3097CC=$ac_cv_prog_CC
3098if test -n "$CC"; then
b0322a85 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3100$as_echo "$CC" >&6; }
d9898ee8 3101else
b0322a85 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3103$as_echo "no" >&6; }
d9898ee8 3104fi
3105
d9898ee8 3106
dd184caf 3107 fi
d9898ee8 3108fi
3109if test -z "$CC"; then
3110 # Extract the first word of "cc", so it can be a program name with args.
3111set dummy cc; ac_word=$2
b0322a85 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3113$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3114if ${ac_cv_prog_CC+:} false; then :
8d138742 3115 $as_echo_n "(cached) " >&6
d9898ee8 3116else
3117 if test -n "$CC"; then
3118 ac_cv_prog_CC="$CC" # Let the user override the test.
3119else
3120 ac_prog_rejected=no
3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
b0322a85
CE
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3129 ac_prog_rejected=yes
3130 continue
3131 fi
3132 ac_cv_prog_CC="cc"
b0322a85 3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3134 break 2
3135 fi
3136done
b0322a85 3137 done
dd184caf 3138IFS=$as_save_IFS
d9898ee8 3139
3140if test $ac_prog_rejected = yes; then
3141 # We found a bogon in the path, so make sure we never use it.
3142 set dummy $ac_cv_prog_CC
3143 shift
3144 if test $# != 0; then
3145 # We chose a different compiler from the bogus one.
3146 # However, it has the same basename, so the bogon will be chosen
3147 # first if we set CC to just the basename; use the full file name.
3148 shift
3149 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3150 fi
3151fi
3152fi
3153fi
3154CC=$ac_cv_prog_CC
3155if test -n "$CC"; then
b0322a85 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3157$as_echo "$CC" >&6; }
d9898ee8 3158else
b0322a85 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3160$as_echo "no" >&6; }
d9898ee8 3161fi
3162
dd184caf 3163
d9898ee8 3164fi
3165if test -z "$CC"; then
3166 if test -n "$ac_tool_prefix"; then
dd184caf 3167 for ac_prog in cl.exe
d9898ee8 3168 do
3169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3170set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3172$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3173if ${ac_cv_prog_CC+:} false; then :
8d138742 3174 $as_echo_n "(cached) " >&6
d9898ee8 3175else
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
b0322a85
CE
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3186 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3188 break 2
3189 fi
3190done
b0322a85 3191 done
dd184caf 3192IFS=$as_save_IFS
d9898ee8 3193
3194fi
3195fi
3196CC=$ac_cv_prog_CC
3197if test -n "$CC"; then
b0322a85 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3199$as_echo "$CC" >&6; }
d9898ee8 3200else
b0322a85 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3202$as_echo "no" >&6; }
d9898ee8 3203fi
3204
dd184caf 3205
d9898ee8 3206 test -n "$CC" && break
3207 done
3208fi
3209if test -z "$CC"; then
3210 ac_ct_CC=$CC
dd184caf 3211 for ac_prog in cl.exe
d9898ee8 3212do
3213 # Extract the first word of "$ac_prog", so it can be a program name with args.
3214set dummy $ac_prog; ac_word=$2
b0322a85 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3216$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3217if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3218 $as_echo_n "(cached) " >&6
d9898ee8 3219else
3220 if test -n "$ac_ct_CC"; then
3221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3222else
3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH
3225do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
b0322a85
CE
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3230 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3232 break 2
3233 fi
3234done
b0322a85 3235 done
dd184caf 3236IFS=$as_save_IFS
d9898ee8 3237
3238fi
3239fi
3240ac_ct_CC=$ac_cv_prog_ac_ct_CC
3241if test -n "$ac_ct_CC"; then
b0322a85 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3243$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3244else
b0322a85 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3246$as_echo "no" >&6; }
d9898ee8 3247fi
3248
dd184caf 3249
d9898ee8 3250 test -n "$ac_ct_CC" && break
3251done
3252
dd184caf 3253 if test "x$ac_ct_CC" = x; then
3254 CC=""
3255 else
3256 case $cross_compiling:$ac_tool_warned in
3257yes:)
b0322a85 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3260ac_tool_warned=yes ;;
3261esac
3262 CC=$ac_ct_CC
3263 fi
d9898ee8 3264fi
3265
3266fi
3267
3268
b0322a85 3269test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3271as_fn_error $? "no acceptable C compiler found in \$PATH
3272See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3273
3274# Provide some information about the compiler.
b0322a85 3275$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3276set X $ac_compile
3277ac_compiler=$2
b0322a85
CE
3278for ac_option in --version -v -V -qversion; do
3279 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3280case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283esac
b0322a85
CE
3284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285$as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3287 ac_status=$?
b0322a85
CE
3288 if test -s conftest.err; then
3289 sed '10a\
3290... rest of stderr output deleted ...
3291 10q' conftest.err >conftest.er1
3292 cat conftest.er1 >&5
3293 fi
3294 rm -f conftest.er1 conftest.err
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }
3297done
d9898ee8 3298
b0322a85 3299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3300/* end confdefs.h. */
3301
3302int
3303main ()
3304{
3305
3306 ;
3307 return 0;
3308}
3309_ACEOF
3310ac_clean_files_save=$ac_clean_files
8d138742 3311ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3312# Try to create an executable without -o first, disregard a.out.
3313# It will help us diagnose broken compilers, and finding out an intuition
3314# of exeext.
b0322a85
CE
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3316$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3317ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3318
3319# The possible output files:
3320ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3321
dd184caf 3322ac_rmfiles=
3323for ac_file in $ac_files
3324do
3325 case $ac_file in
8d138742 3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3327 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3328 esac
3329done
3330rm -f $ac_rmfiles
3331
b0322a85 3332if { { ac_try="$ac_link_default"
dd184caf 3333case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
b0322a85
CE
3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338$as_echo "$ac_try_echo"; } >&5
dd184caf 3339 (eval "$ac_link_default") 2>&5
d9898ee8 3340 ac_status=$?
b0322a85
CE
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; then :
dd184caf 3343 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3344# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3345# in a Makefile. We should not override ac_cv_exeext if it was cached,
3346# so that the user can short-circuit this test for compilers unknown to
3347# Autoconf.
3348for ac_file in $ac_files ''
d9898ee8 3349do
3350 test -f "$ac_file" || continue
3351 case $ac_file in
8d138742 3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3353 ;;
3354 [ab].out )
3355 # We found the default executable, but exeext='' is most
3356 # certainly right.
3357 break;;
3358 *.* )
b0322a85 3359 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3360 then :; else
3361 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3362 fi
3363 # We set ac_cv_exeext here because the later test for it is not
3364 # safe: cross compilers may not add the suffix if given an `-o'
3365 # argument, so we may need to know it at that point already.
3366 # Even if this section looks crufty: it has the advantage of
3367 # actually working.
d9898ee8 3368 break;;
3369 * )
3370 break;;
3371 esac
3372done
dd184caf 3373test "$ac_cv_exeext" = no && ac_cv_exeext=
3374
d9898ee8 3375else
dd184caf 3376 ac_file=''
3377fi
b0322a85
CE
3378if test -z "$ac_file"; then :
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380$as_echo "no" >&6; }
3381$as_echo "$as_me: failed program was:" >&5
d9898ee8 3382sed 's/^/| /' conftest.$ac_ext >&5
3383
b0322a85 3384{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3386as_fn_error 77 "C compiler cannot create executables
3387See \`config.log' for more details" "$LINENO" 5; }
3388else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3390$as_echo "yes" >&6; }
d9898ee8 3391fi
b0322a85
CE
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3393$as_echo_n "checking for C compiler default output file name... " >&6; }
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3395$as_echo "$ac_file" >&6; }
d9898ee8 3396ac_exeext=$ac_cv_exeext
d9898ee8 3397
8d138742 3398rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3399ac_clean_files=$ac_clean_files_save
b0322a85 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3401$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3402if { { ac_try="$ac_link"
dd184caf 3403case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
b0322a85
CE
3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408$as_echo "$ac_try_echo"; } >&5
dd184caf 3409 (eval "$ac_link") 2>&5
d9898ee8 3410 ac_status=$?
b0322a85
CE
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
d9898ee8 3413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3414# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3415# work properly (i.e., refer to `conftest.exe'), while it won't with
3416# `rm'.
3417for ac_file in conftest.exe conftest conftest.*; do
3418 test -f "$ac_file" || continue
3419 case $ac_file in
8d138742 3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3422 break;;
3423 * ) break;;
3424 esac
3425done
3426else
b0322a85 3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3429as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3430See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3431fi
b0322a85
CE
3432rm -f conftest conftest$ac_cv_exeext
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3434$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3435
3436rm -f conftest.$ac_ext
3437EXEEXT=$ac_cv_exeext
3438ac_exeext=$EXEEXT
b0322a85
CE
3439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440/* end confdefs.h. */
3441#include <stdio.h>
3442int
3443main ()
3444{
3445FILE *f = fopen ("conftest.out", "w");
3446 return ferror (f) || fclose (f) != 0;
3447
3448 ;
3449 return 0;
3450}
3451_ACEOF
3452ac_clean_files="$ac_clean_files conftest.out"
3453# Check that the compiler produces executables we can run. If not, either
3454# the compiler is broken, or we cross compile.
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3456$as_echo_n "checking whether we are cross compiling... " >&6; }
3457if test "$cross_compiling" != yes; then
3458 { { ac_try="$ac_link"
3459case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_link") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3469 if { ac_try='./conftest$ac_cv_exeext'
3470 { { case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473esac
3474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475$as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_try") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; }; then
3480 cross_compiling=no
3481 else
3482 if test "$cross_compiling" = maybe; then
3483 cross_compiling=yes
3484 else
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487as_fn_error $? "cannot run C compiled programs.
3488If you meant to cross compile, use \`--host'.
3489See \`config.log' for more details" "$LINENO" 5; }
3490 fi
3491 fi
3492fi
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3494$as_echo "$cross_compiling" >&6; }
3495
3496rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3497ac_clean_files=$ac_clean_files_save
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3499$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3500if ${ac_cv_objext+:} false; then :
8d138742 3501 $as_echo_n "(cached) " >&6
d9898ee8 3502else
b0322a85 3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3504/* end confdefs.h. */
3505
3506int
3507main ()
3508{
3509
3510 ;
3511 return 0;
3512}
3513_ACEOF
3514rm -f conftest.o conftest.obj
b0322a85 3515if { { ac_try="$ac_compile"
dd184caf 3516case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519esac
b0322a85
CE
3520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521$as_echo "$ac_try_echo"; } >&5
dd184caf 3522 (eval "$ac_compile") 2>&5
d9898ee8 3523 ac_status=$?
b0322a85
CE
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; then :
dd184caf 3526 for ac_file in conftest.o conftest.obj conftest.*; do
3527 test -f "$ac_file" || continue;
d9898ee8 3528 case $ac_file in
8d138742 3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3531 break;;
3532 esac
3533done
3534else
8d138742 3535 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3536sed 's/^/| /' conftest.$ac_ext >&5
3537
b0322a85 3538{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3540as_fn_error $? "cannot compute suffix of object files: cannot compile
3541See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3542fi
d9898ee8 3543rm -f conftest.$ac_cv_objext conftest.$ac_ext
3544fi
b0322a85 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3546$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3547OBJEXT=$ac_cv_objext
3548ac_objext=$OBJEXT
b0322a85 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3550$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3551if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3552 $as_echo_n "(cached) " >&6
d9898ee8 3553else
b0322a85 3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3555/* end confdefs.h. */
3556
3557int
3558main ()
3559{
3560#ifndef __GNUC__
3561 choke me
3562#endif
3563
3564 ;
3565 return 0;
3566}
3567_ACEOF
b0322a85 3568if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3569 ac_compiler_gnu=yes
3570else
b0322a85 3571 ac_compiler_gnu=no
d9898ee8 3572fi
dd184caf 3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3574ac_cv_c_compiler_gnu=$ac_compiler_gnu
3575
3576fi
b0322a85 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3578$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3579if test $ac_compiler_gnu = yes; then
3580 GCC=yes
3581else
3582 GCC=
3583fi
d9898ee8 3584ac_test_CFLAGS=${CFLAGS+set}
3585ac_save_CFLAGS=$CFLAGS
b0322a85 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3587$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3588if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3589 $as_echo_n "(cached) " >&6
d9898ee8 3590else
dd184caf 3591 ac_save_c_werror_flag=$ac_c_werror_flag
3592 ac_c_werror_flag=yes
3593 ac_cv_prog_cc_g=no
3594 CFLAGS="-g"
b0322a85 3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3596/* end confdefs.h. */
3597
3598int
3599main ()
3600{
3601
3602 ;
3603 return 0;
3604}
3605_ACEOF
b0322a85 3606if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3607 ac_cv_prog_cc_g=yes
3608else
b0322a85
CE
3609 CFLAGS=""
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3611/* end confdefs.h. */
3612
3613int
3614main ()
3615{
3616
3617 ;
3618 return 0;
3619}
3620_ACEOF
b0322a85 3621if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3622
b0322a85
CE
3623else
3624 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3625 CFLAGS="-g"
b0322a85 3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3627/* end confdefs.h. */
3628
3629int
3630main ()
3631{
3632
3633 ;
3634 return 0;
3635}
3636_ACEOF
b0322a85 3637if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3638 ac_cv_prog_cc_g=yes
dd184caf 3639fi
dd184caf 3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641fi
dd184caf 3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3643fi
dd184caf 3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3646fi
b0322a85 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3648$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3649if test "$ac_test_CFLAGS" = set; then
3650 CFLAGS=$ac_save_CFLAGS
3651elif test $ac_cv_prog_cc_g = yes; then
3652 if test "$GCC" = yes; then
3653 CFLAGS="-g -O2"
3654 else
3655 CFLAGS="-g"
3656 fi
3657else
3658 if test "$GCC" = yes; then
3659 CFLAGS="-O2"
3660 else
3661 CFLAGS=
3662 fi
3663fi
b0322a85 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3665$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3666if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3667 $as_echo_n "(cached) " >&6
d9898ee8 3668else
dd184caf 3669 ac_cv_prog_cc_c89=no
d9898ee8 3670ac_save_CC=$CC
b0322a85 3671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3672/* end confdefs.h. */
3673#include <stdarg.h>
3674#include <stdio.h>
b0322a85 3675struct stat;
d9898ee8 3676/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3677struct buf { int x; };
3678FILE * (*rcsopen) (struct buf *, struct stat *, int);
3679static char *e (p, i)
3680 char **p;
3681 int i;
3682{
3683 return p[i];
3684}
3685static char *f (char * (*g) (char **, int), char **p, ...)
3686{
3687 char *s;
3688 va_list v;
3689 va_start (v,p);
3690 s = g (p, va_arg (v,int));
3691 va_end (v);
3692 return s;
3693}
3694
3695/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3696 function prototypes and stuff, but not '\xHH' hex character constants.
3697 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3698 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3700 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3701 that's true only with -std. */
d9898ee8 3702int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3703
dd184caf 3704/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3705 inside strings and character constants. */
3706#define FOO(x) 'x'
3707int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3708
d9898ee8 3709int test (int i, double x);
3710struct s1 {int (*f) (int a);};
3711struct s2 {int (*f) (double a);};
3712int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3713int argc;
3714char **argv;
3715int
3716main ()
3717{
3718return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3719 ;
3720 return 0;
3721}
3722_ACEOF
dd184caf 3723for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3725do
3726 CC="$ac_save_CC $ac_arg"
b0322a85 3727 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3728 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3729fi
dd184caf 3730rm -f core conftest.err conftest.$ac_objext
3731 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3732done
dd184caf 3733rm -f conftest.$ac_ext
d9898ee8 3734CC=$ac_save_CC
3735
3736fi
dd184caf 3737# AC_CACHE_VAL
3738case "x$ac_cv_prog_cc_c89" in
3739 x)
b0322a85 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3741$as_echo "none needed" >&6; } ;;
dd184caf 3742 xno)
b0322a85 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3744$as_echo "unsupported" >&6; } ;;
d9898ee8 3745 *)
dd184caf 3746 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3748$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3749esac
b0322a85 3750if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3751
b0322a85 3752fi
d9898ee8 3753
d9898ee8 3754ac_ext=c
3755ac_cpp='$CPP $CPPFLAGS'
3756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759DEPDIR="${am__leading_dot}deps"
3760
dd184caf 3761ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3762
3763
3764am_make=${MAKE-make}
3765cat > confinc << 'END'
3766am__doit:
8d138742 3767 @echo this is the am__doit target
d9898ee8 3768.PHONY: am__doit
3769END
3770# If we don't find an include directive, just comment out the code.
b0322a85 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742 3772$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3773am__include="#"
3774am__quote=
3775_am_result=none
3776# First try GNU make style include.
3777echo "include confinc" > confmf
b0322a85 3778# Ignore all kinds of additional output from 'make'.
8d138742
CE
3779case `$am_make -s -f confmf 2> /dev/null` in #(
3780*the\ am__doit\ target*)
3781 am__include=include
3782 am__quote=
3783 _am_result=GNU
3784 ;;
3785esac
d9898ee8 3786# Now try BSD make style include.
3787if test "$am__include" = "#"; then
3788 echo '.include "confinc"' > confmf
8d138742
CE
3789 case `$am_make -s -f confmf 2> /dev/null` in #(
3790 *the\ am__doit\ target*)
3791 am__include=.include
3792 am__quote="\""
3793 _am_result=BSD
3794 ;;
3795 esac
d9898ee8 3796fi
3797
3798
b0322a85 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742 3800$as_echo "$_am_result" >&6; }
d9898ee8 3801rm -f confinc confmf
3802
dd184caf 3803# Check whether --enable-dependency-tracking was given.
b0322a85 3804if test "${enable_dependency_tracking+set}" = set; then :
dd184caf 3805 enableval=$enable_dependency_tracking;
3806fi
d9898ee8 3807
d9898ee8 3808if test "x$enable_dependency_tracking" != xno; then
3809 am_depcomp="$ac_aux_dir/depcomp"
3810 AMDEPBACKSLASH='\'
b0322a85 3811 am__nodep='_no'
d9898ee8 3812fi
dd184caf 3813 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3814 AMDEP_TRUE=
3815 AMDEP_FALSE='#'
3816else
3817 AMDEP_TRUE='#'
3818 AMDEP_FALSE=
3819fi
3820
3821
3822
d9898ee8 3823depcc="$CC" am_compiler_list=
3824
b0322a85 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3826$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3827if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3828 $as_echo_n "(cached) " >&6
d9898ee8 3829else
3830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3831 # We make a subdir and do the tests there. Otherwise we can end up
3832 # making bogus files that we don't know about and never remove. For
3833 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3834 # making a dummy file named 'D' -- because '-MD' means "put the output
3835 # in D".
3836 rm -rf conftest.dir
d9898ee8 3837 mkdir conftest.dir
3838 # Copy depcomp to subdir because otherwise we won't find it if we're
3839 # using a relative directory.
3840 cp "$am_depcomp" conftest.dir
3841 cd conftest.dir
3842 # We will build objects and dependencies in a subdirectory because
3843 # it helps to detect inapplicable dependency modes. For instance
3844 # both Tru64's cc and ICC support -MD to output dependencies as a
3845 # side effect of compilation, but ICC will put the dependencies in
3846 # the current directory while Tru64 will put them in the object
3847 # directory.
3848 mkdir sub
3849
3850 am_cv_CC_dependencies_compiler_type=none
3851 if test "$am_compiler_list" = ""; then
3852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3853 fi
8d138742
CE
3854 am__universal=false
3855 case " $depcc " in #(
3856 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3857 esac
3858
d9898ee8 3859 for depmode in $am_compiler_list; do
3860 # Setup a source with many dependencies, because some compilers
3861 # like to wrap large dependency lists on column 80 (with \), and
3862 # we should not choose a depcomp mode which is confused by this.
3863 #
3864 # We need to recreate these files for each test, as the compiler may
3865 # overwrite some of them when testing with obscure command lines.
3866 # This happens at least with the AIX C compiler.
3867 : > sub/conftest.c
3868 for i in 1 2 3 4 5 6; do
3869 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
3870 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3871 # Solaris 10 /bin/sh.
3872 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 3873 done
3874 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3875
b0322a85 3876 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 3877 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
3878 # handle '-M -o', and we need to detect this. Also, some Intel
3879 # versions had trouble with output in subdirs.
8d138742
CE
3880 am__obj=sub/conftest.${OBJEXT-o}
3881 am__minus_obj="-o $am__obj"
d9898ee8 3882 case $depmode in
8d138742
CE
3883 gcc)
3884 # This depmode causes a compiler race in universal mode.
3885 test "$am__universal" = false || continue
3886 ;;
d9898ee8 3887 nosideeffect)
b0322a85
CE
3888 # After this tag, mechanisms are not by side-effect, so they'll
3889 # only be used when explicitly requested.
d9898ee8 3890 if test "x$enable_dependency_tracking" = xyes; then
3891 continue
3892 else
3893 break
3894 fi
3895 ;;
b0322a85
CE
3896 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3897 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
3898 # not run yet. These depmodes are late enough in the game, and
3899 # so weak that their functioning should not be impacted.
3900 am__obj=conftest.${OBJEXT-o}
3901 am__minus_obj=
3902 ;;
d9898ee8 3903 none) break ;;
3904 esac
d9898ee8 3905 if depmode=$depmode \
8d138742 3906 source=sub/conftest.c object=$am__obj \
d9898ee8 3907 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3908 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3909 >/dev/null 2>conftest.err &&
dd184caf 3910 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3911 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3912 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3913 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3914 # icc doesn't choke on unknown options, it will just issue warnings
3915 # or remarks (even with -Werror). So we grep stderr for any message
3916 # that says an option was ignored or not supported.
3917 # When given -MP, icc 7.0 and 7.1 complain thusly:
3918 # icc: Command line warning: ignoring option '-M'; no argument required
3919 # The diagnosis changed in icc 8.0:
3920 # icc: Command line remark: option '-MP' not supported
3921 if (grep 'ignoring option' conftest.err ||
3922 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3923 am_cv_CC_dependencies_compiler_type=$depmode
3924 break
3925 fi
3926 fi
3927 done
3928
3929 cd ..
3930 rm -rf conftest.dir
3931else
3932 am_cv_CC_dependencies_compiler_type=none
3933fi
3934
3935fi
b0322a85 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 3937$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3938CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3939
dd184caf 3940 if
d9898ee8 3941 test "x$enable_dependency_tracking" != xno \
3942 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3943 am__fastdepCC_TRUE=
3944 am__fastdepCC_FALSE='#'
3945else
b0322a85
CE
3946 am__fastdepCC_TRUE='#'
3947 am__fastdepCC_FALSE=
3948fi
3949
3950
3951
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3953$as_echo_n "checking whether ln -s works... " >&6; }
3954LN_S=$as_ln_s
3955if test "$LN_S" = "ln -s"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3957$as_echo "yes" >&6; }
3958else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3960$as_echo "no, using $LN_S" >&6; }
d9898ee8 3961fi
3962
8d138742
CE
3963case `pwd` in
3964 *\ * | *\ *)
b0322a85 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8d138742
CE
3966$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3967esac
3968
3969
3970
b0322a85
CE
3971macro_version='2.4.2'
3972macro_revision='1.3337'
8d138742
CE
3973
3974
3975
3976
d9898ee8 3977
dd184caf 3978
d9898ee8 3979
dd184caf 3980
dd184caf 3981
d9898ee8 3982
8d138742
CE
3983
3984
3985
3986ltmain="$ac_aux_dir/ltmain.sh"
3987
d9898ee8 3988# Make sure we can run config.sub.
dd184caf 3989$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
b0322a85 3990 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d9898ee8 3991
b0322a85 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8d138742 3993$as_echo_n "checking build system type... " >&6; }
b0322a85 3994if ${ac_cv_build+:} false; then :
8d138742 3995 $as_echo_n "(cached) " >&6
d9898ee8 3996else
dd184caf 3997 ac_build_alias=$build_alias
3998test "x$ac_build_alias" = x &&
3999 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4000test "x$ac_build_alias" = x &&
b0322a85 4001 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
dd184caf 4002ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
b0322a85 4003 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d9898ee8 4004
4005fi
b0322a85 4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8d138742 4007$as_echo "$ac_cv_build" >&6; }
dd184caf 4008case $ac_cv_build in
4009*-*-*) ;;
b0322a85 4010*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
dd184caf 4011esac
d9898ee8 4012build=$ac_cv_build
dd184caf 4013ac_save_IFS=$IFS; IFS='-'
4014set x $ac_cv_build
4015shift
4016build_cpu=$1
4017build_vendor=$2
4018shift; shift
4019# Remember, the first character of IFS is used to create $*,
4020# except with old shells:
4021build_os=$*
4022IFS=$ac_save_IFS
4023case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4024
4025
b0322a85 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8d138742 4027$as_echo_n "checking host system type... " >&6; }
b0322a85 4028if ${ac_cv_host+:} false; then :
8d138742 4029 $as_echo_n "(cached) " >&6
d9898ee8 4030else
dd184caf 4031 if test "x$host_alias" = x; then
4032 ac_cv_host=$ac_cv_build
4033else
4034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b0322a85 4035 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
dd184caf 4036fi
d9898ee8 4037
4038fi
b0322a85 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8d138742 4040$as_echo "$ac_cv_host" >&6; }
dd184caf 4041case $ac_cv_host in
4042*-*-*) ;;
b0322a85 4043*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
dd184caf 4044esac
d9898ee8 4045host=$ac_cv_host
dd184caf 4046ac_save_IFS=$IFS; IFS='-'
4047set x $ac_cv_host
4048shift
4049host_cpu=$1
4050host_vendor=$2
4051shift; shift
4052# Remember, the first character of IFS is used to create $*,
4053# except with old shells:
4054host_os=$*
4055IFS=$ac_save_IFS
4056case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4057
4058
b0322a85
CE
4059# Backslashify metacharacters that are still active within
4060# double-quoted strings.
4061sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4062
4063# Same as above, but do not quote variable references.
4064double_quote_subst='s/\(["`\\]\)/\\\1/g'
4065
4066# Sed substitution to delay expansion of an escaped shell variable in a
4067# double_quote_subst'ed string.
4068delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4069
4070# Sed substitution to delay expansion of an escaped single quote.
4071delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4072
4073# Sed substitution to avoid accidental globbing in evaled expressions
4074no_glob_subst='s/\*/\\\*/g'
4075
4076ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4077ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4078ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4079
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4081$as_echo_n "checking how to print strings... " >&6; }
4082# Test print first, because it will be a builtin if present.
4083if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4084 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4085 ECHO='print -r --'
4086elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4087 ECHO='printf %s\n'
4088else
4089 # Use this function as a fallback that always works.
4090 func_fallback_echo ()
4091 {
4092 eval 'cat <<_LTECHO_EOF
4093$1
4094_LTECHO_EOF'
4095 }
4096 ECHO='func_fallback_echo'
4097fi
4098
4099# func_echo_all arg...
4100# Invoke $ECHO with all args, space-separated.
4101func_echo_all ()
4102{
4103 $ECHO ""
4104}
4105
4106case "$ECHO" in
4107 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4108$as_echo "printf" >&6; } ;;
4109 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4110$as_echo "print -r" >&6; } ;;
4111 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4112$as_echo "cat" >&6; } ;;
4113esac
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8d138742 4129$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b0322a85 4130if ${ac_cv_path_SED+:} false; then :
8d138742
CE
4131 $as_echo_n "(cached) " >&6
4132else
4133 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4134 for ac_i in 1 2 3 4 5 6 7; do
4135 ac_script="$ac_script$as_nl$ac_script"
4136 done
4137 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
b0322a85 4138 { ac_script=; unset ac_script;}
8d138742
CE
4139 if test -z "$SED"; then
4140 ac_path_SED_found=false
4141 # Loop through the user's path and test for each of PROGNAME-LIST
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4143for as_dir in $PATH
4144do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
b0322a85 4147 for ac_prog in sed gsed; do
d9898ee8 4148 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742 4149 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4150 as_fn_executable_p "$ac_path_SED" || continue
8d138742
CE
4151# Check for GNU ac_path_SED and select it if it is found.
4152 # Check for GNU $ac_path_SED
4153case `"$ac_path_SED" --version 2>&1` in
4154*GNU*)
4155 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4156*)
4157 ac_count=0
4158 $as_echo_n 0123456789 >"conftest.in"
4159 while :
4160 do
4161 cat "conftest.in" "conftest.in" >"conftest.tmp"
4162 mv "conftest.tmp" "conftest.in"
4163 cp "conftest.in" "conftest.nl"
4164 $as_echo '' >> "conftest.nl"
4165 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4167 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4168 if test $ac_count -gt ${ac_path_SED_max-0}; then
4169 # Best one so far, save it but keep looking for a better one
4170 ac_cv_path_SED="$ac_path_SED"
4171 ac_path_SED_max=$ac_count
4172 fi
4173 # 10*(2^10) chars as input seems more than enough
4174 test $ac_count -gt 10 && break
4175 done
4176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4177esac
4178
4179 $ac_path_SED_found && break 3
d9898ee8 4180 done
4181 done
b0322a85 4182 done
d9898ee8 4183IFS=$as_save_IFS
8d138742 4184 if test -z "$ac_cv_path_SED"; then
b0322a85 4185 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
d9898ee8 4186 fi
8d138742
CE
4187else
4188 ac_cv_path_SED=$SED
4189fi
d9898ee8 4190
4191fi
b0322a85 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8d138742
CE
4193$as_echo "$ac_cv_path_SED" >&6; }
4194 SED="$ac_cv_path_SED"
4195 rm -f conftest.sed
4196
4197test -z "$SED" && SED=sed
4198Xsed="$SED -e 1s/^X//"
d9898ee8 4199
d9898ee8 4200
dd184caf 4201
8d138742
CE
4202
4203
4204
4205
4206
4207
4208
4209
b0322a85 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 4211$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 4212if ${ac_cv_path_GREP+:} false; then :
8d138742 4213 $as_echo_n "(cached) " >&6
dd184caf 4214else
8d138742 4215 if test -z "$GREP"; then
dd184caf 4216 ac_path_GREP_found=false
8d138742
CE
4217 # Loop through the user's path and test for each of PROGNAME-LIST
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4219for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
b0322a85 4223 for ac_prog in grep ggrep; do
8d138742
CE
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4226 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 4227# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4228 # Check for GNU $ac_path_GREP
4229case `"$ac_path_GREP" --version 2>&1` in
4230*GNU*)
4231 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4232*)
4233 ac_count=0
8d138742 4234 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4235 while :
4236 do
4237 cat "conftest.in" "conftest.in" >"conftest.tmp"
4238 mv "conftest.tmp" "conftest.in"
4239 cp "conftest.in" "conftest.nl"
8d138742 4240 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4241 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4243 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4244 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4245 # Best one so far, save it but keep looking for a better one
4246 ac_cv_path_GREP="$ac_path_GREP"
4247 ac_path_GREP_max=$ac_count
4248 fi
4249 # 10*(2^10) chars as input seems more than enough
4250 test $ac_count -gt 10 && break
4251 done
4252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4253esac
4254
8d138742
CE
4255 $ac_path_GREP_found && break 3
4256 done
dd184caf 4257 done
b0322a85 4258 done
dd184caf 4259IFS=$as_save_IFS
8d138742 4260 if test -z "$ac_cv_path_GREP"; then
b0322a85 4261 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4262 fi
dd184caf 4263else
4264 ac_cv_path_GREP=$GREP
4265fi
4266
dd184caf 4267fi
b0322a85 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4269$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4270 GREP="$ac_cv_path_GREP"
4271
d9898ee8 4272
b0322a85 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4274$as_echo_n "checking for egrep... " >&6; }
b0322a85 4275if ${ac_cv_path_EGREP+:} false; then :
8d138742 4276 $as_echo_n "(cached) " >&6
dd184caf 4277else
4278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4279 then ac_cv_path_EGREP="$GREP -E"
4280 else
8d138742 4281 if test -z "$EGREP"; then
dd184caf 4282 ac_path_EGREP_found=false
8d138742
CE
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4285for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
b0322a85 4289 for ac_prog in egrep; do
8d138742
CE
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4292 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4293# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4294 # Check for GNU $ac_path_EGREP
4295case `"$ac_path_EGREP" --version 2>&1` in
4296*GNU*)
4297 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4298*)
4299 ac_count=0
8d138742 4300 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4301 while :
4302 do
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
8d138742 4306 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4309 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_EGREP="$ac_path_EGREP"
4313 ac_path_EGREP_max=$ac_count
d9898ee8 4314 fi
dd184caf 4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4317 done
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319esac
4320
8d138742
CE
4321 $ac_path_EGREP_found && break 3
4322 done
dd184caf 4323 done
b0322a85 4324 done
dd184caf 4325IFS=$as_save_IFS
8d138742 4326 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4327 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4328 fi
4329else
4330 ac_cv_path_EGREP=$EGREP
dd184caf 4331fi
4332
8d138742 4333 fi
dd184caf 4334fi
b0322a85 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742
CE
4336$as_echo "$ac_cv_path_EGREP" >&6; }
4337 EGREP="$ac_cv_path_EGREP"
dd184caf 4338
8d138742 4339
b0322a85 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8d138742 4341$as_echo_n "checking for fgrep... " >&6; }
b0322a85 4342if ${ac_cv_path_FGREP+:} false; then :
8d138742 4343 $as_echo_n "(cached) " >&6
dd184caf 4344else
8d138742
CE
4345 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4346 then ac_cv_path_FGREP="$GREP -F"
4347 else
4348 if test -z "$FGREP"; then
4349 ac_path_FGREP_found=false
4350 # Loop through the user's path and test for each of PROGNAME-LIST
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4353do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
b0322a85 4356 for ac_prog in fgrep; do
8d138742
CE
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4359 as_fn_executable_p "$ac_path_FGREP" || continue
8d138742
CE
4360# Check for GNU ac_path_FGREP and select it if it is found.
4361 # Check for GNU $ac_path_FGREP
4362case `"$ac_path_FGREP" --version 2>&1` in
4363*GNU*)
4364 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4365*)
4366 ac_count=0
4367 $as_echo_n 0123456789 >"conftest.in"
4368 while :
4369 do
4370 cat "conftest.in" "conftest.in" >"conftest.tmp"
4371 mv "conftest.tmp" "conftest.in"
4372 cp "conftest.in" "conftest.nl"
4373 $as_echo 'FGREP' >> "conftest.nl"
4374 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4376 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4377 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4378 # Best one so far, save it but keep looking for a better one
4379 ac_cv_path_FGREP="$ac_path_FGREP"
4380 ac_path_FGREP_max=$ac_count
4381 fi
4382 # 10*(2^10) chars as input seems more than enough
4383 test $ac_count -gt 10 && break
4384 done
4385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4386esac
dd184caf 4387
8d138742
CE
4388 $ac_path_FGREP_found && break 3
4389 done
4390 done
b0322a85 4391 done
8d138742
CE
4392IFS=$as_save_IFS
4393 if test -z "$ac_cv_path_FGREP"; then
b0322a85 4394 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4395 fi
4396else
4397 ac_cv_path_FGREP=$FGREP
4398fi
dd184caf 4399
4400 fi
d9898ee8 4401fi
b0322a85 4402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8d138742
CE
4403$as_echo "$ac_cv_path_FGREP" >&6; }
4404 FGREP="$ac_cv_path_FGREP"
4405
4406
4407test -z "$GREP" && GREP=grep
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
d9898ee8 4424
4425
4426
dd184caf 4427# Check whether --with-gnu-ld was given.
b0322a85 4428if test "${with_gnu_ld+set}" = set; then :
dd184caf 4429 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4430else
4431 with_gnu_ld=no
dd184caf 4432fi
4433
d9898ee8 4434ac_prog=ld
4435if test "$GCC" = yes; then
4436 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742 4438$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4439 case $host in
4440 *-*-mingw*)
4441 # gcc leaves a trailing carriage return which upsets mingw
4442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4443 *)
4444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4445 esac
4446 case $ac_prog in
4447 # Accept absolute paths.
4448 [\\/]* | ?:[\\/]*)
4449 re_direlt='/[^/][^/]*/\.\./'
4450 # Canonicalize the pathname of ld
8d138742
CE
4451 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4452 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4453 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4454 done
4455 test -z "$LD" && LD="$ac_prog"
4456 ;;
4457 "")
4458 # If it fails, then pretend we aren't using GCC.
4459 ac_prog=ld
4460 ;;
4461 *)
4462 # If it is relative, then search for the first ld in PATH.
4463 with_gnu_ld=unknown
4464 ;;
4465 esac
4466elif test "$with_gnu_ld" = yes; then
b0322a85 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742 4468$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4469else
b0322a85 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742 4471$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4472fi
b0322a85 4473if ${lt_cv_path_LD+:} false; then :
8d138742 4474 $as_echo_n "(cached) " >&6
d9898ee8 4475else
4476 if test -z "$LD"; then
4477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4478 for ac_dir in $PATH; do
4479 IFS="$lt_save_ifs"
4480 test -z "$ac_dir" && ac_dir=.
4481 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4482 lt_cv_path_LD="$ac_dir/$ac_prog"
4483 # Check to see if the program is GNU ld. I'd rather use --version,
4484 # but apparently some variants of GNU ld only accept -v.
4485 # Break only if it was the GNU/non-GNU ld that we prefer.
4486 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4487 *GNU* | *'with BFD'*)
4488 test "$with_gnu_ld" != no && break
4489 ;;
4490 *)
4491 test "$with_gnu_ld" != yes && break
4492 ;;
4493 esac
4494 fi
4495 done
4496 IFS="$lt_save_ifs"
4497else
4498 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4499fi
4500fi
4501
4502LD="$lt_cv_path_LD"
4503if test -n "$LD"; then
b0322a85 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742 4505$as_echo "$LD" >&6; }
d9898ee8 4506else
b0322a85 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4508$as_echo "no" >&6; }
d9898ee8 4509fi
b0322a85
CE
4510test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 4512$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 4513if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742 4514 $as_echo_n "(cached) " >&6
d9898ee8 4515else
4516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4517case `$LD -v 2>&1 </dev/null` in
4518*GNU* | *'with BFD'*)
4519 lt_cv_prog_gnu_ld=yes
4520 ;;
4521*)
4522 lt_cv_prog_gnu_ld=no
4523 ;;
4524esac
4525fi
b0322a85 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742 4527$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4528with_gnu_ld=$lt_cv_prog_gnu_ld
4529
4530
d9898ee8 4531
8d138742
CE
4532
4533
4534
4535
4536
4537
b0322a85 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 4539$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 4540if ${lt_cv_path_NM+:} false; then :
8d138742 4541 $as_echo_n "(cached) " >&6
d9898ee8 4542else
4543 if test -n "$NM"; then
4544 # Let the user override the test.
4545 lt_cv_path_NM="$NM"
4546else
4547 lt_nm_to_check="${ac_tool_prefix}nm"
4548 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4549 lt_nm_to_check="$lt_nm_to_check nm"
4550 fi
4551 for lt_tmp_nm in $lt_nm_to_check; do
4552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4553 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4554 IFS="$lt_save_ifs"
4555 test -z "$ac_dir" && ac_dir=.
4556 tmp_nm="$ac_dir/$lt_tmp_nm"
4557 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4558 # Check to see if the nm accepts a BSD-compat flag.
4559 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4560 # nm: unknown option "B" ignored
4561 # Tru64's nm complains that /dev/null is an invalid object file
4562 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4563 */dev/null* | *'Invalid file or object type'*)
4564 lt_cv_path_NM="$tmp_nm -B"
4565 break
4566 ;;
4567 *)
4568 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4569 */dev/null*)
4570 lt_cv_path_NM="$tmp_nm -p"
4571 break
4572 ;;
4573 *)
4574 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4575 continue # so that we can try to find one that supports BSD flags
4576 ;;
4577 esac
4578 ;;
4579 esac
4580 fi
4581 done
4582 IFS="$lt_save_ifs"
4583 done
8d138742 4584 : ${lt_cv_path_NM=no}
d9898ee8 4585fi
4586fi
b0322a85 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742
CE
4588$as_echo "$lt_cv_path_NM" >&6; }
4589if test "$lt_cv_path_NM" != "no"; then
4590 NM="$lt_cv_path_NM"
d9898ee8 4591else
8d138742 4592 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
4593 if test -n "$DUMPBIN"; then :
4594 # Let the user override the test.
4595 else
4596 if test -n "$ac_tool_prefix"; then
4597 for ac_prog in dumpbin "link -dump"
8d138742
CE
4598 do
4599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4602$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4603if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
4604 $as_echo_n "(cached) " >&6
4605else
4606 if test -n "$DUMPBIN"; then
4607 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
b0322a85
CE
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4616 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4618 break 2
4619 fi
4620done
b0322a85 4621 done
8d138742 4622IFS=$as_save_IFS
d9898ee8 4623
8d138742
CE
4624fi
4625fi
4626DUMPBIN=$ac_cv_prog_DUMPBIN
4627if test -n "$DUMPBIN"; then
b0322a85 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742
CE
4629$as_echo "$DUMPBIN" >&6; }
4630else
b0322a85 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4632$as_echo "no" >&6; }
4633fi
d9898ee8 4634
d9898ee8 4635
8d138742
CE
4636 test -n "$DUMPBIN" && break
4637 done
4638fi
4639if test -z "$DUMPBIN"; then
4640 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 4641 for ac_prog in dumpbin "link -dump"
8d138742
CE
4642do
4643 # Extract the first word of "$ac_prog", so it can be a program name with args.
4644set dummy $ac_prog; ac_word=$2
b0322a85 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4646$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4647if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742
CE
4648 $as_echo_n "(cached) " >&6
4649else
4650 if test -n "$ac_ct_DUMPBIN"; then
4651 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
b0322a85
CE
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4660 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 4662 break 2
ac40fd9e 4663 fi
8d138742 4664done
b0322a85 4665 done
8d138742 4666IFS=$as_save_IFS
d9898ee8 4667
8d138742
CE
4668fi
4669fi
4670ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4671if test -n "$ac_ct_DUMPBIN"; then
b0322a85 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
4673$as_echo "$ac_ct_DUMPBIN" >&6; }
4674else
b0322a85 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4676$as_echo "no" >&6; }
4677fi
d9898ee8 4678
8d138742
CE
4679
4680 test -n "$ac_ct_DUMPBIN" && break
4681done
4682
4683 if test "x$ac_ct_DUMPBIN" = x; then
4684 DUMPBIN=":"
d9898ee8 4685 else
8d138742
CE
4686 case $cross_compiling:$ac_tool_warned in
4687yes:)
b0322a85 4688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690ac_tool_warned=yes ;;
4691esac
4692 DUMPBIN=$ac_ct_DUMPBIN
d9898ee8 4693 fi
8d138742 4694fi
d9898ee8 4695
b0322a85
CE
4696 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4697 *COFF*)
4698 DUMPBIN="$DUMPBIN -symbols"
4699 ;;
4700 *)
4701 DUMPBIN=:
4702 ;;
4703 esac
4704 fi
d9898ee8 4705
8d138742
CE
4706 if test "$DUMPBIN" != ":"; then
4707 NM="$DUMPBIN"
4708 fi
4709fi
4710test -z "$NM" && NM=nm
d9898ee8 4711
d9898ee8 4712
d9898ee8 4713
d9898ee8 4714
d9898ee8 4715
d9898ee8 4716
b0322a85 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 4718$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 4719if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
4720 $as_echo_n "(cached) " >&6
4721else
4722 lt_cv_nm_interface="BSD nm"
4723 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 4724 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
4725 (eval "$ac_compile" 2>conftest.err)
4726 cat conftest.err >&5
b0322a85 4727 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
4728 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4729 cat conftest.err >&5
b0322a85 4730 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
4731 cat conftest.out >&5
4732 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4733 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4734 fi
8d138742
CE
4735 rm -f conftest*
4736fi
b0322a85 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742 4738$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4739
8d138742 4740# find the maximum length of command line arguments
b0322a85 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 4742$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 4743if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
4744 $as_echo_n "(cached) " >&6
4745else
4746 i=0
4747 teststring="ABCD"
d9898ee8 4748
8d138742
CE
4749 case $build_os in
4750 msdosdjgpp*)
4751 # On DJGPP, this test can blow up pretty badly due to problems in libc
4752 # (any single argument exceeding 2000 bytes causes a buffer overrun
4753 # during glob expansion). Even if it were fixed, the result of this
4754 # check would be larger than it should be.
4755 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4756 ;;
ac40fd9e 4757
8d138742
CE
4758 gnu*)
4759 # Under GNU Hurd, this test is not required because there is
4760 # no limit to the length of command line arguments.
4761 # Libtool will interpret -1 as no limit whatsoever
4762 lt_cv_sys_max_cmd_len=-1;
4763 ;;
d9898ee8 4764
8d138742
CE
4765 cygwin* | mingw* | cegcc*)
4766 # On Win9x/ME, this test blows up -- it succeeds, but takes
4767 # about 5 minutes as the teststring grows exponentially.
4768 # Worse, since 9x/ME are not pre-emptively multitasking,
4769 # you end up with a "frozen" computer, even though with patience
4770 # the test eventually succeeds (with a max line length of 256k).
4771 # Instead, let's just punt: use the minimum linelength reported by
4772 # all of the supported platforms: 8192 (on NT/2K/XP).
4773 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4774 ;;
8d138742 4775
b0322a85
CE
4776 mint*)
4777 # On MiNT this can take a long time and run out of memory.
4778 lt_cv_sys_max_cmd_len=8192;
4779 ;;
4780
8d138742
CE
4781 amigaos*)
4782 # On AmigaOS with pdksh, this test takes hours, literally.
4783 # So we just punt and use a minimum line length of 8192.
4784 lt_cv_sys_max_cmd_len=8192;
d9898ee8 4785 ;;
8d138742
CE
4786
4787 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4788 # This has been around since 386BSD, at least. Likely further.
4789 if test -x /sbin/sysctl; then
4790 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4791 elif test -x /usr/sbin/sysctl; then
4792 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4793 else
4794 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4795 fi
4796 # And add a safety zone
4797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4799 ;;
8d138742
CE
4800
4801 interix*)
4802 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4803 lt_cv_sys_max_cmd_len=196608
d9898ee8 4804 ;;
8d138742 4805
b0322a85
CE
4806 os2*)
4807 # The test takes a long time on OS/2.
4808 lt_cv_sys_max_cmd_len=8192
4809 ;;
4810
8d138742
CE
4811 osf*)
4812 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4813 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4814 # nice to cause kernel panics so lets avoid the loop below.
4815 # First set a reasonable default.
4816 lt_cv_sys_max_cmd_len=16384
4817 #
4818 if test -x /sbin/sysconfig; then
4819 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4820 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4821 esac
4822 fi
d9898ee8 4823 ;;
8d138742
CE
4824 sco3.2v5*)
4825 lt_cv_sys_max_cmd_len=102400
4826 ;;
4827 sysv5* | sco5v6* | sysv4.2uw2*)
4828 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4829 if test -n "$kargmax"; then
4830 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4831 else
4832 lt_cv_sys_max_cmd_len=32768
4833 fi
4834 ;;
4835 *)
4836 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4837 if test -n "$lt_cv_sys_max_cmd_len"; then
4838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4840 else
4841 # Make teststring a little bigger before we do anything with it.
4842 # a 1K string should be a reasonable start.
4843 for i in 1 2 3 4 5 6 7 8 ; do
4844 teststring=$teststring$teststring
4845 done
4846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4847 # If test is not a shell built-in, we'll probably end up computing a
4848 # maximum length that is only half of the actual maximum length, but
4849 # we can't tell.
b0322a85
CE
4850 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4851 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8d138742
CE
4852 test $i != 17 # 1/2 MB should be enough
4853 do
4854 i=`expr $i + 1`
4855 teststring=$teststring$teststring
4856 done
4857 # Only check the string length outside the loop.
4858 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4859 teststring=
4860 # Add a significant safety factor because C++ compilers can tack on
4861 # massive amounts of additional arguments before passing them to the
4862 # linker. It appears as though 1/2 is a usable value.
4863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4864 fi
d9898ee8 4865 ;;
4866 esac
d9898ee8 4867
8d138742 4868fi
d9898ee8 4869
8d138742 4870if test -n $lt_cv_sys_max_cmd_len ; then
b0322a85 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
4872$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4873else
b0322a85 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742 4875$as_echo "none" >&6; }
d9898ee8 4876fi
8d138742 4877max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4878
4879
4880
4881
d9898ee8 4882
d9898ee8 4883
8d138742
CE
4884: ${CP="cp -f"}
4885: ${MV="mv -f"}
4886: ${RM="rm -f"}
d9898ee8 4887
b0322a85 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8d138742
CE
4889$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4890# Try some XSI features
4891xsi_shell=no
4892( _lt_dummy="a/b/c"
b0322a85
CE
4893 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4894 = c,a/b,b/c, \
8d138742
CE
4895 && eval 'test $(( 1 + 1 )) -eq 2 \
4896 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4897 && xsi_shell=yes
b0322a85 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8d138742 4899$as_echo "$xsi_shell" >&6; }
d9898ee8 4900
d9898ee8 4901
b0322a85 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8d138742
CE
4903$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4904lt_shell_append=no
4905( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4906 >/dev/null 2>&1 \
4907 && lt_shell_append=yes
b0322a85 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8d138742 4909$as_echo "$lt_shell_append" >&6; }
d9898ee8 4910
d9898ee8 4911
8d138742
CE
4912if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4913 lt_unset=unset
d9898ee8 4914else
8d138742
CE
4915 lt_unset=false
4916fi
d9898ee8 4917
d9898ee8 4918
d9898ee8 4919
dd184caf 4920
d9898ee8 4921
8d138742
CE
4922# test EBCDIC or ASCII
4923case `echo X|tr X '\101'` in
4924 A) # ASCII based system
4925 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4926 lt_SP2NL='tr \040 \012'
4927 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4928 ;;
8d138742
CE
4929 *) # EBCDIC based system
4930 lt_SP2NL='tr \100 \n'
4931 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4932 ;;
8d138742 4933esac
d9898ee8 4934
4935
d9898ee8 4936
d9898ee8 4937
4938
8d138742
CE
4939
4940
4941
4942
b0322a85
CE
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4944$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4945if ${lt_cv_to_host_file_cmd+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947else
4948 case $host in
4949 *-*-mingw* )
4950 case $build in
4951 *-*-mingw* ) # actually msys
4952 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4953 ;;
4954 *-*-cygwin* )
4955 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4956 ;;
4957 * ) # otherwise, assume *nix
4958 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4959 ;;
4960 esac
4961 ;;
4962 *-*-cygwin* )
4963 case $build in
4964 *-*-mingw* ) # actually msys
4965 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4966 ;;
4967 *-*-cygwin* )
4968 lt_cv_to_host_file_cmd=func_convert_file_noop
4969 ;;
4970 * ) # otherwise, assume *nix
4971 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4972 ;;
4973 esac
4974 ;;
4975 * ) # unhandled hosts (and "normal" native builds)
4976 lt_cv_to_host_file_cmd=func_convert_file_noop
4977 ;;
4978esac
4979
4980fi
4981
4982to_host_file_cmd=$lt_cv_to_host_file_cmd
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4984$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4985
4986
4987
4988
4989
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4991$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4992if ${lt_cv_to_tool_file_cmd+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994else
4995 #assume ordinary cross tools, or native build.
4996lt_cv_to_tool_file_cmd=func_convert_file_noop
4997case $host in
4998 *-*-mingw* )
4999 case $build in
5000 *-*-mingw* ) # actually msys
5001 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5002 ;;
5003 esac
5004 ;;
5005esac
5006
5007fi
5008
5009to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5011$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5012
5013
5014
5015
5016
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8d138742 5018$as_echo_n "checking for $LD option to reload object files... " >&6; }
b0322a85 5019if ${lt_cv_ld_reload_flag+:} false; then :
8d138742 5020 $as_echo_n "(cached) " >&6
d9898ee8 5021else
8d138742
CE
5022 lt_cv_ld_reload_flag='-r'
5023fi
b0322a85 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8d138742
CE
5025$as_echo "$lt_cv_ld_reload_flag" >&6; }
5026reload_flag=$lt_cv_ld_reload_flag
5027case $reload_flag in
5028"" | " "*) ;;
5029*) reload_flag=" $reload_flag" ;;
5030esac
5031reload_cmds='$LD$reload_flag -o $output$reload_objs'
5032case $host_os in
b0322a85
CE
5033 cygwin* | mingw* | pw32* | cegcc*)
5034 if test "$GCC" != yes; then
5035 reload_cmds=false
5036 fi
5037 ;;
8d138742
CE
5038 darwin*)
5039 if test "$GCC" = yes; then
5040 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5041 else
5042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5043 fi
5044 ;;
dd184caf 5045esac
d9898ee8 5046
dd184caf 5047
d9898ee8 5048
d9898ee8 5049
dd184caf 5050
d9898ee8 5051
d9898ee8 5052
d9898ee8 5053
8d138742
CE
5054
5055if test -n "$ac_tool_prefix"; then
5056 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5057set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5059$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5060if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 5061 $as_echo_n "(cached) " >&6
d9898ee8 5062else
8d138742
CE
5063 if test -n "$OBJDUMP"; then
5064 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 5065else
8d138742
CE
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
b0322a85
CE
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5073 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5075 break 2
5076 fi
5077done
b0322a85 5078 done
8d138742 5079IFS=$as_save_IFS
d9898ee8 5080
8d138742
CE
5081fi
5082fi
5083OBJDUMP=$ac_cv_prog_OBJDUMP
5084if test -n "$OBJDUMP"; then
b0322a85 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742
CE
5086$as_echo "$OBJDUMP" >&6; }
5087else
b0322a85 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5089$as_echo "no" >&6; }
d9898ee8 5090fi
dd184caf 5091
d9898ee8 5092
8d138742
CE
5093fi
5094if test -z "$ac_cv_prog_OBJDUMP"; then
5095 ac_ct_OBJDUMP=$OBJDUMP
5096 # Extract the first word of "objdump", so it can be a program name with args.
5097set dummy objdump; ac_word=$2
b0322a85 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5099$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5100if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742 5101 $as_echo_n "(cached) " >&6
d9898ee8 5102else
8d138742
CE
5103 if test -n "$ac_ct_OBJDUMP"; then
5104 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
b0322a85
CE
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5113 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5115 break 2
5116 fi
5117done
b0322a85 5118 done
8d138742 5119IFS=$as_save_IFS
d9898ee8 5120
8d138742
CE
5121fi
5122fi
5123ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5124if test -n "$ac_ct_OBJDUMP"; then
b0322a85 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742
CE
5126$as_echo "$ac_ct_OBJDUMP" >&6; }
5127else
b0322a85 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5129$as_echo "no" >&6; }
d9898ee8 5130fi
dd184caf 5131
8d138742
CE
5132 if test "x$ac_ct_OBJDUMP" = x; then
5133 OBJDUMP="false"
5134 else
5135 case $cross_compiling:$ac_tool_warned in
5136yes:)
b0322a85 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5139ac_tool_warned=yes ;;
5140esac
5141 OBJDUMP=$ac_ct_OBJDUMP
5142 fi
d9898ee8 5143else
8d138742 5144 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 5145fi
5146
8d138742 5147test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 5148
5149
d9898ee8 5150
d9898ee8 5151
d9898ee8 5152
dd184caf 5153
d9898ee8 5154
d9898ee8 5155
8d138742 5156
b0322a85 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 5158$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 5159if ${lt_cv_deplibs_check_method+:} false; then :
8d138742 5160 $as_echo_n "(cached) " >&6
d9898ee8 5161else
8d138742
CE
5162 lt_cv_file_magic_cmd='$MAGIC_CMD'
5163lt_cv_file_magic_test_file=
5164lt_cv_deplibs_check_method='unknown'
5165# Need to set the preceding variable on all platforms that support
5166# interlibrary dependencies.
5167# 'none' -- dependencies not supported.
5168# `unknown' -- same as none, but documents that we really don't know.
5169# 'pass_all' -- all dependencies passed with no checks.
5170# 'test_compile' -- check by making test program.
5171# 'file_magic [[regex]]' -- check by looking for files in library path
5172# which responds to the $file_magic_cmd with a given extended regex.
5173# If you have `file' or equivalent on your system and you're not sure
5174# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 5175
8d138742
CE
5176case $host_os in
5177aix[4-9]*)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
d9898ee8 5180
8d138742
CE
5181beos*)
5182 lt_cv_deplibs_check_method=pass_all
5183 ;;
d9898ee8 5184
8d138742
CE
5185bsdi[45]*)
5186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5187 lt_cv_file_magic_cmd='/usr/bin/file -L'
5188 lt_cv_file_magic_test_file=/shlib/libc.so
5189 ;;
d9898ee8 5190
8d138742
CE
5191cygwin*)
5192 # func_win32_libid is a shell function defined in ltmain.sh
5193 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5194 lt_cv_file_magic_cmd='func_win32_libid'
5195 ;;
d9898ee8 5196
8d138742
CE
5197mingw* | pw32*)
5198 # Base MSYS/MinGW do not provide the 'file' command needed by
5199 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5200 # unless we find 'file', for example because we are cross-compiling.
b0322a85
CE
5201 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5202 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8d138742
CE
5203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5204 lt_cv_file_magic_cmd='func_win32_libid'
5205 else
b0322a85
CE
5206 # Keep this pattern in sync with the one in func_win32_libid.
5207 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742
CE
5208 lt_cv_file_magic_cmd='$OBJDUMP -f'
5209 fi
5210 ;;
d9898ee8 5211
b0322a85 5212cegcc*)
8d138742
CE
5213 # use the weaker test based on 'objdump'. See mingw*.
5214 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5215 lt_cv_file_magic_cmd='$OBJDUMP -f'
5216 ;;
d9898ee8 5217
8d138742
CE
5218darwin* | rhapsody*)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
5221
5222freebsd* | dragonfly*)
5223 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5224 case $host_cpu in
5225 i*86 )
5226 # Not sure whether the presence of OpenBSD here was a mistake.
5227 # Let's accept both of them until this is cleared up.
5228 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5229 lt_cv_file_magic_cmd=/usr/bin/file
5230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5231 ;;
5232 esac
5233 else
5234 lt_cv_deplibs_check_method=pass_all
5235 fi
5236 ;;
dd184caf 5237
8d138742
CE
5238gnu*)
5239 lt_cv_deplibs_check_method=pass_all
5240 ;;
dd184caf 5241
b0322a85
CE
5242haiku*)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245
8d138742
CE
5246hpux10.20* | hpux11*)
5247 lt_cv_file_magic_cmd=/usr/bin/file
5248 case $host_cpu in
5249 ia64*)
5250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5251 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5252 ;;
5253 hppa*64*)
b0322a85 5254 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]'
8d138742
CE
5255 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5256 ;;
5257 *)
b0322a85 5258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
5259 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5260 ;;
5261 esac
5262 ;;
d9898ee8 5263
8d138742
CE
5264interix[3-9]*)
5265 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5267 ;;
d9898ee8 5268
8d138742
CE
5269irix5* | irix6* | nonstopux*)
5270 case $LD in
5271 *-32|*"-32 ") libmagic=32-bit;;
5272 *-n32|*"-n32 ") libmagic=N32;;
5273 *-64|*"-64 ") libmagic=64-bit;;
5274 *) libmagic=never-match;;
5275 esac
5276 lt_cv_deplibs_check_method=pass_all
5277 ;;
d9898ee8 5278
b0322a85
CE
5279# This must be glibc/ELF.
5280linux* | k*bsd*-gnu | kopensolaris*-gnu)
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5283
5284netbsd*)
5285 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5287 else
5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5289 fi
5290 ;;
5291
5292newos6*)
5293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5294 lt_cv_file_magic_cmd=/usr/bin/file
5295 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5296 ;;
5297
5298*nto* | *qnx*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301
5302openbsd*)
5303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5305 else
5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5307 fi
5308 ;;
5309
5310osf3* | osf4* | osf5*)
5311 lt_cv_deplibs_check_method=pass_all
5312 ;;
5313
5314rdos*)
5315 lt_cv_deplibs_check_method=pass_all
5316 ;;
5317
5318solaris*)
5319 lt_cv_deplibs_check_method=pass_all
5320 ;;
5321
5322sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326sysv4 | sysv4.3*)
5327 case $host_vendor in
5328 motorola)
5329 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]'
5330 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5331 ;;
5332 ncr)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335 sequent)
5336 lt_cv_file_magic_cmd='/bin/file'
5337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5338 ;;
5339 sni)
5340 lt_cv_file_magic_cmd='/bin/file'
5341 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5342 lt_cv_file_magic_test_file=/lib/libc.so
5343 ;;
5344 siemens)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347 pc)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350 esac
5351 ;;
5352
5353tpf*)
5354 lt_cv_deplibs_check_method=pass_all
5355 ;;
5356esac
5357
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5360$as_echo "$lt_cv_deplibs_check_method" >&6; }
5361
5362file_magic_glob=
5363want_nocaseglob=no
5364if test "$build" = "$host"; then
5365 case $host_os in
5366 mingw* | pw32*)
5367 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5368 want_nocaseglob=yes
5369 else
5370 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5371 fi
5372 ;;
5373 esac
5374fi
5375
5376file_magic_cmd=$lt_cv_file_magic_cmd
5377deplibs_check_method=$lt_cv_deplibs_check_method
5378test -z "$deplibs_check_method" && deplibs_check_method=unknown
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401if test -n "$ac_tool_prefix"; then
5402 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5403set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405$as_echo_n "checking for $ac_word... " >&6; }
5406if ${ac_cv_prog_DLLTOOL+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408else
5409 if test -n "$DLLTOOL"; then
5410 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5411else
5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH
5414do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423done
5424 done
5425IFS=$as_save_IFS
5426
5427fi
5428fi
5429DLLTOOL=$ac_cv_prog_DLLTOOL
5430if test -n "$DLLTOOL"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5432$as_echo "$DLLTOOL" >&6; }
5433else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435$as_echo "no" >&6; }
5436fi
5437
5438
5439fi
5440if test -z "$ac_cv_prog_DLLTOOL"; then
5441 ac_ct_DLLTOOL=$DLLTOOL
5442 # Extract the first word of "dlltool", so it can be a program name with args.
5443set dummy dlltool; ac_word=$2
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445$as_echo_n "checking for $ac_word... " >&6; }
5446if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448else
5449 if test -n "$ac_ct_DLLTOOL"; then
5450 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463done
5464 done
5465IFS=$as_save_IFS
5466
5467fi
5468fi
5469ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5470if test -n "$ac_ct_DLLTOOL"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5472$as_echo "$ac_ct_DLLTOOL" >&6; }
5473else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475$as_echo "no" >&6; }
5476fi
d9898ee8 5477
b0322a85
CE
5478 if test "x$ac_ct_DLLTOOL" = x; then
5479 DLLTOOL="false"
8d138742 5480 else
b0322a85
CE
5481 case $cross_compiling:$ac_tool_warned in
5482yes:)
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5485ac_tool_warned=yes ;;
5486esac
5487 DLLTOOL=$ac_ct_DLLTOOL
8d138742 5488 fi
b0322a85
CE
5489else
5490 DLLTOOL="$ac_cv_prog_DLLTOOL"
5491fi
d9898ee8 5492
b0322a85 5493test -z "$DLLTOOL" && DLLTOOL=dlltool
d9898ee8 5494
5495
5496
5497
5498
5499
5500
b0322a85
CE
5501
5502
5503
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5505$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5506if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508else
5509 lt_cv_sharedlib_from_linklib_cmd='unknown'
5510
5511case $host_os in
5512cygwin* | mingw* | pw32* | cegcc*)
5513 # two different shell functions defined in ltmain.sh
5514 # decide which to use based on capabilities of $DLLTOOL
5515 case `$DLLTOOL --help 2>&1` in
5516 *--identify-strict*)
5517 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8d138742 5518 ;;
b0322a85
CE
5519 *)
5520 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8d138742
CE
5521 ;;
5522 esac
5523 ;;
b0322a85
CE
5524*)
5525 # fallback: assume linklib IS sharedlib
5526 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8d138742 5527 ;;
dd184caf 5528esac
d9898ee8 5529
d9898ee8 5530fi
b0322a85
CE
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5532$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5533sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5534test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d9898ee8 5535
5536
d9898ee8 5537
dd184caf 5538
d9898ee8 5539
8d138742
CE
5540
5541
5542
5543if test -n "$ac_tool_prefix"; then
b0322a85
CE
5544 for ac_prog in ar
5545 do
5546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5549$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5550if ${ac_cv_prog_AR+:} false; then :
8d138742 5551 $as_echo_n "(cached) " >&6
d9898ee8 5552else
8d138742
CE
5553 if test -n "$AR"; then
5554 ac_cv_prog_AR="$AR" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
b0322a85
CE
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5565 break 2
5566 fi
5567done
b0322a85 5568 done
8d138742 5569IFS=$as_save_IFS
d9898ee8 5570
8d138742
CE
5571fi
5572fi
5573AR=$ac_cv_prog_AR
5574if test -n "$AR"; then
b0322a85 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8d138742
CE
5576$as_echo "$AR" >&6; }
5577else
b0322a85 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5579$as_echo "no" >&6; }
d9898ee8 5580fi
dd184caf 5581
d9898ee8 5582
b0322a85
CE
5583 test -n "$AR" && break
5584 done
d9898ee8 5585fi
b0322a85 5586if test -z "$AR"; then
8d138742 5587 ac_ct_AR=$AR
b0322a85
CE
5588 for ac_prog in ar
5589do
5590 # Extract the first word of "$ac_prog", so it can be a program name with args.
5591set dummy $ac_prog; ac_word=$2
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5593$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5594if ${ac_cv_prog_ac_ct_AR+:} false; then :
8d138742
CE
5595 $as_echo_n "(cached) " >&6
5596else
5597 if test -n "$ac_ct_AR"; then
5598 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5599else
5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH
5602do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
b0322a85
CE
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_ac_ct_AR="$ac_prog"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5609 break 2
5610 fi
5611done
b0322a85 5612 done
8d138742 5613IFS=$as_save_IFS
d9898ee8 5614
5615fi
8d138742
CE
5616fi
5617ac_ct_AR=$ac_cv_prog_ac_ct_AR
5618if test -n "$ac_ct_AR"; then
b0322a85 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8d138742
CE
5620$as_echo "$ac_ct_AR" >&6; }
5621else
b0322a85 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5623$as_echo "no" >&6; }
5624fi
d9898ee8 5625
b0322a85
CE
5626
5627 test -n "$ac_ct_AR" && break
5628done
5629
8d138742
CE
5630 if test "x$ac_ct_AR" = x; then
5631 AR="false"
5632 else
5633 case $cross_compiling:$ac_tool_warned in
5634yes:)
b0322a85 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637ac_tool_warned=yes ;;
5638esac
5639 AR=$ac_ct_AR
5640 fi
d9898ee8 5641fi
5642
b0322a85
CE
5643: ${AR=ar}
5644: ${AR_FLAGS=cru}
5645
5646
5647
5648
5649
5650
d9898ee8 5651
8d138742
CE
5652
5653
5654
5655
b0322a85
CE
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5657$as_echo_n "checking for archiver @FILE support... " >&6; }
5658if ${lt_cv_ar_at_file+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660else
5661 lt_cv_ar_at_file=no
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */
5664
5665int
5666main ()
5667{
5668
5669 ;
5670 return 0;
5671}
5672_ACEOF
5673if ac_fn_c_try_compile "$LINENO"; then :
5674 echo conftest.$ac_objext > conftest.lst
5675 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5677 (eval $lt_ar_try) 2>&5
5678 ac_status=$?
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; }
5681 if test "$ac_status" -eq 0; then
5682 # Ensure the archiver fails upon bogus file names.
5683 rm -f conftest.$ac_objext libconftest.a
5684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5685 (eval $lt_ar_try) 2>&5
5686 ac_status=$?
5687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5688 test $ac_status = 0; }
5689 if test "$ac_status" -ne 0; then
5690 lt_cv_ar_at_file=@
5691 fi
5692 fi
5693 rm -f conftest.* libconftest.a
5694
5695fi
5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697
5698fi
5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5700$as_echo "$lt_cv_ar_at_file" >&6; }
5701
5702if test "x$lt_cv_ar_at_file" = xno; then
5703 archiver_list_spec=
5704else
5705 archiver_list_spec=$lt_cv_ar_at_file
5706fi
5707
8d138742
CE
5708
5709
5710
5711
5712
5713
5714if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5716set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5718$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5719if ${ac_cv_prog_STRIP+:} false; then :
8d138742 5720 $as_echo_n "(cached) " >&6
d9898ee8 5721else
8d138742
CE
5722 if test -n "$STRIP"; then
5723 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
b0322a85
CE
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5732 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5734 break 2
5735 fi
5736done
b0322a85 5737 done
dd184caf 5738IFS=$as_save_IFS
d9898ee8 5739
5740fi
5741fi
8d138742
CE
5742STRIP=$ac_cv_prog_STRIP
5743if test -n "$STRIP"; then
b0322a85 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742 5745$as_echo "$STRIP" >&6; }
d9898ee8 5746else
b0322a85 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5748$as_echo "no" >&6; }
d9898ee8 5749fi
5750
dd184caf 5751
d9898ee8 5752fi
8d138742
CE
5753if test -z "$ac_cv_prog_STRIP"; then
5754 ac_ct_STRIP=$STRIP
5755 # Extract the first word of "strip", so it can be a program name with args.
5756set dummy strip; ac_word=$2
b0322a85 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5758$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5759if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742 5760 $as_echo_n "(cached) " >&6
d9898ee8 5761else
8d138742
CE
5762 if test -n "$ac_ct_STRIP"; then
5763 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9898ee8 5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
b0322a85
CE
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5772 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5774 break 2
5775 fi
5776done
b0322a85 5777 done
dd184caf 5778IFS=$as_save_IFS
d9898ee8 5779
5780fi
5781fi
8d138742
CE
5782ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5783if test -n "$ac_ct_STRIP"; then
b0322a85 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742 5785$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5786else
b0322a85 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5788$as_echo "no" >&6; }
d9898ee8 5789fi
5790
8d138742
CE
5791 if test "x$ac_ct_STRIP" = x; then
5792 STRIP=":"
dd184caf 5793 else
5794 case $cross_compiling:$ac_tool_warned in
5795yes:)
b0322a85 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 5797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5798ac_tool_warned=yes ;;
5799esac
8d138742 5800 STRIP=$ac_ct_STRIP
dd184caf 5801 fi
8d138742
CE
5802else
5803 STRIP="$ac_cv_prog_STRIP"
d9898ee8 5804fi
5805
8d138742 5806test -z "$STRIP" && STRIP=:
d9898ee8 5807
d9898ee8 5808
d9898ee8 5809
8d138742
CE
5810
5811
5812
5813if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5815set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5817$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5818if ${ac_cv_prog_RANLIB+:} false; then :
8d138742 5819 $as_echo_n "(cached) " >&6
d9898ee8 5820else
8d138742
CE
5821 if test -n "$RANLIB"; then
5822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
b0322a85
CE
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5833 break 2
5834 fi
5835done
b0322a85 5836 done
8d138742 5837IFS=$as_save_IFS
d9898ee8 5838
8d138742
CE
5839fi
5840fi
5841RANLIB=$ac_cv_prog_RANLIB
5842if test -n "$RANLIB"; then
b0322a85 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742
CE
5844$as_echo "$RANLIB" >&6; }
5845else
b0322a85 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5847$as_echo "no" >&6; }
d9898ee8 5848fi
dd184caf 5849
d9898ee8 5850
8d138742
CE
5851fi
5852if test -z "$ac_cv_prog_RANLIB"; then
5853 ac_ct_RANLIB=$RANLIB
5854 # Extract the first word of "ranlib", so it can be a program name with args.
5855set dummy ranlib; ac_word=$2
b0322a85 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5857$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5858if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742
CE
5859 $as_echo_n "(cached) " >&6
5860else
5861 if test -n "$ac_ct_RANLIB"; then
5862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
b0322a85
CE
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5871 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5873 break 2
5874 fi
5875done
b0322a85 5876 done
8d138742 5877IFS=$as_save_IFS
d9898ee8 5878
8d138742
CE
5879fi
5880fi
5881ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5882if test -n "$ac_ct_RANLIB"; then
b0322a85 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742
CE
5884$as_echo "$ac_ct_RANLIB" >&6; }
5885else
b0322a85 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5887$as_echo "no" >&6; }
5888fi
5889
5890 if test "x$ac_ct_RANLIB" = x; then
5891 RANLIB=":"
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894yes:)
b0322a85 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897ac_tool_warned=yes ;;
dd184caf 5898esac
8d138742
CE
5899 RANLIB=$ac_ct_RANLIB
5900 fi
d9898ee8 5901else
8d138742
CE
5902 RANLIB="$ac_cv_prog_RANLIB"
5903fi
d9898ee8 5904
8d138742 5905test -z "$RANLIB" && RANLIB=:
dd184caf 5906
dd184caf 5907
d9898ee8 5908
dd184caf 5909
dd184caf 5910
d9898ee8 5911
8d138742
CE
5912# Determine commands to create old-style static archives.
5913old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5914old_postinstall_cmds='chmod 644 $oldlib'
5915old_postuninstall_cmds=
dd184caf 5916
8d138742
CE
5917if test -n "$RANLIB"; then
5918 case $host_os in
5919 openbsd*)
b0322a85 5920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8d138742
CE
5921 ;;
5922 *)
b0322a85 5923 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8d138742
CE
5924 ;;
5925 esac
b0322a85 5926 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 5927fi
dd184caf 5928
b0322a85
CE
5929case $host_os in
5930 darwin*)
5931 lock_old_archive_extraction=yes ;;
5932 *)
5933 lock_old_archive_extraction=no ;;
5934esac
5935
5936
5937
5938
5939
5940
d9898ee8 5941
dd184caf 5942
d9898ee8 5943
d9898ee8 5944
d9898ee8 5945
d9898ee8 5946
d9898ee8 5947
d9898ee8 5948
d9898ee8 5949
d9898ee8 5950
5951
5952
5953
d9898ee8 5954
dd184caf 5955
d9898ee8 5956
d9898ee8 5957
dd184caf 5958
d9898ee8 5959
d9898ee8 5960
d9898ee8 5961
d9898ee8 5962
dd184caf 5963
d9898ee8 5964
d9898ee8 5965
dd184caf 5966
d9898ee8 5967
d9898ee8 5968
d9898ee8 5969
d9898ee8 5970
5971
d9898ee8 5972
d9898ee8 5973
8d138742
CE
5974# If no C compiler was specified, use CC.
5975LTCC=${LTCC-"$CC"}
dd184caf 5976
8d138742
CE
5977# If no C compiler flags were specified, use CFLAGS.
5978LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5979
8d138742
CE
5980# Allow CC to be a program name with arguments.
5981compiler=$CC
5982
5983
5984# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 5986$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 5987if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742 5988 $as_echo_n "(cached) " >&6
d9898ee8 5989else
d9898ee8 5990
8d138742
CE
5991# These are sane defaults that work on at least a few old systems.
5992# [They come from Ultrix. What could be older than Ultrix?!! ;)]
dd184caf 5993
8d138742
CE
5994# Character class describing NM global symbol codes.
5995symcode='[BCDEGRST]'
d9898ee8 5996
8d138742
CE
5997# Regexp to match symbols that can be accessed directly from C.
5998sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5999
6000# Define system-specific variables.
6001case $host_os in
6002aix*)
6003 symcode='[BCDT]'
6004 ;;
6005cygwin* | mingw* | pw32* | cegcc*)
6006 symcode='[ABCDGISTW]'
6007 ;;
6008hpux*)
6009 if test "$host_cpu" = ia64; then
6010 symcode='[ABCDEGRST]'
dd184caf 6011 fi
8d138742
CE
6012 ;;
6013irix* | nonstopux*)
6014 symcode='[BCDEGRST]'
6015 ;;
6016osf*)
6017 symcode='[BCDEGQRST]'
6018 ;;
6019solaris*)
6020 symcode='[BDRT]'
6021 ;;
6022sco3.2v5*)
6023 symcode='[DT]'
6024 ;;
6025sysv4.2uw2*)
6026 symcode='[DT]'
6027 ;;
6028sysv5* | sco5v6* | unixware* | OpenUNIX*)
6029 symcode='[ABDT]'
6030 ;;
6031sysv4)
6032 symcode='[DFNSTU]'
6033 ;;
6034esac
6035
6036# If we're using GNU nm, then use its standard symbol codes.
6037case `$NM -V 2>&1` in
6038*GNU* | *'with BFD'*)
6039 symcode='[ABCDGIRSTW]' ;;
6040esac
d9898ee8 6041
8d138742
CE
6042# Transform an extracted symbol line into a proper C declaration.
6043# Some systems (esp. on ia64) link data and code symbols differently,
6044# so use this general approach.
6045lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d9898ee8 6046
8d138742 6047# Transform an extracted symbol line into symbol name and symbol address
b0322a85
CE
6048lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6049lt_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
CE
6050
6051# Handle CRLF in mingw tool chain
6052opt_cr=
6053case $build_os in
6054mingw*)
6055 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6056 ;;
dd184caf 6057esac
8d138742
CE
6058
6059# Try without a prefix underscore, then with it.
6060for ac_symprfx in "" "_"; do
6061
6062 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6063 symxfrm="\\1 $ac_symprfx\\2 \\2"
6064
6065 # Write the raw and C identifiers.
6066 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6067 # Fake it for dumpbin and say T for any non-static function
6068 # and D for any global variable.
6069 # Also find C++ and __fastcall symbols from MSVC++,
6070 # which start with @ or ?.
6071 lt_cv_sys_global_symbol_pipe="$AWK '"\
6072" {last_section=section; section=\$ 3};"\
b0322a85 6073" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742
CE
6074" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6075" \$ 0!~/External *\|/{next};"\
6076" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6077" {if(hide[section]) next};"\
6078" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6079" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6080" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6081" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6082" ' prfx=^$ac_symprfx"
6083 else
6084 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6085 fi
b0322a85 6086 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8d138742
CE
6087
6088 # Check to see that the pipe works correctly.
6089 pipe_works=no
6090
6091 rm -f conftest*
6092 cat > conftest.$ac_ext <<_LT_EOF
6093#ifdef __cplusplus
6094extern "C" {
6095#endif
6096char nm_test_var;
6097void nm_test_func(void);
6098void nm_test_func(void){}
6099#ifdef __cplusplus
6100}
6101#endif
6102int main(){nm_test_var='a';nm_test_func();return(0);}
6103_LT_EOF
6104
b0322a85 6105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742 6106 (eval $ac_compile) 2>&5
d9898ee8 6107 ac_status=$?
b0322a85
CE
6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109 test $ac_status = 0; }; then
8d138742
CE
6110 # Now try to grab the symbols.
6111 nlist=conftest.nm
b0322a85
CE
6112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6113 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d9898ee8 6114 ac_status=$?
b0322a85
CE
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; } && test -s "$nlist"; then
8d138742
CE
6117 # Try sorting and uniquifying the output.
6118 if sort "$nlist" | uniq > "$nlist"T; then
6119 mv -f "$nlist"T "$nlist"
6120 else
6121 rm -f "$nlist"T
6122 fi
d9898ee8 6123
8d138742
CE
6124 # Make sure that we snagged all the symbols we need.
6125 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6126 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6127 cat <<_LT_EOF > conftest.$ac_ext
b0322a85
CE
6128/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6129#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6130/* DATA imports from DLLs on WIN32 con't be const, because runtime
6131 relocations are performed -- see ld's documentation on pseudo-relocs. */
6132# define LT_DLSYM_CONST
6133#elif defined(__osf__)
6134/* This system does not cope well with relocations in const data. */
6135# define LT_DLSYM_CONST
6136#else
6137# define LT_DLSYM_CONST const
6138#endif
6139
8d138742
CE
6140#ifdef __cplusplus
6141extern "C" {
d9898ee8 6142#endif
6143
8d138742
CE
6144_LT_EOF
6145 # Now generate the symbol file.
6146 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 6147
8d138742 6148 cat <<_LT_EOF >> conftest.$ac_ext
dd184caf 6149
8d138742 6150/* The mapping between symbol names and symbols. */
b0322a85 6151LT_DLSYM_CONST struct {
8d138742
CE
6152 const char *name;
6153 void *address;
6154}
6155lt__PROGRAM__LTX_preloaded_symbols[] =
6156{
6157 { "@PROGRAM@", (void *) 0 },
6158_LT_EOF
6159 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6160 cat <<\_LT_EOF >> conftest.$ac_ext
6161 {0, (void *) 0}
6162};
d9898ee8 6163
8d138742
CE
6164/* This works around a problem in FreeBSD linker */
6165#ifdef FREEBSD_WORKAROUND
6166static const void *lt_preloaded_setup() {
6167 return lt__PROGRAM__LTX_preloaded_symbols;
6168}
6169#endif
d9898ee8 6170
8d138742
CE
6171#ifdef __cplusplus
6172}
6173#endif
6174_LT_EOF
6175 # Now try linking the two files.
6176 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
6177 lt_globsym_save_LIBS=$LIBS
6178 lt_globsym_save_CFLAGS=$CFLAGS
8d138742
CE
6179 LIBS="conftstm.$ac_objext"
6180 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 6181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742 6182 (eval $ac_link) 2>&5
d9898ee8 6183 ac_status=$?
b0322a85
CE
6184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8d138742
CE
6186 pipe_works=yes
6187 fi
b0322a85
CE
6188 LIBS=$lt_globsym_save_LIBS
6189 CFLAGS=$lt_globsym_save_CFLAGS
8d138742
CE
6190 else
6191 echo "cannot find nm_test_func in $nlist" >&5
6192 fi
6193 else
6194 echo "cannot find nm_test_var in $nlist" >&5
6195 fi
6196 else
6197 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6198 fi
6199 else
6200 echo "$progname: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6202 fi
6203 rm -rf conftest* conftst*
d9898ee8 6204
8d138742
CE
6205 # Do not use the global_symbol_pipe unless it works.
6206 if test "$pipe_works" = yes; then
6207 break
6208 else
6209 lt_cv_sys_global_symbol_pipe=
6210 fi
6211done
dd184caf 6212
8d138742 6213fi
d9898ee8 6214
8d138742
CE
6215if test -z "$lt_cv_sys_global_symbol_pipe"; then
6216 lt_cv_sys_global_symbol_to_cdecl=
d9898ee8 6217fi
8d138742 6218if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742 6220$as_echo "failed" >&6; }
d9898ee8 6221else
b0322a85 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742 6223$as_echo "ok" >&6; }
d9898ee8 6224fi
6225
b0322a85
CE
6226# Response file support.
6227if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6228 nm_file_list_spec='@'
6229elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6230 nm_file_list_spec='@'
6231fi
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
d9898ee8 6245
6246
6247
d9898ee8 6248
d9898ee8 6249
d9898ee8 6250
d9898ee8 6251
d9898ee8 6252
d9898ee8 6253
d9898ee8 6254
d9898ee8 6255
d9898ee8 6256
d9898ee8 6257
d9898ee8 6258
b0322a85
CE
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6260$as_echo_n "checking for sysroot... " >&6; }
d9898ee8 6261
b0322a85
CE
6262# Check whether --with-sysroot was given.
6263if test "${with_sysroot+set}" = set; then :
6264 withval=$with_sysroot;
6265else
6266 with_sysroot=no
6267fi
d9898ee8 6268
6269
b0322a85
CE
6270lt_sysroot=
6271case ${with_sysroot} in #(
6272 yes)
6273 if test "$GCC" = yes; then
6274 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6275 fi
6276 ;; #(
6277 /*)
6278 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6279 ;; #(
6280 no|'')
6281 ;; #(
6282 *)
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6284$as_echo "${with_sysroot}" >&6; }
6285 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6286 ;;
6287esac
6288
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6290$as_echo "${lt_sysroot:-no}" >&6; }
ac40fd9e 6291
d9898ee8 6292
d9898ee8 6293
d9898ee8 6294
d9898ee8 6295
8d138742 6296# Check whether --enable-libtool-lock was given.
b0322a85 6297if test "${enable_libtool_lock+set}" = set; then :
8d138742
CE
6298 enableval=$enable_libtool_lock;
6299fi
d9898ee8 6300
8d138742 6301test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
d9898ee8 6302
8d138742
CE
6303# Some flags need to be propagated to the compiler or linker for good
6304# libtool support.
6305case $host in
6306ia64-*-hpux*)
6307 # Find out which ABI we are using.
6308 echo 'int i;' > conftest.$ac_ext
b0322a85 6309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6310 (eval $ac_compile) 2>&5
6311 ac_status=$?
b0322a85
CE
6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313 test $ac_status = 0; }; then
8d138742
CE
6314 case `/usr/bin/file conftest.$ac_objext` in
6315 *ELF-32*)
6316 HPUX_IA64_MODE="32"
6317 ;;
6318 *ELF-64*)
6319 HPUX_IA64_MODE="64"
6320 ;;
6321 esac
d9898ee8 6322 fi
8d138742 6323 rm -rf conftest*
d9898ee8 6324 ;;
8d138742
CE
6325*-*-irix6*)
6326 # Find out which ABI we are using.
b0322a85
CE
6327 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6329 (eval $ac_compile) 2>&5
6330 ac_status=$?
b0322a85
CE
6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332 test $ac_status = 0; }; then
8d138742
CE
6333 if test "$lt_cv_prog_gnu_ld" = yes; then
6334 case `/usr/bin/file conftest.$ac_objext` in
6335 *32-bit*)
6336 LD="${LD-ld} -melf32bsmip"
6337 ;;
6338 *N32*)
6339 LD="${LD-ld} -melf32bmipn32"
6340 ;;
6341 *64-bit*)
6342 LD="${LD-ld} -melf64bmip"
6343 ;;
6344 esac
6345 else
6346 case `/usr/bin/file conftest.$ac_objext` in
6347 *32-bit*)
6348 LD="${LD-ld} -32"
6349 ;;
6350 *N32*)
6351 LD="${LD-ld} -n32"
6352 ;;
6353 *64-bit*)
6354 LD="${LD-ld} -64"
6355 ;;
6356 esac
6357 fi
d9898ee8 6358 fi
8d138742 6359 rm -rf conftest*
d9898ee8 6360 ;;
d9898ee8 6361
8d138742
CE
6362x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6363s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6364 # Find out which ABI we are using.
6365 echo 'int i;' > conftest.$ac_ext
b0322a85 6366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6367 (eval $ac_compile) 2>&5
6368 ac_status=$?
b0322a85
CE
6369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6370 test $ac_status = 0; }; then
8d138742
CE
6371 case `/usr/bin/file conftest.o` in
6372 *32-bit*)
6373 case $host in
6374 x86_64-*kfreebsd*-gnu)
6375 LD="${LD-ld} -m elf_i386_fbsd"
6376 ;;
6377 x86_64-*linux*)
6378 LD="${LD-ld} -m elf_i386"
6379 ;;
6380 ppc64-*linux*|powerpc64-*linux*)
6381 LD="${LD-ld} -m elf32ppclinux"
6382 ;;
6383 s390x-*linux*)
6384 LD="${LD-ld} -m elf_s390"
6385 ;;
6386 sparc64-*linux*)
6387 LD="${LD-ld} -m elf32_sparc"
6388 ;;
6389 esac
6390 ;;
6391 *64-bit*)
6392 case $host in
6393 x86_64-*kfreebsd*-gnu)
6394 LD="${LD-ld} -m elf_x86_64_fbsd"
6395 ;;
6396 x86_64-*linux*)
6397 LD="${LD-ld} -m elf_x86_64"
6398 ;;
6399 ppc*-*linux*|powerpc*-*linux*)
6400 LD="${LD-ld} -m elf64ppc"
6401 ;;
6402 s390*-*linux*|s390*-*tpf*)
6403 LD="${LD-ld} -m elf64_s390"
6404 ;;
6405 sparc*-*linux*)
6406 LD="${LD-ld} -m elf64_sparc"
6407 ;;
6408 esac
6409 ;;
6410 esac
6411 fi
6412 rm -rf conftest*
d9898ee8 6413 ;;
d9898ee8 6414
8d138742
CE
6415*-*-sco3.2v5*)
6416 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6417 SAVE_CFLAGS="$CFLAGS"
6418 CFLAGS="$CFLAGS -belf"
b0322a85 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 6420$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 6421if ${lt_cv_cc_needs_belf+:} false; then :
8d138742
CE
6422 $as_echo_n "(cached) " >&6
6423else
6424 ac_ext=c
6425ac_cpp='$CPP $CPPFLAGS'
6426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6429
b0322a85 6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 6431/* end confdefs.h. */
d9898ee8 6432
8d138742
CE
6433int
6434main ()
6435{
d9898ee8 6436
8d138742
CE
6437 ;
6438 return 0;
6439}
6440_ACEOF
b0322a85 6441if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
6442 lt_cv_cc_needs_belf=yes
6443else
b0322a85 6444 lt_cv_cc_needs_belf=no
8d138742 6445fi
b0322a85
CE
6446rm -f core conftest.err conftest.$ac_objext \
6447 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
6448 ac_ext=c
6449ac_cpp='$CPP $CPPFLAGS'
6450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6453
8d138742 6454fi
b0322a85 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8d138742
CE
6456$as_echo "$lt_cv_cc_needs_belf" >&6; }
6457 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6458 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6459 CFLAGS="$SAVE_CFLAGS"
6460 fi
6461 ;;
b0322a85 6462*-*solaris*)
8d138742
CE
6463 # Find out which ABI we are using.
6464 echo 'int i;' > conftest.$ac_ext
b0322a85 6465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 6466 (eval $ac_compile) 2>&5
6467 ac_status=$?
b0322a85
CE
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469 test $ac_status = 0; }; then
8d138742
CE
6470 case `/usr/bin/file conftest.o` in
6471 *64-bit*)
6472 case $lt_cv_prog_gnu_ld in
b0322a85
CE
6473 yes*)
6474 case $host in
6475 i?86-*-solaris*)
6476 LD="${LD-ld} -m elf_x86_64"
6477 ;;
6478 sparc*-*-solaris*)
6479 LD="${LD-ld} -m elf64_sparc"
6480 ;;
6481 esac
6482 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6483 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6484 LD="${LD-ld}_sol2"
6485 fi
6486 ;;
8d138742
CE
6487 *)
6488 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6489 LD="${LD-ld} -64"
6490 fi
6491 ;;
6492 esac
6493 ;;
6494 esac
6495 fi
6496 rm -rf conftest*
6497 ;;
6498esac
d9898ee8 6499
b0322a85
CE
6500need_locks="$enable_libtool_lock"
6501
6502if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6504set dummy ${ac_tool_prefix}mt; ac_word=$2
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506$as_echo_n "checking for $ac_word... " >&6; }
6507if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509else
6510 if test -n "$MANIFEST_TOOL"; then
6511 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6523 fi
6524done
6525 done
6526IFS=$as_save_IFS
6527
6528fi
6529fi
6530MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6531if test -n "$MANIFEST_TOOL"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6533$as_echo "$MANIFEST_TOOL" >&6; }
6534else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536$as_echo "no" >&6; }
6537fi
6538
6539
6540fi
6541if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6542 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6543 # Extract the first word of "mt", so it can be a program name with args.
6544set dummy mt; ac_word=$2
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546$as_echo_n "checking for $ac_word... " >&6; }
6547if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6548 $as_echo_n "(cached) " >&6
6549else
6550 if test -n "$ac_ct_MANIFEST_TOOL"; then
6551 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564done
6565 done
6566IFS=$as_save_IFS
6567
6568fi
6569fi
6570ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6571if test -n "$ac_ct_MANIFEST_TOOL"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6573$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6574else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576$as_echo "no" >&6; }
6577fi
6578
6579 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6580 MANIFEST_TOOL=":"
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583yes:)
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586ac_tool_warned=yes ;;
6587esac
6588 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6589 fi
6590else
6591 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6592fi
6593
6594test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6596$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6597if ${lt_cv_path_mainfest_tool+:} false; then :
6598 $as_echo_n "(cached) " >&6
6599else
6600 lt_cv_path_mainfest_tool=no
6601 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6602 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6603 cat conftest.err >&5
6604 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6605 lt_cv_path_mainfest_tool=yes
6606 fi
6607 rm -f conftest*
6608fi
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6610$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6611if test "x$lt_cv_path_mainfest_tool" != xyes; then
6612 MANIFEST_TOOL=:
6613fi
6614
6615
6616
6617
d9898ee8 6618
d9898ee8 6619
8d138742
CE
6620 case $host_os in
6621 rhapsody* | darwin*)
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6624set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b0322a85 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6626$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6627if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742
CE
6628 $as_echo_n "(cached) " >&6
6629else
6630 if test -n "$DSYMUTIL"; then
6631 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6632else
6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
b0322a85
CE
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6640 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
b0322a85 6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6642 break 2
6643 fi
6644done
b0322a85 6645 done
8d138742 6646IFS=$as_save_IFS
d9898ee8 6647
8d138742
CE
6648fi
6649fi
6650DSYMUTIL=$ac_cv_prog_DSYMUTIL
6651if test -n "$DSYMUTIL"; then
b0322a85 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8d138742
CE
6653$as_echo "$DSYMUTIL" >&6; }
6654else
b0322a85 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6656$as_echo "no" >&6; }
6657fi
d9898ee8 6658
d9898ee8 6659
8d138742
CE
6660fi
6661if test -z "$ac_cv_prog_DSYMUTIL"; then
6662 ac_ct_DSYMUTIL=$DSYMUTIL
6663 # Extract the first word of "dsymutil", so it can be a program name with args.
6664set dummy dsymutil; ac_word=$2
b0322a85 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6666$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6667if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8d138742
CE
6668 $as_echo_n "(cached) " >&6
6669else
6670 if test -n "$ac_ct_DSYMUTIL"; then
6671 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
b0322a85
CE
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6680 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b0322a85 6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 6682 break 2
d9898ee8 6683 fi
6684done
b0322a85 6685 done
8d138742 6686IFS=$as_save_IFS
d9898ee8 6687
6688fi
d9898ee8 6689fi
8d138742
CE
6690ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6691if test -n "$ac_ct_DSYMUTIL"; then
b0322a85 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8d138742 6693$as_echo "$ac_ct_DSYMUTIL" >&6; }
d9898ee8 6694else
b0322a85 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6696$as_echo "no" >&6; }
d9898ee8 6697fi
6698
8d138742
CE
6699 if test "x$ac_ct_DSYMUTIL" = x; then
6700 DSYMUTIL=":"
6701 else
6702 case $cross_compiling:$ac_tool_warned in
6703yes:)
b0322a85 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706ac_tool_warned=yes ;;
6707esac
6708 DSYMUTIL=$ac_ct_DSYMUTIL
6709 fi
d9898ee8 6710else
8d138742 6711 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 6712fi
d9898ee8 6713
8d138742
CE
6714 if test -n "$ac_tool_prefix"; then
6715 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6716set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b0322a85 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6718$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6719if ${ac_cv_prog_NMEDIT+:} false; then :
8d138742
CE
6720 $as_echo_n "(cached) " >&6
6721else
6722 if test -n "$NMEDIT"; then
6723 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6724else
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
b0322a85
CE
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6732 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b0322a85 6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742 6734 break 2
d9898ee8 6735 fi
8d138742 6736done
b0322a85 6737 done
8d138742 6738IFS=$as_save_IFS
d9898ee8 6739
8d138742
CE
6740fi
6741fi
6742NMEDIT=$ac_cv_prog_NMEDIT
6743if test -n "$NMEDIT"; then
b0322a85 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8d138742
CE
6745$as_echo "$NMEDIT" >&6; }
6746else
b0322a85 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6748$as_echo "no" >&6; }
6749fi
d9898ee8 6750
d9898ee8 6751
8d138742
CE
6752fi
6753if test -z "$ac_cv_prog_NMEDIT"; then
6754 ac_ct_NMEDIT=$NMEDIT
6755 # Extract the first word of "nmedit", so it can be a program name with args.
6756set dummy nmedit; ac_word=$2
b0322a85 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6758$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6759if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8d138742
CE
6760 $as_echo_n "(cached) " >&6
6761else
6762 if test -n "$ac_ct_NMEDIT"; then
6763 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
b0322a85
CE
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6772 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6774 break 2
6775 fi
6776done
b0322a85 6777 done
8d138742 6778IFS=$as_save_IFS
d9898ee8 6779
8d138742
CE
6780fi
6781fi
6782ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6783if test -n "$ac_ct_NMEDIT"; then
b0322a85 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742
CE
6785$as_echo "$ac_ct_NMEDIT" >&6; }
6786else
b0322a85 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6788$as_echo "no" >&6; }
6789fi
d9898ee8 6790
8d138742
CE
6791 if test "x$ac_ct_NMEDIT" = x; then
6792 NMEDIT=":"
6793 else
6794 case $cross_compiling:$ac_tool_warned in
6795yes:)
b0322a85 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
6797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798ac_tool_warned=yes ;;
6799esac
6800 NMEDIT=$ac_ct_NMEDIT
6801 fi
6802else
6803 NMEDIT="$ac_cv_prog_NMEDIT"
6804fi
d9898ee8 6805
8d138742
CE
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6808set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6810$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6811if ${ac_cv_prog_LIPO+:} false; then :
8d138742 6812 $as_echo_n "(cached) " >&6
d9898ee8 6813else
8d138742
CE
6814 if test -n "$LIPO"; then
6815 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d9898ee8 6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
b0322a85
CE
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6824 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6826 break 2
6827 fi
6828done
b0322a85 6829 done
dd184caf 6830IFS=$as_save_IFS
d9898ee8 6831
6832fi
6833fi
8d138742
CE
6834LIPO=$ac_cv_prog_LIPO
6835if test -n "$LIPO"; then
b0322a85 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742 6837$as_echo "$LIPO" >&6; }
d9898ee8 6838else
b0322a85 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6840$as_echo "no" >&6; }
d9898ee8 6841fi
6842
dd184caf 6843
d9898ee8 6844fi
8d138742
CE
6845if test -z "$ac_cv_prog_LIPO"; then
6846 ac_ct_LIPO=$LIPO
6847 # Extract the first word of "lipo", so it can be a program name with args.
6848set dummy lipo; ac_word=$2
b0322a85 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6850$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6851if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742 6852 $as_echo_n "(cached) " >&6
d9898ee8 6853else
8d138742
CE
6854 if test -n "$ac_ct_LIPO"; then
6855 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d9898ee8 6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
b0322a85
CE
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6864 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6866 break 2
6867 fi
6868done
b0322a85 6869 done
dd184caf 6870IFS=$as_save_IFS
d9898ee8 6871
d9898ee8 6872fi
6873fi
8d138742
CE
6874ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6875if test -n "$ac_ct_LIPO"; then
b0322a85 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742 6877$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6878else
b0322a85 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6880$as_echo "no" >&6; }
d9898ee8 6881fi
6882
8d138742
CE
6883 if test "x$ac_ct_LIPO" = x; then
6884 LIPO=":"
dd184caf 6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887yes:)
b0322a85 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6890ac_tool_warned=yes ;;
6891esac
8d138742 6892 LIPO=$ac_ct_LIPO
dd184caf 6893 fi
d9898ee8 6894else
8d138742 6895 LIPO="$ac_cv_prog_LIPO"
d9898ee8 6896fi
6897
8d138742
CE
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6900set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6902$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6903if ${ac_cv_prog_OTOOL+:} false; then :
8d138742 6904 $as_echo_n "(cached) " >&6
d9898ee8 6905else
8d138742
CE
6906 if test -n "$OTOOL"; then
6907 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
d9898ee8 6908else
6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
b0322a85
CE
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6916 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6918 break 2
6919 fi
6920done
b0322a85 6921 done
dd184caf 6922IFS=$as_save_IFS
d9898ee8 6923
6924fi
6925fi
8d138742
CE
6926OTOOL=$ac_cv_prog_OTOOL
6927if test -n "$OTOOL"; then
b0322a85 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742 6929$as_echo "$OTOOL" >&6; }
d9898ee8 6930else
b0322a85 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6932$as_echo "no" >&6; }
d9898ee8 6933fi
6934
dd184caf 6935
d9898ee8 6936fi
8d138742
CE
6937if test -z "$ac_cv_prog_OTOOL"; then
6938 ac_ct_OTOOL=$OTOOL
6939 # Extract the first word of "otool", so it can be a program name with args.
6940set dummy otool; ac_word=$2
b0322a85 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6942$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6943if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742 6944 $as_echo_n "(cached) " >&6
d9898ee8 6945else
8d138742
CE
6946 if test -n "$ac_ct_OTOOL"; then
6947 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
d9898ee8 6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
b0322a85
CE
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6956 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6958 break 2
6959 fi
6960done
b0322a85 6961 done
dd184caf 6962IFS=$as_save_IFS
d9898ee8 6963
d9898ee8 6964fi
6965fi
8d138742
CE
6966ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6967if test -n "$ac_ct_OTOOL"; then
b0322a85 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742 6969$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 6970else
b0322a85 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6972$as_echo "no" >&6; }
d9898ee8 6973fi
6974
8d138742
CE
6975 if test "x$ac_ct_OTOOL" = x; then
6976 OTOOL=":"
dd184caf 6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979yes:)
b0322a85 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6982ac_tool_warned=yes ;;
6983esac
8d138742 6984 OTOOL=$ac_ct_OTOOL
dd184caf 6985 fi
d9898ee8 6986else
8d138742 6987 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6988fi
6989
8d138742
CE
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6992set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6994$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6995if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742 6996 $as_echo_n "(cached) " >&6
d9898ee8 6997else
8d138742
CE
6998 if test -n "$OTOOL64"; then
6999 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
d9898ee8 7000else
7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
b0322a85
CE
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7008 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7010 break 2
7011 fi
7012done
b0322a85 7013 done
dd184caf 7014IFS=$as_save_IFS
d9898ee8 7015
7016fi
7017fi
8d138742
CE
7018OTOOL64=$ac_cv_prog_OTOOL64
7019if test -n "$OTOOL64"; then
b0322a85 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742 7021$as_echo "$OTOOL64" >&6; }
d9898ee8 7022else
b0322a85 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7024$as_echo "no" >&6; }
d9898ee8 7025fi
7026
dd184caf 7027
d9898ee8 7028fi
8d138742
CE
7029if test -z "$ac_cv_prog_OTOOL64"; then
7030 ac_ct_OTOOL64=$OTOOL64
7031 # Extract the first word of "otool64", so it can be a program name with args.
7032set dummy otool64; ac_word=$2
b0322a85 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7034$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7035if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742 7036 $as_echo_n "(cached) " >&6
d9898ee8 7037else
8d138742
CE
7038 if test -n "$ac_ct_OTOOL64"; then
7039 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
d9898ee8 7040else
7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
b0322a85
CE
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7048 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7050 break 2
7051 fi
7052done
b0322a85 7053 done
dd184caf 7054IFS=$as_save_IFS
d9898ee8 7055
d9898ee8 7056fi
7057fi
8d138742
CE
7058ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7059if test -n "$ac_ct_OTOOL64"; then
b0322a85 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742 7061$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 7062else
b0322a85 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7064$as_echo "no" >&6; }
d9898ee8 7065fi
7066
8d138742
CE
7067 if test "x$ac_ct_OTOOL64" = x; then
7068 OTOOL64=":"
dd184caf 7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071yes:)
b0322a85 7072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7074ac_tool_warned=yes ;;
7075esac
8d138742 7076 OTOOL64=$ac_ct_OTOOL64
dd184caf 7077 fi
d9898ee8 7078else
8d138742 7079 OTOOL64="$ac_cv_prog_OTOOL64"
d9898ee8 7080fi
7081
7082
d9898ee8 7083
d9898ee8 7084
d9898ee8 7085
d9898ee8 7086
d9898ee8 7087
7088
dd184caf 7089
d9898ee8 7090
7091
d9898ee8 7092
d9898ee8 7093
d9898ee8 7094
d9898ee8 7095
7096
d9898ee8 7097
d9898ee8 7098
d9898ee8 7099
7100
d9898ee8 7101
d9898ee8 7102
7103
7104
d9898ee8 7105
d9898ee8 7106
7107
b0322a85 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8d138742 7109$as_echo_n "checking for -single_module linker flag... " >&6; }
b0322a85 7110if ${lt_cv_apple_cc_single_mod+:} false; then :
8d138742 7111 $as_echo_n "(cached) " >&6
d9898ee8 7112else
8d138742
CE
7113 lt_cv_apple_cc_single_mod=no
7114 if test -z "${LT_MULTI_MODULE}"; then
7115 # By default we will add the -single_module flag. You can override
7116 # by either setting the environment variable LT_MULTI_MODULE
7117 # non-empty at configure time, or by adding -multi_module to the
7118 # link flags.
7119 rm -rf libconftest.dylib*
7120 echo "int foo(void){return 1;}" > conftest.c
7121 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7122-dynamiclib -Wl,-single_module conftest.c" >&5
7123 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7124 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7125 _lt_result=$?
b0322a85
CE
7126 # If there is a non-empty error log, and "single_module"
7127 # appears in it, assume the flag caused a linker warning
7128 if test -s conftest.err && $GREP single_module conftest.err; then
7129 cat conftest.err >&5
7130 # Otherwise, if the output was created with a 0 exit code from
7131 # the compiler, it worked.
7132 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8d138742
CE
7133 lt_cv_apple_cc_single_mod=yes
7134 else
7135 cat conftest.err >&5
7136 fi
7137 rm -rf libconftest.dylib*
7138 rm -f conftest.*
7139 fi
d9898ee8 7140fi
b0322a85 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8d138742 7142$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b0322a85
CE
7143
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8d138742 7145$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b0322a85 7146if ${lt_cv_ld_exported_symbols_list+:} false; then :
8d138742
CE
7147 $as_echo_n "(cached) " >&6
7148else
7149 lt_cv_ld_exported_symbols_list=no
7150 save_LDFLAGS=$LDFLAGS
7151 echo "_main" > conftest.sym
7152 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
b0322a85 7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 7154/* end confdefs.h. */
d9898ee8 7155
8d138742
CE
7156int
7157main ()
7158{
7159
7160 ;
7161 return 0;
7162}
7163_ACEOF
b0322a85 7164if ac_fn_c_try_link "$LINENO"; then :
8d138742 7165 lt_cv_ld_exported_symbols_list=yes
d9898ee8 7166else
b0322a85 7167 lt_cv_ld_exported_symbols_list=no
d9898ee8 7168fi
b0322a85
CE
7169rm -f core conftest.err conftest.$ac_objext \
7170 conftest$ac_exeext conftest.$ac_ext
8d138742 7171 LDFLAGS="$save_LDFLAGS"
d9898ee8 7172
8d138742 7173fi
b0322a85 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8d138742 7175$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b0322a85
CE
7176
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7178$as_echo_n "checking for -force_load linker flag... " >&6; }
7179if ${lt_cv_ld_force_load+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181else
7182 lt_cv_ld_force_load=no
7183 cat > conftest.c << _LT_EOF
7184int forced_loaded() { return 2;}
7185_LT_EOF
7186 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7187 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7188 echo "$AR cru libconftest.a conftest.o" >&5
7189 $AR cru libconftest.a conftest.o 2>&5
7190 echo "$RANLIB libconftest.a" >&5
7191 $RANLIB libconftest.a 2>&5
7192 cat > conftest.c << _LT_EOF
7193int main() { return 0;}
7194_LT_EOF
7195 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7196 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7197 _lt_result=$?
7198 if test -s conftest.err && $GREP force_load conftest.err; then
7199 cat conftest.err >&5
7200 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7201 lt_cv_ld_force_load=yes
7202 else
7203 cat conftest.err >&5
7204 fi
7205 rm -f conftest.err libconftest.a conftest conftest.c
7206 rm -rf conftest.dSYM
7207
7208fi
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7210$as_echo "$lt_cv_ld_force_load" >&6; }
d9898ee8 7211 case $host_os in
8d138742
CE
7212 rhapsody* | darwin1.[012])
7213 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7214 darwin1.*)
7215 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7216 darwin*) # darwin 5.x on
7217 # if running on 10.5 or later, the deployment target defaults
7218 # to the OS version, if on x86, and 10.4, the deployment
7219 # target defaults to 10.4. Don't you love it?
7220 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7221 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7222 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7223 10.[012]*)
7224 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7225 10.*)
7226 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7227 esac
7228 ;;
7229 esac
7230 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7231 _lt_dar_single_mod='$single_module'
7232 fi
7233 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7234 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7235 else
7236 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7237 fi
b0322a85 7238 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8d138742
CE
7239 _lt_dsymutil='~$DSYMUTIL $lib || :'
7240 else
7241 _lt_dsymutil=
7242 fi
7243 ;;
7244 esac
d9898ee8 7245
8d138742
CE
7246ac_ext=c
7247ac_cpp='$CPP $CPPFLAGS'
7248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250ac_compiler_gnu=$ac_cv_c_compiler_gnu
b0322a85 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8d138742
CE
7252$as_echo_n "checking how to run the C preprocessor... " >&6; }
7253# On Suns, sometimes $CPP names a directory.
7254if test -n "$CPP" && test -d "$CPP"; then
7255 CPP=
d9898ee8 7256fi
8d138742 7257if test -z "$CPP"; then
b0322a85 7258 if ${ac_cv_prog_CPP+:} false; then :
8d138742 7259 $as_echo_n "(cached) " >&6
d9898ee8 7260else
8d138742
CE
7261 # Double quotes because CPP needs to be expanded
7262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7263 do
7264 ac_preproc_ok=false
7265for ac_c_preproc_warn_flag in '' yes
7266do
7267 # Use a header file that comes with gcc, so configuring glibc
7268 # with a fresh cross-compiler works.
7269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7270 # <limits.h> exists even on freestanding compilers.
7271 # On the NeXT, cc -E runs the code through the compiler's parser,
7272 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7274/* end confdefs.h. */
7275#ifdef __STDC__
7276# include <limits.h>
7277#else
7278# include <assert.h>
7279#endif
7280 Syntax error
7281_ACEOF
b0322a85 7282if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7283
b0322a85 7284else
8d138742
CE
7285 # Broken: fails on valid input.
7286continue
7287fi
b0322a85 7288rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7289
8d138742
CE
7290 # OK, works on sane cases. Now check whether nonexistent headers
7291 # can be detected and how.
b0322a85 7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7293/* end confdefs.h. */
7294#include <ac_nonexistent.h>
7295_ACEOF
b0322a85 7296if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7297 # Broken: success on invalid input.
7298continue
7299else
8d138742
CE
7300 # Passes both tests.
7301ac_preproc_ok=:
7302break
7303fi
b0322a85 7304rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7305
8d138742
CE
7306done
7307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7308rm -f conftest.i conftest.err conftest.$ac_ext
7309if $ac_preproc_ok; then :
8d138742
CE
7310 break
7311fi
d9898ee8 7312
8d138742
CE
7313 done
7314 ac_cv_prog_CPP=$CPP
d9898ee8 7315
8d138742
CE
7316fi
7317 CPP=$ac_cv_prog_CPP
7318else
7319 ac_cv_prog_CPP=$CPP
7320fi
b0322a85 7321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8d138742
CE
7322$as_echo "$CPP" >&6; }
7323ac_preproc_ok=false
7324for ac_c_preproc_warn_flag in '' yes
7325do
7326 # Use a header file that comes with gcc, so configuring glibc
7327 # with a fresh cross-compiler works.
7328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7329 # <limits.h> exists even on freestanding compilers.
7330 # On the NeXT, cc -E runs the code through the compiler's parser,
7331 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7333/* end confdefs.h. */
7334#ifdef __STDC__
7335# include <limits.h>
7336#else
7337# include <assert.h>
7338#endif
7339 Syntax error
7340_ACEOF
b0322a85 7341if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7342
b0322a85 7343else
8d138742
CE
7344 # Broken: fails on valid input.
7345continue
7346fi
b0322a85 7347rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7348
8d138742
CE
7349 # OK, works on sane cases. Now check whether nonexistent headers
7350 # can be detected and how.
b0322a85 7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7352/* end confdefs.h. */
7353#include <ac_nonexistent.h>
7354_ACEOF
b0322a85 7355if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7356 # Broken: success on invalid input.
7357continue
7358else
8d138742
CE
7359 # Passes both tests.
7360ac_preproc_ok=:
7361break
7362fi
b0322a85 7363rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7364
8d138742
CE
7365done
7366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7367rm -f conftest.i conftest.err conftest.$ac_ext
7368if $ac_preproc_ok; then :
7369
8d138742 7370else
b0322a85 7371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 7372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
7373as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7374See \`config.log' for more details" "$LINENO" 5; }
8d138742 7375fi
d9898ee8 7376
8d138742
CE
7377ac_ext=c
7378ac_cpp='$CPP $CPPFLAGS'
7379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7381ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7382
d9898ee8 7383
b0322a85 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 7385$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 7386if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
7387 $as_echo_n "(cached) " >&6
7388else
b0322a85 7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7390/* end confdefs.h. */
7391#include <stdlib.h>
7392#include <stdarg.h>
7393#include <string.h>
7394#include <float.h>
d9898ee8 7395
8d138742
CE
7396int
7397main ()
7398{
d9898ee8 7399
8d138742
CE
7400 ;
7401 return 0;
7402}
7403_ACEOF
b0322a85 7404if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
7405 ac_cv_header_stdc=yes
7406else
b0322a85 7407 ac_cv_header_stdc=no
8d138742 7408fi
8d138742 7409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7410
8d138742
CE
7411if test $ac_cv_header_stdc = yes; then
7412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7414/* end confdefs.h. */
7415#include <string.h>
d9898ee8 7416
8d138742
CE
7417_ACEOF
7418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7419 $EGREP "memchr" >/dev/null 2>&1; then :
7420
8d138742
CE
7421else
7422 ac_cv_header_stdc=no
7423fi
7424rm -f conftest*
d9898ee8 7425
8d138742 7426fi
d9898ee8 7427
8d138742
CE
7428if test $ac_cv_header_stdc = yes; then
7429 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7431/* end confdefs.h. */
7432#include <stdlib.h>
d9898ee8 7433
8d138742
CE
7434_ACEOF
7435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7436 $EGREP "free" >/dev/null 2>&1; then :
7437
8d138742
CE
7438else
7439 ac_cv_header_stdc=no
7440fi
7441rm -f conftest*
d9898ee8 7442
8d138742 7443fi
d9898ee8 7444
8d138742
CE
7445if test $ac_cv_header_stdc = yes; then
7446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 7447 if test "$cross_compiling" = yes; then :
8d138742
CE
7448 :
7449else
b0322a85 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7451/* end confdefs.h. */
7452#include <ctype.h>
7453#include <stdlib.h>
7454#if ((' ' & 0x0FF) == 0x020)
7455# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7456# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7457#else
7458# define ISLOWER(c) \
7459 (('a' <= (c) && (c) <= 'i') \
7460 || ('j' <= (c) && (c) <= 'r') \
7461 || ('s' <= (c) && (c) <= 'z'))
7462# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7463#endif
d9898ee8 7464
8d138742
CE
7465#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7466int
7467main ()
7468{
7469 int i;
7470 for (i = 0; i < 256; i++)
7471 if (XOR (islower (i), ISLOWER (i))
7472 || toupper (i) != TOUPPER (i))
7473 return 2;
7474 return 0;
7475}
7476_ACEOF
b0322a85 7477if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 7478
b0322a85
CE
7479else
7480 ac_cv_header_stdc=no
8d138742 7481fi
b0322a85
CE
7482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7483 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742 7484fi
d9898ee8 7485
8d138742
CE
7486fi
7487fi
b0322a85 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742 7489$as_echo "$ac_cv_header_stdc" >&6; }
b0322a85 7490if test $ac_cv_header_stdc = yes; then
d9898ee8 7491
b0322a85 7492$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 7493
8d138742 7494fi
b0322a85
CE
7495
7496# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7497for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7498 inttypes.h stdint.h unistd.h
7499do :
7500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7501ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7502"
7503if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
7504 cat >>confdefs.h <<_ACEOF
7505#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7506_ACEOF
d9898ee8 7507
8d138742 7508fi
d9898ee8 7509
8d138742 7510done
d9898ee8 7511
d9898ee8 7512
b0322a85
CE
7513for ac_header in dlfcn.h
7514do :
7515 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7516"
7517if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7518 cat >>confdefs.h <<_ACEOF
7519#define HAVE_DLFCN_H 1
7520_ACEOF
7521
7522fi
7523
7524done
7525
7526
7527
7528
d9898ee8 7529
8d138742 7530# Set options
d9898ee8 7531
d9898ee8 7532
d9898ee8 7533
8d138742 7534 enable_dlopen=no
d9898ee8 7535
d9898ee8 7536
8d138742 7537 enable_win32_dll=no
d9898ee8 7538
d9898ee8 7539
8d138742 7540 # Check whether --enable-shared was given.
b0322a85 7541if test "${enable_shared+set}" = set; then :
8d138742
CE
7542 enableval=$enable_shared; p=${PACKAGE-default}
7543 case $enableval in
7544 yes) enable_shared=yes ;;
7545 no) enable_shared=no ;;
7546 *)
7547 enable_shared=no
7548 # Look at the argument we got. We use all the common list separators.
7549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7550 for pkg in $enableval; do
7551 IFS="$lt_save_ifs"
7552 if test "X$pkg" = "X$p"; then
7553 enable_shared=yes
7554 fi
7555 done
7556 IFS="$lt_save_ifs"
7557 ;;
7558 esac
7559else
7560 enable_shared=yes
7561fi
d9898ee8 7562
d9898ee8 7563
d9898ee8 7564
d9898ee8 7565
d9898ee8 7566
d9898ee8 7567
d9898ee8 7568
d9898ee8 7569
7570
8d138742 7571 # Check whether --enable-static was given.
b0322a85 7572if test "${enable_static+set}" = set; then :
8d138742
CE
7573 enableval=$enable_static; p=${PACKAGE-default}
7574 case $enableval in
7575 yes) enable_static=yes ;;
7576 no) enable_static=no ;;
7577 *)
7578 enable_static=no
7579 # Look at the argument we got. We use all the common list separators.
7580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7581 for pkg in $enableval; do
7582 IFS="$lt_save_ifs"
7583 if test "X$pkg" = "X$p"; then
7584 enable_static=yes
7585 fi
7586 done
7587 IFS="$lt_save_ifs"
7588 ;;
7589 esac
d9898ee8 7590else
8d138742 7591 enable_static=yes
d9898ee8 7592fi
7593
7594
d9898ee8 7595
d9898ee8 7596
d9898ee8 7597
d9898ee8 7598
d9898ee8 7599
d9898ee8 7600
d9898ee8 7601
d9898ee8 7602
8d138742 7603# Check whether --with-pic was given.
b0322a85
CE
7604if test "${with_pic+set}" = set; then :
7605 withval=$with_pic; lt_p=${PACKAGE-default}
7606 case $withval in
7607 yes|no) pic_mode=$withval ;;
7608 *)
7609 pic_mode=default
7610 # Look at the argument we got. We use all the common list separators.
7611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7612 for lt_pkg in $withval; do
7613 IFS="$lt_save_ifs"
7614 if test "X$lt_pkg" = "X$lt_p"; then
7615 pic_mode=yes
7616 fi
7617 done
7618 IFS="$lt_save_ifs"
7619 ;;
7620 esac
8d138742
CE
7621else
7622 pic_mode=default
7623fi
d9898ee8 7624
7625
8d138742 7626test -z "$pic_mode" && pic_mode=default
d9898ee8 7627
d9898ee8 7628
7629
d9898ee8 7630
7631
d9898ee8 7632
d9898ee8 7633
8d138742 7634 # Check whether --enable-fast-install was given.
b0322a85 7635if test "${enable_fast_install+set}" = set; then :
8d138742
CE
7636 enableval=$enable_fast_install; p=${PACKAGE-default}
7637 case $enableval in
7638 yes) enable_fast_install=yes ;;
7639 no) enable_fast_install=no ;;
7640 *)
7641 enable_fast_install=no
7642 # Look at the argument we got. We use all the common list separators.
7643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7644 for pkg in $enableval; do
7645 IFS="$lt_save_ifs"
7646 if test "X$pkg" = "X$p"; then
7647 enable_fast_install=yes
7648 fi
7649 done
7650 IFS="$lt_save_ifs"
7651 ;;
7652 esac
7653else
7654 enable_fast_install=yes
7655fi
d9898ee8 7656
d9898ee8 7657
d9898ee8 7658
d9898ee8 7659
d9898ee8 7660
d9898ee8 7661
d9898ee8 7662
d9898ee8 7663
d9898ee8 7664
d9898ee8 7665
d9898ee8 7666
8d138742
CE
7667# This can be used to rebuild libtool when needed
7668LIBTOOL_DEPS="$ltmain"
d9898ee8 7669
8d138742
CE
7670# Always use our own libtool.
7671LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7672
d9898ee8 7673
d9898ee8 7674
d9898ee8 7675
d9898ee8 7676
d9898ee8 7677
d9898ee8 7678
d9898ee8 7679
d9898ee8 7680
d9898ee8 7681
ac40fd9e 7682
d9898ee8 7683
d9898ee8 7684
d9898ee8 7685
d9898ee8 7686
d9898ee8 7687
d9898ee8 7688
d9898ee8 7689
d9898ee8 7690
b0322a85
CE
7691
7692
7693
7694
7695
d9898ee8 7696
d9898ee8 7697
d9898ee8 7698
d9898ee8 7699
d9898ee8 7700
d9898ee8 7701
8d138742
CE
7702test -z "$LN_S" && LN_S="ln -s"
7703
d9898ee8 7704
d9898ee8 7705
d9898ee8 7706
7707
d9898ee8 7708
d9898ee8 7709
d9898ee8 7710
7711
8d138742
CE
7712
7713
7714
7715
7716
7717if test -n "${ZSH_VERSION+set}" ; then
7718 setopt NO_GLOB_SUBST
7719fi
7720
b0322a85 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 7722$as_echo_n "checking for objdir... " >&6; }
b0322a85 7723if ${lt_cv_objdir+:} false; then :
8d138742 7724 $as_echo_n "(cached) " >&6
d9898ee8 7725else
8d138742
CE
7726 rm -f .libs 2>/dev/null
7727mkdir .libs 2>/dev/null
7728if test -d .libs; then
7729 lt_cv_objdir=.libs
7730else
7731 # MS-DOS does not allow filenames that begin with a dot.
7732 lt_cv_objdir=_libs
d9898ee8 7733fi
8d138742
CE
7734rmdir .libs 2>/dev/null
7735fi
b0322a85 7736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
7737$as_echo "$lt_cv_objdir" >&6; }
7738objdir=$lt_cv_objdir
d9898ee8 7739
d9898ee8 7740
d9898ee8 7741
d9898ee8 7742
d9898ee8 7743
8d138742
CE
7744cat >>confdefs.h <<_ACEOF
7745#define LT_OBJDIR "$lt_cv_objdir/"
7746_ACEOF
d9898ee8 7747
d9898ee8 7748
d9898ee8 7749
d9898ee8 7750
8d138742
CE
7751case $host_os in
7752aix3*)
7753 # AIX sometimes has problems with the GCC collect2 program. For some
7754 # reason, if we set the COLLECT_NAMES environment variable, the problems
7755 # vanish in a puff of smoke.
7756 if test "X${COLLECT_NAMES+set}" != Xset; then
7757 COLLECT_NAMES=
7758 export COLLECT_NAMES
7759 fi
7760 ;;
7761esac
d9898ee8 7762
8d138742
CE
7763# Global variables:
7764ofile=libtool
7765can_build_shared=yes
d9898ee8 7766
8d138742
CE
7767# All known linkers require a `.a' archive for static linking (except MSVC,
7768# which needs '.lib').
7769libext=a
d9898ee8 7770
8d138742 7771with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 7772
8d138742
CE
7773old_CC="$CC"
7774old_CFLAGS="$CFLAGS"
d9898ee8 7775
8d138742
CE
7776# Set sane defaults for various variables
7777test -z "$CC" && CC=cc
7778test -z "$LTCC" && LTCC=$CC
7779test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7780test -z "$LD" && LD=ld
7781test -z "$ac_objext" && ac_objext=o
d9898ee8 7782
8d138742
CE
7783for cc_temp in $compiler""; do
7784 case $cc_temp in
7785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7787 \-*) ;;
7788 *) break;;
7789 esac
7790done
b0322a85 7791cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8d138742
CE
7792
7793
7794# Only perform the check for file, if the check method requires it
7795test -z "$MAGIC_CMD" && MAGIC_CMD=file
7796case $deplibs_check_method in
7797file_magic*)
7798 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 7800$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 7801if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
7802 $as_echo_n "(cached) " >&6
7803else
7804 case $MAGIC_CMD in
7805[\\/*] | ?:[\\/]*)
7806 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7807 ;;
7808*)
7809 lt_save_MAGIC_CMD="$MAGIC_CMD"
7810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7811 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7812 for ac_dir in $ac_dummy; do
7813 IFS="$lt_save_ifs"
7814 test -z "$ac_dir" && ac_dir=.
7815 if test -f $ac_dir/${ac_tool_prefix}file; then
7816 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7817 if test -n "$file_magic_test_file"; then
7818 case $deplibs_check_method in
7819 "file_magic "*)
7820 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7823 $EGREP "$file_magic_regex" > /dev/null; then
7824 :
d9898ee8 7825 else
8d138742 7826 cat <<_LT_EOF 1>&2
d9898ee8 7827
8d138742
CE
7828*** Warning: the command libtool uses to detect shared libraries,
7829*** $file_magic_cmd, produces output that libtool cannot recognize.
7830*** The result is that libtool may fail to recognize shared libraries
7831*** as such. This will affect the creation of libtool libraries that
7832*** depend on shared libraries, but programs linked with such libtool
7833*** libraries will work regardless of this problem. Nevertheless, you
7834*** may want to report the problem to your system manager and/or to
7835*** bug-libtool@gnu.org
d9898ee8 7836
8d138742
CE
7837_LT_EOF
7838 fi ;;
7839 esac
7840 fi
7841 break
7842 fi
7843 done
7844 IFS="$lt_save_ifs"
7845 MAGIC_CMD="$lt_save_MAGIC_CMD"
7846 ;;
dd184caf 7847esac
ac40fd9e 7848fi
8d138742
CE
7849
7850MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7851if test -n "$MAGIC_CMD"; then
b0322a85 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 7853$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7854else
b0322a85 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7856$as_echo "no" >&6; }
7857fi
d9898ee8 7858
dd184caf 7859
dd184caf 7860
d9898ee8 7861
d9898ee8 7862
8d138742
CE
7863if test -z "$lt_cv_path_MAGIC_CMD"; then
7864 if test -n "$ac_tool_prefix"; then
b0322a85 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 7866$as_echo_n "checking for file... " >&6; }
b0322a85 7867if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742
CE
7868 $as_echo_n "(cached) " >&6
7869else
7870 case $MAGIC_CMD in
7871[\\/*] | ?:[\\/]*)
7872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7873 ;;
7874*)
7875 lt_save_MAGIC_CMD="$MAGIC_CMD"
7876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7878 for ac_dir in $ac_dummy; do
7879 IFS="$lt_save_ifs"
7880 test -z "$ac_dir" && ac_dir=.
7881 if test -f $ac_dir/file; then
7882 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7883 if test -n "$file_magic_test_file"; then
7884 case $deplibs_check_method in
7885 "file_magic "*)
7886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7889 $EGREP "$file_magic_regex" > /dev/null; then
7890 :
7891 else
7892 cat <<_LT_EOF 1>&2
d9898ee8 7893
8d138742
CE
7894*** Warning: the command libtool uses to detect shared libraries,
7895*** $file_magic_cmd, produces output that libtool cannot recognize.
7896*** The result is that libtool may fail to recognize shared libraries
7897*** as such. This will affect the creation of libtool libraries that
7898*** depend on shared libraries, but programs linked with such libtool
7899*** libraries will work regardless of this problem. Nevertheless, you
7900*** may want to report the problem to your system manager and/or to
7901*** bug-libtool@gnu.org
7902
7903_LT_EOF
7904 fi ;;
7905 esac
7906 fi
7907 break
7908 fi
7909 done
7910 IFS="$lt_save_ifs"
7911 MAGIC_CMD="$lt_save_MAGIC_CMD"
7912 ;;
7913esac
ac40fd9e 7914fi
8d138742
CE
7915
7916MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7917if test -n "$MAGIC_CMD"; then
b0322a85 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 7919$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7920else
b0322a85 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7922$as_echo "no" >&6; }
7923fi
d9898ee8 7924
dd184caf 7925
8d138742
CE
7926 else
7927 MAGIC_CMD=:
7928 fi
d9898ee8 7929fi
dd184caf 7930
8d138742
CE
7931 fi
7932 ;;
7933esac
d9898ee8 7934
8d138742 7935# Use C for the default configuration in the libtool script
d9898ee8 7936
8d138742
CE
7937lt_save_CC="$CC"
7938ac_ext=c
7939ac_cpp='$CPP $CPPFLAGS'
7940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7943
d9898ee8 7944
8d138742
CE
7945# Source file extension for C test sources.
7946ac_ext=c
d9898ee8 7947
8d138742
CE
7948# Object file extension for compiled C test sources.
7949objext=o
7950objext=$objext
d9898ee8 7951
8d138742
CE
7952# Code to be used in simple compile tests
7953lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7954
8d138742
CE
7955# Code to be used in simple link tests
7956lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7957
d9898ee8 7958
d9898ee8 7959
d9898ee8 7960
d9898ee8 7961
d9898ee8 7962
d9898ee8 7963
8d138742
CE
7964# If no C compiler was specified, use CC.
7965LTCC=${LTCC-"$CC"}
d9898ee8 7966
8d138742
CE
7967# If no C compiler flags were specified, use CFLAGS.
7968LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 7969
8d138742
CE
7970# Allow CC to be a program name with arguments.
7971compiler=$CC
d9898ee8 7972
8d138742
CE
7973# Save the default compiler, since it gets overwritten when the other
7974# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7975compiler_DEFAULT=$CC
d9898ee8 7976
8d138742
CE
7977# save warnings/boilerplate of simple test code
7978ac_outfile=conftest.$ac_objext
7979echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7980eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7981_lt_compiler_boilerplate=`cat conftest.err`
7982$RM conftest*
d9898ee8 7983
8d138742
CE
7984ac_outfile=conftest.$ac_objext
7985echo "$lt_simple_link_test_code" >conftest.$ac_ext
7986eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7987_lt_linker_boilerplate=`cat conftest.err`
7988$RM -r conftest*
d9898ee8 7989
d9898ee8 7990
8d138742 7991if test -n "$compiler"; then
d9898ee8 7992
8d138742 7993lt_prog_compiler_no_builtin_flag=
d9898ee8 7994
8d138742 7995if test "$GCC" = yes; then
b0322a85
CE
7996 case $cc_basename in
7997 nvcc*)
7998 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7999 *)
8000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8001 esac
d9898ee8 8002
b0322a85 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 8004$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 8005if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742
CE
8006 $as_echo_n "(cached) " >&6
8007else
8008 lt_cv_prog_compiler_rtti_exceptions=no
8009 ac_outfile=conftest.$ac_objext
8010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8011 lt_compiler_flag="-fno-rtti -fno-exceptions"
8012 # Insert the option either (1) after the last *FLAGS variable, or
8013 # (2) before a word containing "conftest.", or (3) at the end.
8014 # Note that $ac_compile itself does not contain backslashes and begins
8015 # with a dollar sign (not a hyphen), so the echo should work correctly.
8016 # The option is referenced via a variable to avoid confusing sed.
8017 lt_compile=`echo "$ac_compile" | $SED \
8018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8020 -e 's:$: $lt_compiler_flag:'`
b0322a85 8021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8022 (eval "$lt_compile" 2>conftest.err)
8023 ac_status=$?
8024 cat conftest.err >&5
b0322a85 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8026 if (exit $ac_status) && test -s "$ac_outfile"; then
8027 # The compiler can only warn and ignore the option if not recognized
8028 # So say no if there are warnings other than the usual output.
b0322a85 8029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
8030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8032 lt_cv_prog_compiler_rtti_exceptions=yes
8033 fi
8034 fi
8035 $RM conftest*
d9898ee8 8036
8d138742 8037fi
b0322a85 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 8039$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 8040
8d138742
CE
8041if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8042 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8043else
8044 :
8045fi
d9898ee8 8046
8d138742 8047fi
d9898ee8 8048
d9898ee8 8049
d9898ee8 8050
d9898ee8 8051
d9898ee8 8052
d9898ee8 8053
8d138742
CE
8054 lt_prog_compiler_wl=
8055lt_prog_compiler_pic=
8056lt_prog_compiler_static=
8057
8d138742
CE
8058
8059 if test "$GCC" = yes; then
8060 lt_prog_compiler_wl='-Wl,'
8061 lt_prog_compiler_static='-static'
d9898ee8 8062
8d138742
CE
8063 case $host_os in
8064 aix*)
8065 # All AIX code is PIC.
8066 if test "$host_cpu" = ia64; then
8067 # AIX 5 now supports IA64 processor
8068 lt_prog_compiler_static='-Bstatic'
d9898ee8 8069 fi
8070 ;;
8071
8d138742
CE
8072 amigaos*)
8073 case $host_cpu in
8074 powerpc)
8075 # see comment about AmigaOS4 .so support
8076 lt_prog_compiler_pic='-fPIC'
8077 ;;
8078 m68k)
8079 # FIXME: we need at least 68020 code to build shared libraries, but
8080 # adding the `-m68020' flag to GCC prevents building anything better,
8081 # like `-m68040'.
8082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8083 ;;
8084 esac
d9898ee8 8085 ;;
8086
8d138742
CE
8087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8088 # PIC is the default for these OSes.
d9898ee8 8089 ;;
d9898ee8 8090
8d138742
CE
8091 mingw* | cygwin* | pw32* | os2* | cegcc*)
8092 # This hack is so that the source file can tell whether it is being
8093 # built for inclusion in a dll (and should export symbols for example).
8094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8095 # (--disable-auto-import) libraries
8096 lt_prog_compiler_pic='-DDLL_EXPORT'
d9898ee8 8097 ;;
d9898ee8 8098
8d138742
CE
8099 darwin* | rhapsody*)
8100 # PIC is the default on this platform
8101 # Common symbols not allowed in MH_DYLIB files
8102 lt_prog_compiler_pic='-fno-common'
d9898ee8 8103 ;;
d9898ee8 8104
b0322a85
CE
8105 haiku*)
8106 # PIC is the default for Haiku.
8107 # The "-static" flag exists, but is broken.
8108 lt_prog_compiler_static=
8109 ;;
8110
8d138742
CE
8111 hpux*)
8112 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8113 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8114 # sets the default TLS model and affects inlining.
8115 case $host_cpu in
8116 hppa*64*)
8117 # +Z the default
8118 ;;
8119 *)
8120 lt_prog_compiler_pic='-fPIC'
8121 ;;
8122 esac
8123 ;;
ac40fd9e 8124
8d138742
CE
8125 interix[3-9]*)
8126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8127 # Instead, we relocate shared libraries at runtime.
8128 ;;
d9898ee8 8129
8d138742
CE
8130 msdosdjgpp*)
8131 # Just because we use GCC doesn't mean we suddenly get shared libraries
8132 # on systems that don't support them.
8133 lt_prog_compiler_can_build_shared=no
8134 enable_shared=no
8135 ;;
d9898ee8 8136
8d138742
CE
8137 *nto* | *qnx*)
8138 # QNX uses GNU C++, but need to define -shared option too, otherwise
8139 # it will coredump.
8140 lt_prog_compiler_pic='-fPIC -shared'
8141 ;;
d9898ee8 8142
8d138742
CE
8143 sysv4*MP*)
8144 if test -d /usr/nec; then
8145 lt_prog_compiler_pic=-Kconform_pic
8146 fi
8147 ;;
d9898ee8 8148
8d138742
CE
8149 *)
8150 lt_prog_compiler_pic='-fPIC'
8151 ;;
8152 esac
b0322a85
CE
8153
8154 case $cc_basename in
8155 nvcc*) # Cuda Compiler Driver 2.2
8156 lt_prog_compiler_wl='-Xlinker '
8157 if test -n "$lt_prog_compiler_pic"; then
8158 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8159 fi
8160 ;;
8161 esac
d9898ee8 8162 else
8d138742 8163 # PORTME Check for flag to pass linker flags through the system compiler.
d9898ee8 8164 case $host_os in
8d138742
CE
8165 aix*)
8166 lt_prog_compiler_wl='-Wl,'
8167 if test "$host_cpu" = ia64; then
8168 # AIX 5 now supports IA64 processor
8169 lt_prog_compiler_static='-Bstatic'
d9898ee8 8170 else
8d138742 8171 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d9898ee8 8172 fi
8173 ;;
d9898ee8 8174
8d138742
CE
8175 mingw* | cygwin* | pw32* | os2* | cegcc*)
8176 # This hack is so that the source file can tell whether it is being
8177 # built for inclusion in a dll (and should export symbols for example).
8178 lt_prog_compiler_pic='-DDLL_EXPORT'
8179 ;;
d9898ee8 8180
8d138742
CE
8181 hpux9* | hpux10* | hpux11*)
8182 lt_prog_compiler_wl='-Wl,'
8183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8184 # not for PA HP-UX.
8185 case $host_cpu in
8186 hppa*64*|ia64*)
8187 # +Z the default
8188 ;;
8189 *)
8190 lt_prog_compiler_pic='+Z'
8191 ;;
8192 esac
8193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8194 lt_prog_compiler_static='${wl}-a ${wl}archive'
8195 ;;
d9898ee8 8196
8d138742
CE
8197 irix5* | irix6* | nonstopux*)
8198 lt_prog_compiler_wl='-Wl,'
8199 # PIC (with -KPIC) is the default.
8200 lt_prog_compiler_static='-non_shared'
8201 ;;
8202
b0322a85 8203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
8204 case $cc_basename in
8205 # old Intel for x86_64 which still supported -KPIC.
8206 ecc*)
8207 lt_prog_compiler_wl='-Wl,'
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-static'
8210 ;;
8211 # icc used to be incompatible with GCC.
8212 # ICC 10 doesn't accept -KPIC any more.
8213 icc* | ifort*)
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-fPIC'
8216 lt_prog_compiler_static='-static'
8217 ;;
8218 # Lahey Fortran 8.1.
8219 lf95*)
8220 lt_prog_compiler_wl='-Wl,'
8221 lt_prog_compiler_pic='--shared'
8222 lt_prog_compiler_static='--static'
8223 ;;
b0322a85
CE
8224 nagfor*)
8225 # NAG Fortran compiler
8226 lt_prog_compiler_wl='-Wl,-Wl,,'
8227 lt_prog_compiler_pic='-PIC'
8228 lt_prog_compiler_static='-Bstatic'
8229 ;;
8230 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8d138742
CE
8231 # Portland Group compilers (*not* the Pentium gcc compiler,
8232 # which looks to be a dead project)
8233 lt_prog_compiler_wl='-Wl,'
8234 lt_prog_compiler_pic='-fpic'
8235 lt_prog_compiler_static='-Bstatic'
8236 ;;
8237 ccc*)
8238 lt_prog_compiler_wl='-Wl,'
8239 # All Alpha code is PIC.
8240 lt_prog_compiler_static='-non_shared'
8241 ;;
b0322a85
CE
8242 xl* | bgxl* | bgf* | mpixl*)
8243 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
8244 lt_prog_compiler_wl='-Wl,'
8245 lt_prog_compiler_pic='-qpic'
8246 lt_prog_compiler_static='-qstaticlink'
8247 ;;
8248 *)
8249 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
8250 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8251 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8252 lt_prog_compiler_pic='-KPIC'
8253 lt_prog_compiler_static='-Bstatic'
8254 lt_prog_compiler_wl=''
8255 ;;
8256 *Sun\ F* | *Sun*Fortran*)
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-Bstatic'
8259 lt_prog_compiler_wl='-Qoption ld '
8260 ;;
8d138742
CE
8261 *Sun\ C*)
8262 # Sun C 5.9
8263 lt_prog_compiler_pic='-KPIC'
8264 lt_prog_compiler_static='-Bstatic'
8265 lt_prog_compiler_wl='-Wl,'
8266 ;;
b0322a85
CE
8267 *Intel*\ [CF]*Compiler*)
8268 lt_prog_compiler_wl='-Wl,'
8269 lt_prog_compiler_pic='-fPIC'
8270 lt_prog_compiler_static='-static'
8271 ;;
8272 *Portland\ Group*)
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_pic='-fpic'
8d138742 8275 lt_prog_compiler_static='-Bstatic'
8d138742
CE
8276 ;;
8277 esac
8278 ;;
8279 esac
8280 ;;
d9898ee8 8281
8d138742
CE
8282 newsos6)
8283 lt_prog_compiler_pic='-KPIC'
8284 lt_prog_compiler_static='-Bstatic'
8285 ;;
d9898ee8 8286
8d138742
CE
8287 *nto* | *qnx*)
8288 # QNX uses GNU C++, but need to define -shared option too, otherwise
8289 # it will coredump.
8290 lt_prog_compiler_pic='-fPIC -shared'
8291 ;;
d9898ee8 8292
8d138742
CE
8293 osf3* | osf4* | osf5*)
8294 lt_prog_compiler_wl='-Wl,'
8295 # All OSF/1 code is PIC.
8296 lt_prog_compiler_static='-non_shared'
d9898ee8 8297 ;;
8d138742
CE
8298
8299 rdos*)
8300 lt_prog_compiler_static='-non_shared'
d9898ee8 8301 ;;
8d138742
CE
8302
8303 solaris*)
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-Bstatic'
8306 case $cc_basename in
b0322a85 8307 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742
CE
8308 lt_prog_compiler_wl='-Qoption ld ';;
8309 *)
8310 lt_prog_compiler_wl='-Wl,';;
8311 esac
d9898ee8 8312 ;;
d9898ee8 8313
8d138742
CE
8314 sunos4*)
8315 lt_prog_compiler_wl='-Qoption ld '
8316 lt_prog_compiler_pic='-PIC'
8317 lt_prog_compiler_static='-Bstatic'
8318 ;;
d9898ee8 8319
8d138742
CE
8320 sysv4 | sysv4.2uw2* | sysv4.3*)
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-Bstatic'
8324 ;;
ac40fd9e 8325
8d138742
CE
8326 sysv4*MP*)
8327 if test -d /usr/nec ;then
8328 lt_prog_compiler_pic='-Kconform_pic'
8329 lt_prog_compiler_static='-Bstatic'
8330 fi
8331 ;;
d9898ee8 8332
8d138742
CE
8333 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 ;;
d9898ee8 8338
8d138742
CE
8339 unicos*)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_can_build_shared=no
8342 ;;
d9898ee8 8343
8d138742
CE
8344 uts4*)
8345 lt_prog_compiler_pic='-pic'
8346 lt_prog_compiler_static='-Bstatic'
d9898ee8 8347 ;;
8d138742
CE
8348
8349 *)
8350 lt_prog_compiler_can_build_shared=no
d9898ee8 8351 ;;
8d138742
CE
8352 esac
8353 fi
8354
8355case $host_os in
8356 # For platforms which do not support PIC, -DPIC is meaningless:
8357 *djgpp*)
8358 lt_prog_compiler_pic=
d9898ee8 8359 ;;
8d138742
CE
8360 *)
8361 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
d9898ee8 8362 ;;
8d138742 8363esac
d9898ee8 8364
b0322a85
CE
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8366$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8367if ${lt_cv_prog_compiler_pic+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369else
8370 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8371fi
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8373$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8374lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d9898ee8 8375
8d138742
CE
8376#
8377# Check to make sure the PIC flag actually works.
8378#
8379if test -n "$lt_prog_compiler_pic"; then
b0322a85 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 8381$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 8382if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742
CE
8383 $as_echo_n "(cached) " >&6
8384else
8385 lt_cv_prog_compiler_pic_works=no
8386 ac_outfile=conftest.$ac_objext
8387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8388 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8389 # Insert the option either (1) after the last *FLAGS variable, or
8390 # (2) before a word containing "conftest.", or (3) at the end.
8391 # Note that $ac_compile itself does not contain backslashes and begins
8392 # with a dollar sign (not a hyphen), so the echo should work correctly.
8393 # The option is referenced via a variable to avoid confusing sed.
8394 lt_compile=`echo "$ac_compile" | $SED \
8395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8397 -e 's:$: $lt_compiler_flag:'`
b0322a85 8398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8399 (eval "$lt_compile" 2>conftest.err)
8400 ac_status=$?
8401 cat conftest.err >&5
b0322a85 8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8403 if (exit $ac_status) && test -s "$ac_outfile"; then
8404 # The compiler can only warn and ignore the option if not recognized
8405 # So say no if there are warnings other than the usual output.
b0322a85 8406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
8407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8409 lt_cv_prog_compiler_pic_works=yes
8410 fi
8411 fi
8412 $RM conftest*
d9898ee8 8413
8d138742 8414fi
b0322a85 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 8416$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 8417
8d138742
CE
8418if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8419 case $lt_prog_compiler_pic in
8420 "" | " "*) ;;
8421 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8422 esac
8423else
8424 lt_prog_compiler_pic=
8425 lt_prog_compiler_can_build_shared=no
8426fi
d9898ee8 8427
8d138742 8428fi
d9898ee8 8429
d9898ee8 8430
d9898ee8 8431
d9898ee8 8432
d9898ee8 8433
d9898ee8 8434
b0322a85
CE
8435
8436
8437
8438
8439
8d138742
CE
8440#
8441# Check to make sure the static flag actually works.
8442#
8443wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 8445$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 8446if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742
CE
8447 $as_echo_n "(cached) " >&6
8448else
8449 lt_cv_prog_compiler_static_works=no
8450 save_LDFLAGS="$LDFLAGS"
8451 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8452 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8454 # The linker can only warn and ignore the option if not recognized
8455 # So say no if there are warnings
8456 if test -s conftest.err; then
8457 # Append any errors to the config.log.
8458 cat conftest.err 1>&5
b0322a85 8459 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
8460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8461 if diff conftest.exp conftest.er2 >/dev/null; then
8462 lt_cv_prog_compiler_static_works=yes
8463 fi
8464 else
8465 lt_cv_prog_compiler_static_works=yes
8466 fi
8467 fi
8468 $RM -r conftest*
8469 LDFLAGS="$save_LDFLAGS"
ac40fd9e 8470
8d138742 8471fi
b0322a85 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742 8473$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 8474
8d138742
CE
8475if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8476 :
8477else
8478 lt_prog_compiler_static=
8479fi
d9898ee8 8480
d9898ee8 8481
d9898ee8 8482
d9898ee8 8483
d9898ee8 8484
d9898ee8 8485
8d138742 8486
b0322a85 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8488$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8489if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8490 $as_echo_n "(cached) " >&6
8491else
8492 lt_cv_prog_compiler_c_o=no
8493 $RM -r conftest 2>/dev/null
8494 mkdir conftest
8495 cd conftest
8496 mkdir out
8497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8498
8499 lt_compiler_flag="-o out/conftest2.$ac_objext"
8500 # Insert the option either (1) after the last *FLAGS variable, or
8501 # (2) before a word containing "conftest.", or (3) at the end.
8502 # Note that $ac_compile itself does not contain backslashes and begins
8503 # with a dollar sign (not a hyphen), so the echo should work correctly.
8504 lt_compile=`echo "$ac_compile" | $SED \
8505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8507 -e 's:$: $lt_compiler_flag:'`
b0322a85 8508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8509 (eval "$lt_compile" 2>out/conftest.err)
8510 ac_status=$?
8511 cat out/conftest.err >&5
b0322a85 8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8514 then
8515 # The compiler can only warn and ignore the option if not recognized
8516 # So say no if there are warnings
b0322a85 8517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8520 lt_cv_prog_compiler_c_o=yes
8521 fi
8522 fi
8523 chmod u+w . 2>&5
8524 $RM conftest*
8525 # SGI C++ compiler will create directory out/ii_files/ for
8526 # template instantiation
8527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8528 $RM out/* && rmdir out
8529 cd ..
8530 $RM -r conftest
8531 $RM conftest*
8532
d9898ee8 8533fi
b0322a85 8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8535$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8536
d9898ee8 8537
d9898ee8 8538
d9898ee8 8539
8540
d9898ee8 8541
b0322a85 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8543$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8544if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8545 $as_echo_n "(cached) " >&6
8546else
8547 lt_cv_prog_compiler_c_o=no
8548 $RM -r conftest 2>/dev/null
8549 mkdir conftest
8550 cd conftest
8551 mkdir out
8552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8553
8d138742
CE
8554 lt_compiler_flag="-o out/conftest2.$ac_objext"
8555 # Insert the option either (1) after the last *FLAGS variable, or
8556 # (2) before a word containing "conftest.", or (3) at the end.
8557 # Note that $ac_compile itself does not contain backslashes and begins
8558 # with a dollar sign (not a hyphen), so the echo should work correctly.
8559 lt_compile=`echo "$ac_compile" | $SED \
8560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562 -e 's:$: $lt_compiler_flag:'`
b0322a85 8563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8564 (eval "$lt_compile" 2>out/conftest.err)
8565 ac_status=$?
8566 cat out/conftest.err >&5
b0322a85 8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8569 then
8570 # The compiler can only warn and ignore the option if not recognized
8571 # So say no if there are warnings
b0322a85 8572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8575 lt_cv_prog_compiler_c_o=yes
8576 fi
8577 fi
8578 chmod u+w . 2>&5
8579 $RM conftest*
8580 # SGI C++ compiler will create directory out/ii_files/ for
8581 # template instantiation
8582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8583 $RM out/* && rmdir out
8584 cd ..
8585 $RM -r conftest
8586 $RM conftest*
d9898ee8 8587
8d138742 8588fi
b0322a85 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8590$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8591
d9898ee8 8592
d9898ee8 8593
d9898ee8 8594
8d138742
CE
8595hard_links="nottested"
8596if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8597 # do not overwrite the value of need_locks provided by the user
b0322a85 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
8599$as_echo_n "checking if we can lock with hard links... " >&6; }
8600 hard_links=yes
8601 $RM conftest*
8602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8603 touch conftest.a
8604 ln conftest.a conftest.b 2>&5 || hard_links=no
8605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742
CE
8607$as_echo "$hard_links" >&6; }
8608 if test "$hard_links" = no; then
b0322a85 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8d138742
CE
8610$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8611 need_locks=warn
8612 fi
8613else
8614 need_locks=no
8615fi
d9898ee8 8616
d9898ee8 8617
d9898ee8 8618
d9898ee8 8619
d9898ee8 8620
d9898ee8 8621
b0322a85 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742 8623$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8624
8d138742
CE
8625 runpath_var=
8626 allow_undefined_flag=
8627 always_export_symbols=no
8628 archive_cmds=
8629 archive_expsym_cmds=
8630 compiler_needs_object=no
8631 enable_shared_with_static_runtimes=no
8632 export_dynamic_flag_spec=
8633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8634 hardcode_automatic=no
8635 hardcode_direct=no
8636 hardcode_direct_absolute=no
8637 hardcode_libdir_flag_spec=
8d138742
CE
8638 hardcode_libdir_separator=
8639 hardcode_minus_L=no
8640 hardcode_shlibpath_var=unsupported
8641 inherit_rpath=no
8642 link_all_deplibs=unknown
8643 module_cmds=
8644 module_expsym_cmds=
8645 old_archive_from_new_cmds=
8646 old_archive_from_expsyms_cmds=
8647 thread_safe_flag_spec=
8648 whole_archive_flag_spec=
8649 # include_expsyms should be a list of space-separated symbols to be *always*
8650 # included in the symbol list
8651 include_expsyms=
8652 # exclude_expsyms can be an extended regexp of symbols to exclude
8653 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8654 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8655 # as well as any symbol that contains `d'.
8656 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8657 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8658 # platforms (ab)use it in PIC code, but their linkers get confused if
8659 # the symbol is explicitly referenced. Since portable code cannot
8660 # rely on this symbol name, it's probably fine to never include it in
8661 # preloaded symbol tables.
8662 # Exclude shared library initialization/finalization symbols.
8663 extract_expsyms_cmds=
d9898ee8 8664
8d138742
CE
8665 case $host_os in
8666 cygwin* | mingw* | pw32* | cegcc*)
8667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8668 # When not using gcc, we currently assume that we are using
8669 # Microsoft Visual C++.
8670 if test "$GCC" != yes; then
8671 with_gnu_ld=no
8672 fi
8673 ;;
8674 interix*)
8675 # we just hope/assume this is gcc and not c89 (= MSVC++)
8676 with_gnu_ld=yes
8677 ;;
8678 openbsd*)
8679 with_gnu_ld=no
8680 ;;
8681 esac
d9898ee8 8682
8d138742 8683 ld_shlibs=yes
b0322a85
CE
8684
8685 # On some targets, GNU ld is compatible enough with the native linker
8686 # that we're better off using the native interface for both.
8687 lt_use_gnu_ld_interface=no
8d138742 8688 if test "$with_gnu_ld" = yes; then
b0322a85
CE
8689 case $host_os in
8690 aix*)
8691 # The AIX port of GNU ld has always aspired to compatibility
8692 # with the native linker. However, as the warning in the GNU ld
8693 # block says, versions before 2.19.5* couldn't really create working
8694 # shared libraries, regardless of the interface used.
8695 case `$LD -v 2>&1` in
8696 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8697 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8698 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8699 *)
8700 lt_use_gnu_ld_interface=yes
8701 ;;
8702 esac
8703 ;;
8704 *)
8705 lt_use_gnu_ld_interface=yes
8706 ;;
8707 esac
8708 fi
8709
8710 if test "$lt_use_gnu_ld_interface" = yes; then
8d138742
CE
8711 # If archive_cmds runs LD, not CC, wlarc should be empty
8712 wlarc='${wl}'
8713
8714 # Set some defaults for GNU ld with shared library support. These
8715 # are reset later if shared libraries are not supported. Putting them
8716 # here allows them to be overridden if necessary.
8717 runpath_var=LD_RUN_PATH
8718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719 export_dynamic_flag_spec='${wl}--export-dynamic'
8720 # ancient GNU ld didn't support --whole-archive et. al.
8721 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8722 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8723 else
8724 whole_archive_flag_spec=
8725 fi
8726 supports_anon_versioning=no
8727 case `$LD -v 2>&1` in
b0322a85 8728 *GNU\ gold*) supports_anon_versioning=yes ;;
8d138742
CE
8729 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8730 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8731 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8732 *\ 2.11.*) ;; # other 2.11 versions
8733 *) supports_anon_versioning=yes ;;
8734 esac
d9898ee8 8735
8d138742
CE
8736 # See if GNU ld supports shared libraries.
8737 case $host_os in
8738 aix[3-9]*)
8739 # On AIX/PPC, the GNU linker is very broken
8740 if test "$host_cpu" != ia64; then
8741 ld_shlibs=no
8742 cat <<_LT_EOF 1>&2
d9898ee8 8743
b0322a85 8744*** Warning: the GNU linker, at least up to release 2.19, is reported
8d138742
CE
8745*** to be unable to reliably create shared libraries on AIX.
8746*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
8747*** really care for shared libraries, you may want to install binutils
8748*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8749*** You will then need to restart the configuration process.
d9898ee8 8750
8d138742
CE
8751_LT_EOF
8752 fi
8753 ;;
d9898ee8 8754
8d138742
CE
8755 amigaos*)
8756 case $host_cpu in
8757 powerpc)
8758 # see comment about AmigaOS4 .so support
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760 archive_expsym_cmds=''
8761 ;;
8762 m68k)
8763 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)'
8764 hardcode_libdir_flag_spec='-L$libdir'
8765 hardcode_minus_L=yes
8766 ;;
8767 esac
8768 ;;
d9898ee8 8769
8d138742
CE
8770 beos*)
8771 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8772 allow_undefined_flag=unsupported
8773 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8774 # support --undefined. This deserves some investigation. FIXME
8775 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776 else
8777 ld_shlibs=no
8778 fi
8779 ;;
d9898ee8 8780
8d138742
CE
8781 cygwin* | mingw* | pw32* | cegcc*)
8782 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8783 # as there is no search path for DLLs.
8784 hardcode_libdir_flag_spec='-L$libdir'
b0322a85 8785 export_dynamic_flag_spec='${wl}--export-all-symbols'
8d138742
CE
8786 allow_undefined_flag=unsupported
8787 always_export_symbols=no
8788 enable_shared_with_static_runtimes=yes
b0322a85
CE
8789 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'
8790 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d9898ee8 8791
8d138742
CE
8792 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8794 # If the export-symbols file already is a .def file (1st line
8795 # is EXPORTS), use it as is; otherwise, prepend...
8796 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8797 cp $export_symbols $output_objdir/$soname.def;
8798 else
8799 echo EXPORTS > $output_objdir/$soname.def;
8800 cat $export_symbols >> $output_objdir/$soname.def;
8801 fi~
8802 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8803 else
8804 ld_shlibs=no
8805 fi
8806 ;;
d9898ee8 8807
b0322a85
CE
8808 haiku*)
8809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810 link_all_deplibs=yes
8811 ;;
8812
8d138742
CE
8813 interix[3-9]*)
8814 hardcode_direct=no
8815 hardcode_shlibpath_var=no
8816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8817 export_dynamic_flag_spec='${wl}-E'
8818 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8819 # Instead, shared libraries are loaded at an image base (0x10000000 by
8820 # default) and relocated if they conflict, which is a slow very memory
8821 # consuming and fragmenting process. To avoid this, we pick a random,
8822 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8823 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8825 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'
8826 ;;
d9898ee8 8827
b0322a85 8828 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742
CE
8829 tmp_diet=no
8830 if test "$host_os" = linux-dietlibc; then
8831 case $cc_basename in
8832 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8833 esac
8834 fi
8835 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8836 && test "$tmp_diet" = no
8837 then
b0322a85 8838 tmp_addflag=' $pic_flag'
8d138742
CE
8839 tmp_sharedflag='-shared'
8840 case $cc_basename,$host_cpu in
8841 pgcc*) # Portland Group C compiler
b0322a85 8842 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'
8d138742
CE
8843 tmp_addflag=' $pic_flag'
8844 ;;
b0322a85
CE
8845 pgf77* | pgf90* | pgf95* | pgfortran*)
8846 # Portland Group f77 and f90 compilers
8847 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'
8d138742
CE
8848 tmp_addflag=' $pic_flag -Mnomain' ;;
8849 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8850 tmp_addflag=' -i_dynamic' ;;
8851 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8852 tmp_addflag=' -i_dynamic -nofor_main' ;;
8853 ifc* | ifort*) # Intel Fortran compiler
8854 tmp_addflag=' -nofor_main' ;;
8855 lf95*) # Lahey Fortran 8.1
8856 whole_archive_flag_spec=
8857 tmp_sharedflag='--shared' ;;
b0322a85 8858 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
8859 tmp_sharedflag='-qmkshrobj'
8860 tmp_addflag= ;;
b0322a85
CE
8861 nvcc*) # Cuda Compiler Driver 2.2
8862 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'
8863 compiler_needs_object=yes
8864 ;;
8d138742
CE
8865 esac
8866 case `$CC -V 2>&1 | sed 5q` in
8867 *Sun\ C*) # Sun C 5.9
b0322a85 8868 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'
8d138742
CE
8869 compiler_needs_object=yes
8870 tmp_sharedflag='-G' ;;
8871 *Sun\ F*) # Sun Fortran 8.3
8872 tmp_sharedflag='-G' ;;
8873 esac
8874 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8875
8d138742
CE
8876 if test "x$supports_anon_versioning" = xyes; then
8877 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8879 echo "local: *; };" >> $output_objdir/$libname.ver~
8880 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8881 fi
d9898ee8 8882
8d138742 8883 case $cc_basename in
b0322a85 8884 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
8885 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8886 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
b0322a85
CE
8887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8d138742
CE
8889 if test "x$supports_anon_versioning" = xyes; then
8890 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8892 echo "local: *; };" >> $output_objdir/$libname.ver~
b0322a85 8893 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
8894 fi
8895 ;;
8896 esac
8897 else
8898 ld_shlibs=no
8899 fi
8900 ;;
d9898ee8 8901
8d138742
CE
8902 netbsd*)
8903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8904 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8905 wlarc=
8906 else
b0322a85
CE
8907 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
8909 fi
8910 ;;
d9898ee8 8911
8d138742
CE
8912 solaris*)
8913 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8914 ld_shlibs=no
8915 cat <<_LT_EOF 1>&2
d9898ee8 8916
8d138742
CE
8917*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8918*** create shared libraries on Solaris systems. Therefore, libtool
8919*** is disabling shared libraries support. We urge you to upgrade GNU
8920*** binutils to release 2.9.1 or newer. Another option is to modify
8921*** your PATH or compiler configuration so that the native linker is
8922*** used, and then restart.
d9898ee8 8923
8d138742
CE
8924_LT_EOF
8925 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
8926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8927 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
8928 else
8929 ld_shlibs=no
8930 fi
8931 ;;
d9898ee8 8932
8d138742
CE
8933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8934 case `$LD -v 2>&1` in
8935 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8936 ld_shlibs=no
8937 cat <<_LT_EOF 1>&2
d9898ee8 8938
8d138742
CE
8939*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8940*** reliably create shared libraries on SCO systems. Therefore, libtool
8941*** is disabling shared libraries support. We urge you to upgrade GNU
8942*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8943*** your PATH or compiler configuration so that the native linker is
8944*** used, and then restart.
d9898ee8 8945
8d138742
CE
8946_LT_EOF
8947 ;;
8948 *)
8949 # For security reasons, it is highly recommended that you always
8950 # use absolute paths for naming shared libraries, and exclude the
8951 # DT_RUNPATH tag from executables and libraries. But doing so
8952 # requires that you compile everything twice, which is a pain.
8953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8956 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8957 else
8958 ld_shlibs=no
8959 fi
8960 ;;
8961 esac
8962 ;;
d9898ee8 8963
8d138742
CE
8964 sunos4*)
8965 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8966 wlarc=
8967 hardcode_direct=yes
8968 hardcode_shlibpath_var=no
8969 ;;
d9898ee8 8970
8d138742
CE
8971 *)
8972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
b0322a85
CE
8973 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
8975 else
8976 ld_shlibs=no
8977 fi
8978 ;;
8979 esac
d9898ee8 8980
8d138742
CE
8981 if test "$ld_shlibs" = no; then
8982 runpath_var=
8983 hardcode_libdir_flag_spec=
8984 export_dynamic_flag_spec=
8985 whole_archive_flag_spec=
8986 fi
8987 else
8988 # PORTME fill in a description of your system's linker (not GNU ld)
8989 case $host_os in
8990 aix3*)
8991 allow_undefined_flag=unsupported
8992 always_export_symbols=yes
8993 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'
8994 # Note: this linker hardcodes the directories in LIBPATH if there
8995 # are no directories specified by -L.
8996 hardcode_minus_L=yes
8997 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8998 # Neither direct hardcoding nor static linking is supported with a
8999 # broken collect2.
9000 hardcode_direct=unsupported
9001 fi
9002 ;;
d9898ee8 9003
8d138742
CE
9004 aix[4-9]*)
9005 if test "$host_cpu" = ia64; then
9006 # On IA64, the linker does run time linking by default, so we don't
9007 # have to do anything special.
9008 aix_use_runtimelinking=no
9009 exp_sym_flag='-Bexport'
9010 no_entry_flag=""
9011 else
9012 # If we're using GNU nm, then we don't want the "-C" option.
9013 # -C means demangle to AIX nm, but means don't demangle with GNU nm
b0322a85
CE
9014 # Also, AIX nm treats weak defined symbols like other global
9015 # defined symbols, whereas GNU nm marks them as "W".
8d138742 9016 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
b0322a85 9017 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'
8d138742
CE
9018 else
9019 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'
9020 fi
9021 aix_use_runtimelinking=no
d9898ee8 9022
8d138742
CE
9023 # Test if we are trying to use run time linking or normal
9024 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9025 # need to do runtime linking.
9026 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9027 for ld_flag in $LDFLAGS; do
9028 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9029 aix_use_runtimelinking=yes
9030 break
9031 fi
9032 done
9033 ;;
9034 esac
d9898ee8 9035
8d138742
CE
9036 exp_sym_flag='-bexport'
9037 no_entry_flag='-bnoentry'
9038 fi
d9898ee8 9039
8d138742
CE
9040 # When large executables or shared objects are built, AIX ld can
9041 # have problems creating the table of contents. If linking a library
9042 # or program results in "error TOC overflow" add -mminimal-toc to
9043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 9045
8d138742
CE
9046 archive_cmds=''
9047 hardcode_direct=yes
9048 hardcode_direct_absolute=yes
9049 hardcode_libdir_separator=':'
9050 link_all_deplibs=yes
9051 file_list_spec='${wl}-f,'
d9898ee8 9052
8d138742
CE
9053 if test "$GCC" = yes; then
9054 case $host_os in aix4.[012]|aix4.[012].*)
9055 # We only want to do this on AIX 4.2 and lower, the check
9056 # below for broken collect2 doesn't work under 4.3+
9057 collect2name=`${CC} -print-prog-name=collect2`
9058 if test -f "$collect2name" &&
9059 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9060 then
9061 # We have reworked collect2
9062 :
9063 else
9064 # We have old collect2
9065 hardcode_direct=unsupported
9066 # It fails to find uninstalled libraries when the uninstalled
9067 # path is not listed in the libpath. Setting hardcode_minus_L
9068 # to unsupported forces relinking
9069 hardcode_minus_L=yes
9070 hardcode_libdir_flag_spec='-L$libdir'
9071 hardcode_libdir_separator=
9072 fi
9073 ;;
9074 esac
9075 shared_flag='-shared'
9076 if test "$aix_use_runtimelinking" = yes; then
9077 shared_flag="$shared_flag "'${wl}-G'
9078 fi
9079 else
9080 # not using gcc
9081 if test "$host_cpu" = ia64; then
9082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9083 # chokes on -Wl,-G. The following line is correct:
9084 shared_flag='-G'
9085 else
9086 if test "$aix_use_runtimelinking" = yes; then
9087 shared_flag='${wl}-G'
9088 else
9089 shared_flag='${wl}-bM:SRE'
9090 fi
9091 fi
9092 fi
d9898ee8 9093
8d138742
CE
9094 export_dynamic_flag_spec='${wl}-bexpall'
9095 # It seems that -bexpall does not export symbols beginning with
9096 # underscore (_), so it is better to generate a list of symbols to export.
9097 always_export_symbols=yes
9098 if test "$aix_use_runtimelinking" = yes; then
9099 # Warning - without using the other runtime loading flags (-brtl),
9100 # -berok will link without error, but may produce a broken library.
9101 allow_undefined_flag='-berok'
9102 # Determine the default libpath from the value encoded in an
9103 # empty executable.
b0322a85
CE
9104 if test "${lt_cv_aix_libpath+set}" = set; then
9105 aix_libpath=$lt_cv_aix_libpath
9106else
9107 if ${lt_cv_aix_libpath_+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109else
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 9111/* end confdefs.h. */
d9898ee8 9112
8d138742
CE
9113int
9114main ()
9115{
d9898ee8 9116
8d138742
CE
9117 ;
9118 return 0;
9119}
9120_ACEOF
b0322a85 9121if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9122
b0322a85
CE
9123 lt_aix_libpath_sed='
9124 /Import File Strings/,/^$/ {
9125 /^0/ {
9126 s/^0 *\([^ ]*\) *$/\1/
9127 p
9128 }
9129 }'
9130 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9131 # Check for a 64-bit object if we didn't find anything.
9132 if test -z "$lt_cv_aix_libpath_"; then
9133 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9134 fi
9135fi
9136rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138 if test -z "$lt_cv_aix_libpath_"; then
9139 lt_cv_aix_libpath_="/usr/lib:/lib"
9140 fi
d9898ee8 9141
8d138742 9142fi
d9898ee8 9143
b0322a85
CE
9144 aix_libpath=$lt_cv_aix_libpath_
9145fi
d9898ee8 9146
8d138742 9147 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
b0322a85 9148 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"
8d138742
CE
9149 else
9150 if test "$host_cpu" = ia64; then
9151 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9152 allow_undefined_flag="-z nodefs"
9153 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"
9154 else
9155 # Determine the default libpath from the value encoded in an
9156 # empty executable.
b0322a85
CE
9157 if test "${lt_cv_aix_libpath+set}" = set; then
9158 aix_libpath=$lt_cv_aix_libpath
9159else
9160 if ${lt_cv_aix_libpath_+:} false; then :
9161 $as_echo_n "(cached) " >&6
9162else
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 9164/* end confdefs.h. */
d9898ee8 9165
8d138742
CE
9166int
9167main ()
9168{
d9898ee8 9169
8d138742
CE
9170 ;
9171 return 0;
9172}
9173_ACEOF
b0322a85 9174if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9175
b0322a85
CE
9176 lt_aix_libpath_sed='
9177 /Import File Strings/,/^$/ {
9178 /^0/ {
9179 s/^0 *\([^ ]*\) *$/\1/
9180 p
9181 }
9182 }'
9183 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9184 # Check for a 64-bit object if we didn't find anything.
9185 if test -z "$lt_cv_aix_libpath_"; then
9186 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187 fi
9188fi
9189rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 if test -z "$lt_cv_aix_libpath_"; then
9192 lt_cv_aix_libpath_="/usr/lib:/lib"
9193 fi
d9898ee8 9194
8d138742 9195fi
d9898ee8 9196
b0322a85
CE
9197 aix_libpath=$lt_cv_aix_libpath_
9198fi
d9898ee8 9199
8d138742
CE
9200 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9201 # Warning - without using the other run time loading flags,
9202 # -berok will link without error, but may produce a broken library.
9203 no_undefined_flag=' ${wl}-bernotok'
9204 allow_undefined_flag=' ${wl}-berok'
b0322a85
CE
9205 if test "$with_gnu_ld" = yes; then
9206 # We only use this code for GNU lds that support --whole-archive.
9207 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9208 else
9209 # Exported symbols can be pulled into shared objects from archives
9210 whole_archive_flag_spec='$convenience'
9211 fi
8d138742
CE
9212 archive_cmds_need_lc=yes
9213 # This is similar to how AIX traditionally builds its shared libraries.
9214 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'
9215 fi
9216 fi
9217 ;;
d9898ee8 9218
8d138742
CE
9219 amigaos*)
9220 case $host_cpu in
9221 powerpc)
9222 # see comment about AmigaOS4 .so support
9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224 archive_expsym_cmds=''
9225 ;;
9226 m68k)
9227 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)'
9228 hardcode_libdir_flag_spec='-L$libdir'
9229 hardcode_minus_L=yes
9230 ;;
9231 esac
9232 ;;
d9898ee8 9233
8d138742
CE
9234 bsdi[45]*)
9235 export_dynamic_flag_spec=-rdynamic
9236 ;;
d9898ee8 9237
8d138742
CE
9238 cygwin* | mingw* | pw32* | cegcc*)
9239 # When not using gcc, we currently assume that we are using
9240 # Microsoft Visual C++.
9241 # hardcode_libdir_flag_spec is actually meaningless, as there is
9242 # no search path for DLLs.
b0322a85
CE
9243 case $cc_basename in
9244 cl*)
9245 # Native MSVC
9246 hardcode_libdir_flag_spec=' '
9247 allow_undefined_flag=unsupported
9248 always_export_symbols=yes
9249 file_list_spec='@'
9250 # Tell ltmain to make .lib files, not .a files.
9251 libext=lib
9252 # Tell ltmain to make .dll files, not .so files.
9253 shrext_cmds=".dll"
9254 # FIXME: Setting linknames here is a bad hack.
9255 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9256 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9257 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9258 else
9259 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9260 fi~
9261 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9262 linknames='
9263 # The linker will not automatically build a static lib if we build a DLL.
9264 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9265 enable_shared_with_static_runtimes=yes
9266 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9268 # Don't use ranlib
9269 old_postinstall_cmds='chmod 644 $oldlib'
9270 postlink_cmds='lt_outputfile="@OUTPUT@"~
9271 lt_tool_outputfile="@TOOL_OUTPUT@"~
9272 case $lt_outputfile in
9273 *.exe|*.EXE) ;;
9274 *)
9275 lt_outputfile="$lt_outputfile.exe"
9276 lt_tool_outputfile="$lt_tool_outputfile.exe"
9277 ;;
9278 esac~
9279 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9280 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9281 $RM "$lt_outputfile.manifest";
9282 fi'
9283 ;;
9284 *)
9285 # Assume MSVC wrapper
9286 hardcode_libdir_flag_spec=' '
9287 allow_undefined_flag=unsupported
9288 # Tell ltmain to make .lib files, not .a files.
9289 libext=lib
9290 # Tell ltmain to make .dll files, not .so files.
9291 shrext_cmds=".dll"
9292 # FIXME: Setting linknames here is a bad hack.
9293 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9294 # The linker will automatically build a .lib file if we build a DLL.
9295 old_archive_from_new_cmds='true'
9296 # FIXME: Should let the user specify the lib program.
9297 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9298 enable_shared_with_static_runtimes=yes
9299 ;;
9300 esac
8d138742 9301 ;;
d9898ee8 9302
8d138742 9303 darwin* | rhapsody*)
d9898ee8 9304
d9898ee8 9305
8d138742
CE
9306 archive_cmds_need_lc=no
9307 hardcode_direct=no
9308 hardcode_automatic=yes
9309 hardcode_shlibpath_var=unsupported
b0322a85
CE
9310 if test "$lt_cv_ld_force_load" = "yes"; then
9311 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\"`'
9312
9313 else
9314 whole_archive_flag_spec=''
9315 fi
8d138742
CE
9316 link_all_deplibs=yes
9317 allow_undefined_flag="$_lt_dar_allow_undefined"
9318 case $cc_basename in
9319 ifort*) _lt_dar_can_shared=yes ;;
9320 *) _lt_dar_can_shared=$GCC ;;
9321 esac
9322 if test "$_lt_dar_can_shared" = "yes"; then
b0322a85 9323 output_verbose_link_cmd=func_echo_all
8d138742
CE
9324 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9325 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9326 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}"
9327 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 9328
8d138742
CE
9329 else
9330 ld_shlibs=no
9331 fi
d9898ee8 9332
8d138742 9333 ;;
d9898ee8 9334
8d138742
CE
9335 dgux*)
9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_shlibpath_var=no
9339 ;;
d9898ee8 9340
8d138742
CE
9341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9342 # support. Future versions do this automatically, but an explicit c++rt0.o
9343 # does not break anything, and helps significantly (at the cost of a little
9344 # extra space).
9345 freebsd2.2*)
9346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9347 hardcode_libdir_flag_spec='-R$libdir'
9348 hardcode_direct=yes
9349 hardcode_shlibpath_var=no
9350 ;;
d9898ee8 9351
8d138742 9352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 9353 freebsd2.*)
8d138742
CE
9354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9355 hardcode_direct=yes
9356 hardcode_minus_L=yes
9357 hardcode_shlibpath_var=no
9358 ;;
d9898ee8 9359
8d138742
CE
9360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9361 freebsd* | dragonfly*)
b0322a85 9362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9363 hardcode_libdir_flag_spec='-R$libdir'
9364 hardcode_direct=yes
9365 hardcode_shlibpath_var=no
9366 ;;
d9898ee8 9367
8d138742
CE
9368 hpux9*)
9369 if test "$GCC" = yes; then
b0322a85 9370 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'
8d138742
CE
9371 else
9372 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'
9373 fi
9374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9375 hardcode_libdir_separator=:
9376 hardcode_direct=yes
d9898ee8 9377
8d138742
CE
9378 # hardcode_minus_L: Not really in the search PATH,
9379 # but as the default location of the library.
9380 hardcode_minus_L=yes
9381 export_dynamic_flag_spec='${wl}-E'
9382 ;;
d9898ee8 9383
8d138742 9384 hpux10*)
b0322a85
CE
9385 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9386 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9387 else
9388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9389 fi
9390 if test "$with_gnu_ld" = no; then
9391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8d138742
CE
9392 hardcode_libdir_separator=:
9393 hardcode_direct=yes
9394 hardcode_direct_absolute=yes
9395 export_dynamic_flag_spec='${wl}-E'
9396 # hardcode_minus_L: Not really in the search PATH,
9397 # but as the default location of the library.
9398 hardcode_minus_L=yes
9399 fi
9400 ;;
d9898ee8 9401
8d138742 9402 hpux11*)
b0322a85 9403 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8d138742
CE
9404 case $host_cpu in
9405 hppa*64*)
9406 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 ;;
9408 ia64*)
b0322a85 9409 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9410 ;;
9411 *)
b0322a85 9412 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9413 ;;
9414 esac
9415 else
9416 case $host_cpu in
9417 hppa*64*)
9418 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 ;;
9420 ia64*)
9421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9422 ;;
9423 *)
b0322a85
CE
9424
9425 # Older versions of the 11.00 compiler do not understand -b yet
9426 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9428$as_echo_n "checking if $CC understands -b... " >&6; }
9429if ${lt_cv_prog_compiler__b+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431else
9432 lt_cv_prog_compiler__b=no
9433 save_LDFLAGS="$LDFLAGS"
9434 LDFLAGS="$LDFLAGS -b"
9435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9437 # The linker can only warn and ignore the option if not recognized
9438 # So say no if there are warnings
9439 if test -s conftest.err; then
9440 # Append any errors to the config.log.
9441 cat conftest.err 1>&5
9442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444 if diff conftest.exp conftest.er2 >/dev/null; then
9445 lt_cv_prog_compiler__b=yes
9446 fi
9447 else
9448 lt_cv_prog_compiler__b=yes
9449 fi
9450 fi
9451 $RM -r conftest*
9452 LDFLAGS="$save_LDFLAGS"
9453
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9456$as_echo "$lt_cv_prog_compiler__b" >&6; }
9457
9458if test x"$lt_cv_prog_compiler__b" = xyes; then
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9460else
9461 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9462fi
9463
8d138742
CE
9464 ;;
9465 esac
9466 fi
9467 if test "$with_gnu_ld" = no; then
9468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9469 hardcode_libdir_separator=:
d9898ee8 9470
8d138742
CE
9471 case $host_cpu in
9472 hppa*64*|ia64*)
9473 hardcode_direct=no
9474 hardcode_shlibpath_var=no
9475 ;;
9476 *)
9477 hardcode_direct=yes
9478 hardcode_direct_absolute=yes
9479 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9480
8d138742
CE
9481 # hardcode_minus_L: Not really in the search PATH,
9482 # but as the default location of the library.
9483 hardcode_minus_L=yes
9484 ;;
9485 esac
9486 fi
9487 ;;
d9898ee8 9488
8d138742
CE
9489 irix5* | irix6* | nonstopux*)
9490 if test "$GCC" = yes; then
b0322a85 9491 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'
8d138742
CE
9492 # Try to use the -exported_symbol ld option, if it does not
9493 # work, assume that -exports_file does not work either and
9494 # implicitly export all symbols.
b0322a85
CE
9495 # This should be the same for all languages, so no per-tag cache variable.
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9497$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9498if ${lt_cv_irix_exported_symbol+:} false; then :
9499 $as_echo_n "(cached) " >&6
9500else
9501 save_LDFLAGS="$LDFLAGS"
9502 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h. */
9505int foo (void) { return 0; }
8d138742 9506_ACEOF
b0322a85
CE
9507if ac_fn_c_try_link "$LINENO"; then :
9508 lt_cv_irix_exported_symbol=yes
8d138742 9509else
b0322a85 9510 lt_cv_irix_exported_symbol=no
8d138742 9511fi
b0322a85
CE
9512rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 LDFLAGS="$save_LDFLAGS"
9515fi
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9517$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9518 if test "$lt_cv_irix_exported_symbol" = yes; then
9519 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'
9520 fi
8d138742 9521 else
b0322a85
CE
9522 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'
9523 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'
8d138742
CE
9524 fi
9525 archive_cmds_need_lc='no'
9526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527 hardcode_libdir_separator=:
9528 inherit_rpath=yes
9529 link_all_deplibs=yes
9530 ;;
d9898ee8 9531
8d138742
CE
9532 netbsd*)
9533 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9535 else
9536 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9537 fi
9538 hardcode_libdir_flag_spec='-R$libdir'
9539 hardcode_direct=yes
9540 hardcode_shlibpath_var=no
9541 ;;
d9898ee8 9542
8d138742
CE
9543 newsos6)
9544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9545 hardcode_direct=yes
9546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547 hardcode_libdir_separator=:
9548 hardcode_shlibpath_var=no
9549 ;;
d9898ee8 9550
8d138742
CE
9551 *nto* | *qnx*)
9552 ;;
d9898ee8 9553
8d138742
CE
9554 openbsd*)
9555 if test -f /usr/libexec/ld.so; then
9556 hardcode_direct=yes
9557 hardcode_shlibpath_var=no
9558 hardcode_direct_absolute=yes
9559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9561 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9563 export_dynamic_flag_spec='${wl}-E'
9564 else
9565 case $host_os in
9566 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9568 hardcode_libdir_flag_spec='-R$libdir'
9569 ;;
9570 *)
9571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9573 ;;
9574 esac
9575 fi
9576 else
9577 ld_shlibs=no
9578 fi
9579 ;;
d9898ee8 9580
8d138742
CE
9581 os2*)
9582 hardcode_libdir_flag_spec='-L$libdir'
9583 hardcode_minus_L=yes
9584 allow_undefined_flag=unsupported
b0322a85 9585 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'
8d138742
CE
9586 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9587 ;;
d9898ee8 9588
8d138742
CE
9589 osf3*)
9590 if test "$GCC" = yes; then
9591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 9592 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'
8d138742
CE
9593 else
9594 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 9595 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'
8d138742
CE
9596 fi
9597 archive_cmds_need_lc='no'
9598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9599 hardcode_libdir_separator=:
9600 ;;
d9898ee8 9601
8d138742
CE
9602 osf4* | osf5*) # as osf3* with the addition of -msym flag
9603 if test "$GCC" = yes; then
9604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
b0322a85 9605 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'
8d138742
CE
9606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607 else
9608 allow_undefined_flag=' -expect_unresolved \*'
b0322a85 9609 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'
8d138742 9610 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~
b0322a85 9611 $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 9612
8d138742
CE
9613 # Both c and cxx compiler support -rpath directly
9614 hardcode_libdir_flag_spec='-rpath $libdir'
9615 fi
9616 archive_cmds_need_lc='no'
9617 hardcode_libdir_separator=:
9618 ;;
d9898ee8 9619
8d138742
CE
9620 solaris*)
9621 no_undefined_flag=' -z defs'
9622 if test "$GCC" = yes; then
9623 wlarc='${wl}'
b0322a85 9624 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 9625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
b0322a85 9626 $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'
8d138742
CE
9627 else
9628 case `$CC -V 2>&1` in
9629 *"Compilers 5.0"*)
9630 wlarc=''
9631 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9633 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9634 ;;
9635 *)
9636 wlarc='${wl}'
9637 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9639 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9640 ;;
9641 esac
9642 fi
9643 hardcode_libdir_flag_spec='-R$libdir'
9644 hardcode_shlibpath_var=no
9645 case $host_os in
9646 solaris2.[0-5] | solaris2.[0-5].*) ;;
9647 *)
9648 # The compiler driver will combine and reorder linker options,
9649 # but understands `-z linker_flag'. GCC discards it without `$wl',
9650 # but is careful enough not to reorder.
9651 # Supported since Solaris 2.6 (maybe 2.5.1?)
9652 if test "$GCC" = yes; then
9653 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9654 else
9655 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9656 fi
9657 ;;
9658 esac
9659 link_all_deplibs=yes
9660 ;;
d9898ee8 9661
8d138742
CE
9662 sunos4*)
9663 if test "x$host_vendor" = xsequent; then
9664 # Use $CC to link under sequent, because it throws in some extra .o
9665 # files that make .init and .fini sections work.
9666 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9667 else
9668 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9669 fi
9670 hardcode_libdir_flag_spec='-L$libdir'
9671 hardcode_direct=yes
9672 hardcode_minus_L=yes
9673 hardcode_shlibpath_var=no
9674 ;;
d9898ee8 9675
8d138742
CE
9676 sysv4)
9677 case $host_vendor in
9678 sni)
9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_direct=yes # is this really true???
9681 ;;
9682 siemens)
9683 ## LD is ld it makes a PLAMLIB
9684 ## CC just makes a GrossModule.
9685 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9686 reload_cmds='$CC -r -o $output$reload_objs'
9687 hardcode_direct=no
9688 ;;
9689 motorola)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9692 ;;
9693 esac
9694 runpath_var='LD_RUN_PATH'
9695 hardcode_shlibpath_var=no
9696 ;;
d9898ee8 9697
8d138742
CE
9698 sysv4.3*)
9699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700 hardcode_shlibpath_var=no
9701 export_dynamic_flag_spec='-Bexport'
9702 ;;
d9898ee8 9703
8d138742
CE
9704 sysv4*MP*)
9705 if test -d /usr/nec; then
9706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_shlibpath_var=no
9708 runpath_var=LD_RUN_PATH
9709 hardcode_runpath_var=yes
9710 ld_shlibs=yes
9711 fi
9712 ;;
d9898ee8 9713
8d138742
CE
9714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9715 no_undefined_flag='${wl}-z,text'
9716 archive_cmds_need_lc=no
9717 hardcode_shlibpath_var=no
9718 runpath_var='LD_RUN_PATH'
d9898ee8 9719
8d138742
CE
9720 if test "$GCC" = yes; then
9721 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 else
9724 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 fi
9727 ;;
d9898ee8 9728
8d138742
CE
9729 sysv5* | sco3.2v5* | sco5v6*)
9730 # Note: We can NOT use -z defs as we might desire, because we do not
9731 # link with -lc, and that would cause any symbols used from libc to
9732 # always be unresolved, which means just about no library would
9733 # ever link correctly. If we're not using GNU ld we use -z text
9734 # though, which does catch some bad symbols but isn't as heavy-handed
9735 # as -z defs.
9736 no_undefined_flag='${wl}-z,text'
9737 allow_undefined_flag='${wl}-z,nodefs'
9738 archive_cmds_need_lc=no
9739 hardcode_shlibpath_var=no
9740 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9741 hardcode_libdir_separator=':'
9742 link_all_deplibs=yes
9743 export_dynamic_flag_spec='${wl}-Bexport'
9744 runpath_var='LD_RUN_PATH'
d9898ee8 9745
8d138742
CE
9746 if test "$GCC" = yes; then
9747 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 else
9750 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752 fi
9753 ;;
d9898ee8 9754
8d138742
CE
9755 uts4*)
9756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 hardcode_libdir_flag_spec='-L$libdir'
9758 hardcode_shlibpath_var=no
9759 ;;
d9898ee8 9760
8d138742
CE
9761 *)
9762 ld_shlibs=no
9763 ;;
9764 esac
d9898ee8 9765
8d138742
CE
9766 if test x$host_vendor = xsni; then
9767 case $host in
9768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9769 export_dynamic_flag_spec='${wl}-Blargedynsym'
d9898ee8 9770 ;;
8d138742
CE
9771 esac
9772 fi
9773 fi
9774
b0322a85 9775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742
CE
9776$as_echo "$ld_shlibs" >&6; }
9777test "$ld_shlibs" = no && can_build_shared=no
9778
9779with_gnu_ld=$with_gnu_ld
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795#
9796# Do we need to explicitly link libc?
9797#
9798case "x$archive_cmds_need_lc" in
9799x|xyes)
9800 # Assume -lc should be added
9801 archive_cmds_need_lc=yes
9802
9803 if test "$enable_shared" = yes && test "$GCC" = yes; then
9804 case $archive_cmds in
9805 *'~'*)
9806 # FIXME: we may have to deal with multi-command sequences.
9807 ;;
9808 '$CC '*)
9809 # Test whether the compiler implicitly links with -lc since on some
9810 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9811 # to ld, don't add -lc before -lgcc.
b0322a85 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 9813$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
9814if ${lt_cv_archive_cmds_need_lc+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816else
9817 $RM conftest*
9818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8d138742 9819
b0322a85 9820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
9821 (eval $ac_compile) 2>&5
9822 ac_status=$?
b0322a85
CE
9823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9824 test $ac_status = 0; } 2>conftest.err; then
9825 soname=conftest
9826 lib=conftest
9827 libobjs=conftest.$ac_objext
9828 deplibs=
9829 wl=$lt_prog_compiler_wl
9830 pic_flag=$lt_prog_compiler_pic
9831 compiler_flags=-v
9832 linker_flags=-v
9833 verstring=
9834 output_objdir=.
9835 libname=conftest
9836 lt_save_allow_undefined_flag=$allow_undefined_flag
9837 allow_undefined_flag=
9838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742
CE
9839 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9840 ac_status=$?
b0322a85
CE
9841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842 test $ac_status = 0; }
9843 then
9844 lt_cv_archive_cmds_need_lc=no
9845 else
9846 lt_cv_archive_cmds_need_lc=yes
9847 fi
9848 allow_undefined_flag=$lt_save_allow_undefined_flag
9849 else
9850 cat conftest.err 1>&5
9851 fi
9852 $RM conftest*
9853
9854fi
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9856$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9857 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8d138742
CE
9858 ;;
9859 esac
9860 fi
9861 ;;
9862esac
9863
9864
d9898ee8 9865
d9898ee8 9866
d9898ee8 9867
d9898ee8 9868
d9898ee8 9869
d9898ee8 9870
d9898ee8 9871
d9898ee8 9872
d9898ee8 9873
d9898ee8 9874
9875
d9898ee8 9876
d9898ee8 9877
9878
d9898ee8 9879
9880
d9898ee8 9881
d9898ee8 9882
9883
d9898ee8 9884
d9898ee8 9885
9886
d9898ee8 9887
d9898ee8 9888
d9898ee8 9889
d9898ee8 9890
d9898ee8 9891
d9898ee8 9892
d9898ee8 9893
d9898ee8 9894
d9898ee8 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
ac40fd9e 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
9928
d9898ee8 9929
d9898ee8 9930
d9898ee8 9931
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
dd184caf 9968
dd184caf 9969
d9898ee8 9970
d9898ee8 9971
d9898ee8 9972
d9898ee8 9973
d9898ee8 9974
dd184caf 9975
dd184caf 9976
d9898ee8 9977
d9898ee8 9978
d9898ee8 9979
d9898ee8 9980
d9898ee8 9981
d9898ee8 9982
d9898ee8 9983
d9898ee8 9984
d9898ee8 9985
d9898ee8 9986
d9898ee8 9987
d9898ee8 9988
d9898ee8 9989
d9898ee8 9990
d9898ee8 9991
d9898ee8 9992
d9898ee8 9993
d9898ee8 9994
d9898ee8 9995
d9898ee8 9996
d9898ee8 9997
d9898ee8 9998
d9898ee8 9999
d9898ee8 10000
d9898ee8 10001
d9898ee8 10002
d9898ee8 10003
d9898ee8 10004
d9898ee8 10005
d9898ee8 10006
d9898ee8 10007
d9898ee8 10008
d9898ee8 10009
d9898ee8 10010
d9898ee8 10011
d9898ee8 10012
d9898ee8 10013
d9898ee8 10014
b0322a85 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
10016$as_echo_n "checking dynamic linker characteristics... " >&6; }
10017
10018if test "$GCC" = yes; then
10019 case $host_os in
10020 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10021 *) lt_awk_arg="/^libraries:/" ;;
10022 esac
b0322a85
CE
10023 case $host_os in
10024 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10025 *) lt_sed_strip_eq="s,=/,/,g" ;;
10026 esac
10027 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10028 case $lt_search_path_spec in
10029 *\;*)
8d138742
CE
10030 # if the path contains ";" then we assume it to be the separator
10031 # otherwise default to the standard path separator (i.e. ":") - it is
10032 # assumed that no part of a normal pathname contains ";" but that should
10033 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
10034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10035 ;;
10036 *)
10037 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10038 ;;
10039 esac
8d138742
CE
10040 # Ok, now we have the path, separated by spaces, we can step through it
10041 # and add multilib dir if necessary.
10042 lt_tmp_lt_search_path_spec=
10043 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10044 for lt_sys_path in $lt_search_path_spec; do
10045 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10046 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10047 else
10048 test -d "$lt_sys_path" && \
10049 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10050 fi
10051 done
b0322a85 10052 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
8d138742
CE
10053BEGIN {RS=" "; FS="/|\n";} {
10054 lt_foo="";
10055 lt_count=0;
10056 for (lt_i = NF; lt_i > 0; lt_i--) {
10057 if ($lt_i != "" && $lt_i != ".") {
10058 if ($lt_i == "..") {
10059 lt_count++;
10060 } else {
10061 if (lt_count == 0) {
10062 lt_foo="/" $lt_i lt_foo;
10063 } else {
10064 lt_count--;
10065 }
10066 }
10067 }
10068 }
10069 if (lt_foo != "") { lt_freq[lt_foo]++; }
10070 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10071}'`
b0322a85
CE
10072 # AWK program above erroneously prepends '/' to C:/dos/paths
10073 # for these hosts.
10074 case $host_os in
10075 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10076 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10077 esac
10078 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
10079else
10080 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10081fi
d9898ee8 10082library_names_spec=
10083libname_spec='lib$name'
10084soname_spec=
10085shrext_cmds=".so"
10086postinstall_cmds=
10087postuninstall_cmds=
10088finish_cmds=
10089finish_eval=
10090shlibpath_var=
10091shlibpath_overrides_runpath=unknown
10092version_type=none
10093dynamic_linker="$host_os ld.so"
10094sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 10095need_lib_prefix=unknown
10096hardcode_into_libs=no
10097
10098# when you set need_version to no, make sure it does not cause -set_version
10099# flags to be left without arguments
10100need_version=unknown
10101
10102case $host_os in
10103aix3*)
b0322a85 10104 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10106 shlibpath_var=LIBPATH
10107
10108 # AIX 3 has no versioning support, so we append a major version to the name.
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 ;;
10111
8d138742 10112aix[4-9]*)
b0322a85 10113 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10114 need_lib_prefix=no
10115 need_version=no
10116 hardcode_into_libs=yes
10117 if test "$host_cpu" = ia64; then
10118 # AIX 5 supports IA64
10119 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 else
10122 # With GCC up to 2.95.x, collect2 would create an import file
10123 # for dependence libraries. The import file would start with
10124 # the line `#! .'. This would cause the generated library to
10125 # depend on `.', always an invalid library. This was fixed in
10126 # development snapshots of GCC prior to 3.0.
10127 case $host_os in
10128 aix4 | aix4.[01] | aix4.[01].*)
10129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10130 echo ' yes '
8d138742 10131 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 10132 :
10133 else
10134 can_build_shared=no
10135 fi
10136 ;;
10137 esac
10138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10139 # soname into executable. Probably we can add versioning support to
10140 # collect2, so additional links can be useful in future.
10141 if test "$aix_use_runtimelinking" = yes; then
10142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10143 # instead of lib<name>.a to let people know that these are not
10144 # typical AIX shared libraries.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 else
10147 # We preserve .a as extension for shared libraries through AIX4.2
10148 # and later when we are not doing run time linking.
10149 library_names_spec='${libname}${release}.a $libname.a'
10150 soname_spec='${libname}${release}${shared_ext}$major'
10151 fi
10152 shlibpath_var=LIBPATH
10153 fi
10154 ;;
10155
10156amigaos*)
8d138742
CE
10157 case $host_cpu in
10158 powerpc)
10159 # Since July 2007 AmigaOS4 officially supports .so libraries.
10160 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162 ;;
10163 m68k)
10164 library_names_spec='$libname.ixlibrary $libname.a'
10165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
b0322a85 10166 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
10167 ;;
10168 esac
d9898ee8 10169 ;;
10170
10171beos*)
10172 library_names_spec='${libname}${shared_ext}'
10173 dynamic_linker="$host_os ld.so"
10174 shlibpath_var=LIBRARY_PATH
10175 ;;
10176
10177bsdi[45]*)
b0322a85 10178 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10185 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10186 # the default ld.so.conf also contains /usr/contrib/lib and
10187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10188 # libtool to hard-code these into programs
10189 ;;
10190
8d138742 10191cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 10192 version_type=windows
10193 shrext_cmds=".dll"
10194 need_version=no
10195 need_lib_prefix=no
10196
b0322a85
CE
10197 case $GCC,$cc_basename in
10198 yes,*)
10199 # gcc
d9898ee8 10200 library_names_spec='$libname.dll.a'
10201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10202 postinstall_cmds='base_file=`basename \${file}`~
8d138742 10203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 10204 dldir=$destdir/`dirname \$dlpath`~
10205 test -d \$dldir || mkdir -p \$dldir~
10206 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
10207 chmod a+x \$dldir/$dlname~
10208 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10209 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10210 fi'
d9898ee8 10211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10212 dlpath=$dir/\$dldll~
8d138742 10213 $RM \$dlpath'
d9898ee8 10214 shlibpath_overrides_runpath=yes
10215
10216 case $host_os in
10217 cygwin*)
10218 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10219 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
b0322a85
CE
10220
10221 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d9898ee8 10222 ;;
8d138742 10223 mingw* | cegcc*)
d9898ee8 10224 # MinGW DLLs use traditional 'lib' prefix
10225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d9898ee8 10226 ;;
10227 pw32*)
10228 # pw32 DLLs use 'pw' prefix rather than 'lib'
10229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10230 ;;
10231 esac
b0322a85
CE
10232 dynamic_linker='Win32 ld.exe'
10233 ;;
10234
10235 *,cl*)
10236 # Native MSVC
10237 libname_spec='$name'
10238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10239 library_names_spec='${libname}.dll.lib'
10240
10241 case $build_os in
10242 mingw*)
10243 sys_lib_search_path_spec=
10244 lt_save_ifs=$IFS
10245 IFS=';'
10246 for lt_path in $LIB
10247 do
10248 IFS=$lt_save_ifs
10249 # Let DOS variable expansion print the short 8.3 style file name.
10250 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10251 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10252 done
10253 IFS=$lt_save_ifs
10254 # Convert to MSYS style.
10255 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10256 ;;
10257 cygwin*)
10258 # Convert to unix form, then to dos form, then back to unix form
10259 # but this time dos style (no spaces!) so that the unix form looks
10260 # like /cygdrive/c/PROGRA~1:/cygdr...
10261 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10262 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10263 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10264 ;;
10265 *)
10266 sys_lib_search_path_spec="$LIB"
10267 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10268 # It is most probably a Windows format PATH.
10269 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10270 else
10271 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10272 fi
10273 # FIXME: find the short name or the path components, as spaces are
10274 # common. (e.g. "Program Files" -> "PROGRA~1")
10275 ;;
10276 esac
10277
10278 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10279 postinstall_cmds='base_file=`basename \${file}`~
10280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10281 dldir=$destdir/`dirname \$dlpath`~
10282 test -d \$dldir || mkdir -p \$dldir~
10283 $install_prog $dir/$dlname \$dldir/$dlname'
10284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10285 dlpath=$dir/\$dldll~
10286 $RM \$dlpath'
10287 shlibpath_overrides_runpath=yes
10288 dynamic_linker='Win32 link.exe'
d9898ee8 10289 ;;
10290
10291 *)
b0322a85 10292 # Assume MSVC wrapper
d9898ee8 10293 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
b0322a85 10294 dynamic_linker='Win32 ld.exe'
d9898ee8 10295 ;;
10296 esac
d9898ee8 10297 # FIXME: first we should search . and the directory the executable is in
10298 shlibpath_var=PATH
10299 ;;
10300
10301darwin* | rhapsody*)
10302 dynamic_linker="$host_os dyld"
10303 version_type=darwin
10304 need_lib_prefix=no
10305 need_version=no
8d138742 10306 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 10307 soname_spec='${libname}${release}${major}$shared_ext'
10308 shlibpath_overrides_runpath=yes
10309 shlibpath_var=DYLD_LIBRARY_PATH
10310 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 10311
8d138742 10312 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 10313 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10314 ;;
10315
10316dgux*)
b0322a85 10317 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10318 need_lib_prefix=no
10319 need_version=no
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10321 soname_spec='${libname}${release}${shared_ext}$major'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 ;;
10324
d9898ee8 10325freebsd* | dragonfly*)
10326 # DragonFly does not have aout. When/if they implement a new
10327 # versioning mechanism, adjust this.
10328 if test -x /usr/bin/objformat; then
10329 objformat=`/usr/bin/objformat`
10330 else
10331 case $host_os in
b0322a85 10332 freebsd[23].*) objformat=aout ;;
d9898ee8 10333 *) objformat=elf ;;
10334 esac
10335 fi
10336 version_type=freebsd-$objformat
10337 case $version_type in
10338 freebsd-elf*)
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10340 need_version=no
10341 need_lib_prefix=no
10342 ;;
10343 freebsd-*)
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10345 need_version=yes
10346 ;;
10347 esac
10348 shlibpath_var=LD_LIBRARY_PATH
10349 case $host_os in
b0322a85 10350 freebsd2.*)
d9898ee8 10351 shlibpath_overrides_runpath=yes
10352 ;;
10353 freebsd3.[01]* | freebsdelf3.[01]*)
10354 shlibpath_overrides_runpath=yes
10355 hardcode_into_libs=yes
10356 ;;
10357 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10358 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10359 shlibpath_overrides_runpath=no
10360 hardcode_into_libs=yes
10361 ;;
ac40fd9e 10362 *) # from 4.6 on, and DragonFly
d9898ee8 10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10365 ;;
10366 esac
10367 ;;
10368
10369gnu*)
b0322a85 10370 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10371 need_lib_prefix=no
10372 need_version=no
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 shlibpath_var=LD_LIBRARY_PATH
b0322a85
CE
10376 shlibpath_overrides_runpath=no
10377 hardcode_into_libs=yes
10378 ;;
10379
10380haiku*)
10381 version_type=linux # correct to gnu/linux during the next big refactor
10382 need_lib_prefix=no
10383 need_version=no
10384 dynamic_linker="$host_os runtime_loader"
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LIBRARY_PATH
10388 shlibpath_overrides_runpath=yes
10389 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 10390 hardcode_into_libs=yes
10391 ;;
10392
10393hpux9* | hpux10* | hpux11*)
10394 # Give a soname corresponding to the major version so that dld.sl refuses to
10395 # link against other versions.
10396 version_type=sunos
10397 need_lib_prefix=no
10398 need_version=no
10399 case $host_cpu in
10400 ia64*)
10401 shrext_cmds='.so'
10402 hardcode_into_libs=yes
10403 dynamic_linker="$host_os dld.so"
10404 shlibpath_var=LD_LIBRARY_PATH
10405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 if test "X$HPUX_IA64_MODE" = X32; then
10409 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10410 else
10411 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10412 fi
10413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10414 ;;
8d138742
CE
10415 hppa*64*)
10416 shrext_cmds='.sl'
10417 hardcode_into_libs=yes
10418 dynamic_linker="$host_os dld.sl"
10419 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10420 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10425 ;;
10426 *)
d9898ee8 10427 shrext_cmds='.sl'
10428 dynamic_linker="$host_os dld.sl"
10429 shlibpath_var=SHLIB_PATH
10430 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 ;;
10434 esac
b0322a85 10435 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 10436 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
10437 # or fails outright, so override atomically:
10438 install_override_mode=555
d9898ee8 10439 ;;
10440
ac40fd9e 10441interix[3-9]*)
b0322a85 10442 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10443 need_lib_prefix=no
10444 need_version=no
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10451 ;;
10452
10453irix5* | irix6* | nonstopux*)
10454 case $host_os in
10455 nonstopux*) version_type=nonstopux ;;
10456 *)
10457 if test "$lt_cv_prog_gnu_ld" = yes; then
b0322a85 10458 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10459 else
10460 version_type=irix
10461 fi ;;
10462 esac
10463 need_lib_prefix=no
10464 need_version=no
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10467 case $host_os in
10468 irix5* | nonstopux*)
10469 libsuff= shlibsuff=
10470 ;;
10471 *)
10472 case $LD in # libtool.m4 will add one of these switches to LD
10473 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10474 libsuff= shlibsuff= libmagic=32-bit;;
10475 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10476 libsuff=32 shlibsuff=N32 libmagic=N32;;
10477 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10478 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10479 *) libsuff= shlibsuff= libmagic=never-match;;
10480 esac
10481 ;;
10482 esac
10483 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10484 shlibpath_overrides_runpath=no
10485 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10486 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10487 hardcode_into_libs=yes
10488 ;;
10489
8d138742
CE
10490# No shared lib support for Linux oldld, aout, or coff.
10491linux*oldld* | linux*aout* | linux*coff*)
10492 dynamic_linker=no
10493 ;;
10494
b0322a85
CE
10495# This must be glibc/ELF.
10496linux* | k*bsd*-gnu | kopensolaris*-gnu)
10497 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10498 need_lib_prefix=no
10499 need_version=no
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=no
b0322a85 10505
8d138742 10506 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
10507 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10508 $as_echo_n "(cached) " >&6
10509else
10510 lt_cv_shlibpath_overrides_runpath=no
10511 save_LDFLAGS=$LDFLAGS
10512 save_libdir=$libdir
10513 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10514 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10516/* end confdefs.h. */
10517
10518int
10519main ()
10520{
10521
10522 ;
10523 return 0;
10524}
10525_ACEOF
b0322a85
CE
10526if ac_fn_c_try_link "$LINENO"; then :
10527 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10528 lt_cv_shlibpath_overrides_runpath=yes
8d138742 10529fi
b0322a85
CE
10530fi
10531rm -f core conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext conftest.$ac_ext
10533 LDFLAGS=$save_LDFLAGS
10534 libdir=$save_libdir
8d138742
CE
10535
10536fi
10537
b0322a85 10538 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d9898ee8 10539
d9898ee8 10540 # This implies no fast_install, which is unacceptable.
10541 # Some rework will be needed to allow for fast_install
10542 # before this can be enabled.
10543 hardcode_into_libs=yes
8d138742
CE
10544
10545 # Add ABI-specific directories to the system library path.
10546 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 10547
10548 # Append ld.so.conf contents to the search path
10549 if test -f /etc/ld.so.conf; then
b0322a85 10550 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 10551 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
b0322a85 10552
d9898ee8 10553 fi
10554
10555 # We used to test for /lib/ld.so.1 and disable shared libraries on
10556 # powerpc, because MkLinux only supported shared libraries with the
10557 # GNU dynamic linker. Since this was broken with cross compilers,
10558 # most powerpc-linux boxes support dynamic linking these days and
10559 # people can always --disable-shared, the test was removed, and we
10560 # assume the GNU/Linux dynamic linker is in use.
10561 dynamic_linker='GNU/Linux ld.so'
10562 ;;
10563
d9898ee8 10564netbsd*)
10565 version_type=sunos
10566 need_lib_prefix=no
10567 need_version=no
8d138742 10568 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10571 dynamic_linker='NetBSD (a.out) ld.so'
10572 else
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 dynamic_linker='NetBSD ld.elf_so'
10576 fi
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=yes
10579 hardcode_into_libs=yes
10580 ;;
10581
10582newsos6)
b0322a85 10583 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 shlibpath_overrides_runpath=yes
10587 ;;
10588
8d138742
CE
10589*nto* | *qnx*)
10590 version_type=qnx
d9898ee8 10591 need_lib_prefix=no
10592 need_version=no
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
10596 shlibpath_overrides_runpath=no
10597 hardcode_into_libs=yes
10598 dynamic_linker='ldqnx.so'
d9898ee8 10599 ;;
10600
10601openbsd*)
10602 version_type=sunos
10603 sys_lib_dlsearch_path_spec="/usr/lib"
10604 need_lib_prefix=no
10605 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10606 case $host_os in
8d138742
CE
10607 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10608 *) need_version=no ;;
d9898ee8 10609 esac
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10612 shlibpath_var=LD_LIBRARY_PATH
8d138742 10613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 10614 case $host_os in
10615 openbsd2.[89] | openbsd2.[89].*)
10616 shlibpath_overrides_runpath=no
10617 ;;
10618 *)
10619 shlibpath_overrides_runpath=yes
10620 ;;
10621 esac
10622 else
10623 shlibpath_overrides_runpath=yes
10624 fi
10625 ;;
10626
10627os2*)
10628 libname_spec='$name'
10629 shrext_cmds=".dll"
10630 need_lib_prefix=no
10631 library_names_spec='$libname${shared_ext} $libname.a'
10632 dynamic_linker='OS/2 ld.exe'
10633 shlibpath_var=LIBPATH
10634 ;;
10635
10636osf3* | osf4* | osf5*)
10637 version_type=osf
10638 need_lib_prefix=no
10639 need_version=no
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10645 ;;
10646
ac40fd9e 10647rdos*)
10648 dynamic_linker=no
10649 ;;
10650
d9898ee8 10651solaris*)
b0322a85 10652 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10653 need_lib_prefix=no
10654 need_version=no
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 shlibpath_overrides_runpath=yes
10659 hardcode_into_libs=yes
10660 # ldd complains unless libraries are executable
10661 postinstall_cmds='chmod +x $lib'
10662 ;;
10663
10664sunos4*)
10665 version_type=sunos
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10667 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 shlibpath_overrides_runpath=yes
10670 if test "$with_gnu_ld" = yes; then
10671 need_lib_prefix=no
10672 fi
10673 need_version=yes
10674 ;;
10675
10676sysv4 | sysv4.3*)
b0322a85 10677 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 case $host_vendor in
10682 sni)
10683 shlibpath_overrides_runpath=no
10684 need_lib_prefix=no
d9898ee8 10685 runpath_var=LD_RUN_PATH
10686 ;;
10687 siemens)
10688 need_lib_prefix=no
10689 ;;
10690 motorola)
10691 need_lib_prefix=no
10692 need_version=no
10693 shlibpath_overrides_runpath=no
10694 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10695 ;;
10696 esac
10697 ;;
10698
10699sysv4*MP*)
10700 if test -d /usr/nec ;then
b0322a85 10701 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10702 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10703 soname_spec='$libname${shared_ext}.$major'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 fi
10706 ;;
10707
10708sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10709 version_type=freebsd-elf
10710 need_lib_prefix=no
10711 need_version=no
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 shlibpath_var=LD_LIBRARY_PATH
8d138742 10715 shlibpath_overrides_runpath=yes
d9898ee8 10716 hardcode_into_libs=yes
10717 if test "$with_gnu_ld" = yes; then
10718 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 10719 else
10720 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 10721 case $host_os in
10722 sco3.2v5*)
10723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10724 ;;
10725 esac
10726 fi
10727 sys_lib_dlsearch_path_spec='/usr/lib'
10728 ;;
10729
8d138742
CE
10730tpf*)
10731 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 10732 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
10733 need_lib_prefix=no
10734 need_version=no
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 shlibpath_var=LD_LIBRARY_PATH
10737 shlibpath_overrides_runpath=no
10738 hardcode_into_libs=yes
10739 ;;
10740
d9898ee8 10741uts4*)
b0322a85 10742 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 shlibpath_var=LD_LIBRARY_PATH
10746 ;;
10747
10748*)
10749 dynamic_linker=no
10750 ;;
10751esac
b0322a85 10752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 10753$as_echo "$dynamic_linker" >&6; }
d9898ee8 10754test "$dynamic_linker" = no && can_build_shared=no
10755
10756variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10757if test "$GCC" = yes; then
10758 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10759fi
10760
8d138742
CE
10761if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10762 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 10763fi
8d138742
CE
10764if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10765 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 10766fi
10767
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
d9898ee8 10783
d9898ee8 10784
d9898ee8 10785
d9898ee8 10786
d9898ee8 10787
d9898ee8 10788
d9898ee8 10789
d9898ee8 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
d9898ee8 10816
d9898ee8 10817
d9898ee8 10818
d9898ee8 10819
d9898ee8 10820
d9898ee8 10821
d9898ee8 10822
d9898ee8 10823
d9898ee8 10824
d9898ee8 10825
d9898ee8 10826
d9898ee8 10827
d9898ee8 10828
d9898ee8 10829
d9898ee8 10830
d9898ee8 10831
d9898ee8 10832
d9898ee8 10833
d9898ee8 10834
d9898ee8 10835
d9898ee8 10836
d9898ee8 10837
d9898ee8 10838
d9898ee8 10839
d9898ee8 10840
d9898ee8 10841
d9898ee8 10842
d9898ee8 10843
d9898ee8 10844
d9898ee8 10845
d9898ee8 10846
d9898ee8 10847
d9898ee8 10848
d9898ee8 10849
d9898ee8 10850
d9898ee8 10851
d9898ee8 10852
d9898ee8 10853
b0322a85
CE
10854
10855
10856
10857
10858
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
10860$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10861hardcode_action=
10862if test -n "$hardcode_libdir_flag_spec" ||
10863 test -n "$runpath_var" ||
10864 test "X$hardcode_automatic" = "Xyes" ; then
10865
10866 # We can hardcode non-existent directories.
10867 if test "$hardcode_direct" != no &&
10868 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10869 # have to relink, otherwise we might link with an installed library
10870 # when we should be linking with a yet-to-be-installed one
10871 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10872 test "$hardcode_minus_L" != no; then
10873 # Linking always hardcodes the temporary library directory.
10874 hardcode_action=relink
10875 else
10876 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10877 hardcode_action=immediate
10878 fi
10879else
10880 # We cannot hardcode anything, or else we can only hardcode existing
10881 # directories.
10882 hardcode_action=unsupported
10883fi
b0322a85 10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742
CE
10885$as_echo "$hardcode_action" >&6; }
10886
10887if test "$hardcode_action" = relink ||
10888 test "$inherit_rpath" = yes; then
10889 # Fast installation is not supported
10890 enable_fast_install=no
10891elif test "$shlibpath_overrides_runpath" = yes ||
10892 test "$enable_shared" = no; then
10893 # Fast installation is not necessary
10894 enable_fast_install=needless
10895fi
10896
10897
10898
10899
10900
10901
10902 if test "x$enable_dlopen" != xyes; then
10903 enable_dlopen=unknown
10904 enable_dlopen_self=unknown
10905 enable_dlopen_self_static=unknown
10906else
10907 lt_cv_dlopen=no
10908 lt_cv_dlopen_libs=
10909
10910 case $host_os in
10911 beos*)
10912 lt_cv_dlopen="load_add_on"
10913 lt_cv_dlopen_libs=
10914 lt_cv_dlopen_self=yes
10915 ;;
10916
10917 mingw* | pw32* | cegcc*)
10918 lt_cv_dlopen="LoadLibrary"
10919 lt_cv_dlopen_libs=
10920 ;;
10921
10922 cygwin*)
10923 lt_cv_dlopen="dlopen"
10924 lt_cv_dlopen_libs=
10925 ;;
10926
10927 darwin*)
10928 # if libdl is installed we need to link against it
b0322a85 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 10930$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 10931if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
10932 $as_echo_n "(cached) " >&6
10933else
10934 ac_check_lib_save_LIBS=$LIBS
10935LIBS="-ldl $LIBS"
b0322a85 10936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10937/* end confdefs.h. */
10938
10939/* Override any GCC internal prototype to avoid an error.
10940 Use char because int might match the return type of a GCC
10941 builtin and then its argument prototype would still apply. */
10942#ifdef __cplusplus
10943extern "C"
10944#endif
10945char dlopen ();
10946int
10947main ()
10948{
10949return dlopen ();
10950 ;
10951 return 0;
10952}
10953_ACEOF
b0322a85 10954if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
10955 ac_cv_lib_dl_dlopen=yes
10956else
b0322a85 10957 ac_cv_lib_dl_dlopen=no
8d138742 10958fi
b0322a85
CE
10959rm -f core conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
10961LIBS=$ac_check_lib_save_LIBS
10962fi
b0322a85 10963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 10964$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 10965if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8d138742
CE
10966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10967else
10968
10969 lt_cv_dlopen="dyld"
10970 lt_cv_dlopen_libs=
10971 lt_cv_dlopen_self=yes
10972
10973fi
10974
10975 ;;
10976
10977 *)
b0322a85
CE
10978 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10979if test "x$ac_cv_func_shl_load" = xyes; then :
8d138742
CE
10980 lt_cv_dlopen="shl_load"
10981else
b0322a85 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8d138742 10983$as_echo_n "checking for shl_load in -ldld... " >&6; }
b0322a85 10984if ${ac_cv_lib_dld_shl_load+:} false; then :
8d138742
CE
10985 $as_echo_n "(cached) " >&6
10986else
10987 ac_check_lib_save_LIBS=$LIBS
10988LIBS="-ldld $LIBS"
b0322a85 10989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10990/* end confdefs.h. */
10991
10992/* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995#ifdef __cplusplus
10996extern "C"
10997#endif
10998char shl_load ();
10999int
11000main ()
11001{
11002return shl_load ();
11003 ;
11004 return 0;
11005}
11006_ACEOF
b0322a85 11007if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11008 ac_cv_lib_dld_shl_load=yes
11009else
b0322a85 11010 ac_cv_lib_dld_shl_load=no
8d138742 11011fi
b0322a85
CE
11012rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11014LIBS=$ac_check_lib_save_LIBS
11015fi
b0322a85 11016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8d138742 11017$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
b0322a85 11018if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
8d138742
CE
11019 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11020else
b0322a85
CE
11021 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11022if test "x$ac_cv_func_dlopen" = xyes; then :
8d138742
CE
11023 lt_cv_dlopen="dlopen"
11024else
b0322a85 11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 11026$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 11027if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
11028 $as_echo_n "(cached) " >&6
11029else
11030 ac_check_lib_save_LIBS=$LIBS
11031LIBS="-ldl $LIBS"
b0322a85 11032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11033/* end confdefs.h. */
d9898ee8 11034
8d138742
CE
11035/* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11038#ifdef __cplusplus
11039extern "C"
11040#endif
11041char dlopen ();
11042int
11043main ()
11044{
11045return dlopen ();
11046 ;
11047 return 0;
11048}
11049_ACEOF
b0322a85 11050if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11051 ac_cv_lib_dl_dlopen=yes
11052else
b0322a85 11053 ac_cv_lib_dl_dlopen=no
8d138742 11054fi
b0322a85
CE
11055rm -f core conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11057LIBS=$ac_check_lib_save_LIBS
11058fi
b0322a85 11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 11060$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 11061if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8d138742
CE
11062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11063else
b0322a85 11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 11065$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 11066if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
11067 $as_echo_n "(cached) " >&6
11068else
11069 ac_check_lib_save_LIBS=$LIBS
11070LIBS="-lsvld $LIBS"
b0322a85 11071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11072/* end confdefs.h. */
d9898ee8 11073
8d138742
CE
11074/* Override any GCC internal prototype to avoid an error.
11075 Use char because int might match the return type of a GCC
11076 builtin and then its argument prototype would still apply. */
11077#ifdef __cplusplus
11078extern "C"
11079#endif
11080char dlopen ();
11081int
11082main ()
11083{
11084return dlopen ();
11085 ;
11086 return 0;
11087}
11088_ACEOF
b0322a85 11089if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11090 ac_cv_lib_svld_dlopen=yes
11091else
b0322a85 11092 ac_cv_lib_svld_dlopen=no
8d138742 11093fi
b0322a85
CE
11094rm -f core conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11096LIBS=$ac_check_lib_save_LIBS
11097fi
b0322a85 11098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 11099$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 11100if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
8d138742
CE
11101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11102else
b0322a85 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 11104$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 11105if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
11106 $as_echo_n "(cached) " >&6
11107else
11108 ac_check_lib_save_LIBS=$LIBS
11109LIBS="-ldld $LIBS"
b0322a85 11110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11111/* end confdefs.h. */
d9898ee8 11112
8d138742
CE
11113/* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11116#ifdef __cplusplus
11117extern "C"
11118#endif
11119char dld_link ();
11120int
11121main ()
11122{
11123return dld_link ();
11124 ;
11125 return 0;
11126}
b0322a85
CE
11127_ACEOF
11128if ac_fn_c_try_link "$LINENO"; then :
8d138742 11129 ac_cv_lib_dld_dld_link=yes
d9898ee8 11130else
b0322a85 11131 ac_cv_lib_dld_dld_link=no
d9898ee8 11132fi
b0322a85
CE
11133rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11135LIBS=$ac_check_lib_save_LIBS
11136fi
b0322a85 11137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 11138$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 11139if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
8d138742
CE
11140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11141fi
d9898ee8 11142
d9898ee8 11143
8d138742 11144fi
d9898ee8 11145
d9898ee8 11146
8d138742 11147fi
d9898ee8 11148
11149
8d138742 11150fi
d9898ee8 11151
d9898ee8 11152
8d138742 11153fi
d9898ee8 11154
d9898ee8 11155
8d138742 11156fi
d9898ee8 11157
8d138742
CE
11158 ;;
11159 esac
d9898ee8 11160
8d138742
CE
11161 if test "x$lt_cv_dlopen" != xno; then
11162 enable_dlopen=yes
11163 else
11164 enable_dlopen=no
11165 fi
d9898ee8 11166
8d138742
CE
11167 case $lt_cv_dlopen in
11168 dlopen)
11169 save_CPPFLAGS="$CPPFLAGS"
11170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 11171
8d138742
CE
11172 save_LDFLAGS="$LDFLAGS"
11173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 11174
8d138742
CE
11175 save_LIBS="$LIBS"
11176 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 11177
b0322a85 11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 11179$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 11180if ${lt_cv_dlopen_self+:} false; then :
8d138742
CE
11181 $as_echo_n "(cached) " >&6
11182else
11183 if test "$cross_compiling" = yes; then :
11184 lt_cv_dlopen_self=cross
11185else
11186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11187 lt_status=$lt_dlunknown
11188 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11189#line $LINENO "configure"
8d138742 11190#include "confdefs.h"
d9898ee8 11191
8d138742
CE
11192#if HAVE_DLFCN_H
11193#include <dlfcn.h>
11194#endif
d9898ee8 11195
8d138742 11196#include <stdio.h>
d9898ee8 11197
8d138742
CE
11198#ifdef RTLD_GLOBAL
11199# define LT_DLGLOBAL RTLD_GLOBAL
11200#else
11201# ifdef DL_GLOBAL
11202# define LT_DLGLOBAL DL_GLOBAL
11203# else
11204# define LT_DLGLOBAL 0
11205# endif
11206#endif
d9898ee8 11207
8d138742
CE
11208/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11209 find out it does not work in some platform. */
11210#ifndef LT_DLLAZY_OR_NOW
11211# ifdef RTLD_LAZY
11212# define LT_DLLAZY_OR_NOW RTLD_LAZY
11213# else
11214# ifdef DL_LAZY
11215# define LT_DLLAZY_OR_NOW DL_LAZY
11216# else
11217# ifdef RTLD_NOW
11218# define LT_DLLAZY_OR_NOW RTLD_NOW
11219# else
11220# ifdef DL_NOW
11221# define LT_DLLAZY_OR_NOW DL_NOW
11222# else
11223# define LT_DLLAZY_OR_NOW 0
11224# endif
11225# endif
11226# endif
11227# endif
11228#endif
d9898ee8 11229
b0322a85
CE
11230/* When -fvisbility=hidden is used, assume the code has been annotated
11231 correspondingly for the symbols needed. */
11232#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11233int fnord () __attribute__((visibility("default")));
11234#endif
11235
11236int fnord () { return 42; }
8d138742
CE
11237int main ()
11238{
11239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11240 int status = $lt_dlunknown;
d9898ee8 11241
8d138742
CE
11242 if (self)
11243 {
11244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11245 else
11246 {
11247 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11248 else puts (dlerror ());
11249 }
8d138742
CE
11250 /* dlclose (self); */
11251 }
11252 else
11253 puts (dlerror ());
d9898ee8 11254
8d138742
CE
11255 return status;
11256}
11257_LT_EOF
b0322a85 11258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11259 (eval $ac_link) 2>&5
11260 ac_status=$?
b0322a85
CE
11261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
11263 (./conftest; exit; ) >&5 2>/dev/null
11264 lt_status=$?
11265 case x$lt_status in
11266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11268 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11269 esac
11270 else :
11271 # compilation failed
11272 lt_cv_dlopen_self=no
11273 fi
11274fi
11275rm -fr conftest*
d9898ee8 11276
d9898ee8 11277
8d138742 11278fi
b0322a85 11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742 11280$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 11281
8d138742
CE
11282 if test "x$lt_cv_dlopen_self" = xyes; then
11283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 11285$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 11286if ${lt_cv_dlopen_self_static+:} false; then :
8d138742
CE
11287 $as_echo_n "(cached) " >&6
11288else
11289 if test "$cross_compiling" = yes; then :
11290 lt_cv_dlopen_self_static=cross
11291else
11292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11293 lt_status=$lt_dlunknown
11294 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11295#line $LINENO "configure"
8d138742 11296#include "confdefs.h"
d9898ee8 11297
8d138742
CE
11298#if HAVE_DLFCN_H
11299#include <dlfcn.h>
11300#endif
d9898ee8 11301
8d138742 11302#include <stdio.h>
d9898ee8 11303
8d138742
CE
11304#ifdef RTLD_GLOBAL
11305# define LT_DLGLOBAL RTLD_GLOBAL
11306#else
11307# ifdef DL_GLOBAL
11308# define LT_DLGLOBAL DL_GLOBAL
11309# else
11310# define LT_DLGLOBAL 0
11311# endif
11312#endif
d9898ee8 11313
8d138742
CE
11314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11315 find out it does not work in some platform. */
11316#ifndef LT_DLLAZY_OR_NOW
11317# ifdef RTLD_LAZY
11318# define LT_DLLAZY_OR_NOW RTLD_LAZY
11319# else
11320# ifdef DL_LAZY
11321# define LT_DLLAZY_OR_NOW DL_LAZY
11322# else
11323# ifdef RTLD_NOW
11324# define LT_DLLAZY_OR_NOW RTLD_NOW
11325# else
11326# ifdef DL_NOW
11327# define LT_DLLAZY_OR_NOW DL_NOW
11328# else
11329# define LT_DLLAZY_OR_NOW 0
11330# endif
11331# endif
11332# endif
11333# endif
11334#endif
d9898ee8 11335
b0322a85
CE
11336/* When -fvisbility=hidden is used, assume the code has been annotated
11337 correspondingly for the symbols needed. */
11338#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11339int fnord () __attribute__((visibility("default")));
11340#endif
11341
11342int fnord () { return 42; }
8d138742
CE
11343int main ()
11344{
11345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11346 int status = $lt_dlunknown;
d9898ee8 11347
8d138742
CE
11348 if (self)
11349 {
11350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11351 else
11352 {
11353 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11354 else puts (dlerror ());
11355 }
8d138742
CE
11356 /* dlclose (self); */
11357 }
11358 else
11359 puts (dlerror ());
d9898ee8 11360
8d138742
CE
11361 return status;
11362}
11363_LT_EOF
b0322a85 11364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11365 (eval $ac_link) 2>&5
11366 ac_status=$?
b0322a85
CE
11367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11368 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8d138742
CE
11369 (./conftest; exit; ) >&5 2>/dev/null
11370 lt_status=$?
11371 case x$lt_status in
11372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11374 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11375 esac
11376 else :
11377 # compilation failed
11378 lt_cv_dlopen_self_static=no
11379 fi
11380fi
11381rm -fr conftest*
d9898ee8 11382
d9898ee8 11383
8d138742 11384fi
b0322a85 11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8d138742
CE
11386$as_echo "$lt_cv_dlopen_self_static" >&6; }
11387 fi
d9898ee8 11388
8d138742
CE
11389 CPPFLAGS="$save_CPPFLAGS"
11390 LDFLAGS="$save_LDFLAGS"
11391 LIBS="$save_LIBS"
11392 ;;
11393 esac
d9898ee8 11394
8d138742
CE
11395 case $lt_cv_dlopen_self in
11396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11397 *) enable_dlopen_self=unknown ;;
11398 esac
d9898ee8 11399
8d138742
CE
11400 case $lt_cv_dlopen_self_static in
11401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11402 *) enable_dlopen_self_static=unknown ;;
11403 esac
11404fi
d9898ee8 11405
d9898ee8 11406
d9898ee8 11407
d9898ee8 11408
d9898ee8 11409
d9898ee8 11410
d9898ee8 11411
d9898ee8 11412
d9898ee8 11413
d9898ee8 11414
d9898ee8 11415
d9898ee8 11416
d9898ee8 11417
d9898ee8 11418
d9898ee8 11419
d9898ee8 11420
d9898ee8 11421
8d138742
CE
11422striplib=
11423old_striplib=
b0322a85 11424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8d138742
CE
11425$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11426if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11427 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11428 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b0322a85 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11430$as_echo "yes" >&6; }
11431else
11432# FIXME - insert some real tests, host_os isn't really good enough
11433 case $host_os in
11434 darwin*)
11435 if test -n "$STRIP" ; then
11436 striplib="$STRIP -x"
11437 old_striplib="$STRIP -S"
b0322a85 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11439$as_echo "yes" >&6; }
11440 else
b0322a85 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
11442$as_echo "no" >&6; }
11443 fi
11444 ;;
11445 *)
b0322a85 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
11447$as_echo "no" >&6; }
11448 ;;
11449 esac
11450fi
d9898ee8 11451
d9898ee8 11452
d9898ee8 11453
d9898ee8 11454
d9898ee8 11455
d9898ee8 11456
d9898ee8 11457
d9898ee8 11458
d9898ee8 11459
d9898ee8 11460
d9898ee8 11461
d9898ee8 11462
8d138742 11463 # Report which library types will actually be built
b0322a85 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8d138742 11465$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b0322a85 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8d138742 11467$as_echo "$can_build_shared" >&6; }
d9898ee8 11468
b0322a85 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8d138742
CE
11470$as_echo_n "checking whether to build shared libraries... " >&6; }
11471 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 11472
8d138742
CE
11473 # On AIX, shared libraries and static libraries use the same namespace, and
11474 # are all built from PIC.
11475 case $host_os in
11476 aix3*)
11477 test "$enable_shared" = yes && enable_static=no
11478 if test -n "$RANLIB"; then
11479 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11480 postinstall_cmds='$RANLIB $lib'
11481 fi
11482 ;;
d9898ee8 11483
8d138742
CE
11484 aix[4-9]*)
11485 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11486 test "$enable_shared" = yes && enable_static=no
11487 fi
11488 ;;
11489 esac
b0322a85 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8d138742 11491$as_echo "$enable_shared" >&6; }
d9898ee8 11492
b0322a85 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8d138742
CE
11494$as_echo_n "checking whether to build static libraries... " >&6; }
11495 # Make sure either enable_shared or enable_static is yes.
11496 test "$enable_shared" = yes || enable_static=yes
b0322a85 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8d138742 11498$as_echo "$enable_static" >&6; }
d9898ee8 11499
d9898ee8 11500
d9898ee8 11501
d9898ee8 11502
8d138742
CE
11503fi
11504ac_ext=c
11505ac_cpp='$CPP $CPPFLAGS'
11506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 11509
8d138742 11510CC="$lt_save_CC"
d9898ee8 11511
d9898ee8 11512
d9898ee8 11513
d9898ee8 11514
d9898ee8 11515
d9898ee8 11516
d9898ee8 11517
d9898ee8 11518
d9898ee8 11519
d9898ee8 11520
d9898ee8 11521
d9898ee8 11522
d9898ee8 11523
b0322a85
CE
11524
11525
8d138742 11526 ac_config_commands="$ac_config_commands libtool"
d9898ee8 11527
d9898ee8 11528
d9898ee8 11529
d9898ee8 11530
8d138742 11531# Only expand once:
d9898ee8 11532
d9898ee8 11533
d9898ee8 11534
8d138742
CE
11535if test "$GCC" = yes
11536then
11537 CFLAGS="-Wall $CFLAGS"
11538fi
8d138742 11539CFLAGS="$CFLAGS -I$srcdir/.. -I.."
d9898ee8 11540
d9898ee8 11541
d9898ee8 11542
b0322a85
CE
11543for ac_header in sys/types.h
11544do :
11545 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
11546if test "x$ac_cv_header_sys_types_h" = xyes; then :
11547 cat >>confdefs.h <<_ACEOF
11548#define HAVE_SYS_TYPES_H 1
8d138742 11549_ACEOF
d9898ee8 11550
8d138742 11551fi
d9898ee8 11552
b0322a85 11553done
d9898ee8 11554
d9898ee8 11555
d9898ee8 11556
b0322a85
CE
11557# Check whether --with-int32 was given.
11558if test "${with_int32+set}" = set; then :
11559 withval=$with_int32; int32="$withval"
8d138742 11560else
d9898ee8 11561
d9898ee8 11562
b0322a85
CE
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
11564$as_echo_n "checking for uint32_t... " >&6; }
11565
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11567/* end confdefs.h. */
b0322a85
CE
11568
11569#if HAVE_SYS_TYPES_H
11570#include <sys/types.h>
8d138742 11571#endif
d9898ee8 11572
8d138742
CE
11573int
11574main ()
11575{
d9898ee8 11576
b0322a85 11577 uint32_t i=0;
d9898ee8 11578
b0322a85
CE
11579 ;
11580 return 0;
11581}
8d138742 11582_ACEOF
b0322a85
CE
11583if ac_fn_c_try_compile "$LINENO"; then :
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11585$as_echo "yes" >&6; } ; int32="uint32_t"
8d138742 11586else
d9898ee8 11587
11588
b0322a85
CE
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590$as_echo "no" >&6; }
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_32_t" >&5
11592$as_echo_n "checking for u_int_32_t... " >&6; }
d9898ee8 11593
b0322a85 11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11595/* end confdefs.h. */
d9898ee8 11596
8d138742
CE
11597#if HAVE_SYS_TYPES_H
11598#include <sys/types.h>
11599#endif
d9898ee8 11600
8d138742
CE
11601int
11602main ()
11603{
d9898ee8 11604
b0322a85 11605 u_int32_t i=0;
d9898ee8 11606
8d138742
CE
11607 ;
11608 return 0;
11609}
11610_ACEOF
b0322a85
CE
11611if ac_fn_c_try_compile "$LINENO"; then :
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11613$as_echo "yes" >&6; }; int32="u_int32_t"
8d138742 11614else
d9898ee8 11615
11616
b0322a85
CE
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618$as_echo "no" >&6; }
11619
11620 # The cast to long int works around a bug in the HP C Compiler
11621# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11622# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11623# This bug is HP SR number 8606223364.
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
11625$as_echo_n "checking size of unsigned... " >&6; }
11626if ${ac_cv_sizeof_unsigned+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628else
11629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
11630
11631else
11632 if test "$ac_cv_type_unsigned" = yes; then
11633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11635as_fn_error 77 "cannot compute sizeof (unsigned)
11636See \`config.log' for more details" "$LINENO" 5; }
11637 else
11638 ac_cv_sizeof_unsigned=0
11639 fi
11640fi
11641
11642fi
11643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
11644$as_echo "$ac_cv_sizeof_unsigned" >&6; }
11645
d9898ee8 11646
11647
b0322a85
CE
11648cat >>confdefs.h <<_ACEOF
11649#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
8d138742 11650_ACEOF
d9898ee8 11651
11652
b0322a85
CE
11653 if test "$ac_cv_sizeof_unsigned" != 4
11654 then
11655 # The cast to long int works around a bug in the HP C Compiler
11656# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11657# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11658# This bug is HP SR number 8606223364.
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
11660$as_echo_n "checking size of unsigned long... " >&6; }
11661if ${ac_cv_sizeof_unsigned_long+:} false; then :
11662 $as_echo_n "(cached) " >&6
11663else
11664 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
d9898ee8 11665
8d138742 11666else
b0322a85
CE
11667 if test "$ac_cv_type_unsigned_long" = yes; then
11668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11670as_fn_error 77 "cannot compute sizeof (unsigned long)
11671See \`config.log' for more details" "$LINENO" 5; }
11672 else
11673 ac_cv_sizeof_unsigned_long=0
11674 fi
11675fi
d9898ee8 11676
b0322a85
CE
11677fi
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
11679$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
d9898ee8 11680
d9898ee8 11681
11682
b0322a85
CE
11683cat >>confdefs.h <<_ACEOF
11684#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
11685_ACEOF
11686
11687
11688 if test "$ac_cv_sizeof_unsigned_long" != 4
11689 then
11690 # The cast to long int works around a bug in the HP C Compiler
8d138742
CE
11691# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11692# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11693# This bug is HP SR number 8606223364.
b0322a85
CE
11694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
11695$as_echo_n "checking size of unsigned short... " >&6; }
11696if ${ac_cv_sizeof_unsigned_short+:} false; then :
8d138742 11697 $as_echo_n "(cached) " >&6
d9898ee8 11698else
b0322a85 11699 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
d9898ee8 11700
d9898ee8 11701else
b0322a85
CE
11702 if test "$ac_cv_type_unsigned_short" = yes; then
11703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11705as_fn_error 77 "cannot compute sizeof (unsigned short)
11706See \`config.log' for more details" "$LINENO" 5; }
11707 else
11708 ac_cv_sizeof_unsigned_short=0
11709 fi
11710fi
d9898ee8 11711
d9898ee8 11712fi
b0322a85
CE
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
11714$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
dd184caf 11715
d9898ee8 11716
d9898ee8 11717
b0322a85
CE
11718cat >>confdefs.h <<_ACEOF
11719#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
8d138742 11720_ACEOF
8d138742 11721
8d138742 11722
b0322a85
CE
11723 if test "$ac_cv_sizeof_unsigned_short" != 4
11724 then
11725 as_fn_error $? "--with-int32 option is required" "$LINENO" 5
11726 fi
11727 int32="unsigned short"
11728 else
11729 int32="unsigned long"
11730 fi
11731 else
11732 int32="unsigned"
8d138742 11733 fi
8d138742 11734
b0322a85 11735fi
8d138742 11736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 11737
d9898ee8 11738fi
8d138742 11739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
11740
11741
d9898ee8 11742fi
11743
b0322a85
CE
11744UINT32="$int32"
11745
11746
11747cat >>confdefs.h <<_ACEOF
11748#define SHA1_WORD $UINT32
d9898ee8 11749_ACEOF
b0322a85
CE
11750
11751
11752
11753# Check whether --with-int64 was given.
11754if test "${with_int64+set}" = set; then :
11755 withval=$with_int64; int64="$withval"
11756else
11757
11758
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5
11760$as_echo_n "checking for uint64_t... " >&6; }
11761
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 11763/* end confdefs.h. */
b0322a85
CE
11764
11765#if HAVE_SYS_TYPES_H
11766#include <sys/types.h>
11767#endif
11768
8d138742
CE
11769int
11770main ()
11771{
b0322a85
CE
11772
11773 uint64_t i=0;
d9898ee8 11774
8d138742
CE
11775 ;
11776 return 0;
11777}
d9898ee8 11778_ACEOF
b0322a85
CE
11779if ac_fn_c_try_compile "$LINENO"; then :
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11781$as_echo "yes" >&6; } ; int64="uint64_t"
8d138742 11782else
d9898ee8 11783
d9898ee8 11784
b0322a85
CE
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786$as_echo "no" >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_64_t" >&5
11788$as_echo_n "checking for u_int_64_t... " >&6; }
11789
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 11791/* end confdefs.h. */
b0322a85
CE
11792
11793#if HAVE_SYS_TYPES_H
11794#include <sys/types.h>
11795#endif
11796
d9898ee8 11797int
11798main ()
11799{
8d138742 11800
b0322a85 11801 u_int64_t i=0;
8d138742
CE
11802
11803 ;
dd184caf 11804 return 0;
d9898ee8 11805}
11806_ACEOF
b0322a85
CE
11807if ac_fn_c_try_compile "$LINENO"; then :
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11809$as_echo "yes" >&6; }; int64="u_int64_t"
11810else
11811
11812
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814$as_echo "no" >&6; }
11815
11816 # The cast to long int works around a bug in the HP C Compiler
11817# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11818# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11819# This bug is HP SR number 8606223364.
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
11821$as_echo_n "checking size of unsigned... " >&6; }
11822if ${ac_cv_sizeof_unsigned+:} false; then :
11823 $as_echo_n "(cached) " >&6
d9898ee8 11824else
b0322a85 11825 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
d9898ee8 11826
b0322a85
CE
11827else
11828 if test "$ac_cv_type_unsigned" = yes; then
11829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 11830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
11831as_fn_error 77 "cannot compute sizeof (unsigned)
11832See \`config.log' for more details" "$LINENO" 5; }
8d138742
CE
11833 else
11834 ac_cv_sizeof_unsigned=0
11835 fi
d9898ee8 11836fi
b0322a85 11837
d9898ee8 11838fi
b0322a85 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
8d138742 11840$as_echo "$ac_cv_sizeof_unsigned" >&6; }
d9898ee8 11841
d9898ee8 11842
d9898ee8 11843
8d138742
CE
11844cat >>confdefs.h <<_ACEOF
11845#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
11846_ACEOF
d9898ee8 11847
11848
b0322a85 11849 if test "$ac_cv_sizeof_unsigned" != 8
8d138742
CE
11850 then
11851 # The cast to long int works around a bug in the HP C Compiler
11852# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11853# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11854# This bug is HP SR number 8606223364.
b0322a85 11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8d138742 11856$as_echo_n "checking size of unsigned long... " >&6; }
b0322a85 11857if ${ac_cv_sizeof_unsigned_long+:} false; then :
8d138742 11858 $as_echo_n "(cached) " >&6
d9898ee8 11859else
b0322a85 11860 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8d138742 11861
d9898ee8 11862else
b0322a85
CE
11863 if test "$ac_cv_type_unsigned_long" = yes; then
11864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11866as_fn_error 77 "cannot compute sizeof (unsigned long)
11867See \`config.log' for more details" "$LINENO" 5; }
11868 else
11869 ac_cv_sizeof_unsigned_long=0
11870 fi
11871fi
d9898ee8 11872
d9898ee8 11873fi
b0322a85
CE
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
11875$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
dd184caf 11876
d9898ee8 11877
d9898ee8 11878
b0322a85
CE
11879cat >>confdefs.h <<_ACEOF
11880#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
d9898ee8 11881_ACEOF
d9898ee8 11882
b0322a85
CE
11883
11884 if test "$ac_cv_sizeof_unsigned_long" != 8
11885 then
11886 # The cast to long int works around a bug in the HP C Compiler
11887# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11888# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11889# This bug is HP SR number 8606223364.
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
11891$as_echo_n "checking size of unsigned long long... " >&6; }
11892if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
11893 $as_echo_n "(cached) " >&6
d9898ee8 11894else
b0322a85 11895 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
d9898ee8 11896
b0322a85
CE
11897else
11898 if test "$ac_cv_type_unsigned_long_long" = yes; then
11899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11901as_fn_error 77 "cannot compute sizeof (unsigned long long)
11902See \`config.log' for more details" "$LINENO" 5; }
11903 else
11904 ac_cv_sizeof_unsigned_long_long=0
11905 fi
8d138742 11906fi
d9898ee8 11907
b0322a85
CE
11908fi
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
11910$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
11911
11912
11913
11914cat >>confdefs.h <<_ACEOF
11915#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
11916_ACEOF
11917
11918
11919 if test "$ac_cv_sizeof_unsigned_long_long" != 8
11920 then
11921 # The cast to long int works around a bug in the HP C Compiler
11922# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11923# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11924# This bug is HP SR number 8606223364.
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
11926$as_echo_n "checking size of unsigned short... " >&6; }
11927if ${ac_cv_sizeof_unsigned_short+:} false; then :
11928 $as_echo_n "(cached) " >&6
8d138742 11929else
b0322a85 11930 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
d9898ee8 11931
b0322a85
CE
11932else
11933 if test "$ac_cv_type_unsigned_short" = yes; then
11934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11936as_fn_error 77 "cannot compute sizeof (unsigned short)
11937See \`config.log' for more details" "$LINENO" 5; }
11938 else
11939 ac_cv_sizeof_unsigned_short=0
11940 fi
8d138742 11941fi
d9898ee8 11942
8d138742 11943fi
b0322a85
CE
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
11945$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
8d138742 11946
d9898ee8 11947
b0322a85
CE
11948
11949cat >>confdefs.h <<_ACEOF
11950#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
d9898ee8 11951_ACEOF
d9898ee8 11952
b0322a85
CE
11953
11954 if test "$ac_cv_sizeof_unsigned_short" != 8
11955 then
11956 as_fn_error $? "--with-int64 option is required" "$LINENO" 5
11957 fi
11958 int64="unsigned short"
11959 else
11960 int64="unsigned long long"
11961 fi
11962 else
11963 int64="unsigned long"
11964 fi
11965 else
11966 int64="unsigned"
11967 fi
11968
8d138742 11969fi
b0322a85 11970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11971
b0322a85 11972fi
8d138742 11973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
11974
11975
11976fi
11977
11978UINT64="$int64"
11979
11980
11981cat >>confdefs.h <<_ACEOF
11982#define SHA512_WORD $UINT64
d9898ee8 11983_ACEOF
b0322a85
CE
11984
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11986$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11987if ${ac_cv_c_const+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989else
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 11991/* end confdefs.h. */
b0322a85 11992
d9898ee8 11993int
11994main ()
11995{
8d138742 11996
b0322a85
CE
11997#ifndef __cplusplus
11998 /* Ultrix mips cc rejects this sort of thing. */
11999 typedef int charset[2];
12000 const charset cs = { 0, 0 };
12001 /* SunOS 4.1.1 cc rejects this. */
12002 char const *const *pcpcc;
12003 char **ppc;
12004 /* NEC SVR4.0.2 mips cc rejects this. */
12005 struct point {int x, y;};
12006 static struct point const zero = {0,0};
12007 /* AIX XL C 1.02.0.0 rejects this.
12008 It does not let you subtract one const X* pointer from another in
12009 an arm of an if-expression whose if-part is not a constant
12010 expression */
12011 const char *g = "string";
12012 pcpcc = &g + (g ? g-g : 0);
12013 /* HPUX 7.0 cc rejects these. */
12014 ++pcpcc;
12015 ppc = (char**) pcpcc;
12016 pcpcc = (char const *const *) ppc;
12017 { /* SCO 3.2v4 cc rejects this sort of thing. */
12018 char tx;
12019 char *t = &tx;
12020 char const *s = 0 ? (char *) 0 : (char const *) 0;
12021
12022 *t++ = 0;
12023 if (s) return 0;
12024 }
12025 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12026 int x[] = {25, 17};
12027 const int *foo = &x[0];
12028 ++foo;
12029 }
12030 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12031 typedef const int *iptr;
12032 iptr p = 0;
12033 ++p;
12034 }
12035 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12036 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12037 struct s { int j; const int *ap[3]; } bx;
12038 struct s *b = &bx; b->j = 5;
12039 }
12040 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12041 const int foo = 10;
12042 if (!foo) return 0;
12043 }
12044 return !cs[0] && !zero.x;
12045#endif
8d138742 12046
d9898ee8 12047 ;
12048 return 0;
12049}
12050_ACEOF
b0322a85
CE
12051if ac_fn_c_try_compile "$LINENO"; then :
12052 ac_cv_c_const=yes
d9898ee8 12053else
b0322a85 12054 ac_cv_c_const=no
d9898ee8 12055fi
b0322a85 12056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12057fi
b0322a85
CE
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12059$as_echo "$ac_cv_c_const" >&6; }
12060if test $ac_cv_c_const = no; then
8d138742 12061
b0322a85 12062$as_echo "#define const /**/" >>confdefs.h
8d138742 12063
b0322a85 12064fi
8d138742 12065
b0322a85
CE
12066# Check whether --enable-largefile was given.
12067if test "${enable_largefile+set}" = set; then :
12068 enableval=$enable_largefile;
12069fi
d9898ee8 12070
b0322a85 12071if test "$enable_largefile" != no; then
8d138742 12072
b0322a85
CE
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12074$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12075if ${ac_cv_sys_largefile_CC+:} false; then :
8d138742 12076 $as_echo_n "(cached) " >&6
d9898ee8 12077else
b0322a85
CE
12078 ac_cv_sys_largefile_CC=no
12079 if test "$GCC" != yes; then
12080 ac_save_CC=$CC
12081 while :; do
12082 # IRIX 6.2 and later do not support large files by default,
12083 # so use the C compiler's -n32 option if that helps.
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12085/* end confdefs.h. */
b0322a85
CE
12086#include <sys/types.h>
12087 /* Check that off_t can represent 2**63 - 1 correctly.
12088 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12089 since some C++ compilers masquerading as C compilers
12090 incorrectly reject 9223372036854775807. */
12091#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12092 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12093 && LARGE_OFF_T % 2147483647 == 1)
12094 ? 1 : -1];
d9898ee8 12095int
12096main ()
12097{
d9898ee8 12098
12099 ;
12100 return 0;
12101}
12102_ACEOF
b0322a85
CE
12103 if ac_fn_c_try_compile "$LINENO"; then :
12104 break
12105fi
12106rm -f core conftest.err conftest.$ac_objext
12107 CC="$CC -n32"
12108 if ac_fn_c_try_compile "$LINENO"; then :
12109 ac_cv_sys_largefile_CC=' -n32'; break
12110fi
12111rm -f core conftest.err conftest.$ac_objext
12112 break
12113 done
12114 CC=$ac_save_CC
12115 rm -f conftest.$ac_ext
12116 fi
12117fi
12118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12119$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12120 if test "$ac_cv_sys_largefile_CC" != no; then
12121 CC=$CC$ac_cv_sys_largefile_CC
12122 fi
12123
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12125$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12126if ${ac_cv_sys_file_offset_bits+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128else
d9898ee8 12129 while :; do
b0322a85 12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12131/* end confdefs.h. */
b0322a85
CE
12132#include <sys/types.h>
12133 /* Check that off_t can represent 2**63 - 1 correctly.
12134 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12135 since some C++ compilers masquerading as C compilers
12136 incorrectly reject 9223372036854775807. */
12137#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12139 && LARGE_OFF_T % 2147483647 == 1)
12140 ? 1 : -1];
d9898ee8 12141int
12142main ()
12143{
d9898ee8 12144
12145 ;
12146 return 0;
12147}
12148_ACEOF
b0322a85
CE
12149if ac_fn_c_try_compile "$LINENO"; then :
12150 ac_cv_sys_file_offset_bits=no; break
d9898ee8 12151fi
dd184caf 12152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85 12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12154/* end confdefs.h. */
b0322a85
CE
12155#define _FILE_OFFSET_BITS 64
12156#include <sys/types.h>
12157 /* Check that off_t can represent 2**63 - 1 correctly.
12158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12159 since some C++ compilers masquerading as C compilers
12160 incorrectly reject 9223372036854775807. */
12161#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12163 && LARGE_OFF_T % 2147483647 == 1)
12164 ? 1 : -1];
d9898ee8 12165int
12166main ()
12167{
d9898ee8 12168
12169 ;
12170 return 0;
12171}
12172_ACEOF
b0322a85
CE
12173if ac_fn_c_try_compile "$LINENO"; then :
12174 ac_cv_sys_file_offset_bits=64; break
12175fi
12176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 ac_cv_sys_file_offset_bits=unknown
12178 break
12179done
12180fi
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12182$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12183case $ac_cv_sys_file_offset_bits in #(
12184 no | unknown) ;;
12185 *)
12186cat >>confdefs.h <<_ACEOF
12187#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12188_ACEOF
12189;;
dd184caf 12190esac
b0322a85
CE
12191rm -rf conftest*
12192 if test $ac_cv_sys_file_offset_bits = unknown; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12194$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12195if ${ac_cv_sys_large_files+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197else
d9898ee8 12198 while :; do
b0322a85 12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12200/* end confdefs.h. */
b0322a85
CE
12201#include <sys/types.h>
12202 /* Check that off_t can represent 2**63 - 1 correctly.
12203 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12204 since some C++ compilers masquerading as C compilers
12205 incorrectly reject 9223372036854775807. */
12206#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12208 && LARGE_OFF_T % 2147483647 == 1)
12209 ? 1 : -1];
d9898ee8 12210int
12211main ()
12212{
d9898ee8 12213
12214 ;
12215 return 0;
12216}
12217_ACEOF
b0322a85
CE
12218if ac_fn_c_try_compile "$LINENO"; then :
12219 ac_cv_sys_large_files=no; break
d9898ee8 12220fi
dd184caf 12221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85 12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 12223/* end confdefs.h. */
b0322a85
CE
12224#define _LARGE_FILES 1
12225#include <sys/types.h>
12226 /* Check that off_t can represent 2**63 - 1 correctly.
12227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12228 since some C++ compilers masquerading as C compilers
12229 incorrectly reject 9223372036854775807. */
12230#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12232 && LARGE_OFF_T % 2147483647 == 1)
12233 ? 1 : -1];
d9898ee8 12234int
12235main ()
12236{
d9898ee8 12237
12238 ;
12239 return 0;
12240}
12241_ACEOF
b0322a85
CE
12242if ac_fn_c_try_compile "$LINENO"; then :
12243 ac_cv_sys_large_files=1; break
8d138742 12244fi
8d138742 12245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0322a85
CE
12246 ac_cv_sys_large_files=unknown
12247 break
8d138742 12248done
b0322a85
CE
12249fi
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12251$as_echo "$ac_cv_sys_large_files" >&6; }
12252case $ac_cv_sys_large_files in #(
12253 no | unknown) ;;
12254 *)
12255cat >>confdefs.h <<_ACEOF
12256#define _LARGE_FILES $ac_cv_sys_large_files
12257_ACEOF
12258;;
8d138742 12259esac
b0322a85
CE
12260rm -rf conftest*
12261 fi
12262
12263
12264fi
12265
12266
12267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12268$as_echo_n "checking for ANSI C header files... " >&6; }
12269if ${ac_cv_header_stdc+:} false; then :
12270 $as_echo_n "(cached) " >&6
8d138742 12271else
b0322a85 12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12273/* end confdefs.h. */
8d138742 12274#include <stdlib.h>
b0322a85
CE
12275#include <stdarg.h>
12276#include <string.h>
12277#include <float.h>
12278
8d138742
CE
12279int
12280main ()
12281{
12282
8d138742
CE
12283 ;
12284 return 0;
12285}
12286_ACEOF
b0322a85
CE
12287if ac_fn_c_try_compile "$LINENO"; then :
12288 ac_cv_header_stdc=yes
8d138742 12289else
b0322a85 12290 ac_cv_header_stdc=no
8d138742 12291fi
b0322a85 12292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d138742 12293
b0322a85
CE
12294if test $ac_cv_header_stdc = yes; then
12295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297/* end confdefs.h. */
12298#include <string.h>
8d138742 12299
8d138742 12300_ACEOF
b0322a85
CE
12301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12302 $EGREP "memchr" >/dev/null 2>&1; then :
8d138742 12303
b0322a85
CE
12304else
12305 ac_cv_header_stdc=no
8d138742 12306fi
b0322a85 12307rm -f conftest*
8d138742
CE
12308
12309fi
12310
b0322a85
CE
12311if test $ac_cv_header_stdc = yes; then
12312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314/* end confdefs.h. */
12315#include <stdlib.h>
8d138742 12316
8d138742 12317_ACEOF
b0322a85
CE
12318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12319 $EGREP "free" >/dev/null 2>&1; then :
8d138742 12320
b0322a85
CE
12321else
12322 ac_cv_header_stdc=no
12323fi
12324rm -f conftest*
8d138742 12325
b0322a85
CE
12326fi
12327
12328if test $ac_cv_header_stdc = yes; then
12329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12330 if test "$cross_compiling" = yes; then :
12331 :
8d138742 12332else
b0322a85 12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 12334/* end confdefs.h. */
b0322a85
CE
12335#include <ctype.h>
12336#include <stdlib.h>
12337#if ((' ' & 0x0FF) == 0x020)
12338# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12339# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12340#else
12341# define ISLOWER(c) \
12342 (('a' <= (c) && (c) <= 'i') \
12343 || ('j' <= (c) && (c) <= 'r') \
12344 || ('s' <= (c) && (c) <= 'z'))
12345# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12346#endif
8d138742 12347
b0322a85 12348#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8d138742
CE
12349int
12350main ()
12351{
b0322a85
CE
12352 int i;
12353 for (i = 0; i < 256; i++)
12354 if (XOR (islower (i), ISLOWER (i))
12355 || toupper (i) != TOUPPER (i))
12356 return 2;
8d138742
CE
12357 return 0;
12358}
12359_ACEOF
b0322a85 12360if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 12361
b0322a85
CE
12362else
12363 ac_cv_header_stdc=no
12364fi
12365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12366 conftest.$ac_objext conftest.beam conftest.$ac_ext
d9898ee8 12367fi
dd184caf 12368
8d138742 12369fi
b0322a85
CE
12370fi
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12372$as_echo "$ac_cv_header_stdc" >&6; }
12373if test $ac_cv_header_stdc = yes; then
8d138742 12374
b0322a85 12375$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 12376
8d138742
CE
12377fi
12378
12379
8d138742
CE
12380ac_config_files="$ac_config_files Makefile"
12381
12382cat >confcache <<\_ACEOF
12383# This file is a shell script that caches the results of configure
12384# tests run on this system so they can be shared between configure
12385# scripts and configure runs, see configure's option --config-cache.
12386# It is not useful on other systems. If it contains results you don't
12387# want to keep, you may remove or edit it.
12388#
12389# config.status only pays attention to the cache file if you give it
12390# the --recheck option to rerun configure.
12391#
12392# `ac_cv_env_foo' variables (set or unset) will be overridden when
12393# loading this file, other *unset* `ac_cv_foo' will be assigned the
12394# following values.
12395
12396_ACEOF
12397
12398# The following way of writing the cache mishandles newlines in values,
12399# but we know of no workaround that is simple, portable, and efficient.
12400# So, we kill variables containing newlines.
12401# Ultrix sh set writes to stderr and can't be redirected directly,
12402# and sets the high bit in the cache file unless we assign to the vars.
12403(
12404 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12405 eval ac_val=\$$ac_var
12406 case $ac_val in #(
12407 *${as_nl}*)
12408 case $ac_var in #(
b0322a85 12409 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
12410$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12411 esac
12412 case $ac_var in #(
12413 _ | IFS | as_nl) ;; #(
12414 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 12415 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742
CE
12416 esac ;;
12417 esac
12418 done
12419
12420 (set) 2>&1 |
12421 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12422 *${as_nl}ac_space=\ *)
b0322a85
CE
12423 # `set' does not quote correctly, so add quotes: double-quote
12424 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
12425 sed -n \
12426 "s/'/'\\\\''/g;
12427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12428 ;; #(
12429 *)
12430 # `set' quotes correctly as required by POSIX, so do not add quotes.
12431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12432 ;;
12433 esac |
12434 sort
12435) |
12436 sed '
12437 /^ac_cv_env_/b end
12438 t clear
12439 :clear
12440 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12441 t end
12442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12443 :end' >>confcache
12444if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12445 if test -w "$cache_file"; then
b0322a85
CE
12446 if test "x$cache_file" != "x/dev/null"; then
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 12448$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
12449 if test ! -f "$cache_file" || test -h "$cache_file"; then
12450 cat confcache >"$cache_file"
12451 else
12452 case $cache_file in #(
12453 */* | ?:*)
12454 mv -f confcache "$cache_file"$$ &&
12455 mv -f "$cache_file"$$ "$cache_file" ;; #(
12456 *)
12457 mv -f confcache "$cache_file" ;;
12458 esac
12459 fi
12460 fi
d9898ee8 12461 else
b0322a85 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742
CE
12463$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12464 fi
12465fi
12466rm -f confcache
d9898ee8 12467
8d138742
CE
12468test "x$prefix" = xNONE && prefix=$ac_default_prefix
12469# Let make expand exec_prefix.
12470test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12471
12472DEFS=-DHAVE_CONFIG_H
12473
12474ac_libobjs=
12475ac_ltlibobjs=
12476for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12477 # 1. Remove the extension, and $U if already installed.
12478 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12479 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12481 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
12482 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12483 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
12484done
12485LIBOBJS=$ac_libobjs
12486
12487LTLIBOBJS=$ac_ltlibobjs
12488
12489
b0322a85
CE
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12491$as_echo_n "checking that generated files are newer than configure... " >&6; }
12492 if test -n "$am_sleep_pid"; then
12493 # Hide warnings about reused PIDs.
12494 wait $am_sleep_pid 2>/dev/null
12495 fi
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12497$as_echo "done" >&6; }
8d138742
CE
12498 if test -n "$EXEEXT"; then
12499 am__EXEEXT_TRUE=
12500 am__EXEEXT_FALSE='#'
12501else
12502 am__EXEEXT_TRUE='#'
12503 am__EXEEXT_FALSE=
12504fi
12505
12506if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then
b0322a85
CE
12507 as_fn_error $? "conditional \"HMACC\" was never defined.
12508Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12509fi
12510if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
12511 as_fn_error $? "conditional \"AMDEP\" was never defined.
12512Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12513fi
12514if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
12515 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12516Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12517fi
12518
b0322a85 12519: "${CONFIG_STATUS=./config.status}"
8d138742
CE
12520ac_write_fail=0
12521ac_clean_files_save=$ac_clean_files
12522ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 12523{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 12524$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
12525as_write_fail=0
12526cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
12527#! $SHELL
12528# Generated by $as_me.
12529# Run this file to recreate the current configuration.
12530# Compiler output produced by configure, useful for debugging
12531# configure, is in config.log if it exists.
12532
12533debug=false
12534ac_cs_recheck=false
12535ac_cs_silent=false
8d138742 12536
b0322a85
CE
12537SHELL=\${CONFIG_SHELL-$SHELL}
12538export SHELL
12539_ASEOF
12540cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12541## -------------------- ##
12542## M4sh Initialization. ##
12543## -------------------- ##
8d138742
CE
12544
12545# Be more Bourne compatible
12546DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 12547if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
12548 emulate sh
12549 NULLCMD=:
12550 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12551 # is contrary to our usage. Disable this feature.
12552 alias -g '${1+"$@"}'='"$@"'
12553 setopt NO_GLOB_SUBST
d9898ee8 12554else
b0322a85
CE
12555 case `(set -o) 2>/dev/null` in #(
12556 *posix*) :
12557 set -o posix ;; #(
12558 *) :
12559 ;;
8d138742 12560esac
d9898ee8 12561fi
8d138742
CE
12562
12563
8d138742
CE
12564as_nl='
12565'
12566export as_nl
12567# Printing a long string crashes Solaris 7 /usr/bin/printf.
12568as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12569as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12570as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
12571# Prefer a ksh shell builtin over an external printf program on Solaris,
12572# but without wasting forks for bash or zsh.
12573if test -z "$BASH_VERSION$ZSH_VERSION" \
12574 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12575 as_echo='print -r --'
12576 as_echo_n='print -rn --'
12577elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
12578 as_echo='printf %s\n'
12579 as_echo_n='printf %s'
12580else
12581 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12582 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12583 as_echo_n='/usr/ucb/echo -n'
12584 else
12585 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12586 as_echo_n_body='eval
12587 arg=$1;
b0322a85 12588 case $arg in #(
8d138742
CE
12589 *"$as_nl"*)
12590 expr "X$arg" : "X\\(.*\\)$as_nl";
12591 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12592 esac;
12593 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12594 '
12595 export as_echo_n_body
12596 as_echo_n='sh -c $as_echo_n_body as_echo'
12597 fi
12598 export as_echo_body
12599 as_echo='sh -c $as_echo_body as_echo'
d9898ee8 12600fi
8d138742
CE
12601
12602# The user is always right.
12603if test "${PATH_SEPARATOR+set}" != set; then
12604 PATH_SEPARATOR=:
12605 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12606 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12607 PATH_SEPARATOR=';'
12608 }
d9898ee8 12609fi
dd184caf 12610
dd184caf 12611
8d138742
CE
12612# IFS
12613# We need space, tab and new line, in precisely that order. Quoting is
12614# there to prevent editors from complaining about space-tab.
12615# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12616# splitting by setting IFS to empty value.)
12617IFS=" "" $as_nl"
d9898ee8 12618
8d138742 12619# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
12620as_myself=
12621case $0 in #((
8d138742
CE
12622 *[\\/]* ) as_myself=$0 ;;
12623 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624for as_dir in $PATH
12625do
12626 IFS=$as_save_IFS
12627 test -z "$as_dir" && as_dir=.
b0322a85
CE
12628 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12629 done
8d138742 12630IFS=$as_save_IFS
d9898ee8 12631
8d138742 12632 ;;
dd184caf 12633esac
8d138742
CE
12634# We did not find ourselves, most probably we were run as `sh COMMAND'
12635# in which case we are not to be found in the path.
12636if test "x$as_myself" = x; then
12637 as_myself=$0
d9898ee8 12638fi
8d138742
CE
12639if test ! -f "$as_myself"; then
12640 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 12641 exit 1
d9898ee8 12642fi
d9898ee8 12643
b0322a85
CE
12644# Unset variables that we do not need and which cause bugs (e.g. in
12645# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12646# suppresses any "Segmentation fault" message there. '((' could
12647# trigger a bug in pdksh 5.2.14.
12648for as_var in BASH_ENV ENV MAIL MAILPATH
12649do eval test x\${$as_var+set} = xset \
12650 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
12651done
12652PS1='$ '
12653PS2='> '
12654PS4='+ '
d9898ee8 12655
8d138742
CE
12656# NLS nuisances.
12657LC_ALL=C
12658export LC_ALL
12659LANGUAGE=C
12660export LANGUAGE
d9898ee8 12661
b0322a85
CE
12662# CDPATH.
12663(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12664
12665
12666# as_fn_error STATUS ERROR [LINENO LOG_FD]
12667# ----------------------------------------
12668# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12669# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12670# script with STATUS, using 1 if that was 0.
12671as_fn_error ()
12672{
12673 as_status=$1; test $as_status -eq 0 && as_status=1
12674 if test "$4"; then
12675 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12676 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12677 fi
12678 $as_echo "$as_me: error: $2" >&2
12679 as_fn_exit $as_status
12680} # as_fn_error
12681
12682
12683# as_fn_set_status STATUS
12684# -----------------------
12685# Set $? to STATUS, without forking.
12686as_fn_set_status ()
12687{
12688 return $1
12689} # as_fn_set_status
12690
12691# as_fn_exit STATUS
12692# -----------------
12693# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12694as_fn_exit ()
12695{
12696 set +e
12697 as_fn_set_status $1
12698 exit $1
12699} # as_fn_exit
12700
12701# as_fn_unset VAR
12702# ---------------
12703# Portably unset VAR.
12704as_fn_unset ()
12705{
12706 { eval $1=; unset $1;}
12707}
12708as_unset=as_fn_unset
12709# as_fn_append VAR VALUE
12710# ----------------------
12711# Append the text in VALUE to the end of the definition contained in VAR. Take
12712# advantage of any shell optimizations that allow amortized linear growth over
12713# repeated appends, instead of the typical quadratic growth present in naive
12714# implementations.
12715if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12716 eval 'as_fn_append ()
12717 {
12718 eval $1+=\$2
12719 }'
12720else
12721 as_fn_append ()
12722 {
12723 eval $1=\$$1\$2
12724 }
12725fi # as_fn_append
12726
12727# as_fn_arith ARG...
12728# ------------------
12729# Perform arithmetic evaluation on the ARGs, and store the result in the
12730# global $as_val. Take advantage of shells that can avoid forks. The arguments
12731# must be portable across $(()) and expr.
12732if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12733 eval 'as_fn_arith ()
12734 {
12735 as_val=$(( $* ))
12736 }'
12737else
12738 as_fn_arith ()
12739 {
12740 as_val=`expr "$@" || test $? -eq 1`
12741 }
12742fi # as_fn_arith
12743
12744
8d138742
CE
12745if expr a : '\(a\)' >/dev/null 2>&1 &&
12746 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12747 as_expr=expr
d9898ee8 12748else
8d138742 12749 as_expr=false
d9898ee8 12750fi
dd184caf 12751
8d138742
CE
12752if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12753 as_basename=basename
d9898ee8 12754else
8d138742
CE
12755 as_basename=false
12756fi
d9898ee8 12757
b0322a85
CE
12758if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12759 as_dirname=dirname
12760else
12761 as_dirname=false
12762fi
d9898ee8 12763
8d138742
CE
12764as_me=`$as_basename -- "$0" ||
12765$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12766 X"$0" : 'X\(//\)$' \| \
12767 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12768$as_echo X/"$0" |
12769 sed '/^.*\/\([^/][^/]*\)\/*$/{
12770 s//\1/
12771 q
12772 }
12773 /^X\/\(\/\/\)$/{
12774 s//\1/
12775 q
12776 }
12777 /^X\/\(\/\).*/{
12778 s//\1/
12779 q
12780 }
12781 s/.*/./; q'`
12782
b0322a85
CE
12783# Avoid depending upon Character Ranges.
12784as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12785as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12786as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12787as_cr_digits='0123456789'
12788as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 12789
8d138742 12790ECHO_C= ECHO_N= ECHO_T=
b0322a85 12791case `echo -n x` in #(((((
8d138742 12792-n*)
b0322a85 12793 case `echo 'xy\c'` in
8d138742 12794 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
12795 xy) ECHO_C='\c';;
12796 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12797 ECHO_T=' ';;
8d138742
CE
12798 esac;;
12799*)
12800 ECHO_N='-n';;
12801esac
b0322a85
CE
12802
12803rm -f conf$$ conf$$.exe conf$$.file
12804if test -d conf$$.dir; then
12805 rm -f conf$$.dir/conf$$.file
8d138742 12806else
b0322a85
CE
12807 rm -f conf$$.dir
12808 mkdir conf$$.dir 2>/dev/null
12809fi
12810if (echo >conf$$.file) 2>/dev/null; then
12811 if ln -s conf$$.file conf$$ 2>/dev/null; then
12812 as_ln_s='ln -s'
12813 # ... but there are two gotchas:
12814 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12815 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12816 # In both cases, we have to default to `cp -pR'.
12817 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12818 as_ln_s='cp -pR'
12819 elif ln conf$$.file conf$$ 2>/dev/null; then
12820 as_ln_s=ln
12821 else
12822 as_ln_s='cp -pR'
12823 fi
12824else
12825 as_ln_s='cp -pR'
d9898ee8 12826fi
b0322a85
CE
12827rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12828rmdir conf$$.dir 2>/dev/null
12829
12830
12831# as_fn_mkdir_p
12832# -------------
12833# Create "$as_dir" as a directory, including parents if necessary.
12834as_fn_mkdir_p ()
12835{
12836
12837 case $as_dir in #(
12838 -*) as_dir=./$as_dir;;
12839 esac
12840 test -d "$as_dir" || eval $as_mkdir_p || {
12841 as_dirs=
12842 while :; do
12843 case $as_dir in #(
12844 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12845 *) as_qdir=$as_dir;;
12846 esac
12847 as_dirs="'$as_qdir' $as_dirs"
12848 as_dir=`$as_dirname -- "$as_dir" ||
12849$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12850 X"$as_dir" : 'X\(//\)[^/]' \| \
12851 X"$as_dir" : 'X\(//\)$' \| \
12852 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12853$as_echo X"$as_dir" |
12854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12855 s//\1/
12856 q
12857 }
12858 /^X\(\/\/\)[^/].*/{
12859 s//\1/
12860 q
12861 }
12862 /^X\(\/\/\)$/{
12863 s//\1/
12864 q
12865 }
12866 /^X\(\/\).*/{
12867 s//\1/
12868 q
12869 }
12870 s/.*/./; q'`
12871 test -d "$as_dir" && break
12872 done
12873 test -z "$as_dirs" || eval "mkdir $as_dirs"
12874 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
dd184caf 12875
d9898ee8 12876
b0322a85 12877} # as_fn_mkdir_p
8d138742 12878if mkdir -p . 2>/dev/null; then
b0322a85 12879 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
12880else
12881 test -d ./-p && rmdir ./-p
12882 as_mkdir_p=false
d9898ee8 12883fi
dd184caf 12884
b0322a85
CE
12885
12886# as_fn_executable_p FILE
12887# -----------------------
12888# Test if FILE is an executable regular file.
12889as_fn_executable_p ()
12890{
12891 test -f "$1" && test -x "$1"
12892} # as_fn_executable_p
12893as_test_x='test -x'
12894as_executable_p=as_fn_executable_p
dd184caf 12895
8d138742
CE
12896# Sed expression to map a string onto a valid CPP name.
12897as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12898
8d138742
CE
12899# Sed expression to map a string onto a valid variable name.
12900as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12901
dd184caf 12902
8d138742 12903exec 6>&1
b0322a85
CE
12904## ----------------------------------- ##
12905## Main body of $CONFIG_STATUS script. ##
12906## ----------------------------------- ##
12907_ASEOF
12908test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 12909
b0322a85
CE
12910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12911# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
12912# report actual input values of CONFIG_FILES etc. instead of their
12913# values after options handling.
12914ac_log="
b0322a85
CE
12915This file was extended by libsha1 $as_me 1.21, which was
12916generated by GNU Autoconf 2.69. Invocation command line was
8d138742
CE
12917
12918 CONFIG_FILES = $CONFIG_FILES
12919 CONFIG_HEADERS = $CONFIG_HEADERS
12920 CONFIG_LINKS = $CONFIG_LINKS
12921 CONFIG_COMMANDS = $CONFIG_COMMANDS
12922 $ $0 $@
12923
12924on `(hostname || uname -n) 2>/dev/null | sed 1q`
12925"
d9898ee8 12926
d9898ee8 12927_ACEOF
8d138742
CE
12928
12929case $ac_config_files in *"
12930"*) set x $ac_config_files; shift; ac_config_files=$*;;
dd184caf 12931esac
8d138742
CE
12932
12933case $ac_config_headers in *"
12934"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
dd184caf 12935esac
d9898ee8 12936
dd184caf 12937
8d138742
CE
12938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12939# Files that config.status was made for.
12940config_files="$ac_config_files"
12941config_headers="$ac_config_headers"
12942config_commands="$ac_config_commands"
12943
12944_ACEOF
12945
12946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12947ac_cs_usage="\
b0322a85
CE
12948\`$as_me' instantiates files and other configuration actions
12949from templates according to the current configuration. Unless the files
12950and actions are specified as TAGs, all are instantiated by default.
8d138742 12951
b0322a85 12952Usage: $0 [OPTION]... [TAG]...
8d138742
CE
12953
12954 -h, --help print this help, then exit
12955 -V, --version print version number and configuration settings, then exit
b0322a85 12956 --config print configuration, then exit
8d138742
CE
12957 -q, --quiet, --silent
12958 do not print progress messages
12959 -d, --debug don't remove temporary files
12960 --recheck update $as_me by reconfiguring in the same conditions
12961 --file=FILE[:TEMPLATE]
12962 instantiate the configuration file FILE
12963 --header=FILE[:TEMPLATE]
12964 instantiate the configuration header FILE
12965
12966Configuration files:
12967$config_files
12968
12969Configuration headers:
12970$config_headers
12971
12972Configuration commands:
12973$config_commands
dd184caf 12974
b0322a85 12975Report bugs to <courier-users@lists.sourceforge.net>."
dd184caf 12976
d9898ee8 12977_ACEOF
8d138742 12978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 12979ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742 12980ac_cs_version="\\
b0322a85
CE
12981libsha1 config.status 1.21
12982configured by $0, generated by GNU Autoconf 2.69,
12983 with options \\"\$ac_cs_config\\"
d9898ee8 12984
b0322a85 12985Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
12986This config.status script is free software; the Free Software Foundation
12987gives unlimited permission to copy, distribute and modify it."
d9898ee8 12988
8d138742
CE
12989ac_pwd='$ac_pwd'
12990srcdir='$srcdir'
12991INSTALL='$INSTALL'
12992MKDIR_P='$MKDIR_P'
12993AWK='$AWK'
12994test -n "\$AWK" || AWK=awk
d9898ee8 12995_ACEOF
d9898ee8 12996
8d138742
CE
12997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12998# The default lists apply if the user does not specify any file.
12999ac_need_defaults=:
13000while test $# != 0
13001do
13002 case $1 in
b0322a85 13003 --*=?*)
8d138742
CE
13004 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13005 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13006 ac_shift=:
13007 ;;
b0322a85
CE
13008 --*=)
13009 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13010 ac_optarg=
13011 ac_shift=:
13012 ;;
8d138742
CE
13013 *)
13014 ac_option=$1
13015 ac_optarg=$2
13016 ac_shift=shift
13017 ;;
13018 esac
dd184caf 13019
8d138742
CE
13020 case $ac_option in
13021 # Handling of the options.
13022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13023 ac_cs_recheck=: ;;
13024 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13025 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
13026 --config | --confi | --conf | --con | --co | --c )
13027 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
13028 --debug | --debu | --deb | --de | --d | -d )
13029 debug=: ;;
13030 --file | --fil | --fi | --f )
13031 $ac_shift
13032 case $ac_optarg in
13033 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 13034 '') as_fn_error $? "missing file argument" ;;
8d138742 13035 esac
b0322a85 13036 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
13037 ac_need_defaults=false;;
13038 --header | --heade | --head | --hea )
13039 $ac_shift
13040 case $ac_optarg in
13041 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13042 esac
b0322a85 13043 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
13044 ac_need_defaults=false;;
13045 --he | --h)
13046 # Conflict between --help and --header
b0322a85
CE
13047 as_fn_error $? "ambiguous option: \`$1'
13048Try \`$0 --help' for more information.";;
8d138742
CE
13049 --help | --hel | -h )
13050 $as_echo "$ac_cs_usage"; exit ;;
13051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13052 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13053 ac_cs_silent=: ;;
13054
13055 # This is an error.
b0322a85
CE
13056 -*) as_fn_error $? "unrecognized option: \`$1'
13057Try \`$0 --help' for more information." ;;
8d138742 13058
b0322a85 13059 *) as_fn_append ac_config_targets " $1"
8d138742
CE
13060 ac_need_defaults=false ;;
13061
13062 esac
13063 shift
13064done
13065
13066ac_configure_extra_args=
13067
13068if $ac_cs_silent; then
13069 exec 6>/dev/null
13070 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 13071fi
d9898ee8 13072
d9898ee8 13073_ACEOF
8d138742
CE
13074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13075if \$ac_cs_recheck; then
b0322a85 13076 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
13077 shift
13078 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13079 CONFIG_SHELL='$SHELL'
13080 export CONFIG_SHELL
13081 exec "\$@"
13082fi
d9898ee8 13083
d9898ee8 13084_ACEOF
8d138742
CE
13085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13086exec 5>>config.log
d9898ee8 13087{
8d138742
CE
13088 echo
13089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13090## Running $as_me. ##
13091_ASBOX
13092 $as_echo "$ac_log"
13093} >&5
d9898ee8 13094
d9898ee8 13095_ACEOF
8d138742
CE
13096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13097#
13098# INIT-COMMANDS
13099#
13100AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13101
dd184caf 13102
8d138742
CE
13103# The HP-UX ksh and POSIX shell print the target directory to stdout
13104# if CDPATH is set.
13105(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13106
8d138742
CE
13107sed_quote_subst='$sed_quote_subst'
13108double_quote_subst='$double_quote_subst'
13109delay_variable_subst='$delay_variable_subst'
b0322a85
CE
13110macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13111macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13112enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13113enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13114pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13115enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13116SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13117ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13118PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13119host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13120host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13121host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13122build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13123build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13124build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13125SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13126Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13127GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13128EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13129FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13130LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13131NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13132LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13133max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13134ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13135exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13136lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13137lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13138lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13139lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13140lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13141reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13142reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13143OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13144deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13145file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13146file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13147want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13148DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13149sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13150AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13151AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13152archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13153STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13154RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13155old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13156old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13157old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13158lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13159CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13160CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13161compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13162GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13163lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13164lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13165lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13166lt_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"`'
13167nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13168lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13169objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13170MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13171lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13172lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13173lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13174lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13175lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13176need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13177MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13178DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13179NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13180LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13181OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13182OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13183libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13184shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13185extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13186archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13187enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13188export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13189whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13190compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13191old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13192old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13193archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13194archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13195module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13196module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13197with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13198allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13199no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13200hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13201hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13202hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13203hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13204hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13205hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13206hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13207inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13208link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13209always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13210export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13211exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13212include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13213prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13214postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13215file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13216variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13217need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13218need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13219version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13220runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13221shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13222shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13223libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13224library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13225soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13226install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13227postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13228postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13229finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13230finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13231hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13232sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13233sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13234hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13235enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13236enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13237enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13238old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13239striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
8d138742
CE
13240
13241LTCC='$LTCC'
13242LTCFLAGS='$LTCFLAGS'
13243compiler='$compiler_DEFAULT'
13244
b0322a85
CE
13245# A function that is used when there is no print builtin or printf.
13246func_fallback_echo ()
13247{
13248 eval 'cat <<_LTECHO_EOF
13249\$1
13250_LTECHO_EOF'
13251}
13252
8d138742 13253# Quote evaled strings.
b0322a85
CE
13254for var in SHELL \
13255ECHO \
13256PATH_SEPARATOR \
13257SED \
8d138742
CE
13258GREP \
13259EGREP \
13260FGREP \
13261LD \
13262NM \
13263LN_S \
13264lt_SP2NL \
13265lt_NL2SP \
13266reload_flag \
13267OBJDUMP \
13268deplibs_check_method \
13269file_magic_cmd \
b0322a85
CE
13270file_magic_glob \
13271want_nocaseglob \
13272DLLTOOL \
13273sharedlib_from_linklib_cmd \
8d138742
CE
13274AR \
13275AR_FLAGS \
b0322a85 13276archiver_list_spec \
8d138742
CE
13277STRIP \
13278RANLIB \
13279CC \
13280CFLAGS \
13281compiler \
13282lt_cv_sys_global_symbol_pipe \
13283lt_cv_sys_global_symbol_to_cdecl \
13284lt_cv_sys_global_symbol_to_c_name_address \
13285lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
b0322a85 13286nm_file_list_spec \
8d138742 13287lt_prog_compiler_no_builtin_flag \
8d138742 13288lt_prog_compiler_pic \
b0322a85 13289lt_prog_compiler_wl \
8d138742
CE
13290lt_prog_compiler_static \
13291lt_cv_prog_compiler_c_o \
13292need_locks \
b0322a85 13293MANIFEST_TOOL \
8d138742
CE
13294DSYMUTIL \
13295NMEDIT \
13296LIPO \
13297OTOOL \
13298OTOOL64 \
13299shrext_cmds \
13300export_dynamic_flag_spec \
13301whole_archive_flag_spec \
13302compiler_needs_object \
13303with_gnu_ld \
13304allow_undefined_flag \
13305no_undefined_flag \
13306hardcode_libdir_flag_spec \
8d138742 13307hardcode_libdir_separator \
8d138742
CE
13308exclude_expsyms \
13309include_expsyms \
13310file_list_spec \
13311variables_saved_for_relink \
13312libname_spec \
13313library_names_spec \
13314soname_spec \
b0322a85 13315install_override_mode \
8d138742
CE
13316finish_eval \
13317old_striplib \
13318striplib; do
b0322a85 13319 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13320 *[\\\\\\\`\\"\\\$]*)
b0322a85 13321 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
8d138742
CE
13322 ;;
13323 *)
13324 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13325 ;;
13326 esac
13327done
d9898ee8 13328
8d138742
CE
13329# Double-quote double-evaled strings.
13330for var in reload_cmds \
13331old_postinstall_cmds \
13332old_postuninstall_cmds \
13333old_archive_cmds \
13334extract_expsyms_cmds \
13335old_archive_from_new_cmds \
13336old_archive_from_expsyms_cmds \
13337archive_cmds \
13338archive_expsym_cmds \
13339module_cmds \
13340module_expsym_cmds \
13341export_symbols_cmds \
13342prelink_cmds \
b0322a85 13343postlink_cmds \
8d138742
CE
13344postinstall_cmds \
13345postuninstall_cmds \
13346finish_cmds \
13347sys_lib_search_path_spec \
13348sys_lib_dlsearch_path_spec; do
b0322a85 13349 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13350 *[\\\\\\\`\\"\\\$]*)
b0322a85 13351 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
8d138742
CE
13352 ;;
13353 *)
13354 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13355 ;;
13356 esac
13357done
d9898ee8 13358
8d138742
CE
13359ac_aux_dir='$ac_aux_dir'
13360xsi_shell='$xsi_shell'
13361lt_shell_append='$lt_shell_append'
13362
13363# See if we are running on zsh, and set the options which allow our
13364# commands through without removal of \ escapes INIT.
13365if test -n "\${ZSH_VERSION+set}" ; then
13366 setopt NO_GLOB_SUBST
d9898ee8 13367fi
dd184caf 13368
d9898ee8 13369
8d138742
CE
13370 PACKAGE='$PACKAGE'
13371 VERSION='$VERSION'
13372 TIMESTAMP='$TIMESTAMP'
13373 RM='$RM'
13374 ofile='$ofile'
13375
13376
dd184caf 13377
dd184caf 13378
d9898ee8 13379_ACEOF
8d138742
CE
13380
13381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13382
13383# Handling of arguments.
13384for ac_config_target in $ac_config_targets
13385do
13386 case $ac_config_target in
13387 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13388 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13389 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13390 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13391
b0322a85 13392 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
13393 esac
13394done
13395
13396
13397# If the user did not use the arguments to specify the items to instantiate,
13398# then the envvar interface is used. Set only those that are not.
13399# We use the long form for the default assignment because of an extremely
13400# bizarre bug on SunOS 4.1.3.
13401if $ac_need_defaults; then
13402 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13403 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13404 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13405fi
13406
13407# Have a temporary directory for convenience. Make it in the build tree
13408# simply because there is no reason against having it here, and in addition,
13409# creating and moving files from /tmp can sometimes cause problems.
13410# Hook for its removal unless debugging.
13411# Note that there is a small window in which the directory will not be cleaned:
13412# after its creation but before its name has been assigned to `$tmp'.
13413$debug ||
d9898ee8 13414{
b0322a85 13415 tmp= ac_tmp=
8d138742 13416 trap 'exit_status=$?
b0322a85
CE
13417 : "${ac_tmp:=$tmp}"
13418 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 13419' 0
b0322a85 13420 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
13421}
13422# Create a (secure) tmp directory for tmp files.
d9898ee8 13423
8d138742
CE
13424{
13425 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 13426 test -d "$tmp"
8d138742
CE
13427} ||
13428{
13429 tmp=./conf$$-$RANDOM
13430 (umask 077 && mkdir "$tmp")
b0322a85
CE
13431} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13432ac_tmp=$tmp
d9898ee8 13433
8d138742
CE
13434# Set up the scripts for CONFIG_FILES section.
13435# No need to generate them if there are no CONFIG_FILES.
13436# This happens for instance with `./config.status config.h'.
13437if test -n "$CONFIG_FILES"; then
dd184caf 13438
8d138742 13439
b0322a85
CE
13440ac_cr=`echo X | tr X '\015'`
13441# On cygwin, bash can eat \r inside `` if the user requested igncr.
13442# But we know of no other shell where ac_cr would be empty at this
13443# point, so we can use a bashism as a fallback.
13444if test "x$ac_cr" = x; then
13445 eval ac_cr=\$\'\\r\'
13446fi
8d138742
CE
13447ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13448if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13449 ac_cs_awk_cr='\\r'
d9898ee8 13450else
8d138742
CE
13451 ac_cs_awk_cr=$ac_cr
13452fi
13453
b0322a85 13454echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
d9898ee8 13455_ACEOF
8d138742
CE
13456
13457
d9898ee8 13458{
8d138742
CE
13459 echo "cat >conf$$subs.awk <<_ACEOF" &&
13460 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13461 echo "_ACEOF"
13462} >conf$$subs.sh ||
b0322a85
CE
13463 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13464ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
13465ac_delim='%!_!# '
13466for ac_last_try in false false false false false :; do
13467 . ./conf$$subs.sh ||
b0322a85 13468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 13469
8d138742
CE
13470 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13471 if test $ac_delim_n = $ac_delim_num; then
13472 break
13473 elif $ac_last_try; then
b0322a85 13474 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 13475 else
8d138742
CE
13476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13477 fi
13478done
13479rm -f conf$$subs.sh
13480
13481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 13482cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
13483_ACEOF
13484sed -n '
13485h
13486s/^/S["/; s/!.*/"]=/
13487p
13488g
13489s/^[^!]*!//
13490:repl
13491t repl
13492s/'"$ac_delim"'$//
13493t delim
13494:nl
13495h
b0322a85 13496s/\(.\{148\}\)..*/\1/
8d138742
CE
13497t more1
13498s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13499p
13500n
13501b repl
13502:more1
13503s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13504p
13505g
13506s/.\{148\}//
13507t nl
13508:delim
13509h
b0322a85 13510s/\(.\{148\}\)..*/\1/
8d138742
CE
13511t more2
13512s/["\\]/\\&/g; s/^/"/; s/$/"/
13513p
13514b
13515:more2
13516s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13517p
13518g
13519s/.\{148\}//
13520t delim
13521' <conf$$subs.awk | sed '
13522/^[^""]/{
13523 N
13524 s/\n//
13525}
13526' >>$CONFIG_STATUS || ac_write_fail=1
13527rm -f conf$$subs.awk
13528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13529_ACAWK
b0322a85 13530cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
13531 for (key in S) S_is_set[key] = 1
13532 FS = "\a"
d9898ee8 13533
d9898ee8 13534}
8d138742
CE
13535{
13536 line = $ 0
13537 nfields = split(line, field, "@")
13538 substed = 0
13539 len = length(field[1])
13540 for (i = 2; i < nfields; i++) {
13541 key = field[i]
13542 keylen = length(key)
13543 if (S_is_set[key]) {
13544 value = S[key]
13545 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13546 len += length(value) + length(field[++i])
13547 substed = 1
13548 } else
13549 len += 1 + keylen
13550 }
13551
13552 print line
13553}
13554
13555_ACAWK
d9898ee8 13556_ACEOF
8d138742
CE
13557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13558if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13559 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 13560else
8d138742 13561 cat
b0322a85
CE
13562fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13563 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8d138742 13564_ACEOF
d9898ee8 13565
b0322a85
CE
13566# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13567# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
13568# trailing colons and then remove the whole line if VPATH becomes empty
13569# (actually we leave an empty line to preserve line numbers).
13570if test "x$srcdir" = x.; then
b0322a85
CE
13571 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13572h
13573s///
13574s/^/:/
13575s/[ ]*$/:/
13576s/:\$(srcdir):/:/g
13577s/:\${srcdir}:/:/g
13578s/:@srcdir@:/:/g
13579s/^:*//
8d138742 13580s/:*$//
b0322a85
CE
13581x
13582s/\(=[ ]*\).*/\1/
13583G
13584s/\n//
8d138742
CE
13585s/^[^=]*=[ ]*$//
13586}'
d9898ee8 13587fi
dd184caf 13588
8d138742
CE
13589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13590fi # test -n "$CONFIG_FILES"
dd184caf 13591
8d138742
CE
13592# Set up the scripts for CONFIG_HEADERS section.
13593# No need to generate them if there are no CONFIG_HEADERS.
13594# This happens for instance with `./config.status Makefile'.
13595if test -n "$CONFIG_HEADERS"; then
b0322a85 13596cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742 13597BEGIN {
d9898ee8 13598_ACEOF
13599
8d138742
CE
13600# Transform confdefs.h into an awk script `defines.awk', embedded as
13601# here-document in config.status, that substitutes the proper values into
13602# config.h.in to produce config.h.
d9898ee8 13603
8d138742
CE
13604# Create a delimiter string that does not exist in confdefs.h, to ease
13605# handling of long lines.
13606ac_delim='%!_!# '
13607for ac_last_try in false false :; do
b0322a85
CE
13608 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13609 if test -z "$ac_tt"; then
8d138742
CE
13610 break
13611 elif $ac_last_try; then
b0322a85 13612 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
13613 else
13614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13615 fi
13616done
13617
13618# For the awk script, D is an array of macro values keyed by name,
13619# likewise P contains macro parameters if any. Preserve backslash
13620# newline sequences.
13621
13622ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13623sed -n '
13624s/.\{148\}/&'"$ac_delim"'/g
13625t rset
13626:rset
13627s/^[ ]*#[ ]*define[ ][ ]*/ /
13628t def
13629d
13630:def
13631s/\\$//
13632t bsnl
13633s/["\\]/\\&/g
13634s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13635D["\1"]=" \3"/p
13636s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13637d
13638:bsnl
13639s/["\\]/\\&/g
13640s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13641D["\1"]=" \3\\\\\\n"\\/p
13642t cont
13643s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13644t cont
13645d
13646:cont
13647n
13648s/.\{148\}/&'"$ac_delim"'/g
13649t clear
13650:clear
13651s/\\$//
13652t bsnlc
13653s/["\\]/\\&/g; s/^/"/; s/$/"/p
13654d
13655:bsnlc
13656s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13657b cont
13658' <confdefs.h | sed '
13659s/'"$ac_delim"'/"\\\
13660"/g' >>$CONFIG_STATUS || ac_write_fail=1
13661
13662cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13663 for (key in D) D_is_set[key] = 1
13664 FS = "\a"
13665}
13666/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13667 line = \$ 0
13668 split(line, arg, " ")
13669 if (arg[1] == "#") {
13670 defundef = arg[2]
13671 mac1 = arg[3]
13672 } else {
13673 defundef = substr(arg[1], 2)
13674 mac1 = arg[2]
13675 }
13676 split(mac1, mac2, "(") #)
13677 macro = mac2[1]
13678 prefix = substr(line, 1, index(line, defundef) - 1)
13679 if (D_is_set[macro]) {
13680 # Preserve the white space surrounding the "#".
13681 print prefix "define", macro P[macro] D[macro]
13682 next
13683 } else {
13684 # Replace #undef with comments. This is necessary, for example,
13685 # in the case of _POSIX_SOURCE, which is predefined and required
13686 # on some systems where configure will not decide to define it.
13687 if (defundef == "undef") {
13688 print "/*", prefix defundef, macro, "*/"
13689 next
13690 }
13691 }
13692}
13693{ print }
13694_ACAWK
13695_ACEOF
13696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 13697 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 13698fi # test -n "$CONFIG_HEADERS"
d9898ee8 13699
dd184caf 13700
8d138742
CE
13701eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13702shift
13703for ac_tag
13704do
13705 case $ac_tag in
13706 :[FHLC]) ac_mode=$ac_tag; continue;;
13707 esac
13708 case $ac_mode$ac_tag in
13709 :[FHL]*:*);;
b0322a85 13710 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
13711 :[FH]-) ac_tag=-:-;;
13712 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13713 esac
13714 ac_save_IFS=$IFS
13715 IFS=:
13716 set x $ac_tag
13717 IFS=$ac_save_IFS
13718 shift
13719 ac_file=$1
13720 shift
d9898ee8 13721
8d138742
CE
13722 case $ac_mode in
13723 :L) ac_source=$1;;
13724 :[FH])
13725 ac_file_inputs=
13726 for ac_f
13727 do
13728 case $ac_f in
b0322a85 13729 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
13730 *) # Look for the file first in the build tree, then in the source tree
13731 # (if the path is not absolute). The absolute path cannot be DOS-style,
13732 # because $ac_f cannot contain `:'.
13733 test -f "$ac_f" ||
13734 case $ac_f in
13735 [\\/$]*) false;;
13736 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13737 esac ||
b0322a85 13738 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
13739 esac
13740 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 13741 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 13742 done
d9898ee8 13743
8d138742
CE
13744 # Let's still pretend it is `configure' which instantiates (i.e., don't
13745 # use $as_me), people would be surprised to read:
13746 # /* config.h. Generated by config.status. */
13747 configure_input='Generated from '`
13748 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13749 `' by configure.'
13750 if test x"$ac_file" != x-; then
13751 configure_input="$ac_file. $configure_input"
b0322a85 13752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
13753$as_echo "$as_me: creating $ac_file" >&6;}
13754 fi
13755 # Neutralize special characters interpreted by sed in replacement strings.
13756 case $configure_input in #(
13757 *\&* | *\|* | *\\* )
13758 ac_sed_conf_input=`$as_echo "$configure_input" |
13759 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13760 *) ac_sed_conf_input=$configure_input;;
13761 esac
dd184caf 13762
8d138742 13763 case $ac_tag in
b0322a85
CE
13764 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
13766 esac
13767 ;;
13768 esac
dd184caf 13769
8d138742
CE
13770 ac_dir=`$as_dirname -- "$ac_file" ||
13771$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13772 X"$ac_file" : 'X\(//\)[^/]' \| \
13773 X"$ac_file" : 'X\(//\)$' \| \
13774 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13775$as_echo X"$ac_file" |
13776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13777 s//\1/
13778 q
13779 }
13780 /^X\(\/\/\)[^/].*/{
13781 s//\1/
13782 q
13783 }
13784 /^X\(\/\/\)$/{
13785 s//\1/
13786 q
13787 }
13788 /^X\(\/\).*/{
13789 s//\1/
13790 q
13791 }
13792 s/.*/./; q'`
b0322a85 13793 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742 13794 ac_builddir=.
d9898ee8 13795
8d138742
CE
13796case "$ac_dir" in
13797.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13798*)
13799 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13800 # A ".." for each directory in $ac_dir_suffix.
13801 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13802 case $ac_top_builddir_sub in
13803 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13804 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13805 esac ;;
13806esac
13807ac_abs_top_builddir=$ac_pwd
13808ac_abs_builddir=$ac_pwd$ac_dir_suffix
13809# for backward compatibility:
13810ac_top_builddir=$ac_top_build_prefix
d9898ee8 13811
8d138742
CE
13812case $srcdir in
13813 .) # We are building in place.
13814 ac_srcdir=.
13815 ac_top_srcdir=$ac_top_builddir_sub
13816 ac_abs_top_srcdir=$ac_pwd ;;
13817 [\\/]* | ?:[\\/]* ) # Absolute name.
13818 ac_srcdir=$srcdir$ac_dir_suffix;
13819 ac_top_srcdir=$srcdir
13820 ac_abs_top_srcdir=$srcdir ;;
13821 *) # Relative name.
13822 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13823 ac_top_srcdir=$ac_top_build_prefix$srcdir
13824 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13825esac
13826ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 13827
d9898ee8 13828
8d138742
CE
13829 case $ac_mode in
13830 :F)
13831 #
13832 # CONFIG_FILE
13833 #
d9898ee8 13834
8d138742
CE
13835 case $INSTALL in
13836 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13837 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13838 esac
13839 ac_MKDIR_P=$MKDIR_P
13840 case $MKDIR_P in
13841 [\\/$]* | ?:[\\/]* ) ;;
13842 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13843 esac
d9898ee8 13844_ACEOF
d9898ee8 13845
8d138742
CE
13846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13847# If the template does not know about datarootdir, expand it.
13848# FIXME: This hack should be removed a few years after 2.60.
13849ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
13850ac_sed_dataroot='
13851/datarootdir/ {
13852 p
13853 q
13854}
13855/@datadir@/p
13856/@docdir@/p
13857/@infodir@/p
13858/@localedir@/p
b0322a85 13859/@mandir@/p'
8d138742
CE
13860case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13861*datarootdir*) ac_datarootdir_seen=yes;;
13862*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 13863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742
CE
13864$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13865_ACEOF
13866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13867 ac_datarootdir_hack='
13868 s&@datadir@&$datadir&g
13869 s&@docdir@&$docdir&g
13870 s&@infodir@&$infodir&g
13871 s&@localedir@&$localedir&g
13872 s&@mandir@&$mandir&g
b0322a85 13873 s&\\\${datarootdir}&$datarootdir&g' ;;
8d138742
CE
13874esac
13875_ACEOF
13876
13877# Neutralize VPATH when `$srcdir' = `.'.
13878# Shell code in configure.ac might set extrasub.
13879# FIXME: do we really want to maintain this feature?
13880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13881ac_sed_extra="$ac_vpsub
13882$extrasub
13883_ACEOF
13884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13885:t
13886/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13887s|@configure_input@|$ac_sed_conf_input|;t t
13888s&@top_builddir@&$ac_top_builddir_sub&;t t
13889s&@top_build_prefix@&$ac_top_build_prefix&;t t
13890s&@srcdir@&$ac_srcdir&;t t
13891s&@abs_srcdir@&$ac_abs_srcdir&;t t
13892s&@top_srcdir@&$ac_top_srcdir&;t t
13893s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13894s&@builddir@&$ac_builddir&;t t
13895s&@abs_builddir@&$ac_abs_builddir&;t t
13896s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13897s&@INSTALL@&$ac_INSTALL&;t t
13898s&@MKDIR_P@&$ac_MKDIR_P&;t t
13899$ac_datarootdir_hack
13900"
b0322a85
CE
13901eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13902 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 13903
8d138742 13904test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
13905 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13906 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13907 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13909which seems to be undefined. Please make sure it is defined" >&5
8d138742 13910$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 13911which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 13912
b0322a85 13913 rm -f "$ac_tmp/stdin"
8d138742 13914 case $ac_file in
b0322a85
CE
13915 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13916 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 13917 esac \
b0322a85 13918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
13919 ;;
13920 :H)
13921 #
13922 # CONFIG_HEADER
13923 #
13924 if test x"$ac_file" != x-; then
13925 {
13926 $as_echo "/* $configure_input */" \
b0322a85
CE
13927 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13928 } >"$ac_tmp/config.h" \
13929 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13930 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
13932$as_echo "$as_me: $ac_file is unchanged" >&6;}
13933 else
13934 rm -f "$ac_file"
b0322a85
CE
13935 mv "$ac_tmp/config.h" "$ac_file" \
13936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
13937 fi
13938 else
13939 $as_echo "/* $configure_input */" \
b0322a85
CE
13940 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13941 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
13942 fi
13943# Compute "$ac_file"'s index in $config_headers.
13944_am_arg="$ac_file"
13945_am_stamp_count=1
13946for _am_header in $config_headers :; do
13947 case $_am_header in
13948 $_am_arg | $_am_arg:* )
13949 break ;;
13950 * )
13951 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13952 esac
13953done
13954echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13955$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13956 X"$_am_arg" : 'X\(//\)[^/]' \| \
13957 X"$_am_arg" : 'X\(//\)$' \| \
13958 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13959$as_echo X"$_am_arg" |
13960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13961 s//\1/
13962 q
13963 }
13964 /^X\(\/\/\)[^/].*/{
13965 s//\1/
13966 q
13967 }
13968 /^X\(\/\/\)$/{
13969 s//\1/
13970 q
13971 }
13972 /^X\(\/\).*/{
13973 s//\1/
13974 q
13975 }
13976 s/.*/./; q'`/stamp-h$_am_stamp_count
13977 ;;
dd184caf 13978
b0322a85 13979 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
13980$as_echo "$as_me: executing $ac_file commands" >&6;}
13981 ;;
13982 esac
d9898ee8 13983
d9898ee8 13984
8d138742
CE
13985 case $ac_file$ac_mode in
13986 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 13987 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
13988 # are listed without --file. Let's play safe and only enable the eval
13989 # if we detect the quoting.
13990 case $CONFIG_FILES in
13991 *\'*) eval set x "$CONFIG_FILES" ;;
13992 *) set x $CONFIG_FILES ;;
13993 esac
13994 shift
13995 for mf
13996 do
13997 # Strip MF so we end up with the name of the file.
13998 mf=`echo "$mf" | sed -e 's/:.*$//'`
13999 # Check whether this is an Automake generated Makefile or not.
b0322a85 14000 # We used to match only the files named 'Makefile.in', but
8d138742
CE
14001 # some people rename them; so instead we look at the file content.
14002 # Grep'ing the first line is not enough: some people post-process
14003 # each Makefile.in and add a new line on top of each file to say so.
14004 # Grep'ing the whole file is not good either: AIX grep has a line
14005 # limit of 2048, but all sed's we know have understand at least 4000.
14006 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14007 dirpart=`$as_dirname -- "$mf" ||
14008$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14009 X"$mf" : 'X\(//\)[^/]' \| \
14010 X"$mf" : 'X\(//\)$' \| \
14011 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14012$as_echo X"$mf" |
14013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14014 s//\1/
14015 q
14016 }
14017 /^X\(\/\/\)[^/].*/{
14018 s//\1/
14019 q
14020 }
14021 /^X\(\/\/\)$/{
14022 s//\1/
14023 q
14024 }
14025 /^X\(\/\).*/{
14026 s//\1/
14027 q
14028 }
14029 s/.*/./; q'`
14030 else
14031 continue
14032 fi
14033 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 14034 # from the Makefile without running 'make'.
8d138742
CE
14035 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14036 test -z "$DEPDIR" && continue
14037 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 14038 test -z "$am__include" && continue
8d138742 14039 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
14040 # Find all dependency output files, they are included files with
14041 # $(DEPDIR) in their names. We invoke sed twice because it is the
14042 # simplest approach to changing $(DEPDIR) to its actual value in the
14043 # expansion.
14044 for file in `sed -n "
14045 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 14046 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
14047 # Make sure the directory exists.
14048 test -f "$dirpart/$file" && continue
14049 fdir=`$as_dirname -- "$file" ||
14050$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14051 X"$file" : 'X\(//\)[^/]' \| \
14052 X"$file" : 'X\(//\)$' \| \
14053 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14054$as_echo X"$file" |
14055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14056 s//\1/
14057 q
14058 }
14059 /^X\(\/\/\)[^/].*/{
14060 s//\1/
14061 q
14062 }
14063 /^X\(\/\/\)$/{
14064 s//\1/
14065 q
14066 }
14067 /^X\(\/\).*/{
14068 s//\1/
14069 q
14070 }
14071 s/.*/./; q'`
b0322a85 14072 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
14073 # echo "creating $dirpart/$file"
14074 echo '# dummy' > "$dirpart/$file"
14075 done
14076 done
14077}
14078 ;;
14079 "libtool":C)
d9898ee8 14080
8d138742
CE
14081 # See if we are running on zsh, and set the options which allow our
14082 # commands through without removal of \ escapes.
14083 if test -n "${ZSH_VERSION+set}" ; then
14084 setopt NO_GLOB_SUBST
14085 fi
d9898ee8 14086
8d138742
CE
14087 cfgfile="${ofile}T"
14088 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14089 $RM "$cfgfile"
d9898ee8 14090
8d138742
CE
14091 cat <<_LT_EOF >> "$cfgfile"
14092#! $SHELL
dd184caf 14093
8d138742
CE
14094# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14095# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14096# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14097# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 14098#
8d138742 14099# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
b0322a85
CE
14100# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14101# Foundation, Inc.
8d138742 14102# Written by Gordon Matzigkeit, 1996
d9898ee8 14103#
8d138742
CE
14104# This file is part of GNU Libtool.
14105#
14106# GNU Libtool is free software; you can redistribute it and/or
14107# modify it under the terms of the GNU General Public License as
14108# published by the Free Software Foundation; either version 2 of
14109# the License, or (at your option) any later version.
14110#
14111# As a special exception to the GNU General Public License,
14112# if you distribute this file as part of a program or library that
14113# is built using GNU Libtool, you may include this file under the
14114# same distribution terms that you use for the rest of that program.
14115#
14116# GNU Libtool is distributed in the hope that it will be useful,
14117# but WITHOUT ANY WARRANTY; without even the implied warranty of
14118# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14119# GNU General Public License for more details.
14120#
14121# You should have received a copy of the GNU General Public License
14122# along with GNU Libtool; see the file COPYING. If not, a copy
14123# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14124# obtained by writing to the Free Software Foundation, Inc.,
14125# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 14126
d9898ee8 14127
8d138742
CE
14128# The names of the tagged configurations supported by this script.
14129available_tags=""
dd184caf 14130
8d138742 14131# ### BEGIN LIBTOOL CONFIG
d9898ee8 14132
8d138742
CE
14133# Which release of libtool.m4 was used?
14134macro_version=$macro_version
14135macro_revision=$macro_revision
d9898ee8 14136
8d138742
CE
14137# Whether or not to build shared libraries.
14138build_libtool_libs=$enable_shared
d9898ee8 14139
8d138742
CE
14140# Whether or not to build static libraries.
14141build_old_libs=$enable_static
d9898ee8 14142
8d138742
CE
14143# What type of objects to build.
14144pic_mode=$pic_mode
d9898ee8 14145
8d138742
CE
14146# Whether or not to optimize for fast installation.
14147fast_install=$enable_fast_install
d9898ee8 14148
b0322a85
CE
14149# Shell to use when invoking shell scripts.
14150SHELL=$lt_SHELL
14151
14152# An echo program that protects backslashes.
14153ECHO=$lt_ECHO
14154
14155# The PATH separator for the build system.
14156PATH_SEPARATOR=$lt_PATH_SEPARATOR
14157
8d138742
CE
14158# The host system.
14159host_alias=$host_alias
14160host=$host
14161host_os=$host_os
d9898ee8 14162
8d138742
CE
14163# The build system.
14164build_alias=$build_alias
14165build=$build
14166build_os=$build_os
d9898ee8 14167
8d138742
CE
14168# A sed program that does not truncate output.
14169SED=$lt_SED
d9898ee8 14170
8d138742
CE
14171# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14172Xsed="\$SED -e 1s/^X//"
d9898ee8 14173
8d138742
CE
14174# A grep program that handles long lines.
14175GREP=$lt_GREP
dd184caf 14176
8d138742
CE
14177# An ERE matcher.
14178EGREP=$lt_EGREP
dd184caf 14179
8d138742
CE
14180# A literal string matcher.
14181FGREP=$lt_FGREP
dd184caf 14182
8d138742
CE
14183# A BSD- or MS-compatible name lister.
14184NM=$lt_NM
dd184caf 14185
8d138742
CE
14186# Whether we need soft or hard links.
14187LN_S=$lt_LN_S
dd184caf 14188
8d138742
CE
14189# What is the maximum length of a command?
14190max_cmd_len=$max_cmd_len
dd184caf 14191
8d138742
CE
14192# Object file suffix (normally "o").
14193objext=$ac_objext
d9898ee8 14194
8d138742
CE
14195# Executable file suffix (normally "").
14196exeext=$exeext
d9898ee8 14197
8d138742
CE
14198# whether the shell understands "unset".
14199lt_unset=$lt_unset
d9898ee8 14200
8d138742
CE
14201# turn spaces into newlines.
14202SP2NL=$lt_lt_SP2NL
dd184caf 14203
8d138742
CE
14204# turn newlines into spaces.
14205NL2SP=$lt_lt_NL2SP
dd184caf 14206
b0322a85
CE
14207# convert \$build file names to \$host format.
14208to_host_file_cmd=$lt_cv_to_host_file_cmd
14209
14210# convert \$build files to toolchain format.
14211to_tool_file_cmd=$lt_cv_to_tool_file_cmd
dd184caf 14212
8d138742
CE
14213# An object symbol dumper.
14214OBJDUMP=$lt_OBJDUMP
d9898ee8 14215
8d138742
CE
14216# Method to check whether dependent libraries are shared objects.
14217deplibs_check_method=$lt_deplibs_check_method
d9898ee8 14218
b0322a85 14219# Command to use when deplibs_check_method = "file_magic".
8d138742 14220file_magic_cmd=$lt_file_magic_cmd
d9898ee8 14221
b0322a85
CE
14222# How to find potential files when deplibs_check_method = "file_magic".
14223file_magic_glob=$lt_file_magic_glob
14224
14225# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14226want_nocaseglob=$lt_want_nocaseglob
14227
14228# DLL creation program.
14229DLLTOOL=$lt_DLLTOOL
14230
14231# Command to associate shared and link libraries.
14232sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14233
8d138742
CE
14234# The archiver.
14235AR=$lt_AR
b0322a85
CE
14236
14237# Flags to create an archive.
8d138742 14238AR_FLAGS=$lt_AR_FLAGS
d9898ee8 14239
b0322a85
CE
14240# How to feed a file listing to the archiver.
14241archiver_list_spec=$lt_archiver_list_spec
14242
8d138742
CE
14243# A symbol stripping program.
14244STRIP=$lt_STRIP
d9898ee8 14245
8d138742
CE
14246# Commands used to install an old-style archive.
14247RANLIB=$lt_RANLIB
14248old_postinstall_cmds=$lt_old_postinstall_cmds
14249old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 14250
b0322a85
CE
14251# Whether to use a lock for old archive extraction.
14252lock_old_archive_extraction=$lock_old_archive_extraction
14253
8d138742
CE
14254# A C compiler.
14255LTCC=$lt_CC
d9898ee8 14256
8d138742
CE
14257# LTCC compiler flags.
14258LTCFLAGS=$lt_CFLAGS
d9898ee8 14259
8d138742
CE
14260# Take the output of nm and produce a listing of raw symbols and C names.
14261global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 14262
8d138742
CE
14263# Transform the output of nm in a proper C declaration.
14264global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 14265
8d138742
CE
14266# Transform the output of nm in a C name address pair.
14267global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 14268
8d138742
CE
14269# Transform the output of nm in a C name address pair when lib prefix is needed.
14270global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 14271
b0322a85
CE
14272# Specify filename containing input files for \$NM.
14273nm_file_list_spec=$lt_nm_file_list_spec
d9898ee8 14274
b0322a85
CE
14275# The root where to search for dependent libraries,and in which our libraries should be installed.
14276lt_sysroot=$lt_sysroot
dd184caf 14277
b0322a85
CE
14278# The name of the directory that contains temporary libtool files.
14279objdir=$objdir
d9898ee8 14280
8d138742
CE
14281# Used to examine libraries when file_magic_cmd begins with "file".
14282MAGIC_CMD=$MAGIC_CMD
d9898ee8 14283
8d138742
CE
14284# Must we lock files when doing compilation?
14285need_locks=$lt_need_locks
d9898ee8 14286
b0322a85
CE
14287# Manifest tool.
14288MANIFEST_TOOL=$lt_MANIFEST_TOOL
14289
8d138742
CE
14290# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14291DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14292
8d138742
CE
14293# Tool to change global to local symbols on Mac OS X.
14294NMEDIT=$lt_NMEDIT
d9898ee8 14295
8d138742
CE
14296# Tool to manipulate fat objects and archives on Mac OS X.
14297LIPO=$lt_LIPO
d9898ee8 14298
8d138742
CE
14299# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14300OTOOL=$lt_OTOOL
d9898ee8 14301
8d138742
CE
14302# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14303OTOOL64=$lt_OTOOL64
d9898ee8 14304
8d138742
CE
14305# Old archive suffix (normally "a").
14306libext=$libext
d9898ee8 14307
8d138742
CE
14308# Shared library suffix (normally ".so").
14309shrext_cmds=$lt_shrext_cmds
d9898ee8 14310
8d138742
CE
14311# The commands to extract the exported symbol list from a shared archive.
14312extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14313
8d138742
CE
14314# Variables whose values should be saved in libtool wrapper scripts and
14315# restored at link time.
14316variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 14317
8d138742
CE
14318# Do we need the "lib" prefix for modules?
14319need_lib_prefix=$need_lib_prefix
d9898ee8 14320
8d138742
CE
14321# Do we need a version for libraries?
14322need_version=$need_version
d9898ee8 14323
8d138742
CE
14324# Library versioning type.
14325version_type=$version_type
d9898ee8 14326
8d138742
CE
14327# Shared library runtime path variable.
14328runpath_var=$runpath_var
d9898ee8 14329
8d138742
CE
14330# Shared library path variable.
14331shlibpath_var=$shlibpath_var
d9898ee8 14332
8d138742
CE
14333# Is shlibpath searched before the hard-coded library search path?
14334shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14335
8d138742
CE
14336# Format of library name prefix.
14337libname_spec=$lt_libname_spec
d9898ee8 14338
8d138742
CE
14339# List of archive names. First name is the real one, the rest are links.
14340# The last name is the one that the linker finds with -lNAME
14341library_names_spec=$lt_library_names_spec
d9898ee8 14342
8d138742
CE
14343# The coded name of the library, if different from the real name.
14344soname_spec=$lt_soname_spec
d9898ee8 14345
b0322a85
CE
14346# Permission mode override for installation of shared libraries.
14347install_override_mode=$lt_install_override_mode
14348
8d138742
CE
14349# Command to use after installation of a shared archive.
14350postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14351
8d138742
CE
14352# Command to use after uninstallation of a shared archive.
14353postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14354
8d138742
CE
14355# Commands used to finish a libtool library installation in a directory.
14356finish_cmds=$lt_finish_cmds
dd184caf 14357
8d138742
CE
14358# As "finish_cmds", except a single script fragment to be evaled but
14359# not shown.
14360finish_eval=$lt_finish_eval
d9898ee8 14361
8d138742
CE
14362# Whether we should hardcode library paths into libraries.
14363hardcode_into_libs=$hardcode_into_libs
d9898ee8 14364
8d138742
CE
14365# Compile-time system search path for libraries.
14366sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14367
8d138742
CE
14368# Run-time system search path for libraries.
14369sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 14370
8d138742
CE
14371# Whether dlopen is supported.
14372dlopen_support=$enable_dlopen
d9898ee8 14373
8d138742
CE
14374# Whether dlopen of programs is supported.
14375dlopen_self=$enable_dlopen_self
d9898ee8 14376
8d138742
CE
14377# Whether dlopen of statically linked programs is supported.
14378dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14379
8d138742
CE
14380# Commands to strip libraries.
14381old_striplib=$lt_old_striplib
14382striplib=$lt_striplib
d9898ee8 14383
d9898ee8 14384
8d138742
CE
14385# The linker used to build libraries.
14386LD=$lt_LD
d9898ee8 14387
b0322a85
CE
14388# How to create reloadable object files.
14389reload_flag=$lt_reload_flag
14390reload_cmds=$lt_reload_cmds
14391
8d138742
CE
14392# Commands used to build an old-style archive.
14393old_archive_cmds=$lt_old_archive_cmds
d9898ee8 14394
8d138742
CE
14395# A language specific compiler.
14396CC=$lt_compiler
d9898ee8 14397
8d138742
CE
14398# Is the compiler the GNU compiler?
14399with_gcc=$GCC
dd184caf 14400
8d138742
CE
14401# Compiler flag to turn off builtin functions.
14402no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 14403
8d138742
CE
14404# Additional compiler flags for building library objects.
14405pic_flag=$lt_lt_prog_compiler_pic
dd184caf 14406
b0322a85
CE
14407# How to pass a linker flag through the compiler.
14408wl=$lt_lt_prog_compiler_wl
14409
8d138742
CE
14410# Compiler flag to prevent dynamic linking.
14411link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 14412
8d138742
CE
14413# Does compiler simultaneously support -c and -o options?
14414compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14415
14416# Whether or not to add -lc for building shared libraries.
14417build_libtool_need_lc=$archive_cmds_need_lc
14418
14419# Whether or not to disallow shared libs when runtime libs are static.
14420allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14421
14422# Compiler flag to allow reflexive dlopens.
14423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 14424
8d138742
CE
14425# Compiler flag to generate shared objects directly from archives.
14426whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 14427
8d138742
CE
14428# Whether the compiler copes with passing no objects directly.
14429compiler_needs_object=$lt_compiler_needs_object
d9898ee8 14430
8d138742
CE
14431# Create an old-style archive from a shared archive.
14432old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 14433
8d138742
CE
14434# Create a temporary old-style archive to link instead of a shared archive.
14435old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 14436
8d138742
CE
14437# Commands used to build a shared archive.
14438archive_cmds=$lt_archive_cmds
14439archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 14440
8d138742
CE
14441# Commands used to build a loadable module if different from building
14442# a shared archive.
14443module_cmds=$lt_module_cmds
14444module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 14445
8d138742
CE
14446# Whether we are building with GNU ld or not.
14447with_gnu_ld=$lt_with_gnu_ld
dd184caf 14448
8d138742
CE
14449# Flag that allows shared libraries with undefined symbols to be built.
14450allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 14451
8d138742
CE
14452# Flag that enforces no undefined symbols.
14453no_undefined_flag=$lt_no_undefined_flag
d9898ee8 14454
8d138742
CE
14455# Flag to hardcode \$libdir into a binary during linking.
14456# This must work even if \$libdir does not exist
14457hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 14458
8d138742
CE
14459# Whether we need a single "-rpath" flag with a separated argument.
14460hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 14461
8d138742
CE
14462# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14463# DIR into the resulting binary.
14464hardcode_direct=$hardcode_direct
dd184caf 14465
8d138742
CE
14466# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14467# DIR into the resulting binary and the resulting library dependency is
14468# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14469# library is relocated.
14470hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 14471
8d138742
CE
14472# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14473# into the resulting binary.
14474hardcode_minus_L=$hardcode_minus_L
dd184caf 14475
8d138742
CE
14476# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14477# into the resulting binary.
14478hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 14479
8d138742
CE
14480# Set to "yes" if building a shared library automatically hardcodes DIR
14481# into the library and all subsequent libraries and executables linked
14482# against it.
14483hardcode_automatic=$hardcode_automatic
dd184caf 14484
8d138742
CE
14485# Set to yes if linker adds runtime paths of dependent libraries
14486# to runtime path list.
14487inherit_rpath=$inherit_rpath
dd184caf 14488
8d138742
CE
14489# Whether libtool must link a program against all its dependency libraries.
14490link_all_deplibs=$link_all_deplibs
dd184caf 14491
8d138742
CE
14492# Set to "yes" if exported symbols are required.
14493always_export_symbols=$always_export_symbols
dd184caf 14494
8d138742
CE
14495# The commands to list exported symbols.
14496export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 14497
8d138742
CE
14498# Symbols that should not be listed in the preloaded symbols.
14499exclude_expsyms=$lt_exclude_expsyms
d9898ee8 14500
8d138742
CE
14501# Symbols that must always be exported.
14502include_expsyms=$lt_include_expsyms
d9898ee8 14503
8d138742
CE
14504# Commands necessary for linking programs (against libraries) with templates.
14505prelink_cmds=$lt_prelink_cmds
d9898ee8 14506
b0322a85
CE
14507# Commands necessary for finishing linking programs.
14508postlink_cmds=$lt_postlink_cmds
14509
8d138742
CE
14510# Specify filename containing input files.
14511file_list_spec=$lt_file_list_spec
14512
14513# How to hardcode a shared library path into an executable.
14514hardcode_action=$hardcode_action
d9898ee8 14515
8d138742 14516# ### END LIBTOOL CONFIG
d9898ee8 14517
8d138742 14518_LT_EOF
d9898ee8 14519
8d138742
CE
14520 case $host_os in
14521 aix3*)
14522 cat <<\_LT_EOF >> "$cfgfile"
14523# AIX sometimes has problems with the GCC collect2 program. For some
14524# reason, if we set the COLLECT_NAMES environment variable, the problems
14525# vanish in a puff of smoke.
14526if test "X${COLLECT_NAMES+set}" != Xset; then
14527 COLLECT_NAMES=
14528 export COLLECT_NAMES
14529fi
14530_LT_EOF
14531 ;;
dd184caf 14532 esac
8d138742
CE
14533
14534
14535ltmain="$ac_aux_dir/ltmain.sh"
14536
14537
14538 # We use sed instead of cat because bash on DJGPP gets confused if
14539 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14540 # text mode, it properly converts lines to CR/LF. This bash problem
14541 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
14542 sed '$q' "$ltmain" >> "$cfgfile" \
14543 || (rm -f "$cfgfile"; exit 1)
14544
14545 if test x"$xsi_shell" = xyes; then
14546 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14547func_dirname ()\
14548{\
14549\ case ${1} in\
14550\ */*) func_dirname_result="${1%/*}${2}" ;;\
14551\ * ) func_dirname_result="${3}" ;;\
14552\ esac\
14553} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14554 && mv -f "$cfgfile.tmp" "$cfgfile" \
14555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14556test 0 -eq $? || _lt_function_replace_fail=:
14557
14558
14559 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14560func_basename ()\
14561{\
14562\ func_basename_result="${1##*/}"\
14563} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14564 && mv -f "$cfgfile.tmp" "$cfgfile" \
14565 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14566test 0 -eq $? || _lt_function_replace_fail=:
14567
14568
14569 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14570func_dirname_and_basename ()\
14571{\
14572\ case ${1} in\
14573\ */*) func_dirname_result="${1%/*}${2}" ;;\
14574\ * ) func_dirname_result="${3}" ;;\
14575\ esac\
14576\ func_basename_result="${1##*/}"\
14577} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14578 && mv -f "$cfgfile.tmp" "$cfgfile" \
14579 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14580test 0 -eq $? || _lt_function_replace_fail=:
14581
14582
14583 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14584func_stripname ()\
14585{\
14586\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14587\ # positional parameters, so assign one to ordinary parameter first.\
14588\ func_stripname_result=${3}\
14589\ func_stripname_result=${func_stripname_result#"${1}"}\
14590\ func_stripname_result=${func_stripname_result%"${2}"}\
14591} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14592 && mv -f "$cfgfile.tmp" "$cfgfile" \
14593 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14594test 0 -eq $? || _lt_function_replace_fail=:
14595
14596
14597 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14598func_split_long_opt ()\
14599{\
14600\ func_split_long_opt_name=${1%%=*}\
14601\ func_split_long_opt_arg=${1#*=}\
14602} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14603 && mv -f "$cfgfile.tmp" "$cfgfile" \
14604 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14605test 0 -eq $? || _lt_function_replace_fail=:
14606
14607
14608 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14609func_split_short_opt ()\
14610{\
14611\ func_split_short_opt_arg=${1#??}\
14612\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14613} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14614 && mv -f "$cfgfile.tmp" "$cfgfile" \
14615 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14616test 0 -eq $? || _lt_function_replace_fail=:
14617
14618
14619 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14620func_lo2o ()\
14621{\
14622\ case ${1} in\
14623\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14624\ *) func_lo2o_result=${1} ;;\
14625\ esac\
14626} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14627 && mv -f "$cfgfile.tmp" "$cfgfile" \
14628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14629test 0 -eq $? || _lt_function_replace_fail=:
14630
14631
14632 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14633func_xform ()\
14634{\
14635 func_xform_result=${1%.*}.lo\
14636} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14637 && mv -f "$cfgfile.tmp" "$cfgfile" \
14638 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14639test 0 -eq $? || _lt_function_replace_fail=:
14640
14641
14642 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14643func_arith ()\
14644{\
14645 func_arith_result=$(( $* ))\
14646} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14647 && mv -f "$cfgfile.tmp" "$cfgfile" \
14648 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14649test 0 -eq $? || _lt_function_replace_fail=:
14650
14651
14652 sed -e '/^func_len ()$/,/^} # func_len /c\
14653func_len ()\
14654{\
14655 func_len_result=${#1}\
14656} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14657 && mv -f "$cfgfile.tmp" "$cfgfile" \
14658 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14659test 0 -eq $? || _lt_function_replace_fail=:
14660
14661fi
14662
14663if test x"$lt_shell_append" = xyes; then
14664 sed -e '/^func_append ()$/,/^} # func_append /c\
14665func_append ()\
14666{\
14667 eval "${1}+=\\${2}"\
14668} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14669 && mv -f "$cfgfile.tmp" "$cfgfile" \
14670 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14671test 0 -eq $? || _lt_function_replace_fail=:
14672
14673
14674 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14675func_append_quoted ()\
14676{\
14677\ func_quote_for_eval "${2}"\
14678\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14679} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14680 && mv -f "$cfgfile.tmp" "$cfgfile" \
14681 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14682test 0 -eq $? || _lt_function_replace_fail=:
14683
14684
14685 # Save a `func_append' function call where possible by direct use of '+='
14686 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14687 && mv -f "$cfgfile.tmp" "$cfgfile" \
14688 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14689 test 0 -eq $? || _lt_function_replace_fail=:
14690else
14691 # Save a `func_append' function call even when '+=' is not available
14692 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14693 && mv -f "$cfgfile.tmp" "$cfgfile" \
14694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14695 test 0 -eq $? || _lt_function_replace_fail=:
14696fi
14697
14698if test x"$_lt_function_replace_fail" = x":"; then
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14700$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14701fi
14702
14703
14704 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
14705 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14706 chmod +x "$ofile"
14707
d9898ee8 14708 ;;
dd184caf 14709
d9898ee8 14710 esac
dd184caf 14711done # for ac_tag
d9898ee8 14712
d9898ee8 14713
b0322a85 14714as_fn_exit 0
d9898ee8 14715_ACEOF
d9898ee8 14716ac_clean_files=$ac_clean_files_save
14717
8d138742 14718test $ac_write_fail = 0 ||
b0322a85 14719 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 14720
d9898ee8 14721
14722# configure is writing to config.log, and then calls config.status.
14723# config.status does its own redirection, appending to config.log.
14724# Unfortunately, on DOS this fails, as config.log is still kept open
14725# by configure, so config.status won't be able to write to it; its
14726# output is simply discarded. So we exec the FD to /dev/null,
14727# effectively closing config.log, so it can be properly (re)opened and
14728# appended to by config.status. When coming back to configure, we
14729# need to make the FD available again.
14730if test "$no_create" != yes; then
14731 ac_cs_success=:
14732 ac_config_status_args=
14733 test "$silent" = yes &&
14734 ac_config_status_args="$ac_config_status_args --quiet"
14735 exec 5>/dev/null
14736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14737 exec 5>>config.log
14738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14739 # would make configure fail if this is the last instruction.
b0322a85 14740 $ac_cs_success || as_fn_exit 1
d9898ee8 14741fi
8d138742 14742if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
14744$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14745fi
d9898ee8 14746