Merge remote-tracking branch 'origin/debian'
[hcoop/debian/courier-authlib.git] / libs / makedat / 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 makedat 0.60.
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
dd184caf 134# CDPATH.
b0322a85 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 136
b0322a85
CE
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;}
dd184caf 162if test "x$CONFIG_SHELL" = x; then
b0322a85
CE
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
dd184caf 170else
b0322a85
CE
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
d9898ee8 177fi
b0322a85
CE
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; }
d9898ee8 184
dd184caf 185exitcode=0
b0322a85
CE
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
dd184caf 212else
b0322a85 213 as_have_required=no
dd184caf 214fi
b0322a85 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
dd184caf 216
dd184caf 217else
b0322a85
CE
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
d9898ee8 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=.
b0322a85
CE
224 as_found=:
225 case $as_dir in #(
d9898ee8 226 /*)
dd184caf 227 for as_base in sh bash ksh sh5; do
b0322a85
CE
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
dd184caf 237 done;;
238 esac
b0322a85 239 as_found=false
dd184caf 240done
b0322a85
CE
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; }
dd184caf 245IFS=$as_save_IFS
246
247
b0322a85
CE
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= ;;
dd184caf 262esac
b0322a85
CE
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
dd184caf 284fi
dd184caf 285fi
dd184caf 286fi
b0322a85
CE
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
dd184caf 292
b0322a85
CE
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
dd184caf 304
b0322a85
CE
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
dd184caf 312
b0322a85
CE
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{
dd184caf 328
b0322a85
CE
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"
dd184caf 367
dd184caf 368
b0322a85 369} # as_fn_mkdir_p
dd184caf 370
b0322a85
CE
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
dd184caf 412
413
b0322a85
CE
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
dd184caf 429
b0322a85
CE
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
dd184caf 433else
b0322a85 434 as_expr=false
dd184caf 435fi
436
b0322a85
CE
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
dd184caf 439else
b0322a85 440 as_basename=false
dd184caf 441fi
442
b0322a85
CE
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
dd184caf 445else
b0322a85 446 as_dirname=false
dd184caf 447fi
448
b0322a85
CE
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
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'`
dd184caf 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
dd184caf 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. :-)
dd184caf 481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
d9898ee8 485 sed '
dd184caf 486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
d9898ee8 490 N
dd184caf 491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 493 t loop
dd184caf 494 s/-\n.*//
d9898ee8 495 ' >$as_me.lineno &&
dd184caf 496 chmod +x "$as_me.lineno" ||
b0322a85 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
d9898ee8 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
dd184caf 505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
d9898ee8 507 # Exit status is that of the last command.
508 exit
509}
510
dd184caf 511ECHO_C= ECHO_N= ECHO_T=
b0322a85 512case `echo -n x` in #(((((
dd184caf 513-n*)
b0322a85 514 case `echo 'xy\c'` in
dd184caf 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
dd184caf 519 esac;;
520*)
521 ECHO_N='-n';;
d9898ee8 522esac
d9898ee8 523
b0322a85
CE
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
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'
d9898ee8 544 fi
b0322a85
CE
545else
546 as_ln_s='cp -pR'
d9898ee8 547fi
b0322a85
CE
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
d9898ee8 550
b0322a85
CE
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
d9898ee8 556fi
557
b0322a85
CE
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
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'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 566
b0322a85 567SHELL=${CONFIG_SHELL-/bin/sh}
d9898ee8 568
569
b0322a85
CE
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
dd184caf 572
d9898ee8 573# Name of the host.
b0322a85 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
d9898ee8 575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
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.
591PACKAGE_NAME='makedat'
592PACKAGE_TARNAME='makedat'
593PACKAGE_VERSION='0.60'
594PACKAGE_STRING='makedat 0.60'
595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
b0322a85 596PACKAGE_URL=''
d9898ee8 597
598ac_unique_file="makedatprog.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
639makedatprogpath
640makedatprog_target
641dblibrary
642CPP
d50284c4 643LT_SYS_LIBRARY_PATH
8d138742
CE
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
b0322a85 649MANIFEST_TOOL
8d138742 650RANLIB
b0322a85 651ac_ct_AR
8d138742 652AR
b0322a85 653DLLTOOL
8d138742
CE
654OBJDUMP
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660EGREP
661GREP
662SED
663host_os
664host_vendor
665host_cpu
666host
667build_os
668build_vendor
669build_cpu
670build
671LIBTOOL
672CAT
673PERL
674LN_S
675am__fastdepCC_FALSE
676am__fastdepCC_TRUE
677CCDEPMODE
b0322a85 678am__nodep
8d138742
CE
679AMDEPBACKSLASH
680AMDEP_FALSE
681AMDEP_TRUE
682am__quote
683am__include
684DEPDIR
685OBJEXT
686EXEEXT
687ac_ct_CC
688CPPFLAGS
689LDFLAGS
690CFLAGS
691CC
b0322a85
CE
692AM_BACKSLASH
693AM_DEFAULT_VERBOSITY
694AM_DEFAULT_V
695AM_V
8d138742
CE
696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_alias
720host_alias
dd184caf 721build_alias
8d138742
CE
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
b0322a85 749PACKAGE_URL
8d138742
CE
750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
757ac_subst_files=''
758ac_user_opts='
759enable_option_checking
b0322a85 760enable_silent_rules
8d138742
CE
761enable_dependency_tracking
762enable_shared
763enable_static
764with_pic
765enable_fast_install
d50284c4 766with_aix_soname
8d138742 767with_gnu_ld
b0322a85 768with_sysroot
8d138742 769enable_libtool_lock
b0322a85 770enable_largefile
8d138742
CE
771with_makedatprog
772'
773 ac_precious_vars='build_alias
dd184caf 774host_alias
775target_alias
dd184caf 776CC
777CFLAGS
778LDFLAGS
8d138742 779LIBS
dd184caf 780CPPFLAGS
d50284c4 781LT_SYS_LIBRARY_PATH
8d138742 782CPP'
dd184caf 783
d9898ee8 784
785# Initialize some variables set by options.
786ac_init_help=
787ac_init_version=false
8d138742
CE
788ac_unrecognized_opts=
789ac_unrecognized_sep=
d9898ee8 790# The variables have the same names as the options, with
791# dashes changed to underlines.
792cache_file=/dev/null
793exec_prefix=NONE
794no_create=
795no_recursion=
796prefix=NONE
797program_prefix=NONE
798program_suffix=NONE
799program_transform_name=s,x,x,
800silent=
801site=
802srcdir=
803verbose=
804x_includes=NONE
805x_libraries=NONE
806
807# Installation directory options.
808# These are left unexpanded so users can "make install exec_prefix=/foo"
809# and all the variables that are supposed to be based on exec_prefix
810# by default will actually change.
811# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 812# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 813bindir='${exec_prefix}/bin'
814sbindir='${exec_prefix}/sbin'
815libexecdir='${exec_prefix}/libexec'
dd184caf 816datarootdir='${prefix}/share'
817datadir='${datarootdir}'
d9898ee8 818sysconfdir='${prefix}/etc'
819sharedstatedir='${prefix}/com'
820localstatedir='${prefix}/var'
d9898ee8 821includedir='${prefix}/include'
822oldincludedir='/usr/include'
dd184caf 823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824infodir='${datarootdir}/info'
825htmldir='${docdir}'
826dvidir='${docdir}'
827pdfdir='${docdir}'
828psdir='${docdir}'
829libdir='${exec_prefix}/lib'
830localedir='${datarootdir}/locale'
831mandir='${datarootdir}/man'
d9898ee8 832
833ac_prev=
dd184caf 834ac_dashdash=
d9898ee8 835for ac_option
836do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
dd184caf 839 eval $ac_prev=\$ac_option
d9898ee8 840 ac_prev=
841 continue
842 fi
843
dd184caf 844 case $ac_option in
b0322a85
CE
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
dd184caf 848 esac
d9898ee8 849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
dd184caf 852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
d9898ee8 855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
dd184caf 876 -datadir | --datadir | --datadi | --datad)
d9898ee8 877 ac_prev=datadir ;;
dd184caf 878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 879 datadir=$ac_optarg ;;
880
dd184caf 881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
d9898ee8 888 -disable-* | --disable-*)
8d138742 889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 890 # Reject names that are not valid shell variable names.
8d138742 891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 892 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897"enable_$ac_useropt"
898"*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
dd184caf 903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
d9898ee8 913
914 -enable-* | --enable-*)
8d138742 915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 916 # Reject names that are not valid shell variable names.
8d138742 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 918 as_fn_error $? "invalid feature name: $ac_useropt"
8d138742
CE
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
dd184caf 955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
d9898ee8 961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
dd184caf 985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
d9898ee8 990 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 991 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
dd184caf 1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
d9898ee8 1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
8d138742 1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1120 # Reject names that are not valid shell variable names.
8d138742 1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1122 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127"with_$ac_useropt"
1128"*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1133
1134 -without-* | --without-*)
8d138742 1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1136 # Reject names that are not valid shell variable names.
8d138742 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b0322a85 1138 as_fn_error $? "invalid package name: $ac_useropt"
8d138742
CE
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143"with_$ac_useropt"
1144"*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
d9898ee8 1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
b0322a85
CE
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169Try \`$0 --help' for more information"
d9898ee8 1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
b0322a85
CE
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
dd184caf 1179 eval $ac_envvar=\$ac_optarg
d9898ee8 1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
8d138742 1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b0322a85 1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
d9898ee8 1188 ;;
1189
1190 esac
1191done
1192
1193if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b0322a85 1195 as_fn_error $? "missing argument to $ac_option"
d9898ee8 1196fi
1197
8d138742
CE
1198if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
b0322a85 1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
8d138742
CE
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204fi
1205
1206# Check all directory arguments for consistency.
dd184caf 1207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
d9898ee8 1211do
dd184caf 1212 eval ac_val=\$$ac_var
8d138742
CE
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
d9898ee8 1220 case $ac_val in
dd184caf 1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1223 esac
b0322a85 1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
d9898ee8 1225done
1226
1227# There might be people who depend on the old broken behavior: `$host'
1228# used to hold the argument of --host etc.
1229# FIXME: To remove some day.
1230build=$build_alias
1231host=$host_alias
1232target=$target_alias
1233
1234# FIXME: To remove some day.
1235if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
d9898ee8 1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241fi
1242
1243ac_tool_prefix=
1244test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246test "$silent" = yes && exec 6>/dev/null
1247
1248
dd184caf 1249ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250ac_ls_di=`ls -di .` &&
1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b0322a85 1252 as_fn_error $? "working directory cannot be determined"
dd184caf 1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b0322a85 1254 as_fn_error $? "pwd does not report name of working directory"
dd184caf 1255
1256
d9898ee8 1257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
dd184caf 1260 # Try the directory containing this script, then the parent directory.
8d138742
CE
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266$as_echo X"$as_myself" |
dd184caf 1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
d9898ee8 1284 srcdir=$ac_confdir
dd184caf 1285 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1286 srcdir=..
1287 fi
1288else
1289 ac_srcdir_defaulted=no
1290fi
dd184caf 1291if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b0322a85 1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
d9898ee8 1294fi
dd184caf 1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
b0322a85 1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
dd184caf 1298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
d9898ee8 1315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323\`configure' configures makedat 0.60 to adapt to many kinds of systems.
1324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
b0322a85 1337 -q, --quiet, --silent do not print \`checking ...' messages
d9898ee8 1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
d9898ee8 1343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1345 [$ac_default_prefix]
d9898ee8 1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1347 [PREFIX]
d9898ee8 1348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
8d138742
CE
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/makedat]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1376_ACEOF
1377
b0322a85
CE
1378 cat <<\_ACEOF
1379
1380Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388_ACEOF
1389fi
1390
1391if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of makedat 0.60:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-silent-rules less verbose build output (undo: "make V=1")
1402 --disable-silent-rules verbose build output (undo: "make V=0")
1403 --enable-dependency-tracking
1404 do not reject slow dependency extractors
1405 --disable-dependency-tracking
1406 speeds up one-time build
1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-libtool-lock avoid locking (might break parallel builds)
1412 --disable-largefile omit support for large files
1413
1414Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1418 both]
d50284c4
CE
1419 --with-aix-soname=aix|svr4|both
1420 shared library versioning (aka "SONAME") variant to
1421 provide on AIX, [default=aix].
b0322a85 1422 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d50284c4
CE
1423 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1424 compiler's sysroot if not specified).
b0322a85
CE
1425 --with-makedatprog=filename Installed location and name of makedatprog
1426
1427Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
d50284c4
CE
1435 LT_SYS_LIBRARY_PATH
1436 User-defined run-time library search path.
b0322a85
CE
1437 CPP C preprocessor
1438
1439Use these variables to override the choices made by `configure' or to help
1440it to find libraries and programs with nonstandard names/locations.
1441
1442Report bugs to <courier-users@lists.sourceforge.net>.
1443_ACEOF
1444ac_status=$?
1445fi
1446
1447if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1454
1455case "$ac_dir" in
1456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457*)
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465esac
1466ac_abs_top_builddir=$ac_pwd
1467ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468# for backward compatibility:
1469ac_top_builddir=$ac_top_build_prefix
1470
1471case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484esac
1485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1500fi
1501
1502test -n "$ac_init_help" && exit $ac_status
1503if $ac_init_version; then
1504 cat <<\_ACEOF
1505makedat configure 0.60
1506generated by GNU Autoconf 2.69
1507
1508Copyright (C) 2012 Free Software Foundation, Inc.
1509This configure script is free software; the Free Software Foundation
1510gives unlimited permission to copy, distribute and modify it.
1511_ACEOF
1512 exit
1513fi
1514
1515## ------------------------ ##
1516## Autoconf initialization. ##
1517## ------------------------ ##
1518
1519# ac_fn_c_try_compile LINENO
1520# --------------------------
1521# Try to compile conftest.$ac_ext, and return whether this succeeded.
1522ac_fn_c_try_compile ()
1523{
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1527case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530esac
1531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532$as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1545 ac_retval=0
1546else
1547 $as_echo "$as_me: failed program was:" >&5
1548sed 's/^/| /' conftest.$ac_ext >&5
1549
1550 ac_retval=1
1551fi
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1554
1555} # ac_fn_c_try_compile
1556
1557# ac_fn_c_try_link LINENO
1558# -----------------------
1559# Try to link conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_link ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext conftest$ac_exeext
1564 if { { ac_try="$ac_link"
1565case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_link") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest$ac_exeext && {
1583 test "$cross_compiling" = yes ||
1584 test -x conftest$ac_exeext
1585 }; then :
1586 ac_retval=0
1587else
1588 $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1
1592fi
1593 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1594 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1595 # interfere with the next link command; also delete a directory that is
1596 # left behind by Apple's compiler. We do this before executing the actions.
1597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_link
1602
1603# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604# -------------------------------------------------------
1605# Tests whether HEADER exists and can be compiled using the include files in
1606# INCLUDES, setting the cache variable VAR accordingly.
1607ac_fn_c_check_header_compile ()
1608{
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611$as_echo_n "checking for $2... " >&6; }
1612if eval \${$3+:} false; then :
1613 $as_echo_n "(cached) " >&6
1614else
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h. */
1617$4
1618#include <$2>
1619_ACEOF
1620if ac_fn_c_try_compile "$LINENO"; then :
1621 eval "$3=yes"
1622else
1623 eval "$3=no"
1624fi
1625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626fi
1627eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629$as_echo "$ac_res" >&6; }
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631
1632} # ac_fn_c_check_header_compile
1633
1634# ac_fn_c_try_cpp LINENO
1635# ----------------------
1636# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1637ac_fn_c_try_cpp ()
1638{
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_cpp conftest.$ac_ext"
1641case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644esac
1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646$as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } > conftest.i && {
1656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 }; then :
1659 ac_retval=0
1660else
1661 $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1
1665fi
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669} # ac_fn_c_try_cpp
1670
1671# ac_fn_c_try_run LINENO
1672# ----------------------
1673# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1674# that executables *can* be run.
1675ac_fn_c_try_run ()
1676{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_link"
1679case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>&5
1686 ac_status=$?
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1689 { { case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_try") 2>&5
1696 ac_status=$?
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; }; }; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: program exited with status $ac_status" >&5
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=$ac_status
1706fi
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711} # ac_fn_c_try_run
1712
1713# ac_fn_c_check_func LINENO FUNC VAR
1714# ----------------------------------
1715# Tests whether FUNC exists, setting the cache variable VAR accordingly
1716ac_fn_c_check_func ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720$as_echo_n "checking for $2... " >&6; }
1721if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1723else
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h. */
1726/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1728#define $2 innocuous_$2
1729
1730/* System header to define __stub macros and hopefully few prototypes,
1731 which can conflict with char $2 (); below.
1732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1733 <limits.h> exists even on freestanding compilers. */
1734
1735#ifdef __STDC__
1736# include <limits.h>
1737#else
1738# include <assert.h>
1739#endif
1740
1741#undef $2
d9898ee8 1742
b0322a85
CE
1743/* Override any GCC internal prototype to avoid an error.
1744 Use char because int might match the return type of a GCC
1745 builtin and then its argument prototype would still apply. */
1746#ifdef __cplusplus
1747extern "C"
1748#endif
1749char $2 ();
1750/* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753#if defined __stub_$2 || defined __stub___$2
1754choke me
1755#endif
d9898ee8 1756
b0322a85
CE
1757int
1758main ()
1759{
1760return $2 ();
1761 ;
1762 return 0;
1763}
d9898ee8 1764_ACEOF
b0322a85
CE
1765if ac_fn_c_try_link "$LINENO"; then :
1766 eval "$3=yes"
1767else
1768 eval "$3=no"
d9898ee8 1769fi
b0322a85
CE
1770rm -f core conftest.err conftest.$ac_objext \
1771 conftest$ac_exeext conftest.$ac_ext
1772fi
1773eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d9898ee8 1777
b0322a85 1778} # ac_fn_c_check_func
d9898ee8 1779
b0322a85
CE
1780# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1781# -------------------------------------------------------
1782# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1783# the include files in INCLUDES and setting the cache variable VAR
1784# accordingly.
1785ac_fn_c_check_header_mongrel ()
1786{
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if eval \${$3+:} false; then :
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790$as_echo_n "checking for $2... " >&6; }
1791if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1793fi
1794eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797else
1798 # Is the header compilable?
1799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1800$as_echo_n "checking $2 usability... " >&6; }
1801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h. */
1803$4
1804#include <$2>
d9898ee8 1805_ACEOF
b0322a85
CE
1806if ac_fn_c_try_compile "$LINENO"; then :
1807 ac_header_compiler=yes
1808else
1809 ac_header_compiler=no
d9898ee8 1810fi
b0322a85
CE
1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1813$as_echo "$ac_header_compiler" >&6; }
d9898ee8 1814
b0322a85
CE
1815# Is the header present?
1816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1817$as_echo_n "checking $2 presence... " >&6; }
1818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h. */
1820#include <$2>
1821_ACEOF
1822if ac_fn_c_try_cpp "$LINENO"; then :
1823 ac_header_preproc=yes
1824else
1825 ac_header_preproc=no
1826fi
1827rm -f conftest.err conftest.i conftest.$ac_ext
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1829$as_echo "$ac_header_preproc" >&6; }
d9898ee8 1830
b0322a85
CE
1831# So? What about this header?
1832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1833 yes:no: )
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1835$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838 ;;
1839 no:yes:* )
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1841$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1843$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1845$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1847$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850( $as_echo "## -------------------------------------------------- ##
1851## Report this to courier-users@lists.sourceforge.net ##
1852## -------------------------------------------------- ##"
1853 ) | sed "s/^/$as_me: WARNING: /" >&2
1854 ;;
d9898ee8 1855esac
b0322a85
CE
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
1858if eval \${$3+:} false; then :
1859 $as_echo_n "(cached) " >&6
1860else
1861 eval "$3=\$ac_header_compiler"
d9898ee8 1862fi
b0322a85
CE
1863eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
d9898ee8 1866fi
b0322a85
CE
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869} # ac_fn_c_check_header_mongrel
dd184caf 1870cat >config.log <<_ACEOF
d9898ee8 1871This file contains any messages produced by compilers while
1872running configure, to aid debugging if configure makes a mistake.
1873
1874It was created by makedat $as_me 0.60, which was
b0322a85 1875generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 1876
1877 $ $0 $@
1878
1879_ACEOF
dd184caf 1880exec 5>>config.log
d9898ee8 1881{
1882cat <<_ASUNAME
1883## --------- ##
1884## Platform. ##
1885## --------- ##
1886
1887hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891uname -v = `(uname -v) 2>/dev/null || echo unknown`
1892
1893/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1895
1896/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1897/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1898/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1899/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1900/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1901/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1902/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1903
1904_ASUNAME
1905
1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907for as_dir in $PATH
1908do
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
b0322a85
CE
1911 $as_echo "PATH: $as_dir"
1912 done
dd184caf 1913IFS=$as_save_IFS
d9898ee8 1914
1915} >&5
1916
1917cat >&5 <<_ACEOF
1918
1919
1920## ----------- ##
1921## Core tests. ##
1922## ----------- ##
1923
1924_ACEOF
1925
1926
1927# Keep a trace of the command line.
1928# Strip out --no-create and --no-recursion so they do not pile up.
1929# Strip out --silent because we don't want to record it for future runs.
1930# Also quote any args containing shell meta-characters.
1931# Make two passes to allow for proper duplicate-argument suppression.
1932ac_configure_args=
1933ac_configure_args0=
1934ac_configure_args1=
d9898ee8 1935ac_must_keep_next=false
1936for ac_pass in 1 2
1937do
1938 for ac_arg
1939 do
1940 case $ac_arg in
1941 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943 | -silent | --silent | --silen | --sile | --sil)
1944 continue ;;
dd184caf 1945 *\'*)
8d138742 1946 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1947 esac
1948 case $ac_pass in
b0322a85 1949 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
d9898ee8 1950 2)
b0322a85 1951 as_fn_append ac_configure_args1 " '$ac_arg'"
d9898ee8 1952 if test $ac_must_keep_next = true; then
1953 ac_must_keep_next=false # Got value, back to normal.
1954 else
1955 case $ac_arg in
1956 *=* | --config-cache | -C | -disable-* | --disable-* \
1957 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959 | -with-* | --with-* | -without-* | --without-* | --x)
1960 case "$ac_configure_args0 " in
1961 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962 esac
1963 ;;
1964 -* ) ac_must_keep_next=true ;;
1965 esac
1966 fi
b0322a85 1967 as_fn_append ac_configure_args " '$ac_arg'"
d9898ee8 1968 ;;
1969 esac
1970 done
1971done
b0322a85
CE
1972{ ac_configure_args0=; unset ac_configure_args0;}
1973{ ac_configure_args1=; unset ac_configure_args1;}
d9898ee8 1974
1975# When interrupted or exit'd, cleanup temporary files, and complete
1976# config.log. We remove comments because anyway the quotes in there
1977# would cause problems or look ugly.
dd184caf 1978# WARNING: Use '\'' to represent an apostrophe within the trap.
1979# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1980trap 'exit_status=$?
1981 # Save into config.log some information that might help in debugging.
1982 {
1983 echo
1984
b0322a85 1985 $as_echo "## ---------------- ##
d9898ee8 1986## Cache variables. ##
b0322a85 1987## ---------------- ##"
d9898ee8 1988 echo
1989 # The following way of writing the cache mishandles newlines in values,
dd184caf 1990(
1991 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992 eval ac_val=\$$ac_var
1993 case $ac_val in #(
1994 *${as_nl}*)
1995 case $ac_var in #(
b0322a85 1996 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742 1997$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1998 esac
1999 case $ac_var in #(
2000 _ | IFS | as_nl) ;; #(
8d138742 2001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 2002 *) { eval $ac_var=; unset $ac_var;} ;;
dd184caf 2003 esac ;;
2004 esac
2005 done
d9898ee8 2006 (set) 2>&1 |
dd184caf 2007 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008 *${as_nl}ac_space=\ *)
d9898ee8 2009 sed -n \
dd184caf 2010 "s/'\''/'\''\\\\'\'''\''/g;
2011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012 ;; #(
d9898ee8 2013 *)
dd184caf 2014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 2015 ;;
dd184caf 2016 esac |
2017 sort
2018)
d9898ee8 2019 echo
2020
b0322a85 2021 $as_echo "## ----------------- ##
d9898ee8 2022## Output variables. ##
b0322a85 2023## ----------------- ##"
d9898ee8 2024 echo
2025 for ac_var in $ac_subst_vars
2026 do
dd184caf 2027 eval ac_val=\$$ac_var
2028 case $ac_val in
8d138742 2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2030 esac
8d138742 2031 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2032 done | sort
2033 echo
2034
2035 if test -n "$ac_subst_files"; then
b0322a85 2036 $as_echo "## ------------------- ##
dd184caf 2037## File substitutions. ##
b0322a85 2038## ------------------- ##"
d9898ee8 2039 echo
2040 for ac_var in $ac_subst_files
2041 do
dd184caf 2042 eval ac_val=\$$ac_var
2043 case $ac_val in
8d138742 2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 2045 esac
8d138742 2046 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 2047 done | sort
2048 echo
2049 fi
2050
2051 if test -s confdefs.h; then
b0322a85 2052 $as_echo "## ----------- ##
d9898ee8 2053## confdefs.h. ##
b0322a85 2054## ----------- ##"
d9898ee8 2055 echo
dd184caf 2056 cat confdefs.h
d9898ee8 2057 echo
2058 fi
2059 test "$ac_signal" != 0 &&
8d138742
CE
2060 $as_echo "$as_me: caught signal $ac_signal"
2061 $as_echo "$as_me: exit $exit_status"
d9898ee8 2062 } >&5
dd184caf 2063 rm -f core *.core core.conftest.* &&
2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 2065 exit $exit_status
dd184caf 2066' 0
d9898ee8 2067for ac_signal in 1 2 13 15; do
b0322a85 2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
d9898ee8 2069done
2070ac_signal=0
2071
2072# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 2073rm -f -r conftest* confdefs.h
d9898ee8 2074
b0322a85
CE
2075$as_echo "/* confdefs.h */" > confdefs.h
2076
d9898ee8 2077# Predefined preprocessor variables.
2078
2079cat >>confdefs.h <<_ACEOF
2080#define PACKAGE_NAME "$PACKAGE_NAME"
2081_ACEOF
2082
d9898ee8 2083cat >>confdefs.h <<_ACEOF
2084#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085_ACEOF
2086
d9898ee8 2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_VERSION "$PACKAGE_VERSION"
2089_ACEOF
2090
d9898ee8 2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_STRING "$PACKAGE_STRING"
2093_ACEOF
2094
d9898ee8 2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097_ACEOF
2098
b0322a85
CE
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_URL "$PACKAGE_URL"
2101_ACEOF
2102
d9898ee8 2103
2104# Let the site file select an alternate cache file if it wants to.
8d138742
CE
2105# Prefer an explicitly selected file to automatically selected ones.
2106ac_site_file1=NONE
2107ac_site_file2=NONE
dd184caf 2108if test -n "$CONFIG_SITE"; then
b0322a85
CE
2109 # We do not want a PATH search for config.site.
2110 case $CONFIG_SITE in #((
2111 -*) ac_site_file1=./$CONFIG_SITE;;
2112 */*) ac_site_file1=$CONFIG_SITE;;
2113 *) ac_site_file1=./$CONFIG_SITE;;
2114 esac
dd184caf 2115elif test "x$prefix" != xNONE; then
8d138742
CE
2116 ac_site_file1=$prefix/share/config.site
2117 ac_site_file2=$prefix/etc/config.site
dd184caf 2118else
8d138742
CE
2119 ac_site_file1=$ac_default_prefix/share/config.site
2120 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 2121fi
8d138742 2122for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 2123do
8d138742 2124 test "x$ac_site_file" = xNONE && continue
b0322a85
CE
2125 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
8d138742 2127$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 2128 sed 's/^/| /' "$ac_site_file" >&5
b0322a85
CE
2129 . "$ac_site_file" \
2130 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132as_fn_error $? "failed to load site script $ac_site_file
2133See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 2134 fi
2135done
2136
2137if test -r "$cache_file"; then
b0322a85
CE
2138 # Some versions of bash will fail to source /dev/null (special files
2139 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2140 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
8d138742 2142$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 2143 case $cache_file in
dd184caf 2144 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2145 *) . "./$cache_file";;
d9898ee8 2146 esac
2147 fi
2148else
b0322a85 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
8d138742 2150$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 2151 >$cache_file
2152fi
2153
2154# Check that the precious variables saved in the cache have kept the same
2155# value.
2156ac_cache_corrupted=false
dd184caf 2157for ac_var in $ac_precious_vars; do
d9898ee8 2158 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 2160 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 2162 case $ac_old_set,$ac_new_set in
2163 set,)
b0322a85 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
8d138742 2165$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 2166 ac_cache_corrupted=: ;;
2167 ,set)
b0322a85 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
8d138742 2169$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 2170 ac_cache_corrupted=: ;;
2171 ,);;
2172 *)
2173 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
2174 # differences in whitespace do not lead to failure.
2175 ac_old_val_w=`echo x $ac_old_val`
2176 ac_new_val_w=`echo x $ac_new_val`
2177 if test "$ac_old_val_w" != "$ac_new_val_w"; then
b0322a85 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
8d138742
CE
2179$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180 ac_cache_corrupted=:
2181 else
b0322a85 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
8d138742
CE
2183$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184 eval $ac_var=\$ac_old_val
2185 fi
b0322a85 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
8d138742 2187$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
b0322a85 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
8d138742 2189$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 2190 fi;;
2191 esac
2192 # Pass precious variables to config.status.
2193 if test "$ac_new_set" = set; then
2194 case $ac_new_val in
8d138742 2195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 2196 *) ac_arg=$ac_var=$ac_new_val ;;
2197 esac
2198 case " $ac_configure_args " in
2199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
b0322a85 2200 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
d9898ee8 2201 esac
2202 fi
2203done
2204if $ac_cache_corrupted; then
b0322a85 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
8d138742 2208$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b0322a85 2209 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
d9898ee8 2210fi
b0322a85
CE
2211## -------------------- ##
2212## Main body of script. ##
2213## -------------------- ##
d9898ee8 2214
dd184caf 2215ac_ext=c
2216ac_cpp='$CPP $CPPFLAGS'
2217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2220
2221
2222
2223>confdefs.h # Kill PACKAGE_ macros
2224
2225
d9898ee8 2226ac_aux_dir=
b0322a85 2227for ac_dir in ../.. "$srcdir"/../..; do
dd184caf 2228 if test -f "$ac_dir/install-sh"; then
d9898ee8 2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install-sh -c"
2231 break
dd184caf 2232 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/install.sh -c"
2235 break
dd184caf 2236 elif test -f "$ac_dir/shtool"; then
d9898ee8 2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/shtool install -c"
2239 break
2240 fi
2241done
2242if test -z "$ac_aux_dir"; then
b0322a85 2243 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
d9898ee8 2244fi
dd184caf 2245
2246# These three variables are undocumented and unsupported,
2247# and are intended to be withdrawn in a future Autoconf release.
2248# They can cause serious problems if a builder's source tree is in a directory
2249# whose full name contains unusual characters.
2250ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2251ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2252ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2253
d9898ee8 2254
d50284c4 2255am__api_version='1.15'
b0322a85 2256
d9898ee8 2257# Find a good install program. We prefer a C program (faster),
2258# so one script is as good as another. But avoid the broken or
2259# incompatible versions:
2260# SysV /etc/install, /usr/sbin/install
2261# SunOS /usr/etc/install
2262# IRIX /sbin/install
2263# AIX /bin/install
2264# AmigaOS /C/install, which installs bootblocks on floppy discs
2265# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268# OS/2's system install, which has a completely different semantic
2269# ./install, which can be erroneously created by make from ./install.sh.
8d138742 2270# Reject install programs that cannot install multiple files.
b0322a85 2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8d138742 2272$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2273if test -z "$INSTALL"; then
b0322a85 2274if ${ac_cv_path_install+:} false; then :
8d138742 2275 $as_echo_n "(cached) " >&6
d9898ee8 2276else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
b0322a85
CE
2282 # Account for people who put trailing slashes in PATH elements.
2283case $as_dir/ in #((
2284 ./ | .// | /[cC]/* | \
d9898ee8 2285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
b0322a85 2286 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
d9898ee8 2287 /usr/ucb/* ) ;;
2288 *)
2289 # OSF1 and SCO ODT 3.0 have their own names for install.
2290 # Don't use installbsd from OSF since it installs stuff as root
2291 # by default.
2292 for ac_prog in ginstall scoinst install; do
2293 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2294 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d9898ee8 2295 if test $ac_prog = install &&
2296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297 # AIX install. It has an incompatible calling convention.
2298 :
2299 elif test $ac_prog = install &&
2300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301 # program-specific install script used by HP pwplus--don't use.
2302 :
2303 else
8d138742
CE
2304 rm -rf conftest.one conftest.two conftest.dir
2305 echo one > conftest.one
2306 echo two > conftest.two
2307 mkdir conftest.dir
2308 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309 test -s conftest.one && test -s conftest.two &&
2310 test -s conftest.dir/conftest.one &&
2311 test -s conftest.dir/conftest.two
2312 then
2313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 break 3
2315 fi
d9898ee8 2316 fi
2317 fi
2318 done
2319 done
2320 ;;
2321esac
8d138742 2322
b0322a85 2323 done
dd184caf 2324IFS=$as_save_IFS
d9898ee8 2325
8d138742 2326rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2327
2328fi
2329 if test "${ac_cv_path_install+set}" = set; then
2330 INSTALL=$ac_cv_path_install
2331 else
dd184caf 2332 # As a last resort, use the slow shell script. Don't cache a
2333 # value for INSTALL within a source directory, because that will
d9898ee8 2334 # break other packages using the cache if that directory is
dd184caf 2335 # removed, or if the value is a relative name.
d9898ee8 2336 INSTALL=$ac_install_sh
2337 fi
2338fi
b0322a85 2339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8d138742 2340$as_echo "$INSTALL" >&6; }
d9898ee8 2341
2342# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343# It thinks the first close brace ends the variable substitution.
2344test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345
2346test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347
2348test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349
b0322a85 2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8d138742 2351$as_echo_n "checking whether build environment is sane... " >&6; }
8d138742
CE
2352# Reject unsafe characters in $srcdir or the absolute working directory
2353# name. Accept space and tab only in the latter.
2354am_lf='
2355'
2356case `pwd` in
2357 *[\\\"\#\$\&\'\`$am_lf]*)
b0322a85 2358 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8d138742
CE
2359esac
2360case $srcdir in
2361 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
b0322a85 2362 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
8d138742
CE
2363esac
2364
b0322a85 2365# Do 'set' in a subshell so we don't clobber the current shell's
d9898ee8 2366# arguments. Must try -L first in case configure is actually a
2367# symlink; some systems play weird games with the mod time of symlinks
2368# (eg FreeBSD returns the mod time of the symlink's containing
2369# directory).
2370if (
b0322a85
CE
2371 am_has_slept=no
2372 for am_try in 1 2; do
2373 echo "timestamp, slept: $am_has_slept" > conftest.file
2374 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375 if test "$*" = "X"; then
2376 # -L didn't work.
2377 set X `ls -t "$srcdir/configure" conftest.file`
2378 fi
2379 if test "$*" != "X $srcdir/configure conftest.file" \
2380 && test "$*" != "X conftest.file $srcdir/configure"; then
2381
2382 # If neither matched, then we have a broken ls. This can happen
2383 # if, for instance, CONFIG_SHELL is bash and it inherits a
2384 # broken ls alias from the environment. This has actually
2385 # happened. Such a system could not be considered "sane".
2386 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2387 alias in your environment" "$LINENO" 5
2388 fi
2389 if test "$2" = conftest.file || test $am_try -eq 2; then
2390 break
2391 fi
2392 # Just in case.
2393 sleep 1
2394 am_has_slept=yes
2395 done
d9898ee8 2396 test "$2" = conftest.file
2397 )
2398then
2399 # Ok.
2400 :
2401else
b0322a85
CE
2402 as_fn_error $? "newly created file is older than distributed files!
2403Check your system clock" "$LINENO" 5
d9898ee8 2404fi
b0322a85 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2406$as_echo "yes" >&6; }
b0322a85
CE
2407# If we didn't sleep, we still need to ensure time stamps of config.status and
2408# generated files are strictly newer.
2409am_sleep_pid=
2410if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2411 ( sleep 1 ) &
2412 am_sleep_pid=$!
2413fi
2414
2415rm -f conftest.file
2416
d9898ee8 2417test "$program_prefix" != NONE &&
dd184caf 2418 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2419# Use a double $ so make ignores it.
2420test "$program_suffix" != NONE &&
dd184caf 2421 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2422# Double any \ or $.
d9898ee8 2423# By default was `s,x,x', remove it if useless.
8d138742
CE
2424ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2425program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2426
d50284c4
CE
2427# Expand $ac_aux_dir to an absolute path.
2428am_aux_dir=`cd "$ac_aux_dir" && pwd`
d9898ee8 2429
8d138742
CE
2430if test x"${MISSING+set}" != xset; then
2431 case $am_aux_dir in
2432 *\ * | *\ *)
2433 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2434 *)
2435 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2436 esac
2437fi
d9898ee8 2438# Use eval to expand $SHELL
b0322a85
CE
2439if eval "$MISSING --is-lightweight"; then
2440 am_missing_run="$MISSING "
d9898ee8 2441else
2442 am_missing_run=
b0322a85
CE
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2444$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
8d138742
CE
2445fi
2446
d50284c4 2447if test x"${install_sh+set}" != xset; then
8d138742
CE
2448 case $am_aux_dir in
2449 *\ * | *\ *)
2450 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2451 *)
2452 install_sh="\${SHELL} $am_aux_dir/install-sh"
2453 esac
2454fi
2455
b0322a85
CE
2456# Installed binaries are usually stripped using 'strip' when the user
2457# run "make install-strip". However 'strip' might not be the right
8d138742 2458# tool to use in cross-compilation environments, therefore Automake
b0322a85 2459# will honor the 'STRIP' environment variable to overrule this program.
8d138742
CE
2460if test "$cross_compiling" != no; then
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2465$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2466if ${ac_cv_prog_STRIP+:} false; then :
8d138742
CE
2467 $as_echo_n "(cached) " >&6
2468else
2469 if test -n "$STRIP"; then
2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
b0322a85
CE
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2481 break 2
2482 fi
2483done
b0322a85 2484 done
8d138742
CE
2485IFS=$as_save_IFS
2486
2487fi
2488fi
2489STRIP=$ac_cv_prog_STRIP
2490if test -n "$STRIP"; then
b0322a85 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742
CE
2492$as_echo "$STRIP" >&6; }
2493else
b0322a85 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2495$as_echo "no" >&6; }
2496fi
2497
2498
2499fi
2500if test -z "$ac_cv_prog_STRIP"; then
2501 ac_ct_STRIP=$STRIP
2502 # Extract the first word of "strip", so it can be a program name with args.
2503set dummy strip; ac_word=$2
b0322a85 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2505$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2506if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742
CE
2507 $as_echo_n "(cached) " >&6
2508else
2509 if test -n "$ac_ct_STRIP"; then
2510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
b0322a85
CE
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 2519 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
2521 break 2
2522 fi
2523done
b0322a85 2524 done
8d138742
CE
2525IFS=$as_save_IFS
2526
2527fi
2528fi
2529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530if test -n "$ac_ct_STRIP"; then
b0322a85 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742
CE
2532$as_echo "$ac_ct_STRIP" >&6; }
2533else
b0322a85 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
2535$as_echo "no" >&6; }
2536fi
2537
2538 if test "x$ac_ct_STRIP" = x; then
2539 STRIP=":"
2540 else
2541 case $cross_compiling:$ac_tool_warned in
2542yes:)
b0322a85 2543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
2544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545ac_tool_warned=yes ;;
2546esac
2547 STRIP=$ac_ct_STRIP
2548 fi
2549else
2550 STRIP="$ac_cv_prog_STRIP"
2551fi
2552
d9898ee8 2553fi
8d138742 2554INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2555
b0322a85 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8d138742 2557$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2558if test -z "$MKDIR_P"; then
b0322a85 2559 if ${ac_cv_path_mkdir+:} false; then :
8d138742 2560 $as_echo_n "(cached) " >&6
dd184caf 2561else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
b0322a85 2567 for ac_prog in mkdir gmkdir; do
dd184caf 2568 for ac_exec_ext in '' $ac_executable_extensions; do
b0322a85 2569 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
dd184caf 2570 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2571 'mkdir (GNU coreutils) '* | \
2572 'mkdir (coreutils) '* | \
2573 'mkdir (fileutils) '4.1*)
2574 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2575 break 3;;
2576 esac
2577 done
2578 done
b0322a85 2579 done
dd184caf 2580IFS=$as_save_IFS
2581
2582fi
2583
b0322a85 2584 test -d ./--version && rmdir ./--version
dd184caf 2585 if test "${ac_cv_path_mkdir+set}" = set; then
2586 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2587 else
dd184caf 2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for MKDIR_P within a source directory, because that will
2590 # break other packages using the cache if that directory is
2591 # removed, or if the value is a relative name.
dd184caf 2592 MKDIR_P="$ac_install_sh -d"
d9898ee8 2593 fi
2594fi
b0322a85 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8d138742 2596$as_echo "$MKDIR_P" >&6; }
dd184caf 2597
d9898ee8 2598for ac_prog in gawk mawk nawk awk
2599do
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601set dummy $ac_prog; ac_word=$2
b0322a85 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2603$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2604if ${ac_cv_prog_AWK+:} false; then :
8d138742 2605 $as_echo_n "(cached) " >&6
d9898ee8 2606else
2607 if test -n "$AWK"; then
2608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
b0322a85
CE
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2617 ac_cv_prog_AWK="$ac_prog"
b0322a85 2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2619 break 2
2620 fi
2621done
b0322a85 2622 done
dd184caf 2623IFS=$as_save_IFS
d9898ee8 2624
2625fi
2626fi
2627AWK=$ac_cv_prog_AWK
2628if test -n "$AWK"; then
b0322a85 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8d138742 2630$as_echo "$AWK" >&6; }
d9898ee8 2631else
b0322a85 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2633$as_echo "no" >&6; }
d9898ee8 2634fi
2635
dd184caf 2636
d9898ee8 2637 test -n "$AWK" && break
2638done
2639
b0322a85 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8d138742
CE
2641$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642set x ${MAKE-make}
2643ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b0322a85 2644if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8d138742 2645 $as_echo_n "(cached) " >&6
d9898ee8 2646else
2647 cat >conftest.make <<\_ACEOF
dd184caf 2648SHELL = /bin/sh
d9898ee8 2649all:
dd184caf 2650 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2651_ACEOF
b0322a85 2652# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
dd184caf 2653case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654 *@@@%%%=?*=@@@%%%*)
2655 eval ac_cv_prog_make_${ac_make}_set=yes;;
2656 *)
2657 eval ac_cv_prog_make_${ac_make}_set=no;;
2658esac
d9898ee8 2659rm -f conftest.make
2660fi
dd184caf 2661if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
b0322a85 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 2663$as_echo "yes" >&6; }
d9898ee8 2664 SET_MAKE=
2665else
b0322a85 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2667$as_echo "no" >&6; }
d9898ee8 2668 SET_MAKE="MAKE=${MAKE-make}"
2669fi
2670
2671rm -rf .tst 2>/dev/null
2672mkdir .tst 2>/dev/null
2673if test -d .tst; then
2674 am__leading_dot=.
2675else
2676 am__leading_dot=_
2677fi
2678rmdir .tst 2>/dev/null
2679
b0322a85
CE
2680# Check whether --enable-silent-rules was given.
2681if test "${enable_silent_rules+set}" = set; then :
2682 enableval=$enable_silent_rules;
2683fi
2684
2685case $enable_silent_rules in # (((
2686 yes) AM_DEFAULT_VERBOSITY=0;;
2687 no) AM_DEFAULT_VERBOSITY=1;;
2688 *) AM_DEFAULT_VERBOSITY=1;;
2689esac
2690am_make=${MAKE-make}
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2692$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2693if ${am_cv_make_support_nested_variables+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695else
2696 if $as_echo 'TRUE=$(BAR$(V))
2697BAR0=false
2698BAR1=true
2699V=1
2700am__doit:
2701 @$(TRUE)
2702.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2703 am_cv_make_support_nested_variables=yes
2704else
2705 am_cv_make_support_nested_variables=no
2706fi
2707fi
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2709$as_echo "$am_cv_make_support_nested_variables" >&6; }
2710if test $am_cv_make_support_nested_variables = yes; then
2711 AM_V='$(V)'
2712 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2713else
2714 AM_V=$AM_DEFAULT_VERBOSITY
2715 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2716fi
2717AM_BACKSLASH='\'
2718
dd184caf 2719if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721 # is not polluted with repeated "-I."
2722 am__isrc=' -I$(srcdir)'
2723 # test to see if srcdir already configured
2724 if test -f $srcdir/config.status; then
b0322a85 2725 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
dd184caf 2726 fi
d9898ee8 2727fi
2728
2729# test whether we have cygpath
2730if test -z "$CYGPATH_W"; then
2731 if (cygpath --version) >/dev/null 2>/dev/null; then
2732 CYGPATH_W='cygpath -w'
2733 else
2734 CYGPATH_W=echo
2735 fi
2736fi
2737
2738
2739# Define the identity of the package.
2740 PACKAGE='makedat'
2741 VERSION='0.60'
2742
2743
2744# Some tools Automake needs.
2745
2746ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2747
2748
2749AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2750
2751
2752AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2753
2754
2755AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2756
2757
2758MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2759
b0322a85
CE
2760# For better backward compatibility. To be removed once Automake 1.9.x
2761# dies out for good. For more background, see:
2762# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2763# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2764mkdir_p='$(MKDIR_P)'
2765
d50284c4
CE
2766# We need awk for the "check" target (and possibly the TAP driver). The
2767# system "awk" is bad on some platforms.
b0322a85
CE
2768# Always define AMTAR for backward compatibility. Yes, it's still used
2769# in the wild :-( We should find a proper way to deprecate it ...
2770AMTAR='$${TAR-tar}'
2771
d9898ee8 2772
b0322a85
CE
2773# We'll loop over all known methods to create a tar archive until one works.
2774_am_tools='gnutar pax cpio none'
2775
2776am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d9898ee8 2777
d9898ee8 2778
2779
2780
2781
2782
d50284c4
CE
2783# POSIX will say in a future version that running "rm -f" with no argument
2784# is OK; and we want to be able to make that assumption in our Makefile
2785# recipes. So use an aggressive probe to check that the usage we want is
2786# actually supported "in the wild" to an acceptable degree.
2787# See automake bug#10828.
2788# To make any issue more visible, cause the running configure to be aborted
2789# by default if the 'rm' program in use doesn't match our expectations; the
2790# user can still override this though.
2791if rm -f && rm -fr && rm -rf; then : OK; else
2792 cat >&2 <<'END'
2793Oops!
2794
2795Your 'rm' program seems unable to run without file operands specified
2796on the command line, even when the '-f' option is present. This is contrary
2797to the behaviour of most rm programs out there, and not conforming with
2798the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2799
2800Please tell bug-automake@gnu.org about your system, including the value
2801of your $PATH and any error possibly output before this message. This
2802can help us improve future automake versions.
2803
2804END
2805 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2806 echo 'Configuration will proceed anyway, since you have set the' >&2
2807 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2808 echo >&2
2809 else
2810 cat >&2 <<'END'
2811Aborting the configuration process, to ensure you take notice of the issue.
2812
2813You can download and install GNU coreutils to get an 'rm' implementation
2814that behaves properly: <http://www.gnu.org/software/coreutils/>.
2815
2816If you want to complete the configuration process using your problematic
2817'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2818to "yes", and re-run configure.
2819
2820END
2821 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2822 fi
2823fi
2824
d9898ee8 2825LPATH="$PATH:/usr/local/bin"
dd184caf 2826ac_config_headers="$ac_config_headers config.h"
d9898ee8 2827
2828
2829ac_ext=c
2830ac_cpp='$CPP $CPPFLAGS'
2831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836set dummy ${ac_tool_prefix}gcc; ac_word=$2
b0322a85 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2838$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2839if ${ac_cv_prog_CC+:} false; then :
8d138742 2840 $as_echo_n "(cached) " >&6
d9898ee8 2841else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844else
2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
b0322a85
CE
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
b0322a85 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2854 break 2
2855 fi
2856done
b0322a85 2857 done
dd184caf 2858IFS=$as_save_IFS
d9898ee8 2859
2860fi
2861fi
2862CC=$ac_cv_prog_CC
2863if test -n "$CC"; then
b0322a85 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 2865$as_echo "$CC" >&6; }
d9898ee8 2866else
b0322a85 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2868$as_echo "no" >&6; }
d9898ee8 2869fi
2870
dd184caf 2871
d9898ee8 2872fi
2873if test -z "$ac_cv_prog_CC"; then
2874 ac_ct_CC=$CC
2875 # Extract the first word of "gcc", so it can be a program name with args.
2876set dummy gcc; ac_word=$2
b0322a85 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2878$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2879if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 2880 $as_echo_n "(cached) " >&6
d9898ee8 2881else
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
b0322a85
CE
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2892 ac_cv_prog_ac_ct_CC="gcc"
b0322a85 2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2894 break 2
2895 fi
2896done
b0322a85 2897 done
dd184caf 2898IFS=$as_save_IFS
d9898ee8 2899
2900fi
2901fi
2902ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903if test -n "$ac_ct_CC"; then
b0322a85 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 2905$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2906else
b0322a85 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2908$as_echo "no" >&6; }
d9898ee8 2909fi
2910
dd184caf 2911 if test "x$ac_ct_CC" = x; then
2912 CC=""
2913 else
2914 case $cross_compiling:$ac_tool_warned in
2915yes:)
b0322a85 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 2917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2918ac_tool_warned=yes ;;
2919esac
2920 CC=$ac_ct_CC
2921 fi
d9898ee8 2922else
2923 CC="$ac_cv_prog_CC"
2924fi
2925
2926if test -z "$CC"; then
dd184caf 2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2929set dummy ${ac_tool_prefix}cc; ac_word=$2
b0322a85 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2931$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2932if ${ac_cv_prog_CC+:} false; then :
8d138742 2933 $as_echo_n "(cached) " >&6
d9898ee8 2934else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
b0322a85
CE
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2945 ac_cv_prog_CC="${ac_tool_prefix}cc"
b0322a85 2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2947 break 2
2948 fi
2949done
b0322a85 2950 done
dd184caf 2951IFS=$as_save_IFS
d9898ee8 2952
2953fi
2954fi
2955CC=$ac_cv_prog_CC
2956if test -n "$CC"; then
b0322a85 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 2958$as_echo "$CC" >&6; }
d9898ee8 2959else
b0322a85 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 2961$as_echo "no" >&6; }
d9898ee8 2962fi
2963
d9898ee8 2964
dd184caf 2965 fi
d9898ee8 2966fi
2967if test -z "$CC"; then
2968 # Extract the first word of "cc", so it can be a program name with args.
2969set dummy cc; ac_word=$2
b0322a85 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 2971$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 2972if ${ac_cv_prog_CC+:} false; then :
8d138742 2973 $as_echo_n "(cached) " >&6
d9898ee8 2974else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
2978 ac_prog_rejected=no
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
b0322a85
CE
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2987 ac_prog_rejected=yes
2988 continue
2989 fi
2990 ac_cv_prog_CC="cc"
b0322a85 2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2992 break 2
2993 fi
2994done
b0322a85 2995 done
dd184caf 2996IFS=$as_save_IFS
d9898ee8 2997
2998if test $ac_prog_rejected = yes; then
2999 # We found a bogon in the path, so make sure we never use it.
3000 set dummy $ac_cv_prog_CC
3001 shift
3002 if test $# != 0; then
3003 # We chose a different compiler from the bogus one.
3004 # However, it has the same basename, so the bogon will be chosen
3005 # first if we set CC to just the basename; use the full file name.
3006 shift
3007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 fi
3009fi
3010fi
3011fi
3012CC=$ac_cv_prog_CC
3013if test -n "$CC"; then
b0322a85 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3015$as_echo "$CC" >&6; }
d9898ee8 3016else
b0322a85 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3018$as_echo "no" >&6; }
d9898ee8 3019fi
3020
dd184caf 3021
d9898ee8 3022fi
3023if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
dd184caf 3025 for ac_prog in cl.exe
d9898ee8 3026 do
3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3030$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3031if ${ac_cv_prog_CC+:} false; then :
8d138742 3032 $as_echo_n "(cached) " >&6
d9898ee8 3033else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
b0322a85
CE
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
b0322a85 3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3046 break 2
3047 fi
3048done
b0322a85 3049 done
dd184caf 3050IFS=$as_save_IFS
d9898ee8 3051
3052fi
3053fi
3054CC=$ac_cv_prog_CC
3055if test -n "$CC"; then
b0322a85 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8d138742 3057$as_echo "$CC" >&6; }
d9898ee8 3058else
b0322a85 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3060$as_echo "no" >&6; }
d9898ee8 3061fi
3062
dd184caf 3063
d9898ee8 3064 test -n "$CC" && break
3065 done
3066fi
3067if test -z "$CC"; then
3068 ac_ct_CC=$CC
dd184caf 3069 for ac_prog in cl.exe
d9898ee8 3070do
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072set dummy $ac_prog; ac_word=$2
b0322a85 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3074$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3075if ${ac_cv_prog_ac_ct_CC+:} false; then :
8d138742 3076 $as_echo_n "(cached) " >&6
d9898ee8 3077else
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
b0322a85
CE
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3088 ac_cv_prog_ac_ct_CC="$ac_prog"
b0322a85 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3090 break 2
3091 fi
3092done
b0322a85 3093 done
dd184caf 3094IFS=$as_save_IFS
d9898ee8 3095
3096fi
3097fi
3098ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099if test -n "$ac_ct_CC"; then
b0322a85 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8d138742 3101$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3102else
b0322a85 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3104$as_echo "no" >&6; }
d9898ee8 3105fi
3106
dd184caf 3107
d9898ee8 3108 test -n "$ac_ct_CC" && break
3109done
3110
dd184caf 3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115yes:)
b0322a85 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 3117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3118ac_tool_warned=yes ;;
3119esac
3120 CC=$ac_ct_CC
3121 fi
d9898ee8 3122fi
3123
3124fi
3125
3126
b0322a85 3127test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3129as_fn_error $? "no acceptable C compiler found in \$PATH
3130See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3131
3132# Provide some information about the compiler.
b0322a85 3133$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8d138742
CE
3134set X $ac_compile
3135ac_compiler=$2
b0322a85
CE
3136for ac_option in --version -v -V -qversion; do
3137 { { ac_try="$ac_compiler $ac_option >&5"
dd184caf 3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
b0322a85
CE
3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d9898ee8 3145 ac_status=$?
b0322a85
CE
3146 if test -s conftest.err; then
3147 sed '10a\
3148... rest of stderr output deleted ...
3149 10q' conftest.err >conftest.er1
3150 cat conftest.er1 >&5
3151 fi
3152 rm -f conftest.er1 conftest.err
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155done
d9898ee8 3156
b0322a85 3157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168ac_clean_files_save=$ac_clean_files
8d138742 3169ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3170# Try to create an executable without -o first, disregard a.out.
3171# It will help us diagnose broken compilers, and finding out an intuition
3172# of exeext.
b0322a85
CE
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3174$as_echo_n "checking whether the C compiler works... " >&6; }
8d138742
CE
3175ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176
3177# The possible output files:
3178ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3179
dd184caf 3180ac_rmfiles=
3181for ac_file in $ac_files
3182do
3183 case $ac_file in
8d138742 3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3185 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3186 esac
3187done
3188rm -f $ac_rmfiles
3189
b0322a85 3190if { { ac_try="$ac_link_default"
dd184caf 3191case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194esac
b0322a85
CE
3195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196$as_echo "$ac_try_echo"; } >&5
dd184caf 3197 (eval "$ac_link_default") 2>&5
d9898ee8 3198 ac_status=$?
b0322a85
CE
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; then :
dd184caf 3201 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3202# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3203# in a Makefile. We should not override ac_cv_exeext if it was cached,
3204# so that the user can short-circuit this test for compilers unknown to
3205# Autoconf.
3206for ac_file in $ac_files ''
d9898ee8 3207do
3208 test -f "$ac_file" || continue
3209 case $ac_file in
8d138742 3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3211 ;;
3212 [ab].out )
3213 # We found the default executable, but exeext='' is most
3214 # certainly right.
3215 break;;
3216 *.* )
b0322a85 3217 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
dd184caf 3218 then :; else
3219 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220 fi
3221 # We set ac_cv_exeext here because the later test for it is not
3222 # safe: cross compilers may not add the suffix if given an `-o'
3223 # argument, so we may need to know it at that point already.
3224 # Even if this section looks crufty: it has the advantage of
3225 # actually working.
d9898ee8 3226 break;;
3227 * )
3228 break;;
3229 esac
3230done
dd184caf 3231test "$ac_cv_exeext" = no && ac_cv_exeext=
3232
d9898ee8 3233else
dd184caf 3234 ac_file=''
3235fi
b0322a85
CE
3236if test -z "$ac_file"; then :
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239$as_echo "$as_me: failed program was:" >&5
d9898ee8 3240sed 's/^/| /' conftest.$ac_ext >&5
3241
b0322a85 3242{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3244as_fn_error 77 "C compiler cannot create executables
3245See \`config.log' for more details" "$LINENO" 5; }
3246else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248$as_echo "yes" >&6; }
d9898ee8 3249fi
b0322a85
CE
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3251$as_echo_n "checking for C compiler default output file name... " >&6; }
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3253$as_echo "$ac_file" >&6; }
d9898ee8 3254ac_exeext=$ac_cv_exeext
d9898ee8 3255
8d138742 3256rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3257ac_clean_files=$ac_clean_files_save
b0322a85 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8d138742 3259$as_echo_n "checking for suffix of executables... " >&6; }
b0322a85 3260if { { ac_try="$ac_link"
dd184caf 3261case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
b0322a85
CE
3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266$as_echo "$ac_try_echo"; } >&5
dd184caf 3267 (eval "$ac_link") 2>&5
d9898ee8 3268 ac_status=$?
b0322a85
CE
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; then :
d9898ee8 3271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3273# work properly (i.e., refer to `conftest.exe'), while it won't with
3274# `rm'.
3275for ac_file in conftest.exe conftest conftest.*; do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
8d138742 3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3280 break;;
3281 * ) break;;
3282 esac
3283done
3284else
b0322a85 3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3287as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3288See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3289fi
b0322a85
CE
3290rm -f conftest conftest$ac_cv_exeext
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8d138742 3292$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3293
3294rm -f conftest.$ac_ext
3295EXEEXT=$ac_cv_exeext
3296ac_exeext=$EXEEXT
b0322a85
CE
3297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298/* end confdefs.h. */
3299#include <stdio.h>
3300int
3301main ()
3302{
3303FILE *f = fopen ("conftest.out", "w");
3304 return ferror (f) || fclose (f) != 0;
3305
3306 ;
3307 return 0;
3308}
3309_ACEOF
3310ac_clean_files="$ac_clean_files conftest.out"
3311# Check that the compiler produces executables we can run. If not, either
3312# the compiler is broken, or we cross compile.
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3314$as_echo_n "checking whether we are cross compiling... " >&6; }
3315if test "$cross_compiling" != yes; then
3316 { { ac_try="$ac_link"
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_link") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }
3327 if { ac_try='./conftest$ac_cv_exeext'
3328 { { case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331esac
3332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333$as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_try") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; }; then
3338 cross_compiling=no
3339 else
3340 if test "$cross_compiling" = maybe; then
3341 cross_compiling=yes
3342 else
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345as_fn_error $? "cannot run C compiled programs.
3346If you meant to cross compile, use \`--host'.
3347See \`config.log' for more details" "$LINENO" 5; }
3348 fi
3349 fi
3350fi
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3352$as_echo "$cross_compiling" >&6; }
3353
3354rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3355ac_clean_files=$ac_clean_files_save
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8d138742 3357$as_echo_n "checking for suffix of object files... " >&6; }
b0322a85 3358if ${ac_cv_objext+:} false; then :
8d138742 3359 $as_echo_n "(cached) " >&6
d9898ee8 3360else
b0322a85 3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3362/* end confdefs.h. */
3363
3364int
3365main ()
3366{
3367
3368 ;
3369 return 0;
3370}
3371_ACEOF
3372rm -f conftest.o conftest.obj
b0322a85 3373if { { ac_try="$ac_compile"
dd184caf 3374case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377esac
b0322a85
CE
3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379$as_echo "$ac_try_echo"; } >&5
dd184caf 3380 (eval "$ac_compile") 2>&5
d9898ee8 3381 ac_status=$?
b0322a85
CE
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; then :
dd184caf 3384 for ac_file in conftest.o conftest.obj conftest.*; do
3385 test -f "$ac_file" || continue;
d9898ee8 3386 case $ac_file in
8d138742 3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3388 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3389 break;;
3390 esac
3391done
3392else
8d138742 3393 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3394sed 's/^/| /' conftest.$ac_ext >&5
3395
b0322a85 3396{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
3398as_fn_error $? "cannot compute suffix of object files: cannot compile
3399See \`config.log' for more details" "$LINENO" 5; }
d9898ee8 3400fi
d9898ee8 3401rm -f conftest.$ac_cv_objext conftest.$ac_ext
3402fi
b0322a85 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8d138742 3404$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3405OBJEXT=$ac_cv_objext
3406ac_objext=$OBJEXT
b0322a85 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8d138742 3408$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b0322a85 3409if ${ac_cv_c_compiler_gnu+:} false; then :
8d138742 3410 $as_echo_n "(cached) " >&6
d9898ee8 3411else
b0322a85 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3413/* end confdefs.h. */
3414
3415int
3416main ()
3417{
3418#ifndef __GNUC__
3419 choke me
3420#endif
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
b0322a85 3426if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3427 ac_compiler_gnu=yes
3428else
b0322a85 3429 ac_compiler_gnu=no
d9898ee8 3430fi
dd184caf 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3432ac_cv_c_compiler_gnu=$ac_compiler_gnu
3433
3434fi
b0322a85 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8d138742
CE
3436$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3437if test $ac_compiler_gnu = yes; then
3438 GCC=yes
3439else
3440 GCC=
3441fi
d9898ee8 3442ac_test_CFLAGS=${CFLAGS+set}
3443ac_save_CFLAGS=$CFLAGS
b0322a85 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8d138742 3445$as_echo_n "checking whether $CC accepts -g... " >&6; }
b0322a85 3446if ${ac_cv_prog_cc_g+:} false; then :
8d138742 3447 $as_echo_n "(cached) " >&6
d9898ee8 3448else
dd184caf 3449 ac_save_c_werror_flag=$ac_c_werror_flag
3450 ac_c_werror_flag=yes
3451 ac_cv_prog_cc_g=no
3452 CFLAGS="-g"
b0322a85 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3454/* end confdefs.h. */
3455
3456int
3457main ()
3458{
3459
3460 ;
3461 return 0;
3462}
3463_ACEOF
b0322a85 3464if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3465 ac_cv_prog_cc_g=yes
3466else
b0322a85
CE
3467 CFLAGS=""
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3469/* end confdefs.h. */
3470
3471int
3472main ()
3473{
3474
3475 ;
3476 return 0;
3477}
3478_ACEOF
b0322a85 3479if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3480
b0322a85
CE
3481else
3482 ac_c_werror_flag=$ac_save_c_werror_flag
dd184caf 3483 CFLAGS="-g"
b0322a85 3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dd184caf 3485/* end confdefs.h. */
3486
3487int
3488main ()
3489{
3490
3491 ;
3492 return 0;
3493}
3494_ACEOF
b0322a85 3495if ac_fn_c_try_compile "$LINENO"; then :
d9898ee8 3496 ac_cv_prog_cc_g=yes
dd184caf 3497fi
dd184caf 3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499fi
dd184caf 3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3501fi
dd184caf 3502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3504fi
b0322a85 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8d138742 3506$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3507if test "$ac_test_CFLAGS" = set; then
3508 CFLAGS=$ac_save_CFLAGS
3509elif test $ac_cv_prog_cc_g = yes; then
3510 if test "$GCC" = yes; then
3511 CFLAGS="-g -O2"
3512 else
3513 CFLAGS="-g"
3514 fi
3515else
3516 if test "$GCC" = yes; then
3517 CFLAGS="-O2"
3518 else
3519 CFLAGS=
3520 fi
3521fi
b0322a85 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8d138742 3523$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b0322a85 3524if ${ac_cv_prog_cc_c89+:} false; then :
8d138742 3525 $as_echo_n "(cached) " >&6
d9898ee8 3526else
dd184caf 3527 ac_cv_prog_cc_c89=no
d9898ee8 3528ac_save_CC=$CC
b0322a85 3529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d9898ee8 3530/* end confdefs.h. */
3531#include <stdarg.h>
3532#include <stdio.h>
b0322a85 3533struct stat;
d9898ee8 3534/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3535struct buf { int x; };
3536FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537static char *e (p, i)
3538 char **p;
3539 int i;
3540{
3541 return p[i];
3542}
3543static char *f (char * (*g) (char **, int), char **p, ...)
3544{
3545 char *s;
3546 va_list v;
3547 va_start (v,p);
3548 s = g (p, va_arg (v,int));
3549 va_end (v);
3550 return s;
3551}
3552
3553/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3554 function prototypes and stuff, but not '\xHH' hex character constants.
3555 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3556 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3558 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3559 that's true only with -std. */
d9898ee8 3560int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561
dd184caf 3562/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563 inside strings and character constants. */
3564#define FOO(x) 'x'
3565int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566
d9898ee8 3567int test (int i, double x);
3568struct s1 {int (*f) (int a);};
3569struct s2 {int (*f) (double a);};
3570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571int argc;
3572char **argv;
3573int
3574main ()
3575{
3576return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 ;
3578 return 0;
3579}
3580_ACEOF
dd184caf 3581for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3583do
3584 CC="$ac_save_CC $ac_arg"
b0322a85 3585 if ac_fn_c_try_compile "$LINENO"; then :
dd184caf 3586 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3587fi
dd184caf 3588rm -f core conftest.err conftest.$ac_objext
3589 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3590done
dd184caf 3591rm -f conftest.$ac_ext
d9898ee8 3592CC=$ac_save_CC
3593
3594fi
dd184caf 3595# AC_CACHE_VAL
3596case "x$ac_cv_prog_cc_c89" in
3597 x)
b0322a85 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8d138742 3599$as_echo "none needed" >&6; } ;;
dd184caf 3600 xno)
b0322a85 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8d138742 3602$as_echo "unsupported" >&6; } ;;
d9898ee8 3603 *)
dd184caf 3604 CC="$CC $ac_cv_prog_cc_c89"
b0322a85 3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8d138742 3606$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3607esac
b0322a85 3608if test "x$ac_cv_prog_cc_c89" != xno; then :
d9898ee8 3609
b0322a85 3610fi
d9898ee8 3611
d9898ee8 3612ac_ext=c
3613ac_cpp='$CPP $CPPFLAGS'
3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616ac_compiler_gnu=$ac_cv_c_compiler_gnu
d50284c4
CE
3617
3618ac_ext=c
3619ac_cpp='$CPP $CPPFLAGS'
3620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3624$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3625if ${am_cv_prog_cc_c_o+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627else
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h. */
3630
3631int
3632main ()
3633{
3634
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639 # Make sure it works both with $CC and with simple cc.
3640 # Following AC_PROG_CC_C_O, we do the test twice because some
3641 # compilers refuse to overwrite an existing .o file with -o,
3642 # though they will create one.
3643 am_cv_prog_cc_c_o=yes
3644 for am_i in 1 2; do
3645 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3646 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } \
3650 && test -f conftest2.$ac_objext; then
3651 : OK
3652 else
3653 am_cv_prog_cc_c_o=no
3654 break
3655 fi
3656 done
3657 rm -f core conftest*
3658 unset am_i
3659fi
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3661$as_echo "$am_cv_prog_cc_c_o" >&6; }
3662if test "$am_cv_prog_cc_c_o" != yes; then
3663 # Losing compiler, so override with the script.
3664 # FIXME: It is wrong to rewrite CC.
3665 # But if we don't then we get into trouble of one sort or another.
3666 # A longer-term fix would be to have automake use am__CC in this case,
3667 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3668 CC="$am_aux_dir/compile $CC"
3669fi
3670ac_ext=c
3671ac_cpp='$CPP $CPPFLAGS'
3672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675
d9898ee8 3676DEPDIR="${am__leading_dot}deps"
3677
dd184caf 3678ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3679
3680
3681am_make=${MAKE-make}
3682cat > confinc << 'END'
3683am__doit:
8d138742 3684 @echo this is the am__doit target
d9898ee8 3685.PHONY: am__doit
3686END
3687# If we don't find an include directive, just comment out the code.
b0322a85 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8d138742 3689$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3690am__include="#"
3691am__quote=
3692_am_result=none
3693# First try GNU make style include.
3694echo "include confinc" > confmf
b0322a85 3695# Ignore all kinds of additional output from 'make'.
8d138742
CE
3696case `$am_make -s -f confmf 2> /dev/null` in #(
3697*the\ am__doit\ target*)
3698 am__include=include
3699 am__quote=
3700 _am_result=GNU
3701 ;;
3702esac
d9898ee8 3703# Now try BSD make style include.
3704if test "$am__include" = "#"; then
3705 echo '.include "confinc"' > confmf
8d138742
CE
3706 case `$am_make -s -f confmf 2> /dev/null` in #(
3707 *the\ am__doit\ target*)
3708 am__include=.include
3709 am__quote="\""
3710 _am_result=BSD
3711 ;;
3712 esac
d9898ee8 3713fi
3714
3715
b0322a85 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
8d138742 3717$as_echo "$_am_result" >&6; }
d9898ee8 3718rm -f confinc confmf
3719
dd184caf 3720# Check whether --enable-dependency-tracking was given.
b0322a85 3721if test "${enable_dependency_tracking+set}" = set; then :
dd184caf 3722 enableval=$enable_dependency_tracking;
3723fi
d9898ee8 3724
d9898ee8 3725if test "x$enable_dependency_tracking" != xno; then
3726 am_depcomp="$ac_aux_dir/depcomp"
3727 AMDEPBACKSLASH='\'
b0322a85 3728 am__nodep='_no'
d9898ee8 3729fi
dd184caf 3730 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3731 AMDEP_TRUE=
3732 AMDEP_FALSE='#'
3733else
3734 AMDEP_TRUE='#'
3735 AMDEP_FALSE=
3736fi
3737
3738
3739
d9898ee8 3740depcc="$CC" am_compiler_list=
3741
b0322a85 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8d138742 3743$as_echo_n "checking dependency style of $depcc... " >&6; }
b0322a85 3744if ${am_cv_CC_dependencies_compiler_type+:} false; then :
8d138742 3745 $as_echo_n "(cached) " >&6
d9898ee8 3746else
3747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3748 # We make a subdir and do the tests there. Otherwise we can end up
3749 # making bogus files that we don't know about and never remove. For
3750 # instance it was reported that on HP-UX the gcc test will end up
b0322a85
CE
3751 # making a dummy file named 'D' -- because '-MD' means "put the output
3752 # in D".
3753 rm -rf conftest.dir
d9898ee8 3754 mkdir conftest.dir
3755 # Copy depcomp to subdir because otherwise we won't find it if we're
3756 # using a relative directory.
3757 cp "$am_depcomp" conftest.dir
3758 cd conftest.dir
3759 # We will build objects and dependencies in a subdirectory because
3760 # it helps to detect inapplicable dependency modes. For instance
3761 # both Tru64's cc and ICC support -MD to output dependencies as a
3762 # side effect of compilation, but ICC will put the dependencies in
3763 # the current directory while Tru64 will put them in the object
3764 # directory.
3765 mkdir sub
3766
3767 am_cv_CC_dependencies_compiler_type=none
3768 if test "$am_compiler_list" = ""; then
3769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3770 fi
8d138742
CE
3771 am__universal=false
3772 case " $depcc " in #(
3773 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3774 esac
3775
d9898ee8 3776 for depmode in $am_compiler_list; do
3777 # Setup a source with many dependencies, because some compilers
3778 # like to wrap large dependency lists on column 80 (with \), and
3779 # we should not choose a depcomp mode which is confused by this.
3780 #
3781 # We need to recreate these files for each test, as the compiler may
3782 # overwrite some of them when testing with obscure command lines.
3783 # This happens at least with the AIX C compiler.
3784 : > sub/conftest.c
3785 for i in 1 2 3 4 5 6; do
3786 echo '#include "conftst'$i'.h"' >> sub/conftest.c
b0322a85
CE
3787 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3788 # Solaris 10 /bin/sh.
3789 echo '/* dummy */' > sub/conftst$i.h
d9898ee8 3790 done
3791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3792
b0322a85 3793 # We check with '-c' and '-o' for the sake of the "dashmstdout"
8d138742 3794 # mode. It turns out that the SunPro C++ compiler does not properly
b0322a85
CE
3795 # handle '-M -o', and we need to detect this. Also, some Intel
3796 # versions had trouble with output in subdirs.
8d138742
CE
3797 am__obj=sub/conftest.${OBJEXT-o}
3798 am__minus_obj="-o $am__obj"
d9898ee8 3799 case $depmode in
8d138742
CE
3800 gcc)
3801 # This depmode causes a compiler race in universal mode.
3802 test "$am__universal" = false || continue
3803 ;;
d9898ee8 3804 nosideeffect)
b0322a85
CE
3805 # After this tag, mechanisms are not by side-effect, so they'll
3806 # only be used when explicitly requested.
d9898ee8 3807 if test "x$enable_dependency_tracking" = xyes; then
3808 continue
3809 else
3810 break
3811 fi
3812 ;;
b0322a85
CE
3813 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3814 # This compiler won't grok '-c -o', but also, the minuso test has
8d138742
CE
3815 # not run yet. These depmodes are late enough in the game, and
3816 # so weak that their functioning should not be impacted.
3817 am__obj=conftest.${OBJEXT-o}
3818 am__minus_obj=
3819 ;;
d9898ee8 3820 none) break ;;
3821 esac
d9898ee8 3822 if depmode=$depmode \
8d138742 3823 source=sub/conftest.c object=$am__obj \
d9898ee8 3824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3826 >/dev/null 2>conftest.err &&
dd184caf 3827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3831 # icc doesn't choke on unknown options, it will just issue warnings
3832 # or remarks (even with -Werror). So we grep stderr for any message
3833 # that says an option was ignored or not supported.
3834 # When given -MP, icc 7.0 and 7.1 complain thusly:
3835 # icc: Command line warning: ignoring option '-M'; no argument required
3836 # The diagnosis changed in icc 8.0:
3837 # icc: Command line remark: option '-MP' not supported
3838 if (grep 'ignoring option' conftest.err ||
3839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3840 am_cv_CC_dependencies_compiler_type=$depmode
3841 break
3842 fi
3843 fi
3844 done
3845
3846 cd ..
3847 rm -rf conftest.dir
3848else
3849 am_cv_CC_dependencies_compiler_type=none
3850fi
3851
3852fi
b0322a85 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8d138742 3854$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3855CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3856
dd184caf 3857 if
d9898ee8 3858 test "x$enable_dependency_tracking" != xno \
3859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860 am__fastdepCC_TRUE=
3861 am__fastdepCC_FALSE='#'
3862else
3863 am__fastdepCC_TRUE='#'
3864 am__fastdepCC_FALSE=
3865fi
3866
3867
d9898ee8 3868
b0322a85 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8d138742 3870$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 3871LN_S=$as_ln_s
3872if test "$LN_S" = "ln -s"; then
b0322a85 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742 3874$as_echo "yes" >&6; }
d9898ee8 3875else
b0322a85 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8d138742 3877$as_echo "no, using $LN_S" >&6; }
d9898ee8 3878fi
3879
3880for ac_prog in perl5 perl
3881do
3882 # Extract the first word of "$ac_prog", so it can be a program name with args.
3883set dummy $ac_prog; ac_word=$2
b0322a85 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3885$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3886if ${ac_cv_path_PERL+:} false; then :
8d138742 3887 $as_echo_n "(cached) " >&6
d9898ee8 3888else
3889 case $PERL in
3890 [\\/]* | ?:[\\/]*)
3891 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3892 ;;
3893 *)
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $LPATH
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
b0322a85
CE
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3901 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
b0322a85 3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3903 break 2
3904 fi
3905done
b0322a85 3906 done
dd184caf 3907IFS=$as_save_IFS
d9898ee8 3908
3909 ;;
3910esac
3911fi
3912PERL=$ac_cv_path_PERL
d9898ee8 3913if test -n "$PERL"; then
b0322a85 3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8d138742 3915$as_echo "$PERL" >&6; }
d9898ee8 3916else
b0322a85 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3918$as_echo "no" >&6; }
d9898ee8 3919fi
3920
dd184caf 3921
d9898ee8 3922 test -n "$PERL" && break
3923done
3924test -n "$PERL" || PERL="perl"
3925
3926
3927for ac_prog in cat
3928do
3929 # Extract the first word of "$ac_prog", so it can be a program name with args.
3930set dummy $ac_prog; ac_word=$2
b0322a85 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 3932$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 3933if ${ac_cv_path_CAT+:} false; then :
8d138742 3934 $as_echo_n "(cached) " >&6
d9898ee8 3935else
3936 case $CAT in
3937 [\\/]* | ?:[\\/]*)
3938 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3939 ;;
3940 *)
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
b0322a85
CE
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d9898ee8 3948 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
b0322a85 3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3950 break 2
3951 fi
3952done
b0322a85 3953 done
dd184caf 3954IFS=$as_save_IFS
d9898ee8 3955
3956 ;;
3957esac
3958fi
3959CAT=$ac_cv_path_CAT
d9898ee8 3960if test -n "$CAT"; then
b0322a85 3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
8d138742 3962$as_echo "$CAT" >&6; }
d9898ee8 3963else
b0322a85 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 3965$as_echo "no" >&6; }
d9898ee8 3966fi
3967
dd184caf 3968
d9898ee8 3969 test -n "$CAT" && break
3970done
3971test -n "$CAT" || CAT="cat"
3972
8d138742 3973enable_dlopen=yes
d9898ee8 3974
3975
d9898ee8 3976
8d138742
CE
3977case `pwd` in
3978 *\ * | *\ *)
b0322a85 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8d138742
CE
3980$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3981esac
dd184caf 3982
d9898ee8 3983
dd184caf 3984
d50284c4
CE
3985macro_version='2.4.6'
3986macro_revision='2.4.6'
dd184caf 3987
d9898ee8 3988
8d138742
CE
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
d50284c4 4000ltmain=$ac_aux_dir/ltmain.sh
8d138742 4001
d9898ee8 4002# Make sure we can run config.sub.
dd184caf 4003$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
b0322a85 4004 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d9898ee8 4005
b0322a85 4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8d138742 4007$as_echo_n "checking build system type... " >&6; }
b0322a85 4008if ${ac_cv_build+:} false; then :
8d138742 4009 $as_echo_n "(cached) " >&6
d9898ee8 4010else
dd184caf 4011 ac_build_alias=$build_alias
4012test "x$ac_build_alias" = x &&
4013 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4014test "x$ac_build_alias" = x &&
b0322a85 4015 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
dd184caf 4016ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
b0322a85 4017 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
d9898ee8 4018
4019fi
b0322a85 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8d138742 4021$as_echo "$ac_cv_build" >&6; }
dd184caf 4022case $ac_cv_build in
4023*-*-*) ;;
b0322a85 4024*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
dd184caf 4025esac
d9898ee8 4026build=$ac_cv_build
dd184caf 4027ac_save_IFS=$IFS; IFS='-'
4028set x $ac_cv_build
4029shift
4030build_cpu=$1
4031build_vendor=$2
4032shift; shift
4033# Remember, the first character of IFS is used to create $*,
4034# except with old shells:
4035build_os=$*
4036IFS=$ac_save_IFS
4037case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4038
4039
b0322a85 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8d138742 4041$as_echo_n "checking host system type... " >&6; }
b0322a85 4042if ${ac_cv_host+:} false; then :
8d138742 4043 $as_echo_n "(cached) " >&6
d9898ee8 4044else
dd184caf 4045 if test "x$host_alias" = x; then
4046 ac_cv_host=$ac_cv_build
4047else
4048 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
b0322a85 4049 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
dd184caf 4050fi
d9898ee8 4051
4052fi
b0322a85 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8d138742 4054$as_echo "$ac_cv_host" >&6; }
dd184caf 4055case $ac_cv_host in
4056*-*-*) ;;
b0322a85 4057*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
dd184caf 4058esac
d9898ee8 4059host=$ac_cv_host
dd184caf 4060ac_save_IFS=$IFS; IFS='-'
4061set x $ac_cv_host
4062shift
4063host_cpu=$1
4064host_vendor=$2
4065shift; shift
4066# Remember, the first character of IFS is used to create $*,
4067# except with old shells:
4068host_os=$*
4069IFS=$ac_save_IFS
4070case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4071
4072
b0322a85
CE
4073# Backslashify metacharacters that are still active within
4074# double-quoted strings.
4075sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4076
4077# Same as above, but do not quote variable references.
4078double_quote_subst='s/\(["`\\]\)/\\\1/g'
4079
4080# Sed substitution to delay expansion of an escaped shell variable in a
4081# double_quote_subst'ed string.
4082delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4083
4084# Sed substitution to delay expansion of an escaped single quote.
4085delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4086
4087# Sed substitution to avoid accidental globbing in evaled expressions
4088no_glob_subst='s/\*/\\\*/g'
4089
4090ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4091ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4092ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4093
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4095$as_echo_n "checking how to print strings... " >&6; }
4096# Test print first, because it will be a builtin if present.
4097if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4098 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4099 ECHO='print -r --'
4100elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4101 ECHO='printf %s\n'
4102else
4103 # Use this function as a fallback that always works.
4104 func_fallback_echo ()
4105 {
4106 eval 'cat <<_LTECHO_EOF
4107$1
4108_LTECHO_EOF'
4109 }
4110 ECHO='func_fallback_echo'
4111fi
4112
4113# func_echo_all arg...
4114# Invoke $ECHO with all args, space-separated.
4115func_echo_all ()
4116{
4117 $ECHO ""
4118}
4119
d50284c4 4120case $ECHO in
b0322a85
CE
4121 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4122$as_echo "printf" >&6; } ;;
4123 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4124$as_echo "print -r" >&6; } ;;
4125 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4126$as_echo "cat" >&6; } ;;
4127esac
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8d138742 4143$as_echo_n "checking for a sed that does not truncate output... " >&6; }
b0322a85 4144if ${ac_cv_path_SED+:} false; then :
8d138742
CE
4145 $as_echo_n "(cached) " >&6
4146else
4147 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4148 for ac_i in 1 2 3 4 5 6 7; do
4149 ac_script="$ac_script$as_nl$ac_script"
4150 done
4151 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
b0322a85 4152 { ac_script=; unset ac_script;}
8d138742
CE
4153 if test -z "$SED"; then
4154 ac_path_SED_found=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4157for as_dir in $PATH
4158do
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
b0322a85 4161 for ac_prog in sed gsed; do
d9898ee8 4162 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742 4163 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4164 as_fn_executable_p "$ac_path_SED" || continue
8d138742
CE
4165# Check for GNU ac_path_SED and select it if it is found.
4166 # Check for GNU $ac_path_SED
4167case `"$ac_path_SED" --version 2>&1` in
4168*GNU*)
4169 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4170*)
4171 ac_count=0
4172 $as_echo_n 0123456789 >"conftest.in"
4173 while :
4174 do
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
4178 $as_echo '' >> "conftest.nl"
4179 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4181 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4182 if test $ac_count -gt ${ac_path_SED_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_SED="$ac_path_SED"
4185 ac_path_SED_max=$ac_count
4186 fi
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4189 done
4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191esac
4192
4193 $ac_path_SED_found && break 3
d9898ee8 4194 done
4195 done
b0322a85 4196 done
d9898ee8 4197IFS=$as_save_IFS
8d138742 4198 if test -z "$ac_cv_path_SED"; then
b0322a85 4199 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
d9898ee8 4200 fi
8d138742
CE
4201else
4202 ac_cv_path_SED=$SED
4203fi
d9898ee8 4204
4205fi
b0322a85 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8d138742
CE
4207$as_echo "$ac_cv_path_SED" >&6; }
4208 SED="$ac_cv_path_SED"
4209 rm -f conftest.sed
4210
4211test -z "$SED" && SED=sed
4212Xsed="$SED -e 1s/^X//"
d9898ee8 4213
d9898ee8 4214
dd184caf 4215
8d138742
CE
4216
4217
4218
4219
4220
4221
4222
4223
b0322a85 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8d138742 4225$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b0322a85 4226if ${ac_cv_path_GREP+:} false; then :
8d138742 4227 $as_echo_n "(cached) " >&6
dd184caf 4228else
8d138742 4229 if test -z "$GREP"; then
dd184caf 4230 ac_path_GREP_found=false
8d138742
CE
4231 # Loop through the user's path and test for each of PROGNAME-LIST
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4233for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
b0322a85 4237 for ac_prog in grep ggrep; do
8d138742
CE
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4240 as_fn_executable_p "$ac_path_GREP" || continue
8d138742 4241# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4242 # Check for GNU $ac_path_GREP
4243case `"$ac_path_GREP" --version 2>&1` in
4244*GNU*)
4245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4246*)
4247 ac_count=0
8d138742 4248 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4249 while :
4250 do
4251 cat "conftest.in" "conftest.in" >"conftest.tmp"
4252 mv "conftest.tmp" "conftest.in"
4253 cp "conftest.in" "conftest.nl"
8d138742 4254 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4257 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4259 # Best one so far, save it but keep looking for a better one
4260 ac_cv_path_GREP="$ac_path_GREP"
4261 ac_path_GREP_max=$ac_count
4262 fi
4263 # 10*(2^10) chars as input seems more than enough
4264 test $ac_count -gt 10 && break
4265 done
4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4267esac
4268
8d138742
CE
4269 $ac_path_GREP_found && break 3
4270 done
dd184caf 4271 done
b0322a85 4272 done
dd184caf 4273IFS=$as_save_IFS
8d138742 4274 if test -z "$ac_cv_path_GREP"; then
b0322a85 4275 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742 4276 fi
dd184caf 4277else
4278 ac_cv_path_GREP=$GREP
4279fi
4280
dd184caf 4281fi
b0322a85 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8d138742 4283$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4284 GREP="$ac_cv_path_GREP"
4285
d9898ee8 4286
b0322a85 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8d138742 4288$as_echo_n "checking for egrep... " >&6; }
b0322a85 4289if ${ac_cv_path_EGREP+:} false; then :
8d138742 4290 $as_echo_n "(cached) " >&6
dd184caf 4291else
4292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4293 then ac_cv_path_EGREP="$GREP -E"
4294 else
8d138742 4295 if test -z "$EGREP"; then
dd184caf 4296 ac_path_EGREP_found=false
8d138742
CE
4297 # Loop through the user's path and test for each of PROGNAME-LIST
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4300do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
b0322a85 4303 for ac_prog in egrep; do
8d138742
CE
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4306 as_fn_executable_p "$ac_path_EGREP" || continue
8d138742 4307# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4308 # Check for GNU $ac_path_EGREP
4309case `"$ac_path_EGREP" --version 2>&1` in
4310*GNU*)
4311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4312*)
4313 ac_count=0
8d138742 4314 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4315 while :
4316 do
4317 cat "conftest.in" "conftest.in" >"conftest.tmp"
4318 mv "conftest.tmp" "conftest.in"
4319 cp "conftest.in" "conftest.nl"
8d138742 4320 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4323 as_fn_arith $ac_count + 1 && ac_count=$as_val
dd184caf 4324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4325 # Best one so far, save it but keep looking for a better one
4326 ac_cv_path_EGREP="$ac_path_EGREP"
4327 ac_path_EGREP_max=$ac_count
d9898ee8 4328 fi
dd184caf 4329 # 10*(2^10) chars as input seems more than enough
4330 test $ac_count -gt 10 && break
4331 done
4332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333esac
4334
8d138742
CE
4335 $ac_path_EGREP_found && break 3
4336 done
dd184caf 4337 done
b0322a85 4338 done
dd184caf 4339IFS=$as_save_IFS
8d138742 4340 if test -z "$ac_cv_path_EGREP"; then
b0322a85 4341 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4342 fi
4343else
4344 ac_cv_path_EGREP=$EGREP
dd184caf 4345fi
4346
8d138742 4347 fi
dd184caf 4348fi
b0322a85 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8d138742
CE
4350$as_echo "$ac_cv_path_EGREP" >&6; }
4351 EGREP="$ac_cv_path_EGREP"
dd184caf 4352
8d138742 4353
b0322a85 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8d138742 4355$as_echo_n "checking for fgrep... " >&6; }
b0322a85 4356if ${ac_cv_path_FGREP+:} false; then :
8d138742 4357 $as_echo_n "(cached) " >&6
dd184caf 4358else
8d138742
CE
4359 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4360 then ac_cv_path_FGREP="$GREP -F"
4361 else
4362 if test -z "$FGREP"; then
4363 ac_path_FGREP_found=false
4364 # Loop through the user's path and test for each of PROGNAME-LIST
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
b0322a85 4370 for ac_prog in fgrep; do
8d138742
CE
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
b0322a85 4373 as_fn_executable_p "$ac_path_FGREP" || continue
8d138742
CE
4374# Check for GNU ac_path_FGREP and select it if it is found.
4375 # Check for GNU $ac_path_FGREP
4376case `"$ac_path_FGREP" --version 2>&1` in
4377*GNU*)
4378 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4379*)
4380 ac_count=0
4381 $as_echo_n 0123456789 >"conftest.in"
4382 while :
4383 do
4384 cat "conftest.in" "conftest.in" >"conftest.tmp"
4385 mv "conftest.tmp" "conftest.in"
4386 cp "conftest.in" "conftest.nl"
4387 $as_echo 'FGREP' >> "conftest.nl"
4388 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
b0322a85 4390 as_fn_arith $ac_count + 1 && ac_count=$as_val
8d138742
CE
4391 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4392 # Best one so far, save it but keep looking for a better one
4393 ac_cv_path_FGREP="$ac_path_FGREP"
4394 ac_path_FGREP_max=$ac_count
4395 fi
4396 # 10*(2^10) chars as input seems more than enough
4397 test $ac_count -gt 10 && break
4398 done
4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400esac
dd184caf 4401
8d138742
CE
4402 $ac_path_FGREP_found && break 3
4403 done
4404 done
b0322a85 4405 done
8d138742
CE
4406IFS=$as_save_IFS
4407 if test -z "$ac_cv_path_FGREP"; then
b0322a85 4408 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8d138742
CE
4409 fi
4410else
4411 ac_cv_path_FGREP=$FGREP
4412fi
dd184caf 4413
4414 fi
d9898ee8 4415fi
b0322a85 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8d138742
CE
4417$as_echo "$ac_cv_path_FGREP" >&6; }
4418 FGREP="$ac_cv_path_FGREP"
4419
4420
4421test -z "$GREP" && GREP=grep
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
d9898ee8 4438
4439
4440
dd184caf 4441# Check whether --with-gnu-ld was given.
b0322a85 4442if test "${with_gnu_ld+set}" = set; then :
d50284c4 4443 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
d9898ee8 4444else
4445 with_gnu_ld=no
dd184caf 4446fi
4447
d9898ee8 4448ac_prog=ld
d50284c4 4449if test yes = "$GCC"; then
d9898ee8 4450 # Check if gcc -print-prog-name=ld gives a path.
b0322a85 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8d138742 4452$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4453 case $host in
4454 *-*-mingw*)
d50284c4 4455 # gcc leaves a trailing carriage return, which upsets mingw
d9898ee8 4456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4457 *)
4458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4459 esac
4460 case $ac_prog in
4461 # Accept absolute paths.
4462 [\\/]* | ?:[\\/]*)
4463 re_direlt='/[^/][^/]*/\.\./'
4464 # Canonicalize the pathname of ld
8d138742
CE
4465 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4466 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4467 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4468 done
d50284c4 4469 test -z "$LD" && LD=$ac_prog
d9898ee8 4470 ;;
4471 "")
4472 # If it fails, then pretend we aren't using GCC.
4473 ac_prog=ld
4474 ;;
4475 *)
4476 # If it is relative, then search for the first ld in PATH.
4477 with_gnu_ld=unknown
4478 ;;
4479 esac
d50284c4 4480elif test yes = "$with_gnu_ld"; then
b0322a85 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8d138742 4482$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4483else
b0322a85 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8d138742 4485$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4486fi
b0322a85 4487if ${lt_cv_path_LD+:} false; then :
8d138742 4488 $as_echo_n "(cached) " >&6
d9898ee8 4489else
4490 if test -z "$LD"; then
d50284c4 4491 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4492 for ac_dir in $PATH; do
d50284c4 4493 IFS=$lt_save_ifs
d9898ee8 4494 test -z "$ac_dir" && ac_dir=.
4495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
d50284c4 4496 lt_cv_path_LD=$ac_dir/$ac_prog
d9898ee8 4497 # Check to see if the program is GNU ld. I'd rather use --version,
4498 # but apparently some variants of GNU ld only accept -v.
4499 # Break only if it was the GNU/non-GNU ld that we prefer.
4500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4501 *GNU* | *'with BFD'*)
d50284c4 4502 test no != "$with_gnu_ld" && break
d9898ee8 4503 ;;
4504 *)
d50284c4 4505 test yes != "$with_gnu_ld" && break
d9898ee8 4506 ;;
4507 esac
4508 fi
4509 done
d50284c4 4510 IFS=$lt_save_ifs
d9898ee8 4511else
d50284c4 4512 lt_cv_path_LD=$LD # Let the user override the test with a path.
d9898ee8 4513fi
4514fi
4515
d50284c4 4516LD=$lt_cv_path_LD
d9898ee8 4517if test -n "$LD"; then
b0322a85 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8d138742 4519$as_echo "$LD" >&6; }
d9898ee8 4520else
b0322a85 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 4522$as_echo "no" >&6; }
d9898ee8 4523fi
b0322a85
CE
4524test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8d138742 4526$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
b0322a85 4527if ${lt_cv_prog_gnu_ld+:} false; then :
8d138742 4528 $as_echo_n "(cached) " >&6
d9898ee8 4529else
4530 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4531case `$LD -v 2>&1 </dev/null` in
4532*GNU* | *'with BFD'*)
4533 lt_cv_prog_gnu_ld=yes
4534 ;;
4535*)
4536 lt_cv_prog_gnu_ld=no
4537 ;;
4538esac
4539fi
b0322a85 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8d138742 4541$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4542with_gnu_ld=$lt_cv_prog_gnu_ld
4543
4544
d9898ee8 4545
8d138742
CE
4546
4547
4548
4549
4550
4551
b0322a85 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8d138742 4553$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
b0322a85 4554if ${lt_cv_path_NM+:} false; then :
8d138742 4555 $as_echo_n "(cached) " >&6
d9898ee8 4556else
4557 if test -n "$NM"; then
4558 # Let the user override the test.
d50284c4 4559 lt_cv_path_NM=$NM
d9898ee8 4560else
d50284c4 4561 lt_nm_to_check=${ac_tool_prefix}nm
d9898ee8 4562 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4563 lt_nm_to_check="$lt_nm_to_check nm"
4564 fi
4565 for lt_tmp_nm in $lt_nm_to_check; do
d50284c4 4566 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 4567 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
d50284c4 4568 IFS=$lt_save_ifs
d9898ee8 4569 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
4570 tmp_nm=$ac_dir/$lt_tmp_nm
4571 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
d9898ee8 4572 # Check to see if the nm accepts a BSD-compat flag.
d50284c4 4573 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
d9898ee8 4574 # nm: unknown option "B" ignored
4575 # Tru64's nm complains that /dev/null is an invalid object file
d50284c4
CE
4576 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4577 case $build_os in
4578 mingw*) lt_bad_file=conftest.nm/nofile ;;
4579 *) lt_bad_file=/dev/null ;;
4580 esac
4581 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4582 *$lt_bad_file* | *'Invalid file or object type'*)
d9898ee8 4583 lt_cv_path_NM="$tmp_nm -B"
d50284c4 4584 break 2
d9898ee8 4585 ;;
4586 *)
4587 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4588 */dev/null*)
4589 lt_cv_path_NM="$tmp_nm -p"
d50284c4 4590 break 2
d9898ee8 4591 ;;
4592 *)
4593 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4594 continue # so that we can try to find one that supports BSD flags
4595 ;;
4596 esac
4597 ;;
4598 esac
4599 fi
4600 done
d50284c4 4601 IFS=$lt_save_ifs
d9898ee8 4602 done
8d138742 4603 : ${lt_cv_path_NM=no}
d9898ee8 4604fi
4605fi
b0322a85 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8d138742 4607$as_echo "$lt_cv_path_NM" >&6; }
d50284c4
CE
4608if test no != "$lt_cv_path_NM"; then
4609 NM=$lt_cv_path_NM
8d138742
CE
4610else
4611 # Didn't find any BSD compatible name lister, look for dumpbin.
b0322a85
CE
4612 if test -n "$DUMPBIN"; then :
4613 # Let the user override the test.
4614 else
4615 if test -n "$ac_tool_prefix"; then
4616 for ac_prog in dumpbin "link -dump"
8d138742
CE
4617 do
4618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b0322a85 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4621$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4622if ${ac_cv_prog_DUMPBIN+:} false; then :
8d138742
CE
4623 $as_echo_n "(cached) " >&6
4624else
4625 if test -n "$DUMPBIN"; then
4626 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4627else
4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
b0322a85
CE
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4635 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
b0322a85 4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4637 break 2
4638 fi
4639done
b0322a85 4640 done
8d138742 4641IFS=$as_save_IFS
d9898ee8 4642
8d138742
CE
4643fi
4644fi
4645DUMPBIN=$ac_cv_prog_DUMPBIN
4646if test -n "$DUMPBIN"; then
b0322a85 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8d138742 4648$as_echo "$DUMPBIN" >&6; }
d9898ee8 4649else
b0322a85 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4651$as_echo "no" >&6; }
4652fi
d9898ee8 4653
d9898ee8 4654
8d138742
CE
4655 test -n "$DUMPBIN" && break
4656 done
4657fi
4658if test -z "$DUMPBIN"; then
4659 ac_ct_DUMPBIN=$DUMPBIN
b0322a85 4660 for ac_prog in dumpbin "link -dump"
8d138742
CE
4661do
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663set dummy $ac_prog; ac_word=$2
b0322a85 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 4665$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 4666if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8d138742
CE
4667 $as_echo_n "(cached) " >&6
4668else
4669 if test -n "$ac_ct_DUMPBIN"; then
4670 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4671else
4672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673for as_dir in $PATH
4674do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
b0322a85
CE
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 4679 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
b0322a85 4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
4681 break 2
4682 fi
4683done
b0322a85 4684 done
8d138742 4685IFS=$as_save_IFS
d9898ee8 4686
8d138742
CE
4687fi
4688fi
4689ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4690if test -n "$ac_ct_DUMPBIN"; then
b0322a85 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8d138742
CE
4692$as_echo "$ac_ct_DUMPBIN" >&6; }
4693else
b0322a85 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
4695$as_echo "no" >&6; }
4696fi
d9898ee8 4697
d9898ee8 4698
8d138742
CE
4699 test -n "$ac_ct_DUMPBIN" && break
4700done
4701
4702 if test "x$ac_ct_DUMPBIN" = x; then
4703 DUMPBIN=":"
ac40fd9e 4704 else
8d138742
CE
4705 case $cross_compiling:$ac_tool_warned in
4706yes:)
b0322a85 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
4708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4709ac_tool_warned=yes ;;
4710esac
4711 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 4712 fi
8d138742 4713fi
d9898ee8 4714
d50284c4 4715 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
b0322a85 4716 *COFF*)
d50284c4 4717 DUMPBIN="$DUMPBIN -symbols -headers"
b0322a85
CE
4718 ;;
4719 *)
4720 DUMPBIN=:
4721 ;;
4722 esac
4723 fi
d9898ee8 4724
d50284c4
CE
4725 if test : != "$DUMPBIN"; then
4726 NM=$DUMPBIN
d9898ee8 4727 fi
8d138742
CE
4728fi
4729test -z "$NM" && NM=nm
d9898ee8 4730
d9898ee8 4731
d9898ee8 4732
d9898ee8 4733
d9898ee8 4734
d9898ee8 4735
b0322a85 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8d138742 4737$as_echo_n "checking the name lister ($NM) interface... " >&6; }
b0322a85 4738if ${lt_cv_nm_interface+:} false; then :
8d138742
CE
4739 $as_echo_n "(cached) " >&6
4740else
4741 lt_cv_nm_interface="BSD nm"
4742 echo "int some_variable = 0;" > conftest.$ac_ext
b0322a85 4743 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8d138742
CE
4744 (eval "$ac_compile" 2>conftest.err)
4745 cat conftest.err >&5
b0322a85 4746 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8d138742
CE
4747 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4748 cat conftest.err >&5
b0322a85 4749 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8d138742
CE
4750 cat conftest.out >&5
4751 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4752 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4753 fi
8d138742
CE
4754 rm -f conftest*
4755fi
b0322a85 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8d138742 4757$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4758
8d138742 4759# find the maximum length of command line arguments
b0322a85 4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8d138742 4761$as_echo_n "checking the maximum length of command line arguments... " >&6; }
b0322a85 4762if ${lt_cv_sys_max_cmd_len+:} false; then :
8d138742
CE
4763 $as_echo_n "(cached) " >&6
4764else
4765 i=0
d50284c4 4766 teststring=ABCD
d9898ee8 4767
8d138742
CE
4768 case $build_os in
4769 msdosdjgpp*)
4770 # On DJGPP, this test can blow up pretty badly due to problems in libc
4771 # (any single argument exceeding 2000 bytes causes a buffer overrun
4772 # during glob expansion). Even if it were fixed, the result of this
4773 # check would be larger than it should be.
4774 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4775 ;;
d9898ee8 4776
8d138742
CE
4777 gnu*)
4778 # Under GNU Hurd, this test is not required because there is
4779 # no limit to the length of command line arguments.
4780 # Libtool will interpret -1 as no limit whatsoever
4781 lt_cv_sys_max_cmd_len=-1;
4782 ;;
d9898ee8 4783
8d138742
CE
4784 cygwin* | mingw* | cegcc*)
4785 # On Win9x/ME, this test blows up -- it succeeds, but takes
4786 # about 5 minutes as the teststring grows exponentially.
4787 # Worse, since 9x/ME are not pre-emptively multitasking,
4788 # you end up with a "frozen" computer, even though with patience
4789 # the test eventually succeeds (with a max line length of 256k).
4790 # Instead, let's just punt: use the minimum linelength reported by
4791 # all of the supported platforms: 8192 (on NT/2K/XP).
4792 lt_cv_sys_max_cmd_len=8192;
4793 ;;
ac40fd9e 4794
b0322a85
CE
4795 mint*)
4796 # On MiNT this can take a long time and run out of memory.
4797 lt_cv_sys_max_cmd_len=8192;
4798 ;;
4799
8d138742
CE
4800 amigaos*)
4801 # On AmigaOS with pdksh, this test takes hours, literally.
4802 # So we just punt and use a minimum line length of 8192.
4803 lt_cv_sys_max_cmd_len=8192;
4804 ;;
d9898ee8 4805
d50284c4 4806 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8d138742
CE
4807 # This has been around since 386BSD, at least. Likely further.
4808 if test -x /sbin/sysctl; then
4809 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4810 elif test -x /usr/sbin/sysctl; then
4811 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4812 else
4813 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4814 fi
4815 # And add a safety zone
4816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4818 ;;
8d138742
CE
4819
4820 interix*)
4821 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4822 lt_cv_sys_max_cmd_len=196608
d9898ee8 4823 ;;
8d138742 4824
b0322a85
CE
4825 os2*)
4826 # The test takes a long time on OS/2.
4827 lt_cv_sys_max_cmd_len=8192
4828 ;;
4829
8d138742
CE
4830 osf*)
4831 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4832 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4833 # nice to cause kernel panics so lets avoid the loop below.
4834 # First set a reasonable default.
4835 lt_cv_sys_max_cmd_len=16384
4836 #
4837 if test -x /sbin/sysconfig; then
4838 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4839 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4840 esac
4841 fi
d9898ee8 4842 ;;
8d138742
CE
4843 sco3.2v5*)
4844 lt_cv_sys_max_cmd_len=102400
d9898ee8 4845 ;;
8d138742
CE
4846 sysv5* | sco5v6* | sysv4.2uw2*)
4847 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4848 if test -n "$kargmax"; then
4849 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4850 else
4851 lt_cv_sys_max_cmd_len=32768
4852 fi
d9898ee8 4853 ;;
8d138742
CE
4854 *)
4855 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
d50284c4
CE
4856 if test -n "$lt_cv_sys_max_cmd_len" && \
4857 test undefined != "$lt_cv_sys_max_cmd_len"; then
8d138742
CE
4858 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4860 else
4861 # Make teststring a little bigger before we do anything with it.
4862 # a 1K string should be a reasonable start.
d50284c4 4863 for i in 1 2 3 4 5 6 7 8; do
8d138742
CE
4864 teststring=$teststring$teststring
4865 done
4866 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4867 # If test is not a shell built-in, we'll probably end up computing a
4868 # maximum length that is only half of the actual maximum length, but
4869 # we can't tell.
d50284c4 4870 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
b0322a85 4871 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
d50284c4 4872 test 17 != "$i" # 1/2 MB should be enough
8d138742
CE
4873 do
4874 i=`expr $i + 1`
4875 teststring=$teststring$teststring
4876 done
4877 # Only check the string length outside the loop.
4878 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4879 teststring=
4880 # Add a significant safety factor because C++ compilers can tack on
4881 # massive amounts of additional arguments before passing them to the
4882 # linker. It appears as though 1/2 is a usable value.
4883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4884 fi
d9898ee8 4885 ;;
4886 esac
d9898ee8 4887
4888fi
d9898ee8 4889
d50284c4 4890if test -n "$lt_cv_sys_max_cmd_len"; then
b0322a85 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8d138742
CE
4892$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4893else
b0322a85 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8d138742
CE
4895$as_echo "none" >&6; }
4896fi
4897max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4898
d9898ee8 4899
d9898ee8 4900
d9898ee8 4901
4902
8d138742
CE
4903
4904: ${CP="cp -f"}
4905: ${MV="mv -f"}
4906: ${RM="rm -f"}
4907
8d138742
CE
4908if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4909 lt_unset=unset
4910else
4911 lt_unset=false
dd184caf 4912fi
d9898ee8 4913
d9898ee8 4914
8d138742
CE
4915
4916
4917
4918# test EBCDIC or ASCII
4919case `echo X|tr X '\101'` in
4920 A) # ASCII based system
4921 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4922 lt_SP2NL='tr \040 \012'
4923 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4924 ;;
8d138742
CE
4925 *) # EBCDIC based system
4926 lt_SP2NL='tr \100 \n'
4927 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4928 ;;
8d138742
CE
4929esac
4930
d9898ee8 4931
d9898ee8 4932
d9898ee8 4933
d9898ee8 4934
d9898ee8 4935
d9898ee8 4936
dd184caf 4937
d9898ee8 4938
b0322a85
CE
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4940$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4941if ${lt_cv_to_host_file_cmd+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943else
4944 case $host in
4945 *-*-mingw* )
4946 case $build in
4947 *-*-mingw* ) # actually msys
4948 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4949 ;;
4950 *-*-cygwin* )
4951 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4952 ;;
4953 * ) # otherwise, assume *nix
4954 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4955 ;;
4956 esac
4957 ;;
4958 *-*-cygwin* )
4959 case $build in
4960 *-*-mingw* ) # actually msys
4961 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4962 ;;
4963 *-*-cygwin* )
4964 lt_cv_to_host_file_cmd=func_convert_file_noop
4965 ;;
4966 * ) # otherwise, assume *nix
4967 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4968 ;;
4969 esac
4970 ;;
4971 * ) # unhandled hosts (and "normal" native builds)
4972 lt_cv_to_host_file_cmd=func_convert_file_noop
4973 ;;
4974esac
4975
4976fi
4977
4978to_host_file_cmd=$lt_cv_to_host_file_cmd
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4980$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4981
4982
4983
4984
4985
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4987$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4988if ${lt_cv_to_tool_file_cmd+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990else
4991 #assume ordinary cross tools, or native build.
4992lt_cv_to_tool_file_cmd=func_convert_file_noop
4993case $host in
4994 *-*-mingw* )
4995 case $build in
4996 *-*-mingw* ) # actually msys
4997 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4998 ;;
4999 esac
5000 ;;
5001esac
5002
5003fi
5004
5005to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5007$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5008
5009
5010
5011
5012
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8d138742 5014$as_echo_n "checking for $LD option to reload object files... " >&6; }
b0322a85 5015if ${lt_cv_ld_reload_flag+:} false; then :
8d138742
CE
5016 $as_echo_n "(cached) " >&6
5017else
5018 lt_cv_ld_reload_flag='-r'
d9898ee8 5019fi
b0322a85 5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8d138742
CE
5021$as_echo "$lt_cv_ld_reload_flag" >&6; }
5022reload_flag=$lt_cv_ld_reload_flag
5023case $reload_flag in
5024"" | " "*) ;;
5025*) reload_flag=" $reload_flag" ;;
5026esac
5027reload_cmds='$LD$reload_flag -o $output$reload_objs'
5028case $host_os in
b0322a85 5029 cygwin* | mingw* | pw32* | cegcc*)
d50284c4 5030 if test yes != "$GCC"; then
b0322a85
CE
5031 reload_cmds=false
5032 fi
5033 ;;
8d138742 5034 darwin*)
d50284c4
CE
5035 if test yes = "$GCC"; then
5036 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8d138742
CE
5037 else
5038 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5039 fi
5040 ;;
5041esac
d9898ee8 5042
5043
d9898ee8 5044
d9898ee8 5045
5046
8d138742
CE
5047
5048
5049
5050
5051if test -n "$ac_tool_prefix"; then
5052 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5053set dummy ${ac_tool_prefix}objdump; ac_word=$2
b0322a85 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5055$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5056if ${ac_cv_prog_OBJDUMP+:} false; then :
8d138742 5057 $as_echo_n "(cached) " >&6
d9898ee8 5058else
8d138742
CE
5059 if test -n "$OBJDUMP"; then
5060 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 5061else
8d138742
CE
5062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063for as_dir in $PATH
5064do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
b0322a85
CE
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5069 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
b0322a85 5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5071 break 2
5072 fi
5073done
b0322a85 5074 done
8d138742 5075IFS=$as_save_IFS
d9898ee8 5076
8d138742
CE
5077fi
5078fi
5079OBJDUMP=$ac_cv_prog_OBJDUMP
5080if test -n "$OBJDUMP"; then
b0322a85 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8d138742
CE
5082$as_echo "$OBJDUMP" >&6; }
5083else
b0322a85 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5085$as_echo "no" >&6; }
d9898ee8 5086fi
dd184caf 5087
d9898ee8 5088
d9898ee8 5089fi
8d138742
CE
5090if test -z "$ac_cv_prog_OBJDUMP"; then
5091 ac_ct_OBJDUMP=$OBJDUMP
5092 # Extract the first word of "objdump", so it can be a program name with args.
5093set dummy objdump; ac_word=$2
b0322a85 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5095$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5096if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8d138742
CE
5097 $as_echo_n "(cached) " >&6
5098else
5099 if test -n "$ac_ct_OBJDUMP"; then
5100 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5101else
5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
5104do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
b0322a85
CE
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5109 ac_cv_prog_ac_ct_OBJDUMP="objdump"
b0322a85 5110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5111 break 2
5112 fi
d9898ee8 5113done
b0322a85 5114 done
8d138742 5115IFS=$as_save_IFS
d9898ee8 5116
5117fi
d9898ee8 5118fi
8d138742
CE
5119ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5120if test -n "$ac_ct_OBJDUMP"; then
b0322a85 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8d138742 5122$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 5123else
b0322a85 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5125$as_echo "no" >&6; }
d9898ee8 5126fi
dd184caf 5127
8d138742
CE
5128 if test "x$ac_ct_OBJDUMP" = x; then
5129 OBJDUMP="false"
5130 else
5131 case $cross_compiling:$ac_tool_warned in
5132yes:)
b0322a85 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5135ac_tool_warned=yes ;;
dd184caf 5136esac
8d138742
CE
5137 OBJDUMP=$ac_ct_OBJDUMP
5138 fi
d9898ee8 5139else
8d138742 5140 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 5141fi
dd184caf 5142
8d138742 5143test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 5144
d9898ee8 5145
5146
d9898ee8 5147
d9898ee8 5148
d9898ee8 5149
dd184caf 5150
d9898ee8 5151
d9898ee8 5152
b0322a85 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8d138742 5154$as_echo_n "checking how to recognize dependent libraries... " >&6; }
b0322a85 5155if ${lt_cv_deplibs_check_method+:} false; then :
8d138742 5156 $as_echo_n "(cached) " >&6
d9898ee8 5157else
8d138742
CE
5158 lt_cv_file_magic_cmd='$MAGIC_CMD'
5159lt_cv_file_magic_test_file=
5160lt_cv_deplibs_check_method='unknown'
5161# Need to set the preceding variable on all platforms that support
5162# interlibrary dependencies.
5163# 'none' -- dependencies not supported.
d50284c4 5164# 'unknown' -- same as none, but documents that we really don't know.
8d138742
CE
5165# 'pass_all' -- all dependencies passed with no checks.
5166# 'test_compile' -- check by making test program.
5167# 'file_magic [[regex]]' -- check by looking for files in library path
d50284c4
CE
5168# that responds to the $file_magic_cmd with a given extended regex.
5169# If you have 'file' or equivalent on your system and you're not sure
5170# whether 'pass_all' will *always* work, you probably want this one.
d9898ee8 5171
8d138742
CE
5172case $host_os in
5173aix[4-9]*)
5174 lt_cv_deplibs_check_method=pass_all
5175 ;;
d9898ee8 5176
8d138742
CE
5177beos*)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
d9898ee8 5180
8d138742
CE
5181bsdi[45]*)
5182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5183 lt_cv_file_magic_cmd='/usr/bin/file -L'
5184 lt_cv_file_magic_test_file=/shlib/libc.so
5185 ;;
d9898ee8 5186
8d138742
CE
5187cygwin*)
5188 # func_win32_libid is a shell function defined in ltmain.sh
5189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190 lt_cv_file_magic_cmd='func_win32_libid'
5191 ;;
d9898ee8 5192
8d138742
CE
5193mingw* | pw32*)
5194 # Base MSYS/MinGW do not provide the 'file' command needed by
5195 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5196 # unless we find 'file', for example because we are cross-compiling.
d50284c4 5197 if ( file / ) >/dev/null 2>&1; then
8d138742
CE
5198 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5199 lt_cv_file_magic_cmd='func_win32_libid'
5200 else
b0322a85
CE
5201 # Keep this pattern in sync with the one in func_win32_libid.
5202 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8d138742
CE
5203 lt_cv_file_magic_cmd='$OBJDUMP -f'
5204 fi
5205 ;;
d9898ee8 5206
b0322a85 5207cegcc*)
8d138742
CE
5208 # use the weaker test based on 'objdump'. See mingw*.
5209 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5210 lt_cv_file_magic_cmd='$OBJDUMP -f'
5211 ;;
d9898ee8 5212
8d138742
CE
5213darwin* | rhapsody*)
5214 lt_cv_deplibs_check_method=pass_all
5215 ;;
dd184caf 5216
8d138742
CE
5217freebsd* | dragonfly*)
5218 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5219 case $host_cpu in
5220 i*86 )
5221 # Not sure whether the presence of OpenBSD here was a mistake.
5222 # Let's accept both of them until this is cleared up.
5223 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5224 lt_cv_file_magic_cmd=/usr/bin/file
5225 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5226 ;;
5227 esac
5228 else
5229 lt_cv_deplibs_check_method=pass_all
5230 fi
5231 ;;
dd184caf 5232
b0322a85
CE
5233haiku*)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
5236
8d138742
CE
5237hpux10.20* | hpux11*)
5238 lt_cv_file_magic_cmd=/usr/bin/file
5239 case $host_cpu in
5240 ia64*)
5241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5242 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5243 ;;
5244 hppa*64*)
b0322a85 5245 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
5246 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5247 ;;
5248 *)
b0322a85 5249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8d138742
CE
5250 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5251 ;;
5252 esac
5253 ;;
d9898ee8 5254
8d138742
CE
5255interix[3-9]*)
5256 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5258 ;;
d9898ee8 5259
8d138742
CE
5260irix5* | irix6* | nonstopux*)
5261 case $LD in
5262 *-32|*"-32 ") libmagic=32-bit;;
5263 *-n32|*"-n32 ") libmagic=N32;;
5264 *-64|*"-64 ") libmagic=64-bit;;
5265 *) libmagic=never-match;;
5266 esac
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
d9898ee8 5269
b0322a85 5270# This must be glibc/ELF.
d50284c4 5271linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8d138742
CE
5272 lt_cv_deplibs_check_method=pass_all
5273 ;;
d9898ee8 5274
8d138742
CE
5275netbsd*)
5276 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5278 else
5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5280 fi
5281 ;;
d9898ee8 5282
8d138742
CE
5283newos6*)
5284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5285 lt_cv_file_magic_cmd=/usr/bin/file
5286 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5287 ;;
d9898ee8 5288
8d138742
CE
5289*nto* | *qnx*)
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
d9898ee8 5292
d50284c4
CE
5293openbsd* | bitrig*)
5294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
b0322a85
CE
5295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5296 else
5297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5298 fi
5299 ;;
5300
5301osf3* | osf4* | osf5*)
5302 lt_cv_deplibs_check_method=pass_all
5303 ;;
5304
5305rdos*)
5306 lt_cv_deplibs_check_method=pass_all
5307 ;;
5308
5309solaris*)
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
5312
5313sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5314 lt_cv_deplibs_check_method=pass_all
5315 ;;
5316
5317sysv4 | sysv4.3*)
5318 case $host_vendor in
5319 motorola)
5320 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]'
5321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5322 ;;
5323 ncr)
5324 lt_cv_deplibs_check_method=pass_all
5325 ;;
5326 sequent)
5327 lt_cv_file_magic_cmd='/bin/file'
5328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5329 ;;
5330 sni)
5331 lt_cv_file_magic_cmd='/bin/file'
5332 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5333 lt_cv_file_magic_test_file=/lib/libc.so
5334 ;;
5335 siemens)
5336 lt_cv_deplibs_check_method=pass_all
5337 ;;
5338 pc)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341 esac
5342 ;;
5343
5344tpf*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
d50284c4
CE
5347os2*)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
b0322a85
CE
5350esac
5351
5352fi
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5354$as_echo "$lt_cv_deplibs_check_method" >&6; }
5355
5356file_magic_glob=
5357want_nocaseglob=no
5358if test "$build" = "$host"; then
5359 case $host_os in
5360 mingw* | pw32*)
5361 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5362 want_nocaseglob=yes
5363 else
5364 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5365 fi
5366 ;;
5367 esac
5368fi
5369
5370file_magic_cmd=$lt_cv_file_magic_cmd
5371deplibs_check_method=$lt_cv_deplibs_check_method
5372test -z "$deplibs_check_method" && deplibs_check_method=unknown
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395if test -n "$ac_tool_prefix"; then
5396 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5397set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399$as_echo_n "checking for $ac_word... " >&6; }
5400if ${ac_cv_prog_DLLTOOL+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402else
5403 if test -n "$DLLTOOL"; then
5404 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417done
5418 done
5419IFS=$as_save_IFS
5420
5421fi
5422fi
5423DLLTOOL=$ac_cv_prog_DLLTOOL
5424if test -n "$DLLTOOL"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5426$as_echo "$DLLTOOL" >&6; }
5427else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429$as_echo "no" >&6; }
5430fi
5431
5432
5433fi
5434if test -z "$ac_cv_prog_DLLTOOL"; then
5435 ac_ct_DLLTOOL=$DLLTOOL
5436 # Extract the first word of "dlltool", so it can be a program name with args.
5437set dummy dlltool; ac_word=$2
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439$as_echo_n "checking for $ac_word... " >&6; }
5440if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442else
5443 if test -n "$ac_ct_DLLTOOL"; then
5444 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5445else
5446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447for as_dir in $PATH
5448do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457done
5458 done
5459IFS=$as_save_IFS
5460
5461fi
5462fi
5463ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5464if test -n "$ac_ct_DLLTOOL"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5466$as_echo "$ac_ct_DLLTOOL" >&6; }
5467else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469$as_echo "no" >&6; }
5470fi
5471
5472 if test "x$ac_ct_DLLTOOL" = x; then
5473 DLLTOOL="false"
8d138742 5474 else
b0322a85
CE
5475 case $cross_compiling:$ac_tool_warned in
5476yes:)
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479ac_tool_warned=yes ;;
5480esac
5481 DLLTOOL=$ac_ct_DLLTOOL
8d138742 5482 fi
b0322a85
CE
5483else
5484 DLLTOOL="$ac_cv_prog_DLLTOOL"
5485fi
d9898ee8 5486
b0322a85 5487test -z "$DLLTOOL" && DLLTOOL=dlltool
d9898ee8 5488
5489
5490
d9898ee8 5491
b0322a85
CE
5492
5493
5494
5495
5496
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5499$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5500if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502else
5503 lt_cv_sharedlib_from_linklib_cmd='unknown'
5504
5505case $host_os in
5506cygwin* | mingw* | pw32* | cegcc*)
d50284c4
CE
5507 # two different shell functions defined in ltmain.sh;
5508 # decide which one to use based on capabilities of $DLLTOOL
b0322a85
CE
5509 case `$DLLTOOL --help 2>&1` in
5510 *--identify-strict*)
5511 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8d138742 5512 ;;
b0322a85
CE
5513 *)
5514 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8d138742
CE
5515 ;;
5516 esac
5517 ;;
b0322a85
CE
5518*)
5519 # fallback: assume linklib IS sharedlib
d50284c4 5520 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8d138742 5521 ;;
dd184caf 5522esac
d9898ee8 5523
d9898ee8 5524fi
b0322a85
CE
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5526$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5527sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5528test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
d9898ee8 5529
5530
8d138742
CE
5531
5532
5533
5534
5535
5536
5537if test -n "$ac_tool_prefix"; then
b0322a85
CE
5538 for ac_prog in ar
5539 do
5540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5541set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5543$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5544if ${ac_cv_prog_AR+:} false; then :
8d138742 5545 $as_echo_n "(cached) " >&6
d9898ee8 5546else
8d138742
CE
5547 if test -n "$AR"; then
5548 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 5549else
8d138742
CE
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
b0322a85
CE
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5559 break 2
5560 fi
5561done
b0322a85 5562 done
8d138742 5563IFS=$as_save_IFS
d9898ee8 5564
8d138742
CE
5565fi
5566fi
5567AR=$ac_cv_prog_AR
5568if test -n "$AR"; then
b0322a85 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8d138742
CE
5570$as_echo "$AR" >&6; }
5571else
b0322a85 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5573$as_echo "no" >&6; }
d9898ee8 5574fi
dd184caf 5575
d9898ee8 5576
b0322a85
CE
5577 test -n "$AR" && break
5578 done
8d138742 5579fi
b0322a85 5580if test -z "$AR"; then
8d138742 5581 ac_ct_AR=$AR
b0322a85
CE
5582 for ac_prog in ar
5583do
5584 # Extract the first word of "$ac_prog", so it can be a program name with args.
5585set dummy $ac_prog; ac_word=$2
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5587$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5588if ${ac_cv_prog_ac_ct_AR+:} false; then :
8d138742 5589 $as_echo_n "(cached) " >&6
d9898ee8 5590else
8d138742
CE
5591 if test -n "$ac_ct_AR"; then
5592 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5593else
5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595for as_dir in $PATH
5596do
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
b0322a85
CE
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_ac_ct_AR="$ac_prog"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5603 break 2
5604 fi
5605done
b0322a85 5606 done
8d138742 5607IFS=$as_save_IFS
d9898ee8 5608
8d138742
CE
5609fi
5610fi
5611ac_ct_AR=$ac_cv_prog_ac_ct_AR
5612if test -n "$ac_ct_AR"; then
b0322a85 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8d138742
CE
5614$as_echo "$ac_ct_AR" >&6; }
5615else
b0322a85 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5617$as_echo "no" >&6; }
d9898ee8 5618fi
dd184caf 5619
b0322a85
CE
5620
5621 test -n "$ac_ct_AR" && break
5622done
5623
8d138742
CE
5624 if test "x$ac_ct_AR" = x; then
5625 AR="false"
5626 else
5627 case $cross_compiling:$ac_tool_warned in
5628yes:)
b0322a85 5629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5631ac_tool_warned=yes ;;
d9898ee8 5632esac
8d138742
CE
5633 AR=$ac_ct_AR
5634 fi
d9898ee8 5635fi
d9898ee8 5636
b0322a85
CE
5637: ${AR=ar}
5638: ${AR_FLAGS=cru}
5639
5640
5641
5642
5643
5644
5645
d9898ee8 5646
d9898ee8 5647
d9898ee8 5648
8d138742 5649
b0322a85
CE
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5651$as_echo_n "checking for archiver @FILE support... " >&6; }
5652if ${lt_cv_ar_at_file+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654else
5655 lt_cv_ar_at_file=no
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657/* end confdefs.h. */
5658
5659int
5660main ()
5661{
5662
5663 ;
5664 return 0;
5665}
5666_ACEOF
5667if ac_fn_c_try_compile "$LINENO"; then :
5668 echo conftest.$ac_objext > conftest.lst
5669 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5671 (eval $lt_ar_try) 2>&5
5672 ac_status=$?
5673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674 test $ac_status = 0; }
d50284c4 5675 if test 0 -eq "$ac_status"; then
b0322a85
CE
5676 # Ensure the archiver fails upon bogus file names.
5677 rm -f conftest.$ac_objext libconftest.a
5678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5679 (eval $lt_ar_try) 2>&5
5680 ac_status=$?
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; }
d50284c4 5683 if test 0 -ne "$ac_status"; then
b0322a85
CE
5684 lt_cv_ar_at_file=@
5685 fi
5686 fi
5687 rm -f conftest.* libconftest.a
5688
5689fi
5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5694$as_echo "$lt_cv_ar_at_file" >&6; }
5695
d50284c4 5696if test no = "$lt_cv_ar_at_file"; then
b0322a85
CE
5697 archiver_list_spec=
5698else
5699 archiver_list_spec=$lt_cv_ar_at_file
5700fi
8d138742
CE
5701
5702
5703
5704
5705
5706
5707
5708if test -n "$ac_tool_prefix"; then
5709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5710set dummy ${ac_tool_prefix}strip; ac_word=$2
b0322a85 5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5712$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5713if ${ac_cv_prog_STRIP+:} false; then :
8d138742 5714 $as_echo_n "(cached) " >&6
d9898ee8 5715else
8d138742
CE
5716 if test -n "$STRIP"; then
5717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
b0322a85
CE
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5726 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
b0322a85 5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5728 break 2
5729 fi
5730done
b0322a85 5731 done
dd184caf 5732IFS=$as_save_IFS
d9898ee8 5733
5734fi
5735fi
8d138742
CE
5736STRIP=$ac_cv_prog_STRIP
5737if test -n "$STRIP"; then
b0322a85 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8d138742 5739$as_echo "$STRIP" >&6; }
d9898ee8 5740else
b0322a85 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5742$as_echo "no" >&6; }
d9898ee8 5743fi
5744
dd184caf 5745
d9898ee8 5746fi
8d138742
CE
5747if test -z "$ac_cv_prog_STRIP"; then
5748 ac_ct_STRIP=$STRIP
5749 # Extract the first word of "strip", so it can be a program name with args.
5750set dummy strip; ac_word=$2
b0322a85 5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5752$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5753if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8d138742 5754 $as_echo_n "(cached) " >&6
d9898ee8 5755else
8d138742
CE
5756 if test -n "$ac_ct_STRIP"; then
5757 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9898ee8 5758else
5759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760for as_dir in $PATH
5761do
5762 IFS=$as_save_IFS
5763 test -z "$as_dir" && as_dir=.
b0322a85
CE
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5766 ac_cv_prog_ac_ct_STRIP="strip"
b0322a85 5767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5768 break 2
5769 fi
5770done
b0322a85 5771 done
dd184caf 5772IFS=$as_save_IFS
d9898ee8 5773
5774fi
5775fi
8d138742
CE
5776ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5777if test -n "$ac_ct_STRIP"; then
b0322a85 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8d138742 5779$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5780else
b0322a85 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5782$as_echo "no" >&6; }
d9898ee8 5783fi
5784
8d138742
CE
5785 if test "x$ac_ct_STRIP" = x; then
5786 STRIP=":"
dd184caf 5787 else
5788 case $cross_compiling:$ac_tool_warned in
5789yes:)
b0322a85 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 5791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5792ac_tool_warned=yes ;;
5793esac
8d138742 5794 STRIP=$ac_ct_STRIP
dd184caf 5795 fi
8d138742
CE
5796else
5797 STRIP="$ac_cv_prog_STRIP"
dd184caf 5798fi
d9898ee8 5799
8d138742 5800test -z "$STRIP" && STRIP=:
d9898ee8 5801
d9898ee8 5802
d9898ee8 5803
dd184caf 5804
d9898ee8 5805
d9898ee8 5806
8d138742
CE
5807if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5809set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b0322a85 5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5811$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5812if ${ac_cv_prog_RANLIB+:} false; then :
8d138742 5813 $as_echo_n "(cached) " >&6
d9898ee8 5814else
8d138742
CE
5815 if test -n "$RANLIB"; then
5816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d9898ee8 5817else
8d138742
CE
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
b0322a85
CE
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5825 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
b0322a85 5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5827 break 2
5828 fi
5829done
b0322a85 5830 done
8d138742 5831IFS=$as_save_IFS
dd184caf 5832
8d138742
CE
5833fi
5834fi
5835RANLIB=$ac_cv_prog_RANLIB
5836if test -n "$RANLIB"; then
b0322a85 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8d138742 5838$as_echo "$RANLIB" >&6; }
d9898ee8 5839else
b0322a85 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
5841$as_echo "no" >&6; }
5842fi
d9898ee8 5843
dd184caf 5844
d9898ee8 5845fi
8d138742
CE
5846if test -z "$ac_cv_prog_RANLIB"; then
5847 ac_ct_RANLIB=$RANLIB
5848 # Extract the first word of "ranlib", so it can be a program name with args.
5849set dummy ranlib; ac_word=$2
b0322a85 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 5851$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 5852if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8d138742
CE
5853 $as_echo_n "(cached) " >&6
5854else
5855 if test -n "$ac_ct_RANLIB"; then
5856 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
b0322a85
CE
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 5865 ac_cv_prog_ac_ct_RANLIB="ranlib"
b0322a85 5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
5867 break 2
5868 fi
5869done
b0322a85 5870 done
8d138742 5871IFS=$as_save_IFS
dd184caf 5872
d9898ee8 5873fi
8d138742
CE
5874fi
5875ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5876if test -n "$ac_ct_RANLIB"; then
b0322a85 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8d138742
CE
5878$as_echo "$ac_ct_RANLIB" >&6; }
5879else
b0322a85 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 5881$as_echo "no" >&6; }
dd184caf 5882fi
5883
8d138742
CE
5884 if test "x$ac_ct_RANLIB" = x; then
5885 RANLIB=":"
dd184caf 5886 else
8d138742
CE
5887 case $cross_compiling:$ac_tool_warned in
5888yes:)
b0322a85 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
5890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891ac_tool_warned=yes ;;
5892esac
5893 RANLIB=$ac_ct_RANLIB
dd184caf 5894 fi
5895else
8d138742 5896 RANLIB="$ac_cv_prog_RANLIB"
dd184caf 5897fi
d9898ee8 5898
8d138742 5899test -z "$RANLIB" && RANLIB=:
d9898ee8 5900
d9898ee8 5901
d9898ee8 5902
d9898ee8 5903
d9898ee8 5904
d9898ee8 5905
8d138742
CE
5906# Determine commands to create old-style static archives.
5907old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5908old_postinstall_cmds='chmod 644 $oldlib'
5909old_postuninstall_cmds=
5910
5911if test -n "$RANLIB"; then
5912 case $host_os in
d50284c4 5913 bitrig* | openbsd*)
b0322a85 5914 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8d138742
CE
5915 ;;
5916 *)
b0322a85 5917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8d138742
CE
5918 ;;
5919 esac
b0322a85 5920 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
d9898ee8 5921fi
5922
b0322a85
CE
5923case $host_os in
5924 darwin*)
5925 lock_old_archive_extraction=yes ;;
5926 *)
5927 lock_old_archive_extraction=no ;;
5928esac
5929
5930
5931
5932
5933
5934
d9898ee8 5935
5936
5937
dd184caf 5938
d9898ee8 5939
d9898ee8 5940
dd184caf 5941
d9898ee8 5942
d9898ee8 5943
d9898ee8 5944
d9898ee8 5945
dd184caf 5946
d9898ee8 5947
d9898ee8 5948
dd184caf 5949
d9898ee8 5950
d9898ee8 5951
d9898ee8 5952
d9898ee8 5953
5954
d9898ee8 5955
d9898ee8 5956
dd184caf 5957
d9898ee8 5958
d9898ee8 5959
dd184caf 5960
d9898ee8 5961
d9898ee8 5962
5963
d9898ee8 5964
d9898ee8 5965
d9898ee8 5966
d9898ee8 5967
8d138742
CE
5968# If no C compiler was specified, use CC.
5969LTCC=${LTCC-"$CC"}
d9898ee8 5970
8d138742
CE
5971# If no C compiler flags were specified, use CFLAGS.
5972LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5973
8d138742
CE
5974# Allow CC to be a program name with arguments.
5975compiler=$CC
d9898ee8 5976
ac40fd9e 5977
d9898ee8 5978# Check for command to grab the raw symbol name followed by C symbol from nm.
b0322a85 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8d138742 5980$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
b0322a85 5981if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8d138742 5982 $as_echo_n "(cached) " >&6
d9898ee8 5983else
5984
5985# These are sane defaults that work on at least a few old systems.
5986# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5987
5988# Character class describing NM global symbol codes.
5989symcode='[BCDEGRST]'
5990
5991# Regexp to match symbols that can be accessed directly from C.
5992sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5993
d9898ee8 5994# Define system-specific variables.
5995case $host_os in
5996aix*)
5997 symcode='[BCDT]'
5998 ;;
8d138742 5999cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 6000 symcode='[ABCDGISTW]'
6001 ;;
8d138742 6002hpux*)
d50284c4 6003 if test ia64 = "$host_cpu"; then
d9898ee8 6004 symcode='[ABCDEGRST]'
6005 fi
d9898ee8 6006 ;;
6007irix* | nonstopux*)
6008 symcode='[BCDEGRST]'
6009 ;;
6010osf*)
6011 symcode='[BCDEGQRST]'
6012 ;;
6013solaris*)
6014 symcode='[BDRT]'
6015 ;;
6016sco3.2v5*)
6017 symcode='[DT]'
6018 ;;
6019sysv4.2uw2*)
6020 symcode='[DT]'
6021 ;;
6022sysv5* | sco5v6* | unixware* | OpenUNIX*)
6023 symcode='[ABDT]'
6024 ;;
6025sysv4)
6026 symcode='[DFNSTU]'
6027 ;;
6028esac
6029
8d138742
CE
6030# If we're using GNU nm, then use its standard symbol codes.
6031case `$NM -V 2>&1` in
6032*GNU* | *'with BFD'*)
6033 symcode='[ABCDGIRSTW]' ;;
6034esac
6035
d50284c4
CE
6036if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6037 # Gets list of data symbols to import.
6038 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6039 # Adjust the below global symbol transforms to fixup imported variables.
6040 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6041 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6042 lt_c_name_lib_hook="\
6043 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6044 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6045else
6046 # Disable hooks by default.
6047 lt_cv_sys_global_symbol_to_import=
6048 lt_cdecl_hook=
6049 lt_c_name_hook=
6050 lt_c_name_lib_hook=
6051fi
6052
8d138742
CE
6053# Transform an extracted symbol line into a proper C declaration.
6054# Some systems (esp. on ia64) link data and code symbols differently,
6055# so use this general approach.
d50284c4
CE
6056lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6057$lt_cdecl_hook\
6058" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6059" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8d138742
CE
6060
6061# Transform an extracted symbol line into symbol name and symbol address
d50284c4
CE
6062lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6063$lt_c_name_hook\
6064" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6065" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6066
6067# Transform an extracted symbol line into symbol name with lib prefix and
6068# symbol address.
6069lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6070$lt_c_name_lib_hook\
6071" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6072" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6073" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8d138742 6074
d9898ee8 6075# Handle CRLF in mingw tool chain
6076opt_cr=
6077case $build_os in
6078mingw*)
8d138742 6079 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d9898ee8 6080 ;;
6081esac
6082
8d138742 6083# Try without a prefix underscore, then with it.
d9898ee8 6084for ac_symprfx in "" "_"; do
6085
6086 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6087 symxfrm="\\1 $ac_symprfx\\2 \\2"
6088
6089 # Write the raw and C identifiers.
8d138742 6090 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
d50284c4
CE
6091 # Fake it for dumpbin and say T for any non-static function,
6092 # D for any global variable and I for any imported variable.
8d138742
CE
6093 # Also find C++ and __fastcall symbols from MSVC++,
6094 # which start with @ or ?.
6095 lt_cv_sys_global_symbol_pipe="$AWK '"\
6096" {last_section=section; section=\$ 3};"\
b0322a85 6097" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8d138742 6098" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
d50284c4
CE
6099" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6100" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6101" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8d138742
CE
6102" \$ 0!~/External *\|/{next};"\
6103" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6104" {if(hide[section]) next};"\
d50284c4
CE
6105" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6106" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6107" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6108" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8d138742
CE
6109" ' prfx=^$ac_symprfx"
6110 else
6111 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6112 fi
b0322a85 6113 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
d9898ee8 6114
6115 # Check to see that the pipe works correctly.
6116 pipe_works=no
6117
6118 rm -f conftest*
8d138742 6119 cat > conftest.$ac_ext <<_LT_EOF
d9898ee8 6120#ifdef __cplusplus
6121extern "C" {
6122#endif
6123char nm_test_var;
8d138742
CE
6124void nm_test_func(void);
6125void nm_test_func(void){}
d9898ee8 6126#ifdef __cplusplus
6127}
6128#endif
6129int main(){nm_test_var='a';nm_test_func();return(0);}
8d138742 6130_LT_EOF
d9898ee8 6131
b0322a85 6132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d9898ee8 6133 (eval $ac_compile) 2>&5
6134 ac_status=$?
b0322a85
CE
6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6136 test $ac_status = 0; }; then
d9898ee8 6137 # Now try to grab the symbols.
6138 nlist=conftest.nm
b0322a85
CE
6139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6140 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
d9898ee8 6141 ac_status=$?
b0322a85
CE
6142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6143 test $ac_status = 0; } && test -s "$nlist"; then
d9898ee8 6144 # Try sorting and uniquifying the output.
6145 if sort "$nlist" | uniq > "$nlist"T; then
6146 mv -f "$nlist"T "$nlist"
6147 else
6148 rm -f "$nlist"T
6149 fi
6150
6151 # Make sure that we snagged all the symbols we need.
8d138742
CE
6152 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6153 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6154 cat <<_LT_EOF > conftest.$ac_ext
b0322a85 6155/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
d50284c4
CE
6156#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6157/* DATA imports from DLLs on WIN32 can't be const, because runtime
b0322a85
CE
6158 relocations are performed -- see ld's documentation on pseudo-relocs. */
6159# define LT_DLSYM_CONST
d50284c4 6160#elif defined __osf__
b0322a85
CE
6161/* This system does not cope well with relocations in const data. */
6162# define LT_DLSYM_CONST
6163#else
6164# define LT_DLSYM_CONST const
6165#endif
6166
d9898ee8 6167#ifdef __cplusplus
6168extern "C" {
6169#endif
6170
8d138742 6171_LT_EOF
d9898ee8 6172 # Now generate the symbol file.
8d138742 6173 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 6174
8d138742 6175 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 6176
8d138742 6177/* The mapping between symbol names and symbols. */
b0322a85 6178LT_DLSYM_CONST struct {
d9898ee8 6179 const char *name;
8d138742 6180 void *address;
d9898ee8 6181}
8d138742 6182lt__PROGRAM__LTX_preloaded_symbols[] =
d9898ee8 6183{
8d138742
CE
6184 { "@PROGRAM@", (void *) 0 },
6185_LT_EOF
d50284c4 6186 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8d138742
CE
6187 cat <<\_LT_EOF >> conftest.$ac_ext
6188 {0, (void *) 0}
d9898ee8 6189};
6190
8d138742
CE
6191/* This works around a problem in FreeBSD linker */
6192#ifdef FREEBSD_WORKAROUND
6193static const void *lt_preloaded_setup() {
6194 return lt__PROGRAM__LTX_preloaded_symbols;
6195}
6196#endif
6197
d9898ee8 6198#ifdef __cplusplus
6199}
6200#endif
8d138742 6201_LT_EOF
d9898ee8 6202 # Now try linking the two files.
6203 mv conftest.$ac_objext conftstm.$ac_objext
b0322a85
CE
6204 lt_globsym_save_LIBS=$LIBS
6205 lt_globsym_save_CFLAGS=$CFLAGS
d50284c4 6206 LIBS=conftstm.$ac_objext
d9898ee8 6207 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
b0322a85 6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d9898ee8 6209 (eval $ac_link) 2>&5
6210 ac_status=$?
b0322a85 6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 6212 test $ac_status = 0; } && test -s conftest$ac_exeext; then
d9898ee8 6213 pipe_works=yes
6214 fi
b0322a85
CE
6215 LIBS=$lt_globsym_save_LIBS
6216 CFLAGS=$lt_globsym_save_CFLAGS
d9898ee8 6217 else
6218 echo "cannot find nm_test_func in $nlist" >&5
6219 fi
6220 else
6221 echo "cannot find nm_test_var in $nlist" >&5
6222 fi
6223 else
6224 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6225 fi
6226 else
6227 echo "$progname: failed program was:" >&5
6228 cat conftest.$ac_ext >&5
6229 fi
8d138742 6230 rm -rf conftest* conftst*
d9898ee8 6231
6232 # Do not use the global_symbol_pipe unless it works.
d50284c4 6233 if test yes = "$pipe_works"; then
d9898ee8 6234 break
6235 else
6236 lt_cv_sys_global_symbol_pipe=
6237 fi
6238done
6239
6240fi
6241
6242if test -z "$lt_cv_sys_global_symbol_pipe"; then
6243 lt_cv_sys_global_symbol_to_cdecl=
6244fi
6245if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
b0322a85 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8d138742 6247$as_echo "failed" >&6; }
d9898ee8 6248else
b0322a85 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8d138742 6250$as_echo "ok" >&6; }
d9898ee8 6251fi
6252
b0322a85
CE
6253# Response file support.
6254if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6255 nm_file_list_spec='@'
6256elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6257 nm_file_list_spec='@'
6258fi
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
d9898ee8 6273
6274
d50284c4
CE
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
d9898ee8 6285
6286
6287
d9898ee8 6288
d9898ee8 6289
d9898ee8 6290
d9898ee8 6291
d9898ee8 6292
d9898ee8 6293
d9898ee8 6294
d9898ee8 6295
b0322a85
CE
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6297$as_echo_n "checking for sysroot... " >&6; }
d9898ee8 6298
b0322a85
CE
6299# Check whether --with-sysroot was given.
6300if test "${with_sysroot+set}" = set; then :
6301 withval=$with_sysroot;
6302else
6303 with_sysroot=no
6304fi
d9898ee8 6305
dd184caf 6306
b0322a85 6307lt_sysroot=
d50284c4 6308case $with_sysroot in #(
b0322a85 6309 yes)
d50284c4 6310 if test yes = "$GCC"; then
b0322a85
CE
6311 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6312 fi
6313 ;; #(
6314 /*)
6315 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6316 ;; #(
6317 no|'')
6318 ;; #(
6319 *)
d50284c4
CE
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6321$as_echo "$with_sysroot" >&6; }
b0322a85
CE
6322 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6323 ;;
6324esac
8d138742 6325
b0322a85
CE
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6327$as_echo "${lt_sysroot:-no}" >&6; }
8d138742
CE
6328
6329
6330
6331
6332
d50284c4
CE
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6334$as_echo_n "checking for a working dd... " >&6; }
6335if ${ac_cv_path_lt_DD+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337else
6338 printf 0123456789abcdef0123456789abcdef >conftest.i
6339cat conftest.i conftest.i >conftest2.i
6340: ${lt_DD:=$DD}
6341if test -z "$lt_DD"; then
6342 ac_path_lt_DD_found=false
6343 # Loop through the user's path and test for each of PROGNAME-LIST
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_prog in dd; do
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6352 as_fn_executable_p "$ac_path_lt_DD" || continue
6353if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6354 cmp -s conftest.i conftest.out \
6355 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6356fi
6357 $ac_path_lt_DD_found && break 3
6358 done
6359 done
6360 done
6361IFS=$as_save_IFS
6362 if test -z "$ac_cv_path_lt_DD"; then
6363 :
6364 fi
6365else
6366 ac_cv_path_lt_DD=$lt_DD
6367fi
6368
6369rm -f conftest.i conftest2.i conftest.out
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6372$as_echo "$ac_cv_path_lt_DD" >&6; }
6373
6374
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6376$as_echo_n "checking how to truncate binary pipes... " >&6; }
6377if ${lt_cv_truncate_bin+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379else
6380 printf 0123456789abcdef0123456789abcdef >conftest.i
6381cat conftest.i conftest.i >conftest2.i
6382lt_cv_truncate_bin=
6383if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6384 cmp -s conftest.i conftest.out \
6385 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6386fi
6387rm -f conftest.i conftest2.i conftest.out
6388test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6389fi
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6391$as_echo "$lt_cv_truncate_bin" >&6; }
6392
6393
6394
6395
6396
6397
6398
6399# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6400func_cc_basename ()
6401{
6402 for cc_temp in $*""; do
6403 case $cc_temp in
6404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6406 \-*) ;;
6407 *) break;;
6408 esac
6409 done
6410 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6411}
6412
8d138742 6413# Check whether --enable-libtool-lock was given.
b0322a85 6414if test "${enable_libtool_lock+set}" = set; then :
8d138742 6415 enableval=$enable_libtool_lock;
d9898ee8 6416fi
8d138742 6417
d50284c4 6418test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8d138742
CE
6419
6420# Some flags need to be propagated to the compiler or linker for good
6421# libtool support.
6422case $host in
6423ia64-*-hpux*)
d50284c4
CE
6424 # Find out what ABI is being produced by ac_compile, and set mode
6425 # options accordingly.
8d138742 6426 echo 'int i;' > conftest.$ac_ext
b0322a85 6427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6428 (eval $ac_compile) 2>&5
6429 ac_status=$?
b0322a85
CE
6430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6431 test $ac_status = 0; }; then
8d138742
CE
6432 case `/usr/bin/file conftest.$ac_objext` in
6433 *ELF-32*)
d50284c4 6434 HPUX_IA64_MODE=32
8d138742
CE
6435 ;;
6436 *ELF-64*)
d50284c4 6437 HPUX_IA64_MODE=64
8d138742
CE
6438 ;;
6439 esac
6440 fi
6441 rm -rf conftest*
6442 ;;
6443*-*-irix6*)
d50284c4
CE
6444 # Find out what ABI is being produced by ac_compile, and set linker
6445 # options accordingly.
b0322a85
CE
6446 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6448 (eval $ac_compile) 2>&5
6449 ac_status=$?
b0322a85
CE
6450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6451 test $ac_status = 0; }; then
d50284c4 6452 if test yes = "$lt_cv_prog_gnu_ld"; then
8d138742
CE
6453 case `/usr/bin/file conftest.$ac_objext` in
6454 *32-bit*)
6455 LD="${LD-ld} -melf32bsmip"
6456 ;;
6457 *N32*)
6458 LD="${LD-ld} -melf32bmipn32"
6459 ;;
6460 *64-bit*)
6461 LD="${LD-ld} -melf64bmip"
6462 ;;
6463 esac
6464 else
6465 case `/usr/bin/file conftest.$ac_objext` in
6466 *32-bit*)
6467 LD="${LD-ld} -32"
6468 ;;
6469 *N32*)
6470 LD="${LD-ld} -n32"
6471 ;;
6472 *64-bit*)
6473 LD="${LD-ld} -64"
6474 ;;
6475 esac
6476 fi
6477 fi
6478 rm -rf conftest*
6479 ;;
6480
d50284c4
CE
6481mips64*-*linux*)
6482 # Find out what ABI is being produced by ac_compile, and set linker
6483 # options accordingly.
6484 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6486 (eval $ac_compile) 2>&5
6487 ac_status=$?
6488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6489 test $ac_status = 0; }; then
6490 emul=elf
6491 case `/usr/bin/file conftest.$ac_objext` in
6492 *32-bit*)
6493 emul="${emul}32"
6494 ;;
6495 *64-bit*)
6496 emul="${emul}64"
6497 ;;
6498 esac
6499 case `/usr/bin/file conftest.$ac_objext` in
6500 *MSB*)
6501 emul="${emul}btsmip"
6502 ;;
6503 *LSB*)
6504 emul="${emul}ltsmip"
6505 ;;
6506 esac
6507 case `/usr/bin/file conftest.$ac_objext` in
6508 *N32*)
6509 emul="${emul}n32"
6510 ;;
6511 esac
6512 LD="${LD-ld} -m $emul"
6513 fi
6514 rm -rf conftest*
6515 ;;
6516
6517x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8d138742 6518s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
d50284c4
CE
6519 # Find out what ABI is being produced by ac_compile, and set linker
6520 # options accordingly. Note that the listed cases only cover the
6521 # situations where additional linker options are needed (such as when
6522 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6523 # vice versa); the common cases where no linker options are needed do
6524 # not appear in the list.
8d138742 6525 echo 'int i;' > conftest.$ac_ext
b0322a85 6526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
6527 (eval $ac_compile) 2>&5
6528 ac_status=$?
b0322a85
CE
6529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530 test $ac_status = 0; }; then
8d138742
CE
6531 case `/usr/bin/file conftest.o` in
6532 *32-bit*)
6533 case $host in
6534 x86_64-*kfreebsd*-gnu)
6535 LD="${LD-ld} -m elf_i386_fbsd"
6536 ;;
6537 x86_64-*linux*)
d50284c4
CE
6538 case `/usr/bin/file conftest.o` in
6539 *x86-64*)
6540 LD="${LD-ld} -m elf32_x86_64"
6541 ;;
6542 *)
6543 LD="${LD-ld} -m elf_i386"
6544 ;;
6545 esac
8d138742 6546 ;;
d50284c4
CE
6547 powerpc64le-*linux*)
6548 LD="${LD-ld} -m elf32lppclinux"
6549 ;;
6550 powerpc64-*linux*)
8d138742
CE
6551 LD="${LD-ld} -m elf32ppclinux"
6552 ;;
6553 s390x-*linux*)
6554 LD="${LD-ld} -m elf_s390"
6555 ;;
6556 sparc64-*linux*)
6557 LD="${LD-ld} -m elf32_sparc"
6558 ;;
6559 esac
6560 ;;
6561 *64-bit*)
6562 case $host in
6563 x86_64-*kfreebsd*-gnu)
6564 LD="${LD-ld} -m elf_x86_64_fbsd"
6565 ;;
6566 x86_64-*linux*)
6567 LD="${LD-ld} -m elf_x86_64"
6568 ;;
d50284c4
CE
6569 powerpcle-*linux*)
6570 LD="${LD-ld} -m elf64lppc"
6571 ;;
6572 powerpc-*linux*)
8d138742
CE
6573 LD="${LD-ld} -m elf64ppc"
6574 ;;
6575 s390*-*linux*|s390*-*tpf*)
6576 LD="${LD-ld} -m elf64_s390"
6577 ;;
6578 sparc*-*linux*)
6579 LD="${LD-ld} -m elf64_sparc"
6580 ;;
6581 esac
6582 ;;
6583 esac
6584 fi
6585 rm -rf conftest*
6586 ;;
6587
6588*-*-sco3.2v5*)
6589 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
d50284c4 6590 SAVE_CFLAGS=$CFLAGS
8d138742 6591 CFLAGS="$CFLAGS -belf"
b0322a85 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8d138742 6593$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
b0322a85 6594if ${lt_cv_cc_needs_belf+:} false; then :
8d138742 6595 $as_echo_n "(cached) " >&6
d9898ee8 6596else
8d138742
CE
6597 ac_ext=c
6598ac_cpp='$CPP $CPPFLAGS'
6599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601ac_compiler_gnu=$ac_cv_c_compiler_gnu
6602
b0322a85 6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
6604/* end confdefs.h. */
6605
6606int
6607main ()
6608{
6609
b0322a85
CE
6610 ;
6611 return 0;
6612}
6613_ACEOF
6614if ac_fn_c_try_link "$LINENO"; then :
6615 lt_cv_cc_needs_belf=yes
6616else
6617 lt_cv_cc_needs_belf=no
6618fi
6619rm -f core conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext conftest.$ac_ext
6621 ac_ext=c
6622ac_cpp='$CPP $CPPFLAGS'
6623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6629$as_echo "$lt_cv_cc_needs_belf" >&6; }
d50284c4 6630 if test yes != "$lt_cv_cc_needs_belf"; then
b0322a85 6631 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
d50284c4 6632 CFLAGS=$SAVE_CFLAGS
b0322a85
CE
6633 fi
6634 ;;
6635*-*solaris*)
d50284c4
CE
6636 # Find out what ABI is being produced by ac_compile, and set linker
6637 # options accordingly.
b0322a85
CE
6638 echo 'int i;' > conftest.$ac_ext
6639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6640 (eval $ac_compile) 2>&5
6641 ac_status=$?
6642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643 test $ac_status = 0; }; then
6644 case `/usr/bin/file conftest.o` in
6645 *64-bit*)
6646 case $lt_cv_prog_gnu_ld in
6647 yes*)
6648 case $host in
d50284c4 6649 i?86-*-solaris*|x86_64-*-solaris*)
b0322a85
CE
6650 LD="${LD-ld} -m elf_x86_64"
6651 ;;
6652 sparc*-*-solaris*)
6653 LD="${LD-ld} -m elf64_sparc"
6654 ;;
6655 esac
6656 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6657 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
d50284c4 6658 LD=${LD-ld}_sol2
b0322a85
CE
6659 fi
6660 ;;
6661 *)
6662 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6663 LD="${LD-ld} -64"
6664 fi
6665 ;;
6666 esac
6667 ;;
6668 esac
6669 fi
6670 rm -rf conftest*
6671 ;;
6672esac
6673
d50284c4 6674need_locks=$enable_libtool_lock
b0322a85
CE
6675
6676if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6678set dummy ${ac_tool_prefix}mt; ac_word=$2
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680$as_echo_n "checking for $ac_word... " >&6; }
6681if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683else
6684 if test -n "$MANIFEST_TOOL"; then
6685 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6686else
6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688for as_dir in $PATH
6689do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698done
6699 done
6700IFS=$as_save_IFS
6701
6702fi
6703fi
6704MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6705if test -n "$MANIFEST_TOOL"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6707$as_echo "$MANIFEST_TOOL" >&6; }
6708else
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710$as_echo "no" >&6; }
6711fi
6712
6713
6714fi
6715if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6716 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6717 # Extract the first word of "mt", so it can be a program name with args.
6718set dummy mt; ac_word=$2
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720$as_echo_n "checking for $ac_word... " >&6; }
6721if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723else
6724 if test -n "$ac_ct_MANIFEST_TOOL"; then
6725 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6726else
6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728for as_dir in $PATH
6729do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738done
6739 done
6740IFS=$as_save_IFS
6741
6742fi
6743fi
6744ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6745if test -n "$ac_ct_MANIFEST_TOOL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6747$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6748else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750$as_echo "no" >&6; }
6751fi
6752
6753 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6754 MANIFEST_TOOL=":"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757yes:)
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760ac_tool_warned=yes ;;
8d138742 6761esac
b0322a85
CE
6762 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6763 fi
8d138742 6764else
b0322a85
CE
6765 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6766fi
8d138742 6767
b0322a85
CE
6768test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6770$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6771if ${lt_cv_path_mainfest_tool+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773else
6774 lt_cv_path_mainfest_tool=no
6775 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6776 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6777 cat conftest.err >&5
6778 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6779 lt_cv_path_mainfest_tool=yes
6780 fi
6781 rm -f conftest*
6782fi
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6784$as_echo "$lt_cv_path_mainfest_tool" >&6; }
d50284c4 6785if test yes != "$lt_cv_path_mainfest_tool"; then
b0322a85 6786 MANIFEST_TOOL=:
8d138742
CE
6787fi
6788
8d138742 6789
8d138742 6790
b0322a85 6791
8d138742
CE
6792
6793
6794 case $host_os in
6795 rhapsody* | darwin*)
6796 if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6798set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
b0322a85 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6800$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6801if ${ac_cv_prog_DSYMUTIL+:} false; then :
8d138742
CE
6802 $as_echo_n "(cached) " >&6
6803else
6804 if test -n "$DSYMUTIL"; then
6805 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
d9898ee8 6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
b0322a85
CE
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6814 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
b0322a85 6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6816 break 2
6817 fi
6818done
b0322a85 6819 done
dd184caf 6820IFS=$as_save_IFS
d9898ee8 6821
d9898ee8 6822fi
6823fi
8d138742
CE
6824DSYMUTIL=$ac_cv_prog_DSYMUTIL
6825if test -n "$DSYMUTIL"; then
b0322a85 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8d138742 6827$as_echo "$DSYMUTIL" >&6; }
d9898ee8 6828else
b0322a85 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6830$as_echo "no" >&6; }
d9898ee8 6831fi
6832
8d138742
CE
6833
6834fi
6835if test -z "$ac_cv_prog_DSYMUTIL"; then
6836 ac_ct_DSYMUTIL=$DSYMUTIL
6837 # Extract the first word of "dsymutil", so it can be a program name with args.
6838set dummy dsymutil; ac_word=$2
b0322a85 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6840$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6841if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8d138742
CE
6842 $as_echo_n "(cached) " >&6
6843else
6844 if test -n "$ac_ct_DSYMUTIL"; then
6845 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
b0322a85
CE
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6854 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
b0322a85 6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
6856 break 2
6857 fi
6858done
b0322a85 6859 done
8d138742
CE
6860IFS=$as_save_IFS
6861
6862fi
6863fi
6864ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6865if test -n "$ac_ct_DSYMUTIL"; then
b0322a85 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8d138742
CE
6867$as_echo "$ac_ct_DSYMUTIL" >&6; }
6868else
b0322a85 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
6870$as_echo "no" >&6; }
6871fi
6872
6873 if test "x$ac_ct_DSYMUTIL" = x; then
6874 DSYMUTIL=":"
dd184caf 6875 else
6876 case $cross_compiling:$ac_tool_warned in
6877yes:)
b0322a85 6878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6880ac_tool_warned=yes ;;
6881esac
8d138742 6882 DSYMUTIL=$ac_ct_DSYMUTIL
dd184caf 6883 fi
d9898ee8 6884else
8d138742 6885 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 6886fi
6887
8d138742
CE
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6890set dummy ${ac_tool_prefix}nmedit; ac_word=$2
b0322a85 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6892$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6893if ${ac_cv_prog_NMEDIT+:} false; then :
8d138742 6894 $as_echo_n "(cached) " >&6
d9898ee8 6895else
8d138742
CE
6896 if test -n "$NMEDIT"; then
6897 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d9898ee8 6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
b0322a85
CE
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6906 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
b0322a85 6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6908 break 2
6909 fi
6910done
b0322a85 6911 done
dd184caf 6912IFS=$as_save_IFS
d9898ee8 6913
6914fi
6915fi
8d138742
CE
6916NMEDIT=$ac_cv_prog_NMEDIT
6917if test -n "$NMEDIT"; then
b0322a85 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8d138742 6919$as_echo "$NMEDIT" >&6; }
d9898ee8 6920else
b0322a85 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6922$as_echo "no" >&6; }
d9898ee8 6923fi
6924
dd184caf 6925
d9898ee8 6926fi
8d138742
CE
6927if test -z "$ac_cv_prog_NMEDIT"; then
6928 ac_ct_NMEDIT=$NMEDIT
6929 # Extract the first word of "nmedit", so it can be a program name with args.
6930set dummy nmedit; ac_word=$2
b0322a85 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6932$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6933if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8d138742 6934 $as_echo_n "(cached) " >&6
d9898ee8 6935else
8d138742
CE
6936 if test -n "$ac_ct_NMEDIT"; then
6937 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d9898ee8 6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
b0322a85
CE
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6946 ac_cv_prog_ac_ct_NMEDIT="nmedit"
b0322a85 6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6948 break 2
6949 fi
6950done
b0322a85 6951 done
dd184caf 6952IFS=$as_save_IFS
d9898ee8 6953
d9898ee8 6954fi
6955fi
8d138742
CE
6956ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6957if test -n "$ac_ct_NMEDIT"; then
b0322a85 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8d138742 6959$as_echo "$ac_ct_NMEDIT" >&6; }
d9898ee8 6960else
b0322a85 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 6962$as_echo "no" >&6; }
d9898ee8 6963fi
6964
8d138742
CE
6965 if test "x$ac_ct_NMEDIT" = x; then
6966 NMEDIT=":"
dd184caf 6967 else
6968 case $cross_compiling:$ac_tool_warned in
6969yes:)
b0322a85 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 6971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6972ac_tool_warned=yes ;;
6973esac
8d138742 6974 NMEDIT=$ac_ct_NMEDIT
dd184caf 6975 fi
d9898ee8 6976else
8d138742 6977 NMEDIT="$ac_cv_prog_NMEDIT"
d9898ee8 6978fi
6979
8d138742
CE
6980 if test -n "$ac_tool_prefix"; then
6981 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6982set dummy ${ac_tool_prefix}lipo; ac_word=$2
b0322a85 6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 6984$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 6985if ${ac_cv_prog_LIPO+:} false; then :
8d138742 6986 $as_echo_n "(cached) " >&6
d9898ee8 6987else
8d138742
CE
6988 if test -n "$LIPO"; then
6989 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d9898ee8 6990else
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
b0322a85
CE
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 6998 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
b0322a85 6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7000 break 2
7001 fi
7002done
b0322a85 7003 done
dd184caf 7004IFS=$as_save_IFS
d9898ee8 7005
7006fi
7007fi
8d138742
CE
7008LIPO=$ac_cv_prog_LIPO
7009if test -n "$LIPO"; then
b0322a85 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8d138742 7011$as_echo "$LIPO" >&6; }
d9898ee8 7012else
b0322a85 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7014$as_echo "no" >&6; }
d9898ee8 7015fi
7016
dd184caf 7017
d9898ee8 7018fi
8d138742
CE
7019if test -z "$ac_cv_prog_LIPO"; then
7020 ac_ct_LIPO=$LIPO
7021 # Extract the first word of "lipo", so it can be a program name with args.
7022set dummy lipo; ac_word=$2
b0322a85 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7024$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7025if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8d138742 7026 $as_echo_n "(cached) " >&6
d9898ee8 7027else
8d138742
CE
7028 if test -n "$ac_ct_LIPO"; then
7029 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d9898ee8 7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
b0322a85
CE
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7038 ac_cv_prog_ac_ct_LIPO="lipo"
b0322a85 7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 7040 break 2
7041 fi
7042done
b0322a85 7043 done
dd184caf 7044IFS=$as_save_IFS
d9898ee8 7045
d9898ee8 7046fi
7047fi
8d138742
CE
7048ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7049if test -n "$ac_ct_LIPO"; then
b0322a85 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8d138742 7051$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 7052else
b0322a85 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7054$as_echo "no" >&6; }
d9898ee8 7055fi
7056
8d138742
CE
7057 if test "x$ac_ct_LIPO" = x; then
7058 LIPO=":"
dd184caf 7059 else
7060 case $cross_compiling:$ac_tool_warned in
7061yes:)
b0322a85 7062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742 7063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 7064ac_tool_warned=yes ;;
7065esac
8d138742 7066 LIPO=$ac_ct_LIPO
dd184caf 7067 fi
d9898ee8 7068else
8d138742 7069 LIPO="$ac_cv_prog_LIPO"
d9898ee8 7070fi
7071
8d138742
CE
7072 if test -n "$ac_tool_prefix"; then
7073 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7074set dummy ${ac_tool_prefix}otool; ac_word=$2
b0322a85 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7076$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7077if ${ac_cv_prog_OTOOL+:} false; then :
8d138742
CE
7078 $as_echo_n "(cached) " >&6
7079else
7080 if test -n "$OTOOL"; then
7081 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
b0322a85
CE
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7090 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
b0322a85 7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7092 break 2
7093 fi
7094done
b0322a85 7095 done
8d138742 7096IFS=$as_save_IFS
d9898ee8 7097
8d138742
CE
7098fi
7099fi
7100OTOOL=$ac_cv_prog_OTOOL
7101if test -n "$OTOOL"; then
b0322a85 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8d138742
CE
7103$as_echo "$OTOOL" >&6; }
7104else
b0322a85 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7106$as_echo "no" >&6; }
7107fi
d9898ee8 7108
d9898ee8 7109
d9898ee8 7110fi
8d138742
CE
7111if test -z "$ac_cv_prog_OTOOL"; then
7112 ac_ct_OTOOL=$OTOOL
7113 # Extract the first word of "otool", so it can be a program name with args.
7114set dummy otool; ac_word=$2
b0322a85 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7116$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7117if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8d138742
CE
7118 $as_echo_n "(cached) " >&6
7119else
7120 if test -n "$ac_ct_OTOOL"; then
7121 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7122else
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
b0322a85
CE
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7130 ac_cv_prog_ac_ct_OTOOL="otool"
b0322a85 7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7132 break 2
7133 fi
d9898ee8 7134done
b0322a85 7135 done
8d138742 7136IFS=$as_save_IFS
d9898ee8 7137
8d138742
CE
7138fi
7139fi
7140ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7141if test -n "$ac_ct_OTOOL"; then
b0322a85 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8d138742 7143$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 7144else
b0322a85 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7146$as_echo "no" >&6; }
7147fi
d9898ee8 7148
8d138742
CE
7149 if test "x$ac_ct_OTOOL" = x; then
7150 OTOOL=":"
7151 else
7152 case $cross_compiling:$ac_tool_warned in
7153yes:)
b0322a85 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
7155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156ac_tool_warned=yes ;;
d9898ee8 7157esac
8d138742
CE
7158 OTOOL=$ac_ct_OTOOL
7159 fi
7160else
7161 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 7162fi
7163
8d138742
CE
7164 if test -n "$ac_tool_prefix"; then
7165 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7166set dummy ${ac_tool_prefix}otool64; ac_word=$2
b0322a85 7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7168$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7169if ${ac_cv_prog_OTOOL64+:} false; then :
8d138742 7170 $as_echo_n "(cached) " >&6
d9898ee8 7171else
8d138742
CE
7172 if test -n "$OTOOL64"; then
7173 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7174else
7175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
b0322a85
CE
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7182 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
b0322a85 7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7184 break 2
7185 fi
7186done
b0322a85 7187 done
8d138742 7188IFS=$as_save_IFS
d9898ee8 7189
8d138742
CE
7190fi
7191fi
7192OTOOL64=$ac_cv_prog_OTOOL64
7193if test -n "$OTOOL64"; then
b0322a85 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8d138742 7195$as_echo "$OTOOL64" >&6; }
d9898ee8 7196else
b0322a85 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
7198$as_echo "no" >&6; }
7199fi
d9898ee8 7200
d9898ee8 7201
d9898ee8 7202fi
8d138742
CE
7203if test -z "$ac_cv_prog_OTOOL64"; then
7204 ac_ct_OTOOL64=$OTOOL64
7205 # Extract the first word of "otool64", so it can be a program name with args.
7206set dummy otool64; ac_word=$2
b0322a85 7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8d138742 7208$as_echo_n "checking for $ac_word... " >&6; }
b0322a85 7209if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8d138742
CE
7210 $as_echo_n "(cached) " >&6
7211else
7212 if test -n "$ac_ct_OTOOL64"; then
7213 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7214else
7215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
b0322a85
CE
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8d138742 7222 ac_cv_prog_ac_ct_OTOOL64="otool64"
b0322a85 7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8d138742
CE
7224 break 2
7225 fi
7226done
b0322a85 7227 done
8d138742 7228IFS=$as_save_IFS
d9898ee8 7229
8d138742
CE
7230fi
7231fi
7232ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7233if test -n "$ac_ct_OTOOL64"; then
b0322a85 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8d138742 7235$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 7236else
b0322a85 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 7238$as_echo "no" >&6; }
d9898ee8 7239fi
7240
8d138742
CE
7241 if test "x$ac_ct_OTOOL64" = x; then
7242 OTOOL64=":"
d9898ee8 7243 else
8d138742
CE
7244 case $cross_compiling:$ac_tool_warned in
7245yes:)
b0322a85 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8d138742
CE
7247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7248ac_tool_warned=yes ;;
7249esac
7250 OTOOL64=$ac_ct_OTOOL64
d9898ee8 7251 fi
8d138742
CE
7252else
7253 OTOOL64="$ac_cv_prog_OTOOL64"
d9898ee8 7254fi
7255
d9898ee8 7256
d9898ee8 7257
d9898ee8 7258
d9898ee8 7259
7260
dd184caf 7261
d9898ee8 7262
d9898ee8 7263
7264
d9898ee8 7265
d9898ee8 7266
d9898ee8 7267
d9898ee8 7268
7269
d9898ee8 7270
d9898ee8 7271
d9898ee8 7272
7273
d9898ee8 7274
d9898ee8 7275
7276
7277
d9898ee8 7278
d9898ee8 7279
7280
8d138742 7281
b0322a85 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8d138742 7283$as_echo_n "checking for -single_module linker flag... " >&6; }
b0322a85 7284if ${lt_cv_apple_cc_single_mod+:} false; then :
8d138742 7285 $as_echo_n "(cached) " >&6
d9898ee8 7286else
8d138742 7287 lt_cv_apple_cc_single_mod=no
d50284c4 7288 if test -z "$LT_MULTI_MODULE"; then
8d138742
CE
7289 # By default we will add the -single_module flag. You can override
7290 # by either setting the environment variable LT_MULTI_MODULE
7291 # non-empty at configure time, or by adding -multi_module to the
7292 # link flags.
7293 rm -rf libconftest.dylib*
7294 echo "int foo(void){return 1;}" > conftest.c
7295 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7296-dynamiclib -Wl,-single_module conftest.c" >&5
7297 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7298 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7299 _lt_result=$?
b0322a85
CE
7300 # If there is a non-empty error log, and "single_module"
7301 # appears in it, assume the flag caused a linker warning
7302 if test -s conftest.err && $GREP single_module conftest.err; then
7303 cat conftest.err >&5
7304 # Otherwise, if the output was created with a 0 exit code from
7305 # the compiler, it worked.
d50284c4 7306 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8d138742
CE
7307 lt_cv_apple_cc_single_mod=yes
7308 else
7309 cat conftest.err >&5
7310 fi
7311 rm -rf libconftest.dylib*
7312 rm -f conftest.*
7313 fi
d9898ee8 7314fi
b0322a85 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8d138742 7316$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
b0322a85
CE
7317
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8d138742 7319$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
b0322a85 7320if ${lt_cv_ld_exported_symbols_list+:} false; then :
8d138742
CE
7321 $as_echo_n "(cached) " >&6
7322else
7323 lt_cv_ld_exported_symbols_list=no
7324 save_LDFLAGS=$LDFLAGS
7325 echo "_main" > conftest.sym
7326 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
b0322a85 7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 7328/* end confdefs.h. */
d9898ee8 7329
8d138742
CE
7330int
7331main ()
7332{
7333
7334 ;
7335 return 0;
7336}
7337_ACEOF
b0322a85 7338if ac_fn_c_try_link "$LINENO"; then :
8d138742 7339 lt_cv_ld_exported_symbols_list=yes
d9898ee8 7340else
b0322a85 7341 lt_cv_ld_exported_symbols_list=no
d9898ee8 7342fi
b0322a85
CE
7343rm -f core conftest.err conftest.$ac_objext \
7344 conftest$ac_exeext conftest.$ac_ext
d50284c4 7345 LDFLAGS=$save_LDFLAGS
d9898ee8 7346
8d138742 7347fi
b0322a85 7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8d138742 7349$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
b0322a85
CE
7350
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7352$as_echo_n "checking for -force_load linker flag... " >&6; }
7353if ${lt_cv_ld_force_load+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355else
7356 lt_cv_ld_force_load=no
7357 cat > conftest.c << _LT_EOF
7358int forced_loaded() { return 2;}
7359_LT_EOF
7360 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7361 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7362 echo "$AR cru libconftest.a conftest.o" >&5
7363 $AR cru libconftest.a conftest.o 2>&5
7364 echo "$RANLIB libconftest.a" >&5
7365 $RANLIB libconftest.a 2>&5
7366 cat > conftest.c << _LT_EOF
7367int main() { return 0;}
7368_LT_EOF
7369 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7370 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7371 _lt_result=$?
7372 if test -s conftest.err && $GREP force_load conftest.err; then
7373 cat conftest.err >&5
d50284c4 7374 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
b0322a85
CE
7375 lt_cv_ld_force_load=yes
7376 else
7377 cat conftest.err >&5
7378 fi
7379 rm -f conftest.err libconftest.a conftest conftest.c
7380 rm -rf conftest.dSYM
7381
7382fi
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7384$as_echo "$lt_cv_ld_force_load" >&6; }
d9898ee8 7385 case $host_os in
8d138742 7386 rhapsody* | darwin1.[012])
d50284c4 7387 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8d138742 7388 darwin1.*)
d50284c4 7389 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8d138742
CE
7390 darwin*) # darwin 5.x on
7391 # if running on 10.5 or later, the deployment target defaults
7392 # to the OS version, if on x86, and 10.4, the deployment
7393 # target defaults to 10.4. Don't you love it?
7394 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7395 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
d50284c4
CE
7396 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7397 10.[012][,.]*)
7398 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8d138742 7399 10.*)
d50284c4 7400 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8d138742
CE
7401 esac
7402 ;;
7403 esac
d50284c4 7404 if test yes = "$lt_cv_apple_cc_single_mod"; then
8d138742
CE
7405 _lt_dar_single_mod='$single_module'
7406 fi
d50284c4
CE
7407 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7408 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8d138742 7409 else
d50284c4 7410 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8d138742 7411 fi
d50284c4 7412 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8d138742
CE
7413 _lt_dsymutil='~$DSYMUTIL $lib || :'
7414 else
7415 _lt_dsymutil=
7416 fi
7417 ;;
7418 esac
d9898ee8 7419
d50284c4
CE
7420# func_munge_path_list VARIABLE PATH
7421# -----------------------------------
7422# VARIABLE is name of variable containing _space_ separated list of
7423# directories to be munged by the contents of PATH, which is string
7424# having a format:
7425# "DIR[:DIR]:"
7426# string "DIR[ DIR]" will be prepended to VARIABLE
7427# ":DIR[:DIR]"
7428# string "DIR[ DIR]" will be appended to VARIABLE
7429# "DIRP[:DIRP]::[DIRA:]DIRA"
7430# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7431# "DIRA[ DIRA]" will be appended to VARIABLE
7432# "DIR[:DIR]"
7433# VARIABLE will be replaced by "DIR[ DIR]"
7434func_munge_path_list ()
7435{
7436 case x$2 in
7437 x)
7438 ;;
7439 *:)
7440 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7441 ;;
7442 x:*)
7443 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7444 ;;
7445 *::*)
7446 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7447 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7448 ;;
7449 *)
7450 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7451 ;;
7452 esac
7453}
7454
8d138742
CE
7455ac_ext=c
7456ac_cpp='$CPP $CPPFLAGS'
7457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459ac_compiler_gnu=$ac_cv_c_compiler_gnu
b0322a85 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8d138742
CE
7461$as_echo_n "checking how to run the C preprocessor... " >&6; }
7462# On Suns, sometimes $CPP names a directory.
7463if test -n "$CPP" && test -d "$CPP"; then
7464 CPP=
7465fi
7466if test -z "$CPP"; then
b0322a85 7467 if ${ac_cv_prog_CPP+:} false; then :
8d138742
CE
7468 $as_echo_n "(cached) " >&6
7469else
7470 # Double quotes because CPP needs to be expanded
7471 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7472 do
7473 ac_preproc_ok=false
7474for ac_c_preproc_warn_flag in '' yes
7475do
7476 # Use a header file that comes with gcc, so configuring glibc
7477 # with a fresh cross-compiler works.
7478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7479 # <limits.h> exists even on freestanding compilers.
7480 # On the NeXT, cc -E runs the code through the compiler's parser,
7481 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7483/* end confdefs.h. */
7484#ifdef __STDC__
7485# include <limits.h>
7486#else
7487# include <assert.h>
7488#endif
7489 Syntax error
7490_ACEOF
b0322a85 7491if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7492
b0322a85 7493else
8d138742
CE
7494 # Broken: fails on valid input.
7495continue
7496fi
b0322a85 7497rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7498
8d138742
CE
7499 # OK, works on sane cases. Now check whether nonexistent headers
7500 # can be detected and how.
b0322a85 7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7502/* end confdefs.h. */
7503#include <ac_nonexistent.h>
7504_ACEOF
b0322a85 7505if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7506 # Broken: success on invalid input.
7507continue
7508else
8d138742
CE
7509 # Passes both tests.
7510ac_preproc_ok=:
7511break
7512fi
b0322a85 7513rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7514
8d138742
CE
7515done
7516# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7517rm -f conftest.i conftest.err conftest.$ac_ext
7518if $ac_preproc_ok; then :
8d138742
CE
7519 break
7520fi
d9898ee8 7521
8d138742
CE
7522 done
7523 ac_cv_prog_CPP=$CPP
d9898ee8 7524
8d138742
CE
7525fi
7526 CPP=$ac_cv_prog_CPP
7527else
7528 ac_cv_prog_CPP=$CPP
7529fi
b0322a85 7530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8d138742
CE
7531$as_echo "$CPP" >&6; }
7532ac_preproc_ok=false
7533for ac_c_preproc_warn_flag in '' yes
7534do
7535 # Use a header file that comes with gcc, so configuring glibc
7536 # with a fresh cross-compiler works.
7537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7538 # <limits.h> exists even on freestanding compilers.
7539 # On the NeXT, cc -E runs the code through the compiler's parser,
7540 # not just through cpp. "Syntax error" is here to catch this case.
b0322a85 7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7542/* end confdefs.h. */
7543#ifdef __STDC__
7544# include <limits.h>
7545#else
7546# include <assert.h>
7547#endif
7548 Syntax error
7549_ACEOF
b0322a85 7550if ac_fn_c_try_cpp "$LINENO"; then :
d9898ee8 7551
b0322a85 7552else
8d138742
CE
7553 # Broken: fails on valid input.
7554continue
7555fi
b0322a85 7556rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7557
8d138742
CE
7558 # OK, works on sane cases. Now check whether nonexistent headers
7559 # can be detected and how.
b0322a85 7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7561/* end confdefs.h. */
7562#include <ac_nonexistent.h>
7563_ACEOF
b0322a85 7564if ac_fn_c_try_cpp "$LINENO"; then :
8d138742
CE
7565 # Broken: success on invalid input.
7566continue
7567else
8d138742
CE
7568 # Passes both tests.
7569ac_preproc_ok=:
7570break
7571fi
b0322a85 7572rm -f conftest.err conftest.i conftest.$ac_ext
d9898ee8 7573
8d138742
CE
7574done
7575# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b0322a85
CE
7576rm -f conftest.i conftest.err conftest.$ac_ext
7577if $ac_preproc_ok; then :
7578
8d138742 7579else
b0322a85 7580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8d138742 7581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0322a85
CE
7582as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7583See \`config.log' for more details" "$LINENO" 5; }
8d138742 7584fi
d9898ee8 7585
8d138742
CE
7586ac_ext=c
7587ac_cpp='$CPP $CPPFLAGS'
7588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7590ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7591
d9898ee8 7592
b0322a85 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 7594$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 7595if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
7596 $as_echo_n "(cached) " >&6
7597else
b0322a85 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7599/* end confdefs.h. */
7600#include <stdlib.h>
7601#include <stdarg.h>
7602#include <string.h>
7603#include <float.h>
d9898ee8 7604
8d138742
CE
7605int
7606main ()
7607{
d9898ee8 7608
8d138742
CE
7609 ;
7610 return 0;
7611}
7612_ACEOF
b0322a85 7613if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
7614 ac_cv_header_stdc=yes
7615else
b0322a85 7616 ac_cv_header_stdc=no
8d138742 7617fi
8d138742 7618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 7619
8d138742
CE
7620if test $ac_cv_header_stdc = yes; then
7621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7623/* end confdefs.h. */
7624#include <string.h>
d9898ee8 7625
8d138742
CE
7626_ACEOF
7627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7628 $EGREP "memchr" >/dev/null 2>&1; then :
7629
d9898ee8 7630else
8d138742
CE
7631 ac_cv_header_stdc=no
7632fi
7633rm -f conftest*
d9898ee8 7634
7635fi
d9898ee8 7636
8d138742
CE
7637if test $ac_cv_header_stdc = yes; then
7638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7640/* end confdefs.h. */
7641#include <stdlib.h>
7642
7643_ACEOF
7644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
7645 $EGREP "free" >/dev/null 2>&1; then :
7646
d9898ee8 7647else
8d138742 7648 ac_cv_header_stdc=no
d9898ee8 7649fi
8d138742 7650rm -f conftest*
d9898ee8 7651
7652fi
d9898ee8 7653
8d138742
CE
7654if test $ac_cv_header_stdc = yes; then
7655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 7656 if test "$cross_compiling" = yes; then :
8d138742 7657 :
d9898ee8 7658else
b0322a85 7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
7660/* end confdefs.h. */
7661#include <ctype.h>
7662#include <stdlib.h>
7663#if ((' ' & 0x0FF) == 0x020)
7664# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7665# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7666#else
7667# define ISLOWER(c) \
7668 (('a' <= (c) && (c) <= 'i') \
7669 || ('j' <= (c) && (c) <= 'r') \
7670 || ('s' <= (c) && (c) <= 'z'))
7671# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7672#endif
d9898ee8 7673
8d138742
CE
7674#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7675int
7676main ()
7677{
7678 int i;
7679 for (i = 0; i < 256; i++)
7680 if (XOR (islower (i), ISLOWER (i))
7681 || toupper (i) != TOUPPER (i))
7682 return 2;
7683 return 0;
7684}
b0322a85
CE
7685_ACEOF
7686if ac_fn_c_try_run "$LINENO"; then :
7687
8d138742 7688else
b0322a85
CE
7689 ac_cv_header_stdc=no
7690fi
7691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7692 conftest.$ac_objext conftest.beam conftest.$ac_ext
7693fi
d9898ee8 7694
8d138742 7695fi
b0322a85
CE
7696fi
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7698$as_echo "$ac_cv_header_stdc" >&6; }
7699if test $ac_cv_header_stdc = yes; then
7700
7701$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 7702
8d138742 7703fi
b0322a85
CE
7704
7705# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7706for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7707 inttypes.h stdint.h unistd.h
7708do :
7709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7710ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7711"
7712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8d138742
CE
7713 cat >>confdefs.h <<_ACEOF
7714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7715_ACEOF
d9898ee8 7716
8d138742 7717fi
d9898ee8 7718
8d138742 7719done
d9898ee8 7720
d9898ee8 7721
8d138742 7722for ac_header in dlfcn.h
b0322a85
CE
7723do :
7724 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7725"
7726if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8d138742 7727 cat >>confdefs.h <<_ACEOF
b0322a85 7728#define HAVE_DLFCN_H 1
8d138742 7729_ACEOF
d9898ee8 7730
8d138742 7731fi
d9898ee8 7732
8d138742 7733done
d9898ee8 7734
d9898ee8 7735
d9898ee8 7736
b0322a85
CE
7737
7738
8d138742
CE
7739# Set options
7740
7741
7742
7743
7744 enable_win32_dll=no
d9898ee8 7745
8d138742
CE
7746
7747 # Check whether --enable-shared was given.
b0322a85 7748if test "${enable_shared+set}" = set; then :
8d138742
CE
7749 enableval=$enable_shared; p=${PACKAGE-default}
7750 case $enableval in
7751 yes) enable_shared=yes ;;
7752 no) enable_shared=no ;;
d9898ee8 7753 *)
8d138742
CE
7754 enable_shared=no
7755 # Look at the argument we got. We use all the common list separators.
d50284c4 7756 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 7757 for pkg in $enableval; do
d50284c4 7758 IFS=$lt_save_ifs
8d138742
CE
7759 if test "X$pkg" = "X$p"; then
7760 enable_shared=yes
7761 fi
7762 done
d50284c4 7763 IFS=$lt_save_ifs
d9898ee8 7764 ;;
7765 esac
8d138742
CE
7766else
7767 enable_shared=yes
7768fi
d9898ee8 7769
d9898ee8 7770
d9898ee8 7771
d9898ee8 7772
d9898ee8 7773
d9898ee8 7774
d9898ee8 7775
d9898ee8 7776
d9898ee8 7777
8d138742 7778 # Check whether --enable-static was given.
b0322a85 7779if test "${enable_static+set}" = set; then :
8d138742
CE
7780 enableval=$enable_static; p=${PACKAGE-default}
7781 case $enableval in
7782 yes) enable_static=yes ;;
7783 no) enable_static=no ;;
7784 *)
7785 enable_static=no
7786 # Look at the argument we got. We use all the common list separators.
d50284c4 7787 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 7788 for pkg in $enableval; do
d50284c4 7789 IFS=$lt_save_ifs
8d138742
CE
7790 if test "X$pkg" = "X$p"; then
7791 enable_static=yes
7792 fi
7793 done
d50284c4 7794 IFS=$lt_save_ifs
8d138742
CE
7795 ;;
7796 esac
d9898ee8 7797else
8d138742
CE
7798 enable_static=yes
7799fi
7800
d9898ee8 7801
dd184caf 7802
dd184caf 7803
d9898ee8 7804
d9898ee8 7805
d9898ee8 7806
d9898ee8 7807
d9898ee8 7808
dd184caf 7809
8d138742 7810# Check whether --with-pic was given.
b0322a85
CE
7811if test "${with_pic+set}" = set; then :
7812 withval=$with_pic; lt_p=${PACKAGE-default}
7813 case $withval in
7814 yes|no) pic_mode=$withval ;;
7815 *)
7816 pic_mode=default
7817 # Look at the argument we got. We use all the common list separators.
d50284c4 7818 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
b0322a85 7819 for lt_pkg in $withval; do
d50284c4 7820 IFS=$lt_save_ifs
b0322a85
CE
7821 if test "X$lt_pkg" = "X$lt_p"; then
7822 pic_mode=yes
7823 fi
7824 done
d50284c4 7825 IFS=$lt_save_ifs
b0322a85
CE
7826 ;;
7827 esac
8d138742
CE
7828else
7829 pic_mode=default
d9898ee8 7830fi
dd184caf 7831
d9898ee8 7832
d9898ee8 7833
d9898ee8 7834
d9898ee8 7835
d9898ee8 7836
d9898ee8 7837
d9898ee8 7838
8d138742 7839 # Check whether --enable-fast-install was given.
b0322a85 7840if test "${enable_fast_install+set}" = set; then :
8d138742
CE
7841 enableval=$enable_fast_install; p=${PACKAGE-default}
7842 case $enableval in
7843 yes) enable_fast_install=yes ;;
7844 no) enable_fast_install=no ;;
7845 *)
7846 enable_fast_install=no
7847 # Look at the argument we got. We use all the common list separators.
d50284c4 7848 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8d138742 7849 for pkg in $enableval; do
d50284c4 7850 IFS=$lt_save_ifs
8d138742
CE
7851 if test "X$pkg" = "X$p"; then
7852 enable_fast_install=yes
7853 fi
7854 done
d50284c4 7855 IFS=$lt_save_ifs
d9898ee8 7856 ;;
8d138742
CE
7857 esac
7858else
7859 enable_fast_install=yes
7860fi
d9898ee8 7861
d9898ee8 7862
d9898ee8 7863
d9898ee8 7864
d9898ee8 7865
d9898ee8 7866
d9898ee8 7867
d9898ee8 7868
d50284c4
CE
7869 shared_archive_member_spec=
7870case $host,$enable_shared in
7871power*-*-aix[5-9]*,yes)
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7873$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7874
7875# Check whether --with-aix-soname was given.
7876if test "${with_aix_soname+set}" = set; then :
7877 withval=$with_aix_soname; case $withval in
7878 aix|svr4|both)
7879 ;;
7880 *)
7881 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7882 ;;
7883 esac
7884 lt_cv_with_aix_soname=$with_aix_soname
7885else
7886 if ${lt_cv_with_aix_soname+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888else
7889 lt_cv_with_aix_soname=aix
7890fi
7891
7892 with_aix_soname=$lt_cv_with_aix_soname
7893fi
7894
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7896$as_echo "$with_aix_soname" >&6; }
7897 if test aix != "$with_aix_soname"; then
7898 # For the AIX way of multilib, we name the shared archive member
7899 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7900 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7901 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7902 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7903 if test 64 = "${OBJECT_MODE-32}"; then
7904 shared_archive_member_spec=shr_64
7905 else
7906 shared_archive_member_spec=shr
7907 fi
7908 fi
7909 ;;
7910*)
7911 with_aix_soname=aix
7912 ;;
7913esac
7914
7915
7916
7917
7918
7919
7920
d9898ee8 7921
d9898ee8 7922
d9898ee8 7923
8d138742 7924# This can be used to rebuild libtool when needed
d50284c4 7925LIBTOOL_DEPS=$ltmain
d9898ee8 7926
8d138742
CE
7927# Always use our own libtool.
7928LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7929
d9898ee8 7930
d9898ee8 7931
d9898ee8 7932
d9898ee8 7933
d9898ee8 7934
d9898ee8 7935
d9898ee8 7936
d9898ee8 7937
d9898ee8 7938
d9898ee8 7939
d9898ee8 7940
d9898ee8 7941
d9898ee8 7942
d9898ee8 7943
d9898ee8 7944
d9898ee8 7945
d9898ee8 7946
d9898ee8 7947
b0322a85
CE
7948
7949
7950
7951
7952
d9898ee8 7953
d9898ee8 7954
d9898ee8 7955
ac40fd9e 7956
d9898ee8 7957
d9898ee8 7958
8d138742 7959test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7960
d9898ee8 7961
d9898ee8 7962
d9898ee8 7963
d9898ee8 7964
d9898ee8 7965
d9898ee8 7966
d9898ee8 7967
d9898ee8 7968
d9898ee8 7969
ac40fd9e 7970
d9898ee8 7971
d9898ee8 7972
d9898ee8 7973
d50284c4 7974if test -n "${ZSH_VERSION+set}"; then
8d138742
CE
7975 setopt NO_GLOB_SUBST
7976fi
d9898ee8 7977
b0322a85 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8d138742 7979$as_echo_n "checking for objdir... " >&6; }
b0322a85 7980if ${lt_cv_objdir+:} false; then :
8d138742
CE
7981 $as_echo_n "(cached) " >&6
7982else
7983 rm -f .libs 2>/dev/null
7984mkdir .libs 2>/dev/null
7985if test -d .libs; then
7986 lt_cv_objdir=.libs
7987else
7988 # MS-DOS does not allow filenames that begin with a dot.
7989 lt_cv_objdir=_libs
7990fi
7991rmdir .libs 2>/dev/null
7992fi
b0322a85 7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8d138742
CE
7994$as_echo "$lt_cv_objdir" >&6; }
7995objdir=$lt_cv_objdir
d9898ee8 7996
d9898ee8 7997
d9898ee8 7998
d9898ee8 7999
d9898ee8 8000
8d138742
CE
8001cat >>confdefs.h <<_ACEOF
8002#define LT_OBJDIR "$lt_cv_objdir/"
8003_ACEOF
d9898ee8 8004
d9898ee8 8005
d9898ee8 8006
d9898ee8 8007
8d138742
CE
8008case $host_os in
8009aix3*)
8010 # AIX sometimes has problems with the GCC collect2 program. For some
8011 # reason, if we set the COLLECT_NAMES environment variable, the problems
8012 # vanish in a puff of smoke.
d50284c4 8013 if test set != "${COLLECT_NAMES+set}"; then
8d138742
CE
8014 COLLECT_NAMES=
8015 export COLLECT_NAMES
8016 fi
d9898ee8 8017 ;;
8018esac
d9898ee8 8019
8d138742
CE
8020# Global variables:
8021ofile=libtool
8022can_build_shared=yes
d9898ee8 8023
d50284c4 8024# All known linkers require a '.a' archive for static linking (except MSVC,
8d138742
CE
8025# which needs '.lib').
8026libext=a
d9898ee8 8027
d50284c4 8028with_gnu_ld=$lt_cv_prog_gnu_ld
d9898ee8 8029
d50284c4
CE
8030old_CC=$CC
8031old_CFLAGS=$CFLAGS
d9898ee8 8032
8d138742
CE
8033# Set sane defaults for various variables
8034test -z "$CC" && CC=cc
8035test -z "$LTCC" && LTCC=$CC
8036test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8037test -z "$LD" && LD=ld
8038test -z "$ac_objext" && ac_objext=o
d9898ee8 8039
d50284c4
CE
8040func_cc_basename $compiler
8041cc_basename=$func_cc_basename_result
d9898ee8 8042
dd184caf 8043
8d138742
CE
8044# Only perform the check for file, if the check method requires it
8045test -z "$MAGIC_CMD" && MAGIC_CMD=file
8046case $deplibs_check_method in
8047file_magic*)
8048 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
b0322a85 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8d138742 8050$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
b0322a85 8051if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742 8052 $as_echo_n "(cached) " >&6
d9898ee8 8053else
8d138742
CE
8054 case $MAGIC_CMD in
8055[\\/*] | ?:[\\/]*)
d50284c4 8056 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8d138742
CE
8057 ;;
8058*)
d50284c4
CE
8059 lt_save_MAGIC_CMD=$MAGIC_CMD
8060 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742
CE
8061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8062 for ac_dir in $ac_dummy; do
d50284c4 8063 IFS=$lt_save_ifs
8d138742 8064 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
8065 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8066 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8d138742
CE
8067 if test -n "$file_magic_test_file"; then
8068 case $deplibs_check_method in
8069 "file_magic "*)
8070 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d50284c4 8071 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742
CE
8072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8073 $EGREP "$file_magic_regex" > /dev/null; then
8074 :
8075 else
8076 cat <<_LT_EOF 1>&2
d9898ee8 8077
8d138742
CE
8078*** Warning: the command libtool uses to detect shared libraries,
8079*** $file_magic_cmd, produces output that libtool cannot recognize.
8080*** The result is that libtool may fail to recognize shared libraries
8081*** as such. This will affect the creation of libtool libraries that
8082*** depend on shared libraries, but programs linked with such libtool
8083*** libraries will work regardless of this problem. Nevertheless, you
8084*** may want to report the problem to your system manager and/or to
8085*** bug-libtool@gnu.org
d9898ee8 8086
8d138742
CE
8087_LT_EOF
8088 fi ;;
8089 esac
8090 fi
8091 break
8092 fi
8093 done
d50284c4
CE
8094 IFS=$lt_save_ifs
8095 MAGIC_CMD=$lt_save_MAGIC_CMD
8d138742
CE
8096 ;;
8097esac
d9898ee8 8098fi
8099
d50284c4 8100MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742 8101if test -n "$MAGIC_CMD"; then
b0322a85 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 8103$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 8104else
b0322a85 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
8106$as_echo "no" >&6; }
8107fi
d9898ee8 8108
d9898ee8 8109
d9898ee8 8110
d9898ee8 8111
d9898ee8 8112
8d138742
CE
8113if test -z "$lt_cv_path_MAGIC_CMD"; then
8114 if test -n "$ac_tool_prefix"; then
b0322a85 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8d138742 8116$as_echo_n "checking for file... " >&6; }
b0322a85 8117if ${lt_cv_path_MAGIC_CMD+:} false; then :
8d138742 8118 $as_echo_n "(cached) " >&6
d9898ee8 8119else
8d138742
CE
8120 case $MAGIC_CMD in
8121[\\/*] | ?:[\\/]*)
d50284c4 8122 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8d138742
CE
8123 ;;
8124*)
d50284c4
CE
8125 lt_save_MAGIC_CMD=$MAGIC_CMD
8126 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8d138742
CE
8127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8128 for ac_dir in $ac_dummy; do
d50284c4 8129 IFS=$lt_save_ifs
8d138742 8130 test -z "$ac_dir" && ac_dir=.
d50284c4
CE
8131 if test -f "$ac_dir/file"; then
8132 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8d138742
CE
8133 if test -n "$file_magic_test_file"; then
8134 case $deplibs_check_method in
8135 "file_magic "*)
8136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
d50284c4 8137 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742
CE
8138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8139 $EGREP "$file_magic_regex" > /dev/null; then
8140 :
8141 else
8142 cat <<_LT_EOF 1>&2
d9898ee8 8143
8d138742
CE
8144*** Warning: the command libtool uses to detect shared libraries,
8145*** $file_magic_cmd, produces output that libtool cannot recognize.
8146*** The result is that libtool may fail to recognize shared libraries
8147*** as such. This will affect the creation of libtool libraries that
8148*** depend on shared libraries, but programs linked with such libtool
8149*** libraries will work regardless of this problem. Nevertheless, you
8150*** may want to report the problem to your system manager and/or to
8151*** bug-libtool@gnu.org
dd184caf 8152
8d138742
CE
8153_LT_EOF
8154 fi ;;
8155 esac
8156 fi
8157 break
8158 fi
8159 done
d50284c4
CE
8160 IFS=$lt_save_ifs
8161 MAGIC_CMD=$lt_save_MAGIC_CMD
8d138742
CE
8162 ;;
8163esac
d9898ee8 8164fi
d9898ee8 8165
d50284c4 8166MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8d138742 8167if test -n "$MAGIC_CMD"; then
b0322a85 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8d138742 8169$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 8170else
b0322a85 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 8172$as_echo "no" >&6; }
d9898ee8 8173fi
dd184caf 8174
8d138742
CE
8175
8176 else
8177 MAGIC_CMD=:
8178 fi
d9898ee8 8179fi
d9898ee8 8180
8d138742
CE
8181 fi
8182 ;;
8183esac
d9898ee8 8184
8d138742 8185# Use C for the default configuration in the libtool script
d9898ee8 8186
d50284c4 8187lt_save_CC=$CC
8d138742
CE
8188ac_ext=c
8189ac_cpp='$CPP $CPPFLAGS'
8190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8192ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 8193
d9898ee8 8194
8d138742
CE
8195# Source file extension for C test sources.
8196ac_ext=c
d9898ee8 8197
8d138742
CE
8198# Object file extension for compiled C test sources.
8199objext=o
8200objext=$objext
dd184caf 8201
8d138742
CE
8202# Code to be used in simple compile tests
8203lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 8204
8d138742
CE
8205# Code to be used in simple link tests
8206lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 8207
dd184caf 8208
d9898ee8 8209
d9898ee8 8210
dd184caf 8211
d9898ee8 8212
d9898ee8 8213
8d138742
CE
8214# If no C compiler was specified, use CC.
8215LTCC=${LTCC-"$CC"}
dd184caf 8216
8d138742
CE
8217# If no C compiler flags were specified, use CFLAGS.
8218LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 8219
8d138742
CE
8220# Allow CC to be a program name with arguments.
8221compiler=$CC
d9898ee8 8222
8d138742
CE
8223# Save the default compiler, since it gets overwritten when the other
8224# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8225compiler_DEFAULT=$CC
d9898ee8 8226
8d138742
CE
8227# save warnings/boilerplate of simple test code
8228ac_outfile=conftest.$ac_objext
8229echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8230eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8231_lt_compiler_boilerplate=`cat conftest.err`
8232$RM conftest*
d9898ee8 8233
8d138742
CE
8234ac_outfile=conftest.$ac_objext
8235echo "$lt_simple_link_test_code" >conftest.$ac_ext
8236eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8237_lt_linker_boilerplate=`cat conftest.err`
8238$RM -r conftest*
d9898ee8 8239
8240
8d138742 8241if test -n "$compiler"; then
d9898ee8 8242
8d138742 8243lt_prog_compiler_no_builtin_flag=
d9898ee8 8244
d50284c4 8245if test yes = "$GCC"; then
b0322a85
CE
8246 case $cc_basename in
8247 nvcc*)
8248 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8249 *)
8250 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8251 esac
d9898ee8 8252
b0322a85 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8d138742 8254$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
b0322a85 8255if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8d138742
CE
8256 $as_echo_n "(cached) " >&6
8257else
8258 lt_cv_prog_compiler_rtti_exceptions=no
8259 ac_outfile=conftest.$ac_objext
8260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 8261 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8d138742
CE
8262 # Insert the option either (1) after the last *FLAGS variable, or
8263 # (2) before a word containing "conftest.", or (3) at the end.
8264 # Note that $ac_compile itself does not contain backslashes and begins
8265 # with a dollar sign (not a hyphen), so the echo should work correctly.
8266 # The option is referenced via a variable to avoid confusing sed.
8267 lt_compile=`echo "$ac_compile" | $SED \
8268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8270 -e 's:$: $lt_compiler_flag:'`
b0322a85 8271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8272 (eval "$lt_compile" 2>conftest.err)
8273 ac_status=$?
8274 cat conftest.err >&5
b0322a85 8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8276 if (exit $ac_status) && test -s "$ac_outfile"; then
8277 # The compiler can only warn and ignore the option if not recognized
8278 # So say no if there are warnings other than the usual output.
b0322a85 8279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
8280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8282 lt_cv_prog_compiler_rtti_exceptions=yes
8283 fi
8284 fi
8285 $RM conftest*
d9898ee8 8286
8287fi
b0322a85 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8d138742 8289$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 8290
d50284c4 8291if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8d138742
CE
8292 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8293else
8294 :
8295fi
d9898ee8 8296
8d138742 8297fi
d9898ee8 8298
d9898ee8 8299
d9898ee8 8300
d9898ee8 8301
d9898ee8 8302
d9898ee8 8303
8d138742
CE
8304 lt_prog_compiler_wl=
8305lt_prog_compiler_pic=
8306lt_prog_compiler_static=
d9898ee8 8307
d9898ee8 8308
d50284c4 8309 if test yes = "$GCC"; then
8d138742
CE
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_static='-static'
d9898ee8 8312
8d138742
CE
8313 case $host_os in
8314 aix*)
8315 # All AIX code is PIC.
d50284c4 8316 if test ia64 = "$host_cpu"; then
8d138742
CE
8317 # AIX 5 now supports IA64 processor
8318 lt_prog_compiler_static='-Bstatic'
8319 fi
d50284c4 8320 lt_prog_compiler_pic='-fPIC'
8d138742 8321 ;;
d9898ee8 8322
8d138742
CE
8323 amigaos*)
8324 case $host_cpu in
8325 powerpc)
8326 # see comment about AmigaOS4 .so support
8327 lt_prog_compiler_pic='-fPIC'
8328 ;;
8329 m68k)
8330 # FIXME: we need at least 68020 code to build shared libraries, but
d50284c4
CE
8331 # adding the '-m68020' flag to GCC prevents building anything better,
8332 # like '-m68040'.
8d138742
CE
8333 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8334 ;;
8335 esac
8336 ;;
d9898ee8 8337
8d138742
CE
8338 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8339 # PIC is the default for these OSes.
8340 ;;
d9898ee8 8341
8d138742
CE
8342 mingw* | cygwin* | pw32* | os2* | cegcc*)
8343 # This hack is so that the source file can tell whether it is being
8344 # built for inclusion in a dll (and should export symbols for example).
8345 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8346 # (--disable-auto-import) libraries
8347 lt_prog_compiler_pic='-DDLL_EXPORT'
d50284c4
CE
8348 case $host_os in
8349 os2*)
8350 lt_prog_compiler_static='$wl-static'
8351 ;;
8352 esac
8d138742 8353 ;;
d9898ee8 8354
8d138742
CE
8355 darwin* | rhapsody*)
8356 # PIC is the default on this platform
8357 # Common symbols not allowed in MH_DYLIB files
8358 lt_prog_compiler_pic='-fno-common'
8359 ;;
d9898ee8 8360
b0322a85
CE
8361 haiku*)
8362 # PIC is the default for Haiku.
8363 # The "-static" flag exists, but is broken.
8364 lt_prog_compiler_static=
8365 ;;
8366
8d138742
CE
8367 hpux*)
8368 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8369 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8370 # sets the default TLS model and affects inlining.
8371 case $host_cpu in
8372 hppa*64*)
8373 # +Z the default
8374 ;;
8375 *)
8376 lt_prog_compiler_pic='-fPIC'
8377 ;;
8378 esac
8379 ;;
d9898ee8 8380
8d138742
CE
8381 interix[3-9]*)
8382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8383 # Instead, we relocate shared libraries at runtime.
8384 ;;
d9898ee8 8385
8d138742
CE
8386 msdosdjgpp*)
8387 # Just because we use GCC doesn't mean we suddenly get shared libraries
8388 # on systems that don't support them.
8389 lt_prog_compiler_can_build_shared=no
8390 enable_shared=no
8391 ;;
d9898ee8 8392
8d138742
CE
8393 *nto* | *qnx*)
8394 # QNX uses GNU C++, but need to define -shared option too, otherwise
8395 # it will coredump.
8396 lt_prog_compiler_pic='-fPIC -shared'
8397 ;;
d9898ee8 8398
8d138742
CE
8399 sysv4*MP*)
8400 if test -d /usr/nec; then
8401 lt_prog_compiler_pic=-Kconform_pic
8402 fi
8403 ;;
d9898ee8 8404
8d138742
CE
8405 *)
8406 lt_prog_compiler_pic='-fPIC'
8407 ;;
8408 esac
b0322a85
CE
8409
8410 case $cc_basename in
8411 nvcc*) # Cuda Compiler Driver 2.2
8412 lt_prog_compiler_wl='-Xlinker '
8413 if test -n "$lt_prog_compiler_pic"; then
8414 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8415 fi
8416 ;;
8417 esac
8d138742
CE
8418 else
8419 # PORTME Check for flag to pass linker flags through the system compiler.
8420 case $host_os in
8421 aix*)
8422 lt_prog_compiler_wl='-Wl,'
d50284c4 8423 if test ia64 = "$host_cpu"; then
8d138742
CE
8424 # AIX 5 now supports IA64 processor
8425 lt_prog_compiler_static='-Bstatic'
8426 else
8427 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8428 fi
8429 ;;
d9898ee8 8430
d50284c4
CE
8431 darwin* | rhapsody*)
8432 # PIC is the default on this platform
8433 # Common symbols not allowed in MH_DYLIB files
8434 lt_prog_compiler_pic='-fno-common'
8435 case $cc_basename in
8436 nagfor*)
8437 # NAG Fortran compiler
8438 lt_prog_compiler_wl='-Wl,-Wl,,'
8439 lt_prog_compiler_pic='-PIC'
8440 lt_prog_compiler_static='-Bstatic'
8441 ;;
8442 esac
8443 ;;
8444
8d138742
CE
8445 mingw* | cygwin* | pw32* | os2* | cegcc*)
8446 # This hack is so that the source file can tell whether it is being
8447 # built for inclusion in a dll (and should export symbols for example).
8448 lt_prog_compiler_pic='-DDLL_EXPORT'
d50284c4
CE
8449 case $host_os in
8450 os2*)
8451 lt_prog_compiler_static='$wl-static'
8452 ;;
8453 esac
8d138742 8454 ;;
d9898ee8 8455
8d138742
CE
8456 hpux9* | hpux10* | hpux11*)
8457 lt_prog_compiler_wl='-Wl,'
8458 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8459 # not for PA HP-UX.
8460 case $host_cpu in
8461 hppa*64*|ia64*)
8462 # +Z the default
8463 ;;
8464 *)
8465 lt_prog_compiler_pic='+Z'
8466 ;;
8467 esac
8468 # Is there a better lt_prog_compiler_static that works with the bundled CC?
d50284c4 8469 lt_prog_compiler_static='$wl-a ${wl}archive'
8d138742 8470 ;;
d9898ee8 8471
8d138742
CE
8472 irix5* | irix6* | nonstopux*)
8473 lt_prog_compiler_wl='-Wl,'
8474 # PIC (with -KPIC) is the default.
8475 lt_prog_compiler_static='-non_shared'
8476 ;;
d9898ee8 8477
d50284c4 8478 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8d138742 8479 case $cc_basename in
d50284c4 8480 # old Intel for x86_64, which still supported -KPIC.
8d138742
CE
8481 ecc*)
8482 lt_prog_compiler_wl='-Wl,'
8483 lt_prog_compiler_pic='-KPIC'
8484 lt_prog_compiler_static='-static'
8485 ;;
8486 # icc used to be incompatible with GCC.
8487 # ICC 10 doesn't accept -KPIC any more.
8488 icc* | ifort*)
8489 lt_prog_compiler_wl='-Wl,'
8490 lt_prog_compiler_pic='-fPIC'
8491 lt_prog_compiler_static='-static'
8492 ;;
8493 # Lahey Fortran 8.1.
8494 lf95*)
8495 lt_prog_compiler_wl='-Wl,'
8496 lt_prog_compiler_pic='--shared'
8497 lt_prog_compiler_static='--static'
8498 ;;
b0322a85
CE
8499 nagfor*)
8500 # NAG Fortran compiler
8501 lt_prog_compiler_wl='-Wl,-Wl,,'
8502 lt_prog_compiler_pic='-PIC'
8503 lt_prog_compiler_static='-Bstatic'
8504 ;;
d50284c4
CE
8505 tcc*)
8506 # Fabrice Bellard et al's Tiny C Compiler
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_pic='-fPIC'
8509 lt_prog_compiler_static='-static'
8510 ;;
b0322a85 8511 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8d138742
CE
8512 # Portland Group compilers (*not* the Pentium gcc compiler,
8513 # which looks to be a dead project)
8514 lt_prog_compiler_wl='-Wl,'
8515 lt_prog_compiler_pic='-fpic'
8516 lt_prog_compiler_static='-Bstatic'
8517 ;;
8518 ccc*)
8519 lt_prog_compiler_wl='-Wl,'
8520 # All Alpha code is PIC.
8521 lt_prog_compiler_static='-non_shared'
8522 ;;
b0322a85
CE
8523 xl* | bgxl* | bgf* | mpixl*)
8524 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8d138742
CE
8525 lt_prog_compiler_wl='-Wl,'
8526 lt_prog_compiler_pic='-qpic'
8527 lt_prog_compiler_static='-qstaticlink'
8528 ;;
8529 *)
8530 case `$CC -V 2>&1 | sed 5q` in
b0322a85
CE
8531 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8532 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-Bstatic'
8535 lt_prog_compiler_wl=''
8536 ;;
8537 *Sun\ F* | *Sun*Fortran*)
8538 lt_prog_compiler_pic='-KPIC'
8539 lt_prog_compiler_static='-Bstatic'
8540 lt_prog_compiler_wl='-Qoption ld '
8541 ;;
8d138742
CE
8542 *Sun\ C*)
8543 # Sun C 5.9
8544 lt_prog_compiler_pic='-KPIC'
8545 lt_prog_compiler_static='-Bstatic'
8546 lt_prog_compiler_wl='-Wl,'
8547 ;;
b0322a85
CE
8548 *Intel*\ [CF]*Compiler*)
8549 lt_prog_compiler_wl='-Wl,'
8550 lt_prog_compiler_pic='-fPIC'
8551 lt_prog_compiler_static='-static'
8552 ;;
8553 *Portland\ Group*)
8554 lt_prog_compiler_wl='-Wl,'
8555 lt_prog_compiler_pic='-fpic'
8d138742 8556 lt_prog_compiler_static='-Bstatic'
8d138742
CE
8557 ;;
8558 esac
8559 ;;
8560 esac
8561 ;;
d9898ee8 8562
8d138742
CE
8563 newsos6)
8564 lt_prog_compiler_pic='-KPIC'
8565 lt_prog_compiler_static='-Bstatic'
8566 ;;
d9898ee8 8567
8d138742
CE
8568 *nto* | *qnx*)
8569 # QNX uses GNU C++, but need to define -shared option too, otherwise
8570 # it will coredump.
8571 lt_prog_compiler_pic='-fPIC -shared'
8572 ;;
d9898ee8 8573
8d138742
CE
8574 osf3* | osf4* | osf5*)
8575 lt_prog_compiler_wl='-Wl,'
8576 # All OSF/1 code is PIC.
8577 lt_prog_compiler_static='-non_shared'
8578 ;;
d9898ee8 8579
8d138742
CE
8580 rdos*)
8581 lt_prog_compiler_static='-non_shared'
8582 ;;
d9898ee8 8583
8d138742
CE
8584 solaris*)
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-Bstatic'
8587 case $cc_basename in
b0322a85 8588 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8d138742
CE
8589 lt_prog_compiler_wl='-Qoption ld ';;
8590 *)
8591 lt_prog_compiler_wl='-Wl,';;
8592 esac
8593 ;;
d9898ee8 8594
8d138742
CE
8595 sunos4*)
8596 lt_prog_compiler_wl='-Qoption ld '
8597 lt_prog_compiler_pic='-PIC'
8598 lt_prog_compiler_static='-Bstatic'
8599 ;;
d9898ee8 8600
8d138742
CE
8601 sysv4 | sysv4.2uw2* | sysv4.3*)
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_pic='-KPIC'
8604 lt_prog_compiler_static='-Bstatic'
8605 ;;
d9898ee8 8606
8d138742 8607 sysv4*MP*)
d50284c4 8608 if test -d /usr/nec; then
8d138742
CE
8609 lt_prog_compiler_pic='-Kconform_pic'
8610 lt_prog_compiler_static='-Bstatic'
8611 fi
8612 ;;
d9898ee8 8613
8d138742
CE
8614 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8615 lt_prog_compiler_wl='-Wl,'
8616 lt_prog_compiler_pic='-KPIC'
8617 lt_prog_compiler_static='-Bstatic'
8618 ;;
d9898ee8 8619
8d138742
CE
8620 unicos*)
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_can_build_shared=no
8623 ;;
8624
8625 uts4*)
8626 lt_prog_compiler_pic='-pic'
8627 lt_prog_compiler_static='-Bstatic'
d9898ee8 8628 ;;
8d138742 8629
d9898ee8 8630 *)
8d138742 8631 lt_prog_compiler_can_build_shared=no
d9898ee8 8632 ;;
8633 esac
8d138742 8634 fi
d9898ee8 8635
8d138742 8636case $host_os in
d50284c4 8637 # For platforms that do not support PIC, -DPIC is meaningless:
8d138742
CE
8638 *djgpp*)
8639 lt_prog_compiler_pic=
d9898ee8 8640 ;;
8d138742
CE
8641 *)
8642 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8643 ;;
8644esac
d9898ee8 8645
b0322a85
CE
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8647$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8648if ${lt_cv_prog_compiler_pic+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650else
8651 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8652fi
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8654$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8655lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
d9898ee8 8656
d9898ee8 8657#
8d138742 8658# Check to make sure the PIC flag actually works.
d9898ee8 8659#
8d138742 8660if test -n "$lt_prog_compiler_pic"; then
b0322a85 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8d138742 8662$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
b0322a85 8663if ${lt_cv_prog_compiler_pic_works+:} false; then :
8d138742
CE
8664 $as_echo_n "(cached) " >&6
8665else
8666 lt_cv_prog_compiler_pic_works=no
8667 ac_outfile=conftest.$ac_objext
8668 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d50284c4 8669 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8d138742
CE
8670 # Insert the option either (1) after the last *FLAGS variable, or
8671 # (2) before a word containing "conftest.", or (3) at the end.
8672 # Note that $ac_compile itself does not contain backslashes and begins
8673 # with a dollar sign (not a hyphen), so the echo should work correctly.
8674 # The option is referenced via a variable to avoid confusing sed.
8675 lt_compile=`echo "$ac_compile" | $SED \
8676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8678 -e 's:$: $lt_compiler_flag:'`
b0322a85 8679 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8680 (eval "$lt_compile" 2>conftest.err)
8681 ac_status=$?
8682 cat conftest.err >&5
b0322a85 8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8684 if (exit $ac_status) && test -s "$ac_outfile"; then
8685 # The compiler can only warn and ignore the option if not recognized
8686 # So say no if there are warnings other than the usual output.
b0322a85 8687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8d138742
CE
8688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8690 lt_cv_prog_compiler_pic_works=yes
8691 fi
8692 fi
8693 $RM conftest*
d9898ee8 8694
8d138742 8695fi
b0322a85 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8d138742 8697$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 8698
d50284c4 8699if test yes = "$lt_cv_prog_compiler_pic_works"; then
8d138742
CE
8700 case $lt_prog_compiler_pic in
8701 "" | " "*) ;;
8702 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8703 esac
8704else
8705 lt_prog_compiler_pic=
8706 lt_prog_compiler_can_build_shared=no
8707fi
d9898ee8 8708
8d138742 8709fi
d9898ee8 8710
d9898ee8 8711
d9898ee8 8712
d9898ee8 8713
d9898ee8 8714
d9898ee8 8715
b0322a85
CE
8716
8717
8718
8719
8720
8d138742
CE
8721#
8722# Check to make sure the static flag actually works.
8723#
8724wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
b0322a85 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8d138742 8726$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
b0322a85 8727if ${lt_cv_prog_compiler_static_works+:} false; then :
8d138742
CE
8728 $as_echo_n "(cached) " >&6
8729else
8730 lt_cv_prog_compiler_static_works=no
d50284c4 8731 save_LDFLAGS=$LDFLAGS
8d138742
CE
8732 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8733 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8734 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8735 # The linker can only warn and ignore the option if not recognized
8736 # So say no if there are warnings
8737 if test -s conftest.err; then
8738 # Append any errors to the config.log.
8739 cat conftest.err 1>&5
b0322a85 8740 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8d138742
CE
8741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8742 if diff conftest.exp conftest.er2 >/dev/null; then
8743 lt_cv_prog_compiler_static_works=yes
8744 fi
8745 else
8746 lt_cv_prog_compiler_static_works=yes
8747 fi
8748 fi
8749 $RM -r conftest*
d50284c4 8750 LDFLAGS=$save_LDFLAGS
d9898ee8 8751
8d138742 8752fi
b0322a85 8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8d138742 8754$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 8755
d50284c4 8756if test yes = "$lt_cv_prog_compiler_static_works"; then
8d138742
CE
8757 :
8758else
8759 lt_prog_compiler_static=
8760fi
d9898ee8 8761
d9898ee8 8762
d9898ee8 8763
d9898ee8 8764
d9898ee8 8765
d9898ee8 8766
d9898ee8 8767
b0322a85 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8769$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8770if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8771 $as_echo_n "(cached) " >&6
8772else
8773 lt_cv_prog_compiler_c_o=no
8774 $RM -r conftest 2>/dev/null
8775 mkdir conftest
8776 cd conftest
8777 mkdir out
8778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8779
8d138742
CE
8780 lt_compiler_flag="-o out/conftest2.$ac_objext"
8781 # Insert the option either (1) after the last *FLAGS variable, or
8782 # (2) before a word containing "conftest.", or (3) at the end.
8783 # Note that $ac_compile itself does not contain backslashes and begins
8784 # with a dollar sign (not a hyphen), so the echo should work correctly.
8785 lt_compile=`echo "$ac_compile" | $SED \
8786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8788 -e 's:$: $lt_compiler_flag:'`
b0322a85 8789 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8790 (eval "$lt_compile" 2>out/conftest.err)
8791 ac_status=$?
8792 cat out/conftest.err >&5
b0322a85 8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8795 then
8796 # The compiler can only warn and ignore the option if not recognized
8797 # So say no if there are warnings
b0322a85 8798 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8799 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8800 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8801 lt_cv_prog_compiler_c_o=yes
8802 fi
8803 fi
8804 chmod u+w . 2>&5
8805 $RM conftest*
8806 # SGI C++ compiler will create directory out/ii_files/ for
8807 # template instantiation
8808 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8809 $RM out/* && rmdir out
8810 cd ..
8811 $RM -r conftest
8812 $RM conftest*
d9898ee8 8813
8d138742 8814fi
b0322a85 8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8816$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8817
d9898ee8 8818
d9898ee8 8819
d9898ee8 8820
d9898ee8 8821
d9898ee8 8822
b0322a85 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8d138742 8824$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
b0322a85 8825if ${lt_cv_prog_compiler_c_o+:} false; then :
8d138742
CE
8826 $as_echo_n "(cached) " >&6
8827else
8828 lt_cv_prog_compiler_c_o=no
8829 $RM -r conftest 2>/dev/null
8830 mkdir conftest
8831 cd conftest
8832 mkdir out
8833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8834
8d138742
CE
8835 lt_compiler_flag="-o out/conftest2.$ac_objext"
8836 # Insert the option either (1) after the last *FLAGS variable, or
8837 # (2) before a word containing "conftest.", or (3) at the end.
8838 # Note that $ac_compile itself does not contain backslashes and begins
8839 # with a dollar sign (not a hyphen), so the echo should work correctly.
8840 lt_compile=`echo "$ac_compile" | $SED \
8841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8843 -e 's:$: $lt_compiler_flag:'`
b0322a85 8844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8d138742
CE
8845 (eval "$lt_compile" 2>out/conftest.err)
8846 ac_status=$?
8847 cat out/conftest.err >&5
b0322a85 8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8d138742
CE
8849 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8850 then
8851 # The compiler can only warn and ignore the option if not recognized
8852 # So say no if there are warnings
b0322a85 8853 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8d138742
CE
8854 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8855 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8856 lt_cv_prog_compiler_c_o=yes
8857 fi
8858 fi
8859 chmod u+w . 2>&5
8860 $RM conftest*
8861 # SGI C++ compiler will create directory out/ii_files/ for
8862 # template instantiation
8863 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8864 $RM out/* && rmdir out
8865 cd ..
8866 $RM -r conftest
8867 $RM conftest*
d9898ee8 8868
8d138742 8869fi
b0322a85 8870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8d138742 8871$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8872
d9898ee8 8873
d9898ee8 8874
d9898ee8 8875
d50284c4
CE
8876hard_links=nottested
8877if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8d138742 8878 # do not overwrite the value of need_locks provided by the user
b0322a85 8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8d138742
CE
8880$as_echo_n "checking if we can lock with hard links... " >&6; }
8881 hard_links=yes
8882 $RM conftest*
8883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8884 touch conftest.a
8885 ln conftest.a conftest.b 2>&5 || hard_links=no
8886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
b0322a85 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8d138742 8888$as_echo "$hard_links" >&6; }
d50284c4
CE
8889 if test no = "$hard_links"; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8891$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8d138742
CE
8892 need_locks=warn
8893 fi
8894else
8895 need_locks=no
8896fi
d9898ee8 8897
d9898ee8 8898
d9898ee8 8899
d9898ee8 8900
d9898ee8 8901
d9898ee8 8902
b0322a85 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8d138742 8904$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8905
8d138742
CE
8906 runpath_var=
8907 allow_undefined_flag=
8908 always_export_symbols=no
8909 archive_cmds=
8910 archive_expsym_cmds=
8911 compiler_needs_object=no
8912 enable_shared_with_static_runtimes=no
8913 export_dynamic_flag_spec=
8914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8915 hardcode_automatic=no
8916 hardcode_direct=no
8917 hardcode_direct_absolute=no
8918 hardcode_libdir_flag_spec=
8d138742
CE
8919 hardcode_libdir_separator=
8920 hardcode_minus_L=no
8921 hardcode_shlibpath_var=unsupported
8922 inherit_rpath=no
8923 link_all_deplibs=unknown
8924 module_cmds=
8925 module_expsym_cmds=
8926 old_archive_from_new_cmds=
8927 old_archive_from_expsyms_cmds=
8928 thread_safe_flag_spec=
8929 whole_archive_flag_spec=
8930 # include_expsyms should be a list of space-separated symbols to be *always*
8931 # included in the symbol list
8932 include_expsyms=
8933 # exclude_expsyms can be an extended regexp of symbols to exclude
d50284c4
CE
8934 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8935 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8936 # as well as any symbol that contains 'd'.
8d138742
CE
8937 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8938 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8939 # platforms (ab)use it in PIC code, but their linkers get confused if
8940 # the symbol is explicitly referenced. Since portable code cannot
8941 # rely on this symbol name, it's probably fine to never include it in
8942 # preloaded symbol tables.
8943 # Exclude shared library initialization/finalization symbols.
8944 extract_expsyms_cmds=
d9898ee8 8945
8d138742
CE
8946 case $host_os in
8947 cygwin* | mingw* | pw32* | cegcc*)
8948 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8949 # When not using gcc, we currently assume that we are using
8950 # Microsoft Visual C++.
d50284c4 8951 if test yes != "$GCC"; then
8d138742
CE
8952 with_gnu_ld=no
8953 fi
8954 ;;
8955 interix*)
8956 # we just hope/assume this is gcc and not c89 (= MSVC++)
8957 with_gnu_ld=yes
8958 ;;
d50284c4 8959 openbsd* | bitrig*)
8d138742
CE
8960 with_gnu_ld=no
8961 ;;
8962 esac
d9898ee8 8963
8d138742 8964 ld_shlibs=yes
b0322a85
CE
8965
8966 # On some targets, GNU ld is compatible enough with the native linker
8967 # that we're better off using the native interface for both.
8968 lt_use_gnu_ld_interface=no
d50284c4 8969 if test yes = "$with_gnu_ld"; then
b0322a85
CE
8970 case $host_os in
8971 aix*)
8972 # The AIX port of GNU ld has always aspired to compatibility
8973 # with the native linker. However, as the warning in the GNU ld
8974 # block says, versions before 2.19.5* couldn't really create working
8975 # shared libraries, regardless of the interface used.
8976 case `$LD -v 2>&1` in
8977 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8978 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8979 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8980 *)
8981 lt_use_gnu_ld_interface=yes
8982 ;;
8983 esac
8984 ;;
8985 *)
8986 lt_use_gnu_ld_interface=yes
8987 ;;
8988 esac
8989 fi
8990
d50284c4 8991 if test yes = "$lt_use_gnu_ld_interface"; then
8d138742 8992 # If archive_cmds runs LD, not CC, wlarc should be empty
d50284c4 8993 wlarc='$wl'
d9898ee8 8994
8d138742
CE
8995 # Set some defaults for GNU ld with shared library support. These
8996 # are reset later if shared libraries are not supported. Putting them
8997 # here allows them to be overridden if necessary.
8998 runpath_var=LD_RUN_PATH
d50284c4
CE
8999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9000 export_dynamic_flag_spec='$wl--export-dynamic'
8d138742
CE
9001 # ancient GNU ld didn't support --whole-archive et. al.
9002 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
d50284c4 9003 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8d138742
CE
9004 else
9005 whole_archive_flag_spec=
9006 fi
9007 supports_anon_versioning=no
d50284c4 9008 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
b0322a85 9009 *GNU\ gold*) supports_anon_versioning=yes ;;
8d138742
CE
9010 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9011 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9012 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9013 *\ 2.11.*) ;; # other 2.11 versions
9014 *) supports_anon_versioning=yes ;;
9015 esac
d9898ee8 9016
8d138742
CE
9017 # See if GNU ld supports shared libraries.
9018 case $host_os in
9019 aix[3-9]*)
9020 # On AIX/PPC, the GNU linker is very broken
d50284c4 9021 if test ia64 != "$host_cpu"; then
8d138742
CE
9022 ld_shlibs=no
9023 cat <<_LT_EOF 1>&2
d9898ee8 9024
b0322a85 9025*** Warning: the GNU linker, at least up to release 2.19, is reported
8d138742
CE
9026*** to be unable to reliably create shared libraries on AIX.
9027*** Therefore, libtool is disabling shared libraries support. If you
b0322a85
CE
9028*** really care for shared libraries, you may want to install binutils
9029*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9030*** You will then need to restart the configuration process.
d9898ee8 9031
8d138742
CE
9032_LT_EOF
9033 fi
9034 ;;
d9898ee8 9035
8d138742
CE
9036 amigaos*)
9037 case $host_cpu in
9038 powerpc)
9039 # see comment about AmigaOS4 .so support
d50284c4 9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
9041 archive_expsym_cmds=''
9042 ;;
9043 m68k)
9044 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)'
9045 hardcode_libdir_flag_spec='-L$libdir'
9046 hardcode_minus_L=yes
9047 ;;
9048 esac
9049 ;;
d9898ee8 9050
8d138742
CE
9051 beos*)
9052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9053 allow_undefined_flag=unsupported
9054 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9055 # support --undefined. This deserves some investigation. FIXME
d50284c4 9056 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
9057 else
9058 ld_shlibs=no
9059 fi
9060 ;;
d9898ee8 9061
8d138742
CE
9062 cygwin* | mingw* | pw32* | cegcc*)
9063 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9064 # as there is no search path for DLLs.
9065 hardcode_libdir_flag_spec='-L$libdir'
d50284c4 9066 export_dynamic_flag_spec='$wl--export-all-symbols'
8d138742
CE
9067 allow_undefined_flag=unsupported
9068 always_export_symbols=no
9069 enable_shared_with_static_runtimes=yes
b0322a85
CE
9070 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'
9071 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
d9898ee8 9072
8d138742 9073 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
d50284c4
CE
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9075 # If the export-symbols file already is a .def file, use it as
9076 # is; otherwise, prepend EXPORTS...
9077 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9078 cp $export_symbols $output_objdir/$soname.def;
9079 else
9080 echo EXPORTS > $output_objdir/$soname.def;
9081 cat $export_symbols >> $output_objdir/$soname.def;
9082 fi~
9083 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8d138742
CE
9084 else
9085 ld_shlibs=no
9086 fi
9087 ;;
d9898ee8 9088
b0322a85 9089 haiku*)
d50284c4 9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
b0322a85
CE
9091 link_all_deplibs=yes
9092 ;;
9093
d50284c4
CE
9094 os2*)
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 hardcode_minus_L=yes
9097 allow_undefined_flag=unsupported
9098 shrext_cmds=.dll
9099 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9100 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9101 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9102 $ECHO EXPORTS >> $output_objdir/$libname.def~
9103 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9104 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9105 emximp -o $lib $output_objdir/$libname.def'
9106 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9107 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9108 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9109 $ECHO EXPORTS >> $output_objdir/$libname.def~
9110 prefix_cmds="$SED"~
9111 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9112 prefix_cmds="$prefix_cmds -e 1d";
9113 fi~
9114 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9115 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9116 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9117 emximp -o $lib $output_objdir/$libname.def'
9118 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9119 enable_shared_with_static_runtimes=yes
9120 ;;
9121
8d138742
CE
9122 interix[3-9]*)
9123 hardcode_direct=no
9124 hardcode_shlibpath_var=no
d50284c4
CE
9125 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9126 export_dynamic_flag_spec='$wl-E'
8d138742
CE
9127 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9128 # Instead, shared libraries are loaded at an image base (0x10000000 by
9129 # default) and relocated if they conflict, which is a slow very memory
9130 # consuming and fragmenting process. To avoid this, we pick a random,
9131 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9132 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
d50284c4
CE
9133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9134 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'
8d138742 9135 ;;
d9898ee8 9136
b0322a85 9137 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8d138742 9138 tmp_diet=no
d50284c4 9139 if test linux-dietlibc = "$host_os"; then
8d138742
CE
9140 case $cc_basename in
9141 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9142 esac
9143 fi
9144 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
d50284c4 9145 && test no = "$tmp_diet"
8d138742 9146 then
b0322a85 9147 tmp_addflag=' $pic_flag'
8d138742
CE
9148 tmp_sharedflag='-shared'
9149 case $cc_basename,$host_cpu in
9150 pgcc*) # Portland Group C compiler
d50284c4 9151 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
9152 tmp_addflag=' $pic_flag'
9153 ;;
b0322a85
CE
9154 pgf77* | pgf90* | pgf95* | pgfortran*)
9155 # Portland Group f77 and f90 compilers
d50284c4 9156 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
9157 tmp_addflag=' $pic_flag -Mnomain' ;;
9158 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9159 tmp_addflag=' -i_dynamic' ;;
9160 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9161 tmp_addflag=' -i_dynamic -nofor_main' ;;
9162 ifc* | ifort*) # Intel Fortran compiler
9163 tmp_addflag=' -nofor_main' ;;
9164 lf95*) # Lahey Fortran 8.1
9165 whole_archive_flag_spec=
9166 tmp_sharedflag='--shared' ;;
d50284c4
CE
9167 nagfor*) # NAGFOR 5.3
9168 tmp_sharedflag='-Wl,-shared' ;;
b0322a85 9169 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8d138742
CE
9170 tmp_sharedflag='-qmkshrobj'
9171 tmp_addflag= ;;
b0322a85 9172 nvcc*) # Cuda Compiler Driver 2.2
d50284c4 9173 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'
b0322a85
CE
9174 compiler_needs_object=yes
9175 ;;
8d138742
CE
9176 esac
9177 case `$CC -V 2>&1 | sed 5q` in
9178 *Sun\ C*) # Sun C 5.9
d50284c4 9179 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
9180 compiler_needs_object=yes
9181 tmp_sharedflag='-G' ;;
9182 *Sun\ F*) # Sun Fortran 8.3
9183 tmp_sharedflag='-G' ;;
9184 esac
d50284c4 9185 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
d9898ee8 9186
d50284c4 9187 if test yes = "$supports_anon_versioning"; then
8d138742 9188 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
9189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9190 echo "local: *; };" >> $output_objdir/$libname.ver~
9191 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8d138742 9192 fi
d9898ee8 9193
8d138742 9194 case $cc_basename in
d50284c4
CE
9195 tcc*)
9196 export_dynamic_flag_spec='-rdynamic'
9197 ;;
b0322a85 9198 xlf* | bgf* | bgxlf* | mpixlf*)
8d138742
CE
9199 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9200 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
d50284c4 9201 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
b0322a85 9202 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
d50284c4 9203 if test yes = "$supports_anon_versioning"; then
8d138742 9204 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
d50284c4
CE
9205 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9206 echo "local: *; };" >> $output_objdir/$libname.ver~
9207 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8d138742
CE
9208 fi
9209 ;;
9210 esac
9211 else
9212 ld_shlibs=no
9213 fi
9214 ;;
d9898ee8 9215
8d138742
CE
9216 netbsd*)
9217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9218 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9219 wlarc=
9220 else
d50284c4
CE
9221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9222 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
9223 fi
9224 ;;
d9898ee8 9225
8d138742
CE
9226 solaris*)
9227 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9228 ld_shlibs=no
9229 cat <<_LT_EOF 1>&2
d9898ee8 9230
8d138742
CE
9231*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9232*** create shared libraries on Solaris systems. Therefore, libtool
9233*** is disabling shared libraries support. We urge you to upgrade GNU
9234*** binutils to release 2.9.1 or newer. Another option is to modify
9235*** your PATH or compiler configuration so that the native linker is
9236*** used, and then restart.
d9898ee8 9237
8d138742
CE
9238_LT_EOF
9239 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
9240 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9241 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
9242 else
9243 ld_shlibs=no
9244 fi
9245 ;;
d9898ee8 9246
8d138742
CE
9247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9248 case `$LD -v 2>&1` in
9249 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9250 ld_shlibs=no
9251 cat <<_LT_EOF 1>&2
d9898ee8 9252
d50284c4 9253*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8d138742
CE
9254*** reliably create shared libraries on SCO systems. Therefore, libtool
9255*** is disabling shared libraries support. We urge you to upgrade GNU
9256*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9257*** your PATH or compiler configuration so that the native linker is
9258*** used, and then restart.
d9898ee8 9259
8d138742
CE
9260_LT_EOF
9261 ;;
9262 *)
9263 # For security reasons, it is highly recommended that you always
9264 # use absolute paths for naming shared libraries, and exclude the
9265 # DT_RUNPATH tag from executables and libraries. But doing so
9266 # requires that you compile everything twice, which is a pain.
9267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
9268 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8d138742
CE
9271 else
9272 ld_shlibs=no
9273 fi
9274 ;;
9275 esac
9276 ;;
d9898ee8 9277
8d138742
CE
9278 sunos4*)
9279 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9280 wlarc=
9281 hardcode_direct=yes
9282 hardcode_shlibpath_var=no
9283 ;;
d9898ee8 9284
8d138742
CE
9285 *)
9286 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
d50284c4
CE
9287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9288 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
9289 else
9290 ld_shlibs=no
9291 fi
9292 ;;
9293 esac
d9898ee8 9294
d50284c4 9295 if test no = "$ld_shlibs"; then
8d138742
CE
9296 runpath_var=
9297 hardcode_libdir_flag_spec=
9298 export_dynamic_flag_spec=
9299 whole_archive_flag_spec=
9300 fi
9301 else
9302 # PORTME fill in a description of your system's linker (not GNU ld)
9303 case $host_os in
9304 aix3*)
9305 allow_undefined_flag=unsupported
9306 always_export_symbols=yes
9307 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'
9308 # Note: this linker hardcodes the directories in LIBPATH if there
9309 # are no directories specified by -L.
9310 hardcode_minus_L=yes
d50284c4 9311 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8d138742
CE
9312 # Neither direct hardcoding nor static linking is supported with a
9313 # broken collect2.
9314 hardcode_direct=unsupported
9315 fi
9316 ;;
d9898ee8 9317
8d138742 9318 aix[4-9]*)
d50284c4 9319 if test ia64 = "$host_cpu"; then
8d138742
CE
9320 # On IA64, the linker does run time linking by default, so we don't
9321 # have to do anything special.
9322 aix_use_runtimelinking=no
9323 exp_sym_flag='-Bexport'
d50284c4 9324 no_entry_flag=
8d138742
CE
9325 else
9326 # If we're using GNU nm, then we don't want the "-C" option.
d50284c4
CE
9327 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9328 # Without the "-l" option, or with the "-B" option, AIX nm treats
9329 # weak defined symbols like other global defined symbols, whereas
9330 # GNU nm marks them as "W".
9331 # While the 'weak' keyword is ignored in the Export File, we need
9332 # it in the Import File for the 'aix-soname' feature, so we have
9333 # to replace the "-B" option with "-P" for AIX nm.
8d138742 9334 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
d50284c4 9335 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8d138742 9336 else
d50284c4 9337 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8d138742
CE
9338 fi
9339 aix_use_runtimelinking=no
d9898ee8 9340
8d138742
CE
9341 # Test if we are trying to use run time linking or normal
9342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
d50284c4
CE
9343 # have runtime linking enabled, and use it for executables.
9344 # For shared libraries, we enable/disable runtime linking
9345 # depending on the kind of the shared library created -
9346 # when "with_aix_soname,aix_use_runtimelinking" is:
9347 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9348 # "aix,yes" lib.so shared, rtl:yes, for executables
9349 # lib.a static archive
9350 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9351 # lib.a(lib.so.V) shared, rtl:no, for executables
9352 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9353 # lib.a(lib.so.V) shared, rtl:no
9354 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9355 # lib.a static archive
8d138742
CE
9356 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9357 for ld_flag in $LDFLAGS; do
d50284c4 9358 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8d138742
CE
9359 aix_use_runtimelinking=yes
9360 break
9361 fi
9362 done
d50284c4
CE
9363 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9364 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9365 # so we don't have lib.a shared libs to link our executables.
9366 # We have to force runtime linking in this case.
9367 aix_use_runtimelinking=yes
9368 LDFLAGS="$LDFLAGS -Wl,-brtl"
9369 fi
8d138742
CE
9370 ;;
9371 esac
d9898ee8 9372
8d138742
CE
9373 exp_sym_flag='-bexport'
9374 no_entry_flag='-bnoentry'
9375 fi
d9898ee8 9376
8d138742
CE
9377 # When large executables or shared objects are built, AIX ld can
9378 # have problems creating the table of contents. If linking a library
9379 # or program results in "error TOC overflow" add -mminimal-toc to
9380 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9381 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 9382
8d138742
CE
9383 archive_cmds=''
9384 hardcode_direct=yes
9385 hardcode_direct_absolute=yes
9386 hardcode_libdir_separator=':'
9387 link_all_deplibs=yes
d50284c4
CE
9388 file_list_spec='$wl-f,'
9389 case $with_aix_soname,$aix_use_runtimelinking in
9390 aix,*) ;; # traditional, no import file
9391 svr4,* | *,yes) # use import file
9392 # The Import File defines what to hardcode.
9393 hardcode_direct=no
9394 hardcode_direct_absolute=no
9395 ;;
9396 esac
d9898ee8 9397
d50284c4 9398 if test yes = "$GCC"; then
8d138742
CE
9399 case $host_os in aix4.[012]|aix4.[012].*)
9400 # We only want to do this on AIX 4.2 and lower, the check
9401 # below for broken collect2 doesn't work under 4.3+
d50284c4 9402 collect2name=`$CC -print-prog-name=collect2`
8d138742
CE
9403 if test -f "$collect2name" &&
9404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9405 then
9406 # We have reworked collect2
9407 :
9408 else
9409 # We have old collect2
9410 hardcode_direct=unsupported
9411 # It fails to find uninstalled libraries when the uninstalled
9412 # path is not listed in the libpath. Setting hardcode_minus_L
9413 # to unsupported forces relinking
9414 hardcode_minus_L=yes
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_libdir_separator=
9417 fi
9418 ;;
9419 esac
9420 shared_flag='-shared'
d50284c4
CE
9421 if test yes = "$aix_use_runtimelinking"; then
9422 shared_flag="$shared_flag "'$wl-G'
8d138742 9423 fi
d50284c4
CE
9424 # Need to ensure runtime linking is disabled for the traditional
9425 # shared library, or the linker may eventually find shared libraries
9426 # /with/ Import File - we do not want to mix them.
9427 shared_flag_aix='-shared'
9428 shared_flag_svr4='-shared $wl-G'
8d138742
CE
9429 else
9430 # not using gcc
d50284c4 9431 if test ia64 = "$host_cpu"; then
8d138742
CE
9432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9433 # chokes on -Wl,-G. The following line is correct:
9434 shared_flag='-G'
9435 else
d50284c4
CE
9436 if test yes = "$aix_use_runtimelinking"; then
9437 shared_flag='$wl-G'
8d138742 9438 else
d50284c4 9439 shared_flag='$wl-bM:SRE'
8d138742 9440 fi
d50284c4
CE
9441 shared_flag_aix='$wl-bM:SRE'
9442 shared_flag_svr4='$wl-G'
8d138742
CE
9443 fi
9444 fi
d9898ee8 9445
d50284c4 9446 export_dynamic_flag_spec='$wl-bexpall'
8d138742
CE
9447 # It seems that -bexpall does not export symbols beginning with
9448 # underscore (_), so it is better to generate a list of symbols to export.
9449 always_export_symbols=yes
d50284c4 9450 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8d138742
CE
9451 # Warning - without using the other runtime loading flags (-brtl),
9452 # -berok will link without error, but may produce a broken library.
9453 allow_undefined_flag='-berok'
9454 # Determine the default libpath from the value encoded in an
9455 # empty executable.
d50284c4 9456 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
9457 aix_libpath=$lt_cv_aix_libpath
9458else
9459 if ${lt_cv_aix_libpath_+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461else
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 9463/* end confdefs.h. */
d9898ee8 9464
8d138742
CE
9465int
9466main ()
9467{
d9898ee8 9468
8d138742
CE
9469 ;
9470 return 0;
9471}
9472_ACEOF
b0322a85 9473if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9474
b0322a85
CE
9475 lt_aix_libpath_sed='
9476 /Import File Strings/,/^$/ {
9477 /^0/ {
9478 s/^0 *\([^ ]*\) *$/\1/
9479 p
9480 }
9481 }'
9482 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9483 # Check for a 64-bit object if we didn't find anything.
9484 if test -z "$lt_cv_aix_libpath_"; then
9485 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9486 fi
9487fi
9488rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 if test -z "$lt_cv_aix_libpath_"; then
d50284c4 9491 lt_cv_aix_libpath_=/usr/lib:/lib
b0322a85 9492 fi
d9898ee8 9493
8d138742 9494fi
d9898ee8 9495
b0322a85
CE
9496 aix_libpath=$lt_cv_aix_libpath_
9497fi
d9898ee8 9498
d50284c4
CE
9499 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9500 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8d138742 9501 else
d50284c4
CE
9502 if test ia64 = "$host_cpu"; then
9503 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8d138742 9504 allow_undefined_flag="-z nodefs"
d50284c4 9505 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"
8d138742
CE
9506 else
9507 # Determine the default libpath from the value encoded in an
9508 # empty executable.
d50284c4 9509 if test set = "${lt_cv_aix_libpath+set}"; then
b0322a85
CE
9510 aix_libpath=$lt_cv_aix_libpath
9511else
9512 if ${lt_cv_aix_libpath_+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514else
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 9516/* end confdefs.h. */
d9898ee8 9517
8d138742
CE
9518int
9519main ()
9520{
d9898ee8 9521
8d138742
CE
9522 ;
9523 return 0;
9524}
9525_ACEOF
b0322a85 9526if ac_fn_c_try_link "$LINENO"; then :
d9898ee8 9527
b0322a85
CE
9528 lt_aix_libpath_sed='
9529 /Import File Strings/,/^$/ {
9530 /^0/ {
9531 s/^0 *\([^ ]*\) *$/\1/
9532 p
9533 }
9534 }'
9535 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9536 # Check for a 64-bit object if we didn't find anything.
9537 if test -z "$lt_cv_aix_libpath_"; then
9538 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9539 fi
9540fi
9541rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 if test -z "$lt_cv_aix_libpath_"; then
d50284c4 9544 lt_cv_aix_libpath_=/usr/lib:/lib
b0322a85 9545 fi
d9898ee8 9546
8d138742 9547fi
d9898ee8 9548
b0322a85
CE
9549 aix_libpath=$lt_cv_aix_libpath_
9550fi
d9898ee8 9551
d50284c4 9552 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8d138742
CE
9553 # Warning - without using the other run time loading flags,
9554 # -berok will link without error, but may produce a broken library.
d50284c4
CE
9555 no_undefined_flag=' $wl-bernotok'
9556 allow_undefined_flag=' $wl-berok'
9557 if test yes = "$with_gnu_ld"; then
b0322a85 9558 # We only use this code for GNU lds that support --whole-archive.
d50284c4 9559 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
b0322a85
CE
9560 else
9561 # Exported symbols can be pulled into shared objects from archives
9562 whole_archive_flag_spec='$convenience'
9563 fi
8d138742 9564 archive_cmds_need_lc=yes
d50284c4
CE
9565 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9566 # -brtl affects multiple linker settings, -berok does not and is overridden later
9567 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9568 if test svr4 != "$with_aix_soname"; then
9569 # This is similar to how AIX traditionally builds its shared libraries.
9570 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9571 fi
9572 if test aix != "$with_aix_soname"; then
9573 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9574 else
9575 # used by -dlpreopen to get the symbols
9576 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9577 fi
9578 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8d138742
CE
9579 fi
9580 fi
9581 ;;
d9898ee8 9582
8d138742
CE
9583 amigaos*)
9584 case $host_cpu in
9585 powerpc)
9586 # see comment about AmigaOS4 .so support
d50284c4 9587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8d138742
CE
9588 archive_expsym_cmds=''
9589 ;;
9590 m68k)
9591 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)'
9592 hardcode_libdir_flag_spec='-L$libdir'
9593 hardcode_minus_L=yes
9594 ;;
9595 esac
9596 ;;
d9898ee8 9597
8d138742
CE
9598 bsdi[45]*)
9599 export_dynamic_flag_spec=-rdynamic
9600 ;;
d9898ee8 9601
8d138742
CE
9602 cygwin* | mingw* | pw32* | cegcc*)
9603 # When not using gcc, we currently assume that we are using
9604 # Microsoft Visual C++.
9605 # hardcode_libdir_flag_spec is actually meaningless, as there is
9606 # no search path for DLLs.
b0322a85
CE
9607 case $cc_basename in
9608 cl*)
9609 # Native MSVC
9610 hardcode_libdir_flag_spec=' '
9611 allow_undefined_flag=unsupported
9612 always_export_symbols=yes
9613 file_list_spec='@'
9614 # Tell ltmain to make .lib files, not .a files.
9615 libext=lib
9616 # Tell ltmain to make .dll files, not .so files.
d50284c4 9617 shrext_cmds=.dll
b0322a85 9618 # FIXME: Setting linknames here is a bad hack.
d50284c4
CE
9619 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9620 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9621 cp "$export_symbols" "$output_objdir/$soname.def";
9622 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9623 else
9624 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9625 fi~
9626 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9627 linknames='
b0322a85
CE
9628 # The linker will not automatically build a static lib if we build a DLL.
9629 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9630 enable_shared_with_static_runtimes=yes
9631 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9632 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9633 # Don't use ranlib
9634 old_postinstall_cmds='chmod 644 $oldlib'
9635 postlink_cmds='lt_outputfile="@OUTPUT@"~
d50284c4
CE
9636 lt_tool_outputfile="@TOOL_OUTPUT@"~
9637 case $lt_outputfile in
9638 *.exe|*.EXE) ;;
9639 *)
9640 lt_outputfile=$lt_outputfile.exe
9641 lt_tool_outputfile=$lt_tool_outputfile.exe
9642 ;;
9643 esac~
9644 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9645 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9646 $RM "$lt_outputfile.manifest";
9647 fi'
b0322a85
CE
9648 ;;
9649 *)
9650 # Assume MSVC wrapper
9651 hardcode_libdir_flag_spec=' '
9652 allow_undefined_flag=unsupported
9653 # Tell ltmain to make .lib files, not .a files.
9654 libext=lib
9655 # Tell ltmain to make .dll files, not .so files.
d50284c4 9656 shrext_cmds=.dll
b0322a85
CE
9657 # FIXME: Setting linknames here is a bad hack.
9658 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9659 # The linker will automatically build a .lib file if we build a DLL.
9660 old_archive_from_new_cmds='true'
9661 # FIXME: Should let the user specify the lib program.
9662 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9663 enable_shared_with_static_runtimes=yes
9664 ;;
9665 esac
8d138742 9666 ;;
d9898ee8 9667
8d138742 9668 darwin* | rhapsody*)
d9898ee8 9669
d9898ee8 9670
8d138742
CE
9671 archive_cmds_need_lc=no
9672 hardcode_direct=no
9673 hardcode_automatic=yes
9674 hardcode_shlibpath_var=unsupported
d50284c4
CE
9675 if test yes = "$lt_cv_ld_force_load"; then
9676 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\"`'
b0322a85
CE
9677
9678 else
9679 whole_archive_flag_spec=''
9680 fi
8d138742 9681 link_all_deplibs=yes
d50284c4 9682 allow_undefined_flag=$_lt_dar_allow_undefined
8d138742 9683 case $cc_basename in
d50284c4 9684 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8d138742 9685 *) _lt_dar_can_shared=$GCC ;;
d9898ee8 9686 esac
d50284c4 9687 if test yes = "$_lt_dar_can_shared"; then
b0322a85 9688 output_verbose_link_cmd=func_echo_all
d50284c4
CE
9689 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9690 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9691 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"
9692 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 9693
8d138742
CE
9694 else
9695 ld_shlibs=no
d9898ee8 9696 fi
d9898ee8 9697
8d138742 9698 ;;
d9898ee8 9699
8d138742
CE
9700 dgux*)
9701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702 hardcode_libdir_flag_spec='-L$libdir'
9703 hardcode_shlibpath_var=no
9704 ;;
d9898ee8 9705
8d138742
CE
9706 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9707 # support. Future versions do this automatically, but an explicit c++rt0.o
9708 # does not break anything, and helps significantly (at the cost of a little
9709 # extra space).
9710 freebsd2.2*)
9711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9712 hardcode_libdir_flag_spec='-R$libdir'
9713 hardcode_direct=yes
9714 hardcode_shlibpath_var=no
9715 ;;
dd184caf 9716
8d138742 9717 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
b0322a85 9718 freebsd2.*)
8d138742
CE
9719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_direct=yes
9721 hardcode_minus_L=yes
9722 hardcode_shlibpath_var=no
9723 ;;
d9898ee8 9724
8d138742
CE
9725 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9726 freebsd* | dragonfly*)
b0322a85 9727 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9728 hardcode_libdir_flag_spec='-R$libdir'
9729 hardcode_direct=yes
9730 hardcode_shlibpath_var=no
9731 ;;
d9898ee8 9732
8d138742 9733 hpux9*)
d50284c4
CE
9734 if test yes = "$GCC"; then
9735 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8d138742 9736 else
d50284c4 9737 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8d138742 9738 fi
d50284c4 9739 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742
CE
9740 hardcode_libdir_separator=:
9741 hardcode_direct=yes
d9898ee8 9742
8d138742
CE
9743 # hardcode_minus_L: Not really in the search PATH,
9744 # but as the default location of the library.
9745 hardcode_minus_L=yes
d50284c4 9746 export_dynamic_flag_spec='$wl-E'
8d138742 9747 ;;
d9898ee8 9748
8d138742 9749 hpux10*)
d50284c4
CE
9750 if test yes,no = "$GCC,$with_gnu_ld"; then
9751 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
9752 else
9753 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9754 fi
d50284c4
CE
9755 if test no = "$with_gnu_ld"; then
9756 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742
CE
9757 hardcode_libdir_separator=:
9758 hardcode_direct=yes
9759 hardcode_direct_absolute=yes
d50284c4 9760 export_dynamic_flag_spec='$wl-E'
8d138742
CE
9761 # hardcode_minus_L: Not really in the search PATH,
9762 # but as the default location of the library.
9763 hardcode_minus_L=yes
9764 fi
9765 ;;
d9898ee8 9766
b0322a85 9767 hpux11*)
d50284c4 9768 if test yes,no = "$GCC,$with_gnu_ld"; then
b0322a85
CE
9769 case $host_cpu in
9770 hppa*64*)
d50284c4 9771 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9772 ;;
9773 ia64*)
d50284c4 9774 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9775 ;;
9776 *)
d50284c4 9777 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9778 ;;
9779 esac
9780 else
9781 case $host_cpu in
9782 hppa*64*)
d50284c4 9783 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9784 ;;
9785 ia64*)
d50284c4 9786 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9787 ;;
9788 *)
9789
9790 # Older versions of the 11.00 compiler do not understand -b yet
9791 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9793$as_echo_n "checking if $CC understands -b... " >&6; }
9794if ${lt_cv_prog_compiler__b+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796else
9797 lt_cv_prog_compiler__b=no
d50284c4 9798 save_LDFLAGS=$LDFLAGS
b0322a85
CE
9799 LDFLAGS="$LDFLAGS -b"
9800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9802 # The linker can only warn and ignore the option if not recognized
9803 # So say no if there are warnings
9804 if test -s conftest.err; then
9805 # Append any errors to the config.log.
9806 cat conftest.err 1>&5
9807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9809 if diff conftest.exp conftest.er2 >/dev/null; then
9810 lt_cv_prog_compiler__b=yes
9811 fi
9812 else
9813 lt_cv_prog_compiler__b=yes
9814 fi
9815 fi
9816 $RM -r conftest*
d50284c4 9817 LDFLAGS=$save_LDFLAGS
b0322a85
CE
9818
9819fi
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9821$as_echo "$lt_cv_prog_compiler__b" >&6; }
9822
d50284c4
CE
9823if test yes = "$lt_cv_prog_compiler__b"; then
9824 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
b0322a85
CE
9825else
9826 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9827fi
9828
8d138742
CE
9829 ;;
9830 esac
d9898ee8 9831 fi
d50284c4
CE
9832 if test no = "$with_gnu_ld"; then
9833 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8d138742 9834 hardcode_libdir_separator=:
d9898ee8 9835
8d138742
CE
9836 case $host_cpu in
9837 hppa*64*|ia64*)
9838 hardcode_direct=no
9839 hardcode_shlibpath_var=no
9840 ;;
9841 *)
9842 hardcode_direct=yes
9843 hardcode_direct_absolute=yes
d50284c4 9844 export_dynamic_flag_spec='$wl-E'
d9898ee8 9845
8d138742
CE
9846 # hardcode_minus_L: Not really in the search PATH,
9847 # but as the default location of the library.
9848 hardcode_minus_L=yes
9849 ;;
9850 esac
9851 fi
9852 ;;
d9898ee8 9853
8d138742 9854 irix5* | irix6* | nonstopux*)
d50284c4
CE
9855 if test yes = "$GCC"; then
9856 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
9857 # Try to use the -exported_symbol ld option, if it does not
9858 # work, assume that -exports_file does not work either and
9859 # implicitly export all symbols.
b0322a85
CE
9860 # This should be the same for all languages, so no per-tag cache variable.
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9862$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9863if ${lt_cv_irix_exported_symbol+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865else
d50284c4
CE
9866 save_LDFLAGS=$LDFLAGS
9867 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
b0322a85
CE
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h. */
9870int foo (void) { return 0; }
d9898ee8 9871_ACEOF
b0322a85
CE
9872if ac_fn_c_try_link "$LINENO"; then :
9873 lt_cv_irix_exported_symbol=yes
d9898ee8 9874else
b0322a85 9875 lt_cv_irix_exported_symbol=no
d9898ee8 9876fi
b0322a85
CE
9877rm -f core conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
d50284c4 9879 LDFLAGS=$save_LDFLAGS
b0322a85
CE
9880fi
9881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9882$as_echo "$lt_cv_irix_exported_symbol" >&6; }
d50284c4
CE
9883 if test yes = "$lt_cv_irix_exported_symbol"; then
9884 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'
b0322a85 9885 fi
d9898ee8 9886 else
d50284c4
CE
9887 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'
9888 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
9889 fi
9890 archive_cmds_need_lc='no'
d50284c4 9891 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
9892 hardcode_libdir_separator=:
9893 inherit_rpath=yes
9894 link_all_deplibs=yes
9895 ;;
d9898ee8 9896
d50284c4
CE
9897 linux*)
9898 case $cc_basename in
9899 tcc*)
9900 # Fabrice Bellard et al's Tiny C Compiler
9901 ld_shlibs=yes
9902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9903 ;;
9904 esac
9905 ;;
9906
8d138742
CE
9907 netbsd*)
9908 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9910 else
9911 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
d9898ee8 9912 fi
8d138742
CE
9913 hardcode_libdir_flag_spec='-R$libdir'
9914 hardcode_direct=yes
9915 hardcode_shlibpath_var=no
9916 ;;
d9898ee8 9917
8d138742
CE
9918 newsos6)
9919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9920 hardcode_direct=yes
d50284c4 9921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
9922 hardcode_libdir_separator=:
9923 hardcode_shlibpath_var=no
9924 ;;
d9898ee8 9925
8d138742
CE
9926 *nto* | *qnx*)
9927 ;;
d9898ee8 9928
d50284c4 9929 openbsd* | bitrig*)
8d138742
CE
9930 if test -f /usr/libexec/ld.so; then
9931 hardcode_direct=yes
9932 hardcode_shlibpath_var=no
9933 hardcode_direct_absolute=yes
d50284c4 9934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8d138742 9935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
d50284c4
CE
9936 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9937 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9938 export_dynamic_flag_spec='$wl-E'
8d138742 9939 else
d50284c4
CE
9940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9941 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8d138742 9942 fi
d9898ee8 9943 else
8d138742 9944 ld_shlibs=no
d9898ee8 9945 fi
d9898ee8 9946 ;;
8d138742
CE
9947
9948 os2*)
9949 hardcode_libdir_flag_spec='-L$libdir'
9950 hardcode_minus_L=yes
9951 allow_undefined_flag=unsupported
d50284c4
CE
9952 shrext_cmds=.dll
9953 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9954 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9955 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9956 $ECHO EXPORTS >> $output_objdir/$libname.def~
9957 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9958 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9959 emximp -o $lib $output_objdir/$libname.def'
9960 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9961 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9962 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9963 $ECHO EXPORTS >> $output_objdir/$libname.def~
9964 prefix_cmds="$SED"~
9965 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9966 prefix_cmds="$prefix_cmds -e 1d";
9967 fi~
9968 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9969 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9970 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9971 emximp -o $lib $output_objdir/$libname.def'
9972 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9973 enable_shared_with_static_runtimes=yes
d9898ee8 9974 ;;
8d138742
CE
9975
9976 osf3*)
d50284c4
CE
9977 if test yes = "$GCC"; then
9978 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9979 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'
d9898ee8 9980 else
8d138742 9981 allow_undefined_flag=' -expect_unresolved \*'
d50284c4 9982 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'
d9898ee8 9983 fi
8d138742 9984 archive_cmds_need_lc='no'
d50284c4 9985 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742 9986 hardcode_libdir_separator=:
d9898ee8 9987 ;;
d9898ee8 9988
8d138742 9989 osf4* | osf5*) # as osf3* with the addition of -msym flag
d50284c4
CE
9990 if test yes = "$GCC"; then
9991 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9992 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'
9993 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8d138742
CE
9994 else
9995 allow_undefined_flag=' -expect_unresolved \*'
d50284c4 9996 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 9997 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~
d50284c4 9998 $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'
8d138742
CE
9999
10000 # Both c and cxx compiler support -rpath directly
10001 hardcode_libdir_flag_spec='-rpath $libdir'
10002 fi
10003 archive_cmds_need_lc='no'
10004 hardcode_libdir_separator=:
d9898ee8 10005 ;;
d9898ee8 10006
8d138742
CE
10007 solaris*)
10008 no_undefined_flag=' -z defs'
d50284c4
CE
10009 if test yes = "$GCC"; then
10010 wlarc='$wl'
10011 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 10013 $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
10014 else
10015 case `$CC -V 2>&1` in
10016 *"Compilers 5.0"*)
10017 wlarc=''
d50284c4 10018 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
8d138742 10019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 10020 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d9898ee8 10021 ;;
10022 *)
d50284c4
CE
10023 wlarc='$wl'
10024 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
d50284c4 10026 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d9898ee8 10027 ;;
10028 esac
8d138742
CE
10029 fi
10030 hardcode_libdir_flag_spec='-R$libdir'
10031 hardcode_shlibpath_var=no
10032 case $host_os in
10033 solaris2.[0-5] | solaris2.[0-5].*) ;;
d9898ee8 10034 *)
8d138742 10035 # The compiler driver will combine and reorder linker options,
d50284c4 10036 # but understands '-z linker_flag'. GCC discards it without '$wl',
8d138742
CE
10037 # but is careful enough not to reorder.
10038 # Supported since Solaris 2.6 (maybe 2.5.1?)
d50284c4
CE
10039 if test yes = "$GCC"; then
10040 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
d9898ee8 10041 else
8d138742 10042 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
d9898ee8 10043 fi
d9898ee8 10044 ;;
8d138742
CE
10045 esac
10046 link_all_deplibs=yes
10047 ;;
10048
10049 sunos4*)
d50284c4 10050 if test sequent = "$host_vendor"; then
8d138742
CE
10051 # Use $CC to link under sequent, because it throws in some extra .o
10052 # files that make .init and .fini sections work.
d50284c4 10053 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10054 else
10055 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10056 fi
10057 hardcode_libdir_flag_spec='-L$libdir'
10058 hardcode_direct=yes
10059 hardcode_minus_L=yes
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 sysv4)
10064 case $host_vendor in
10065 sni)
10066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10067 hardcode_direct=yes # is this really true???
d9898ee8 10068 ;;
8d138742
CE
10069 siemens)
10070 ## LD is ld it makes a PLAMLIB
10071 ## CC just makes a GrossModule.
10072 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10073 reload_cmds='$CC -r -o $output$reload_objs'
10074 hardcode_direct=no
d9898ee8 10075 ;;
8d138742
CE
10076 motorola)
10077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10079 ;;
10080 esac
10081 runpath_var='LD_RUN_PATH'
10082 hardcode_shlibpath_var=no
10083 ;;
10084
10085 sysv4.3*)
10086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087 hardcode_shlibpath_var=no
10088 export_dynamic_flag_spec='-Bexport'
10089 ;;
d9898ee8 10090
8d138742
CE
10091 sysv4*MP*)
10092 if test -d /usr/nec; then
10093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094 hardcode_shlibpath_var=no
d9898ee8 10095 runpath_var=LD_RUN_PATH
8d138742
CE
10096 hardcode_runpath_var=yes
10097 ld_shlibs=yes
ac40fd9e 10098 fi
8d138742 10099 ;;
d9898ee8 10100
8d138742 10101 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d50284c4 10102 no_undefined_flag='$wl-z,text'
8d138742
CE
10103 archive_cmds_need_lc=no
10104 hardcode_shlibpath_var=no
10105 runpath_var='LD_RUN_PATH'
d9898ee8 10106
d50284c4
CE
10107 if test yes = "$GCC"; then
10108 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10110 else
d50284c4
CE
10111 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10113 fi
10114 ;;
d9898ee8 10115
8d138742 10116 sysv5* | sco3.2v5* | sco5v6*)
d50284c4 10117 # Note: We CANNOT use -z defs as we might desire, because we do not
8d138742
CE
10118 # link with -lc, and that would cause any symbols used from libc to
10119 # always be unresolved, which means just about no library would
10120 # ever link correctly. If we're not using GNU ld we use -z text
10121 # though, which does catch some bad symbols but isn't as heavy-handed
10122 # as -z defs.
d50284c4
CE
10123 no_undefined_flag='$wl-z,text'
10124 allow_undefined_flag='$wl-z,nodefs'
8d138742
CE
10125 archive_cmds_need_lc=no
10126 hardcode_shlibpath_var=no
d50284c4 10127 hardcode_libdir_flag_spec='$wl-R,$libdir'
8d138742
CE
10128 hardcode_libdir_separator=':'
10129 link_all_deplibs=yes
d50284c4 10130 export_dynamic_flag_spec='$wl-Bexport'
8d138742 10131 runpath_var='LD_RUN_PATH'
d9898ee8 10132
d50284c4
CE
10133 if test yes = "$GCC"; then
10134 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742 10136 else
d50284c4
CE
10137 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8d138742
CE
10139 fi
10140 ;;
d9898ee8 10141
8d138742
CE
10142 uts4*)
10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 hardcode_libdir_flag_spec='-L$libdir'
10145 hardcode_shlibpath_var=no
10146 ;;
d9898ee8 10147
8d138742
CE
10148 *)
10149 ld_shlibs=no
10150 ;;
d9898ee8 10151 esac
d9898ee8 10152
d50284c4 10153 if test sni = "$host_vendor"; then
8d138742
CE
10154 case $host in
10155 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
d50284c4 10156 export_dynamic_flag_spec='$wl-Blargedynsym'
8d138742
CE
10157 ;;
10158 esac
10159 fi
10160 fi
d9898ee8 10161
b0322a85 10162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8d138742 10163$as_echo "$ld_shlibs" >&6; }
d50284c4 10164test no = "$ld_shlibs" && can_build_shared=no
d9898ee8 10165
8d138742 10166with_gnu_ld=$with_gnu_ld
d9898ee8 10167
d9898ee8 10168
d9898ee8 10169
d9898ee8 10170
d9898ee8 10171
d9898ee8 10172
10173
d9898ee8 10174
d9898ee8 10175
d9898ee8 10176
d9898ee8 10177
d9898ee8 10178
d9898ee8 10179
d9898ee8 10180
d9898ee8 10181
8d138742
CE
10182#
10183# Do we need to explicitly link libc?
10184#
10185case "x$archive_cmds_need_lc" in
10186x|xyes)
10187 # Assume -lc should be added
10188 archive_cmds_need_lc=yes
d9898ee8 10189
d50284c4 10190 if test yes,yes = "$GCC,$enable_shared"; then
8d138742
CE
10191 case $archive_cmds in
10192 *'~'*)
10193 # FIXME: we may have to deal with multi-command sequences.
ac40fd9e 10194 ;;
8d138742
CE
10195 '$CC '*)
10196 # Test whether the compiler implicitly links with -lc since on some
10197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10198 # to ld, don't add -lc before -lgcc.
b0322a85 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8d138742 10200$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
b0322a85
CE
10201if ${lt_cv_archive_cmds_need_lc+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203else
10204 $RM conftest*
10205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ac40fd9e 10206
b0322a85 10207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8d138742
CE
10208 (eval $ac_compile) 2>&5
10209 ac_status=$?
b0322a85
CE
10210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10211 test $ac_status = 0; } 2>conftest.err; then
10212 soname=conftest
10213 lib=conftest
10214 libobjs=conftest.$ac_objext
10215 deplibs=
10216 wl=$lt_prog_compiler_wl
10217 pic_flag=$lt_prog_compiler_pic
10218 compiler_flags=-v
10219 linker_flags=-v
10220 verstring=
10221 output_objdir=.
10222 libname=conftest
10223 lt_save_allow_undefined_flag=$allow_undefined_flag
10224 allow_undefined_flag=
10225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8d138742
CE
10226 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10227 ac_status=$?
b0322a85
CE
10228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10229 test $ac_status = 0; }
10230 then
10231 lt_cv_archive_cmds_need_lc=no
10232 else
10233 lt_cv_archive_cmds_need_lc=yes
10234 fi
10235 allow_undefined_flag=$lt_save_allow_undefined_flag
10236 else
10237 cat conftest.err 1>&5
10238 fi
10239 $RM conftest*
10240
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10243$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10244 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ac40fd9e 10245 ;;
10246 esac
8d138742 10247 fi
d9898ee8 10248 ;;
10249esac
10250
10251
d9898ee8 10252
d9898ee8 10253
d9898ee8 10254
d9898ee8 10255
d9898ee8 10256
d9898ee8 10257
d9898ee8 10258
d9898ee8 10259
d9898ee8 10260
d9898ee8 10261
d9898ee8 10262
d9898ee8 10263
d9898ee8 10264
d9898ee8 10265
10266
d9898ee8 10267
d9898ee8 10268
d9898ee8 10269
10270
d9898ee8 10271
d9898ee8 10272
d9898ee8 10273
d9898ee8 10274
d9898ee8 10275
d9898ee8 10276
d9898ee8 10277
ac40fd9e 10278
8d138742
CE
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
b0322a85 10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8d138742
CE
10403$as_echo_n "checking dynamic linker characteristics... " >&6; }
10404
d50284c4 10405if test yes = "$GCC"; then
8d138742 10406 case $host_os in
d50284c4
CE
10407 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10408 *) lt_awk_arg='/^libraries:/' ;;
8d138742 10409 esac
b0322a85 10410 case $host_os in
d50284c4
CE
10411 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10412 *) lt_sed_strip_eq='s|=/|/|g' ;;
b0322a85
CE
10413 esac
10414 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10415 case $lt_search_path_spec in
10416 *\;*)
8d138742
CE
10417 # if the path contains ";" then we assume it to be the separator
10418 # otherwise default to the standard path separator (i.e. ":") - it is
10419 # assumed that no part of a normal pathname contains ";" but that should
10420 # okay in the real world where ";" in dirpaths is itself problematic.
b0322a85
CE
10421 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10422 ;;
10423 *)
10424 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10425 ;;
10426 esac
8d138742 10427 # Ok, now we have the path, separated by spaces, we can step through it
d50284c4 10428 # and add multilib dir if necessary...
8d138742 10429 lt_tmp_lt_search_path_spec=
d50284c4
CE
10430 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10431 # ...but if some path component already ends with the multilib dir we assume
10432 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10433 case "$lt_multi_os_dir; $lt_search_path_spec " in
10434 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10435 lt_multi_os_dir=
10436 ;;
10437 esac
8d138742 10438 for lt_sys_path in $lt_search_path_spec; do
d50284c4
CE
10439 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10440 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10441 elif test -n "$lt_multi_os_dir"; then
8d138742
CE
10442 test -d "$lt_sys_path" && \
10443 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10444 fi
10445 done
b0322a85 10446 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d50284c4
CE
10447BEGIN {RS = " "; FS = "/|\n";} {
10448 lt_foo = "";
10449 lt_count = 0;
8d138742
CE
10450 for (lt_i = NF; lt_i > 0; lt_i--) {
10451 if ($lt_i != "" && $lt_i != ".") {
10452 if ($lt_i == "..") {
10453 lt_count++;
10454 } else {
10455 if (lt_count == 0) {
d50284c4 10456 lt_foo = "/" $lt_i lt_foo;
8d138742
CE
10457 } else {
10458 lt_count--;
10459 }
10460 }
10461 }
10462 }
10463 if (lt_foo != "") { lt_freq[lt_foo]++; }
10464 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10465}'`
b0322a85
CE
10466 # AWK program above erroneously prepends '/' to C:/dos/paths
10467 # for these hosts.
10468 case $host_os in
10469 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
d50284c4 10470 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
b0322a85
CE
10471 esac
10472 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8d138742
CE
10473else
10474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10475fi
10476library_names_spec=
10477libname_spec='lib$name'
10478soname_spec=
d50284c4 10479shrext_cmds=.so
8d138742
CE
10480postinstall_cmds=
10481postuninstall_cmds=
10482finish_cmds=
10483finish_eval=
10484shlibpath_var=
10485shlibpath_overrides_runpath=unknown
10486version_type=none
10487dynamic_linker="$host_os ld.so"
10488sys_lib_dlsearch_path_spec="/lib /usr/lib"
10489need_lib_prefix=unknown
d9898ee8 10490hardcode_into_libs=no
10491
10492# when you set need_version to no, make sure it does not cause -set_version
10493# flags to be left without arguments
10494need_version=unknown
10495
d50284c4
CE
10496
10497
d9898ee8 10498case $host_os in
10499aix3*)
b0322a85 10500 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 10501 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
d9898ee8 10502 shlibpath_var=LIBPATH
10503
10504 # AIX 3 has no versioning support, so we append a major version to the name.
d50284c4 10505 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10506 ;;
10507
8d138742 10508aix[4-9]*)
b0322a85 10509 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10510 need_lib_prefix=no
10511 need_version=no
10512 hardcode_into_libs=yes
d50284c4 10513 if test ia64 = "$host_cpu"; then
d9898ee8 10514 # AIX 5 supports IA64
d50284c4 10515 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
d9898ee8 10516 shlibpath_var=LD_LIBRARY_PATH
10517 else
10518 # With GCC up to 2.95.x, collect2 would create an import file
10519 # for dependence libraries. The import file would start with
d50284c4
CE
10520 # the line '#! .'. This would cause the generated library to
10521 # depend on '.', always an invalid library. This was fixed in
d9898ee8 10522 # development snapshots of GCC prior to 3.0.
10523 case $host_os in
10524 aix4 | aix4.[01] | aix4.[01].*)
10525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10526 echo ' yes '
d50284c4 10527 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
d9898ee8 10528 :
10529 else
10530 can_build_shared=no
10531 fi
10532 ;;
10533 esac
d50284c4
CE
10534 # Using Import Files as archive members, it is possible to support
10535 # filename-based versioning of shared library archives on AIX. While
10536 # this would work for both with and without runtime linking, it will
10537 # prevent static linking of such archives. So we do filename-based
10538 # shared library versioning with .so extension only, which is used
10539 # when both runtime linking and shared linking is enabled.
10540 # Unfortunately, runtime linking may impact performance, so we do
10541 # not want this to be the default eventually. Also, we use the
10542 # versioned .so libs for executables only if there is the -brtl
10543 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10544 # To allow for filename-based versioning support, we need to create
10545 # libNAME.so.V as an archive file, containing:
10546 # *) an Import File, referring to the versioned filename of the
10547 # archive as well as the shared archive member, telling the
10548 # bitwidth (32 or 64) of that shared object, and providing the
10549 # list of exported symbols of that shared object, eventually
10550 # decorated with the 'weak' keyword
10551 # *) the shared object with the F_LOADONLY flag set, to really avoid
10552 # it being seen by the linker.
10553 # At run time we better use the real file rather than another symlink,
10554 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10555
10556 case $with_aix_soname,$aix_use_runtimelinking in
10557 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
d9898ee8 10558 # soname into executable. Probably we can add versioning support to
10559 # collect2, so additional links can be useful in future.
d50284c4
CE
10560 aix,yes) # traditional libtool
10561 dynamic_linker='AIX unversionable lib.so'
d9898ee8 10562 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10563 # instead of lib<name>.a to let people know that these are not
10564 # typical AIX shared libraries.
d50284c4
CE
10565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10566 ;;
10567 aix,no) # traditional AIX only
10568 dynamic_linker='AIX lib.a(lib.so.V)'
d9898ee8 10569 # We preserve .a as extension for shared libraries through AIX4.2
10570 # and later when we are not doing run time linking.
d50284c4
CE
10571 library_names_spec='$libname$release.a $libname.a'
10572 soname_spec='$libname$release$shared_ext$major'
10573 ;;
10574 svr4,*) # full svr4 only
10575 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10576 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10577 # We do not specify a path in Import Files, so LIBPATH fires.
10578 shlibpath_overrides_runpath=yes
10579 ;;
10580 *,yes) # both, prefer svr4
10581 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10582 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10583 # unpreferred sharedlib libNAME.a needs extra handling
10584 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10585 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10586 # We do not specify a path in Import Files, so LIBPATH fires.
10587 shlibpath_overrides_runpath=yes
10588 ;;
10589 *,no) # both, prefer aix
10590 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10591 library_names_spec='$libname$release.a $libname.a'
10592 soname_spec='$libname$release$shared_ext$major'
10593 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10594 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10595 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10596 ;;
10597 esac
d9898ee8 10598 shlibpath_var=LIBPATH
10599 fi
10600 ;;
10601
10602amigaos*)
8d138742
CE
10603 case $host_cpu in
10604 powerpc)
10605 # Since July 2007 AmigaOS4 officially supports .so libraries.
10606 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
d50284c4 10607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
10608 ;;
10609 m68k)
10610 library_names_spec='$libname.ixlibrary $libname.a'
10611 # Create ${libname}_ixlibrary.a entries in /sys/libs.
d50284c4 10612 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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
10613 ;;
10614 esac
d9898ee8 10615 ;;
10616
10617beos*)
d50284c4 10618 library_names_spec='$libname$shared_ext'
d9898ee8 10619 dynamic_linker="$host_os ld.so"
10620 shlibpath_var=LIBRARY_PATH
10621 ;;
10622
10623bsdi[45]*)
b0322a85 10624 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10625 need_version=no
d50284c4
CE
10626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10627 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10628 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10631 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10632 # the default ld.so.conf also contains /usr/contrib/lib and
10633 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10634 # libtool to hard-code these into programs
10635 ;;
10636
8d138742 10637cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 10638 version_type=windows
d50284c4 10639 shrext_cmds=.dll
d9898ee8 10640 need_version=no
10641 need_lib_prefix=no
10642
b0322a85
CE
10643 case $GCC,$cc_basename in
10644 yes,*)
10645 # gcc
d9898ee8 10646 library_names_spec='$libname.dll.a'
10647 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
10648 postinstall_cmds='base_file=`basename \$file`~
10649 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
d9898ee8 10650 dldir=$destdir/`dirname \$dlpath`~
10651 test -d \$dldir || mkdir -p \$dldir~
10652 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
10653 chmod a+x \$dldir/$dlname~
10654 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10655 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10656 fi'
d9898ee8 10657 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10658 dlpath=$dir/\$dldll~
8d138742 10659 $RM \$dlpath'
d9898ee8 10660 shlibpath_overrides_runpath=yes
10661
10662 case $host_os in
10663 cygwin*)
10664 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
d50284c4 10665 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
b0322a85
CE
10666
10667 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d9898ee8 10668 ;;
8d138742 10669 mingw* | cegcc*)
d9898ee8 10670 # MinGW DLLs use traditional 'lib' prefix
d50284c4 10671 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d9898ee8 10672 ;;
10673 pw32*)
10674 # pw32 DLLs use 'pw' prefix rather than 'lib'
d50284c4 10675 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
d9898ee8 10676 ;;
10677 esac
b0322a85
CE
10678 dynamic_linker='Win32 ld.exe'
10679 ;;
10680
10681 *,cl*)
10682 # Native MSVC
10683 libname_spec='$name'
d50284c4
CE
10684 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10685 library_names_spec='$libname.dll.lib'
b0322a85
CE
10686
10687 case $build_os in
10688 mingw*)
10689 sys_lib_search_path_spec=
10690 lt_save_ifs=$IFS
10691 IFS=';'
10692 for lt_path in $LIB
10693 do
10694 IFS=$lt_save_ifs
10695 # Let DOS variable expansion print the short 8.3 style file name.
10696 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10697 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10698 done
10699 IFS=$lt_save_ifs
10700 # Convert to MSYS style.
10701 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10702 ;;
10703 cygwin*)
10704 # Convert to unix form, then to dos form, then back to unix form
10705 # but this time dos style (no spaces!) so that the unix form looks
10706 # like /cygdrive/c/PROGRA~1:/cygdr...
10707 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10708 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10709 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10710 ;;
10711 *)
d50284c4 10712 sys_lib_search_path_spec=$LIB
b0322a85
CE
10713 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10714 # It is most probably a Windows format PATH.
10715 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10716 else
10717 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10718 fi
10719 # FIXME: find the short name or the path components, as spaces are
10720 # common. (e.g. "Program Files" -> "PROGRA~1")
10721 ;;
10722 esac
10723
10724 # DLL is installed to $(libdir)/../bin by postinstall_cmds
d50284c4
CE
10725 postinstall_cmds='base_file=`basename \$file`~
10726 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
b0322a85
CE
10727 dldir=$destdir/`dirname \$dlpath`~
10728 test -d \$dldir || mkdir -p \$dldir~
10729 $install_prog $dir/$dlname \$dldir/$dlname'
10730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10731 dlpath=$dir/\$dldll~
10732 $RM \$dlpath'
10733 shlibpath_overrides_runpath=yes
10734 dynamic_linker='Win32 link.exe'
d9898ee8 10735 ;;
10736
10737 *)
b0322a85 10738 # Assume MSVC wrapper
d50284c4 10739 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
b0322a85 10740 dynamic_linker='Win32 ld.exe'
d9898ee8 10741 ;;
10742 esac
d9898ee8 10743 # FIXME: first we should search . and the directory the executable is in
10744 shlibpath_var=PATH
10745 ;;
10746
10747darwin* | rhapsody*)
10748 dynamic_linker="$host_os dyld"
10749 version_type=darwin
10750 need_lib_prefix=no
10751 need_version=no
d50284c4
CE
10752 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10753 soname_spec='$libname$release$major$shared_ext'
d9898ee8 10754 shlibpath_overrides_runpath=yes
10755 shlibpath_var=DYLD_LIBRARY_PATH
10756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 10757
8d138742 10758 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 10759 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10760 ;;
10761
10762dgux*)
b0322a85 10763 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10764 need_lib_prefix=no
10765 need_version=no
d50284c4
CE
10766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10767 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10768 shlibpath_var=LD_LIBRARY_PATH
10769 ;;
10770
d9898ee8 10771freebsd* | dragonfly*)
10772 # DragonFly does not have aout. When/if they implement a new
10773 # versioning mechanism, adjust this.
10774 if test -x /usr/bin/objformat; then
10775 objformat=`/usr/bin/objformat`
10776 else
10777 case $host_os in
b0322a85 10778 freebsd[23].*) objformat=aout ;;
d9898ee8 10779 *) objformat=elf ;;
10780 esac
10781 fi
10782 version_type=freebsd-$objformat
10783 case $version_type in
10784 freebsd-elf*)
d50284c4
CE
10785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10786 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10787 need_version=no
10788 need_lib_prefix=no
10789 ;;
10790 freebsd-*)
d50284c4 10791 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 10792 need_version=yes
10793 ;;
10794 esac
10795 shlibpath_var=LD_LIBRARY_PATH
10796 case $host_os in
b0322a85 10797 freebsd2.*)
d9898ee8 10798 shlibpath_overrides_runpath=yes
10799 ;;
10800 freebsd3.[01]* | freebsdelf3.[01]*)
10801 shlibpath_overrides_runpath=yes
10802 hardcode_into_libs=yes
10803 ;;
10804 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10805 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10806 shlibpath_overrides_runpath=no
10807 hardcode_into_libs=yes
10808 ;;
ac40fd9e 10809 *) # from 4.6 on, and DragonFly
d9898ee8 10810 shlibpath_overrides_runpath=yes
10811 hardcode_into_libs=yes
10812 ;;
10813 esac
10814 ;;
10815
b0322a85
CE
10816haiku*)
10817 version_type=linux # correct to gnu/linux during the next big refactor
10818 need_lib_prefix=no
10819 need_version=no
10820 dynamic_linker="$host_os runtime_loader"
d50284c4
CE
10821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10822 soname_spec='$libname$release$shared_ext$major'
b0322a85 10823 shlibpath_var=LIBRARY_PATH
d50284c4 10824 shlibpath_overrides_runpath=no
b0322a85 10825 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
d9898ee8 10826 hardcode_into_libs=yes
10827 ;;
10828
10829hpux9* | hpux10* | hpux11*)
10830 # Give a soname corresponding to the major version so that dld.sl refuses to
10831 # link against other versions.
10832 version_type=sunos
10833 need_lib_prefix=no
10834 need_version=no
10835 case $host_cpu in
10836 ia64*)
10837 shrext_cmds='.so'
10838 hardcode_into_libs=yes
10839 dynamic_linker="$host_os dld.so"
10840 shlibpath_var=LD_LIBRARY_PATH
10841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
10842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10843 soname_spec='$libname$release$shared_ext$major'
10844 if test 32 = "$HPUX_IA64_MODE"; then
d9898ee8 10845 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
d50284c4 10846 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
d9898ee8 10847 else
10848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
d50284c4 10849 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
d9898ee8 10850 fi
d9898ee8 10851 ;;
8d138742
CE
10852 hppa*64*)
10853 shrext_cmds='.sl'
10854 hardcode_into_libs=yes
10855 dynamic_linker="$host_os dld.sl"
10856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
d50284c4
CE
10858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10859 soname_spec='$libname$release$shared_ext$major'
8d138742
CE
10860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10862 ;;
10863 *)
d9898ee8 10864 shrext_cmds='.sl'
10865 dynamic_linker="$host_os dld.sl"
10866 shlibpath_var=SHLIB_PATH
10867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
d50284c4
CE
10868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10870 ;;
10871 esac
b0322a85 10872 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d9898ee8 10873 postinstall_cmds='chmod 555 $lib'
b0322a85
CE
10874 # or fails outright, so override atomically:
10875 install_override_mode=555
d9898ee8 10876 ;;
10877
ac40fd9e 10878interix[3-9]*)
b0322a85 10879 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10880 need_lib_prefix=no
10881 need_version=no
d50284c4
CE
10882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10883 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=no
10887 hardcode_into_libs=yes
10888 ;;
10889
10890irix5* | irix6* | nonstopux*)
10891 case $host_os in
10892 nonstopux*) version_type=nonstopux ;;
10893 *)
d50284c4 10894 if test yes = "$lt_cv_prog_gnu_ld"; then
b0322a85 10895 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10896 else
10897 version_type=irix
10898 fi ;;
10899 esac
10900 need_lib_prefix=no
10901 need_version=no
d50284c4
CE
10902 soname_spec='$libname$release$shared_ext$major'
10903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
d9898ee8 10904 case $host_os in
10905 irix5* | nonstopux*)
10906 libsuff= shlibsuff=
10907 ;;
10908 *)
10909 case $LD in # libtool.m4 will add one of these switches to LD
10910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10911 libsuff= shlibsuff= libmagic=32-bit;;
10912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10913 libsuff=32 shlibsuff=N32 libmagic=N32;;
10914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10916 *) libsuff= shlibsuff= libmagic=never-match;;
10917 esac
10918 ;;
10919 esac
10920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10921 shlibpath_overrides_runpath=no
d50284c4
CE
10922 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10923 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
d9898ee8 10924 hardcode_into_libs=yes
10925 ;;
10926
10927# No shared lib support for Linux oldld, aout, or coff.
10928linux*oldld* | linux*aout* | linux*coff*)
10929 dynamic_linker=no
10930 ;;
10931
d50284c4
CE
10932linux*android*)
10933 version_type=none # Android doesn't support versioned libraries.
10934 need_lib_prefix=no
10935 need_version=no
10936 library_names_spec='$libname$release$shared_ext'
10937 soname_spec='$libname$release$shared_ext'
10938 finish_cmds=
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes
10941
10942 # This implies no fast_install, which is unacceptable.
10943 # Some rework will be needed to allow for fast_install
10944 # before this can be enabled.
10945 hardcode_into_libs=yes
10946
10947 dynamic_linker='Android linker'
10948 # Don't embed -rpath directories since the linker doesn't support them.
10949 hardcode_libdir_flag_spec='-L$libdir'
10950 ;;
10951
b0322a85 10952# This must be glibc/ELF.
d50284c4 10953linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
b0322a85 10954 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 10955 need_lib_prefix=no
10956 need_version=no
d50284c4
CE
10957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10958 soname_spec='$libname$release$shared_ext$major'
d9898ee8 10959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=no
b0322a85 10962
8d138742 10963 # Some binutils ld are patched to set DT_RUNPATH
b0322a85
CE
10964 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10965 $as_echo_n "(cached) " >&6
10966else
10967 lt_cv_shlibpath_overrides_runpath=no
10968 save_LDFLAGS=$LDFLAGS
10969 save_libdir=$libdir
10970 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10971 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
10973/* end confdefs.h. */
10974
10975int
10976main ()
10977{
10978
10979 ;
10980 return 0;
10981}
10982_ACEOF
b0322a85
CE
10983if ac_fn_c_try_link "$LINENO"; then :
10984 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10985 lt_cv_shlibpath_overrides_runpath=yes
8d138742 10986fi
b0322a85
CE
10987fi
10988rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990 LDFLAGS=$save_LDFLAGS
10991 libdir=$save_libdir
8d138742
CE
10992
10993fi
10994
b0322a85 10995 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8d138742 10996
d9898ee8 10997 # This implies no fast_install, which is unacceptable.
10998 # Some rework will be needed to allow for fast_install
10999 # before this can be enabled.
11000 hardcode_into_libs=yes
8d138742
CE
11001
11002 # Add ABI-specific directories to the system library path.
11003 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 11004
d50284c4
CE
11005 # Ideally, we could use ldconfig to report *all* directores which are
11006 # searched for libraries, however this is still not possible. Aside from not
11007 # being certain /sbin/ldconfig is available, command
11008 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11009 # even though it is searched at run-time. Try to do the best guess by
11010 # appending ld.so.conf contents (and includes) to the search path.
d9898ee8 11011 if test -f /etc/ld.so.conf; then
b0322a85 11012 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 11013 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 11014 fi
11015
11016 # We used to test for /lib/ld.so.1 and disable shared libraries on
11017 # powerpc, because MkLinux only supported shared libraries with the
11018 # GNU dynamic linker. Since this was broken with cross compilers,
11019 # most powerpc-linux boxes support dynamic linking these days and
11020 # people can always --disable-shared, the test was removed, and we
11021 # assume the GNU/Linux dynamic linker is in use.
11022 dynamic_linker='GNU/Linux ld.so'
11023 ;;
11024
d9898ee8 11025netbsd*)
11026 version_type=sunos
11027 need_lib_prefix=no
11028 need_version=no
8d138742 11029 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d50284c4 11030 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 11031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11032 dynamic_linker='NetBSD (a.out) ld.so'
11033 else
d50284c4
CE
11034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11035 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11036 dynamic_linker='NetBSD ld.elf_so'
11037 fi
11038 shlibpath_var=LD_LIBRARY_PATH
11039 shlibpath_overrides_runpath=yes
11040 hardcode_into_libs=yes
11041 ;;
11042
11043newsos6)
b0322a85 11044 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4 11045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d9898ee8 11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=yes
11048 ;;
11049
8d138742
CE
11050*nto* | *qnx*)
11051 version_type=qnx
d9898ee8 11052 need_lib_prefix=no
11053 need_version=no
d50284c4
CE
11054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11055 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11056 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
11057 shlibpath_overrides_runpath=no
11058 hardcode_into_libs=yes
11059 dynamic_linker='ldqnx.so'
d9898ee8 11060 ;;
11061
d50284c4 11062openbsd* | bitrig*)
d9898ee8 11063 version_type=sunos
d50284c4 11064 sys_lib_dlsearch_path_spec=/usr/lib
d9898ee8 11065 need_lib_prefix=no
d50284c4
CE
11066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11067 need_version=no
d9898ee8 11068 else
d50284c4 11069 need_version=yes
d9898ee8 11070 fi
d50284c4
CE
11071 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 shlibpath_overrides_runpath=yes
d9898ee8 11075 ;;
11076
11077os2*)
11078 libname_spec='$name'
d50284c4
CE
11079 version_type=windows
11080 shrext_cmds=.dll
11081 need_version=no
d9898ee8 11082 need_lib_prefix=no
d50284c4
CE
11083 # OS/2 can only load a DLL with a base name of 8 characters or less.
11084 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11085 v=$($ECHO $release$versuffix | tr -d .-);
11086 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11087 $ECHO $n$v`$shared_ext'
11088 library_names_spec='${libname}_dll.$libext'
d9898ee8 11089 dynamic_linker='OS/2 ld.exe'
d50284c4
CE
11090 shlibpath_var=BEGINLIBPATH
11091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11093 postinstall_cmds='base_file=`basename \$file`~
11094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11095 dldir=$destdir/`dirname \$dlpath`~
11096 test -d \$dldir || mkdir -p \$dldir~
11097 $install_prog $dir/$dlname \$dldir/$dlname~
11098 chmod a+x \$dldir/$dlname~
11099 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11100 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11101 fi'
11102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11103 dlpath=$dir/\$dldll~
11104 $RM \$dlpath'
d9898ee8 11105 ;;
11106
11107osf3* | osf4* | osf5*)
11108 version_type=osf
11109 need_lib_prefix=no
11110 need_version=no
d50284c4
CE
11111 soname_spec='$libname$release$shared_ext$major'
11112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
d9898ee8 11113 shlibpath_var=LD_LIBRARY_PATH
11114 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
d50284c4 11115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
d9898ee8 11116 ;;
11117
ac40fd9e 11118rdos*)
11119 dynamic_linker=no
11120 ;;
11121
d9898ee8 11122solaris*)
b0322a85 11123 version_type=linux # correct to gnu/linux during the next big refactor
d9898ee8 11124 need_lib_prefix=no
11125 need_version=no
d50284c4
CE
11126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11127 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11128 shlibpath_var=LD_LIBRARY_PATH
11129 shlibpath_overrides_runpath=yes
11130 hardcode_into_libs=yes
11131 # ldd complains unless libraries are executable
11132 postinstall_cmds='chmod +x $lib'
11133 ;;
11134
11135sunos4*)
11136 version_type=sunos
d50284c4 11137 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
d9898ee8 11138 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=yes
d50284c4 11141 if test yes = "$with_gnu_ld"; then
d9898ee8 11142 need_lib_prefix=no
11143 fi
11144 need_version=yes
11145 ;;
11146
11147sysv4 | sysv4.3*)
b0322a85 11148 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11150 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11151 shlibpath_var=LD_LIBRARY_PATH
11152 case $host_vendor in
11153 sni)
11154 shlibpath_overrides_runpath=no
11155 need_lib_prefix=no
d9898ee8 11156 runpath_var=LD_RUN_PATH
11157 ;;
11158 siemens)
11159 need_lib_prefix=no
11160 ;;
11161 motorola)
11162 need_lib_prefix=no
11163 need_version=no
11164 shlibpath_overrides_runpath=no
11165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11166 ;;
11167 esac
11168 ;;
11169
11170sysv4*MP*)
d50284c4 11171 if test -d /usr/nec; then
b0322a85 11172 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11173 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11174 soname_spec='$libname$shared_ext.$major'
d9898ee8 11175 shlibpath_var=LD_LIBRARY_PATH
11176 fi
11177 ;;
11178
11179sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
d50284c4 11180 version_type=sco
d9898ee8 11181 need_lib_prefix=no
11182 need_version=no
d50284c4
CE
11183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11184 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11185 shlibpath_var=LD_LIBRARY_PATH
8d138742 11186 shlibpath_overrides_runpath=yes
d9898ee8 11187 hardcode_into_libs=yes
d50284c4 11188 if test yes = "$with_gnu_ld"; then
d9898ee8 11189 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 11190 else
11191 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 11192 case $host_os in
11193 sco3.2v5*)
11194 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11195 ;;
11196 esac
11197 fi
11198 sys_lib_dlsearch_path_spec='/usr/lib'
11199 ;;
11200
8d138742
CE
11201tpf*)
11202 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
b0322a85 11203 version_type=linux # correct to gnu/linux during the next big refactor
8d138742
CE
11204 need_lib_prefix=no
11205 need_version=no
d50284c4 11206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
8d138742
CE
11207 shlibpath_var=LD_LIBRARY_PATH
11208 shlibpath_overrides_runpath=no
11209 hardcode_into_libs=yes
11210 ;;
11211
d9898ee8 11212uts4*)
b0322a85 11213 version_type=linux # correct to gnu/linux during the next big refactor
d50284c4
CE
11214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11215 soname_spec='$libname$release$shared_ext$major'
d9898ee8 11216 shlibpath_var=LD_LIBRARY_PATH
11217 ;;
11218
11219*)
11220 dynamic_linker=no
11221 ;;
11222esac
b0322a85 11223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8d138742 11224$as_echo "$dynamic_linker" >&6; }
d50284c4 11225test no = "$dynamic_linker" && can_build_shared=no
d9898ee8 11226
11227variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
d50284c4 11228if test yes = "$GCC"; then
d9898ee8 11229 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11230fi
11231
d50284c4
CE
11232if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11233 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
d9898ee8 11234fi
d50284c4
CE
11235
11236if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11237 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
d9898ee8 11238fi
11239
d50284c4
CE
11240# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11241configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11242
11243# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11244func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11245
11246# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11247configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11248
11249
11250
11251
11252
11253
d9898ee8 11254
d9898ee8 11255
d9898ee8 11256
d9898ee8 11257
d9898ee8 11258
d9898ee8 11259
d9898ee8 11260
d9898ee8 11261
d9898ee8 11262
d9898ee8 11263
d9898ee8 11264
d9898ee8 11265
d9898ee8 11266
d9898ee8 11267
d9898ee8 11268
d9898ee8 11269
d9898ee8 11270
d9898ee8 11271
d9898ee8 11272
d9898ee8 11273
d9898ee8 11274
d9898ee8 11275
d9898ee8 11276
d9898ee8 11277
d9898ee8 11278
d9898ee8 11279
d9898ee8 11280
d9898ee8 11281
d9898ee8 11282
d9898ee8 11283
d9898ee8 11284
d9898ee8 11285
d9898ee8 11286
d9898ee8 11287
d9898ee8 11288
d9898ee8 11289
d9898ee8 11290
d9898ee8 11291
d9898ee8 11292
d9898ee8 11293
d9898ee8 11294
d9898ee8 11295
d9898ee8 11296
d9898ee8 11297
d9898ee8 11298
d9898ee8 11299
d9898ee8 11300
d9898ee8 11301
d9898ee8 11302
d9898ee8 11303
d9898ee8 11304
d9898ee8 11305
d9898ee8 11306
d9898ee8 11307
d9898ee8 11308
d9898ee8 11309
d9898ee8 11310
d9898ee8 11311
d9898ee8 11312
d9898ee8 11313
d9898ee8 11314
d9898ee8 11315
d9898ee8 11316
d9898ee8 11317
d9898ee8 11318
d9898ee8 11319
d9898ee8 11320
d9898ee8 11321
d9898ee8 11322
d9898ee8 11323
d9898ee8 11324
d9898ee8 11325
d9898ee8 11326
d9898ee8 11327
d9898ee8 11328
d9898ee8 11329
d9898ee8 11330
d9898ee8 11331
d9898ee8 11332
d9898ee8 11333
d9898ee8 11334
d9898ee8 11335
d9898ee8 11336
d9898ee8 11337
d9898ee8 11338
d9898ee8 11339
b0322a85
CE
11340
11341
11342
11343
11344
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8d138742
CE
11346$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11347hardcode_action=
11348if test -n "$hardcode_libdir_flag_spec" ||
11349 test -n "$runpath_var" ||
d50284c4 11350 test yes = "$hardcode_automatic"; then
d9898ee8 11351
8d138742 11352 # We can hardcode non-existent directories.
d50284c4 11353 if test no != "$hardcode_direct" &&
8d138742
CE
11354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11355 # have to relink, otherwise we might link with an installed library
11356 # when we should be linking with a yet-to-be-installed one
d50284c4
CE
11357 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11358 test no != "$hardcode_minus_L"; then
8d138742
CE
11359 # Linking always hardcodes the temporary library directory.
11360 hardcode_action=relink
11361 else
11362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11363 hardcode_action=immediate
11364 fi
11365else
11366 # We cannot hardcode anything, or else we can only hardcode existing
11367 # directories.
11368 hardcode_action=unsupported
11369fi
b0322a85 11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8d138742 11371$as_echo "$hardcode_action" >&6; }
d9898ee8 11372
d50284c4
CE
11373if test relink = "$hardcode_action" ||
11374 test yes = "$inherit_rpath"; then
8d138742
CE
11375 # Fast installation is not supported
11376 enable_fast_install=no
d50284c4
CE
11377elif test yes = "$shlibpath_overrides_runpath" ||
11378 test no = "$enable_shared"; then
8d138742
CE
11379 # Fast installation is not necessary
11380 enable_fast_install=needless
11381fi
d9898ee8 11382
d9898ee8 11383
d9898ee8 11384
d9898ee8 11385
d9898ee8 11386
d9898ee8 11387
d50284c4 11388 if test yes != "$enable_dlopen"; then
8d138742
CE
11389 enable_dlopen=unknown
11390 enable_dlopen_self=unknown
11391 enable_dlopen_self_static=unknown
11392else
11393 lt_cv_dlopen=no
11394 lt_cv_dlopen_libs=
d9898ee8 11395
8d138742
CE
11396 case $host_os in
11397 beos*)
d50284c4 11398 lt_cv_dlopen=load_add_on
8d138742
CE
11399 lt_cv_dlopen_libs=
11400 lt_cv_dlopen_self=yes
11401 ;;
d9898ee8 11402
8d138742 11403 mingw* | pw32* | cegcc*)
d50284c4 11404 lt_cv_dlopen=LoadLibrary
8d138742
CE
11405 lt_cv_dlopen_libs=
11406 ;;
d9898ee8 11407
8d138742 11408 cygwin*)
d50284c4 11409 lt_cv_dlopen=dlopen
b0322a85
CE
11410 lt_cv_dlopen_libs=
11411 ;;
11412
11413 darwin*)
d50284c4 11414 # if libdl is installed we need to link against it
b0322a85
CE
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11416$as_echo_n "checking for dlopen in -ldl... " >&6; }
11417if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
11418 $as_echo_n "(cached) " >&6
11419else
11420 ac_check_lib_save_LIBS=$LIBS
b0322a85
CE
11421LIBS="-ldl $LIBS"
11422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11423/* end confdefs.h. */
d9898ee8 11424
8d138742
CE
11425/* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428#ifdef __cplusplus
11429extern "C"
11430#endif
b0322a85 11431char dlopen ();
8d138742
CE
11432int
11433main ()
11434{
b0322a85 11435return dlopen ();
8d138742
CE
11436 ;
11437 return 0;
11438}
11439_ACEOF
b0322a85
CE
11440if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_lib_dl_dlopen=yes
8d138742 11442else
b0322a85 11443 ac_cv_lib_dl_dlopen=no
8d138742 11444fi
b0322a85
CE
11445rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11447LIBS=$ac_check_lib_save_LIBS
11448fi
b0322a85
CE
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11450$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11451if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d50284c4 11452 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
8d138742 11453else
d9898ee8 11454
d50284c4 11455 lt_cv_dlopen=dyld
b0322a85
CE
11456 lt_cv_dlopen_libs=
11457 lt_cv_dlopen_self=yes
d9898ee8 11458
b0322a85
CE
11459fi
11460
11461 ;;
d9898ee8 11462
d50284c4
CE
11463 tpf*)
11464 # Don't try to run any link tests for TPF. We know it's impossible
11465 # because TPF is a cross-compiler, and we know how we open DSOs.
11466 lt_cv_dlopen=dlopen
11467 lt_cv_dlopen_libs=
11468 lt_cv_dlopen_self=no
11469 ;;
11470
b0322a85
CE
11471 *)
11472 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11473if test "x$ac_cv_func_shl_load" = xyes; then :
d50284c4 11474 lt_cv_dlopen=shl_load
b0322a85
CE
11475else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11477$as_echo_n "checking for shl_load in -ldld... " >&6; }
11478if ${ac_cv_lib_dld_shl_load+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480else
11481 ac_check_lib_save_LIBS=$LIBS
11482LIBS="-ldld $LIBS"
11483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484/* end confdefs.h. */
d9898ee8 11485
8d138742
CE
11486/* Override any GCC internal prototype to avoid an error.
11487 Use char because int might match the return type of a GCC
11488 builtin and then its argument prototype would still apply. */
11489#ifdef __cplusplus
11490extern "C"
11491#endif
b0322a85 11492char shl_load ();
8d138742
CE
11493int
11494main ()
11495{
b0322a85 11496return shl_load ();
8d138742
CE
11497 ;
11498 return 0;
11499}
11500_ACEOF
b0322a85
CE
11501if ac_fn_c_try_link "$LINENO"; then :
11502 ac_cv_lib_dld_shl_load=yes
8d138742 11503else
b0322a85 11504 ac_cv_lib_dld_shl_load=no
8d138742 11505fi
b0322a85
CE
11506rm -f core conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508LIBS=$ac_check_lib_save_LIBS
8d138742 11509fi
b0322a85
CE
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11511$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11512if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
d50284c4 11513 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
b0322a85
CE
11514else
11515 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11516if test "x$ac_cv_func_dlopen" = xyes; then :
d50284c4 11517 lt_cv_dlopen=dlopen
8d138742 11518else
b0322a85 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8d138742 11520$as_echo_n "checking for dlopen in -ldl... " >&6; }
b0322a85 11521if ${ac_cv_lib_dl_dlopen+:} false; then :
8d138742
CE
11522 $as_echo_n "(cached) " >&6
11523else
11524 ac_check_lib_save_LIBS=$LIBS
11525LIBS="-ldl $LIBS"
b0322a85 11526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11527/* end confdefs.h. */
d9898ee8 11528
8d138742
CE
11529/* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
11532#ifdef __cplusplus
11533extern "C"
11534#endif
11535char dlopen ();
11536int
11537main ()
11538{
11539return dlopen ();
11540 ;
11541 return 0;
11542}
11543_ACEOF
b0322a85 11544if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11545 ac_cv_lib_dl_dlopen=yes
11546else
b0322a85 11547 ac_cv_lib_dl_dlopen=no
8d138742 11548fi
b0322a85
CE
11549rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11551LIBS=$ac_check_lib_save_LIBS
11552fi
b0322a85 11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8d138742 11554$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
b0322a85 11555if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
d50284c4 11556 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
8d138742 11557else
b0322a85 11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8d138742 11559$as_echo_n "checking for dlopen in -lsvld... " >&6; }
b0322a85 11560if ${ac_cv_lib_svld_dlopen+:} false; then :
8d138742
CE
11561 $as_echo_n "(cached) " >&6
11562else
11563 ac_check_lib_save_LIBS=$LIBS
11564LIBS="-lsvld $LIBS"
b0322a85 11565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11566/* end confdefs.h. */
d9898ee8 11567
8d138742
CE
11568/* Override any GCC internal prototype to avoid an error.
11569 Use char because int might match the return type of a GCC
11570 builtin and then its argument prototype would still apply. */
11571#ifdef __cplusplus
11572extern "C"
11573#endif
11574char dlopen ();
11575int
11576main ()
11577{
11578return dlopen ();
11579 ;
11580 return 0;
11581}
11582_ACEOF
b0322a85 11583if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11584 ac_cv_lib_svld_dlopen=yes
11585else
b0322a85 11586 ac_cv_lib_svld_dlopen=no
8d138742 11587fi
b0322a85
CE
11588rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11590LIBS=$ac_check_lib_save_LIBS
11591fi
b0322a85 11592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8d138742 11593$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
b0322a85 11594if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
d50284c4 11595 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
8d138742 11596else
b0322a85 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8d138742 11598$as_echo_n "checking for dld_link in -ldld... " >&6; }
b0322a85 11599if ${ac_cv_lib_dld_dld_link+:} false; then :
8d138742
CE
11600 $as_echo_n "(cached) " >&6
11601else
11602 ac_check_lib_save_LIBS=$LIBS
11603LIBS="-ldld $LIBS"
b0322a85 11604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742 11605/* end confdefs.h. */
d9898ee8 11606
8d138742
CE
11607/* Override any GCC internal prototype to avoid an error.
11608 Use char because int might match the return type of a GCC
11609 builtin and then its argument prototype would still apply. */
11610#ifdef __cplusplus
11611extern "C"
11612#endif
11613char dld_link ();
11614int
11615main ()
11616{
11617return dld_link ();
11618 ;
11619 return 0;
11620}
11621_ACEOF
b0322a85 11622if ac_fn_c_try_link "$LINENO"; then :
8d138742
CE
11623 ac_cv_lib_dld_dld_link=yes
11624else
b0322a85 11625 ac_cv_lib_dld_dld_link=no
8d138742 11626fi
b0322a85
CE
11627rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
8d138742
CE
11629LIBS=$ac_check_lib_save_LIBS
11630fi
b0322a85 11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8d138742 11632$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
b0322a85 11633if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
d50284c4 11634 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
8d138742 11635fi
d9898ee8 11636
d9898ee8 11637
8d138742 11638fi
d9898ee8 11639
d9898ee8 11640
8d138742 11641fi
d9898ee8 11642
ac40fd9e 11643
8d138742 11644fi
d9898ee8 11645
d9898ee8 11646
8d138742 11647fi
d9898ee8 11648
d9898ee8 11649
8d138742 11650fi
d9898ee8 11651
8d138742
CE
11652 ;;
11653 esac
d9898ee8 11654
d50284c4 11655 if test no = "$lt_cv_dlopen"; then
8d138742 11656 enable_dlopen=no
d50284c4
CE
11657 else
11658 enable_dlopen=yes
d9898ee8 11659 fi
11660
8d138742
CE
11661 case $lt_cv_dlopen in
11662 dlopen)
d50284c4
CE
11663 save_CPPFLAGS=$CPPFLAGS
11664 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 11665
d50284c4 11666 save_LDFLAGS=$LDFLAGS
8d138742 11667 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 11668
d50284c4 11669 save_LIBS=$LIBS
8d138742 11670 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 11671
b0322a85 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8d138742 11673$as_echo_n "checking whether a program can dlopen itself... " >&6; }
b0322a85 11674if ${lt_cv_dlopen_self+:} false; then :
8d138742 11675 $as_echo_n "(cached) " >&6
d9898ee8 11676else
d50284c4 11677 if test yes = "$cross_compiling"; then :
8d138742 11678 lt_cv_dlopen_self=cross
d9898ee8 11679else
8d138742
CE
11680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11681 lt_status=$lt_dlunknown
11682 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11683#line $LINENO "configure"
8d138742 11684#include "confdefs.h"
d9898ee8 11685
8d138742
CE
11686#if HAVE_DLFCN_H
11687#include <dlfcn.h>
11688#endif
d9898ee8 11689
8d138742 11690#include <stdio.h>
d9898ee8 11691
8d138742
CE
11692#ifdef RTLD_GLOBAL
11693# define LT_DLGLOBAL RTLD_GLOBAL
11694#else
11695# ifdef DL_GLOBAL
11696# define LT_DLGLOBAL DL_GLOBAL
11697# else
11698# define LT_DLGLOBAL 0
11699# endif
11700#endif
d9898ee8 11701
8d138742
CE
11702/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11703 find out it does not work in some platform. */
11704#ifndef LT_DLLAZY_OR_NOW
11705# ifdef RTLD_LAZY
11706# define LT_DLLAZY_OR_NOW RTLD_LAZY
11707# else
11708# ifdef DL_LAZY
11709# define LT_DLLAZY_OR_NOW DL_LAZY
11710# else
11711# ifdef RTLD_NOW
11712# define LT_DLLAZY_OR_NOW RTLD_NOW
11713# else
11714# ifdef DL_NOW
11715# define LT_DLLAZY_OR_NOW DL_NOW
11716# else
11717# define LT_DLLAZY_OR_NOW 0
11718# endif
11719# endif
11720# endif
11721# endif
11722#endif
d9898ee8 11723
d50284c4 11724/* When -fvisibility=hidden is used, assume the code has been annotated
b0322a85 11725 correspondingly for the symbols needed. */
d50284c4 11726#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b0322a85
CE
11727int fnord () __attribute__((visibility("default")));
11728#endif
11729
11730int fnord () { return 42; }
8d138742
CE
11731int main ()
11732{
11733 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11734 int status = $lt_dlunknown;
11735
11736 if (self)
11737 {
11738 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11739 else
11740 {
11741 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11742 else puts (dlerror ());
11743 }
8d138742
CE
11744 /* dlclose (self); */
11745 }
11746 else
11747 puts (dlerror ());
d9898ee8 11748
8d138742
CE
11749 return status;
11750}
11751_LT_EOF
b0322a85 11752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11753 (eval $ac_link) 2>&5
11754 ac_status=$?
b0322a85 11755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 11756 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8d138742
CE
11757 (./conftest; exit; ) >&5 2>/dev/null
11758 lt_status=$?
11759 case x$lt_status in
11760 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11761 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11762 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11763 esac
11764 else :
11765 # compilation failed
11766 lt_cv_dlopen_self=no
11767 fi
d9898ee8 11768fi
8d138742 11769rm -fr conftest*
d9898ee8 11770
11771
d9898ee8 11772fi
b0322a85 11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8d138742 11774$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 11775
d50284c4 11776 if test yes = "$lt_cv_dlopen_self"; then
8d138742 11777 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
b0322a85 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8d138742 11779$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
b0322a85 11780if ${lt_cv_dlopen_self_static+:} false; then :
8d138742
CE
11781 $as_echo_n "(cached) " >&6
11782else
d50284c4 11783 if test yes = "$cross_compiling"; then :
8d138742
CE
11784 lt_cv_dlopen_self_static=cross
11785else
11786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11787 lt_status=$lt_dlunknown
11788 cat > conftest.$ac_ext <<_LT_EOF
b0322a85 11789#line $LINENO "configure"
8d138742 11790#include "confdefs.h"
d9898ee8 11791
8d138742
CE
11792#if HAVE_DLFCN_H
11793#include <dlfcn.h>
11794#endif
d9898ee8 11795
8d138742 11796#include <stdio.h>
d9898ee8 11797
8d138742
CE
11798#ifdef RTLD_GLOBAL
11799# define LT_DLGLOBAL RTLD_GLOBAL
11800#else
11801# ifdef DL_GLOBAL
11802# define LT_DLGLOBAL DL_GLOBAL
11803# else
11804# define LT_DLGLOBAL 0
11805# endif
11806#endif
d9898ee8 11807
8d138742
CE
11808/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11809 find out it does not work in some platform. */
11810#ifndef LT_DLLAZY_OR_NOW
11811# ifdef RTLD_LAZY
11812# define LT_DLLAZY_OR_NOW RTLD_LAZY
11813# else
11814# ifdef DL_LAZY
11815# define LT_DLLAZY_OR_NOW DL_LAZY
11816# else
11817# ifdef RTLD_NOW
11818# define LT_DLLAZY_OR_NOW RTLD_NOW
11819# else
11820# ifdef DL_NOW
11821# define LT_DLLAZY_OR_NOW DL_NOW
11822# else
11823# define LT_DLLAZY_OR_NOW 0
11824# endif
11825# endif
11826# endif
11827# endif
11828#endif
11829
d50284c4 11830/* When -fvisibility=hidden is used, assume the code has been annotated
b0322a85 11831 correspondingly for the symbols needed. */
d50284c4 11832#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
b0322a85
CE
11833int fnord () __attribute__((visibility("default")));
11834#endif
11835
11836int fnord () { return 42; }
8d138742
CE
11837int main ()
11838{
11839 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11840 int status = $lt_dlunknown;
11841
11842 if (self)
11843 {
11844 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
b0322a85
CE
11845 else
11846 {
11847 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11848 else puts (dlerror ());
11849 }
8d138742
CE
11850 /* dlclose (self); */
11851 }
11852 else
11853 puts (dlerror ());
11854
11855 return status;
11856}
11857_LT_EOF
b0322a85 11858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8d138742
CE
11859 (eval $ac_link) 2>&5
11860 ac_status=$?
b0322a85 11861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d50284c4 11862 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8d138742
CE
11863 (./conftest; exit; ) >&5 2>/dev/null
11864 lt_status=$?
11865 case x$lt_status in
11866 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11867 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11868 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
d9898ee8 11869 esac
8d138742
CE
11870 else :
11871 # compilation failed
11872 lt_cv_dlopen_self_static=no
11873 fi
11874fi
11875rm -fr conftest*
d9898ee8 11876
d9898ee8 11877
8d138742 11878fi
b0322a85 11879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8d138742
CE
11880$as_echo "$lt_cv_dlopen_self_static" >&6; }
11881 fi
d9898ee8 11882
d50284c4
CE
11883 CPPFLAGS=$save_CPPFLAGS
11884 LDFLAGS=$save_LDFLAGS
11885 LIBS=$save_LIBS
8d138742
CE
11886 ;;
11887 esac
d9898ee8 11888
8d138742
CE
11889 case $lt_cv_dlopen_self in
11890 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11891 *) enable_dlopen_self=unknown ;;
11892 esac
d9898ee8 11893
8d138742
CE
11894 case $lt_cv_dlopen_self_static in
11895 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11896 *) enable_dlopen_self_static=unknown ;;
11897 esac
11898fi
d9898ee8 11899
d9898ee8 11900
d9898ee8 11901
d9898ee8 11902
d9898ee8 11903
d9898ee8 11904
d9898ee8 11905
d9898ee8 11906
d9898ee8 11907
d9898ee8 11908
d9898ee8 11909
d9898ee8 11910
d9898ee8 11911
d9898ee8 11912
8d138742
CE
11913
11914
11915
11916striplib=
11917old_striplib=
b0322a85 11918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8d138742
CE
11919$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11920if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11921 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11922 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
b0322a85 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11924$as_echo "yes" >&6; }
11925else
11926# FIXME - insert some real tests, host_os isn't really good enough
11927 case $host_os in
11928 darwin*)
d50284c4 11929 if test -n "$STRIP"; then
8d138742
CE
11930 striplib="$STRIP -x"
11931 old_striplib="$STRIP -S"
b0322a85 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8d138742
CE
11933$as_echo "yes" >&6; }
11934 else
b0322a85 11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742 11936$as_echo "no" >&6; }
d9898ee8 11937 fi
8d138742
CE
11938 ;;
11939 *)
b0322a85 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8d138742
CE
11941$as_echo "no" >&6; }
11942 ;;
11943 esac
11944fi
d9898ee8 11945
d9898ee8 11946
d9898ee8 11947
d9898ee8 11948
d9898ee8 11949
d9898ee8 11950
d9898ee8 11951
d9898ee8 11952
d9898ee8 11953
d9898ee8 11954
dd184caf 11955
dd184caf 11956
d50284c4 11957 # Report what library types will actually be built
b0322a85 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
8d138742 11959$as_echo_n "checking if libtool supports shared libraries... " >&6; }
b0322a85 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
8d138742 11961$as_echo "$can_build_shared" >&6; }
d9898ee8 11962
b0322a85 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
8d138742 11964$as_echo_n "checking whether to build shared libraries... " >&6; }
d50284c4 11965 test no = "$can_build_shared" && enable_shared=no
8d138742
CE
11966
11967 # On AIX, shared libraries and static libraries use the same namespace, and
11968 # are all built from PIC.
11969 case $host_os in
11970 aix3*)
d50284c4 11971 test yes = "$enable_shared" && enable_static=no
8d138742
CE
11972 if test -n "$RANLIB"; then
11973 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11974 postinstall_cmds='$RANLIB $lib'
11975 fi
11976 ;;
11977
11978 aix[4-9]*)
d50284c4
CE
11979 if test ia64 != "$host_cpu"; then
11980 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11981 yes,aix,yes) ;; # shared object as lib.so file only
11982 yes,svr4,*) ;; # shared object as lib.so archive member only
11983 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11984 esac
8d138742
CE
11985 fi
11986 ;;
11987 esac
b0322a85 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
8d138742
CE
11989$as_echo "$enable_shared" >&6; }
11990
b0322a85 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
8d138742
CE
11992$as_echo_n "checking whether to build static libraries... " >&6; }
11993 # Make sure either enable_shared or enable_static is yes.
d50284c4 11994 test yes = "$enable_shared" || enable_static=yes
b0322a85 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
8d138742 11996$as_echo "$enable_static" >&6; }
d9898ee8 11997
d9898ee8 11998
d9898ee8 11999
dd184caf 12000
d9898ee8 12001fi
8d138742
CE
12002ac_ext=c
12003ac_cpp='$CPP $CPPFLAGS'
12004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12006ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 12007
d50284c4 12008CC=$lt_save_CC
d9898ee8 12009
d9898ee8 12010
d9898ee8 12011
d9898ee8 12012
d9898ee8 12013
d9898ee8 12014
d9898ee8 12015
d9898ee8 12016
d9898ee8 12017
d9898ee8 12018
d9898ee8 12019
d9898ee8 12020
d9898ee8 12021
b0322a85
CE
12022
12023
8d138742 12024 ac_config_commands="$ac_config_commands libtool"
d9898ee8 12025
d9898ee8 12026
d9898ee8 12027
d9898ee8 12028
8d138742 12029# Only expand once:
d9898ee8 12030
d9898ee8 12031
b0322a85
CE
12032# Check whether --enable-largefile was given.
12033if test "${enable_largefile+set}" = set; then :
12034 enableval=$enable_largefile;
12035fi
12036
12037if test "$enable_largefile" != no; then
12038
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12040$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12041if ${ac_cv_sys_largefile_CC+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043else
12044 ac_cv_sys_largefile_CC=no
12045 if test "$GCC" != yes; then
12046 ac_save_CC=$CC
12047 while :; do
12048 # IRIX 6.2 and later do not support large files by default,
12049 # so use the C compiler's -n32 option if that helps.
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051/* end confdefs.h. */
12052#include <sys/types.h>
12053 /* Check that off_t can represent 2**63 - 1 correctly.
12054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12055 since some C++ compilers masquerading as C compilers
12056 incorrectly reject 9223372036854775807. */
12057#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12059 && LARGE_OFF_T % 2147483647 == 1)
12060 ? 1 : -1];
12061int
12062main ()
12063{
12064
12065 ;
12066 return 0;
12067}
12068_ACEOF
12069 if ac_fn_c_try_compile "$LINENO"; then :
12070 break
12071fi
12072rm -f core conftest.err conftest.$ac_objext
12073 CC="$CC -n32"
12074 if ac_fn_c_try_compile "$LINENO"; then :
12075 ac_cv_sys_largefile_CC=' -n32'; break
12076fi
12077rm -f core conftest.err conftest.$ac_objext
12078 break
12079 done
12080 CC=$ac_save_CC
12081 rm -f conftest.$ac_ext
12082 fi
12083fi
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12085$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12086 if test "$ac_cv_sys_largefile_CC" != no; then
12087 CC=$CC$ac_cv_sys_largefile_CC
12088 fi
12089
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12091$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12092if ${ac_cv_sys_file_offset_bits+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094else
12095 while :; do
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h. */
12098#include <sys/types.h>
12099 /* Check that off_t can represent 2**63 - 1 correctly.
12100 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12101 since some C++ compilers masquerading as C compilers
12102 incorrectly reject 9223372036854775807. */
12103#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12104 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12105 && LARGE_OFF_T % 2147483647 == 1)
12106 ? 1 : -1];
12107int
12108main ()
12109{
12110
12111 ;
12112 return 0;
12113}
12114_ACEOF
12115if ac_fn_c_try_compile "$LINENO"; then :
12116 ac_cv_sys_file_offset_bits=no; break
12117fi
12118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120/* end confdefs.h. */
12121#define _FILE_OFFSET_BITS 64
12122#include <sys/types.h>
12123 /* Check that off_t can represent 2**63 - 1 correctly.
12124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12125 since some C++ compilers masquerading as C compilers
12126 incorrectly reject 9223372036854775807. */
12127#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12129 && LARGE_OFF_T % 2147483647 == 1)
12130 ? 1 : -1];
12131int
12132main ()
12133{
12134
12135 ;
12136 return 0;
12137}
12138_ACEOF
12139if ac_fn_c_try_compile "$LINENO"; then :
12140 ac_cv_sys_file_offset_bits=64; break
12141fi
12142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 ac_cv_sys_file_offset_bits=unknown
12144 break
12145done
12146fi
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12148$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12149case $ac_cv_sys_file_offset_bits in #(
12150 no | unknown) ;;
12151 *)
12152cat >>confdefs.h <<_ACEOF
12153#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12154_ACEOF
12155;;
12156esac
12157rm -rf conftest*
12158 if test $ac_cv_sys_file_offset_bits = unknown; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12160$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12161if ${ac_cv_sys_large_files+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163else
12164 while :; do
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166/* end confdefs.h. */
12167#include <sys/types.h>
12168 /* Check that off_t can represent 2**63 - 1 correctly.
12169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12170 since some C++ compilers masquerading as C compilers
12171 incorrectly reject 9223372036854775807. */
12172#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12174 && LARGE_OFF_T % 2147483647 == 1)
12175 ? 1 : -1];
12176int
12177main ()
12178{
12179
12180 ;
12181 return 0;
12182}
12183_ACEOF
12184if ac_fn_c_try_compile "$LINENO"; then :
12185 ac_cv_sys_large_files=no; break
12186fi
12187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189/* end confdefs.h. */
12190#define _LARGE_FILES 1
12191#include <sys/types.h>
12192 /* Check that off_t can represent 2**63 - 1 correctly.
12193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12194 since some C++ compilers masquerading as C compilers
12195 incorrectly reject 9223372036854775807. */
12196#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12198 && LARGE_OFF_T % 2147483647 == 1)
12199 ? 1 : -1];
12200int
12201main ()
12202{
12203
12204 ;
12205 return 0;
12206}
12207_ACEOF
12208if ac_fn_c_try_compile "$LINENO"; then :
12209 ac_cv_sys_large_files=1; break
12210fi
12211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212 ac_cv_sys_large_files=unknown
12213 break
12214done
12215fi
12216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12217$as_echo "$ac_cv_sys_large_files" >&6; }
12218case $ac_cv_sys_large_files in #(
12219 no | unknown) ;;
12220 *)
12221cat >>confdefs.h <<_ACEOF
12222#define _LARGE_FILES $ac_cv_sys_large_files
12223_ACEOF
12224;;
12225esac
12226rm -rf conftest*
12227 fi
12228
12229
12230fi
12231
d9898ee8 12232
8d138742
CE
12233if test x$GCC = xyes
12234then
12235 CFLAGS="-Wall $CFLAGS"
12236fi
12237if test x$GXX = xyes
12238then
12239 CXXFLAGS="-Wall $CXXFLAGS"
12240fi
d9898ee8 12241
b0322a85
CE
12242CFLAGS="-I$srcdir/.. -I.. -I$srcdir/../.. -I../.. $CFLAGS"
12243CXXFLAGS="-I$srcdir/.. -I.. -I$srcdir/../.. -I../.. $CXXFLAGS"
d9898ee8 12244
d9898ee8 12245
b0322a85 12246. ../../dbobj.config
8d138742
CE
12247if test "$dblibrary" != ""
12248then
b0322a85 12249 dblibrary="../../$dblibrary"
8d138742 12250fi
d9898ee8 12251
d9898ee8 12252
8d138742
CE
12253makedatprog_target=""
12254if test "$dblibrary" != ""
12255then
12256 makedatprog_target=makedatprog
12257fi
d9898ee8 12258
d9898ee8 12259
d9898ee8 12260
b0322a85 12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8d138742 12262$as_echo_n "checking for ANSI C header files... " >&6; }
b0322a85 12263if ${ac_cv_header_stdc+:} false; then :
8d138742
CE
12264 $as_echo_n "(cached) " >&6
12265else
b0322a85 12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12267/* end confdefs.h. */
12268#include <stdlib.h>
12269#include <stdarg.h>
12270#include <string.h>
12271#include <float.h>
d9898ee8 12272
8d138742
CE
12273int
12274main ()
b0322a85
CE
12275{
12276
12277 ;
12278 return 0;
12279}
12280_ACEOF
12281if ac_fn_c_try_compile "$LINENO"; then :
8d138742
CE
12282 ac_cv_header_stdc=yes
12283else
b0322a85 12284 ac_cv_header_stdc=no
8d138742 12285fi
8d138742 12286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12287
8d138742
CE
12288if test $ac_cv_header_stdc = yes; then
12289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b0322a85 12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12291/* end confdefs.h. */
12292#include <string.h>
d9898ee8 12293
8d138742
CE
12294_ACEOF
12295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
12296 $EGREP "memchr" >/dev/null 2>&1; then :
12297
8d138742
CE
12298else
12299 ac_cv_header_stdc=no
12300fi
12301rm -f conftest*
d9898ee8 12302
8d138742 12303fi
d9898ee8 12304
8d138742
CE
12305if test $ac_cv_header_stdc = yes; then
12306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b0322a85 12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12308/* end confdefs.h. */
12309#include <stdlib.h>
d9898ee8 12310
8d138742
CE
12311_ACEOF
12312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b0322a85
CE
12313 $EGREP "free" >/dev/null 2>&1; then :
12314
8d138742
CE
12315else
12316 ac_cv_header_stdc=no
12317fi
12318rm -f conftest*
d9898ee8 12319
8d138742 12320fi
d9898ee8 12321
8d138742
CE
12322if test $ac_cv_header_stdc = yes; then
12323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b0322a85 12324 if test "$cross_compiling" = yes; then :
8d138742
CE
12325 :
12326else
b0322a85 12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8d138742
CE
12328/* end confdefs.h. */
12329#include <ctype.h>
12330#include <stdlib.h>
12331#if ((' ' & 0x0FF) == 0x020)
12332# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12333# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12334#else
12335# define ISLOWER(c) \
12336 (('a' <= (c) && (c) <= 'i') \
12337 || ('j' <= (c) && (c) <= 'r') \
12338 || ('s' <= (c) && (c) <= 'z'))
12339# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12340#endif
d9898ee8 12341
8d138742
CE
12342#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12343int
12344main ()
12345{
12346 int i;
12347 for (i = 0; i < 256; i++)
12348 if (XOR (islower (i), ISLOWER (i))
12349 || toupper (i) != TOUPPER (i))
12350 return 2;
12351 return 0;
12352}
12353_ACEOF
b0322a85 12354if ac_fn_c_try_run "$LINENO"; then :
d9898ee8 12355
b0322a85
CE
12356else
12357 ac_cv_header_stdc=no
8d138742 12358fi
b0322a85
CE
12359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12360 conftest.$ac_objext conftest.beam conftest.$ac_ext
8d138742 12361fi
ac40fd9e 12362
8d138742
CE
12363fi
12364fi
b0322a85 12365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8d138742
CE
12366$as_echo "$ac_cv_header_stdc" >&6; }
12367if test $ac_cv_header_stdc = yes; then
d9898ee8 12368
b0322a85 12369$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d9898ee8 12370
8d138742 12371fi
d9898ee8 12372
8d138742 12373for ac_header in unistd.h
b0322a85
CE
12374do :
12375 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12376if test "x$ac_cv_header_unistd_h" = xyes; then :
8d138742 12377 cat >>confdefs.h <<_ACEOF
b0322a85 12378#define HAVE_UNISTD_H 1
8d138742 12379_ACEOF
ac40fd9e 12380
8d138742 12381fi
d9898ee8 12382
8d138742 12383done
d9898ee8 12384
d9898ee8 12385
d9898ee8 12386
d9898ee8 12387
d9898ee8 12388
8d138742 12389# Check whether --with-makedatprog was given.
b0322a85 12390if test "${with_makedatprog+set}" = set; then :
8d138742
CE
12391 withval=$with_makedatprog; makedatprog="$withval"
12392else
12393 makedatprog="$bindir/makedatprog"
12394fi
d9898ee8 12395
d9898ee8 12396
8d138742 12397makedatprogpath="$makedatprog"
d9898ee8 12398
d9898ee8 12399
8d138742 12400ac_config_files="$ac_config_files Makefile makedat"
d9898ee8 12401
8d138742
CE
12402cat >confcache <<\_ACEOF
12403# This file is a shell script that caches the results of configure
12404# tests run on this system so they can be shared between configure
12405# scripts and configure runs, see configure's option --config-cache.
12406# It is not useful on other systems. If it contains results you don't
12407# want to keep, you may remove or edit it.
12408#
12409# config.status only pays attention to the cache file if you give it
12410# the --recheck option to rerun configure.
12411#
12412# `ac_cv_env_foo' variables (set or unset) will be overridden when
12413# loading this file, other *unset* `ac_cv_foo' will be assigned the
12414# following values.
d9898ee8 12415
8d138742
CE
12416_ACEOF
12417
12418# The following way of writing the cache mishandles newlines in values,
12419# but we know of no workaround that is simple, portable, and efficient.
12420# So, we kill variables containing newlines.
12421# Ultrix sh set writes to stderr and can't be redirected directly,
12422# and sets the high bit in the cache file unless we assign to the vars.
12423(
12424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12425 eval ac_val=\$$ac_var
12426 case $ac_val in #(
12427 *${as_nl}*)
12428 case $ac_var in #(
b0322a85 12429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8d138742
CE
12430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12431 esac
12432 case $ac_var in #(
12433 _ | IFS | as_nl) ;; #(
12434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
b0322a85 12435 *) { eval $ac_var=; unset $ac_var;} ;;
8d138742
CE
12436 esac ;;
12437 esac
12438 done
12439
12440 (set) 2>&1 |
12441 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12442 *${as_nl}ac_space=\ *)
b0322a85
CE
12443 # `set' does not quote correctly, so add quotes: double-quote
12444 # substitution turns \\\\ into \\, and sed turns \\ into \.
8d138742
CE
12445 sed -n \
12446 "s/'/'\\\\''/g;
12447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12448 ;; #(
12449 *)
12450 # `set' quotes correctly as required by POSIX, so do not add quotes.
12451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12452 ;;
12453 esac |
12454 sort
12455) |
12456 sed '
12457 /^ac_cv_env_/b end
12458 t clear
12459 :clear
12460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12461 t end
12462 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12463 :end' >>confcache
12464if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12465 if test -w "$cache_file"; then
b0322a85
CE
12466 if test "x$cache_file" != "x/dev/null"; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8d138742 12468$as_echo "$as_me: updating cache $cache_file" >&6;}
b0322a85
CE
12469 if test ! -f "$cache_file" || test -h "$cache_file"; then
12470 cat confcache >"$cache_file"
12471 else
12472 case $cache_file in #(
12473 */* | ?:*)
12474 mv -f confcache "$cache_file"$$ &&
12475 mv -f "$cache_file"$$ "$cache_file" ;; #(
12476 *)
12477 mv -f confcache "$cache_file" ;;
12478 esac
12479 fi
12480 fi
d9898ee8 12481 else
b0322a85 12482 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8d138742 12483$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 12484 fi
8d138742
CE
12485fi
12486rm -f confcache
d9898ee8 12487
8d138742
CE
12488test "x$prefix" = xNONE && prefix=$ac_default_prefix
12489# Let make expand exec_prefix.
12490test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 12491
8d138742 12492DEFS=-DHAVE_CONFIG_H
d9898ee8 12493
8d138742
CE
12494ac_libobjs=
12495ac_ltlibobjs=
d50284c4 12496U=
8d138742
CE
12497for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12498 # 1. Remove the extension, and $U if already installed.
12499 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12500 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12501 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12502 # will be set to the directory where LIBOBJS objects are built.
b0322a85
CE
12503 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12504 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8d138742
CE
12505done
12506LIBOBJS=$ac_libobjs
d9898ee8 12507
8d138742 12508LTLIBOBJS=$ac_ltlibobjs
ac40fd9e 12509
d9898ee8 12510
b0322a85
CE
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12512$as_echo_n "checking that generated files are newer than configure... " >&6; }
12513 if test -n "$am_sleep_pid"; then
12514 # Hide warnings about reused PIDs.
12515 wait $am_sleep_pid 2>/dev/null
12516 fi
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12518$as_echo "done" >&6; }
8d138742
CE
12519 if test -n "$EXEEXT"; then
12520 am__EXEEXT_TRUE=
12521 am__EXEEXT_FALSE='#'
12522else
12523 am__EXEEXT_TRUE='#'
12524 am__EXEEXT_FALSE=
12525fi
d9898ee8 12526
8d138742 12527if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
b0322a85
CE
12528 as_fn_error $? "conditional \"AMDEP\" was never defined.
12529Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742
CE
12530fi
12531if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
b0322a85
CE
12532 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12533Usually this means the macro was only invoked conditionally." "$LINENO" 5
8d138742 12534fi
d9898ee8 12535
b0322a85 12536: "${CONFIG_STATUS=./config.status}"
8d138742
CE
12537ac_write_fail=0
12538ac_clean_files_save=$ac_clean_files
12539ac_clean_files="$ac_clean_files $CONFIG_STATUS"
b0322a85 12540{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8d138742 12541$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
b0322a85
CE
12542as_write_fail=0
12543cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8d138742
CE
12544#! $SHELL
12545# Generated by $as_me.
12546# Run this file to recreate the current configuration.
12547# Compiler output produced by configure, useful for debugging
12548# configure, is in config.log if it exists.
d9898ee8 12549
8d138742
CE
12550debug=false
12551ac_cs_recheck=false
12552ac_cs_silent=false
d9898ee8 12553
b0322a85
CE
12554SHELL=\${CONFIG_SHELL-$SHELL}
12555export SHELL
12556_ASEOF
12557cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12558## -------------------- ##
12559## M4sh Initialization. ##
12560## -------------------- ##
d9898ee8 12561
8d138742
CE
12562# Be more Bourne compatible
12563DUALCASE=1; export DUALCASE # for MKS sh
b0322a85 12564if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8d138742
CE
12565 emulate sh
12566 NULLCMD=:
12567 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12568 # is contrary to our usage. Disable this feature.
12569 alias -g '${1+"$@"}'='"$@"'
12570 setopt NO_GLOB_SUBST
12571else
b0322a85
CE
12572 case `(set -o) 2>/dev/null` in #(
12573 *posix*) :
12574 set -o posix ;; #(
12575 *) :
12576 ;;
d9898ee8 12577esac
d9898ee8 12578fi
12579
d9898ee8 12580
8d138742
CE
12581as_nl='
12582'
12583export as_nl
12584# Printing a long string crashes Solaris 7 /usr/bin/printf.
12585as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12586as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12587as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
b0322a85
CE
12588# Prefer a ksh shell builtin over an external printf program on Solaris,
12589# but without wasting forks for bash or zsh.
12590if test -z "$BASH_VERSION$ZSH_VERSION" \
12591 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12592 as_echo='print -r --'
12593 as_echo_n='print -rn --'
12594elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8d138742
CE
12595 as_echo='printf %s\n'
12596 as_echo_n='printf %s'
12597else
12598 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12599 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12600 as_echo_n='/usr/ucb/echo -n'
d9898ee8 12601 else
8d138742
CE
12602 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12603 as_echo_n_body='eval
12604 arg=$1;
b0322a85 12605 case $arg in #(
8d138742
CE
12606 *"$as_nl"*)
12607 expr "X$arg" : "X\\(.*\\)$as_nl";
12608 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12609 esac;
12610 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12611 '
12612 export as_echo_n_body
12613 as_echo_n='sh -c $as_echo_n_body as_echo'
12614 fi
12615 export as_echo_body
12616 as_echo='sh -c $as_echo_body as_echo'
d9898ee8 12617fi
d9898ee8 12618
8d138742
CE
12619# The user is always right.
12620if test "${PATH_SEPARATOR+set}" != set; then
12621 PATH_SEPARATOR=:
12622 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12623 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12624 PATH_SEPARATOR=';'
12625 }
d9898ee8 12626fi
12627
d9898ee8 12628
8d138742
CE
12629# IFS
12630# We need space, tab and new line, in precisely that order. Quoting is
12631# there to prevent editors from complaining about space-tab.
12632# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12633# splitting by setting IFS to empty value.)
12634IFS=" "" $as_nl"
d9898ee8 12635
8d138742 12636# Find who we are. Look in the path if we contain no directory separator.
b0322a85
CE
12637as_myself=
12638case $0 in #((
8d138742
CE
12639 *[\\/]* ) as_myself=$0 ;;
12640 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641for as_dir in $PATH
12642do
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
b0322a85
CE
12645 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12646 done
8d138742 12647IFS=$as_save_IFS
d9898ee8 12648
8d138742
CE
12649 ;;
12650esac
12651# We did not find ourselves, most probably we were run as `sh COMMAND'
12652# in which case we are not to be found in the path.
12653if test "x$as_myself" = x; then
12654 as_myself=$0
12655fi
12656if test ! -f "$as_myself"; then
12657 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
b0322a85 12658 exit 1
8d138742 12659fi
d9898ee8 12660
b0322a85
CE
12661# Unset variables that we do not need and which cause bugs (e.g. in
12662# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12663# suppresses any "Segmentation fault" message there. '((' could
12664# trigger a bug in pdksh 5.2.14.
12665for as_var in BASH_ENV ENV MAIL MAILPATH
12666do eval test x\${$as_var+set} = xset \
12667 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8d138742
CE
12668done
12669PS1='$ '
12670PS2='> '
12671PS4='+ '
d9898ee8 12672
8d138742
CE
12673# NLS nuisances.
12674LC_ALL=C
12675export LC_ALL
12676LANGUAGE=C
12677export LANGUAGE
d9898ee8 12678
b0322a85
CE
12679# CDPATH.
12680(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12681
12682
12683# as_fn_error STATUS ERROR [LINENO LOG_FD]
12684# ----------------------------------------
12685# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12686# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12687# script with STATUS, using 1 if that was 0.
12688as_fn_error ()
12689{
12690 as_status=$1; test $as_status -eq 0 && as_status=1
12691 if test "$4"; then
12692 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12693 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12694 fi
12695 $as_echo "$as_me: error: $2" >&2
12696 as_fn_exit $as_status
12697} # as_fn_error
12698
12699
12700# as_fn_set_status STATUS
12701# -----------------------
12702# Set $? to STATUS, without forking.
12703as_fn_set_status ()
12704{
12705 return $1
12706} # as_fn_set_status
12707
12708# as_fn_exit STATUS
12709# -----------------
12710# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12711as_fn_exit ()
12712{
12713 set +e
12714 as_fn_set_status $1
12715 exit $1
12716} # as_fn_exit
12717
12718# as_fn_unset VAR
12719# ---------------
12720# Portably unset VAR.
12721as_fn_unset ()
12722{
12723 { eval $1=; unset $1;}
12724}
12725as_unset=as_fn_unset
12726# as_fn_append VAR VALUE
12727# ----------------------
12728# Append the text in VALUE to the end of the definition contained in VAR. Take
12729# advantage of any shell optimizations that allow amortized linear growth over
12730# repeated appends, instead of the typical quadratic growth present in naive
12731# implementations.
12732if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12733 eval 'as_fn_append ()
12734 {
12735 eval $1+=\$2
12736 }'
12737else
12738 as_fn_append ()
12739 {
12740 eval $1=\$$1\$2
12741 }
12742fi # as_fn_append
12743
12744# as_fn_arith ARG...
12745# ------------------
12746# Perform arithmetic evaluation on the ARGs, and store the result in the
12747# global $as_val. Take advantage of shells that can avoid forks. The arguments
12748# must be portable across $(()) and expr.
12749if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12750 eval 'as_fn_arith ()
12751 {
12752 as_val=$(( $* ))
12753 }'
12754else
12755 as_fn_arith ()
12756 {
12757 as_val=`expr "$@" || test $? -eq 1`
12758 }
12759fi # as_fn_arith
12760
12761
8d138742
CE
12762if expr a : '\(a\)' >/dev/null 2>&1 &&
12763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12764 as_expr=expr
12765else
12766 as_expr=false
12767fi
d9898ee8 12768
8d138742
CE
12769if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12770 as_basename=basename
12771else
12772 as_basename=false
12773fi
d9898ee8 12774
b0322a85
CE
12775if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12776 as_dirname=dirname
12777else
12778 as_dirname=false
12779fi
d9898ee8 12780
8d138742
CE
12781as_me=`$as_basename -- "$0" ||
12782$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12783 X"$0" : 'X\(//\)$' \| \
12784 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12785$as_echo X/"$0" |
12786 sed '/^.*\/\([^/][^/]*\)\/*$/{
12787 s//\1/
12788 q
12789 }
12790 /^X\/\(\/\/\)$/{
12791 s//\1/
12792 q
12793 }
12794 /^X\/\(\/\).*/{
12795 s//\1/
12796 q
12797 }
12798 s/.*/./; q'`
d9898ee8 12799
b0322a85
CE
12800# Avoid depending upon Character Ranges.
12801as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12802as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12803as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12804as_cr_digits='0123456789'
12805as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 12806
8d138742 12807ECHO_C= ECHO_N= ECHO_T=
b0322a85 12808case `echo -n x` in #(((((
8d138742 12809-n*)
b0322a85 12810 case `echo 'xy\c'` in
8d138742 12811 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
b0322a85
CE
12812 xy) ECHO_C='\c';;
12813 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12814 ECHO_T=' ';;
8d138742
CE
12815 esac;;
12816*)
12817 ECHO_N='-n';;
12818esac
b0322a85
CE
12819
12820rm -f conf$$ conf$$.exe conf$$.file
12821if test -d conf$$.dir; then
12822 rm -f conf$$.dir/conf$$.file
8d138742 12823else
b0322a85
CE
12824 rm -f conf$$.dir
12825 mkdir conf$$.dir 2>/dev/null
12826fi
12827if (echo >conf$$.file) 2>/dev/null; then
12828 if ln -s conf$$.file conf$$ 2>/dev/null; then
12829 as_ln_s='ln -s'
12830 # ... but there are two gotchas:
12831 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12832 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12833 # In both cases, we have to default to `cp -pR'.
12834 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12835 as_ln_s='cp -pR'
12836 elif ln conf$$.file conf$$ 2>/dev/null; then
12837 as_ln_s=ln
12838 else
12839 as_ln_s='cp -pR'
12840 fi
12841else
12842 as_ln_s='cp -pR'
8d138742 12843fi
b0322a85
CE
12844rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12845rmdir conf$$.dir 2>/dev/null
12846
12847
12848# as_fn_mkdir_p
12849# -------------
12850# Create "$as_dir" as a directory, including parents if necessary.
12851as_fn_mkdir_p ()
12852{
12853
12854 case $as_dir in #(
12855 -*) as_dir=./$as_dir;;
12856 esac
12857 test -d "$as_dir" || eval $as_mkdir_p || {
12858 as_dirs=
12859 while :; do
12860 case $as_dir in #(
12861 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12862 *) as_qdir=$as_dir;;
12863 esac
12864 as_dirs="'$as_qdir' $as_dirs"
12865 as_dir=`$as_dirname -- "$as_dir" ||
12866$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12867 X"$as_dir" : 'X\(//\)[^/]' \| \
12868 X"$as_dir" : 'X\(//\)$' \| \
12869 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12870$as_echo X"$as_dir" |
12871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12872 s//\1/
12873 q
12874 }
12875 /^X\(\/\/\)[^/].*/{
12876 s//\1/
12877 q
12878 }
12879 /^X\(\/\/\)$/{
12880 s//\1/
12881 q
12882 }
12883 /^X\(\/\).*/{
12884 s//\1/
12885 q
12886 }
12887 s/.*/./; q'`
12888 test -d "$as_dir" && break
12889 done
12890 test -z "$as_dirs" || eval "mkdir $as_dirs"
12891 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
d9898ee8 12892
d9898ee8 12893
b0322a85 12894} # as_fn_mkdir_p
8d138742 12895if mkdir -p . 2>/dev/null; then
b0322a85 12896 as_mkdir_p='mkdir -p "$as_dir"'
8d138742
CE
12897else
12898 test -d ./-p && rmdir ./-p
12899 as_mkdir_p=false
12900fi
d9898ee8 12901
b0322a85
CE
12902
12903# as_fn_executable_p FILE
12904# -----------------------
12905# Test if FILE is an executable regular file.
12906as_fn_executable_p ()
12907{
12908 test -f "$1" && test -x "$1"
12909} # as_fn_executable_p
12910as_test_x='test -x'
12911as_executable_p=as_fn_executable_p
d9898ee8 12912
8d138742
CE
12913# Sed expression to map a string onto a valid CPP name.
12914as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12915
8d138742
CE
12916# Sed expression to map a string onto a valid variable name.
12917as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 12918
d9898ee8 12919
8d138742 12920exec 6>&1
b0322a85
CE
12921## ----------------------------------- ##
12922## Main body of $CONFIG_STATUS script. ##
12923## ----------------------------------- ##
12924_ASEOF
12925test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
d9898ee8 12926
b0322a85
CE
12927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12928# Save the log message, to keep $0 and so on meaningful, and to
8d138742
CE
12929# report actual input values of CONFIG_FILES etc. instead of their
12930# values after options handling.
12931ac_log="
12932This file was extended by makedat $as_me 0.60, which was
b0322a85 12933generated by GNU Autoconf 2.69. Invocation command line was
d9898ee8 12934
8d138742
CE
12935 CONFIG_FILES = $CONFIG_FILES
12936 CONFIG_HEADERS = $CONFIG_HEADERS
12937 CONFIG_LINKS = $CONFIG_LINKS
12938 CONFIG_COMMANDS = $CONFIG_COMMANDS
12939 $ $0 $@
d9898ee8 12940
8d138742
CE
12941on `(hostname || uname -n) 2>/dev/null | sed 1q`
12942"
d9898ee8 12943
8d138742 12944_ACEOF
d9898ee8 12945
8d138742
CE
12946case $ac_config_files in *"
12947"*) set x $ac_config_files; shift; ac_config_files=$*;;
12948esac
d9898ee8 12949
8d138742
CE
12950case $ac_config_headers in *"
12951"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12952esac
d9898ee8 12953
d9898ee8 12954
8d138742
CE
12955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12956# Files that config.status was made for.
12957config_files="$ac_config_files"
12958config_headers="$ac_config_headers"
12959config_commands="$ac_config_commands"
d9898ee8 12960
8d138742 12961_ACEOF
d9898ee8 12962
8d138742
CE
12963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12964ac_cs_usage="\
b0322a85
CE
12965\`$as_me' instantiates files and other configuration actions
12966from templates according to the current configuration. Unless the files
12967and actions are specified as TAGs, all are instantiated by default.
d9898ee8 12968
b0322a85 12969Usage: $0 [OPTION]... [TAG]...
d9898ee8 12970
8d138742
CE
12971 -h, --help print this help, then exit
12972 -V, --version print version number and configuration settings, then exit
b0322a85 12973 --config print configuration, then exit
8d138742
CE
12974 -q, --quiet, --silent
12975 do not print progress messages
12976 -d, --debug don't remove temporary files
12977 --recheck update $as_me by reconfiguring in the same conditions
12978 --file=FILE[:TEMPLATE]
12979 instantiate the configuration file FILE
12980 --header=FILE[:TEMPLATE]
12981 instantiate the configuration header FILE
d9898ee8 12982
8d138742
CE
12983Configuration files:
12984$config_files
d9898ee8 12985
8d138742
CE
12986Configuration headers:
12987$config_headers
d9898ee8 12988
8d138742
CE
12989Configuration commands:
12990$config_commands
d9898ee8 12991
b0322a85 12992Report bugs to <courier-users@lists.sourceforge.net>."
d9898ee8 12993
8d138742
CE
12994_ACEOF
12995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 12996ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8d138742
CE
12997ac_cs_version="\\
12998makedat config.status 0.60
b0322a85
CE
12999configured by $0, generated by GNU Autoconf 2.69,
13000 with options \\"\$ac_cs_config\\"
d9898ee8 13001
b0322a85 13002Copyright (C) 2012 Free Software Foundation, Inc.
8d138742
CE
13003This config.status script is free software; the Free Software Foundation
13004gives unlimited permission to copy, distribute and modify it."
d9898ee8 13005
8d138742
CE
13006ac_pwd='$ac_pwd'
13007srcdir='$srcdir'
13008INSTALL='$INSTALL'
13009MKDIR_P='$MKDIR_P'
13010AWK='$AWK'
13011test -n "\$AWK" || AWK=awk
13012_ACEOF
d9898ee8 13013
8d138742
CE
13014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13015# The default lists apply if the user does not specify any file.
13016ac_need_defaults=:
13017while test $# != 0
13018do
13019 case $1 in
b0322a85 13020 --*=?*)
8d138742
CE
13021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13022 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13023 ac_shift=:
13024 ;;
b0322a85
CE
13025 --*=)
13026 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13027 ac_optarg=
13028 ac_shift=:
13029 ;;
8d138742
CE
13030 *)
13031 ac_option=$1
13032 ac_optarg=$2
13033 ac_shift=shift
13034 ;;
13035 esac
d9898ee8 13036
8d138742
CE
13037 case $ac_option in
13038 # Handling of the options.
13039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13040 ac_cs_recheck=: ;;
13041 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13042 $as_echo "$ac_cs_version"; exit ;;
b0322a85
CE
13043 --config | --confi | --conf | --con | --co | --c )
13044 $as_echo "$ac_cs_config"; exit ;;
8d138742
CE
13045 --debug | --debu | --deb | --de | --d | -d )
13046 debug=: ;;
13047 --file | --fil | --fi | --f )
13048 $ac_shift
13049 case $ac_optarg in
13050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b0322a85 13051 '') as_fn_error $? "missing file argument" ;;
8d138742 13052 esac
b0322a85 13053 as_fn_append CONFIG_FILES " '$ac_optarg'"
8d138742
CE
13054 ac_need_defaults=false;;
13055 --header | --heade | --head | --hea )
13056 $ac_shift
13057 case $ac_optarg in
13058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13059 esac
b0322a85 13060 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8d138742
CE
13061 ac_need_defaults=false;;
13062 --he | --h)
13063 # Conflict between --help and --header
b0322a85
CE
13064 as_fn_error $? "ambiguous option: \`$1'
13065Try \`$0 --help' for more information.";;
8d138742
CE
13066 --help | --hel | -h )
13067 $as_echo "$ac_cs_usage"; exit ;;
13068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13070 ac_cs_silent=: ;;
d9898ee8 13071
8d138742 13072 # This is an error.
b0322a85
CE
13073 -*) as_fn_error $? "unrecognized option: \`$1'
13074Try \`$0 --help' for more information." ;;
d9898ee8 13075
b0322a85 13076 *) as_fn_append ac_config_targets " $1"
8d138742 13077 ac_need_defaults=false ;;
d9898ee8 13078
8d138742
CE
13079 esac
13080 shift
13081done
d9898ee8 13082
8d138742 13083ac_configure_extra_args=
d9898ee8 13084
8d138742
CE
13085if $ac_cs_silent; then
13086 exec 6>/dev/null
13087 ac_configure_extra_args="$ac_configure_extra_args --silent"
13088fi
d9898ee8 13089
8d138742
CE
13090_ACEOF
13091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13092if \$ac_cs_recheck; then
b0322a85 13093 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8d138742
CE
13094 shift
13095 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13096 CONFIG_SHELL='$SHELL'
13097 export CONFIG_SHELL
13098 exec "\$@"
13099fi
d9898ee8 13100
8d138742
CE
13101_ACEOF
13102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13103exec 5>>config.log
13104{
13105 echo
13106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13107## Running $as_me. ##
13108_ASBOX
13109 $as_echo "$ac_log"
13110} >&5
d9898ee8 13111
8d138742
CE
13112_ACEOF
13113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13114#
13115# INIT-COMMANDS
13116#
13117AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13118
d9898ee8 13119
8d138742
CE
13120# The HP-UX ksh and POSIX shell print the target directory to stdout
13121# if CDPATH is set.
13122(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13123
8d138742
CE
13124sed_quote_subst='$sed_quote_subst'
13125double_quote_subst='$double_quote_subst'
13126delay_variable_subst='$delay_variable_subst'
b0322a85
CE
13127macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13128macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13129enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13130enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13131pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13132enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
d50284c4 13133shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13134SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13135ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13136PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13137host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13138host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13139host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13140build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13141build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13142build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13143SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13144Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13145GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13146EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13147FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13148LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13149NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13150LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13151max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13152ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13153exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13154lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13155lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13156lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13157lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13158lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13159reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13160reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13161OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13162deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13163file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13164file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13165want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13166DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13167sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13168AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13169AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13170archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13171STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13172RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13173old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13174old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13175old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13176lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13177CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13178CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13179compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13180GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13181lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13182lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
d50284c4 13183lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13184lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13185lt_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"`'
d50284c4 13186lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13187nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13188lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
d50284c4 13189lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13190objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13191MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13192lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13193lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13194lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13195lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13196lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13197need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13198MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13199DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13200NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13201LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13202OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13203OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13204libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13205shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13206extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13207archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13208enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13209export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13210whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13211compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13212old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13213old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13214archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13215archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13216module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13217module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13218with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13219allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13220no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13221hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13222hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13223hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13224hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13225hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13226hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13227hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13228inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13229link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13230always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13231export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13232exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13233include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13234prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13235postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13236file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13237variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13238need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13239need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13240version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13241runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13242shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13243shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13244libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13245library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13246soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13247install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13248postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13249postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13250finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13251finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13252hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13253sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
d50284c4
CE
13254configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13255configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
b0322a85
CE
13256hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13257enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13258enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13259enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13260old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13261striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
8d138742
CE
13262
13263LTCC='$LTCC'
13264LTCFLAGS='$LTCFLAGS'
13265compiler='$compiler_DEFAULT'
13266
b0322a85
CE
13267# A function that is used when there is no print builtin or printf.
13268func_fallback_echo ()
13269{
13270 eval 'cat <<_LTECHO_EOF
13271\$1
13272_LTECHO_EOF'
13273}
13274
8d138742 13275# Quote evaled strings.
b0322a85
CE
13276for var in SHELL \
13277ECHO \
13278PATH_SEPARATOR \
13279SED \
8d138742
CE
13280GREP \
13281EGREP \
13282FGREP \
13283LD \
13284NM \
13285LN_S \
13286lt_SP2NL \
13287lt_NL2SP \
13288reload_flag \
13289OBJDUMP \
13290deplibs_check_method \
13291file_magic_cmd \
b0322a85
CE
13292file_magic_glob \
13293want_nocaseglob \
13294DLLTOOL \
13295sharedlib_from_linklib_cmd \
8d138742
CE
13296AR \
13297AR_FLAGS \
b0322a85 13298archiver_list_spec \
8d138742
CE
13299STRIP \
13300RANLIB \
13301CC \
13302CFLAGS \
13303compiler \
13304lt_cv_sys_global_symbol_pipe \
13305lt_cv_sys_global_symbol_to_cdecl \
d50284c4 13306lt_cv_sys_global_symbol_to_import \
8d138742
CE
13307lt_cv_sys_global_symbol_to_c_name_address \
13308lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d50284c4 13309lt_cv_nm_interface \
b0322a85 13310nm_file_list_spec \
d50284c4 13311lt_cv_truncate_bin \
8d138742 13312lt_prog_compiler_no_builtin_flag \
8d138742 13313lt_prog_compiler_pic \
b0322a85 13314lt_prog_compiler_wl \
8d138742
CE
13315lt_prog_compiler_static \
13316lt_cv_prog_compiler_c_o \
13317need_locks \
b0322a85 13318MANIFEST_TOOL \
8d138742
CE
13319DSYMUTIL \
13320NMEDIT \
13321LIPO \
13322OTOOL \
13323OTOOL64 \
13324shrext_cmds \
13325export_dynamic_flag_spec \
13326whole_archive_flag_spec \
13327compiler_needs_object \
13328with_gnu_ld \
13329allow_undefined_flag \
13330no_undefined_flag \
13331hardcode_libdir_flag_spec \
8d138742 13332hardcode_libdir_separator \
8d138742
CE
13333exclude_expsyms \
13334include_expsyms \
13335file_list_spec \
13336variables_saved_for_relink \
13337libname_spec \
13338library_names_spec \
13339soname_spec \
b0322a85 13340install_override_mode \
8d138742
CE
13341finish_eval \
13342old_striplib \
13343striplib; do
b0322a85 13344 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13345 *[\\\\\\\`\\"\\\$]*)
d50284c4 13346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8d138742
CE
13347 ;;
13348 *)
13349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13350 ;;
13351 esac
13352done
d9898ee8 13353
8d138742
CE
13354# Double-quote double-evaled strings.
13355for var in reload_cmds \
13356old_postinstall_cmds \
13357old_postuninstall_cmds \
13358old_archive_cmds \
13359extract_expsyms_cmds \
13360old_archive_from_new_cmds \
13361old_archive_from_expsyms_cmds \
13362archive_cmds \
13363archive_expsym_cmds \
13364module_cmds \
13365module_expsym_cmds \
13366export_symbols_cmds \
13367prelink_cmds \
b0322a85 13368postlink_cmds \
8d138742
CE
13369postinstall_cmds \
13370postuninstall_cmds \
13371finish_cmds \
13372sys_lib_search_path_spec \
d50284c4
CE
13373configure_time_dlsearch_path \
13374configure_time_lt_sys_library_path; do
b0322a85 13375 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8d138742 13376 *[\\\\\\\`\\"\\\$]*)
d50284c4 13377 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
8d138742
CE
13378 ;;
13379 *)
13380 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13381 ;;
13382 esac
13383done
d9898ee8 13384
8d138742 13385ac_aux_dir='$ac_aux_dir'
d9898ee8 13386
d50284c4 13387# See if we are running on zsh, and set the options that allow our
8d138742 13388# commands through without removal of \ escapes INIT.
d50284c4 13389if test -n "\${ZSH_VERSION+set}"; then
8d138742
CE
13390 setopt NO_GLOB_SUBST
13391fi
d9898ee8 13392
d9898ee8 13393
8d138742
CE
13394 PACKAGE='$PACKAGE'
13395 VERSION='$VERSION'
8d138742
CE
13396 RM='$RM'
13397 ofile='$ofile'
d9898ee8 13398
d9898ee8 13399
d9898ee8 13400
d9898ee8 13401
8d138742 13402_ACEOF
d9898ee8 13403
8d138742 13404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 13405
8d138742
CE
13406# Handling of arguments.
13407for ac_config_target in $ac_config_targets
13408do
13409 case $ac_config_target in
13410 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13411 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13412 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13413 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13414 "makedat") CONFIG_FILES="$CONFIG_FILES makedat" ;;
d9898ee8 13415
b0322a85 13416 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8d138742
CE
13417 esac
13418done
d9898ee8 13419
d9898ee8 13420
8d138742
CE
13421# If the user did not use the arguments to specify the items to instantiate,
13422# then the envvar interface is used. Set only those that are not.
13423# We use the long form for the default assignment because of an extremely
13424# bizarre bug on SunOS 4.1.3.
13425if $ac_need_defaults; then
13426 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13427 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13428 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13429fi
d9898ee8 13430
8d138742
CE
13431# Have a temporary directory for convenience. Make it in the build tree
13432# simply because there is no reason against having it here, and in addition,
13433# creating and moving files from /tmp can sometimes cause problems.
13434# Hook for its removal unless debugging.
13435# Note that there is a small window in which the directory will not be cleaned:
13436# after its creation but before its name has been assigned to `$tmp'.
13437$debug ||
13438{
b0322a85 13439 tmp= ac_tmp=
8d138742 13440 trap 'exit_status=$?
b0322a85
CE
13441 : "${ac_tmp:=$tmp}"
13442 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8d138742 13443' 0
b0322a85 13444 trap 'as_fn_exit 1' 1 2 13 15
8d138742
CE
13445}
13446# Create a (secure) tmp directory for tmp files.
d9898ee8 13447
8d138742
CE
13448{
13449 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b0322a85 13450 test -d "$tmp"
8d138742
CE
13451} ||
13452{
13453 tmp=./conf$$-$RANDOM
13454 (umask 077 && mkdir "$tmp")
b0322a85
CE
13455} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13456ac_tmp=$tmp
d9898ee8 13457
8d138742
CE
13458# Set up the scripts for CONFIG_FILES section.
13459# No need to generate them if there are no CONFIG_FILES.
13460# This happens for instance with `./config.status config.h'.
13461if test -n "$CONFIG_FILES"; then
d9898ee8 13462
13463
b0322a85
CE
13464ac_cr=`echo X | tr X '\015'`
13465# On cygwin, bash can eat \r inside `` if the user requested igncr.
13466# But we know of no other shell where ac_cr would be empty at this
13467# point, so we can use a bashism as a fallback.
13468if test "x$ac_cr" = x; then
13469 eval ac_cr=\$\'\\r\'
13470fi
8d138742
CE
13471ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13472if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13473 ac_cs_awk_cr='\\r'
d9898ee8 13474else
8d138742 13475 ac_cs_awk_cr=$ac_cr
d9898ee8 13476fi
13477
b0322a85 13478echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8d138742 13479_ACEOF
d9898ee8 13480
d9898ee8 13481
8d138742
CE
13482{
13483 echo "cat >conf$$subs.awk <<_ACEOF" &&
13484 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13485 echo "_ACEOF"
13486} >conf$$subs.sh ||
b0322a85
CE
13487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13488ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8d138742
CE
13489ac_delim='%!_!# '
13490for ac_last_try in false false false false false :; do
13491 . ./conf$$subs.sh ||
b0322a85 13492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
d9898ee8 13493
8d138742
CE
13494 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13495 if test $ac_delim_n = $ac_delim_num; then
13496 break
13497 elif $ac_last_try; then
b0322a85 13498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8d138742
CE
13499 else
13500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13501 fi
13502done
13503rm -f conf$$subs.sh
13504
13505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0322a85 13506cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8d138742
CE
13507_ACEOF
13508sed -n '
13509h
13510s/^/S["/; s/!.*/"]=/
13511p
13512g
13513s/^[^!]*!//
13514:repl
13515t repl
13516s/'"$ac_delim"'$//
13517t delim
13518:nl
13519h
b0322a85 13520s/\(.\{148\}\)..*/\1/
8d138742
CE
13521t more1
13522s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13523p
13524n
13525b repl
13526:more1
13527s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13528p
13529g
13530s/.\{148\}//
13531t nl
13532:delim
13533h
b0322a85 13534s/\(.\{148\}\)..*/\1/
8d138742
CE
13535t more2
13536s/["\\]/\\&/g; s/^/"/; s/$/"/
13537p
13538b
13539:more2
13540s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13541p
13542g
13543s/.\{148\}//
13544t delim
13545' <conf$$subs.awk | sed '
13546/^[^""]/{
13547 N
13548 s/\n//
13549}
13550' >>$CONFIG_STATUS || ac_write_fail=1
13551rm -f conf$$subs.awk
13552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13553_ACAWK
b0322a85 13554cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8d138742
CE
13555 for (key in S) S_is_set[key] = 1
13556 FS = "\a"
d9898ee8 13557
8d138742
CE
13558}
13559{
13560 line = $ 0
13561 nfields = split(line, field, "@")
13562 substed = 0
13563 len = length(field[1])
13564 for (i = 2; i < nfields; i++) {
13565 key = field[i]
13566 keylen = length(key)
13567 if (S_is_set[key]) {
13568 value = S[key]
13569 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13570 len += length(value) + length(field[++i])
13571 substed = 1
13572 } else
13573 len += 1 + keylen
13574 }
d9898ee8 13575
8d138742
CE
13576 print line
13577}
d9898ee8 13578
8d138742
CE
13579_ACAWK
13580_ACEOF
13581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13582if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13583 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13584else
13585 cat
b0322a85
CE
13586fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13587 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8d138742 13588_ACEOF
d9898ee8 13589
b0322a85
CE
13590# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13591# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8d138742
CE
13592# trailing colons and then remove the whole line if VPATH becomes empty
13593# (actually we leave an empty line to preserve line numbers).
13594if test "x$srcdir" = x.; then
b0322a85
CE
13595 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13596h
13597s///
13598s/^/:/
13599s/[ ]*$/:/
13600s/:\$(srcdir):/:/g
13601s/:\${srcdir}:/:/g
13602s/:@srcdir@:/:/g
13603s/^:*//
8d138742 13604s/:*$//
b0322a85
CE
13605x
13606s/\(=[ ]*\).*/\1/
13607G
13608s/\n//
8d138742
CE
13609s/^[^=]*=[ ]*$//
13610}'
13611fi
d9898ee8 13612
8d138742
CE
13613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13614fi # test -n "$CONFIG_FILES"
d9898ee8 13615
8d138742
CE
13616# Set up the scripts for CONFIG_HEADERS section.
13617# No need to generate them if there are no CONFIG_HEADERS.
13618# This happens for instance with `./config.status Makefile'.
13619if test -n "$CONFIG_HEADERS"; then
b0322a85 13620cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8d138742
CE
13621BEGIN {
13622_ACEOF
d9898ee8 13623
8d138742
CE
13624# Transform confdefs.h into an awk script `defines.awk', embedded as
13625# here-document in config.status, that substitutes the proper values into
13626# config.h.in to produce config.h.
d9898ee8 13627
8d138742
CE
13628# Create a delimiter string that does not exist in confdefs.h, to ease
13629# handling of long lines.
13630ac_delim='%!_!# '
13631for ac_last_try in false false :; do
b0322a85
CE
13632 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13633 if test -z "$ac_tt"; then
8d138742
CE
13634 break
13635 elif $ac_last_try; then
b0322a85 13636 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8d138742
CE
13637 else
13638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13639 fi
13640done
d9898ee8 13641
8d138742
CE
13642# For the awk script, D is an array of macro values keyed by name,
13643# likewise P contains macro parameters if any. Preserve backslash
13644# newline sequences.
d9898ee8 13645
8d138742
CE
13646ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13647sed -n '
13648s/.\{148\}/&'"$ac_delim"'/g
13649t rset
13650:rset
13651s/^[ ]*#[ ]*define[ ][ ]*/ /
13652t def
13653d
13654:def
13655s/\\$//
13656t bsnl
13657s/["\\]/\\&/g
13658s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13659D["\1"]=" \3"/p
13660s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13661d
13662:bsnl
13663s/["\\]/\\&/g
13664s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13665D["\1"]=" \3\\\\\\n"\\/p
13666t cont
13667s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13668t cont
13669d
13670:cont
13671n
13672s/.\{148\}/&'"$ac_delim"'/g
13673t clear
13674:clear
13675s/\\$//
13676t bsnlc
13677s/["\\]/\\&/g; s/^/"/; s/$/"/p
13678d
13679:bsnlc
13680s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13681b cont
13682' <confdefs.h | sed '
13683s/'"$ac_delim"'/"\\\
13684"/g' >>$CONFIG_STATUS || ac_write_fail=1
13685
13686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13687 for (key in D) D_is_set[key] = 1
13688 FS = "\a"
13689}
13690/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13691 line = \$ 0
13692 split(line, arg, " ")
13693 if (arg[1] == "#") {
13694 defundef = arg[2]
13695 mac1 = arg[3]
13696 } else {
13697 defundef = substr(arg[1], 2)
13698 mac1 = arg[2]
13699 }
13700 split(mac1, mac2, "(") #)
13701 macro = mac2[1]
13702 prefix = substr(line, 1, index(line, defundef) - 1)
13703 if (D_is_set[macro]) {
13704 # Preserve the white space surrounding the "#".
13705 print prefix "define", macro P[macro] D[macro]
13706 next
13707 } else {
13708 # Replace #undef with comments. This is necessary, for example,
13709 # in the case of _POSIX_SOURCE, which is predefined and required
13710 # on some systems where configure will not decide to define it.
13711 if (defundef == "undef") {
13712 print "/*", prefix defundef, macro, "*/"
13713 next
13714 }
13715 }
13716}
13717{ print }
13718_ACAWK
13719_ACEOF
13720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0322a85 13721 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8d138742 13722fi # test -n "$CONFIG_HEADERS"
d9898ee8 13723
13724
8d138742
CE
13725eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13726shift
13727for ac_tag
13728do
13729 case $ac_tag in
13730 :[FHLC]) ac_mode=$ac_tag; continue;;
13731 esac
13732 case $ac_mode$ac_tag in
13733 :[FHL]*:*);;
b0322a85 13734 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8d138742
CE
13735 :[FH]-) ac_tag=-:-;;
13736 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13737 esac
13738 ac_save_IFS=$IFS
13739 IFS=:
13740 set x $ac_tag
13741 IFS=$ac_save_IFS
13742 shift
13743 ac_file=$1
13744 shift
dd184caf 13745
8d138742
CE
13746 case $ac_mode in
13747 :L) ac_source=$1;;
13748 :[FH])
13749 ac_file_inputs=
13750 for ac_f
13751 do
13752 case $ac_f in
b0322a85 13753 -) ac_f="$ac_tmp/stdin";;
8d138742
CE
13754 *) # Look for the file first in the build tree, then in the source tree
13755 # (if the path is not absolute). The absolute path cannot be DOS-style,
13756 # because $ac_f cannot contain `:'.
13757 test -f "$ac_f" ||
13758 case $ac_f in
13759 [\\/$]*) false;;
13760 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13761 esac ||
b0322a85 13762 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8d138742
CE
13763 esac
13764 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
b0322a85 13765 as_fn_append ac_file_inputs " '$ac_f'"
8d138742 13766 done
dd184caf 13767
8d138742
CE
13768 # Let's still pretend it is `configure' which instantiates (i.e., don't
13769 # use $as_me), people would be surprised to read:
13770 # /* config.h. Generated by config.status. */
13771 configure_input='Generated from '`
13772 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13773 `' by configure.'
13774 if test x"$ac_file" != x-; then
13775 configure_input="$ac_file. $configure_input"
b0322a85 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8d138742
CE
13777$as_echo "$as_me: creating $ac_file" >&6;}
13778 fi
13779 # Neutralize special characters interpreted by sed in replacement strings.
13780 case $configure_input in #(
13781 *\&* | *\|* | *\\* )
13782 ac_sed_conf_input=`$as_echo "$configure_input" |
13783 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13784 *) ac_sed_conf_input=$configure_input;;
13785 esac
d9898ee8 13786
8d138742 13787 case $ac_tag in
b0322a85
CE
13788 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8d138742
CE
13790 esac
13791 ;;
13792 esac
d9898ee8 13793
8d138742
CE
13794 ac_dir=`$as_dirname -- "$ac_file" ||
13795$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13796 X"$ac_file" : 'X\(//\)[^/]' \| \
13797 X"$ac_file" : 'X\(//\)$' \| \
13798 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13799$as_echo X"$ac_file" |
13800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13801 s//\1/
13802 q
13803 }
13804 /^X\(\/\/\)[^/].*/{
13805 s//\1/
13806 q
13807 }
13808 /^X\(\/\/\)$/{
13809 s//\1/
13810 q
13811 }
13812 /^X\(\/\).*/{
13813 s//\1/
13814 q
13815 }
13816 s/.*/./; q'`
b0322a85 13817 as_dir="$ac_dir"; as_fn_mkdir_p
8d138742 13818 ac_builddir=.
d9898ee8 13819
8d138742
CE
13820case "$ac_dir" in
13821.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13822*)
13823 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13824 # A ".." for each directory in $ac_dir_suffix.
13825 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13826 case $ac_top_builddir_sub in
13827 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13828 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13829 esac ;;
13830esac
13831ac_abs_top_builddir=$ac_pwd
13832ac_abs_builddir=$ac_pwd$ac_dir_suffix
13833# for backward compatibility:
13834ac_top_builddir=$ac_top_build_prefix
d9898ee8 13835
8d138742
CE
13836case $srcdir in
13837 .) # We are building in place.
13838 ac_srcdir=.
13839 ac_top_srcdir=$ac_top_builddir_sub
13840 ac_abs_top_srcdir=$ac_pwd ;;
13841 [\\/]* | ?:[\\/]* ) # Absolute name.
13842 ac_srcdir=$srcdir$ac_dir_suffix;
13843 ac_top_srcdir=$srcdir
13844 ac_abs_top_srcdir=$srcdir ;;
13845 *) # Relative name.
13846 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13847 ac_top_srcdir=$ac_top_build_prefix$srcdir
13848 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
dd184caf 13849esac
8d138742 13850ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 13851
dd184caf 13852
8d138742
CE
13853 case $ac_mode in
13854 :F)
13855 #
13856 # CONFIG_FILE
13857 #
d9898ee8 13858
8d138742
CE
13859 case $INSTALL in
13860 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13861 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13862 esac
13863 ac_MKDIR_P=$MKDIR_P
13864 case $MKDIR_P in
13865 [\\/$]* | ?:[\\/]* ) ;;
13866 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13867 esac
d9898ee8 13868_ACEOF
dd184caf 13869
8d138742
CE
13870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13871# If the template does not know about datarootdir, expand it.
13872# FIXME: This hack should be removed a few years after 2.60.
13873ac_datarootdir_hack=; ac_datarootdir_seen=
8d138742
CE
13874ac_sed_dataroot='
13875/datarootdir/ {
13876 p
13877 q
13878}
13879/@datadir@/p
13880/@docdir@/p
13881/@infodir@/p
13882/@localedir@/p
b0322a85 13883/@mandir@/p'
8d138742
CE
13884case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13885*datarootdir*) ac_datarootdir_seen=yes;;
13886*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
b0322a85 13887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8d138742
CE
13888$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13889_ACEOF
13890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13891 ac_datarootdir_hack='
13892 s&@datadir@&$datadir&g
13893 s&@docdir@&$docdir&g
13894 s&@infodir@&$infodir&g
13895 s&@localedir@&$localedir&g
13896 s&@mandir@&$mandir&g
b0322a85 13897 s&\\\${datarootdir}&$datarootdir&g' ;;
d9898ee8 13898esac
8d138742 13899_ACEOF
d9898ee8 13900
8d138742
CE
13901# Neutralize VPATH when `$srcdir' = `.'.
13902# Shell code in configure.ac might set extrasub.
13903# FIXME: do we really want to maintain this feature?
13904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13905ac_sed_extra="$ac_vpsub
13906$extrasub
d9898ee8 13907_ACEOF
8d138742
CE
13908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13909:t
13910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13911s|@configure_input@|$ac_sed_conf_input|;t t
13912s&@top_builddir@&$ac_top_builddir_sub&;t t
13913s&@top_build_prefix@&$ac_top_build_prefix&;t t
13914s&@srcdir@&$ac_srcdir&;t t
13915s&@abs_srcdir@&$ac_abs_srcdir&;t t
13916s&@top_srcdir@&$ac_top_srcdir&;t t
13917s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13918s&@builddir@&$ac_builddir&;t t
13919s&@abs_builddir@&$ac_abs_builddir&;t t
13920s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13921s&@INSTALL@&$ac_INSTALL&;t t
13922s&@MKDIR_P@&$ac_MKDIR_P&;t t
13923$ac_datarootdir_hack
13924"
b0322a85
CE
13925eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13926 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d9898ee8 13927
8d138742 13928test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b0322a85
CE
13929 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13930 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13931 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13933which seems to be undefined. Please make sure it is defined" >&5
8d138742 13934$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b0322a85 13935which seems to be undefined. Please make sure it is defined" >&2;}
d9898ee8 13936
b0322a85 13937 rm -f "$ac_tmp/stdin"
8d138742 13938 case $ac_file in
b0322a85
CE
13939 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13940 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8d138742 13941 esac \
b0322a85 13942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
13943 ;;
13944 :H)
13945 #
13946 # CONFIG_HEADER
13947 #
13948 if test x"$ac_file" != x-; then
13949 {
13950 $as_echo "/* $configure_input */" \
b0322a85
CE
13951 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13952 } >"$ac_tmp/config.h" \
13953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13954 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8d138742
CE
13956$as_echo "$as_me: $ac_file is unchanged" >&6;}
13957 else
13958 rm -f "$ac_file"
b0322a85
CE
13959 mv "$ac_tmp/config.h" "$ac_file" \
13960 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8d138742
CE
13961 fi
13962 else
13963 $as_echo "/* $configure_input */" \
b0322a85
CE
13964 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13965 || as_fn_error $? "could not create -" "$LINENO" 5
8d138742
CE
13966 fi
13967# Compute "$ac_file"'s index in $config_headers.
13968_am_arg="$ac_file"
13969_am_stamp_count=1
13970for _am_header in $config_headers :; do
13971 case $_am_header in
13972 $_am_arg | $_am_arg:* )
13973 break ;;
13974 * )
13975 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13976 esac
d9898ee8 13977done
8d138742
CE
13978echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13979$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13980 X"$_am_arg" : 'X\(//\)[^/]' \| \
13981 X"$_am_arg" : 'X\(//\)$' \| \
13982 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13983$as_echo X"$_am_arg" |
13984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13985 s//\1/
13986 q
13987 }
13988 /^X\(\/\/\)[^/].*/{
13989 s//\1/
13990 q
13991 }
13992 /^X\(\/\/\)$/{
13993 s//\1/
13994 q
13995 }
13996 /^X\(\/\).*/{
13997 s//\1/
13998 q
13999 }
14000 s/.*/./; q'`/stamp-h$_am_stamp_count
14001 ;;
d9898ee8 14002
b0322a85 14003 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8d138742
CE
14004$as_echo "$as_me: executing $ac_file commands" >&6;}
14005 ;;
14006 esac
d9898ee8 14007
14008
8d138742
CE
14009 case $ac_file$ac_mode in
14010 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
b0322a85 14011 # Older Autoconf quotes --file arguments for eval, but not when files
8d138742
CE
14012 # are listed without --file. Let's play safe and only enable the eval
14013 # if we detect the quoting.
14014 case $CONFIG_FILES in
14015 *\'*) eval set x "$CONFIG_FILES" ;;
14016 *) set x $CONFIG_FILES ;;
14017 esac
14018 shift
14019 for mf
14020 do
14021 # Strip MF so we end up with the name of the file.
14022 mf=`echo "$mf" | sed -e 's/:.*$//'`
14023 # Check whether this is an Automake generated Makefile or not.
b0322a85 14024 # We used to match only the files named 'Makefile.in', but
8d138742
CE
14025 # some people rename them; so instead we look at the file content.
14026 # Grep'ing the first line is not enough: some people post-process
14027 # each Makefile.in and add a new line on top of each file to say so.
14028 # Grep'ing the whole file is not good either: AIX grep has a line
14029 # limit of 2048, but all sed's we know have understand at least 4000.
14030 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14031 dirpart=`$as_dirname -- "$mf" ||
14032$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033 X"$mf" : 'X\(//\)[^/]' \| \
14034 X"$mf" : 'X\(//\)$' \| \
14035 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14036$as_echo X"$mf" |
14037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14038 s//\1/
14039 q
14040 }
14041 /^X\(\/\/\)[^/].*/{
14042 s//\1/
14043 q
14044 }
14045 /^X\(\/\/\)$/{
14046 s//\1/
14047 q
14048 }
14049 /^X\(\/\).*/{
14050 s//\1/
14051 q
14052 }
14053 s/.*/./; q'`
14054 else
14055 continue
14056 fi
14057 # Extract the definition of DEPDIR, am__include, and am__quote
b0322a85 14058 # from the Makefile without running 'make'.
8d138742
CE
14059 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14060 test -z "$DEPDIR" && continue
14061 am__include=`sed -n 's/^am__include = //p' < "$mf"`
b0322a85 14062 test -z "$am__include" && continue
8d138742 14063 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8d138742
CE
14064 # Find all dependency output files, they are included files with
14065 # $(DEPDIR) in their names. We invoke sed twice because it is the
14066 # simplest approach to changing $(DEPDIR) to its actual value in the
14067 # expansion.
14068 for file in `sed -n "
14069 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
b0322a85 14070 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8d138742
CE
14071 # Make sure the directory exists.
14072 test -f "$dirpart/$file" && continue
14073 fdir=`$as_dirname -- "$file" ||
14074$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14075 X"$file" : 'X\(//\)[^/]' \| \
14076 X"$file" : 'X\(//\)$' \| \
14077 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14078$as_echo X"$file" |
14079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14080 s//\1/
14081 q
14082 }
14083 /^X\(\/\/\)[^/].*/{
14084 s//\1/
14085 q
14086 }
14087 /^X\(\/\/\)$/{
14088 s//\1/
14089 q
14090 }
14091 /^X\(\/\).*/{
14092 s//\1/
14093 q
14094 }
14095 s/.*/./; q'`
b0322a85 14096 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8d138742
CE
14097 # echo "creating $dirpart/$file"
14098 echo '# dummy' > "$dirpart/$file"
14099 done
14100 done
14101}
14102 ;;
14103 "libtool":C)
d9898ee8 14104
d50284c4 14105 # See if we are running on zsh, and set the options that allow our
8d138742 14106 # commands through without removal of \ escapes.
d50284c4 14107 if test -n "${ZSH_VERSION+set}"; then
8d138742
CE
14108 setopt NO_GLOB_SUBST
14109 fi
d9898ee8 14110
d50284c4 14111 cfgfile=${ofile}T
8d138742
CE
14112 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14113 $RM "$cfgfile"
d9898ee8 14114
8d138742
CE
14115 cat <<_LT_EOF >> "$cfgfile"
14116#! $SHELL
d50284c4 14117# Generated automatically by $as_me ($PACKAGE) $VERSION
8d138742
CE
14118# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14119# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d50284c4
CE
14120
14121# Provide generalized library-building support services.
14122# Written by Gordon Matzigkeit, 1996
14123
14124# Copyright (C) 2014 Free Software Foundation, Inc.
14125# This is free software; see the source for copying conditions. There is NO
14126# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14127
14128# GNU Libtool is free software; you can redistribute it and/or modify
14129# it under the terms of the GNU General Public License as published by
14130# the Free Software Foundation; either version 2 of of the License, or
14131# (at your option) any later version.
d9898ee8 14132#
d50284c4
CE
14133# As a special exception to the GNU General Public License, if you
14134# distribute this file as part of a program or library that is built
14135# using GNU Libtool, you may include this file under the same
14136# distribution terms that you use for the rest of that program.
8d138742 14137#
d50284c4
CE
14138# GNU Libtool is distributed in the hope that it will be useful, but
14139# WITHOUT ANY WARRANTY; without even the implied warranty of
8d138742
CE
14140# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14141# GNU General Public License for more details.
14142#
14143# You should have received a copy of the GNU General Public License
d50284c4 14144# along with this program. If not, see <http://www.gnu.org/licenses/>.
dd184caf 14145
d9898ee8 14146
8d138742 14147# The names of the tagged configurations supported by this script.
d50284c4
CE
14148available_tags=''
14149
14150# Configured defaults for sys_lib_dlsearch_path munging.
14151: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
d9898ee8 14152
8d138742 14153# ### BEGIN LIBTOOL CONFIG
d9898ee8 14154
8d138742
CE
14155# Which release of libtool.m4 was used?
14156macro_version=$macro_version
14157macro_revision=$macro_revision
d9898ee8 14158
8d138742
CE
14159# Whether or not to build shared libraries.
14160build_libtool_libs=$enable_shared
d9898ee8 14161
8d138742
CE
14162# Whether or not to build static libraries.
14163build_old_libs=$enable_static
d9898ee8 14164
8d138742
CE
14165# What type of objects to build.
14166pic_mode=$pic_mode
d9898ee8 14167
8d138742
CE
14168# Whether or not to optimize for fast installation.
14169fast_install=$enable_fast_install
d9898ee8 14170
d50284c4
CE
14171# Shared archive member basename,for filename based shared library versioning on AIX.
14172shared_archive_member_spec=$shared_archive_member_spec
14173
b0322a85
CE
14174# Shell to use when invoking shell scripts.
14175SHELL=$lt_SHELL
14176
14177# An echo program that protects backslashes.
14178ECHO=$lt_ECHO
14179
14180# The PATH separator for the build system.
14181PATH_SEPARATOR=$lt_PATH_SEPARATOR
14182
8d138742
CE
14183# The host system.
14184host_alias=$host_alias
14185host=$host
14186host_os=$host_os
d9898ee8 14187
8d138742
CE
14188# The build system.
14189build_alias=$build_alias
14190build=$build
14191build_os=$build_os
d9898ee8 14192
8d138742
CE
14193# A sed program that does not truncate output.
14194SED=$lt_SED
dd184caf 14195
8d138742
CE
14196# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14197Xsed="\$SED -e 1s/^X//"
dd184caf 14198
8d138742
CE
14199# A grep program that handles long lines.
14200GREP=$lt_GREP
dd184caf 14201
8d138742
CE
14202# An ERE matcher.
14203EGREP=$lt_EGREP
dd184caf 14204
8d138742
CE
14205# A literal string matcher.
14206FGREP=$lt_FGREP
dd184caf 14207
8d138742
CE
14208# A BSD- or MS-compatible name lister.
14209NM=$lt_NM
dd184caf 14210
8d138742
CE
14211# Whether we need soft or hard links.
14212LN_S=$lt_LN_S
d9898ee8 14213
8d138742
CE
14214# What is the maximum length of a command?
14215max_cmd_len=$max_cmd_len
d9898ee8 14216
8d138742
CE
14217# Object file suffix (normally "o").
14218objext=$ac_objext
d9898ee8 14219
8d138742
CE
14220# Executable file suffix (normally "").
14221exeext=$exeext
dd184caf 14222
8d138742
CE
14223# whether the shell understands "unset".
14224lt_unset=$lt_unset
dd184caf 14225
8d138742
CE
14226# turn spaces into newlines.
14227SP2NL=$lt_lt_SP2NL
dd184caf 14228
8d138742
CE
14229# turn newlines into spaces.
14230NL2SP=$lt_lt_NL2SP
d9898ee8 14231
b0322a85
CE
14232# convert \$build file names to \$host format.
14233to_host_file_cmd=$lt_cv_to_host_file_cmd
14234
14235# convert \$build files to toolchain format.
14236to_tool_file_cmd=$lt_cv_to_tool_file_cmd
d9898ee8 14237
8d138742
CE
14238# An object symbol dumper.
14239OBJDUMP=$lt_OBJDUMP
d9898ee8 14240
8d138742
CE
14241# Method to check whether dependent libraries are shared objects.
14242deplibs_check_method=$lt_deplibs_check_method
d9898ee8 14243
b0322a85 14244# Command to use when deplibs_check_method = "file_magic".
8d138742 14245file_magic_cmd=$lt_file_magic_cmd
d9898ee8 14246
b0322a85
CE
14247# How to find potential files when deplibs_check_method = "file_magic".
14248file_magic_glob=$lt_file_magic_glob
14249
14250# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14251want_nocaseglob=$lt_want_nocaseglob
14252
14253# DLL creation program.
14254DLLTOOL=$lt_DLLTOOL
14255
14256# Command to associate shared and link libraries.
14257sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14258
8d138742
CE
14259# The archiver.
14260AR=$lt_AR
b0322a85
CE
14261
14262# Flags to create an archive.
8d138742 14263AR_FLAGS=$lt_AR_FLAGS
d9898ee8 14264
b0322a85
CE
14265# How to feed a file listing to the archiver.
14266archiver_list_spec=$lt_archiver_list_spec
14267
8d138742
CE
14268# A symbol stripping program.
14269STRIP=$lt_STRIP
d9898ee8 14270
8d138742
CE
14271# Commands used to install an old-style archive.
14272RANLIB=$lt_RANLIB
14273old_postinstall_cmds=$lt_old_postinstall_cmds
14274old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 14275
b0322a85
CE
14276# Whether to use a lock for old archive extraction.
14277lock_old_archive_extraction=$lock_old_archive_extraction
14278
8d138742
CE
14279# A C compiler.
14280LTCC=$lt_CC
d9898ee8 14281
8d138742
CE
14282# LTCC compiler flags.
14283LTCFLAGS=$lt_CFLAGS
d9898ee8 14284
8d138742
CE
14285# Take the output of nm and produce a listing of raw symbols and C names.
14286global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 14287
8d138742
CE
14288# Transform the output of nm in a proper C declaration.
14289global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 14290
d50284c4
CE
14291# Transform the output of nm into a list of symbols to manually relocate.
14292global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14293
8d138742
CE
14294# Transform the output of nm in a C name address pair.
14295global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 14296
8d138742
CE
14297# Transform the output of nm in a C name address pair when lib prefix is needed.
14298global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
dd184caf 14299
d50284c4
CE
14300# The name lister interface.
14301nm_interface=$lt_lt_cv_nm_interface
14302
b0322a85
CE
14303# Specify filename containing input files for \$NM.
14304nm_file_list_spec=$lt_nm_file_list_spec
8d138742 14305
d50284c4 14306# The root where to search for dependent libraries,and where our libraries should be installed.
b0322a85 14307lt_sysroot=$lt_sysroot
8d138742 14308
d50284c4
CE
14309# Command to truncate a binary pipe.
14310lt_truncate_bin=$lt_lt_cv_truncate_bin
14311
b0322a85
CE
14312# The name of the directory that contains temporary libtool files.
14313objdir=$objdir
d9898ee8 14314
8d138742
CE
14315# Used to examine libraries when file_magic_cmd begins with "file".
14316MAGIC_CMD=$MAGIC_CMD
d9898ee8 14317
8d138742
CE
14318# Must we lock files when doing compilation?
14319need_locks=$lt_need_locks
d9898ee8 14320
b0322a85
CE
14321# Manifest tool.
14322MANIFEST_TOOL=$lt_MANIFEST_TOOL
14323
8d138742
CE
14324# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14325DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14326
8d138742
CE
14327# Tool to change global to local symbols on Mac OS X.
14328NMEDIT=$lt_NMEDIT
d9898ee8 14329
8d138742
CE
14330# Tool to manipulate fat objects and archives on Mac OS X.
14331LIPO=$lt_LIPO
d9898ee8 14332
8d138742
CE
14333# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14334OTOOL=$lt_OTOOL
d9898ee8 14335
8d138742
CE
14336# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14337OTOOL64=$lt_OTOOL64
d9898ee8 14338
8d138742
CE
14339# Old archive suffix (normally "a").
14340libext=$libext
d9898ee8 14341
8d138742
CE
14342# Shared library suffix (normally ".so").
14343shrext_cmds=$lt_shrext_cmds
d9898ee8 14344
8d138742
CE
14345# The commands to extract the exported symbol list from a shared archive.
14346extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14347
8d138742
CE
14348# Variables whose values should be saved in libtool wrapper scripts and
14349# restored at link time.
14350variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 14351
8d138742
CE
14352# Do we need the "lib" prefix for modules?
14353need_lib_prefix=$need_lib_prefix
d9898ee8 14354
8d138742
CE
14355# Do we need a version for libraries?
14356need_version=$need_version
d9898ee8 14357
8d138742
CE
14358# Library versioning type.
14359version_type=$version_type
d9898ee8 14360
8d138742
CE
14361# Shared library runtime path variable.
14362runpath_var=$runpath_var
d9898ee8 14363
8d138742
CE
14364# Shared library path variable.
14365shlibpath_var=$shlibpath_var
d9898ee8 14366
8d138742
CE
14367# Is shlibpath searched before the hard-coded library search path?
14368shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14369
8d138742
CE
14370# Format of library name prefix.
14371libname_spec=$lt_libname_spec
d9898ee8 14372
8d138742
CE
14373# List of archive names. First name is the real one, the rest are links.
14374# The last name is the one that the linker finds with -lNAME
14375library_names_spec=$lt_library_names_spec
d9898ee8 14376
8d138742
CE
14377# The coded name of the library, if different from the real name.
14378soname_spec=$lt_soname_spec
d9898ee8 14379
b0322a85
CE
14380# Permission mode override for installation of shared libraries.
14381install_override_mode=$lt_install_override_mode
14382
8d138742
CE
14383# Command to use after installation of a shared archive.
14384postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14385
8d138742
CE
14386# Command to use after uninstallation of a shared archive.
14387postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14388
8d138742
CE
14389# Commands used to finish a libtool library installation in a directory.
14390finish_cmds=$lt_finish_cmds
dd184caf 14391
8d138742
CE
14392# As "finish_cmds", except a single script fragment to be evaled but
14393# not shown.
14394finish_eval=$lt_finish_eval
d9898ee8 14395
8d138742
CE
14396# Whether we should hardcode library paths into libraries.
14397hardcode_into_libs=$hardcode_into_libs
d9898ee8 14398
8d138742
CE
14399# Compile-time system search path for libraries.
14400sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14401
d50284c4
CE
14402# Detected run-time system search path for libraries.
14403sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14404
14405# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14406configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
d9898ee8 14407
8d138742
CE
14408# Whether dlopen is supported.
14409dlopen_support=$enable_dlopen
d9898ee8 14410
8d138742
CE
14411# Whether dlopen of programs is supported.
14412dlopen_self=$enable_dlopen_self
d9898ee8 14413
8d138742
CE
14414# Whether dlopen of statically linked programs is supported.
14415dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14416
8d138742
CE
14417# Commands to strip libraries.
14418old_striplib=$lt_old_striplib
14419striplib=$lt_striplib
d9898ee8 14420
d9898ee8 14421
8d138742
CE
14422# The linker used to build libraries.
14423LD=$lt_LD
d9898ee8 14424
b0322a85
CE
14425# How to create reloadable object files.
14426reload_flag=$lt_reload_flag
14427reload_cmds=$lt_reload_cmds
14428
8d138742
CE
14429# Commands used to build an old-style archive.
14430old_archive_cmds=$lt_old_archive_cmds
d9898ee8 14431
8d138742
CE
14432# A language specific compiler.
14433CC=$lt_compiler
d9898ee8 14434
8d138742
CE
14435# Is the compiler the GNU compiler?
14436with_gcc=$GCC
dd184caf 14437
8d138742
CE
14438# Compiler flag to turn off builtin functions.
14439no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 14440
8d138742
CE
14441# Additional compiler flags for building library objects.
14442pic_flag=$lt_lt_prog_compiler_pic
dd184caf 14443
b0322a85
CE
14444# How to pass a linker flag through the compiler.
14445wl=$lt_lt_prog_compiler_wl
14446
8d138742
CE
14447# Compiler flag to prevent dynamic linking.
14448link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 14449
8d138742
CE
14450# Does compiler simultaneously support -c and -o options?
14451compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14452
14453# Whether or not to add -lc for building shared libraries.
14454build_libtool_need_lc=$archive_cmds_need_lc
14455
14456# Whether or not to disallow shared libs when runtime libs are static.
14457allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14458
14459# Compiler flag to allow reflexive dlopens.
14460export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 14461
8d138742
CE
14462# Compiler flag to generate shared objects directly from archives.
14463whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 14464
8d138742
CE
14465# Whether the compiler copes with passing no objects directly.
14466compiler_needs_object=$lt_compiler_needs_object
d9898ee8 14467
8d138742
CE
14468# Create an old-style archive from a shared archive.
14469old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 14470
8d138742
CE
14471# Create a temporary old-style archive to link instead of a shared archive.
14472old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 14473
8d138742
CE
14474# Commands used to build a shared archive.
14475archive_cmds=$lt_archive_cmds
14476archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 14477
8d138742
CE
14478# Commands used to build a loadable module if different from building
14479# a shared archive.
14480module_cmds=$lt_module_cmds
14481module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 14482
8d138742
CE
14483# Whether we are building with GNU ld or not.
14484with_gnu_ld=$lt_with_gnu_ld
dd184caf 14485
8d138742
CE
14486# Flag that allows shared libraries with undefined symbols to be built.
14487allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 14488
8d138742
CE
14489# Flag that enforces no undefined symbols.
14490no_undefined_flag=$lt_no_undefined_flag
dd184caf 14491
8d138742
CE
14492# Flag to hardcode \$libdir into a binary during linking.
14493# This must work even if \$libdir does not exist
14494hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 14495
8d138742
CE
14496# Whether we need a single "-rpath" flag with a separated argument.
14497hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 14498
d50284c4 14499# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742
CE
14500# DIR into the resulting binary.
14501hardcode_direct=$hardcode_direct
dd184caf 14502
d50284c4 14503# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
8d138742 14504# DIR into the resulting binary and the resulting library dependency is
d50284c4 14505# "absolute",i.e impossible to change by setting \$shlibpath_var if the
8d138742
CE
14506# library is relocated.
14507hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 14508
8d138742
CE
14509# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14510# into the resulting binary.
14511hardcode_minus_L=$hardcode_minus_L
dd184caf 14512
8d138742
CE
14513# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14514# into the resulting binary.
14515hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 14516
8d138742
CE
14517# Set to "yes" if building a shared library automatically hardcodes DIR
14518# into the library and all subsequent libraries and executables linked
14519# against it.
14520hardcode_automatic=$hardcode_automatic
dd184caf 14521
8d138742
CE
14522# Set to yes if linker adds runtime paths of dependent libraries
14523# to runtime path list.
14524inherit_rpath=$inherit_rpath
dd184caf 14525
8d138742
CE
14526# Whether libtool must link a program against all its dependency libraries.
14527link_all_deplibs=$link_all_deplibs
dd184caf 14528
8d138742
CE
14529# Set to "yes" if exported symbols are required.
14530always_export_symbols=$always_export_symbols
dd184caf 14531
8d138742
CE
14532# The commands to list exported symbols.
14533export_symbols_cmds=$lt_export_symbols_cmds
d9898ee8 14534
8d138742
CE
14535# Symbols that should not be listed in the preloaded symbols.
14536exclude_expsyms=$lt_exclude_expsyms
dd184caf 14537
8d138742
CE
14538# Symbols that must always be exported.
14539include_expsyms=$lt_include_expsyms
d9898ee8 14540
8d138742
CE
14541# Commands necessary for linking programs (against libraries) with templates.
14542prelink_cmds=$lt_prelink_cmds
d9898ee8 14543
b0322a85
CE
14544# Commands necessary for finishing linking programs.
14545postlink_cmds=$lt_postlink_cmds
14546
8d138742
CE
14547# Specify filename containing input files.
14548file_list_spec=$lt_file_list_spec
14549
14550# How to hardcode a shared library path into an executable.
14551hardcode_action=$hardcode_action
d9898ee8 14552
8d138742 14553# ### END LIBTOOL CONFIG
d9898ee8 14554
d50284c4
CE
14555_LT_EOF
14556
14557 cat <<'_LT_EOF' >> "$cfgfile"
14558
14559# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14560
14561# func_munge_path_list VARIABLE PATH
14562# -----------------------------------
14563# VARIABLE is name of variable containing _space_ separated list of
14564# directories to be munged by the contents of PATH, which is string
14565# having a format:
14566# "DIR[:DIR]:"
14567# string "DIR[ DIR]" will be prepended to VARIABLE
14568# ":DIR[:DIR]"
14569# string "DIR[ DIR]" will be appended to VARIABLE
14570# "DIRP[:DIRP]::[DIRA:]DIRA"
14571# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14572# "DIRA[ DIRA]" will be appended to VARIABLE
14573# "DIR[:DIR]"
14574# VARIABLE will be replaced by "DIR[ DIR]"
14575func_munge_path_list ()
14576{
14577 case x$2 in
14578 x)
14579 ;;
14580 *:)
14581 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14582 ;;
14583 x:*)
14584 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14585 ;;
14586 *::*)
14587 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14588 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14589 ;;
14590 *)
14591 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14592 ;;
14593 esac
14594}
14595
14596
14597# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14598func_cc_basename ()
14599{
14600 for cc_temp in $*""; do
14601 case $cc_temp in
14602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14604 \-*) ;;
14605 *) break;;
14606 esac
14607 done
14608 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14609}
14610
14611
14612# ### END FUNCTIONS SHARED WITH CONFIGURE
14613
8d138742 14614_LT_EOF
d9898ee8 14615
8d138742
CE
14616 case $host_os in
14617 aix3*)
14618 cat <<\_LT_EOF >> "$cfgfile"
14619# AIX sometimes has problems with the GCC collect2 program. For some
14620# reason, if we set the COLLECT_NAMES environment variable, the problems
14621# vanish in a puff of smoke.
d50284c4 14622if test set != "${COLLECT_NAMES+set}"; then
8d138742
CE
14623 COLLECT_NAMES=
14624 export COLLECT_NAMES
14625fi
14626_LT_EOF
14627 ;;
d9898ee8 14628 esac
8d138742
CE
14629
14630
d50284c4 14631ltmain=$ac_aux_dir/ltmain.sh
8d138742
CE
14632
14633
14634 # We use sed instead of cat because bash on DJGPP gets confused if
14635 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14636 # text mode, it properly converts lines to CR/LF. This bash problem
14637 # is reportedly fixed, but why not run on old versions too?
b0322a85
CE
14638 sed '$q' "$ltmain" >> "$cfgfile" \
14639 || (rm -f "$cfgfile"; exit 1)
14640
b0322a85 14641 mv -f "$cfgfile" "$ofile" ||
8d138742
CE
14642 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14643 chmod +x "$ofile"
14644
d9898ee8 14645 ;;
dd184caf 14646
d9898ee8 14647 esac
dd184caf 14648done # for ac_tag
d9898ee8 14649
d9898ee8 14650
b0322a85 14651as_fn_exit 0
d9898ee8 14652_ACEOF
d9898ee8 14653ac_clean_files=$ac_clean_files_save
14654
8d138742 14655test $ac_write_fail = 0 ||
b0322a85 14656 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8d138742 14657
d9898ee8 14658
14659# configure is writing to config.log, and then calls config.status.
14660# config.status does its own redirection, appending to config.log.
14661# Unfortunately, on DOS this fails, as config.log is still kept open
14662# by configure, so config.status won't be able to write to it; its
14663# output is simply discarded. So we exec the FD to /dev/null,
14664# effectively closing config.log, so it can be properly (re)opened and
14665# appended to by config.status. When coming back to configure, we
14666# need to make the FD available again.
14667if test "$no_create" != yes; then
14668 ac_cs_success=:
14669 ac_config_status_args=
14670 test "$silent" = yes &&
14671 ac_config_status_args="$ac_config_status_args --quiet"
14672 exec 5>/dev/null
14673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14674 exec 5>>config.log
14675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14676 # would make configure fail if this is the last instruction.
b0322a85 14677 $ac_cs_success || as_fn_exit 1
d9898ee8 14678fi
8d138742 14679if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
b0322a85 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8d138742
CE
14681$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14682fi
d9898ee8 14683