removal due to another working script
[trueprint.git] / configure
blob095a0d6b443f72aabe29522c46ac4c4441ff7113
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Trueprint 5.4.
5 # Report bugs to <bug-trueprint@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if 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 --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
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.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -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
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
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
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
244 fi; }
245 IFS=$as_save_IFS
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.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $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
267 exit 255
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: bug-trueprint@gnu.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
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/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
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"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
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.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
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.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
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.
419 as_fn_error ()
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
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_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/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (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'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='GNU Trueprint'
592 PACKAGE_TARNAME='trueprint'
593 PACKAGE_VERSION='5.4'
594 PACKAGE_STRING='GNU Trueprint 5.4'
595 PACKAGE_BUGREPORT='bug-trueprint@gnu.org'
596 PACKAGE_URL='http://www.gnu.org/software/trueprint/'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 MANIFEST_TOOL
645 RANLIB
646 ac_ct_AR
648 DLLTOOL
649 OBJDUMP
650 LN_S
652 ac_ct_DUMPBIN
653 DUMPBIN
655 FGREP
656 EGREP
657 GREP
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 LIBTOOL
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 am__nodep
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 enable_dependency_tracking
750 enable_shared
751 enable_static
752 with_pic
753 enable_fast_install
754 with_gnu_ld
755 with_sysroot
756 enable_libtool_lock
758 ac_precious_vars='build_alias
759 host_alias
760 target_alias
762 CFLAGS
763 LDFLAGS
764 LIBS
765 CPPFLAGS
766 CPP'
769 # Initialize some variables set by options.
770 ac_init_help=
771 ac_init_version=false
772 ac_unrecognized_opts=
773 ac_unrecognized_sep=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
776 cache_file=/dev/null
777 exec_prefix=NONE
778 no_create=
779 no_recursion=
780 prefix=NONE
781 program_prefix=NONE
782 program_suffix=NONE
783 program_transform_name=s,x,x,
784 silent=
785 site=
786 srcdir=
787 verbose=
788 x_includes=NONE
789 x_libraries=NONE
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir='${exec_prefix}/bin'
798 sbindir='${exec_prefix}/sbin'
799 libexecdir='${exec_prefix}/libexec'
800 datarootdir='${prefix}/share'
801 datadir='${datarootdir}'
802 sysconfdir='${prefix}/etc'
803 sharedstatedir='${prefix}/com'
804 localstatedir='${prefix}/var'
805 includedir='${prefix}/include'
806 oldincludedir='/usr/include'
807 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808 infodir='${datarootdir}/info'
809 htmldir='${docdir}'
810 dvidir='${docdir}'
811 pdfdir='${docdir}'
812 psdir='${docdir}'
813 libdir='${exec_prefix}/lib'
814 localedir='${datarootdir}/locale'
815 mandir='${datarootdir}/man'
817 ac_prev=
818 ac_dashdash=
819 for ac_option
821 # If the previous option needs an argument, assign it.
822 if test -n "$ac_prev"; then
823 eval $ac_prev=\$ac_option
824 ac_prev=
825 continue
828 case $ac_option in
829 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
830 *=) ac_optarg= ;;
831 *) ac_optarg=yes ;;
832 esac
834 # Accept the important Cygnus configure options, so we can diagnose typos.
836 case $ac_dashdash$ac_option in
838 ac_dashdash=yes ;;
840 -bindir | --bindir | --bindi | --bind | --bin | --bi)
841 ac_prev=bindir ;;
842 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843 bindir=$ac_optarg ;;
845 -build | --build | --buil | --bui | --bu)
846 ac_prev=build_alias ;;
847 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848 build_alias=$ac_optarg ;;
850 -cache-file | --cache-file | --cache-fil | --cache-fi \
851 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852 ac_prev=cache_file ;;
853 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855 cache_file=$ac_optarg ;;
857 --config-cache | -C)
858 cache_file=config.cache ;;
860 -datadir | --datadir | --datadi | --datad)
861 ac_prev=datadir ;;
862 -datadir=* | --datadir=* | --datadi=* | --datad=*)
863 datadir=$ac_optarg ;;
865 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866 | --dataroo | --dataro | --datar)
867 ac_prev=datarootdir ;;
868 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870 datarootdir=$ac_optarg ;;
872 -disable-* | --disable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 as_fn_error $? "invalid feature name: $ac_useropt"
877 ac_useropt_orig=$ac_useropt
878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
879 case $ac_user_opts in
881 "enable_$ac_useropt"
882 "*) ;;
883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
884 ac_unrecognized_sep=', ';;
885 esac
886 eval enable_$ac_useropt=no ;;
888 -docdir | --docdir | --docdi | --doc | --do)
889 ac_prev=docdir ;;
890 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 docdir=$ac_optarg ;;
893 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894 ac_prev=dvidir ;;
895 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 dvidir=$ac_optarg ;;
898 -enable-* | --enable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=\$ac_optarg ;;
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
925 with_gas=yes ;;
927 -help | --help | --hel | --he | -h)
928 ac_init_help=long ;;
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 ac_prev=htmldir ;;
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 | --ht=*)
943 htmldir=$ac_optarg ;;
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 ac_prev=infodir ;;
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
957 -libdir | --libdir | --libdi | --libd)
958 ac_prev=libdir ;;
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 libdir=$ac_optarg ;;
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
969 -localedir | --localedir | --localedi | --localed | --locale)
970 ac_prev=localedir ;;
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 ac_prev=mandir ;;
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 mandir=$ac_optarg ;;
986 -nfp | --nfp | --nf)
987 # Obsolete; use --without-fp.
988 with_fp=no ;;
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
992 no_create=yes ;;
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 no_recursion=yes ;;
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 ac_prev=prefix ;;
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 ac_prev=pdfdir ;;
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1048 -psdir | --psdir | --psdi | --psd | --ps)
1049 ac_prev=psdir ;;
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 psdir=$ac_optarg ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 silent=yes ;;
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 ac_prev=sbindir ;;
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 | --sbi=* | --sb=*)
1061 sbindir=$ac_optarg ;;
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1066 | --sha | --sh)
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 | --sha=* | --sh=*)
1072 sharedstatedir=$ac_optarg ;;
1074 -site | --site | --sit)
1075 ac_prev=site ;;
1076 -site=* | --site=* | --sit=*)
1077 site=$ac_optarg ;;
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 ac_prev=srcdir ;;
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097 verbose=yes ;;
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1102 -with-* | --with-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error $? "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "with_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval with_$ac_useropt=\$ac_optarg ;;
1118 -without-* | --without-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=no ;;
1134 --x)
1135 # Obsolete; use --with-x.
1136 with_x=yes ;;
1138 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139 | --x-incl | --x-inc | --x-in | --x-i)
1140 ac_prev=x_includes ;;
1141 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143 x_includes=$ac_optarg ;;
1145 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147 ac_prev=x_libraries ;;
1148 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150 x_libraries=$ac_optarg ;;
1152 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1153 Try \`$0 --help' for more information"
1156 *=*)
1157 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158 # Reject names that are not valid shell variable names.
1159 case $ac_envvar in #(
1160 '' | [0-9]* | *[!_$as_cr_alnum]* )
1161 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1162 esac
1163 eval $ac_envvar=\$ac_optarg
1164 export $ac_envvar ;;
1167 # FIXME: should be removed in autoconf 3.0.
1168 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174 esac
1175 done
1177 if test -n "$ac_prev"; then
1178 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179 as_fn_error $? "missing argument to $ac_option"
1182 if test -n "$ac_unrecognized_opts"; then
1183 case $enable_option_checking in
1184 no) ;;
1185 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1186 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 esac
1190 # Check all directory arguments for consistency.
1191 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192 datadir sysconfdir sharedstatedir localstatedir includedir \
1193 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194 libdir localedir mandir
1196 eval ac_val=\$$ac_var
1197 # Remove trailing slashes.
1198 case $ac_val in
1199 */ )
1200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201 eval $ac_var=\$ac_val;;
1202 esac
1203 # Be sure to have absolute directory names.
1204 case $ac_val in
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207 esac
1208 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1209 done
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1214 build=$build_alias
1215 host=$host_alias
1216 target=$target_alias
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
1222 elif test "x$build_alias" != "x$host_alias"; then
1223 cross_compiling=yes
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error $? "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error $? "pwd does not report name of working directory"
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 s//\1/
1255 /^X\(\/\/\)[^/].*/{
1256 s//\1/
1259 /^X\(\/\/\)$/{
1260 s//\1/
1263 /^X\(\/\).*/{
1264 s//\1/
1267 s/.*/./; q'`
1268 srcdir=$ac_confdir
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 srcdir=..
1272 else
1273 ac_srcdir_defaulted=no
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 ac_abs_confdir=`(
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1282 pwd)`
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 srcdir=.
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1290 case $srcdir in
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 esac
1293 for ac_var in $ac_precious_vars; do
1294 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_${ac_var}_value=\$${ac_var}
1296 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 done
1301 # Report the --help message.
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1306 cat <<_ACEOF
1307 \`configure' configures GNU Trueprint 5.4 to adapt to many kinds of systems.
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1314 Defaults for the options are specified in brackets.
1316 Configuration:
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking ...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 [PREFIX]
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1338 For better control, use the options below.
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/trueprint]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1360 _ACEOF
1362 cat <<\_ACEOF
1364 Program names:
1365 --program-prefix=PREFIX prepend PREFIX to installed program names
1366 --program-suffix=SUFFIX append SUFFIX to installed program names
1367 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369 System types:
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 _ACEOF
1375 if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of GNU Trueprint 5.4:";;
1378 esac
1379 cat <<\_ACEOF
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1387 --enable-shared[=PKGS] build shared libraries [default=yes]
1388 --enable-static[=PKGS] build static libraries [default=yes]
1389 --enable-fast-install[=PKGS]
1390 optimize for fast installation [default=yes]
1391 --disable-libtool-lock avoid locking (might break parallel builds)
1393 Optional Packages:
1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1396 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1397 both]
1398 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1399 --with-sysroot=DIR Search for dependent libraries within DIR
1400 (or the compiler's sysroot if not specified).
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CPP C preprocessor
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1415 Report bugs to <bug-trueprint@gnu.org>.
1416 GNU Trueprint home page: <http://www.gnu.org/software/trueprint/>.
1417 General help using GNU software: <http://www.gnu.org/gethelp/>.
1418 _ACEOF
1419 ac_status=$?
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" ||
1426 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427 continue
1428 ac_builddir=.
1430 case "$ac_dir" in
1431 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434 # A ".." for each directory in $ac_dir_suffix.
1435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436 case $ac_top_builddir_sub in
1437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439 esac ;;
1440 esac
1441 ac_abs_top_builddir=$ac_pwd
1442 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443 # for backward compatibility:
1444 ac_top_builddir=$ac_top_build_prefix
1446 case $srcdir in
1447 .) # We are building in place.
1448 ac_srcdir=.
1449 ac_top_srcdir=$ac_top_builddir_sub
1450 ac_abs_top_srcdir=$ac_pwd ;;
1451 [\\/]* | ?:[\\/]* ) # Absolute name.
1452 ac_srcdir=$srcdir$ac_dir_suffix;
1453 ac_top_srcdir=$srcdir
1454 ac_abs_top_srcdir=$srcdir ;;
1455 *) # Relative name.
1456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457 ac_top_srcdir=$ac_top_build_prefix$srcdir
1458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1459 esac
1460 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462 cd "$ac_dir" || { ac_status=$?; continue; }
1463 # Check for guested configure.
1464 if test -f "$ac_srcdir/configure.gnu"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467 elif test -f "$ac_srcdir/configure"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure" --help=recursive
1470 else
1471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1472 fi || ac_status=$?
1473 cd "$ac_pwd" || { ac_status=$?; break; }
1474 done
1477 test -n "$ac_init_help" && exit $ac_status
1478 if $ac_init_version; then
1479 cat <<\_ACEOF
1480 GNU Trueprint configure 5.4
1481 generated by GNU Autoconf 2.69
1483 Copyright (C) 2012 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1486 _ACEOF
1487 exit
1490 ## ------------------------ ##
1491 ## Autoconf initialization. ##
1492 ## ------------------------ ##
1494 # ac_fn_c_try_compile LINENO
1495 # --------------------------
1496 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_c_try_compile ()
1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500 rm -f conftest.$ac_objext
1501 if { { ac_try="$ac_compile"
1502 case "(($ac_try" in
1503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1505 esac
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_compile") 2>conftest.err
1509 ac_status=$?
1510 if test -s conftest.err; then
1511 grep -v '^ *+' conftest.err >conftest.er1
1512 cat conftest.er1 >&5
1513 mv -f conftest.er1 conftest.err
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && {
1517 test -z "$ac_c_werror_flag" ||
1518 test ! -s conftest.err
1519 } && test -s conftest.$ac_objext; then :
1520 ac_retval=0
1521 else
1522 $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1525 ac_retval=1
1527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528 as_fn_set_status $ac_retval
1530 } # ac_fn_c_try_compile
1532 # ac_fn_c_try_link LINENO
1533 # -----------------------
1534 # Try to link conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_link ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext conftest$ac_exeext
1539 if { { ac_try="$ac_link"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_link") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest$ac_exeext && {
1558 test "$cross_compiling" = yes ||
1559 test -x conftest$ac_exeext
1560 }; then :
1561 ac_retval=0
1562 else
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1566 ac_retval=1
1568 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1569 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1570 # interfere with the next link command; also delete a directory that is
1571 # left behind by Apple's compiler. We do this before executing the actions.
1572 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1576 } # ac_fn_c_try_link
1578 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1579 # -------------------------------------------------------
1580 # Tests whether HEADER exists and can be compiled using the include files in
1581 # INCLUDES, setting the cache variable VAR accordingly.
1582 ac_fn_c_check_header_compile ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if eval \${$3+:} false; then :
1588 $as_echo_n "(cached) " >&6
1589 else
1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h. */
1593 #include <$2>
1594 _ACEOF
1595 if ac_fn_c_try_compile "$LINENO"; then :
1596 eval "$3=yes"
1597 else
1598 eval "$3=no"
1600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602 eval ac_res=\$$3
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604 $as_echo "$ac_res" >&6; }
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 } # ac_fn_c_check_header_compile
1609 # ac_fn_c_try_cpp LINENO
1610 # ----------------------
1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_cpp ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { { ac_try="$ac_cpp conftest.$ac_ext"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } > conftest.i && {
1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 }; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1639 ac_retval=1
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1644 } # ac_fn_c_try_cpp
1646 # ac_fn_c_try_run LINENO
1647 # ----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649 # that executables *can* be run.
1650 ac_fn_c_try_run ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>&5
1661 ac_status=$?
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1664 { { case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_try") 2>&5
1671 ac_status=$?
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; }; }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: program exited with status $ac_status" >&5
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 ac_retval=$ac_status
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_c_try_run
1688 # ac_fn_c_check_func LINENO FUNC VAR
1689 # ----------------------------------
1690 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1691 ac_fn_c_check_func ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1703 #define $2 innocuous_$2
1705 /* System header to define __stub macros and hopefully few prototypes,
1706 which can conflict with char $2 (); below.
1707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1708 <limits.h> exists even on freestanding compilers. */
1710 #ifdef __STDC__
1711 # include <limits.h>
1712 #else
1713 # include <assert.h>
1714 #endif
1716 #undef $2
1718 /* Override any GCC internal prototype to avoid an error.
1719 Use char because int might match the return type of a GCC
1720 builtin and then its argument prototype would still apply. */
1721 #ifdef __cplusplus
1722 extern "C"
1723 #endif
1724 char $2 ();
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined __stub_$2 || defined __stub___$2
1729 choke me
1730 #endif
1733 main ()
1735 return $2 ();
1737 return 0;
1739 _ACEOF
1740 if ac_fn_c_try_link "$LINENO"; then :
1741 eval "$3=yes"
1742 else
1743 eval "$3=no"
1745 rm -f core conftest.err conftest.$ac_objext \
1746 conftest$ac_exeext conftest.$ac_ext
1748 eval ac_res=\$$3
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 } # ac_fn_c_check_func
1755 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1756 # -------------------------------------------------------
1757 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1758 # the include files in INCLUDES and setting the cache variable VAR
1759 # accordingly.
1760 ac_fn_c_check_header_mongrel ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if eval \${$3+:} false; then :
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1769 eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 else
1773 # Is the header compilable?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1775 $as_echo_n "checking $2 usability... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1779 #include <$2>
1780 _ACEOF
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782 ac_header_compiler=yes
1783 else
1784 ac_header_compiler=no
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1788 $as_echo "$ac_header_compiler" >&6; }
1790 # Is the header present?
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1792 $as_echo_n "checking $2 presence... " >&6; }
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_cpp "$LINENO"; then :
1798 ac_header_preproc=yes
1799 else
1800 ac_header_preproc=no
1802 rm -f conftest.err conftest.i conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1804 $as_echo "$ac_header_preproc" >&6; }
1806 # So? What about this header?
1807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1808 yes:no: )
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1810 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 no:yes:* )
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1816 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1818 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1820 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1822 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 ( $as_echo "## ------------------------------------ ##
1826 ## Report this to bug-trueprint@gnu.org ##
1827 ## ------------------------------------ ##"
1828 ) | sed "s/^/$as_me: WARNING: /" >&2
1830 esac
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 eval "$3=\$ac_header_compiler"
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 } # ac_fn_c_check_header_mongrel
1846 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1847 # -------------------------------------------
1848 # Tests whether TYPE exists after having included INCLUDES, setting cache
1849 # variable VAR accordingly.
1850 ac_fn_c_check_type ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857 else
1858 eval "$3=no"
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1863 main ()
1865 if (sizeof ($2))
1866 return 0;
1868 return 0;
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1876 main ()
1878 if (sizeof (($2)))
1879 return 0;
1881 return 0;
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1886 else
1887 eval "$3=yes"
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 } # ac_fn_c_check_type
1899 cat >config.log <<_ACEOF
1900 This file contains any messages produced by compilers while
1901 running configure, to aid debugging if configure makes a mistake.
1903 It was created by GNU Trueprint $as_me 5.4, which was
1904 generated by GNU Autoconf 2.69. Invocation command line was
1906 $ $0 $@
1908 _ACEOF
1909 exec 5>>config.log
1911 cat <<_ASUNAME
1912 ## --------- ##
1913 ## Platform. ##
1914 ## --------- ##
1916 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1917 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1918 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1919 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1920 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1922 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1923 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1925 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1926 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1927 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1928 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1929 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1930 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1931 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1933 _ASUNAME
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 $as_echo "PATH: $as_dir"
1941 done
1942 IFS=$as_save_IFS
1944 } >&5
1946 cat >&5 <<_ACEOF
1949 ## ----------- ##
1950 ## Core tests. ##
1951 ## ----------- ##
1953 _ACEOF
1956 # Keep a trace of the command line.
1957 # Strip out --no-create and --no-recursion so they do not pile up.
1958 # Strip out --silent because we don't want to record it for future runs.
1959 # Also quote any args containing shell meta-characters.
1960 # Make two passes to allow for proper duplicate-argument suppression.
1961 ac_configure_args=
1962 ac_configure_args0=
1963 ac_configure_args1=
1964 ac_must_keep_next=false
1965 for ac_pass in 1 2
1967 for ac_arg
1969 case $ac_arg in
1970 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972 | -silent | --silent | --silen | --sile | --sil)
1973 continue ;;
1974 *\'*)
1975 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 esac
1977 case $ac_pass in
1978 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1980 as_fn_append ac_configure_args1 " '$ac_arg'"
1981 if test $ac_must_keep_next = true; then
1982 ac_must_keep_next=false # Got value, back to normal.
1983 else
1984 case $ac_arg in
1985 *=* | --config-cache | -C | -disable-* | --disable-* \
1986 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988 | -with-* | --with-* | -without-* | --without-* | --x)
1989 case "$ac_configure_args0 " in
1990 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991 esac
1993 -* ) ac_must_keep_next=true ;;
1994 esac
1996 as_fn_append ac_configure_args " '$ac_arg'"
1998 esac
1999 done
2000 done
2001 { ac_configure_args0=; unset ac_configure_args0;}
2002 { ac_configure_args1=; unset ac_configure_args1;}
2004 # When interrupted or exit'd, cleanup temporary files, and complete
2005 # config.log. We remove comments because anyway the quotes in there
2006 # would cause problems or look ugly.
2007 # WARNING: Use '\'' to represent an apostrophe within the trap.
2008 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009 trap 'exit_status=$?
2010 # Save into config.log some information that might help in debugging.
2012 echo
2014 $as_echo "## ---------------- ##
2015 ## Cache variables. ##
2016 ## ---------------- ##"
2017 echo
2018 # The following way of writing the cache mishandles newlines in values,
2020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021 eval ac_val=\$$ac_var
2022 case $ac_val in #(
2023 *${as_nl}*)
2024 case $ac_var in #(
2025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2027 esac
2028 case $ac_var in #(
2029 _ | IFS | as_nl) ;; #(
2030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031 *) { eval $ac_var=; unset $ac_var;} ;;
2032 esac ;;
2033 esac
2034 done
2035 (set) 2>&1 |
2036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037 *${as_nl}ac_space=\ *)
2038 sed -n \
2039 "s/'\''/'\''\\\\'\'''\''/g;
2040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2041 ;; #(
2043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2045 esac |
2046 sort
2048 echo
2050 $as_echo "## ----------------- ##
2051 ## Output variables. ##
2052 ## ----------------- ##"
2053 echo
2054 for ac_var in $ac_subst_vars
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059 esac
2060 $as_echo "$ac_var='\''$ac_val'\''"
2061 done | sort
2062 echo
2064 if test -n "$ac_subst_files"; then
2065 $as_echo "## ------------------- ##
2066 ## File substitutions. ##
2067 ## ------------------- ##"
2068 echo
2069 for ac_var in $ac_subst_files
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2080 if test -s confdefs.h; then
2081 $as_echo "## ----------- ##
2082 ## confdefs.h. ##
2083 ## ----------- ##"
2084 echo
2085 cat confdefs.h
2086 echo
2088 test "$ac_signal" != 0 &&
2089 $as_echo "$as_me: caught signal $ac_signal"
2090 $as_echo "$as_me: exit $exit_status"
2091 } >&5
2092 rm -f core *.core core.conftest.* &&
2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094 exit $exit_status
2096 for ac_signal in 1 2 13 15; do
2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098 done
2099 ac_signal=0
2101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2102 rm -f -r conftest* confdefs.h
2104 $as_echo "/* confdefs.h */" > confdefs.h
2106 # Predefined preprocessor variables.
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_NAME "$PACKAGE_NAME"
2110 _ACEOF
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114 _ACEOF
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2118 _ACEOF
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2122 _ACEOF
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126 _ACEOF
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_URL "$PACKAGE_URL"
2130 _ACEOF
2133 # Let the site file select an alternate cache file if it wants to.
2134 # Prefer an explicitly selected file to automatically selected ones.
2135 ac_site_file1=NONE
2136 ac_site_file2=NONE
2137 if test -n "$CONFIG_SITE"; then
2138 # We do not want a PATH search for config.site.
2139 case $CONFIG_SITE in #((
2140 -*) ac_site_file1=./$CONFIG_SITE;;
2141 */*) ac_site_file1=$CONFIG_SITE;;
2142 *) ac_site_file1=./$CONFIG_SITE;;
2143 esac
2144 elif test "x$prefix" != xNONE; then
2145 ac_site_file1=$prefix/share/config.site
2146 ac_site_file2=$prefix/etc/config.site
2147 else
2148 ac_site_file1=$ac_default_prefix/share/config.site
2149 ac_site_file2=$ac_default_prefix/etc/config.site
2151 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2153 test "x$ac_site_file" = xNONE && continue
2154 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2157 sed 's/^/| /' "$ac_site_file" >&5
2158 . "$ac_site_file" \
2159 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161 as_fn_error $? "failed to load site script $ac_site_file
2162 See \`config.log' for more details" "$LINENO" 5; }
2164 done
2166 if test -r "$cache_file"; then
2167 # Some versions of bash will fail to source /dev/null (special files
2168 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2169 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171 $as_echo "$as_me: loading cache $cache_file" >&6;}
2172 case $cache_file in
2173 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174 *) . "./$cache_file";;
2175 esac
2177 else
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179 $as_echo "$as_me: creating cache $cache_file" >&6;}
2180 >$cache_file
2183 # Check that the precious variables saved in the cache have kept the same
2184 # value.
2185 ac_cache_corrupted=false
2186 for ac_var in $ac_precious_vars; do
2187 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2188 eval ac_new_set=\$ac_env_${ac_var}_set
2189 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2190 eval ac_new_val=\$ac_env_${ac_var}_value
2191 case $ac_old_set,$ac_new_set in
2192 set,)
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2194 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2195 ac_cache_corrupted=: ;;
2196 ,set)
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2198 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2199 ac_cache_corrupted=: ;;
2200 ,);;
2202 if test "x$ac_old_val" != "x$ac_new_val"; then
2203 # differences in whitespace do not lead to failure.
2204 ac_old_val_w=`echo x $ac_old_val`
2205 ac_new_val_w=`echo x $ac_new_val`
2206 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2208 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2209 ac_cache_corrupted=:
2210 else
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2212 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2213 eval $ac_var=\$ac_old_val
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2216 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2218 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2219 fi;;
2220 esac
2221 # Pass precious variables to config.status.
2222 if test "$ac_new_set" = set; then
2223 case $ac_new_val in
2224 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2225 *) ac_arg=$ac_var=$ac_new_val ;;
2226 esac
2227 case " $ac_configure_args " in
2228 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2229 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2230 esac
2232 done
2233 if $ac_cache_corrupted; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2237 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2238 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2240 ## -------------------- ##
2241 ## Main body of script. ##
2242 ## -------------------- ##
2244 ac_ext=c
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251 #AC_CONFIG_SRCDIR([acconfig.h])
2252 ac_config_headers="$ac_config_headers config.h"
2256 am__api_version='1.11'
2258 ac_aux_dir=
2259 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2260 if test -f "$ac_dir/install-sh"; then
2261 ac_aux_dir=$ac_dir
2262 ac_install_sh="$ac_aux_dir/install-sh -c"
2263 break
2264 elif test -f "$ac_dir/install.sh"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/install.sh -c"
2267 break
2268 elif test -f "$ac_dir/shtool"; then
2269 ac_aux_dir=$ac_dir
2270 ac_install_sh="$ac_aux_dir/shtool install -c"
2271 break
2273 done
2274 if test -z "$ac_aux_dir"; then
2275 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2278 # These three variables are undocumented and unsupported,
2279 # and are intended to be withdrawn in a future Autoconf release.
2280 # They can cause serious problems if a builder's source tree is in a directory
2281 # whose full name contains unusual characters.
2282 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2283 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2284 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2287 # Find a good install program. We prefer a C program (faster),
2288 # so one script is as good as another. But avoid the broken or
2289 # incompatible versions:
2290 # SysV /etc/install, /usr/sbin/install
2291 # SunOS /usr/etc/install
2292 # IRIX /sbin/install
2293 # AIX /bin/install
2294 # AmigaOS /C/install, which installs bootblocks on floppy discs
2295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2298 # OS/2's system install, which has a completely different semantic
2299 # ./install, which can be erroneously created by make from ./install.sh.
2300 # Reject install programs that cannot install multiple files.
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2302 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2303 if test -z "$INSTALL"; then
2304 if ${ac_cv_path_install+:} false; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 # Account for people who put trailing slashes in PATH elements.
2313 case $as_dir/ in #((
2314 ./ | .// | /[cC]/* | \
2315 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2316 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2317 /usr/ucb/* ) ;;
2319 # OSF1 and SCO ODT 3.0 have their own names for install.
2320 # Don't use installbsd from OSF since it installs stuff as root
2321 # by default.
2322 for ac_prog in ginstall scoinst install; do
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2325 if test $ac_prog = install &&
2326 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2327 # AIX install. It has an incompatible calling convention.
2329 elif test $ac_prog = install &&
2330 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331 # program-specific install script used by HP pwplus--don't use.
2333 else
2334 rm -rf conftest.one conftest.two conftest.dir
2335 echo one > conftest.one
2336 echo two > conftest.two
2337 mkdir conftest.dir
2338 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2339 test -s conftest.one && test -s conftest.two &&
2340 test -s conftest.dir/conftest.one &&
2341 test -s conftest.dir/conftest.two
2342 then
2343 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2344 break 3
2348 done
2349 done
2351 esac
2353 done
2354 IFS=$as_save_IFS
2356 rm -rf conftest.one conftest.two conftest.dir
2359 if test "${ac_cv_path_install+set}" = set; then
2360 INSTALL=$ac_cv_path_install
2361 else
2362 # As a last resort, use the slow shell script. Don't cache a
2363 # value for INSTALL within a source directory, because that will
2364 # break other packages using the cache if that directory is
2365 # removed, or if the value is a relative name.
2366 INSTALL=$ac_install_sh
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2370 $as_echo "$INSTALL" >&6; }
2372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2373 # It thinks the first close brace ends the variable substitution.
2374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2381 $as_echo_n "checking whether build environment is sane... " >&6; }
2382 # Just in case
2383 sleep 1
2384 echo timestamp > conftest.file
2385 # Reject unsafe characters in $srcdir or the absolute working directory
2386 # name. Accept space and tab only in the latter.
2387 am_lf='
2389 case `pwd` in
2390 *[\\\"\#\$\&\'\`$am_lf]*)
2391 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2392 esac
2393 case $srcdir in
2394 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2395 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2396 esac
2398 # Do `set' in a subshell so we don't clobber the current shell's
2399 # arguments. Must try -L first in case configure is actually a
2400 # symlink; some systems play weird games with the mod time of symlinks
2401 # (eg FreeBSD returns the mod time of the symlink's containing
2402 # directory).
2403 if (
2404 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2405 if test "$*" = "X"; then
2406 # -L didn't work.
2407 set X `ls -t "$srcdir/configure" conftest.file`
2409 rm -f conftest.file
2410 if test "$*" != "X $srcdir/configure conftest.file" \
2411 && test "$*" != "X conftest.file $srcdir/configure"; then
2413 # If neither matched, then we have a broken ls. This can happen
2414 # if, for instance, CONFIG_SHELL is bash and it inherits a
2415 # broken ls alias from the environment. This has actually
2416 # happened. Such a system could not be considered "sane".
2417 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2418 alias in your environment" "$LINENO" 5
2421 test "$2" = conftest.file
2423 then
2424 # Ok.
2426 else
2427 as_fn_error $? "newly created file is older than distributed files!
2428 Check your system clock" "$LINENO" 5
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2431 $as_echo "yes" >&6; }
2432 test "$program_prefix" != NONE &&
2433 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2434 # Use a double $ so make ignores it.
2435 test "$program_suffix" != NONE &&
2436 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2437 # Double any \ or $.
2438 # By default was `s,x,x', remove it if useless.
2439 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2440 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2442 # expand $ac_aux_dir to an absolute path
2443 am_aux_dir=`cd $ac_aux_dir && pwd`
2445 if test x"${MISSING+set}" != xset; then
2446 case $am_aux_dir in
2447 *\ * | *\ *)
2448 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2450 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2451 esac
2453 # Use eval to expand $SHELL
2454 if eval "$MISSING --run true"; then
2455 am_missing_run="$MISSING --run "
2456 else
2457 am_missing_run=
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2459 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2462 if test x"${install_sh}" != xset; then
2463 case $am_aux_dir in
2464 *\ * | *\ *)
2465 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2467 install_sh="\${SHELL} $am_aux_dir/install-sh"
2468 esac
2471 # Installed binaries are usually stripped using `strip' when the user
2472 # run `make install-strip'. However `strip' might not be the right
2473 # tool to use in cross-compilation environments, therefore Automake
2474 # will honor the `STRIP' environment variable to overrule this program.
2475 if test "$cross_compiling" != no; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}strip; ac_word=$2
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if ${ac_cv_prog_STRIP+:} false; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 if test -n "$STRIP"; then
2485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2500 IFS=$as_save_IFS
2504 STRIP=$ac_cv_prog_STRIP
2505 if test -n "$STRIP"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2507 $as_echo "$STRIP" >&6; }
2508 else
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510 $as_echo "no" >&6; }
2515 if test -z "$ac_cv_prog_STRIP"; then
2516 ac_ct_STRIP=$STRIP
2517 # Extract the first word of "strip", so it can be a program name with args.
2518 set dummy strip; ac_word=$2
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 if test -n "$ac_ct_STRIP"; then
2525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2526 else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528 for as_dir in $PATH
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534 ac_cv_prog_ac_ct_STRIP="strip"
2535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2538 done
2539 done
2540 IFS=$as_save_IFS
2544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2545 if test -n "$ac_ct_STRIP"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2547 $as_echo "$ac_ct_STRIP" >&6; }
2548 else
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550 $as_echo "no" >&6; }
2553 if test "x$ac_ct_STRIP" = x; then
2554 STRIP=":"
2555 else
2556 case $cross_compiling:$ac_tool_warned in
2557 yes:)
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560 ac_tool_warned=yes ;;
2561 esac
2562 STRIP=$ac_ct_STRIP
2564 else
2565 STRIP="$ac_cv_prog_STRIP"
2569 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2572 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2573 if test -z "$MKDIR_P"; then
2574 if ${ac_cv_path_mkdir+:} false; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_prog in mkdir gmkdir; do
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2585 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2586 'mkdir (GNU coreutils) '* | \
2587 'mkdir (coreutils) '* | \
2588 'mkdir (fileutils) '4.1*)
2589 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2590 break 3;;
2591 esac
2592 done
2593 done
2594 done
2595 IFS=$as_save_IFS
2599 test -d ./--version && rmdir ./--version
2600 if test "${ac_cv_path_mkdir+set}" = set; then
2601 MKDIR_P="$ac_cv_path_mkdir -p"
2602 else
2603 # As a last resort, use the slow shell script. Don't cache a
2604 # value for MKDIR_P within a source directory, because that will
2605 # break other packages using the cache if that directory is
2606 # removed, or if the value is a relative name.
2607 MKDIR_P="$ac_install_sh -d"
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2611 $as_echo "$MKDIR_P" >&6; }
2613 mkdir_p="$MKDIR_P"
2614 case $mkdir_p in
2615 [\\/$]* | ?:[\\/]*) ;;
2616 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2617 esac
2619 for ac_prog in gawk mawk nawk awk
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if ${ac_cv_prog_AWK+:} false; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$AWK"; then
2629 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_AWK="$ac_prog"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2642 done
2643 done
2644 IFS=$as_save_IFS
2648 AWK=$ac_cv_prog_AWK
2649 if test -n "$AWK"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2651 $as_echo "$AWK" >&6; }
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2658 test -n "$AWK" && break
2659 done
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2662 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2663 set x ${MAKE-make}
2664 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2665 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 cat >conftest.make <<\_ACEOF
2669 SHELL = /bin/sh
2670 all:
2671 @echo '@@@%%%=$(MAKE)=@@@%%%'
2672 _ACEOF
2673 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2674 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2675 *@@@%%%=?*=@@@%%%*)
2676 eval ac_cv_prog_make_${ac_make}_set=yes;;
2678 eval ac_cv_prog_make_${ac_make}_set=no;;
2679 esac
2680 rm -f conftest.make
2682 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2684 $as_echo "yes" >&6; }
2685 SET_MAKE=
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 SET_MAKE="MAKE=${MAKE-make}"
2692 rm -rf .tst 2>/dev/null
2693 mkdir .tst 2>/dev/null
2694 if test -d .tst; then
2695 am__leading_dot=.
2696 else
2697 am__leading_dot=_
2699 rmdir .tst 2>/dev/null
2701 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2702 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2703 # is not polluted with repeated "-I."
2704 am__isrc=' -I$(srcdir)'
2705 # test to see if srcdir already configured
2706 if test -f $srcdir/config.status; then
2707 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2711 # test whether we have cygpath
2712 if test -z "$CYGPATH_W"; then
2713 if (cygpath --version) >/dev/null 2>/dev/null; then
2714 CYGPATH_W='cygpath -w'
2715 else
2716 CYGPATH_W=echo
2721 # Define the identity of the package.
2722 PACKAGE='trueprint'
2723 VERSION='5.4'
2726 # Some tools Automake needs.
2728 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2731 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2734 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2737 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2740 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2742 # We need awk for the "check" target. The system "awk" is bad on
2743 # some platforms.
2744 # Always define AMTAR for backward compatibility. Yes, it's still used
2745 # in the wild :-( We should find a proper way to deprecate it ...
2746 AMTAR='$${TAR-tar}'
2748 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2756 # Checks for programs.
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762 if test -n "$ac_tool_prefix"; then
2763 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2764 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_CC+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2790 CC=$ac_cv_prog_CC
2791 if test -n "$CC"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2793 $as_echo "$CC" >&6; }
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2801 if test -z "$ac_cv_prog_CC"; then
2802 ac_ct_CC=$CC
2803 # Extract the first word of "gcc", so it can be a program name with args.
2804 set dummy gcc; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$ac_ct_CC"; then
2811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_ac_ct_CC="gcc"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2824 done
2825 done
2826 IFS=$as_save_IFS
2830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2831 if test -n "$ac_ct_CC"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2833 $as_echo "$ac_ct_CC" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2839 if test "x$ac_ct_CC" = x; then
2840 CC=""
2841 else
2842 case $cross_compiling:$ac_tool_warned in
2843 yes:)
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846 ac_tool_warned=yes ;;
2847 esac
2848 CC=$ac_ct_CC
2850 else
2851 CC="$ac_cv_prog_CC"
2854 if test -z "$CC"; then
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2857 set dummy ${ac_tool_prefix}cc; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_CC+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_CC="${ac_tool_prefix}cc"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2879 IFS=$as_save_IFS
2883 CC=$ac_cv_prog_CC
2884 if test -n "$CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886 $as_echo "$CC" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2895 if test -z "$CC"; then
2896 # Extract the first word of "cc", so it can be a program name with args.
2897 set dummy cc; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_CC+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 else
2906 ac_prog_rejected=no
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2915 ac_prog_rejected=yes
2916 continue
2918 ac_cv_prog_CC="cc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2924 IFS=$as_save_IFS
2926 if test $ac_prog_rejected = yes; then
2927 # We found a bogon in the path, so make sure we never use it.
2928 set dummy $ac_cv_prog_CC
2929 shift
2930 if test $# != 0; then
2931 # We chose a different compiler from the bogus one.
2932 # However, it has the same basename, so the bogon will be chosen
2933 # first if we set CC to just the basename; use the full file name.
2934 shift
2935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2940 CC=$ac_cv_prog_CC
2941 if test -n "$CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943 $as_echo "$CC" >&6; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2951 if test -z "$CC"; then
2952 if test -n "$ac_tool_prefix"; then
2953 for ac_prog in cl.exe
2955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2956 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_CC+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2976 done
2977 done
2978 IFS=$as_save_IFS
2982 CC=$ac_cv_prog_CC
2983 if test -n "$CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985 $as_echo "$CC" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2992 test -n "$CC" && break
2993 done
2995 if test -z "$CC"; then
2996 ac_ct_CC=$CC
2997 for ac_prog in cl.exe
2999 # Extract the first word of "$ac_prog", so it can be a program name with args.
3000 set dummy $ac_prog; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test -n "$ac_ct_CC"; then
3007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_ac_ct_CC="$ac_prog"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3020 done
3021 done
3022 IFS=$as_save_IFS
3026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027 if test -n "$ac_ct_CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3029 $as_echo "$ac_ct_CC" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3036 test -n "$ac_ct_CC" && break
3037 done
3039 if test "x$ac_ct_CC" = x; then
3040 CC=""
3041 else
3042 case $cross_compiling:$ac_tool_warned in
3043 yes:)
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3047 esac
3048 CC=$ac_ct_CC
3055 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057 as_fn_error $? "no acceptable C compiler found in \$PATH
3058 See \`config.log' for more details" "$LINENO" 5; }
3060 # Provide some information about the compiler.
3061 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3062 set X $ac_compile
3063 ac_compiler=$2
3064 for ac_option in --version -v -V -qversion; do
3065 { { ac_try="$ac_compiler $ac_option >&5"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3073 ac_status=$?
3074 if test -s conftest.err; then
3075 sed '10a\
3076 ... rest of stderr output deleted ...
3077 10q' conftest.err >conftest.er1
3078 cat conftest.er1 >&5
3080 rm -f conftest.er1 conftest.err
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }
3083 done
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3089 main ()
3093 return 0;
3095 _ACEOF
3096 ac_clean_files_save=$ac_clean_files
3097 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3098 # Try to create an executable without -o first, disregard a.out.
3099 # It will help us diagnose broken compilers, and finding out an intuition
3100 # of exeext.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3102 $as_echo_n "checking whether the C compiler works... " >&6; }
3103 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3105 # The possible output files:
3106 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3108 ac_rmfiles=
3109 for ac_file in $ac_files
3111 case $ac_file in
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3113 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3114 esac
3115 done
3116 rm -f $ac_rmfiles
3118 if { { ac_try="$ac_link_default"
3119 case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124 $as_echo "$ac_try_echo"; } >&5
3125 (eval "$ac_link_default") 2>&5
3126 ac_status=$?
3127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128 test $ac_status = 0; }; then :
3129 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3130 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3131 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3132 # so that the user can short-circuit this test for compilers unknown to
3133 # Autoconf.
3134 for ac_file in $ac_files ''
3136 test -f "$ac_file" || continue
3137 case $ac_file in
3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3140 [ab].out )
3141 # We found the default executable, but exeext='' is most
3142 # certainly right.
3143 break;;
3144 *.* )
3145 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3146 then :; else
3147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149 # We set ac_cv_exeext here because the later test for it is not
3150 # safe: cross compilers may not add the suffix if given an `-o'
3151 # argument, so we may need to know it at that point already.
3152 # Even if this section looks crufty: it has the advantage of
3153 # actually working.
3154 break;;
3156 break;;
3157 esac
3158 done
3159 test "$ac_cv_exeext" = no && ac_cv_exeext=
3161 else
3162 ac_file=''
3164 if test -z "$ac_file"; then :
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 $as_echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error 77 "C compiler cannot create executables
3173 See \`config.log' for more details" "$LINENO" 5; }
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3176 $as_echo "yes" >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3179 $as_echo_n "checking for C compiler default output file name... " >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3181 $as_echo "$ac_file" >&6; }
3182 ac_exeext=$ac_cv_exeext
3184 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3185 ac_clean_files=$ac_clean_files_save
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3187 $as_echo_n "checking for suffix of executables... " >&6; }
3188 if { { ac_try="$ac_link"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_link") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; then :
3199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3201 # work properly (i.e., refer to `conftest.exe'), while it won't with
3202 # `rm'.
3203 for ac_file in conftest.exe conftest conftest.*; do
3204 test -f "$ac_file" || continue
3205 case $ac_file in
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3208 break;;
3209 * ) break;;
3210 esac
3211 done
3212 else
3213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3216 See \`config.log' for more details" "$LINENO" 5; }
3218 rm -f conftest conftest$ac_cv_exeext
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3220 $as_echo "$ac_cv_exeext" >&6; }
3222 rm -f conftest.$ac_ext
3223 EXEEXT=$ac_cv_exeext
3224 ac_exeext=$EXEEXT
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3227 #include <stdio.h>
3229 main ()
3231 FILE *f = fopen ("conftest.out", "w");
3232 return ferror (f) || fclose (f) != 0;
3235 return 0;
3237 _ACEOF
3238 ac_clean_files="$ac_clean_files conftest.out"
3239 # Check that the compiler produces executables we can run. If not, either
3240 # the compiler is broken, or we cross compile.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3242 $as_echo_n "checking whether we are cross compiling... " >&6; }
3243 if test "$cross_compiling" != yes; then
3244 { { ac_try="$ac_link"
3245 case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251 (eval "$ac_link") 2>&5
3252 ac_status=$?
3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }
3255 if { ac_try='./conftest$ac_cv_exeext'
3256 { { case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_try") 2>&5
3263 ac_status=$?
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; }; then
3266 cross_compiling=no
3267 else
3268 if test "$cross_compiling" = maybe; then
3269 cross_compiling=yes
3270 else
3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error $? "cannot run C compiled programs.
3274 If you meant to cross compile, use \`--host'.
3275 See \`config.log' for more details" "$LINENO" 5; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3280 $as_echo "$cross_compiling" >&6; }
3282 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3283 ac_clean_files=$ac_clean_files_save
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3285 $as_echo_n "checking for suffix of object files... " >&6; }
3286 if ${ac_cv_objext+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3293 main ()
3297 return 0;
3299 _ACEOF
3300 rm -f conftest.o conftest.obj
3301 if { { ac_try="$ac_compile"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308 (eval "$ac_compile") 2>&5
3309 ac_status=$?
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }; then :
3312 for ac_file in conftest.o conftest.obj conftest.*; do
3313 test -f "$ac_file" || continue;
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3317 break;;
3318 esac
3319 done
3320 else
3321 $as_echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error $? "cannot compute suffix of object files: cannot compile
3327 See \`config.log' for more details" "$LINENO" 5; }
3329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3332 $as_echo "$ac_cv_objext" >&6; }
3333 OBJEXT=$ac_cv_objext
3334 ac_objext=$OBJEXT
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3337 if ${ac_cv_c_compiler_gnu+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3344 main ()
3346 #ifndef __GNUC__
3347 choke me
3348 #endif
3351 return 0;
3353 _ACEOF
3354 if ac_fn_c_try_compile "$LINENO"; then :
3355 ac_compiler_gnu=yes
3356 else
3357 ac_compiler_gnu=no
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3364 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3365 if test $ac_compiler_gnu = yes; then
3366 GCC=yes
3367 else
3368 GCC=
3370 ac_test_CFLAGS=${CFLAGS+set}
3371 ac_save_CFLAGS=$CFLAGS
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3373 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3374 if ${ac_cv_prog_cc_g+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 ac_save_c_werror_flag=$ac_c_werror_flag
3378 ac_c_werror_flag=yes
3379 ac_cv_prog_cc_g=no
3380 CFLAGS="-g"
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3385 main ()
3389 return 0;
3391 _ACEOF
3392 if ac_fn_c_try_compile "$LINENO"; then :
3393 ac_cv_prog_cc_g=yes
3394 else
3395 CFLAGS=""
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3400 main ()
3404 return 0;
3406 _ACEOF
3407 if ac_fn_c_try_compile "$LINENO"; then :
3409 else
3410 ac_c_werror_flag=$ac_save_c_werror_flag
3411 CFLAGS="-g"
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3416 main ()
3420 return 0;
3422 _ACEOF
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_g=yes
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3434 $as_echo "$ac_cv_prog_cc_g" >&6; }
3435 if test "$ac_test_CFLAGS" = set; then
3436 CFLAGS=$ac_save_CFLAGS
3437 elif test $ac_cv_prog_cc_g = yes; then
3438 if test "$GCC" = yes; then
3439 CFLAGS="-g -O2"
3440 else
3441 CFLAGS="-g"
3443 else
3444 if test "$GCC" = yes; then
3445 CFLAGS="-O2"
3446 else
3447 CFLAGS=
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3452 if ${ac_cv_prog_cc_c89+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 ac_cv_prog_cc_c89=no
3456 ac_save_CC=$CC
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459 #include <stdarg.h>
3460 #include <stdio.h>
3461 struct stat;
3462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463 struct buf { int x; };
3464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465 static char *e (p, i)
3466 char **p;
3467 int i;
3469 return p[i];
3471 static char *f (char * (*g) (char **, int), char **p, ...)
3473 char *s;
3474 va_list v;
3475 va_start (v,p);
3476 s = g (p, va_arg (v,int));
3477 va_end (v);
3478 return s;
3481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482 function prototypes and stuff, but not '\xHH' hex character constants.
3483 These don't provoke an error unfortunately, instead are silently treated
3484 as 'x'. The following induces an error, until -std is added to get
3485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486 array size at least. It's necessary to write '\x00'==0 to get something
3487 that's true only with -std. */
3488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491 inside strings and character constants. */
3492 #define FOO(x) 'x'
3493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3495 int test (int i, double x);
3496 struct s1 {int (*f) (int a);};
3497 struct s2 {int (*f) (double a);};
3498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499 int argc;
3500 char **argv;
3502 main ()
3504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3506 return 0;
3508 _ACEOF
3509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3512 CC="$ac_save_CC $ac_arg"
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514 ac_cv_prog_cc_c89=$ac_arg
3516 rm -f core conftest.err conftest.$ac_objext
3517 test "x$ac_cv_prog_cc_c89" != "xno" && break
3518 done
3519 rm -f conftest.$ac_ext
3520 CC=$ac_save_CC
3523 # AC_CACHE_VAL
3524 case "x$ac_cv_prog_cc_c89" in
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3527 $as_echo "none needed" >&6; } ;;
3528 xno)
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530 $as_echo "unsupported" >&6; } ;;
3532 CC="$CC $ac_cv_prog_cc_c89"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3534 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3535 esac
3536 if test "x$ac_cv_prog_cc_c89" != xno; then :
3540 ac_ext=c
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545 DEPDIR="${am__leading_dot}deps"
3547 ac_config_commands="$ac_config_commands depfiles"
3550 am_make=${MAKE-make}
3551 cat > confinc << 'END'
3552 am__doit:
3553 @echo this is the am__doit target
3554 .PHONY: am__doit
3556 # If we don't find an include directive, just comment out the code.
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3558 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3559 am__include="#"
3560 am__quote=
3561 _am_result=none
3562 # First try GNU make style include.
3563 echo "include confinc" > confmf
3564 # Ignore all kinds of additional output from `make'.
3565 case `$am_make -s -f confmf 2> /dev/null` in #(
3566 *the\ am__doit\ target*)
3567 am__include=include
3568 am__quote=
3569 _am_result=GNU
3571 esac
3572 # Now try BSD make style include.
3573 if test "$am__include" = "#"; then
3574 echo '.include "confinc"' > confmf
3575 case `$am_make -s -f confmf 2> /dev/null` in #(
3576 *the\ am__doit\ target*)
3577 am__include=.include
3578 am__quote="\""
3579 _am_result=BSD
3581 esac
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3586 $as_echo "$_am_result" >&6; }
3587 rm -f confinc confmf
3589 # Check whether --enable-dependency-tracking was given.
3590 if test "${enable_dependency_tracking+set}" = set; then :
3591 enableval=$enable_dependency_tracking;
3594 if test "x$enable_dependency_tracking" != xno; then
3595 am_depcomp="$ac_aux_dir/depcomp"
3596 AMDEPBACKSLASH='\'
3597 am__nodep='_no'
3599 if test "x$enable_dependency_tracking" != xno; then
3600 AMDEP_TRUE=
3601 AMDEP_FALSE='#'
3602 else
3603 AMDEP_TRUE='#'
3604 AMDEP_FALSE=
3609 depcc="$CC" am_compiler_list=
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3612 $as_echo_n "checking dependency style of $depcc... " >&6; }
3613 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3617 # We make a subdir and do the tests there. Otherwise we can end up
3618 # making bogus files that we don't know about and never remove. For
3619 # instance it was reported that on HP-UX the gcc test will end up
3620 # making a dummy file named `D' -- because `-MD' means `put the output
3621 # in D'.
3622 rm -rf conftest.dir
3623 mkdir conftest.dir
3624 # Copy depcomp to subdir because otherwise we won't find it if we're
3625 # using a relative directory.
3626 cp "$am_depcomp" conftest.dir
3627 cd conftest.dir
3628 # We will build objects and dependencies in a subdirectory because
3629 # it helps to detect inapplicable dependency modes. For instance
3630 # both Tru64's cc and ICC support -MD to output dependencies as a
3631 # side effect of compilation, but ICC will put the dependencies in
3632 # the current directory while Tru64 will put them in the object
3633 # directory.
3634 mkdir sub
3636 am_cv_CC_dependencies_compiler_type=none
3637 if test "$am_compiler_list" = ""; then
3638 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3640 am__universal=false
3641 case " $depcc " in #(
3642 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3643 esac
3645 for depmode in $am_compiler_list; do
3646 # Setup a source with many dependencies, because some compilers
3647 # like to wrap large dependency lists on column 80 (with \), and
3648 # we should not choose a depcomp mode which is confused by this.
3650 # We need to recreate these files for each test, as the compiler may
3651 # overwrite some of them when testing with obscure command lines.
3652 # This happens at least with the AIX C compiler.
3653 : > sub/conftest.c
3654 for i in 1 2 3 4 5 6; do
3655 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3656 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3657 # Solaris 8's {/usr,}/bin/sh.
3658 touch sub/conftst$i.h
3659 done
3660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3662 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3663 # mode. It turns out that the SunPro C++ compiler does not properly
3664 # handle `-M -o', and we need to detect this. Also, some Intel
3665 # versions had trouble with output in subdirs
3666 am__obj=sub/conftest.${OBJEXT-o}
3667 am__minus_obj="-o $am__obj"
3668 case $depmode in
3669 gcc)
3670 # This depmode causes a compiler race in universal mode.
3671 test "$am__universal" = false || continue
3673 nosideeffect)
3674 # after this tag, mechanisms are not by side-effect, so they'll
3675 # only be used when explicitly requested
3676 if test "x$enable_dependency_tracking" = xyes; then
3677 continue
3678 else
3679 break
3682 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3683 # This compiler won't grok `-c -o', but also, the minuso test has
3684 # not run yet. These depmodes are late enough in the game, and
3685 # so weak that their functioning should not be impacted.
3686 am__obj=conftest.${OBJEXT-o}
3687 am__minus_obj=
3689 none) break ;;
3690 esac
3691 if depmode=$depmode \
3692 source=sub/conftest.c object=$am__obj \
3693 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3694 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3695 >/dev/null 2>conftest.err &&
3696 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3697 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3698 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3699 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3700 # icc doesn't choke on unknown options, it will just issue warnings
3701 # or remarks (even with -Werror). So we grep stderr for any message
3702 # that says an option was ignored or not supported.
3703 # When given -MP, icc 7.0 and 7.1 complain thusly:
3704 # icc: Command line warning: ignoring option '-M'; no argument required
3705 # The diagnosis changed in icc 8.0:
3706 # icc: Command line remark: option '-MP' not supported
3707 if (grep 'ignoring option' conftest.err ||
3708 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3709 am_cv_CC_dependencies_compiler_type=$depmode
3710 break
3713 done
3715 cd ..
3716 rm -rf conftest.dir
3717 else
3718 am_cv_CC_dependencies_compiler_type=none
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3723 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3724 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3727 test "x$enable_dependency_tracking" != xno \
3728 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3729 am__fastdepCC_TRUE=
3730 am__fastdepCC_FALSE='#'
3731 else
3732 am__fastdepCC_TRUE='#'
3733 am__fastdepCC_FALSE=
3737 case `pwd` in
3738 *\ * | *\ *)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3740 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3741 esac
3745 macro_version='2.4.2'
3746 macro_revision='1.3337'
3760 ltmain="$ac_aux_dir/ltmain.sh"
3762 # Make sure we can run config.sub.
3763 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3767 $as_echo_n "checking build system type... " >&6; }
3768 if ${ac_cv_build+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 ac_build_alias=$build_alias
3772 test "x$ac_build_alias" = x &&
3773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3774 test "x$ac_build_alias" = x &&
3775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3776 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3781 $as_echo "$ac_cv_build" >&6; }
3782 case $ac_cv_build in
3783 *-*-*) ;;
3784 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3785 esac
3786 build=$ac_cv_build
3787 ac_save_IFS=$IFS; IFS='-'
3788 set x $ac_cv_build
3789 shift
3790 build_cpu=$1
3791 build_vendor=$2
3792 shift; shift
3793 # Remember, the first character of IFS is used to create $*,
3794 # except with old shells:
3795 build_os=$*
3796 IFS=$ac_save_IFS
3797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3801 $as_echo_n "checking host system type... " >&6; }
3802 if ${ac_cv_host+:} false; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 if test "x$host_alias" = x; then
3806 ac_cv_host=$ac_cv_build
3807 else
3808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3814 $as_echo "$ac_cv_host" >&6; }
3815 case $ac_cv_host in
3816 *-*-*) ;;
3817 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3818 esac
3819 host=$ac_cv_host
3820 ac_save_IFS=$IFS; IFS='-'
3821 set x $ac_cv_host
3822 shift
3823 host_cpu=$1
3824 host_vendor=$2
3825 shift; shift
3826 # Remember, the first character of IFS is used to create $*,
3827 # except with old shells:
3828 host_os=$*
3829 IFS=$ac_save_IFS
3830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3833 # Backslashify metacharacters that are still active within
3834 # double-quoted strings.
3835 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3837 # Same as above, but do not quote variable references.
3838 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3840 # Sed substitution to delay expansion of an escaped shell variable in a
3841 # double_quote_subst'ed string.
3842 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3844 # Sed substitution to delay expansion of an escaped single quote.
3845 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3847 # Sed substitution to avoid accidental globbing in evaled expressions
3848 no_glob_subst='s/\*/\\\*/g'
3850 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3851 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3852 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3855 $as_echo_n "checking how to print strings... " >&6; }
3856 # Test print first, because it will be a builtin if present.
3857 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3858 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3859 ECHO='print -r --'
3860 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3861 ECHO='printf %s\n'
3862 else
3863 # Use this function as a fallback that always works.
3864 func_fallback_echo ()
3866 eval 'cat <<_LTECHO_EOF
3868 _LTECHO_EOF'
3870 ECHO='func_fallback_echo'
3873 # func_echo_all arg...
3874 # Invoke $ECHO with all args, space-separated.
3875 func_echo_all ()
3877 $ECHO ""
3880 case "$ECHO" in
3881 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3882 $as_echo "printf" >&6; } ;;
3883 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3884 $as_echo "print -r" >&6; } ;;
3885 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3886 $as_echo "cat" >&6; } ;;
3887 esac
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3903 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3904 if ${ac_cv_path_SED+:} false; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3908 for ac_i in 1 2 3 4 5 6 7; do
3909 ac_script="$ac_script$as_nl$ac_script"
3910 done
3911 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3912 { ac_script=; unset ac_script;}
3913 if test -z "$SED"; then
3914 ac_path_SED_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in sed gsed; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3924 as_fn_executable_p "$ac_path_SED" || continue
3925 # Check for GNU ac_path_SED and select it if it is found.
3926 # Check for GNU $ac_path_SED
3927 case `"$ac_path_SED" --version 2>&1` in
3928 *GNU*)
3929 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3931 ac_count=0
3932 $as_echo_n 0123456789 >"conftest.in"
3933 while :
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 $as_echo '' >> "conftest.nl"
3939 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 as_fn_arith $ac_count + 1 && ac_count=$as_val
3942 if test $ac_count -gt ${ac_path_SED_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_SED="$ac_path_SED"
3945 ac_path_SED_max=$ac_count
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3949 done
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 esac
3953 $ac_path_SED_found && break 3
3954 done
3955 done
3956 done
3957 IFS=$as_save_IFS
3958 if test -z "$ac_cv_path_SED"; then
3959 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3961 else
3962 ac_cv_path_SED=$SED
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3967 $as_echo "$ac_cv_path_SED" >&6; }
3968 SED="$ac_cv_path_SED"
3969 rm -f conftest.sed
3971 test -z "$SED" && SED=sed
3972 Xsed="$SED -e 1s/^X//"
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3985 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3986 if ${ac_cv_path_GREP+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 if test -z "$GREP"; then
3990 ac_path_GREP_found=false
3991 # Loop through the user's path and test for each of PROGNAME-LIST
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_prog in grep ggrep; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4000 as_fn_executable_p "$ac_path_GREP" || continue
4001 # Check for GNU ac_path_GREP and select it if it is found.
4002 # Check for GNU $ac_path_GREP
4003 case `"$ac_path_GREP" --version 2>&1` in
4004 *GNU*)
4005 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4007 ac_count=0
4008 $as_echo_n 0123456789 >"conftest.in"
4009 while :
4011 cat "conftest.in" "conftest.in" >"conftest.tmp"
4012 mv "conftest.tmp" "conftest.in"
4013 cp "conftest.in" "conftest.nl"
4014 $as_echo 'GREP' >> "conftest.nl"
4015 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017 as_fn_arith $ac_count + 1 && ac_count=$as_val
4018 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4019 # Best one so far, save it but keep looking for a better one
4020 ac_cv_path_GREP="$ac_path_GREP"
4021 ac_path_GREP_max=$ac_count
4023 # 10*(2^10) chars as input seems more than enough
4024 test $ac_count -gt 10 && break
4025 done
4026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027 esac
4029 $ac_path_GREP_found && break 3
4030 done
4031 done
4032 done
4033 IFS=$as_save_IFS
4034 if test -z "$ac_cv_path_GREP"; then
4035 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4037 else
4038 ac_cv_path_GREP=$GREP
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4043 $as_echo "$ac_cv_path_GREP" >&6; }
4044 GREP="$ac_cv_path_GREP"
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4048 $as_echo_n "checking for egrep... " >&6; }
4049 if ${ac_cv_path_EGREP+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4053 then ac_cv_path_EGREP="$GREP -E"
4054 else
4055 if test -z "$EGREP"; then
4056 ac_path_EGREP_found=false
4057 # Loop through the user's path and test for each of PROGNAME-LIST
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_prog in egrep; do
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4066 as_fn_executable_p "$ac_path_EGREP" || continue
4067 # Check for GNU ac_path_EGREP and select it if it is found.
4068 # Check for GNU $ac_path_EGREP
4069 case `"$ac_path_EGREP" --version 2>&1` in
4070 *GNU*)
4071 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4073 ac_count=0
4074 $as_echo_n 0123456789 >"conftest.in"
4075 while :
4077 cat "conftest.in" "conftest.in" >"conftest.tmp"
4078 mv "conftest.tmp" "conftest.in"
4079 cp "conftest.in" "conftest.nl"
4080 $as_echo 'EGREP' >> "conftest.nl"
4081 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4083 as_fn_arith $ac_count + 1 && ac_count=$as_val
4084 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4085 # Best one so far, save it but keep looking for a better one
4086 ac_cv_path_EGREP="$ac_path_EGREP"
4087 ac_path_EGREP_max=$ac_count
4089 # 10*(2^10) chars as input seems more than enough
4090 test $ac_count -gt 10 && break
4091 done
4092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4093 esac
4095 $ac_path_EGREP_found && break 3
4096 done
4097 done
4098 done
4099 IFS=$as_save_IFS
4100 if test -z "$ac_cv_path_EGREP"; then
4101 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4103 else
4104 ac_cv_path_EGREP=$EGREP
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4110 $as_echo "$ac_cv_path_EGREP" >&6; }
4111 EGREP="$ac_cv_path_EGREP"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4115 $as_echo_n "checking for fgrep... " >&6; }
4116 if ${ac_cv_path_FGREP+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4120 then ac_cv_path_FGREP="$GREP -F"
4121 else
4122 if test -z "$FGREP"; then
4123 ac_path_FGREP_found=false
4124 # Loop through the user's path and test for each of PROGNAME-LIST
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_prog in fgrep; do
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4133 as_fn_executable_p "$ac_path_FGREP" || continue
4134 # Check for GNU ac_path_FGREP and select it if it is found.
4135 # Check for GNU $ac_path_FGREP
4136 case `"$ac_path_FGREP" --version 2>&1` in
4137 *GNU*)
4138 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4140 ac_count=0
4141 $as_echo_n 0123456789 >"conftest.in"
4142 while :
4144 cat "conftest.in" "conftest.in" >"conftest.tmp"
4145 mv "conftest.tmp" "conftest.in"
4146 cp "conftest.in" "conftest.nl"
4147 $as_echo 'FGREP' >> "conftest.nl"
4148 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4150 as_fn_arith $ac_count + 1 && ac_count=$as_val
4151 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4152 # Best one so far, save it but keep looking for a better one
4153 ac_cv_path_FGREP="$ac_path_FGREP"
4154 ac_path_FGREP_max=$ac_count
4156 # 10*(2^10) chars as input seems more than enough
4157 test $ac_count -gt 10 && break
4158 done
4159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4160 esac
4162 $ac_path_FGREP_found && break 3
4163 done
4164 done
4165 done
4166 IFS=$as_save_IFS
4167 if test -z "$ac_cv_path_FGREP"; then
4168 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4170 else
4171 ac_cv_path_FGREP=$FGREP
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4177 $as_echo "$ac_cv_path_FGREP" >&6; }
4178 FGREP="$ac_cv_path_FGREP"
4181 test -z "$GREP" && GREP=grep
4201 # Check whether --with-gnu-ld was given.
4202 if test "${with_gnu_ld+set}" = set; then :
4203 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4204 else
4205 with_gnu_ld=no
4208 ac_prog=ld
4209 if test "$GCC" = yes; then
4210 # Check if gcc -print-prog-name=ld gives a path.
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4212 $as_echo_n "checking for ld used by $CC... " >&6; }
4213 case $host in
4214 *-*-mingw*)
4215 # gcc leaves a trailing carriage return which upsets mingw
4216 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4218 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4219 esac
4220 case $ac_prog in
4221 # Accept absolute paths.
4222 [\\/]* | ?:[\\/]*)
4223 re_direlt='/[^/][^/]*/\.\./'
4224 # Canonicalize the pathname of ld
4225 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4226 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4227 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4228 done
4229 test -z "$LD" && LD="$ac_prog"
4232 # If it fails, then pretend we aren't using GCC.
4233 ac_prog=ld
4236 # If it is relative, then search for the first ld in PATH.
4237 with_gnu_ld=unknown
4239 esac
4240 elif test "$with_gnu_ld" = yes; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4242 $as_echo_n "checking for GNU ld... " >&6; }
4243 else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4245 $as_echo_n "checking for non-GNU ld... " >&6; }
4247 if ${lt_cv_path_LD+:} false; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -z "$LD"; then
4251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4252 for ac_dir in $PATH; do
4253 IFS="$lt_save_ifs"
4254 test -z "$ac_dir" && ac_dir=.
4255 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4256 lt_cv_path_LD="$ac_dir/$ac_prog"
4257 # Check to see if the program is GNU ld. I'd rather use --version,
4258 # but apparently some variants of GNU ld only accept -v.
4259 # Break only if it was the GNU/non-GNU ld that we prefer.
4260 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4261 *GNU* | *'with BFD'*)
4262 test "$with_gnu_ld" != no && break
4265 test "$with_gnu_ld" != yes && break
4267 esac
4269 done
4270 IFS="$lt_save_ifs"
4271 else
4272 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4276 LD="$lt_cv_path_LD"
4277 if test -n "$LD"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4279 $as_echo "$LD" >&6; }
4280 else
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4284 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4286 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4287 if ${lt_cv_prog_gnu_ld+:} false; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4291 case `$LD -v 2>&1 </dev/null` in
4292 *GNU* | *'with BFD'*)
4293 lt_cv_prog_gnu_ld=yes
4296 lt_cv_prog_gnu_ld=no
4298 esac
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4301 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4302 with_gnu_ld=$lt_cv_prog_gnu_ld
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4313 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4314 if ${lt_cv_path_NM+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -n "$NM"; then
4318 # Let the user override the test.
4319 lt_cv_path_NM="$NM"
4320 else
4321 lt_nm_to_check="${ac_tool_prefix}nm"
4322 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4323 lt_nm_to_check="$lt_nm_to_check nm"
4325 for lt_tmp_nm in $lt_nm_to_check; do
4326 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4327 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4328 IFS="$lt_save_ifs"
4329 test -z "$ac_dir" && ac_dir=.
4330 tmp_nm="$ac_dir/$lt_tmp_nm"
4331 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4332 # Check to see if the nm accepts a BSD-compat flag.
4333 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4334 # nm: unknown option "B" ignored
4335 # Tru64's nm complains that /dev/null is an invalid object file
4336 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4337 */dev/null* | *'Invalid file or object type'*)
4338 lt_cv_path_NM="$tmp_nm -B"
4339 break
4342 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4343 */dev/null*)
4344 lt_cv_path_NM="$tmp_nm -p"
4345 break
4348 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4349 continue # so that we can try to find one that supports BSD flags
4351 esac
4353 esac
4355 done
4356 IFS="$lt_save_ifs"
4357 done
4358 : ${lt_cv_path_NM=no}
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4362 $as_echo "$lt_cv_path_NM" >&6; }
4363 if test "$lt_cv_path_NM" != "no"; then
4364 NM="$lt_cv_path_NM"
4365 else
4366 # Didn't find any BSD compatible name lister, look for dumpbin.
4367 if test -n "$DUMPBIN"; then :
4368 # Let the user override the test.
4369 else
4370 if test -n "$ac_tool_prefix"; then
4371 for ac_prog in dumpbin "link -dump"
4373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_DUMPBIN+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -n "$DUMPBIN"; then
4381 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4394 done
4395 done
4396 IFS=$as_save_IFS
4400 DUMPBIN=$ac_cv_prog_DUMPBIN
4401 if test -n "$DUMPBIN"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4403 $as_echo "$DUMPBIN" >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4410 test -n "$DUMPBIN" && break
4411 done
4413 if test -z "$DUMPBIN"; then
4414 ac_ct_DUMPBIN=$DUMPBIN
4415 for ac_prog in dumpbin "link -dump"
4417 # Extract the first word of "$ac_prog", so it can be a program name with args.
4418 set dummy $ac_prog; ac_word=$2
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 if test -n "$ac_ct_DUMPBIN"; then
4425 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4438 done
4439 done
4440 IFS=$as_save_IFS
4444 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4445 if test -n "$ac_ct_DUMPBIN"; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4447 $as_echo "$ac_ct_DUMPBIN" >&6; }
4448 else
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4454 test -n "$ac_ct_DUMPBIN" && break
4455 done
4457 if test "x$ac_ct_DUMPBIN" = x; then
4458 DUMPBIN=":"
4459 else
4460 case $cross_compiling:$ac_tool_warned in
4461 yes:)
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4464 ac_tool_warned=yes ;;
4465 esac
4466 DUMPBIN=$ac_ct_DUMPBIN
4470 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4471 *COFF*)
4472 DUMPBIN="$DUMPBIN -symbols"
4475 DUMPBIN=:
4477 esac
4480 if test "$DUMPBIN" != ":"; then
4481 NM="$DUMPBIN"
4484 test -z "$NM" && NM=nm
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4492 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4493 if ${lt_cv_nm_interface+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 lt_cv_nm_interface="BSD nm"
4497 echo "int some_variable = 0;" > conftest.$ac_ext
4498 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4499 (eval "$ac_compile" 2>conftest.err)
4500 cat conftest.err >&5
4501 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4502 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4503 cat conftest.err >&5
4504 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4505 cat conftest.out >&5
4506 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4507 lt_cv_nm_interface="MS dumpbin"
4509 rm -f conftest*
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4512 $as_echo "$lt_cv_nm_interface" >&6; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4515 $as_echo_n "checking whether ln -s works... " >&6; }
4516 LN_S=$as_ln_s
4517 if test "$LN_S" = "ln -s"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4519 $as_echo "yes" >&6; }
4520 else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4522 $as_echo "no, using $LN_S" >&6; }
4525 # find the maximum length of command line arguments
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4527 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4528 if ${lt_cv_sys_max_cmd_len+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4532 teststring="ABCD"
4534 case $build_os in
4535 msdosdjgpp*)
4536 # On DJGPP, this test can blow up pretty badly due to problems in libc
4537 # (any single argument exceeding 2000 bytes causes a buffer overrun
4538 # during glob expansion). Even if it were fixed, the result of this
4539 # check would be larger than it should be.
4540 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4543 gnu*)
4544 # Under GNU Hurd, this test is not required because there is
4545 # no limit to the length of command line arguments.
4546 # Libtool will interpret -1 as no limit whatsoever
4547 lt_cv_sys_max_cmd_len=-1;
4550 cygwin* | mingw* | cegcc*)
4551 # On Win9x/ME, this test blows up -- it succeeds, but takes
4552 # about 5 minutes as the teststring grows exponentially.
4553 # Worse, since 9x/ME are not pre-emptively multitasking,
4554 # you end up with a "frozen" computer, even though with patience
4555 # the test eventually succeeds (with a max line length of 256k).
4556 # Instead, let's just punt: use the minimum linelength reported by
4557 # all of the supported platforms: 8192 (on NT/2K/XP).
4558 lt_cv_sys_max_cmd_len=8192;
4561 mint*)
4562 # On MiNT this can take a long time and run out of memory.
4563 lt_cv_sys_max_cmd_len=8192;
4566 amigaos*)
4567 # On AmigaOS with pdksh, this test takes hours, literally.
4568 # So we just punt and use a minimum line length of 8192.
4569 lt_cv_sys_max_cmd_len=8192;
4572 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4573 # This has been around since 386BSD, at least. Likely further.
4574 if test -x /sbin/sysctl; then
4575 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4576 elif test -x /usr/sbin/sysctl; then
4577 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4578 else
4579 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4581 # And add a safety zone
4582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4586 interix*)
4587 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4588 lt_cv_sys_max_cmd_len=196608
4591 os2*)
4592 # The test takes a long time on OS/2.
4593 lt_cv_sys_max_cmd_len=8192
4596 osf*)
4597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4599 # nice to cause kernel panics so lets avoid the loop below.
4600 # First set a reasonable default.
4601 lt_cv_sys_max_cmd_len=16384
4603 if test -x /sbin/sysconfig; then
4604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4606 esac
4609 sco3.2v5*)
4610 lt_cv_sys_max_cmd_len=102400
4612 sysv5* | sco5v6* | sysv4.2uw2*)
4613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4614 if test -n "$kargmax"; then
4615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4616 else
4617 lt_cv_sys_max_cmd_len=32768
4621 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4622 if test -n "$lt_cv_sys_max_cmd_len" && \
4623 test undefined != "$lt_cv_sys_max_cmd_len"; then
4624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4626 else
4627 # Make teststring a little bigger before we do anything with it.
4628 # a 1K string should be a reasonable start.
4629 for i in 1 2 3 4 5 6 7 8 ; do
4630 teststring=$teststring$teststring
4631 done
4632 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4633 # If test is not a shell built-in, we'll probably end up computing a
4634 # maximum length that is only half of the actual maximum length, but
4635 # we can't tell.
4636 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4637 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4638 test $i != 17 # 1/2 MB should be enough
4640 i=`expr $i + 1`
4641 teststring=$teststring$teststring
4642 done
4643 # Only check the string length outside the loop.
4644 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4645 teststring=
4646 # Add a significant safety factor because C++ compilers can tack on
4647 # massive amounts of additional arguments before passing them to the
4648 # linker. It appears as though 1/2 is a usable value.
4649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4652 esac
4656 if test -n $lt_cv_sys_max_cmd_len ; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4658 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4659 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4661 $as_echo "none" >&6; }
4663 max_cmd_len=$lt_cv_sys_max_cmd_len
4670 : ${CP="cp -f"}
4671 : ${MV="mv -f"}
4672 : ${RM="rm -f"}
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4675 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4676 # Try some XSI features
4677 xsi_shell=no
4678 ( _lt_dummy="a/b/c"
4679 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4680 = c,a/b,b/c, \
4681 && eval 'test $(( 1 + 1 )) -eq 2 \
4682 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4683 && xsi_shell=yes
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4685 $as_echo "$xsi_shell" >&6; }
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4689 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4690 lt_shell_append=no
4691 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4692 >/dev/null 2>&1 \
4693 && lt_shell_append=yes
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4695 $as_echo "$lt_shell_append" >&6; }
4698 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4699 lt_unset=unset
4700 else
4701 lt_unset=false
4708 # test EBCDIC or ASCII
4709 case `echo X|tr X '\101'` in
4710 A) # ASCII based system
4711 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4712 lt_SP2NL='tr \040 \012'
4713 lt_NL2SP='tr \015\012 \040\040'
4715 *) # EBCDIC based system
4716 lt_SP2NL='tr \100 \n'
4717 lt_NL2SP='tr \r\n \100\100'
4719 esac
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4730 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4731 if ${lt_cv_to_host_file_cmd+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 case $host in
4735 *-*-mingw* )
4736 case $build in
4737 *-*-mingw* ) # actually msys
4738 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4740 *-*-cygwin* )
4741 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4743 * ) # otherwise, assume *nix
4744 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4746 esac
4748 *-*-cygwin* )
4749 case $build in
4750 *-*-mingw* ) # actually msys
4751 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4753 *-*-cygwin* )
4754 lt_cv_to_host_file_cmd=func_convert_file_noop
4756 * ) # otherwise, assume *nix
4757 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4759 esac
4761 * ) # unhandled hosts (and "normal" native builds)
4762 lt_cv_to_host_file_cmd=func_convert_file_noop
4764 esac
4768 to_host_file_cmd=$lt_cv_to_host_file_cmd
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4770 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4777 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4778 if ${lt_cv_to_tool_file_cmd+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 #assume ordinary cross tools, or native build.
4782 lt_cv_to_tool_file_cmd=func_convert_file_noop
4783 case $host in
4784 *-*-mingw* )
4785 case $build in
4786 *-*-mingw* ) # actually msys
4787 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4789 esac
4791 esac
4795 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4797 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4804 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4805 if ${lt_cv_ld_reload_flag+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 lt_cv_ld_reload_flag='-r'
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4811 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4812 reload_flag=$lt_cv_ld_reload_flag
4813 case $reload_flag in
4814 "" | " "*) ;;
4815 *) reload_flag=" $reload_flag" ;;
4816 esac
4817 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4818 case $host_os in
4819 cygwin* | mingw* | pw32* | cegcc*)
4820 if test "$GCC" != yes; then
4821 reload_cmds=false
4824 darwin*)
4825 if test "$GCC" = yes; then
4826 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4827 else
4828 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4831 esac
4841 if test -n "$ac_tool_prefix"; then
4842 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4843 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_OBJDUMP+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$OBJDUMP"; then
4850 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4863 done
4864 done
4865 IFS=$as_save_IFS
4869 OBJDUMP=$ac_cv_prog_OBJDUMP
4870 if test -n "$OBJDUMP"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4872 $as_echo "$OBJDUMP" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4880 if test -z "$ac_cv_prog_OBJDUMP"; then
4881 ac_ct_OBJDUMP=$OBJDUMP
4882 # Extract the first word of "objdump", so it can be a program name with args.
4883 set dummy objdump; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$ac_ct_OBJDUMP"; then
4890 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4909 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4910 if test -n "$ac_ct_OBJDUMP"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4912 $as_echo "$ac_ct_OBJDUMP" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4918 if test "x$ac_ct_OBJDUMP" = x; then
4919 OBJDUMP="false"
4920 else
4921 case $cross_compiling:$ac_tool_warned in
4922 yes:)
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4925 ac_tool_warned=yes ;;
4926 esac
4927 OBJDUMP=$ac_ct_OBJDUMP
4929 else
4930 OBJDUMP="$ac_cv_prog_OBJDUMP"
4933 test -z "$OBJDUMP" && OBJDUMP=objdump
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4944 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4945 if ${lt_cv_deplibs_check_method+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 lt_cv_file_magic_cmd='$MAGIC_CMD'
4949 lt_cv_file_magic_test_file=
4950 lt_cv_deplibs_check_method='unknown'
4951 # Need to set the preceding variable on all platforms that support
4952 # interlibrary dependencies.
4953 # 'none' -- dependencies not supported.
4954 # `unknown' -- same as none, but documents that we really don't know.
4955 # 'pass_all' -- all dependencies passed with no checks.
4956 # 'test_compile' -- check by making test program.
4957 # 'file_magic [[regex]]' -- check by looking for files in library path
4958 # which responds to the $file_magic_cmd with a given extended regex.
4959 # If you have `file' or equivalent on your system and you're not sure
4960 # whether `pass_all' will *always* work, you probably want this one.
4962 case $host_os in
4963 aix[4-9]*)
4964 lt_cv_deplibs_check_method=pass_all
4967 beos*)
4968 lt_cv_deplibs_check_method=pass_all
4971 bsdi[45]*)
4972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4973 lt_cv_file_magic_cmd='/usr/bin/file -L'
4974 lt_cv_file_magic_test_file=/shlib/libc.so
4977 cygwin*)
4978 # func_win32_libid is a shell function defined in ltmain.sh
4979 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4980 lt_cv_file_magic_cmd='func_win32_libid'
4983 mingw* | pw32*)
4984 # Base MSYS/MinGW do not provide the 'file' command needed by
4985 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4986 # unless we find 'file', for example because we are cross-compiling.
4987 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4988 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4989 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4990 lt_cv_file_magic_cmd='func_win32_libid'
4991 else
4992 # Keep this pattern in sync with the one in func_win32_libid.
4993 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4994 lt_cv_file_magic_cmd='$OBJDUMP -f'
4998 cegcc*)
4999 # use the weaker test based on 'objdump'. See mingw*.
5000 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5001 lt_cv_file_magic_cmd='$OBJDUMP -f'
5004 darwin* | rhapsody*)
5005 lt_cv_deplibs_check_method=pass_all
5008 freebsd* | dragonfly*)
5009 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5010 case $host_cpu in
5011 i*86 )
5012 # Not sure whether the presence of OpenBSD here was a mistake.
5013 # Let's accept both of them until this is cleared up.
5014 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5015 lt_cv_file_magic_cmd=/usr/bin/file
5016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5018 esac
5019 else
5020 lt_cv_deplibs_check_method=pass_all
5024 haiku*)
5025 lt_cv_deplibs_check_method=pass_all
5028 hpux10.20* | hpux11*)
5029 lt_cv_file_magic_cmd=/usr/bin/file
5030 case $host_cpu in
5031 ia64*)
5032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5035 hppa*64*)
5036 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]'
5037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5043 esac
5046 interix[3-9]*)
5047 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5051 irix5* | irix6* | nonstopux*)
5052 case $LD in
5053 *-32|*"-32 ") libmagic=32-bit;;
5054 *-n32|*"-n32 ") libmagic=N32;;
5055 *-64|*"-64 ") libmagic=64-bit;;
5056 *) libmagic=never-match;;
5057 esac
5058 lt_cv_deplibs_check_method=pass_all
5061 # This must be glibc/ELF.
5062 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5063 lt_cv_deplibs_check_method=pass_all
5066 netbsd* | netbsdelf*-gnu)
5067 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5069 else
5070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5074 newos6*)
5075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5076 lt_cv_file_magic_cmd=/usr/bin/file
5077 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5080 *nto* | *qnx*)
5081 lt_cv_deplibs_check_method=pass_all
5084 openbsd*)
5085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5087 else
5088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5092 osf3* | osf4* | osf5*)
5093 lt_cv_deplibs_check_method=pass_all
5096 rdos*)
5097 lt_cv_deplibs_check_method=pass_all
5100 solaris*)
5101 lt_cv_deplibs_check_method=pass_all
5104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5105 lt_cv_deplibs_check_method=pass_all
5108 sysv4 | sysv4.3*)
5109 case $host_vendor in
5110 motorola)
5111 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]'
5112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5114 ncr)
5115 lt_cv_deplibs_check_method=pass_all
5117 sequent)
5118 lt_cv_file_magic_cmd='/bin/file'
5119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5121 sni)
5122 lt_cv_file_magic_cmd='/bin/file'
5123 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5124 lt_cv_file_magic_test_file=/lib/libc.so
5126 siemens)
5127 lt_cv_deplibs_check_method=pass_all
5130 lt_cv_deplibs_check_method=pass_all
5132 esac
5135 tpf*)
5136 lt_cv_deplibs_check_method=pass_all
5138 esac
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5142 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5144 file_magic_glob=
5145 want_nocaseglob=no
5146 if test "$build" = "$host"; then
5147 case $host_os in
5148 mingw* | pw32*)
5149 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5150 want_nocaseglob=yes
5151 else
5152 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5155 esac
5158 file_magic_cmd=$lt_cv_file_magic_cmd
5159 deplibs_check_method=$lt_cv_deplibs_check_method
5160 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5183 if test -n "$ac_tool_prefix"; then
5184 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5185 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_DLLTOOL+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$DLLTOOL"; then
5192 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5211 DLLTOOL=$ac_cv_prog_DLLTOOL
5212 if test -n "$DLLTOOL"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5214 $as_echo "$DLLTOOL" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5222 if test -z "$ac_cv_prog_DLLTOOL"; then
5223 ac_ct_DLLTOOL=$DLLTOOL
5224 # Extract the first word of "dlltool", so it can be a program name with args.
5225 set dummy dlltool; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$ac_ct_DLLTOOL"; then
5232 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5245 done
5246 done
5247 IFS=$as_save_IFS
5251 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5252 if test -n "$ac_ct_DLLTOOL"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5254 $as_echo "$ac_ct_DLLTOOL" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5260 if test "x$ac_ct_DLLTOOL" = x; then
5261 DLLTOOL="false"
5262 else
5263 case $cross_compiling:$ac_tool_warned in
5264 yes:)
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5267 ac_tool_warned=yes ;;
5268 esac
5269 DLLTOOL=$ac_ct_DLLTOOL
5271 else
5272 DLLTOOL="$ac_cv_prog_DLLTOOL"
5275 test -z "$DLLTOOL" && DLLTOOL=dlltool
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5287 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5288 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 lt_cv_sharedlib_from_linklib_cmd='unknown'
5293 case $host_os in
5294 cygwin* | mingw* | pw32* | cegcc*)
5295 # two different shell functions defined in ltmain.sh
5296 # decide which to use based on capabilities of $DLLTOOL
5297 case `$DLLTOOL --help 2>&1` in
5298 *--identify-strict*)
5299 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5302 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5304 esac
5307 # fallback: assume linklib IS sharedlib
5308 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5310 esac
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5314 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5315 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5316 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5325 if test -n "$ac_tool_prefix"; then
5326 for ac_prog in ar
5328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if ${ac_cv_prog_AR+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 if test -n "$AR"; then
5336 ac_cv_prog_AR="$AR" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
5349 done
5350 done
5351 IFS=$as_save_IFS
5355 AR=$ac_cv_prog_AR
5356 if test -n "$AR"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5358 $as_echo "$AR" >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5365 test -n "$AR" && break
5366 done
5368 if test -z "$AR"; then
5369 ac_ct_AR=$AR
5370 for ac_prog in ar
5372 # Extract the first word of "$ac_prog", so it can be a program name with args.
5373 set dummy $ac_prog; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 if test -n "$ac_ct_AR"; then
5380 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_ac_ct_AR="$ac_prog"
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 break 2
5393 done
5394 done
5395 IFS=$as_save_IFS
5399 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5400 if test -n "$ac_ct_AR"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5402 $as_echo "$ac_ct_AR" >&6; }
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5409 test -n "$ac_ct_AR" && break
5410 done
5412 if test "x$ac_ct_AR" = x; then
5413 AR="false"
5414 else
5415 case $cross_compiling:$ac_tool_warned in
5416 yes:)
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5419 ac_tool_warned=yes ;;
5420 esac
5421 AR=$ac_ct_AR
5425 : ${AR=ar}
5426 : ${AR_FLAGS=cru}
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5439 $as_echo_n "checking for archiver @FILE support... " >&6; }
5440 if ${lt_cv_ar_at_file+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 lt_cv_ar_at_file=no
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5448 main ()
5452 return 0;
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 echo conftest.$ac_objext > conftest.lst
5457 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5459 (eval $lt_ar_try) 2>&5
5460 ac_status=$?
5461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462 test $ac_status = 0; }
5463 if test "$ac_status" -eq 0; then
5464 # Ensure the archiver fails upon bogus file names.
5465 rm -f conftest.$ac_objext libconftest.a
5466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5467 (eval $lt_ar_try) 2>&5
5468 ac_status=$?
5469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5470 test $ac_status = 0; }
5471 if test "$ac_status" -ne 0; then
5472 lt_cv_ar_at_file=@
5475 rm -f conftest.* libconftest.a
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5482 $as_echo "$lt_cv_ar_at_file" >&6; }
5484 if test "x$lt_cv_ar_at_file" = xno; then
5485 archiver_list_spec=
5486 else
5487 archiver_list_spec=$lt_cv_ar_at_file
5496 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}strip; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_STRIP+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$STRIP"; then
5505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5518 done
5519 done
5520 IFS=$as_save_IFS
5524 STRIP=$ac_cv_prog_STRIP
5525 if test -n "$STRIP"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5527 $as_echo "$STRIP" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5535 if test -z "$ac_cv_prog_STRIP"; then
5536 ac_ct_STRIP=$STRIP
5537 # Extract the first word of "strip", so it can be a program name with args.
5538 set dummy strip; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -n "$ac_ct_STRIP"; then
5545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_STRIP="strip"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5558 done
5559 done
5560 IFS=$as_save_IFS
5564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5565 if test -n "$ac_ct_STRIP"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5567 $as_echo "$ac_ct_STRIP" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5573 if test "x$ac_ct_STRIP" = x; then
5574 STRIP=":"
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5581 esac
5582 STRIP=$ac_ct_STRIP
5584 else
5585 STRIP="$ac_cv_prog_STRIP"
5588 test -z "$STRIP" && STRIP=:
5595 if test -n "$ac_tool_prefix"; then
5596 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5597 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_prog_RANLIB+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 if test -n "$RANLIB"; then
5604 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5617 done
5618 done
5619 IFS=$as_save_IFS
5623 RANLIB=$ac_cv_prog_RANLIB
5624 if test -n "$RANLIB"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5626 $as_echo "$RANLIB" >&6; }
5627 else
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 $as_echo "no" >&6; }
5634 if test -z "$ac_cv_prog_RANLIB"; then
5635 ac_ct_RANLIB=$RANLIB
5636 # Extract the first word of "ranlib", so it can be a program name with args.
5637 set dummy ranlib; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if test -n "$ac_ct_RANLIB"; then
5644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_ac_ct_RANLIB="ranlib"
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5657 done
5658 done
5659 IFS=$as_save_IFS
5663 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5664 if test -n "$ac_ct_RANLIB"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5666 $as_echo "$ac_ct_RANLIB" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5672 if test "x$ac_ct_RANLIB" = x; then
5673 RANLIB=":"
5674 else
5675 case $cross_compiling:$ac_tool_warned in
5676 yes:)
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5679 ac_tool_warned=yes ;;
5680 esac
5681 RANLIB=$ac_ct_RANLIB
5683 else
5684 RANLIB="$ac_cv_prog_RANLIB"
5687 test -z "$RANLIB" && RANLIB=:
5694 # Determine commands to create old-style static archives.
5695 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5696 old_postinstall_cmds='chmod 644 $oldlib'
5697 old_postuninstall_cmds=
5699 if test -n "$RANLIB"; then
5700 case $host_os in
5701 openbsd*)
5702 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5707 esac
5708 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5711 case $host_os in
5712 darwin*)
5713 lock_old_archive_extraction=yes ;;
5715 lock_old_archive_extraction=no ;;
5716 esac
5756 # If no C compiler was specified, use CC.
5757 LTCC=${LTCC-"$CC"}
5759 # If no C compiler flags were specified, use CFLAGS.
5760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5762 # Allow CC to be a program name with arguments.
5763 compiler=$CC
5766 # Check for command to grab the raw symbol name followed by C symbol from nm.
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5768 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5769 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5773 # These are sane defaults that work on at least a few old systems.
5774 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5776 # Character class describing NM global symbol codes.
5777 symcode='[BCDEGRST]'
5779 # Regexp to match symbols that can be accessed directly from C.
5780 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5782 # Define system-specific variables.
5783 case $host_os in
5784 aix*)
5785 symcode='[BCDT]'
5787 cygwin* | mingw* | pw32* | cegcc*)
5788 symcode='[ABCDGISTW]'
5790 hpux*)
5791 if test "$host_cpu" = ia64; then
5792 symcode='[ABCDEGRST]'
5795 irix* | nonstopux*)
5796 symcode='[BCDEGRST]'
5798 osf*)
5799 symcode='[BCDEGQRST]'
5801 solaris*)
5802 symcode='[BDRT]'
5804 sco3.2v5*)
5805 symcode='[DT]'
5807 sysv4.2uw2*)
5808 symcode='[DT]'
5810 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5811 symcode='[ABDT]'
5813 sysv4)
5814 symcode='[DFNSTU]'
5816 esac
5818 # If we're using GNU nm, then use its standard symbol codes.
5819 case `$NM -V 2>&1` in
5820 *GNU* | *'with BFD'*)
5821 symcode='[ABCDGIRSTW]' ;;
5822 esac
5824 # Transform an extracted symbol line into a proper C declaration.
5825 # Some systems (esp. on ia64) link data and code symbols differently,
5826 # so use this general approach.
5827 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5829 # Transform an extracted symbol line into symbol name and symbol address
5830 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5831 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5833 # Handle CRLF in mingw tool chain
5834 opt_cr=
5835 case $build_os in
5836 mingw*)
5837 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5839 esac
5841 # Try without a prefix underscore, then with it.
5842 for ac_symprfx in "" "_"; do
5844 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5845 symxfrm="\\1 $ac_symprfx\\2 \\2"
5847 # Write the raw and C identifiers.
5848 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5849 # Fake it for dumpbin and say T for any non-static function
5850 # and D for any global variable.
5851 # Also find C++ and __fastcall symbols from MSVC++,
5852 # which start with @ or ?.
5853 lt_cv_sys_global_symbol_pipe="$AWK '"\
5854 " {last_section=section; section=\$ 3};"\
5855 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5856 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5857 " \$ 0!~/External *\|/{next};"\
5858 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5859 " {if(hide[section]) next};"\
5860 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5861 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5862 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5863 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5864 " ' prfx=^$ac_symprfx"
5865 else
5866 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5868 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5870 # Check to see that the pipe works correctly.
5871 pipe_works=no
5873 rm -f conftest*
5874 cat > conftest.$ac_ext <<_LT_EOF
5875 #ifdef __cplusplus
5876 extern "C" {
5877 #endif
5878 char nm_test_var;
5879 void nm_test_func(void);
5880 void nm_test_func(void){}
5881 #ifdef __cplusplus
5883 #endif
5884 int main(){nm_test_var='a';nm_test_func();return(0);}
5885 _LT_EOF
5887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5888 (eval $ac_compile) 2>&5
5889 ac_status=$?
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; }; then
5892 # Now try to grab the symbols.
5893 nlist=conftest.nm
5894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5895 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5896 ac_status=$?
5897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898 test $ac_status = 0; } && test -s "$nlist"; then
5899 # Try sorting and uniquifying the output.
5900 if sort "$nlist" | uniq > "$nlist"T; then
5901 mv -f "$nlist"T "$nlist"
5902 else
5903 rm -f "$nlist"T
5906 # Make sure that we snagged all the symbols we need.
5907 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5908 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5909 cat <<_LT_EOF > conftest.$ac_ext
5910 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5911 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5912 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5913 relocations are performed -- see ld's documentation on pseudo-relocs. */
5914 # define LT_DLSYM_CONST
5915 #elif defined(__osf__)
5916 /* This system does not cope well with relocations in const data. */
5917 # define LT_DLSYM_CONST
5918 #else
5919 # define LT_DLSYM_CONST const
5920 #endif
5922 #ifdef __cplusplus
5923 extern "C" {
5924 #endif
5926 _LT_EOF
5927 # Now generate the symbol file.
5928 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5930 cat <<_LT_EOF >> conftest.$ac_ext
5932 /* The mapping between symbol names and symbols. */
5933 LT_DLSYM_CONST struct {
5934 const char *name;
5935 void *address;
5937 lt__PROGRAM__LTX_preloaded_symbols[] =
5939 { "@PROGRAM@", (void *) 0 },
5940 _LT_EOF
5941 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5942 cat <<\_LT_EOF >> conftest.$ac_ext
5943 {0, (void *) 0}
5946 /* This works around a problem in FreeBSD linker */
5947 #ifdef FREEBSD_WORKAROUND
5948 static const void *lt_preloaded_setup() {
5949 return lt__PROGRAM__LTX_preloaded_symbols;
5951 #endif
5953 #ifdef __cplusplus
5955 #endif
5956 _LT_EOF
5957 # Now try linking the two files.
5958 mv conftest.$ac_objext conftstm.$ac_objext
5959 lt_globsym_save_LIBS=$LIBS
5960 lt_globsym_save_CFLAGS=$CFLAGS
5961 LIBS="conftstm.$ac_objext"
5962 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5964 (eval $ac_link) 2>&5
5965 ac_status=$?
5966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5967 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5968 pipe_works=yes
5970 LIBS=$lt_globsym_save_LIBS
5971 CFLAGS=$lt_globsym_save_CFLAGS
5972 else
5973 echo "cannot find nm_test_func in $nlist" >&5
5975 else
5976 echo "cannot find nm_test_var in $nlist" >&5
5978 else
5979 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5981 else
5982 echo "$progname: failed program was:" >&5
5983 cat conftest.$ac_ext >&5
5985 rm -rf conftest* conftst*
5987 # Do not use the global_symbol_pipe unless it works.
5988 if test "$pipe_works" = yes; then
5989 break
5990 else
5991 lt_cv_sys_global_symbol_pipe=
5993 done
5997 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5998 lt_cv_sys_global_symbol_to_cdecl=
6000 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6002 $as_echo "failed" >&6; }
6003 else
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6005 $as_echo "ok" >&6; }
6008 # Response file support.
6009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6010 nm_file_list_spec='@'
6011 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6012 nm_file_list_spec='@'
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6042 $as_echo_n "checking for sysroot... " >&6; }
6044 # Check whether --with-sysroot was given.
6045 if test "${with_sysroot+set}" = set; then :
6046 withval=$with_sysroot;
6047 else
6048 with_sysroot=no
6052 lt_sysroot=
6053 case ${with_sysroot} in #(
6054 yes)
6055 if test "$GCC" = yes; then
6056 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6058 ;; #(
6060 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6061 ;; #(
6062 no|'')
6063 ;; #(
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6066 $as_echo "${with_sysroot}" >&6; }
6067 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6069 esac
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6072 $as_echo "${lt_sysroot:-no}" >&6; }
6078 # Check whether --enable-libtool-lock was given.
6079 if test "${enable_libtool_lock+set}" = set; then :
6080 enableval=$enable_libtool_lock;
6083 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6085 # Some flags need to be propagated to the compiler or linker for good
6086 # libtool support.
6087 case $host in
6088 ia64-*-hpux*)
6089 # Find out which ABI we are using.
6090 echo 'int i;' > conftest.$ac_ext
6091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6092 (eval $ac_compile) 2>&5
6093 ac_status=$?
6094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6095 test $ac_status = 0; }; then
6096 case `/usr/bin/file conftest.$ac_objext` in
6097 *ELF-32*)
6098 HPUX_IA64_MODE="32"
6100 *ELF-64*)
6101 HPUX_IA64_MODE="64"
6103 esac
6105 rm -rf conftest*
6107 *-*-irix6*)
6108 # Find out which ABI we are using.
6109 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6111 (eval $ac_compile) 2>&5
6112 ac_status=$?
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; }; then
6115 if test "$lt_cv_prog_gnu_ld" = yes; then
6116 case `/usr/bin/file conftest.$ac_objext` in
6117 *32-bit*)
6118 LD="${LD-ld} -melf32bsmip"
6120 *N32*)
6121 LD="${LD-ld} -melf32bmipn32"
6123 *64-bit*)
6124 LD="${LD-ld} -melf64bmip"
6126 esac
6127 else
6128 case `/usr/bin/file conftest.$ac_objext` in
6129 *32-bit*)
6130 LD="${LD-ld} -32"
6132 *N32*)
6133 LD="${LD-ld} -n32"
6135 *64-bit*)
6136 LD="${LD-ld} -64"
6138 esac
6141 rm -rf conftest*
6144 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6145 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6146 # Find out which ABI we are using.
6147 echo 'int i;' > conftest.$ac_ext
6148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6149 (eval $ac_compile) 2>&5
6150 ac_status=$?
6151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6152 test $ac_status = 0; }; then
6153 case `/usr/bin/file conftest.o` in
6154 *32-bit*)
6155 case $host in
6156 x86_64-*kfreebsd*-gnu)
6157 LD="${LD-ld} -m elf_i386_fbsd"
6159 x86_64-*linux*)
6160 case `/usr/bin/file conftest.o` in
6161 *x86-64*)
6162 LD="${LD-ld} -m elf32_x86_64"
6165 LD="${LD-ld} -m elf_i386"
6167 esac
6169 ppc64-*linux*|powerpc64-*linux*)
6170 LD="${LD-ld} -m elf32ppclinux"
6172 s390x-*linux*)
6173 LD="${LD-ld} -m elf_s390"
6175 sparc64-*linux*)
6176 LD="${LD-ld} -m elf32_sparc"
6178 esac
6180 *64-bit*)
6181 case $host in
6182 x86_64-*kfreebsd*-gnu)
6183 LD="${LD-ld} -m elf_x86_64_fbsd"
6185 x86_64-*linux*)
6186 LD="${LD-ld} -m elf_x86_64"
6188 ppc*-*linux*|powerpc*-*linux*)
6189 LD="${LD-ld} -m elf64ppc"
6191 s390*-*linux*|s390*-*tpf*)
6192 LD="${LD-ld} -m elf64_s390"
6194 sparc*-*linux*)
6195 LD="${LD-ld} -m elf64_sparc"
6197 esac
6199 esac
6201 rm -rf conftest*
6204 *-*-sco3.2v5*)
6205 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6206 SAVE_CFLAGS="$CFLAGS"
6207 CFLAGS="$CFLAGS -belf"
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6209 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6210 if ${lt_cv_cc_needs_belf+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 ac_ext=c
6214 ac_cpp='$CPP $CPPFLAGS'
6215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6223 main ()
6227 return 0;
6229 _ACEOF
6230 if ac_fn_c_try_link "$LINENO"; then :
6231 lt_cv_cc_needs_belf=yes
6232 else
6233 lt_cv_cc_needs_belf=no
6235 rm -f core conftest.err conftest.$ac_objext \
6236 conftest$ac_exeext conftest.$ac_ext
6237 ac_ext=c
6238 ac_cpp='$CPP $CPPFLAGS'
6239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6245 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6246 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6247 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6248 CFLAGS="$SAVE_CFLAGS"
6251 *-*solaris*)
6252 # Find out which ABI we are using.
6253 echo 'int i;' > conftest.$ac_ext
6254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6255 (eval $ac_compile) 2>&5
6256 ac_status=$?
6257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6258 test $ac_status = 0; }; then
6259 case `/usr/bin/file conftest.o` in
6260 *64-bit*)
6261 case $lt_cv_prog_gnu_ld in
6262 yes*)
6263 case $host in
6264 i?86-*-solaris*)
6265 LD="${LD-ld} -m elf_x86_64"
6267 sparc*-*-solaris*)
6268 LD="${LD-ld} -m elf64_sparc"
6270 esac
6271 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6272 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6273 LD="${LD-ld}_sol2"
6277 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6278 LD="${LD-ld} -64"
6281 esac
6283 esac
6285 rm -rf conftest*
6287 esac
6289 need_locks="$enable_libtool_lock"
6291 if test -n "$ac_tool_prefix"; then
6292 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6293 set dummy ${ac_tool_prefix}mt; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 if test -n "$MANIFEST_TOOL"; then
6300 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6313 done
6314 done
6315 IFS=$as_save_IFS
6319 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6320 if test -n "$MANIFEST_TOOL"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6322 $as_echo "$MANIFEST_TOOL" >&6; }
6323 else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6330 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6331 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6332 # Extract the first word of "mt", so it can be a program name with args.
6333 set dummy mt; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 if test -n "$ac_ct_MANIFEST_TOOL"; then
6340 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6353 done
6354 done
6355 IFS=$as_save_IFS
6359 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6360 if test -n "$ac_ct_MANIFEST_TOOL"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6362 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6368 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6369 MANIFEST_TOOL=":"
6370 else
6371 case $cross_compiling:$ac_tool_warned in
6372 yes:)
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6376 esac
6377 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6379 else
6380 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6383 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6385 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6386 if ${lt_cv_path_mainfest_tool+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 lt_cv_path_mainfest_tool=no
6390 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6391 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6392 cat conftest.err >&5
6393 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6394 lt_cv_path_mainfest_tool=yes
6396 rm -f conftest*
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6399 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6400 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6401 MANIFEST_TOOL=:
6409 case $host_os in
6410 rhapsody* | darwin*)
6411 if test -n "$ac_tool_prefix"; then
6412 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 if test -n "$DSYMUTIL"; then
6420 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6433 done
6434 done
6435 IFS=$as_save_IFS
6439 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6440 if test -n "$DSYMUTIL"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6442 $as_echo "$DSYMUTIL" >&6; }
6443 else
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6450 if test -z "$ac_cv_prog_DSYMUTIL"; then
6451 ac_ct_DSYMUTIL=$DSYMUTIL
6452 # Extract the first word of "dsymutil", so it can be a program name with args.
6453 set dummy dsymutil; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$ac_ct_DSYMUTIL"; then
6460 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6473 done
6474 done
6475 IFS=$as_save_IFS
6479 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6480 if test -n "$ac_ct_DSYMUTIL"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6482 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6488 if test "x$ac_ct_DSYMUTIL" = x; then
6489 DSYMUTIL=":"
6490 else
6491 case $cross_compiling:$ac_tool_warned in
6492 yes:)
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6496 esac
6497 DSYMUTIL=$ac_ct_DSYMUTIL
6499 else
6500 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6503 if test -n "$ac_tool_prefix"; then
6504 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6505 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_prog_NMEDIT+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 if test -n "$NMEDIT"; then
6512 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6525 done
6526 done
6527 IFS=$as_save_IFS
6531 NMEDIT=$ac_cv_prog_NMEDIT
6532 if test -n "$NMEDIT"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6534 $as_echo "$NMEDIT" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6542 if test -z "$ac_cv_prog_NMEDIT"; then
6543 ac_ct_NMEDIT=$NMEDIT
6544 # Extract the first word of "nmedit", so it can be a program name with args.
6545 set dummy nmedit; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if test -n "$ac_ct_NMEDIT"; then
6552 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6567 IFS=$as_save_IFS
6571 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6572 if test -n "$ac_ct_NMEDIT"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6574 $as_echo "$ac_ct_NMEDIT" >&6; }
6575 else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6580 if test "x$ac_ct_NMEDIT" = x; then
6581 NMEDIT=":"
6582 else
6583 case $cross_compiling:$ac_tool_warned in
6584 yes:)
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6588 esac
6589 NMEDIT=$ac_ct_NMEDIT
6591 else
6592 NMEDIT="$ac_cv_prog_NMEDIT"
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if ${ac_cv_prog_LIPO+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 if test -n "$LIPO"; then
6604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6617 done
6618 done
6619 IFS=$as_save_IFS
6623 LIPO=$ac_cv_prog_LIPO
6624 if test -n "$LIPO"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6626 $as_echo "$LIPO" >&6; }
6627 else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6634 if test -z "$ac_cv_prog_LIPO"; then
6635 ac_ct_LIPO=$LIPO
6636 # Extract the first word of "lipo", so it can be a program name with args.
6637 set dummy lipo; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 if test -n "$ac_ct_LIPO"; then
6644 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653 ac_cv_prog_ac_ct_LIPO="lipo"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6657 done
6658 done
6659 IFS=$as_save_IFS
6663 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6664 if test -n "$ac_ct_LIPO"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6666 $as_echo "$ac_ct_LIPO" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6672 if test "x$ac_ct_LIPO" = x; then
6673 LIPO=":"
6674 else
6675 case $cross_compiling:$ac_tool_warned in
6676 yes:)
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6680 esac
6681 LIPO=$ac_ct_LIPO
6683 else
6684 LIPO="$ac_cv_prog_LIPO"
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}otool; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_prog_OTOOL+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 if test -n "$OTOOL"; then
6696 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6705 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6709 done
6710 done
6711 IFS=$as_save_IFS
6715 OTOOL=$ac_cv_prog_OTOOL
6716 if test -n "$OTOOL"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6718 $as_echo "$OTOOL" >&6; }
6719 else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6726 if test -z "$ac_cv_prog_OTOOL"; then
6727 ac_ct_OTOOL=$OTOOL
6728 # Extract the first word of "otool", so it can be a program name with args.
6729 set dummy otool; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if test -n "$ac_ct_OTOOL"; then
6736 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745 ac_cv_prog_ac_ct_OTOOL="otool"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6749 done
6750 done
6751 IFS=$as_save_IFS
6755 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6756 if test -n "$ac_ct_OTOOL"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6758 $as_echo "$ac_ct_OTOOL" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6764 if test "x$ac_ct_OTOOL" = x; then
6765 OTOOL=":"
6766 else
6767 case $cross_compiling:$ac_tool_warned in
6768 yes:)
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771 ac_tool_warned=yes ;;
6772 esac
6773 OTOOL=$ac_ct_OTOOL
6775 else
6776 OTOOL="$ac_cv_prog_OTOOL"
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6781 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_OTOOL64+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 if test -n "$OTOOL64"; then
6788 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6801 done
6802 done
6803 IFS=$as_save_IFS
6807 OTOOL64=$ac_cv_prog_OTOOL64
6808 if test -n "$OTOOL64"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6810 $as_echo "$OTOOL64" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6818 if test -z "$ac_cv_prog_OTOOL64"; then
6819 ac_ct_OTOOL64=$OTOOL64
6820 # Extract the first word of "otool64", so it can be a program name with args.
6821 set dummy otool64; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 if test -n "$ac_ct_OTOOL64"; then
6828 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6837 ac_cv_prog_ac_ct_OTOOL64="otool64"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6841 done
6842 done
6843 IFS=$as_save_IFS
6847 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6848 if test -n "$ac_ct_OTOOL64"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6850 $as_echo "$ac_ct_OTOOL64" >&6; }
6851 else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6856 if test "x$ac_ct_OTOOL64" = x; then
6857 OTOOL64=":"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860 yes:)
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863 ac_tool_warned=yes ;;
6864 esac
6865 OTOOL64=$ac_ct_OTOOL64
6867 else
6868 OTOOL64="$ac_cv_prog_OTOOL64"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6898 $as_echo_n "checking for -single_module linker flag... " >&6; }
6899 if ${lt_cv_apple_cc_single_mod+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 lt_cv_apple_cc_single_mod=no
6903 if test -z "${LT_MULTI_MODULE}"; then
6904 # By default we will add the -single_module flag. You can override
6905 # by either setting the environment variable LT_MULTI_MODULE
6906 # non-empty at configure time, or by adding -multi_module to the
6907 # link flags.
6908 rm -rf libconftest.dylib*
6909 echo "int foo(void){return 1;}" > conftest.c
6910 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6911 -dynamiclib -Wl,-single_module conftest.c" >&5
6912 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6913 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6914 _lt_result=$?
6915 # If there is a non-empty error log, and "single_module"
6916 # appears in it, assume the flag caused a linker warning
6917 if test -s conftest.err && $GREP single_module conftest.err; then
6918 cat conftest.err >&5
6919 # Otherwise, if the output was created with a 0 exit code from
6920 # the compiler, it worked.
6921 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6922 lt_cv_apple_cc_single_mod=yes
6923 else
6924 cat conftest.err >&5
6926 rm -rf libconftest.dylib*
6927 rm -f conftest.*
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6931 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6934 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6935 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 lt_cv_ld_exported_symbols_list=no
6939 save_LDFLAGS=$LDFLAGS
6940 echo "_main" > conftest.sym
6941 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6946 main ()
6950 return 0;
6952 _ACEOF
6953 if ac_fn_c_try_link "$LINENO"; then :
6954 lt_cv_ld_exported_symbols_list=yes
6955 else
6956 lt_cv_ld_exported_symbols_list=no
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 LDFLAGS="$save_LDFLAGS"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6964 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6967 $as_echo_n "checking for -force_load linker flag... " >&6; }
6968 if ${lt_cv_ld_force_load+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 lt_cv_ld_force_load=no
6972 cat > conftest.c << _LT_EOF
6973 int forced_loaded() { return 2;}
6974 _LT_EOF
6975 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6976 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6977 echo "$AR cru libconftest.a conftest.o" >&5
6978 $AR cru libconftest.a conftest.o 2>&5
6979 echo "$RANLIB libconftest.a" >&5
6980 $RANLIB libconftest.a 2>&5
6981 cat > conftest.c << _LT_EOF
6982 int main() { return 0;}
6983 _LT_EOF
6984 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6985 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6986 _lt_result=$?
6987 if test -s conftest.err && $GREP force_load conftest.err; then
6988 cat conftest.err >&5
6989 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6990 lt_cv_ld_force_load=yes
6991 else
6992 cat conftest.err >&5
6994 rm -f conftest.err libconftest.a conftest conftest.c
6995 rm -rf conftest.dSYM
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6999 $as_echo "$lt_cv_ld_force_load" >&6; }
7000 case $host_os in
7001 rhapsody* | darwin1.[012])
7002 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7003 darwin1.*)
7004 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7005 darwin*) # darwin 5.x on
7006 # if running on 10.5 or later, the deployment target defaults
7007 # to the OS version, if on x86, and 10.4, the deployment
7008 # target defaults to 10.4. Don't you love it?
7009 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7010 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7011 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7012 10.[012]*)
7013 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7014 10.*)
7015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7016 esac
7018 esac
7019 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7020 _lt_dar_single_mod='$single_module'
7022 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7023 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7024 else
7025 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7027 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7028 _lt_dsymutil='~$DSYMUTIL $lib || :'
7029 else
7030 _lt_dsymutil=
7033 esac
7035 ac_ext=c
7036 ac_cpp='$CPP $CPPFLAGS'
7037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7041 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7042 # On Suns, sometimes $CPP names a directory.
7043 if test -n "$CPP" && test -d "$CPP"; then
7044 CPP=
7046 if test -z "$CPP"; then
7047 if ${ac_cv_prog_CPP+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 # Double quotes because CPP needs to be expanded
7051 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7053 ac_preproc_ok=false
7054 for ac_c_preproc_warn_flag in '' yes
7056 # Use a header file that comes with gcc, so configuring glibc
7057 # with a fresh cross-compiler works.
7058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7059 # <limits.h> exists even on freestanding compilers.
7060 # On the NeXT, cc -E runs the code through the compiler's parser,
7061 # not just through cpp. "Syntax error" is here to catch this case.
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #ifdef __STDC__
7065 # include <limits.h>
7066 #else
7067 # include <assert.h>
7068 #endif
7069 Syntax error
7070 _ACEOF
7071 if ac_fn_c_try_cpp "$LINENO"; then :
7073 else
7074 # Broken: fails on valid input.
7075 continue
7077 rm -f conftest.err conftest.i conftest.$ac_ext
7079 # OK, works on sane cases. Now check whether nonexistent headers
7080 # can be detected and how.
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #include <ac_nonexistent.h>
7084 _ACEOF
7085 if ac_fn_c_try_cpp "$LINENO"; then :
7086 # Broken: success on invalid input.
7087 continue
7088 else
7089 # Passes both tests.
7090 ac_preproc_ok=:
7091 break
7093 rm -f conftest.err conftest.i conftest.$ac_ext
7095 done
7096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7097 rm -f conftest.i conftest.err conftest.$ac_ext
7098 if $ac_preproc_ok; then :
7099 break
7102 done
7103 ac_cv_prog_CPP=$CPP
7106 CPP=$ac_cv_prog_CPP
7107 else
7108 ac_cv_prog_CPP=$CPP
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7111 $as_echo "$CPP" >&6; }
7112 ac_preproc_ok=false
7113 for ac_c_preproc_warn_flag in '' yes
7115 # Use a header file that comes with gcc, so configuring glibc
7116 # with a fresh cross-compiler works.
7117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7118 # <limits.h> exists even on freestanding compilers.
7119 # On the NeXT, cc -E runs the code through the compiler's parser,
7120 # not just through cpp. "Syntax error" is here to catch this case.
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 #ifdef __STDC__
7124 # include <limits.h>
7125 #else
7126 # include <assert.h>
7127 #endif
7128 Syntax error
7129 _ACEOF
7130 if ac_fn_c_try_cpp "$LINENO"; then :
7132 else
7133 # Broken: fails on valid input.
7134 continue
7136 rm -f conftest.err conftest.i conftest.$ac_ext
7138 # OK, works on sane cases. Now check whether nonexistent headers
7139 # can be detected and how.
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 #include <ac_nonexistent.h>
7143 _ACEOF
7144 if ac_fn_c_try_cpp "$LINENO"; then :
7145 # Broken: success on invalid input.
7146 continue
7147 else
7148 # Passes both tests.
7149 ac_preproc_ok=:
7150 break
7152 rm -f conftest.err conftest.i conftest.$ac_ext
7154 done
7155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7156 rm -f conftest.i conftest.err conftest.$ac_ext
7157 if $ac_preproc_ok; then :
7159 else
7160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7162 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7163 See \`config.log' for more details" "$LINENO" 5; }
7166 ac_ext=c
7167 ac_cpp='$CPP $CPPFLAGS'
7168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7174 $as_echo_n "checking for ANSI C header files... " >&6; }
7175 if ${ac_cv_header_stdc+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 #include <stdlib.h>
7181 #include <stdarg.h>
7182 #include <string.h>
7183 #include <float.h>
7186 main ()
7190 return 0;
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 ac_cv_header_stdc=yes
7195 else
7196 ac_cv_header_stdc=no
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 if test $ac_cv_header_stdc = yes; then
7201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 #include <string.h>
7206 _ACEOF
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208 $EGREP "memchr" >/dev/null 2>&1; then :
7210 else
7211 ac_cv_header_stdc=no
7213 rm -f conftest*
7217 if test $ac_cv_header_stdc = yes; then
7218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <stdlib.h>
7223 _ACEOF
7224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225 $EGREP "free" >/dev/null 2>&1; then :
7227 else
7228 ac_cv_header_stdc=no
7230 rm -f conftest*
7234 if test $ac_cv_header_stdc = yes; then
7235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7236 if test "$cross_compiling" = yes; then :
7238 else
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 #include <ctype.h>
7242 #include <stdlib.h>
7243 #if ((' ' & 0x0FF) == 0x020)
7244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7246 #else
7247 # define ISLOWER(c) \
7248 (('a' <= (c) && (c) <= 'i') \
7249 || ('j' <= (c) && (c) <= 'r') \
7250 || ('s' <= (c) && (c) <= 'z'))
7251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7252 #endif
7254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7256 main ()
7258 int i;
7259 for (i = 0; i < 256; i++)
7260 if (XOR (islower (i), ISLOWER (i))
7261 || toupper (i) != TOUPPER (i))
7262 return 2;
7263 return 0;
7265 _ACEOF
7266 if ac_fn_c_try_run "$LINENO"; then :
7268 else
7269 ac_cv_header_stdc=no
7271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7272 conftest.$ac_objext conftest.beam conftest.$ac_ext
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7278 $as_echo "$ac_cv_header_stdc" >&6; }
7279 if test $ac_cv_header_stdc = yes; then
7281 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7287 inttypes.h stdint.h unistd.h
7288 do :
7289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7292 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7293 cat >>confdefs.h <<_ACEOF
7294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295 _ACEOF
7299 done
7302 for ac_header in dlfcn.h
7303 do :
7304 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7306 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7307 cat >>confdefs.h <<_ACEOF
7308 #define HAVE_DLFCN_H 1
7309 _ACEOF
7313 done
7319 # Set options
7323 enable_dlopen=no
7326 enable_win32_dll=no
7329 # Check whether --enable-shared was given.
7330 if test "${enable_shared+set}" = set; then :
7331 enableval=$enable_shared; p=${PACKAGE-default}
7332 case $enableval in
7333 yes) enable_shared=yes ;;
7334 no) enable_shared=no ;;
7336 enable_shared=no
7337 # Look at the argument we got. We use all the common list separators.
7338 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7339 for pkg in $enableval; do
7340 IFS="$lt_save_ifs"
7341 if test "X$pkg" = "X$p"; then
7342 enable_shared=yes
7344 done
7345 IFS="$lt_save_ifs"
7347 esac
7348 else
7349 enable_shared=yes
7360 # Check whether --enable-static was given.
7361 if test "${enable_static+set}" = set; then :
7362 enableval=$enable_static; p=${PACKAGE-default}
7363 case $enableval in
7364 yes) enable_static=yes ;;
7365 no) enable_static=no ;;
7367 enable_static=no
7368 # Look at the argument we got. We use all the common list separators.
7369 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7370 for pkg in $enableval; do
7371 IFS="$lt_save_ifs"
7372 if test "X$pkg" = "X$p"; then
7373 enable_static=yes
7375 done
7376 IFS="$lt_save_ifs"
7378 esac
7379 else
7380 enable_static=yes
7392 # Check whether --with-pic was given.
7393 if test "${with_pic+set}" = set; then :
7394 withval=$with_pic; lt_p=${PACKAGE-default}
7395 case $withval in
7396 yes|no) pic_mode=$withval ;;
7398 pic_mode=default
7399 # Look at the argument we got. We use all the common list separators.
7400 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7401 for lt_pkg in $withval; do
7402 IFS="$lt_save_ifs"
7403 if test "X$lt_pkg" = "X$lt_p"; then
7404 pic_mode=yes
7406 done
7407 IFS="$lt_save_ifs"
7409 esac
7410 else
7411 pic_mode=default
7415 test -z "$pic_mode" && pic_mode=default
7423 # Check whether --enable-fast-install was given.
7424 if test "${enable_fast_install+set}" = set; then :
7425 enableval=$enable_fast_install; p=${PACKAGE-default}
7426 case $enableval in
7427 yes) enable_fast_install=yes ;;
7428 no) enable_fast_install=no ;;
7430 enable_fast_install=no
7431 # Look at the argument we got. We use all the common list separators.
7432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7433 for pkg in $enableval; do
7434 IFS="$lt_save_ifs"
7435 if test "X$pkg" = "X$p"; then
7436 enable_fast_install=yes
7438 done
7439 IFS="$lt_save_ifs"
7441 esac
7442 else
7443 enable_fast_install=yes
7456 # This can be used to rebuild libtool when needed
7457 LIBTOOL_DEPS="$ltmain"
7459 # Always use our own libtool.
7460 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7491 test -z "$LN_S" && LN_S="ln -s"
7506 if test -n "${ZSH_VERSION+set}" ; then
7507 setopt NO_GLOB_SUBST
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7511 $as_echo_n "checking for objdir... " >&6; }
7512 if ${lt_cv_objdir+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 rm -f .libs 2>/dev/null
7516 mkdir .libs 2>/dev/null
7517 if test -d .libs; then
7518 lt_cv_objdir=.libs
7519 else
7520 # MS-DOS does not allow filenames that begin with a dot.
7521 lt_cv_objdir=_libs
7523 rmdir .libs 2>/dev/null
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7526 $as_echo "$lt_cv_objdir" >&6; }
7527 objdir=$lt_cv_objdir
7533 cat >>confdefs.h <<_ACEOF
7534 #define LT_OBJDIR "$lt_cv_objdir/"
7535 _ACEOF
7540 case $host_os in
7541 aix3*)
7542 # AIX sometimes has problems with the GCC collect2 program. For some
7543 # reason, if we set the COLLECT_NAMES environment variable, the problems
7544 # vanish in a puff of smoke.
7545 if test "X${COLLECT_NAMES+set}" != Xset; then
7546 COLLECT_NAMES=
7547 export COLLECT_NAMES
7550 esac
7552 # Global variables:
7553 ofile=libtool
7554 can_build_shared=yes
7556 # All known linkers require a `.a' archive for static linking (except MSVC,
7557 # which needs '.lib').
7558 libext=a
7560 with_gnu_ld="$lt_cv_prog_gnu_ld"
7562 old_CC="$CC"
7563 old_CFLAGS="$CFLAGS"
7565 # Set sane defaults for various variables
7566 test -z "$CC" && CC=cc
7567 test -z "$LTCC" && LTCC=$CC
7568 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7569 test -z "$LD" && LD=ld
7570 test -z "$ac_objext" && ac_objext=o
7572 for cc_temp in $compiler""; do
7573 case $cc_temp in
7574 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7575 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7576 \-*) ;;
7577 *) break;;
7578 esac
7579 done
7580 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7583 # Only perform the check for file, if the check method requires it
7584 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7585 case $deplibs_check_method in
7586 file_magic*)
7587 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7589 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7590 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 case $MAGIC_CMD in
7594 [\\/*] | ?:[\\/]*)
7595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7598 lt_save_MAGIC_CMD="$MAGIC_CMD"
7599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7601 for ac_dir in $ac_dummy; do
7602 IFS="$lt_save_ifs"
7603 test -z "$ac_dir" && ac_dir=.
7604 if test -f $ac_dir/${ac_tool_prefix}file; then
7605 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7606 if test -n "$file_magic_test_file"; then
7607 case $deplibs_check_method in
7608 "file_magic "*)
7609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7612 $EGREP "$file_magic_regex" > /dev/null; then
7614 else
7615 cat <<_LT_EOF 1>&2
7617 *** Warning: the command libtool uses to detect shared libraries,
7618 *** $file_magic_cmd, produces output that libtool cannot recognize.
7619 *** The result is that libtool may fail to recognize shared libraries
7620 *** as such. This will affect the creation of libtool libraries that
7621 *** depend on shared libraries, but programs linked with such libtool
7622 *** libraries will work regardless of this problem. Nevertheless, you
7623 *** may want to report the problem to your system manager and/or to
7624 *** bug-libtool@gnu.org
7626 _LT_EOF
7627 fi ;;
7628 esac
7630 break
7632 done
7633 IFS="$lt_save_ifs"
7634 MAGIC_CMD="$lt_save_MAGIC_CMD"
7636 esac
7639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7640 if test -n "$MAGIC_CMD"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7642 $as_echo "$MAGIC_CMD" >&6; }
7643 else
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7652 if test -z "$lt_cv_path_MAGIC_CMD"; then
7653 if test -n "$ac_tool_prefix"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7655 $as_echo_n "checking for file... " >&6; }
7656 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7657 $as_echo_n "(cached) " >&6
7658 else
7659 case $MAGIC_CMD in
7660 [\\/*] | ?:[\\/]*)
7661 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7664 lt_save_MAGIC_CMD="$MAGIC_CMD"
7665 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7666 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7667 for ac_dir in $ac_dummy; do
7668 IFS="$lt_save_ifs"
7669 test -z "$ac_dir" && ac_dir=.
7670 if test -f $ac_dir/file; then
7671 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7672 if test -n "$file_magic_test_file"; then
7673 case $deplibs_check_method in
7674 "file_magic "*)
7675 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7677 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7678 $EGREP "$file_magic_regex" > /dev/null; then
7680 else
7681 cat <<_LT_EOF 1>&2
7683 *** Warning: the command libtool uses to detect shared libraries,
7684 *** $file_magic_cmd, produces output that libtool cannot recognize.
7685 *** The result is that libtool may fail to recognize shared libraries
7686 *** as such. This will affect the creation of libtool libraries that
7687 *** depend on shared libraries, but programs linked with such libtool
7688 *** libraries will work regardless of this problem. Nevertheless, you
7689 *** may want to report the problem to your system manager and/or to
7690 *** bug-libtool@gnu.org
7692 _LT_EOF
7693 fi ;;
7694 esac
7696 break
7698 done
7699 IFS="$lt_save_ifs"
7700 MAGIC_CMD="$lt_save_MAGIC_CMD"
7702 esac
7705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7706 if test -n "$MAGIC_CMD"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7708 $as_echo "$MAGIC_CMD" >&6; }
7709 else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7715 else
7716 MAGIC_CMD=:
7722 esac
7724 # Use C for the default configuration in the libtool script
7726 lt_save_CC="$CC"
7727 ac_ext=c
7728 ac_cpp='$CPP $CPPFLAGS'
7729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7734 # Source file extension for C test sources.
7735 ac_ext=c
7737 # Object file extension for compiled C test sources.
7738 objext=o
7739 objext=$objext
7741 # Code to be used in simple compile tests
7742 lt_simple_compile_test_code="int some_variable = 0;"
7744 # Code to be used in simple link tests
7745 lt_simple_link_test_code='int main(){return(0);}'
7753 # If no C compiler was specified, use CC.
7754 LTCC=${LTCC-"$CC"}
7756 # If no C compiler flags were specified, use CFLAGS.
7757 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7759 # Allow CC to be a program name with arguments.
7760 compiler=$CC
7762 # Save the default compiler, since it gets overwritten when the other
7763 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7764 compiler_DEFAULT=$CC
7766 # save warnings/boilerplate of simple test code
7767 ac_outfile=conftest.$ac_objext
7768 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7769 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7770 _lt_compiler_boilerplate=`cat conftest.err`
7771 $RM conftest*
7773 ac_outfile=conftest.$ac_objext
7774 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7775 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7776 _lt_linker_boilerplate=`cat conftest.err`
7777 $RM -r conftest*
7780 ## CAVEAT EMPTOR:
7781 ## There is no encapsulation within the following macros, do not change
7782 ## the running order or otherwise move them around unless you know exactly
7783 ## what you are doing...
7784 if test -n "$compiler"; then
7786 lt_prog_compiler_no_builtin_flag=
7788 if test "$GCC" = yes; then
7789 case $cc_basename in
7790 nvcc*)
7791 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7793 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7794 esac
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7797 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7798 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 lt_cv_prog_compiler_rtti_exceptions=no
7802 ac_outfile=conftest.$ac_objext
7803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7804 lt_compiler_flag="-fno-rtti -fno-exceptions"
7805 # Insert the option either (1) after the last *FLAGS variable, or
7806 # (2) before a word containing "conftest.", or (3) at the end.
7807 # Note that $ac_compile itself does not contain backslashes and begins
7808 # with a dollar sign (not a hyphen), so the echo should work correctly.
7809 # The option is referenced via a variable to avoid confusing sed.
7810 lt_compile=`echo "$ac_compile" | $SED \
7811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7813 -e 's:$: $lt_compiler_flag:'`
7814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7815 (eval "$lt_compile" 2>conftest.err)
7816 ac_status=$?
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 if (exit $ac_status) && test -s "$ac_outfile"; then
7820 # The compiler can only warn and ignore the option if not recognized
7821 # So say no if there are warnings other than the usual output.
7822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7825 lt_cv_prog_compiler_rtti_exceptions=yes
7828 $RM conftest*
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7832 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7834 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7835 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7836 else
7847 lt_prog_compiler_wl=
7848 lt_prog_compiler_pic=
7849 lt_prog_compiler_static=
7852 if test "$GCC" = yes; then
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_static='-static'
7856 case $host_os in
7857 aix*)
7858 # All AIX code is PIC.
7859 if test "$host_cpu" = ia64; then
7860 # AIX 5 now supports IA64 processor
7861 lt_prog_compiler_static='-Bstatic'
7865 amigaos*)
7866 case $host_cpu in
7867 powerpc)
7868 # see comment about AmigaOS4 .so support
7869 lt_prog_compiler_pic='-fPIC'
7871 m68k)
7872 # FIXME: we need at least 68020 code to build shared libraries, but
7873 # adding the `-m68020' flag to GCC prevents building anything better,
7874 # like `-m68040'.
7875 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7877 esac
7880 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7881 # PIC is the default for these OSes.
7884 mingw* | cygwin* | pw32* | os2* | cegcc*)
7885 # This hack is so that the source file can tell whether it is being
7886 # built for inclusion in a dll (and should export symbols for example).
7887 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7888 # (--disable-auto-import) libraries
7889 lt_prog_compiler_pic='-DDLL_EXPORT'
7892 darwin* | rhapsody*)
7893 # PIC is the default on this platform
7894 # Common symbols not allowed in MH_DYLIB files
7895 lt_prog_compiler_pic='-fno-common'
7898 haiku*)
7899 # PIC is the default for Haiku.
7900 # The "-static" flag exists, but is broken.
7901 lt_prog_compiler_static=
7904 hpux*)
7905 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7906 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7907 # sets the default TLS model and affects inlining.
7908 case $host_cpu in
7909 hppa*64*)
7910 # +Z the default
7913 lt_prog_compiler_pic='-fPIC'
7915 esac
7918 interix[3-9]*)
7919 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7920 # Instead, we relocate shared libraries at runtime.
7923 msdosdjgpp*)
7924 # Just because we use GCC doesn't mean we suddenly get shared libraries
7925 # on systems that don't support them.
7926 lt_prog_compiler_can_build_shared=no
7927 enable_shared=no
7930 *nto* | *qnx*)
7931 # QNX uses GNU C++, but need to define -shared option too, otherwise
7932 # it will coredump.
7933 lt_prog_compiler_pic='-fPIC -shared'
7936 sysv4*MP*)
7937 if test -d /usr/nec; then
7938 lt_prog_compiler_pic=-Kconform_pic
7943 lt_prog_compiler_pic='-fPIC'
7945 esac
7947 case $cc_basename in
7948 nvcc*) # Cuda Compiler Driver 2.2
7949 lt_prog_compiler_wl='-Xlinker '
7950 if test -n "$lt_prog_compiler_pic"; then
7951 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7954 esac
7955 else
7956 # PORTME Check for flag to pass linker flags through the system compiler.
7957 case $host_os in
7958 aix*)
7959 lt_prog_compiler_wl='-Wl,'
7960 if test "$host_cpu" = ia64; then
7961 # AIX 5 now supports IA64 processor
7962 lt_prog_compiler_static='-Bstatic'
7963 else
7964 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7968 mingw* | cygwin* | pw32* | os2* | cegcc*)
7969 # This hack is so that the source file can tell whether it is being
7970 # built for inclusion in a dll (and should export symbols for example).
7971 lt_prog_compiler_pic='-DDLL_EXPORT'
7974 hpux9* | hpux10* | hpux11*)
7975 lt_prog_compiler_wl='-Wl,'
7976 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7977 # not for PA HP-UX.
7978 case $host_cpu in
7979 hppa*64*|ia64*)
7980 # +Z the default
7983 lt_prog_compiler_pic='+Z'
7985 esac
7986 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7987 lt_prog_compiler_static='${wl}-a ${wl}archive'
7990 irix5* | irix6* | nonstopux*)
7991 lt_prog_compiler_wl='-Wl,'
7992 # PIC (with -KPIC) is the default.
7993 lt_prog_compiler_static='-non_shared'
7996 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7997 case $cc_basename in
7998 # old Intel for x86_64 which still supported -KPIC.
7999 ecc*)
8000 lt_prog_compiler_wl='-Wl,'
8001 lt_prog_compiler_pic='-KPIC'
8002 lt_prog_compiler_static='-static'
8004 # icc used to be incompatible with GCC.
8005 # ICC 10 doesn't accept -KPIC any more.
8006 icc* | ifort*)
8007 lt_prog_compiler_wl='-Wl,'
8008 lt_prog_compiler_pic='-fPIC'
8009 lt_prog_compiler_static='-static'
8011 # Lahey Fortran 8.1.
8012 lf95*)
8013 lt_prog_compiler_wl='-Wl,'
8014 lt_prog_compiler_pic='--shared'
8015 lt_prog_compiler_static='--static'
8017 nagfor*)
8018 # NAG Fortran compiler
8019 lt_prog_compiler_wl='-Wl,-Wl,,'
8020 lt_prog_compiler_pic='-PIC'
8021 lt_prog_compiler_static='-Bstatic'
8023 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8024 # Portland Group compilers (*not* the Pentium gcc compiler,
8025 # which looks to be a dead project)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-fpic'
8028 lt_prog_compiler_static='-Bstatic'
8030 ccc*)
8031 lt_prog_compiler_wl='-Wl,'
8032 # All Alpha code is PIC.
8033 lt_prog_compiler_static='-non_shared'
8035 xl* | bgxl* | bgf* | mpixl*)
8036 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='-qpic'
8039 lt_prog_compiler_static='-qstaticlink'
8042 case `$CC -V 2>&1 | sed 5q` in
8043 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8044 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8045 lt_prog_compiler_pic='-KPIC'
8046 lt_prog_compiler_static='-Bstatic'
8047 lt_prog_compiler_wl=''
8049 *Sun\ F* | *Sun*Fortran*)
8050 lt_prog_compiler_pic='-KPIC'
8051 lt_prog_compiler_static='-Bstatic'
8052 lt_prog_compiler_wl='-Qoption ld '
8054 *Sun\ C*)
8055 # Sun C 5.9
8056 lt_prog_compiler_pic='-KPIC'
8057 lt_prog_compiler_static='-Bstatic'
8058 lt_prog_compiler_wl='-Wl,'
8060 *Intel*\ [CF]*Compiler*)
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-fPIC'
8063 lt_prog_compiler_static='-static'
8065 *Portland\ Group*)
8066 lt_prog_compiler_wl='-Wl,'
8067 lt_prog_compiler_pic='-fpic'
8068 lt_prog_compiler_static='-Bstatic'
8070 esac
8072 esac
8075 newsos6)
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-Bstatic'
8080 *nto* | *qnx*)
8081 # QNX uses GNU C++, but need to define -shared option too, otherwise
8082 # it will coredump.
8083 lt_prog_compiler_pic='-fPIC -shared'
8086 osf3* | osf4* | osf5*)
8087 lt_prog_compiler_wl='-Wl,'
8088 # All OSF/1 code is PIC.
8089 lt_prog_compiler_static='-non_shared'
8092 rdos*)
8093 lt_prog_compiler_static='-non_shared'
8096 solaris*)
8097 lt_prog_compiler_pic='-KPIC'
8098 lt_prog_compiler_static='-Bstatic'
8099 case $cc_basename in
8100 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8101 lt_prog_compiler_wl='-Qoption ld ';;
8103 lt_prog_compiler_wl='-Wl,';;
8104 esac
8107 sunos4*)
8108 lt_prog_compiler_wl='-Qoption ld '
8109 lt_prog_compiler_pic='-PIC'
8110 lt_prog_compiler_static='-Bstatic'
8113 sysv4 | sysv4.2uw2* | sysv4.3*)
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_pic='-KPIC'
8116 lt_prog_compiler_static='-Bstatic'
8119 sysv4*MP*)
8120 if test -d /usr/nec ;then
8121 lt_prog_compiler_pic='-Kconform_pic'
8122 lt_prog_compiler_static='-Bstatic'
8126 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8127 lt_prog_compiler_wl='-Wl,'
8128 lt_prog_compiler_pic='-KPIC'
8129 lt_prog_compiler_static='-Bstatic'
8132 unicos*)
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_can_build_shared=no
8137 uts4*)
8138 lt_prog_compiler_pic='-pic'
8139 lt_prog_compiler_static='-Bstatic'
8143 lt_prog_compiler_can_build_shared=no
8145 esac
8148 case $host_os in
8149 # For platforms which do not support PIC, -DPIC is meaningless:
8150 *djgpp*)
8151 lt_prog_compiler_pic=
8154 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8156 esac
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8159 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8160 if ${lt_cv_prog_compiler_pic+:} false; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8166 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8167 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8170 # Check to make sure the PIC flag actually works.
8172 if test -n "$lt_prog_compiler_pic"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8174 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8175 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 lt_cv_prog_compiler_pic_works=no
8179 ac_outfile=conftest.$ac_objext
8180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8181 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8182 # Insert the option either (1) after the last *FLAGS variable, or
8183 # (2) before a word containing "conftest.", or (3) at the end.
8184 # Note that $ac_compile itself does not contain backslashes and begins
8185 # with a dollar sign (not a hyphen), so the echo should work correctly.
8186 # The option is referenced via a variable to avoid confusing sed.
8187 lt_compile=`echo "$ac_compile" | $SED \
8188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8190 -e 's:$: $lt_compiler_flag:'`
8191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8192 (eval "$lt_compile" 2>conftest.err)
8193 ac_status=$?
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 if (exit $ac_status) && test -s "$ac_outfile"; then
8197 # The compiler can only warn and ignore the option if not recognized
8198 # So say no if there are warnings other than the usual output.
8199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8202 lt_cv_prog_compiler_pic_works=yes
8205 $RM conftest*
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8209 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8211 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8212 case $lt_prog_compiler_pic in
8213 "" | " "*) ;;
8214 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8215 esac
8216 else
8217 lt_prog_compiler_pic=
8218 lt_prog_compiler_can_build_shared=no
8234 # Check to make sure the static flag actually works.
8236 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8238 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8239 if ${lt_cv_prog_compiler_static_works+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 lt_cv_prog_compiler_static_works=no
8243 save_LDFLAGS="$LDFLAGS"
8244 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8245 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8246 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8247 # The linker can only warn and ignore the option if not recognized
8248 # So say no if there are warnings
8249 if test -s conftest.err; then
8250 # Append any errors to the config.log.
8251 cat conftest.err 1>&5
8252 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8254 if diff conftest.exp conftest.er2 >/dev/null; then
8255 lt_cv_prog_compiler_static_works=yes
8257 else
8258 lt_cv_prog_compiler_static_works=yes
8261 $RM -r conftest*
8262 LDFLAGS="$save_LDFLAGS"
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8266 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8268 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8270 else
8271 lt_prog_compiler_static=
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8281 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8282 if ${lt_cv_prog_compiler_c_o+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 lt_cv_prog_compiler_c_o=no
8286 $RM -r conftest 2>/dev/null
8287 mkdir conftest
8288 cd conftest
8289 mkdir out
8290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8292 lt_compiler_flag="-o out/conftest2.$ac_objext"
8293 # Insert the option either (1) after the last *FLAGS variable, or
8294 # (2) before a word containing "conftest.", or (3) at the end.
8295 # Note that $ac_compile itself does not contain backslashes and begins
8296 # with a dollar sign (not a hyphen), so the echo should work correctly.
8297 lt_compile=`echo "$ac_compile" | $SED \
8298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8300 -e 's:$: $lt_compiler_flag:'`
8301 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8302 (eval "$lt_compile" 2>out/conftest.err)
8303 ac_status=$?
8304 cat out/conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8307 then
8308 # The compiler can only warn and ignore the option if not recognized
8309 # So say no if there are warnings
8310 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8313 lt_cv_prog_compiler_c_o=yes
8316 chmod u+w . 2>&5
8317 $RM conftest*
8318 # SGI C++ compiler will create directory out/ii_files/ for
8319 # template instantiation
8320 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8321 $RM out/* && rmdir out
8322 cd ..
8323 $RM -r conftest
8324 $RM conftest*
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8328 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8336 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8337 if ${lt_cv_prog_compiler_c_o+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 lt_cv_prog_compiler_c_o=no
8341 $RM -r conftest 2>/dev/null
8342 mkdir conftest
8343 cd conftest
8344 mkdir out
8345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8347 lt_compiler_flag="-o out/conftest2.$ac_objext"
8348 # Insert the option either (1) after the last *FLAGS variable, or
8349 # (2) before a word containing "conftest.", or (3) at the end.
8350 # Note that $ac_compile itself does not contain backslashes and begins
8351 # with a dollar sign (not a hyphen), so the echo should work correctly.
8352 lt_compile=`echo "$ac_compile" | $SED \
8353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8355 -e 's:$: $lt_compiler_flag:'`
8356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8357 (eval "$lt_compile" 2>out/conftest.err)
8358 ac_status=$?
8359 cat out/conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8362 then
8363 # The compiler can only warn and ignore the option if not recognized
8364 # So say no if there are warnings
8365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8368 lt_cv_prog_compiler_c_o=yes
8371 chmod u+w . 2>&5
8372 $RM conftest*
8373 # SGI C++ compiler will create directory out/ii_files/ for
8374 # template instantiation
8375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8376 $RM out/* && rmdir out
8377 cd ..
8378 $RM -r conftest
8379 $RM conftest*
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8383 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8388 hard_links="nottested"
8389 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8390 # do not overwrite the value of need_locks provided by the user
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8392 $as_echo_n "checking if we can lock with hard links... " >&6; }
8393 hard_links=yes
8394 $RM conftest*
8395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8396 touch conftest.a
8397 ln conftest.a conftest.b 2>&5 || hard_links=no
8398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8400 $as_echo "$hard_links" >&6; }
8401 if test "$hard_links" = no; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8403 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8404 need_locks=warn
8406 else
8407 need_locks=no
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8416 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8418 runpath_var=
8419 allow_undefined_flag=
8420 always_export_symbols=no
8421 archive_cmds=
8422 archive_expsym_cmds=
8423 compiler_needs_object=no
8424 enable_shared_with_static_runtimes=no
8425 export_dynamic_flag_spec=
8426 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8427 hardcode_automatic=no
8428 hardcode_direct=no
8429 hardcode_direct_absolute=no
8430 hardcode_libdir_flag_spec=
8431 hardcode_libdir_separator=
8432 hardcode_minus_L=no
8433 hardcode_shlibpath_var=unsupported
8434 inherit_rpath=no
8435 link_all_deplibs=unknown
8436 module_cmds=
8437 module_expsym_cmds=
8438 old_archive_from_new_cmds=
8439 old_archive_from_expsyms_cmds=
8440 thread_safe_flag_spec=
8441 whole_archive_flag_spec=
8442 # include_expsyms should be a list of space-separated symbols to be *always*
8443 # included in the symbol list
8444 include_expsyms=
8445 # exclude_expsyms can be an extended regexp of symbols to exclude
8446 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8447 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8448 # as well as any symbol that contains `d'.
8449 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8450 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8451 # platforms (ab)use it in PIC code, but their linkers get confused if
8452 # the symbol is explicitly referenced. Since portable code cannot
8453 # rely on this symbol name, it's probably fine to never include it in
8454 # preloaded symbol tables.
8455 # Exclude shared library initialization/finalization symbols.
8456 extract_expsyms_cmds=
8458 case $host_os in
8459 cygwin* | mingw* | pw32* | cegcc*)
8460 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8461 # When not using gcc, we currently assume that we are using
8462 # Microsoft Visual C++.
8463 if test "$GCC" != yes; then
8464 with_gnu_ld=no
8467 interix*)
8468 # we just hope/assume this is gcc and not c89 (= MSVC++)
8469 with_gnu_ld=yes
8471 openbsd*)
8472 with_gnu_ld=no
8474 linux* | k*bsd*-gnu | gnu*)
8475 link_all_deplibs=no
8477 esac
8479 ld_shlibs=yes
8481 # On some targets, GNU ld is compatible enough with the native linker
8482 # that we're better off using the native interface for both.
8483 lt_use_gnu_ld_interface=no
8484 if test "$with_gnu_ld" = yes; then
8485 case $host_os in
8486 aix*)
8487 # The AIX port of GNU ld has always aspired to compatibility
8488 # with the native linker. However, as the warning in the GNU ld
8489 # block says, versions before 2.19.5* couldn't really create working
8490 # shared libraries, regardless of the interface used.
8491 case `$LD -v 2>&1` in
8492 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8493 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8494 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8496 lt_use_gnu_ld_interface=yes
8498 esac
8501 lt_use_gnu_ld_interface=yes
8503 esac
8506 if test "$lt_use_gnu_ld_interface" = yes; then
8507 # If archive_cmds runs LD, not CC, wlarc should be empty
8508 wlarc='${wl}'
8510 # Set some defaults for GNU ld with shared library support. These
8511 # are reset later if shared libraries are not supported. Putting them
8512 # here allows them to be overridden if necessary.
8513 runpath_var=LD_RUN_PATH
8514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8515 export_dynamic_flag_spec='${wl}--export-dynamic'
8516 # ancient GNU ld didn't support --whole-archive et. al.
8517 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8518 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8519 else
8520 whole_archive_flag_spec=
8522 supports_anon_versioning=no
8523 case `$LD -v 2>&1` in
8524 *GNU\ gold*) supports_anon_versioning=yes ;;
8525 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8526 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8527 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8528 *\ 2.11.*) ;; # other 2.11 versions
8529 *) supports_anon_versioning=yes ;;
8530 esac
8532 # See if GNU ld supports shared libraries.
8533 case $host_os in
8534 aix[3-9]*)
8535 # On AIX/PPC, the GNU linker is very broken
8536 if test "$host_cpu" != ia64; then
8537 ld_shlibs=no
8538 cat <<_LT_EOF 1>&2
8540 *** Warning: the GNU linker, at least up to release 2.19, is reported
8541 *** to be unable to reliably create shared libraries on AIX.
8542 *** Therefore, libtool is disabling shared libraries support. If you
8543 *** really care for shared libraries, you may want to install binutils
8544 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8545 *** You will then need to restart the configuration process.
8547 _LT_EOF
8551 amigaos*)
8552 case $host_cpu in
8553 powerpc)
8554 # see comment about AmigaOS4 .so support
8555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8556 archive_expsym_cmds=''
8558 m68k)
8559 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)'
8560 hardcode_libdir_flag_spec='-L$libdir'
8561 hardcode_minus_L=yes
8563 esac
8566 beos*)
8567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8568 allow_undefined_flag=unsupported
8569 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8570 # support --undefined. This deserves some investigation. FIXME
8571 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8572 else
8573 ld_shlibs=no
8577 cygwin* | mingw* | pw32* | cegcc*)
8578 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8579 # as there is no search path for DLLs.
8580 hardcode_libdir_flag_spec='-L$libdir'
8581 export_dynamic_flag_spec='${wl}--export-all-symbols'
8582 allow_undefined_flag=unsupported
8583 always_export_symbols=no
8584 enable_shared_with_static_runtimes=yes
8585 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'
8586 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8588 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8590 # If the export-symbols file already is a .def file (1st line
8591 # is EXPORTS), use it as is; otherwise, prepend...
8592 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8593 cp $export_symbols $output_objdir/$soname.def;
8594 else
8595 echo EXPORTS > $output_objdir/$soname.def;
8596 cat $export_symbols >> $output_objdir/$soname.def;
8598 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8599 else
8600 ld_shlibs=no
8604 haiku*)
8605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8606 link_all_deplibs=yes
8609 interix[3-9]*)
8610 hardcode_direct=no
8611 hardcode_shlibpath_var=no
8612 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8613 export_dynamic_flag_spec='${wl}-E'
8614 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8615 # Instead, shared libraries are loaded at an image base (0x10000000 by
8616 # default) and relocated if they conflict, which is a slow very memory
8617 # consuming and fragmenting process. To avoid this, we pick a random,
8618 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8619 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8621 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'
8624 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8625 tmp_diet=no
8626 if test "$host_os" = linux-dietlibc; then
8627 case $cc_basename in
8628 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8629 esac
8631 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8632 && test "$tmp_diet" = no
8633 then
8634 tmp_addflag=' $pic_flag'
8635 tmp_sharedflag='-shared'
8636 case $cc_basename,$host_cpu in
8637 pgcc*) # Portland Group C compiler
8638 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'
8639 tmp_addflag=' $pic_flag'
8641 pgf77* | pgf90* | pgf95* | pgfortran*)
8642 # Portland Group f77 and f90 compilers
8643 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'
8644 tmp_addflag=' $pic_flag -Mnomain' ;;
8645 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8646 tmp_addflag=' -i_dynamic' ;;
8647 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8648 tmp_addflag=' -i_dynamic -nofor_main' ;;
8649 ifc* | ifort*) # Intel Fortran compiler
8650 tmp_addflag=' -nofor_main' ;;
8651 lf95*) # Lahey Fortran 8.1
8652 whole_archive_flag_spec=
8653 tmp_sharedflag='--shared' ;;
8654 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8655 tmp_sharedflag='-qmkshrobj'
8656 tmp_addflag= ;;
8657 nvcc*) # Cuda Compiler Driver 2.2
8658 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'
8659 compiler_needs_object=yes
8661 esac
8662 case `$CC -V 2>&1 | sed 5q` in
8663 *Sun\ C*) # Sun C 5.9
8664 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'
8665 compiler_needs_object=yes
8666 tmp_sharedflag='-G' ;;
8667 *Sun\ F*) # Sun Fortran 8.3
8668 tmp_sharedflag='-G' ;;
8669 esac
8670 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672 if test "x$supports_anon_versioning" = xyes; then
8673 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8674 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8675 echo "local: *; };" >> $output_objdir/$libname.ver~
8676 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8679 case $cc_basename in
8680 xlf* | bgf* | bgxlf* | mpixlf*)
8681 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8682 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8684 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8685 if test "x$supports_anon_versioning" = xyes; then
8686 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8687 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8688 echo "local: *; };" >> $output_objdir/$libname.ver~
8689 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8692 esac
8693 else
8694 ld_shlibs=no
8698 netbsd* | netbsdelf*-gnu)
8699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8700 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8701 wlarc=
8702 else
8703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8704 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708 solaris*)
8709 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8710 ld_shlibs=no
8711 cat <<_LT_EOF 1>&2
8713 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8714 *** create shared libraries on Solaris systems. Therefore, libtool
8715 *** is disabling shared libraries support. We urge you to upgrade GNU
8716 *** binutils to release 2.9.1 or newer. Another option is to modify
8717 *** your PATH or compiler configuration so that the native linker is
8718 *** used, and then restart.
8720 _LT_EOF
8721 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8722 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8724 else
8725 ld_shlibs=no
8729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8730 case `$LD -v 2>&1` in
8731 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8732 ld_shlibs=no
8733 cat <<_LT_EOF 1>&2
8735 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8736 *** reliably create shared libraries on SCO systems. Therefore, libtool
8737 *** is disabling shared libraries support. We urge you to upgrade GNU
8738 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8739 *** your PATH or compiler configuration so that the native linker is
8740 *** used, and then restart.
8742 _LT_EOF
8745 # For security reasons, it is highly recommended that you always
8746 # use absolute paths for naming shared libraries, and exclude the
8747 # DT_RUNPATH tag from executables and libraries. But doing so
8748 # requires that you compile everything twice, which is a pain.
8749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8753 else
8754 ld_shlibs=no
8757 esac
8760 sunos4*)
8761 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762 wlarc=
8763 hardcode_direct=yes
8764 hardcode_shlibpath_var=no
8768 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8771 else
8772 ld_shlibs=no
8775 esac
8777 if test "$ld_shlibs" = no; then
8778 runpath_var=
8779 hardcode_libdir_flag_spec=
8780 export_dynamic_flag_spec=
8781 whole_archive_flag_spec=
8783 else
8784 # PORTME fill in a description of your system's linker (not GNU ld)
8785 case $host_os in
8786 aix3*)
8787 allow_undefined_flag=unsupported
8788 always_export_symbols=yes
8789 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'
8790 # Note: this linker hardcodes the directories in LIBPATH if there
8791 # are no directories specified by -L.
8792 hardcode_minus_L=yes
8793 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8794 # Neither direct hardcoding nor static linking is supported with a
8795 # broken collect2.
8796 hardcode_direct=unsupported
8800 aix[4-9]*)
8801 if test "$host_cpu" = ia64; then
8802 # On IA64, the linker does run time linking by default, so we don't
8803 # have to do anything special.
8804 aix_use_runtimelinking=no
8805 exp_sym_flag='-Bexport'
8806 no_entry_flag=""
8807 else
8808 # If we're using GNU nm, then we don't want the "-C" option.
8809 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8810 # Also, AIX nm treats weak defined symbols like other global
8811 # defined symbols, whereas GNU nm marks them as "W".
8812 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8813 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8814 else
8815 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8817 aix_use_runtimelinking=no
8819 # Test if we are trying to use run time linking or normal
8820 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8821 # need to do runtime linking.
8822 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8823 for ld_flag in $LDFLAGS; do
8824 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8825 aix_use_runtimelinking=yes
8826 break
8828 done
8830 esac
8832 exp_sym_flag='-bexport'
8833 no_entry_flag='-bnoentry'
8836 # When large executables or shared objects are built, AIX ld can
8837 # have problems creating the table of contents. If linking a library
8838 # or program results in "error TOC overflow" add -mminimal-toc to
8839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8842 archive_cmds=''
8843 hardcode_direct=yes
8844 hardcode_direct_absolute=yes
8845 hardcode_libdir_separator=':'
8846 link_all_deplibs=yes
8847 file_list_spec='${wl}-f,'
8849 if test "$GCC" = yes; then
8850 case $host_os in aix4.[012]|aix4.[012].*)
8851 # We only want to do this on AIX 4.2 and lower, the check
8852 # below for broken collect2 doesn't work under 4.3+
8853 collect2name=`${CC} -print-prog-name=collect2`
8854 if test -f "$collect2name" &&
8855 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8856 then
8857 # We have reworked collect2
8859 else
8860 # We have old collect2
8861 hardcode_direct=unsupported
8862 # It fails to find uninstalled libraries when the uninstalled
8863 # path is not listed in the libpath. Setting hardcode_minus_L
8864 # to unsupported forces relinking
8865 hardcode_minus_L=yes
8866 hardcode_libdir_flag_spec='-L$libdir'
8867 hardcode_libdir_separator=
8870 esac
8871 shared_flag='-shared'
8872 if test "$aix_use_runtimelinking" = yes; then
8873 shared_flag="$shared_flag "'${wl}-G'
8875 link_all_deplibs=no
8876 else
8877 # not using gcc
8878 if test "$host_cpu" = ia64; then
8879 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8880 # chokes on -Wl,-G. The following line is correct:
8881 shared_flag='-G'
8882 else
8883 if test "$aix_use_runtimelinking" = yes; then
8884 shared_flag='${wl}-G'
8885 else
8886 shared_flag='${wl}-bM:SRE'
8891 export_dynamic_flag_spec='${wl}-bexpall'
8892 # It seems that -bexpall does not export symbols beginning with
8893 # underscore (_), so it is better to generate a list of symbols to export.
8894 always_export_symbols=yes
8895 if test "$aix_use_runtimelinking" = yes; then
8896 # Warning - without using the other runtime loading flags (-brtl),
8897 # -berok will link without error, but may produce a broken library.
8898 allow_undefined_flag='-berok'
8899 # Determine the default libpath from the value encoded in an
8900 # empty executable.
8901 if test "${lt_cv_aix_libpath+set}" = set; then
8902 aix_libpath=$lt_cv_aix_libpath
8903 else
8904 if ${lt_cv_aix_libpath_+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8911 main ()
8915 return 0;
8917 _ACEOF
8918 if ac_fn_c_try_link "$LINENO"; then :
8920 lt_aix_libpath_sed='
8921 /Import File Strings/,/^$/ {
8922 /^0/ {
8923 s/^0 *\([^ ]*\) *$/\1/
8927 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8928 # Check for a 64-bit object if we didn't find anything.
8929 if test -z "$lt_cv_aix_libpath_"; then
8930 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8933 rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8935 if test -z "$lt_cv_aix_libpath_"; then
8936 lt_cv_aix_libpath_="/usr/lib:/lib"
8941 aix_libpath=$lt_cv_aix_libpath_
8944 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8945 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8946 else
8947 if test "$host_cpu" = ia64; then
8948 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8949 allow_undefined_flag="-z nodefs"
8950 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"
8951 else
8952 # Determine the default libpath from the value encoded in an
8953 # empty executable.
8954 if test "${lt_cv_aix_libpath+set}" = set; then
8955 aix_libpath=$lt_cv_aix_libpath
8956 else
8957 if ${lt_cv_aix_libpath_+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8964 main ()
8968 return 0;
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8973 lt_aix_libpath_sed='
8974 /Import File Strings/,/^$/ {
8975 /^0/ {
8976 s/^0 *\([^ ]*\) *$/\1/
8980 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8981 # Check for a 64-bit object if we didn't find anything.
8982 if test -z "$lt_cv_aix_libpath_"; then
8983 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8986 rm -f core conftest.err conftest.$ac_objext \
8987 conftest$ac_exeext conftest.$ac_ext
8988 if test -z "$lt_cv_aix_libpath_"; then
8989 lt_cv_aix_libpath_="/usr/lib:/lib"
8994 aix_libpath=$lt_cv_aix_libpath_
8997 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8998 # Warning - without using the other run time loading flags,
8999 # -berok will link without error, but may produce a broken library.
9000 no_undefined_flag=' ${wl}-bernotok'
9001 allow_undefined_flag=' ${wl}-berok'
9002 if test "$with_gnu_ld" = yes; then
9003 # We only use this code for GNU lds that support --whole-archive.
9004 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9005 else
9006 # Exported symbols can be pulled into shared objects from archives
9007 whole_archive_flag_spec='$convenience'
9009 archive_cmds_need_lc=yes
9010 # This is similar to how AIX traditionally builds its shared libraries.
9011 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9016 amigaos*)
9017 case $host_cpu in
9018 powerpc)
9019 # see comment about AmigaOS4 .so support
9020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9021 archive_expsym_cmds=''
9023 m68k)
9024 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)'
9025 hardcode_libdir_flag_spec='-L$libdir'
9026 hardcode_minus_L=yes
9028 esac
9031 bsdi[45]*)
9032 export_dynamic_flag_spec=-rdynamic
9035 cygwin* | mingw* | pw32* | cegcc*)
9036 # When not using gcc, we currently assume that we are using
9037 # Microsoft Visual C++.
9038 # hardcode_libdir_flag_spec is actually meaningless, as there is
9039 # no search path for DLLs.
9040 case $cc_basename in
9041 cl*)
9042 # Native MSVC
9043 hardcode_libdir_flag_spec=' '
9044 allow_undefined_flag=unsupported
9045 always_export_symbols=yes
9046 file_list_spec='@'
9047 # Tell ltmain to make .lib files, not .a files.
9048 libext=lib
9049 # Tell ltmain to make .dll files, not .so files.
9050 shrext_cmds=".dll"
9051 # FIXME: Setting linknames here is a bad hack.
9052 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9053 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9054 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9055 else
9056 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9058 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9059 linknames='
9060 # The linker will not automatically build a static lib if we build a DLL.
9061 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9062 enable_shared_with_static_runtimes=yes
9063 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9065 # Don't use ranlib
9066 old_postinstall_cmds='chmod 644 $oldlib'
9067 postlink_cmds='lt_outputfile="@OUTPUT@"~
9068 lt_tool_outputfile="@TOOL_OUTPUT@"~
9069 case $lt_outputfile in
9070 *.exe|*.EXE) ;;
9072 lt_outputfile="$lt_outputfile.exe"
9073 lt_tool_outputfile="$lt_tool_outputfile.exe"
9075 esac~
9076 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9077 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9078 $RM "$lt_outputfile.manifest";
9082 # Assume MSVC wrapper
9083 hardcode_libdir_flag_spec=' '
9084 allow_undefined_flag=unsupported
9085 # Tell ltmain to make .lib files, not .a files.
9086 libext=lib
9087 # Tell ltmain to make .dll files, not .so files.
9088 shrext_cmds=".dll"
9089 # FIXME: Setting linknames here is a bad hack.
9090 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9091 # The linker will automatically build a .lib file if we build a DLL.
9092 old_archive_from_new_cmds='true'
9093 # FIXME: Should let the user specify the lib program.
9094 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9095 enable_shared_with_static_runtimes=yes
9097 esac
9100 darwin* | rhapsody*)
9103 archive_cmds_need_lc=no
9104 hardcode_direct=no
9105 hardcode_automatic=yes
9106 hardcode_shlibpath_var=unsupported
9107 if test "$lt_cv_ld_force_load" = "yes"; then
9108 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\"`'
9110 else
9111 whole_archive_flag_spec=''
9113 link_all_deplibs=yes
9114 allow_undefined_flag="$_lt_dar_allow_undefined"
9115 case $cc_basename in
9116 ifort*) _lt_dar_can_shared=yes ;;
9117 *) _lt_dar_can_shared=$GCC ;;
9118 esac
9119 if test "$_lt_dar_can_shared" = "yes"; then
9120 output_verbose_link_cmd=func_echo_all
9121 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9122 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9123 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}"
9124 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}"
9126 else
9127 ld_shlibs=no
9132 dgux*)
9133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 hardcode_shlibpath_var=no
9138 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9139 # support. Future versions do this automatically, but an explicit c++rt0.o
9140 # does not break anything, and helps significantly (at the cost of a little
9141 # extra space).
9142 freebsd2.2*)
9143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9144 hardcode_libdir_flag_spec='-R$libdir'
9145 hardcode_direct=yes
9146 hardcode_shlibpath_var=no
9149 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9150 freebsd2.*)
9151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_direct=yes
9153 hardcode_minus_L=yes
9154 hardcode_shlibpath_var=no
9157 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9158 freebsd* | dragonfly*)
9159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9160 hardcode_libdir_flag_spec='-R$libdir'
9161 hardcode_direct=yes
9162 hardcode_shlibpath_var=no
9165 hpux9*)
9166 if test "$GCC" = yes; then
9167 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9168 else
9169 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9172 hardcode_libdir_separator=:
9173 hardcode_direct=yes
9175 # hardcode_minus_L: Not really in the search PATH,
9176 # but as the default location of the library.
9177 hardcode_minus_L=yes
9178 export_dynamic_flag_spec='${wl}-E'
9181 hpux10*)
9182 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9183 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9184 else
9185 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9187 if test "$with_gnu_ld" = no; then
9188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9189 hardcode_libdir_separator=:
9190 hardcode_direct=yes
9191 hardcode_direct_absolute=yes
9192 export_dynamic_flag_spec='${wl}-E'
9193 # hardcode_minus_L: Not really in the search PATH,
9194 # but as the default location of the library.
9195 hardcode_minus_L=yes
9199 hpux11*)
9200 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9201 case $host_cpu in
9202 hppa*64*)
9203 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9205 ia64*)
9206 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9209 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9211 esac
9212 else
9213 case $host_cpu in
9214 hppa*64*)
9215 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9217 ia64*)
9218 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9222 # Older versions of the 11.00 compiler do not understand -b yet
9223 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9225 $as_echo_n "checking if $CC understands -b... " >&6; }
9226 if ${lt_cv_prog_compiler__b+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 lt_cv_prog_compiler__b=no
9230 save_LDFLAGS="$LDFLAGS"
9231 LDFLAGS="$LDFLAGS -b"
9232 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9234 # The linker can only warn and ignore the option if not recognized
9235 # So say no if there are warnings
9236 if test -s conftest.err; then
9237 # Append any errors to the config.log.
9238 cat conftest.err 1>&5
9239 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9241 if diff conftest.exp conftest.er2 >/dev/null; then
9242 lt_cv_prog_compiler__b=yes
9244 else
9245 lt_cv_prog_compiler__b=yes
9248 $RM -r conftest*
9249 LDFLAGS="$save_LDFLAGS"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9253 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9255 if test x"$lt_cv_prog_compiler__b" = xyes; then
9256 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9257 else
9258 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9262 esac
9264 if test "$with_gnu_ld" = no; then
9265 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9266 hardcode_libdir_separator=:
9268 case $host_cpu in
9269 hppa*64*|ia64*)
9270 hardcode_direct=no
9271 hardcode_shlibpath_var=no
9274 hardcode_direct=yes
9275 hardcode_direct_absolute=yes
9276 export_dynamic_flag_spec='${wl}-E'
9278 # hardcode_minus_L: Not really in the search PATH,
9279 # but as the default location of the library.
9280 hardcode_minus_L=yes
9282 esac
9286 irix5* | irix6* | nonstopux*)
9287 if test "$GCC" = yes; then
9288 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'
9289 # Try to use the -exported_symbol ld option, if it does not
9290 # work, assume that -exports_file does not work either and
9291 # implicitly export all symbols.
9292 # This should be the same for all languages, so no per-tag cache variable.
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9294 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9295 if ${lt_cv_irix_exported_symbol+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 save_LDFLAGS="$LDFLAGS"
9299 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302 int foo (void) { return 0; }
9303 _ACEOF
9304 if ac_fn_c_try_link "$LINENO"; then :
9305 lt_cv_irix_exported_symbol=yes
9306 else
9307 lt_cv_irix_exported_symbol=no
9309 rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LDFLAGS="$save_LDFLAGS"
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9314 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9315 if test "$lt_cv_irix_exported_symbol" = yes; then
9316 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'
9318 else
9319 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'
9320 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'
9322 archive_cmds_need_lc='no'
9323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324 hardcode_libdir_separator=:
9325 inherit_rpath=yes
9326 link_all_deplibs=yes
9329 netbsd* | netbsdelf*-gnu)
9330 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9332 else
9333 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9335 hardcode_libdir_flag_spec='-R$libdir'
9336 hardcode_direct=yes
9337 hardcode_shlibpath_var=no
9340 newsos6)
9341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_direct=yes
9343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9344 hardcode_libdir_separator=:
9345 hardcode_shlibpath_var=no
9348 *nto* | *qnx*)
9351 openbsd*)
9352 if test -f /usr/libexec/ld.so; then
9353 hardcode_direct=yes
9354 hardcode_shlibpath_var=no
9355 hardcode_direct_absolute=yes
9356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9358 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9359 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9360 export_dynamic_flag_spec='${wl}-E'
9361 else
9362 case $host_os in
9363 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9365 hardcode_libdir_flag_spec='-R$libdir'
9368 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9369 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9371 esac
9373 else
9374 ld_shlibs=no
9378 os2*)
9379 hardcode_libdir_flag_spec='-L$libdir'
9380 hardcode_minus_L=yes
9381 allow_undefined_flag=unsupported
9382 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9383 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9386 osf3*)
9387 if test "$GCC" = yes; then
9388 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9389 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'
9390 else
9391 allow_undefined_flag=' -expect_unresolved \*'
9392 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'
9394 archive_cmds_need_lc='no'
9395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9396 hardcode_libdir_separator=:
9399 osf4* | osf5*) # as osf3* with the addition of -msym flag
9400 if test "$GCC" = yes; then
9401 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9402 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'
9403 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9404 else
9405 allow_undefined_flag=' -expect_unresolved \*'
9406 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'
9407 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~
9408 $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'
9410 # Both c and cxx compiler support -rpath directly
9411 hardcode_libdir_flag_spec='-rpath $libdir'
9413 archive_cmds_need_lc='no'
9414 hardcode_libdir_separator=:
9417 solaris*)
9418 no_undefined_flag=' -z defs'
9419 if test "$GCC" = yes; then
9420 wlarc='${wl}'
9421 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9423 $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'
9424 else
9425 case `$CC -V 2>&1` in
9426 *"Compilers 5.0"*)
9427 wlarc=''
9428 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9430 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9433 wlarc='${wl}'
9434 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9436 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9438 esac
9440 hardcode_libdir_flag_spec='-R$libdir'
9441 hardcode_shlibpath_var=no
9442 case $host_os in
9443 solaris2.[0-5] | solaris2.[0-5].*) ;;
9445 # The compiler driver will combine and reorder linker options,
9446 # but understands `-z linker_flag'. GCC discards it without `$wl',
9447 # but is careful enough not to reorder.
9448 # Supported since Solaris 2.6 (maybe 2.5.1?)
9449 if test "$GCC" = yes; then
9450 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9451 else
9452 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9455 esac
9456 link_all_deplibs=yes
9459 sunos4*)
9460 if test "x$host_vendor" = xsequent; then
9461 # Use $CC to link under sequent, because it throws in some extra .o
9462 # files that make .init and .fini sections work.
9463 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9464 else
9465 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_libdir_flag_spec='-L$libdir'
9468 hardcode_direct=yes
9469 hardcode_minus_L=yes
9470 hardcode_shlibpath_var=no
9473 sysv4)
9474 case $host_vendor in
9475 sni)
9476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9477 hardcode_direct=yes # is this really true???
9479 siemens)
9480 ## LD is ld it makes a PLAMLIB
9481 ## CC just makes a GrossModule.
9482 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9483 reload_cmds='$CC -r -o $output$reload_objs'
9484 hardcode_direct=no
9486 motorola)
9487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9488 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9490 esac
9491 runpath_var='LD_RUN_PATH'
9492 hardcode_shlibpath_var=no
9495 sysv4.3*)
9496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497 hardcode_shlibpath_var=no
9498 export_dynamic_flag_spec='-Bexport'
9501 sysv4*MP*)
9502 if test -d /usr/nec; then
9503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_shlibpath_var=no
9505 runpath_var=LD_RUN_PATH
9506 hardcode_runpath_var=yes
9507 ld_shlibs=yes
9511 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9512 no_undefined_flag='${wl}-z,text'
9513 archive_cmds_need_lc=no
9514 hardcode_shlibpath_var=no
9515 runpath_var='LD_RUN_PATH'
9517 if test "$GCC" = yes; then
9518 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520 else
9521 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 sysv5* | sco3.2v5* | sco5v6*)
9527 # Note: We can NOT use -z defs as we might desire, because we do not
9528 # link with -lc, and that would cause any symbols used from libc to
9529 # always be unresolved, which means just about no library would
9530 # ever link correctly. If we're not using GNU ld we use -z text
9531 # though, which does catch some bad symbols but isn't as heavy-handed
9532 # as -z defs.
9533 no_undefined_flag='${wl}-z,text'
9534 allow_undefined_flag='${wl}-z,nodefs'
9535 archive_cmds_need_lc=no
9536 hardcode_shlibpath_var=no
9537 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9538 hardcode_libdir_separator=':'
9539 link_all_deplibs=yes
9540 export_dynamic_flag_spec='${wl}-Bexport'
9541 runpath_var='LD_RUN_PATH'
9543 if test "$GCC" = yes; then
9544 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9546 else
9547 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9548 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9552 uts4*)
9553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554 hardcode_libdir_flag_spec='-L$libdir'
9555 hardcode_shlibpath_var=no
9559 ld_shlibs=no
9561 esac
9563 if test x$host_vendor = xsni; then
9564 case $host in
9565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9566 export_dynamic_flag_spec='${wl}-Blargedynsym'
9568 esac
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9573 $as_echo "$ld_shlibs" >&6; }
9574 test "$ld_shlibs" = no && can_build_shared=no
9576 with_gnu_ld=$with_gnu_ld
9593 # Do we need to explicitly link libc?
9595 case "x$archive_cmds_need_lc" in
9596 x|xyes)
9597 # Assume -lc should be added
9598 archive_cmds_need_lc=yes
9600 if test "$enable_shared" = yes && test "$GCC" = yes; then
9601 case $archive_cmds in
9602 *'~'*)
9603 # FIXME: we may have to deal with multi-command sequences.
9605 '$CC '*)
9606 # Test whether the compiler implicitly links with -lc since on some
9607 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9608 # to ld, don't add -lc before -lgcc.
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9610 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9611 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 $RM conftest*
9615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9618 (eval $ac_compile) 2>&5
9619 ac_status=$?
9620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9621 test $ac_status = 0; } 2>conftest.err; then
9622 soname=conftest
9623 lib=conftest
9624 libobjs=conftest.$ac_objext
9625 deplibs=
9626 wl=$lt_prog_compiler_wl
9627 pic_flag=$lt_prog_compiler_pic
9628 compiler_flags=-v
9629 linker_flags=-v
9630 verstring=
9631 output_objdir=.
9632 libname=conftest
9633 lt_save_allow_undefined_flag=$allow_undefined_flag
9634 allow_undefined_flag=
9635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9636 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9637 ac_status=$?
9638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9639 test $ac_status = 0; }
9640 then
9641 lt_cv_archive_cmds_need_lc=no
9642 else
9643 lt_cv_archive_cmds_need_lc=yes
9645 allow_undefined_flag=$lt_save_allow_undefined_flag
9646 else
9647 cat conftest.err 1>&5
9649 $RM conftest*
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9653 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9654 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9656 esac
9659 esac
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9813 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9815 if test "$GCC" = yes; then
9816 case $host_os in
9817 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9818 *) lt_awk_arg="/^libraries:/" ;;
9819 esac
9820 case $host_os in
9821 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9822 *) lt_sed_strip_eq="s,=/,/,g" ;;
9823 esac
9824 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9825 case $lt_search_path_spec in
9826 *\;*)
9827 # if the path contains ";" then we assume it to be the separator
9828 # otherwise default to the standard path separator (i.e. ":") - it is
9829 # assumed that no part of a normal pathname contains ";" but that should
9830 # okay in the real world where ";" in dirpaths is itself problematic.
9831 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9834 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9836 esac
9837 # Ok, now we have the path, separated by spaces, we can step through it
9838 # and add multilib dir if necessary.
9839 lt_tmp_lt_search_path_spec=
9840 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9841 for lt_sys_path in $lt_search_path_spec; do
9842 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9843 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9844 else
9845 test -d "$lt_sys_path" && \
9846 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9848 done
9849 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9850 BEGIN {RS=" "; FS="/|\n";} {
9851 lt_foo="";
9852 lt_count=0;
9853 for (lt_i = NF; lt_i > 0; lt_i--) {
9854 if ($lt_i != "" && $lt_i != ".") {
9855 if ($lt_i == "..") {
9856 lt_count++;
9857 } else {
9858 if (lt_count == 0) {
9859 lt_foo="/" $lt_i lt_foo;
9860 } else {
9861 lt_count--;
9866 if (lt_foo != "") { lt_freq[lt_foo]++; }
9867 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9869 # AWK program above erroneously prepends '/' to C:/dos/paths
9870 # for these hosts.
9871 case $host_os in
9872 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9873 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9874 esac
9875 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9876 else
9877 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9879 library_names_spec=
9880 libname_spec='lib$name'
9881 soname_spec=
9882 shrext_cmds=".so"
9883 postinstall_cmds=
9884 postuninstall_cmds=
9885 finish_cmds=
9886 finish_eval=
9887 shlibpath_var=
9888 shlibpath_overrides_runpath=unknown
9889 version_type=none
9890 dynamic_linker="$host_os ld.so"
9891 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9892 need_lib_prefix=unknown
9893 hardcode_into_libs=no
9895 # when you set need_version to no, make sure it does not cause -set_version
9896 # flags to be left without arguments
9897 need_version=unknown
9899 case $host_os in
9900 aix3*)
9901 version_type=linux # correct to gnu/linux during the next big refactor
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9903 shlibpath_var=LIBPATH
9905 # AIX 3 has no versioning support, so we append a major version to the name.
9906 soname_spec='${libname}${release}${shared_ext}$major'
9909 aix[4-9]*)
9910 version_type=linux # correct to gnu/linux during the next big refactor
9911 need_lib_prefix=no
9912 need_version=no
9913 hardcode_into_libs=yes
9914 if test "$host_cpu" = ia64; then
9915 # AIX 5 supports IA64
9916 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9917 shlibpath_var=LD_LIBRARY_PATH
9918 else
9919 # With GCC up to 2.95.x, collect2 would create an import file
9920 # for dependence libraries. The import file would start with
9921 # the line `#! .'. This would cause the generated library to
9922 # depend on `.', always an invalid library. This was fixed in
9923 # development snapshots of GCC prior to 3.0.
9924 case $host_os in
9925 aix4 | aix4.[01] | aix4.[01].*)
9926 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9927 echo ' yes '
9928 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9930 else
9931 can_build_shared=no
9934 esac
9935 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9936 # soname into executable. Probably we can add versioning support to
9937 # collect2, so additional links can be useful in future.
9938 if test "$aix_use_runtimelinking" = yes; then
9939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9940 # instead of lib<name>.a to let people know that these are not
9941 # typical AIX shared libraries.
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943 else
9944 # We preserve .a as extension for shared libraries through AIX4.2
9945 # and later when we are not doing run time linking.
9946 library_names_spec='${libname}${release}.a $libname.a'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9949 shlibpath_var=LIBPATH
9953 amigaos*)
9954 case $host_cpu in
9955 powerpc)
9956 # Since July 2007 AmigaOS4 officially supports .so libraries.
9957 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960 m68k)
9961 library_names_spec='$libname.ixlibrary $libname.a'
9962 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9963 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9965 esac
9968 beos*)
9969 library_names_spec='${libname}${shared_ext}'
9970 dynamic_linker="$host_os ld.so"
9971 shlibpath_var=LIBRARY_PATH
9974 bsdi[45]*)
9975 version_type=linux # correct to gnu/linux during the next big refactor
9976 need_version=no
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9982 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9983 # the default ld.so.conf also contains /usr/contrib/lib and
9984 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9985 # libtool to hard-code these into programs
9988 cygwin* | mingw* | pw32* | cegcc*)
9989 version_type=windows
9990 shrext_cmds=".dll"
9991 need_version=no
9992 need_lib_prefix=no
9994 case $GCC,$cc_basename in
9995 yes,*)
9996 # gcc
9997 library_names_spec='$libname.dll.a'
9998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9999 postinstall_cmds='base_file=`basename \${file}`~
10000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10001 dldir=$destdir/`dirname \$dlpath`~
10002 test -d \$dldir || mkdir -p \$dldir~
10003 $install_prog $dir/$dlname \$dldir/$dlname~
10004 chmod a+x \$dldir/$dlname~
10005 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10006 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10008 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10009 dlpath=$dir/\$dldll~
10010 $RM \$dlpath'
10011 shlibpath_overrides_runpath=yes
10013 case $host_os in
10014 cygwin*)
10015 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10016 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10020 mingw* | cegcc*)
10021 # MinGW DLLs use traditional 'lib' prefix
10022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024 pw32*)
10025 # pw32 DLLs use 'pw' prefix rather than 'lib'
10026 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10028 esac
10029 dynamic_linker='Win32 ld.exe'
10032 *,cl*)
10033 # Native MSVC
10034 libname_spec='$name'
10035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10036 library_names_spec='${libname}.dll.lib'
10038 case $build_os in
10039 mingw*)
10040 sys_lib_search_path_spec=
10041 lt_save_ifs=$IFS
10042 IFS=';'
10043 for lt_path in $LIB
10045 IFS=$lt_save_ifs
10046 # Let DOS variable expansion print the short 8.3 style file name.
10047 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10048 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10049 done
10050 IFS=$lt_save_ifs
10051 # Convert to MSYS style.
10052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10054 cygwin*)
10055 # Convert to unix form, then to dos form, then back to unix form
10056 # but this time dos style (no spaces!) so that the unix form looks
10057 # like /cygdrive/c/PROGRA~1:/cygdr...
10058 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10059 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10060 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10063 sys_lib_search_path_spec="$LIB"
10064 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10065 # It is most probably a Windows format PATH.
10066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10067 else
10068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10070 # FIXME: find the short name or the path components, as spaces are
10071 # common. (e.g. "Program Files" -> "PROGRA~1")
10073 esac
10075 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10076 postinstall_cmds='base_file=`basename \${file}`~
10077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10078 dldir=$destdir/`dirname \$dlpath`~
10079 test -d \$dldir || mkdir -p \$dldir~
10080 $install_prog $dir/$dlname \$dldir/$dlname'
10081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10082 dlpath=$dir/\$dldll~
10083 $RM \$dlpath'
10084 shlibpath_overrides_runpath=yes
10085 dynamic_linker='Win32 link.exe'
10089 # Assume MSVC wrapper
10090 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10091 dynamic_linker='Win32 ld.exe'
10093 esac
10094 # FIXME: first we should search . and the directory the executable is in
10095 shlibpath_var=PATH
10098 darwin* | rhapsody*)
10099 dynamic_linker="$host_os dyld"
10100 version_type=darwin
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10104 soname_spec='${libname}${release}${major}$shared_ext'
10105 shlibpath_overrides_runpath=yes
10106 shlibpath_var=DYLD_LIBRARY_PATH
10107 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10109 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10113 dgux*)
10114 version_type=linux # correct to gnu/linux during the next big refactor
10115 need_lib_prefix=no
10116 need_version=no
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 shlibpath_var=LD_LIBRARY_PATH
10122 freebsd* | dragonfly*)
10123 # DragonFly does not have aout. When/if they implement a new
10124 # versioning mechanism, adjust this.
10125 if test -x /usr/bin/objformat; then
10126 objformat=`/usr/bin/objformat`
10127 else
10128 case $host_os in
10129 freebsd[23].*) objformat=aout ;;
10130 *) objformat=elf ;;
10131 esac
10133 version_type=freebsd-$objformat
10134 case $version_type in
10135 freebsd-elf*)
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10137 need_version=no
10138 need_lib_prefix=no
10140 freebsd-*)
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10142 need_version=yes
10144 esac
10145 shlibpath_var=LD_LIBRARY_PATH
10146 case $host_os in
10147 freebsd2.*)
10148 shlibpath_overrides_runpath=yes
10150 freebsd3.[01]* | freebsdelf3.[01]*)
10151 shlibpath_overrides_runpath=yes
10152 hardcode_into_libs=yes
10154 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10155 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10156 shlibpath_overrides_runpath=no
10157 hardcode_into_libs=yes
10159 *) # from 4.6 on, and DragonFly
10160 shlibpath_overrides_runpath=yes
10161 hardcode_into_libs=yes
10163 esac
10166 haiku*)
10167 version_type=linux # correct to gnu/linux during the next big refactor
10168 need_lib_prefix=no
10169 need_version=no
10170 dynamic_linker="$host_os runtime_loader"
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 shlibpath_var=LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10175 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10176 hardcode_into_libs=yes
10179 hpux9* | hpux10* | hpux11*)
10180 # Give a soname corresponding to the major version so that dld.sl refuses to
10181 # link against other versions.
10182 version_type=sunos
10183 need_lib_prefix=no
10184 need_version=no
10185 case $host_cpu in
10186 ia64*)
10187 shrext_cmds='.so'
10188 hardcode_into_libs=yes
10189 dynamic_linker="$host_os dld.so"
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 if test "X$HPUX_IA64_MODE" = X32; then
10195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10196 else
10197 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10201 hppa*64*)
10202 shrext_cmds='.sl'
10203 hardcode_into_libs=yes
10204 dynamic_linker="$host_os dld.sl"
10205 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10213 shrext_cmds='.sl'
10214 dynamic_linker="$host_os dld.sl"
10215 shlibpath_var=SHLIB_PATH
10216 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10220 esac
10221 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10222 postinstall_cmds='chmod 555 $lib'
10223 # or fails outright, so override atomically:
10224 install_override_mode=555
10227 interix[3-9]*)
10228 version_type=linux # correct to gnu/linux during the next big refactor
10229 need_lib_prefix=no
10230 need_version=no
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath=no
10236 hardcode_into_libs=yes
10239 irix5* | irix6* | nonstopux*)
10240 case $host_os in
10241 nonstopux*) version_type=nonstopux ;;
10243 if test "$lt_cv_prog_gnu_ld" = yes; then
10244 version_type=linux # correct to gnu/linux during the next big refactor
10245 else
10246 version_type=irix
10247 fi ;;
10248 esac
10249 need_lib_prefix=no
10250 need_version=no
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10253 case $host_os in
10254 irix5* | nonstopux*)
10255 libsuff= shlibsuff=
10258 case $LD in # libtool.m4 will add one of these switches to LD
10259 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10260 libsuff= shlibsuff= libmagic=32-bit;;
10261 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10262 libsuff=32 shlibsuff=N32 libmagic=N32;;
10263 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10264 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10265 *) libsuff= shlibsuff= libmagic=never-match;;
10266 esac
10268 esac
10269 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10270 shlibpath_overrides_runpath=no
10271 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10272 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10273 hardcode_into_libs=yes
10276 # No shared lib support for Linux oldld, aout, or coff.
10277 linux*oldld* | linux*aout* | linux*coff*)
10278 dynamic_linker=no
10281 # This must be glibc/ELF.
10282 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10283 version_type=linux # correct to gnu/linux during the next big refactor
10284 need_lib_prefix=no
10285 need_version=no
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=no
10292 # Some binutils ld are patched to set DT_RUNPATH
10293 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 lt_cv_shlibpath_overrides_runpath=no
10297 save_LDFLAGS=$LDFLAGS
10298 save_libdir=$libdir
10299 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10300 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10305 main ()
10309 return 0;
10311 _ACEOF
10312 if ac_fn_c_try_link "$LINENO"; then :
10313 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10314 lt_cv_shlibpath_overrides_runpath=yes
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LDFLAGS=$save_LDFLAGS
10320 libdir=$save_libdir
10324 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10326 # This implies no fast_install, which is unacceptable.
10327 # Some rework will be needed to allow for fast_install
10328 # before this can be enabled.
10329 hardcode_into_libs=yes
10331 # Append ld.so.conf contents to the search path
10332 if test -f /etc/ld.so.conf; then
10333 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' ' '`
10334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10337 # We used to test for /lib/ld.so.1 and disable shared libraries on
10338 # powerpc, because MkLinux only supported shared libraries with the
10339 # GNU dynamic linker. Since this was broken with cross compilers,
10340 # most powerpc-linux boxes support dynamic linking these days and
10341 # people can always --disable-shared, the test was removed, and we
10342 # assume the GNU/Linux dynamic linker is in use.
10343 dynamic_linker='GNU/Linux ld.so'
10346 netbsdelf*-gnu)
10347 version_type=linux
10348 need_lib_prefix=no
10349 need_version=no
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 shlibpath_overrides_runpath=no
10354 hardcode_into_libs=yes
10355 dynamic_linker='NetBSD ld.elf_so'
10358 netbsd*)
10359 version_type=sunos
10360 need_lib_prefix=no
10361 need_version=no
10362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10365 dynamic_linker='NetBSD (a.out) ld.so'
10366 else
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 dynamic_linker='NetBSD ld.elf_so'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=yes
10373 hardcode_into_libs=yes
10376 newsos6)
10377 version_type=linux # correct to gnu/linux during the next big refactor
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=yes
10383 *nto* | *qnx*)
10384 version_type=qnx
10385 need_lib_prefix=no
10386 need_version=no
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=no
10391 hardcode_into_libs=yes
10392 dynamic_linker='ldqnx.so'
10395 openbsd*)
10396 version_type=sunos
10397 sys_lib_dlsearch_path_spec="/usr/lib"
10398 need_lib_prefix=no
10399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10400 case $host_os in
10401 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10402 *) need_version=no ;;
10403 esac
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10408 case $host_os in
10409 openbsd2.[89] | openbsd2.[89].*)
10410 shlibpath_overrides_runpath=no
10413 shlibpath_overrides_runpath=yes
10415 esac
10416 else
10417 shlibpath_overrides_runpath=yes
10421 os2*)
10422 libname_spec='$name'
10423 shrext_cmds=".dll"
10424 need_lib_prefix=no
10425 library_names_spec='$libname${shared_ext} $libname.a'
10426 dynamic_linker='OS/2 ld.exe'
10427 shlibpath_var=LIBPATH
10430 osf3* | osf4* | osf5*)
10431 version_type=osf
10432 need_lib_prefix=no
10433 need_version=no
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436 shlibpath_var=LD_LIBRARY_PATH
10437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10441 rdos*)
10442 dynamic_linker=no
10445 solaris*)
10446 version_type=linux # correct to gnu/linux during the next big refactor
10447 need_lib_prefix=no
10448 need_version=no
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=yes
10453 hardcode_into_libs=yes
10454 # ldd complains unless libraries are executable
10455 postinstall_cmds='chmod +x $lib'
10458 sunos4*)
10459 version_type=sunos
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 shlibpath_overrides_runpath=yes
10464 if test "$with_gnu_ld" = yes; then
10465 need_lib_prefix=no
10467 need_version=yes
10470 sysv4 | sysv4.3*)
10471 version_type=linux # correct to gnu/linux during the next big refactor
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10473 soname_spec='${libname}${release}${shared_ext}$major'
10474 shlibpath_var=LD_LIBRARY_PATH
10475 case $host_vendor in
10476 sni)
10477 shlibpath_overrides_runpath=no
10478 need_lib_prefix=no
10479 runpath_var=LD_RUN_PATH
10481 siemens)
10482 need_lib_prefix=no
10484 motorola)
10485 need_lib_prefix=no
10486 need_version=no
10487 shlibpath_overrides_runpath=no
10488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10490 esac
10493 sysv4*MP*)
10494 if test -d /usr/nec ;then
10495 version_type=linux # correct to gnu/linux during the next big refactor
10496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10497 soname_spec='$libname${shared_ext}.$major'
10498 shlibpath_var=LD_LIBRARY_PATH
10502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10503 version_type=freebsd-elf
10504 need_lib_prefix=no
10505 need_version=no
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10507 soname_spec='${libname}${release}${shared_ext}$major'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 shlibpath_overrides_runpath=yes
10510 hardcode_into_libs=yes
10511 if test "$with_gnu_ld" = yes; then
10512 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10513 else
10514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10515 case $host_os in
10516 sco3.2v5*)
10517 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10519 esac
10521 sys_lib_dlsearch_path_spec='/usr/lib'
10524 tpf*)
10525 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10526 version_type=linux # correct to gnu/linux during the next big refactor
10527 need_lib_prefix=no
10528 need_version=no
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=no
10532 hardcode_into_libs=yes
10535 uts4*)
10536 version_type=linux # correct to gnu/linux during the next big refactor
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 shlibpath_var=LD_LIBRARY_PATH
10543 dynamic_linker=no
10545 esac
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10547 $as_echo "$dynamic_linker" >&6; }
10548 test "$dynamic_linker" = no && can_build_shared=no
10550 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10551 if test "$GCC" = yes; then
10552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10555 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10556 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10559 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10654 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10655 hardcode_action=
10656 if test -n "$hardcode_libdir_flag_spec" ||
10657 test -n "$runpath_var" ||
10658 test "X$hardcode_automatic" = "Xyes" ; then
10660 # We can hardcode non-existent directories.
10661 if test "$hardcode_direct" != no &&
10662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10663 # have to relink, otherwise we might link with an installed library
10664 # when we should be linking with a yet-to-be-installed one
10665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10666 test "$hardcode_minus_L" != no; then
10667 # Linking always hardcodes the temporary library directory.
10668 hardcode_action=relink
10669 else
10670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10671 hardcode_action=immediate
10673 else
10674 # We cannot hardcode anything, or else we can only hardcode existing
10675 # directories.
10676 hardcode_action=unsupported
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10679 $as_echo "$hardcode_action" >&6; }
10681 if test "$hardcode_action" = relink ||
10682 test "$inherit_rpath" = yes; then
10683 # Fast installation is not supported
10684 enable_fast_install=no
10685 elif test "$shlibpath_overrides_runpath" = yes ||
10686 test "$enable_shared" = no; then
10687 # Fast installation is not necessary
10688 enable_fast_install=needless
10696 if test "x$enable_dlopen" != xyes; then
10697 enable_dlopen=unknown
10698 enable_dlopen_self=unknown
10699 enable_dlopen_self_static=unknown
10700 else
10701 lt_cv_dlopen=no
10702 lt_cv_dlopen_libs=
10704 case $host_os in
10705 beos*)
10706 lt_cv_dlopen="load_add_on"
10707 lt_cv_dlopen_libs=
10708 lt_cv_dlopen_self=yes
10711 mingw* | pw32* | cegcc*)
10712 lt_cv_dlopen="LoadLibrary"
10713 lt_cv_dlopen_libs=
10716 cygwin*)
10717 lt_cv_dlopen="dlopen"
10718 lt_cv_dlopen_libs=
10721 darwin*)
10722 # if libdl is installed we need to link against it
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10724 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10725 if ${ac_cv_lib_dl_dlopen+:} false; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-ldl $LIBS"
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10733 /* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
10736 #ifdef __cplusplus
10737 extern "C"
10738 #endif
10739 char dlopen ();
10741 main ()
10743 return dlopen ();
10745 return 0;
10747 _ACEOF
10748 if ac_fn_c_try_link "$LINENO"; then :
10749 ac_cv_lib_dl_dlopen=yes
10750 else
10751 ac_cv_lib_dl_dlopen=no
10753 rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_check_lib_save_LIBS
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10758 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10759 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10761 else
10763 lt_cv_dlopen="dyld"
10764 lt_cv_dlopen_libs=
10765 lt_cv_dlopen_self=yes
10772 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10773 if test "x$ac_cv_func_shl_load" = xyes; then :
10774 lt_cv_dlopen="shl_load"
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10777 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10778 if ${ac_cv_lib_dld_shl_load+:} false; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 ac_check_lib_save_LIBS=$LIBS
10782 LIBS="-ldld $LIBS"
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 char shl_load ();
10794 main ()
10796 return shl_load ();
10798 return 0;
10800 _ACEOF
10801 if ac_fn_c_try_link "$LINENO"; then :
10802 ac_cv_lib_dld_shl_load=yes
10803 else
10804 ac_cv_lib_dld_shl_load=no
10806 rm -f core conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext conftest.$ac_ext
10808 LIBS=$ac_check_lib_save_LIBS
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10811 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10812 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10813 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10814 else
10815 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10816 if test "x$ac_cv_func_dlopen" = xyes; then :
10817 lt_cv_dlopen="dlopen"
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10821 if ${ac_cv_lib_dl_dlopen+:} false; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-ldl $LIBS"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10829 /* Override any GCC internal prototype to avoid an error.
10830 Use char because int might match the return type of a GCC
10831 builtin and then its argument prototype would still apply. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char dlopen ();
10837 main ()
10839 return dlopen ();
10841 return 0;
10843 _ACEOF
10844 if ac_fn_c_try_link "$LINENO"; then :
10845 ac_cv_lib_dl_dlopen=yes
10846 else
10847 ac_cv_lib_dl_dlopen=no
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10855 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10859 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10860 if ${ac_cv_lib_svld_dlopen+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-lsvld $LIBS"
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10868 /* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10871 #ifdef __cplusplus
10872 extern "C"
10873 #endif
10874 char dlopen ();
10876 main ()
10878 return dlopen ();
10880 return 0;
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"; then :
10884 ac_cv_lib_svld_dlopen=yes
10885 else
10886 ac_cv_lib_svld_dlopen=no
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10890 LIBS=$ac_check_lib_save_LIBS
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10893 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10894 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10898 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10899 if ${ac_cv_lib_dld_dld_link+:} false; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-ldld $LIBS"
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10907 /* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char dld_link ();
10915 main ()
10917 return dld_link ();
10919 return 0;
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"; then :
10923 ac_cv_lib_dld_dld_link=yes
10924 else
10925 ac_cv_lib_dld_dld_link=no
10927 rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10932 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10933 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10953 esac
10955 if test "x$lt_cv_dlopen" != xno; then
10956 enable_dlopen=yes
10957 else
10958 enable_dlopen=no
10961 case $lt_cv_dlopen in
10962 dlopen)
10963 save_CPPFLAGS="$CPPFLAGS"
10964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10966 save_LDFLAGS="$LDFLAGS"
10967 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10969 save_LIBS="$LIBS"
10970 LIBS="$lt_cv_dlopen_libs $LIBS"
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10973 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10974 if ${lt_cv_dlopen_self+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 if test "$cross_compiling" = yes; then :
10978 lt_cv_dlopen_self=cross
10979 else
10980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10981 lt_status=$lt_dlunknown
10982 cat > conftest.$ac_ext <<_LT_EOF
10983 #line $LINENO "configure"
10984 #include "confdefs.h"
10986 #if HAVE_DLFCN_H
10987 #include <dlfcn.h>
10988 #endif
10990 #include <stdio.h>
10992 #ifdef RTLD_GLOBAL
10993 # define LT_DLGLOBAL RTLD_GLOBAL
10994 #else
10995 # ifdef DL_GLOBAL
10996 # define LT_DLGLOBAL DL_GLOBAL
10997 # else
10998 # define LT_DLGLOBAL 0
10999 # endif
11000 #endif
11002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11003 find out it does not work in some platform. */
11004 #ifndef LT_DLLAZY_OR_NOW
11005 # ifdef RTLD_LAZY
11006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11007 # else
11008 # ifdef DL_LAZY
11009 # define LT_DLLAZY_OR_NOW DL_LAZY
11010 # else
11011 # ifdef RTLD_NOW
11012 # define LT_DLLAZY_OR_NOW RTLD_NOW
11013 # else
11014 # ifdef DL_NOW
11015 # define LT_DLLAZY_OR_NOW DL_NOW
11016 # else
11017 # define LT_DLLAZY_OR_NOW 0
11018 # endif
11019 # endif
11020 # endif
11021 # endif
11022 #endif
11024 /* When -fvisbility=hidden is used, assume the code has been annotated
11025 correspondingly for the symbols needed. */
11026 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11027 int fnord () __attribute__((visibility("default")));
11028 #endif
11030 int fnord () { return 42; }
11031 int main ()
11033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11034 int status = $lt_dlunknown;
11036 if (self)
11038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11039 else
11041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11042 else puts (dlerror ());
11044 /* dlclose (self); */
11046 else
11047 puts (dlerror ());
11049 return status;
11051 _LT_EOF
11052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11053 (eval $ac_link) 2>&5
11054 ac_status=$?
11055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11056 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11057 (./conftest; exit; ) >&5 2>/dev/null
11058 lt_status=$?
11059 case x$lt_status in
11060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11063 esac
11064 else :
11065 # compilation failed
11066 lt_cv_dlopen_self=no
11069 rm -fr conftest*
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11074 $as_echo "$lt_cv_dlopen_self" >&6; }
11076 if test "x$lt_cv_dlopen_self" = xyes; then
11077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11079 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11080 if ${lt_cv_dlopen_self_static+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 if test "$cross_compiling" = yes; then :
11084 lt_cv_dlopen_self_static=cross
11085 else
11086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11087 lt_status=$lt_dlunknown
11088 cat > conftest.$ac_ext <<_LT_EOF
11089 #line $LINENO "configure"
11090 #include "confdefs.h"
11092 #if HAVE_DLFCN_H
11093 #include <dlfcn.h>
11094 #endif
11096 #include <stdio.h>
11098 #ifdef RTLD_GLOBAL
11099 # define LT_DLGLOBAL RTLD_GLOBAL
11100 #else
11101 # ifdef DL_GLOBAL
11102 # define LT_DLGLOBAL DL_GLOBAL
11103 # else
11104 # define LT_DLGLOBAL 0
11105 # endif
11106 #endif
11108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11109 find out it does not work in some platform. */
11110 #ifndef LT_DLLAZY_OR_NOW
11111 # ifdef RTLD_LAZY
11112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11113 # else
11114 # ifdef DL_LAZY
11115 # define LT_DLLAZY_OR_NOW DL_LAZY
11116 # else
11117 # ifdef RTLD_NOW
11118 # define LT_DLLAZY_OR_NOW RTLD_NOW
11119 # else
11120 # ifdef DL_NOW
11121 # define LT_DLLAZY_OR_NOW DL_NOW
11122 # else
11123 # define LT_DLLAZY_OR_NOW 0
11124 # endif
11125 # endif
11126 # endif
11127 # endif
11128 #endif
11130 /* When -fvisbility=hidden is used, assume the code has been annotated
11131 correspondingly for the symbols needed. */
11132 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11133 int fnord () __attribute__((visibility("default")));
11134 #endif
11136 int fnord () { return 42; }
11137 int main ()
11139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11140 int status = $lt_dlunknown;
11142 if (self)
11144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11145 else
11147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11148 else puts (dlerror ());
11150 /* dlclose (self); */
11152 else
11153 puts (dlerror ());
11155 return status;
11157 _LT_EOF
11158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11159 (eval $ac_link) 2>&5
11160 ac_status=$?
11161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11162 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11163 (./conftest; exit; ) >&5 2>/dev/null
11164 lt_status=$?
11165 case x$lt_status in
11166 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11167 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11168 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11169 esac
11170 else :
11171 # compilation failed
11172 lt_cv_dlopen_self_static=no
11175 rm -fr conftest*
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11180 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11183 CPPFLAGS="$save_CPPFLAGS"
11184 LDFLAGS="$save_LDFLAGS"
11185 LIBS="$save_LIBS"
11187 esac
11189 case $lt_cv_dlopen_self in
11190 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11191 *) enable_dlopen_self=unknown ;;
11192 esac
11194 case $lt_cv_dlopen_self_static in
11195 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11196 *) enable_dlopen_self_static=unknown ;;
11197 esac
11216 striplib=
11217 old_striplib=
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11219 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11220 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11221 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11222 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224 $as_echo "yes" >&6; }
11225 else
11226 # FIXME - insert some real tests, host_os isn't really good enough
11227 case $host_os in
11228 darwin*)
11229 if test -n "$STRIP" ; then
11230 striplib="$STRIP -x"
11231 old_striplib="$STRIP -S"
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11233 $as_echo "yes" >&6; }
11234 else
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 $as_echo "no" >&6; }
11243 esac
11257 # Report which library types will actually be built
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11259 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11261 $as_echo "$can_build_shared" >&6; }
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11264 $as_echo_n "checking whether to build shared libraries... " >&6; }
11265 test "$can_build_shared" = "no" && enable_shared=no
11267 # On AIX, shared libraries and static libraries use the same namespace, and
11268 # are all built from PIC.
11269 case $host_os in
11270 aix3*)
11271 test "$enable_shared" = yes && enable_static=no
11272 if test -n "$RANLIB"; then
11273 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11274 postinstall_cmds='$RANLIB $lib'
11278 aix[4-9]*)
11279 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11280 test "$enable_shared" = yes && enable_static=no
11283 esac
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11285 $as_echo "$enable_shared" >&6; }
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11288 $as_echo_n "checking whether to build static libraries... " >&6; }
11289 # Make sure either enable_shared or enable_static is yes.
11290 test "$enable_shared" = yes || enable_static=yes
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11292 $as_echo "$enable_static" >&6; }
11298 ac_ext=c
11299 ac_cpp='$CPP $CPPFLAGS'
11300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11304 CC="$lt_save_CC"
11320 ac_config_commands="$ac_config_commands libtool"
11325 # Only expand once:
11329 # Checks for libraries.
11331 # Checks for header files.
11332 for ac_header in fcntl.h libintl.h stddef.h stdlib.h string.h sys/time.h unistd.h
11333 do :
11334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11335 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11337 cat >>confdefs.h <<_ACEOF
11338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11339 _ACEOF
11343 done
11346 # Checks for typedefs, structures, and compiler characteristics.
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11348 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11349 if ${ac_cv_header_stdbool_h+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11355 #include <stdbool.h>
11356 #ifndef bool
11357 "error: bool is not defined"
11358 #endif
11359 #ifndef false
11360 "error: false is not defined"
11361 #endif
11362 #if false
11363 "error: false is not 0"
11364 #endif
11365 #ifndef true
11366 "error: true is not defined"
11367 #endif
11368 #if true != 1
11369 "error: true is not 1"
11370 #endif
11371 #ifndef __bool_true_false_are_defined
11372 "error: __bool_true_false_are_defined is not defined"
11373 #endif
11375 struct s { _Bool s: 1; _Bool t; } s;
11377 char a[true == 1 ? 1 : -1];
11378 char b[false == 0 ? 1 : -1];
11379 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11380 char d[(bool) 0.5 == true ? 1 : -1];
11381 /* See body of main program for 'e'. */
11382 char f[(_Bool) 0.0 == false ? 1 : -1];
11383 char g[true];
11384 char h[sizeof (_Bool)];
11385 char i[sizeof s.t];
11386 enum { j = false, k = true, l = false * true, m = true * 256 };
11387 /* The following fails for
11388 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11389 _Bool n[m];
11390 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11391 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11392 /* Catch a bug in an HP-UX C compiler. See
11393 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11394 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11396 _Bool q = true;
11397 _Bool *pq = &q;
11400 main ()
11403 bool e = &s;
11404 *pq |= q;
11405 *pq |= ! q;
11406 /* Refer to every declared value, to avoid compiler optimizations. */
11407 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11408 + !m + !n + !o + !p + !q + !pq);
11411 return 0;
11413 _ACEOF
11414 if ac_fn_c_try_compile "$LINENO"; then :
11415 ac_cv_header_stdbool_h=yes
11416 else
11417 ac_cv_header_stdbool_h=no
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11422 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11423 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11424 if test "x$ac_cv_type__Bool" = xyes; then :
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE__BOOL 1
11428 _ACEOF
11434 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11435 if test "x$ac_cv_type_off_t" = xyes; then :
11437 else
11439 cat >>confdefs.h <<_ACEOF
11440 #define off_t long int
11441 _ACEOF
11445 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11446 if test "x$ac_cv_type_pid_t" = xyes; then :
11448 else
11450 cat >>confdefs.h <<_ACEOF
11451 #define pid_t int
11452 _ACEOF
11456 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11457 if test "x$ac_cv_type_size_t" = xyes; then :
11459 else
11461 cat >>confdefs.h <<_ACEOF
11462 #define size_t unsigned int
11463 _ACEOF
11468 # Checks for library functions.
11469 for ac_header in vfork.h
11470 do :
11471 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11472 if test "x$ac_cv_header_vfork_h" = xyes; then :
11473 cat >>confdefs.h <<_ACEOF
11474 #define HAVE_VFORK_H 1
11475 _ACEOF
11479 done
11481 for ac_func in fork vfork
11482 do :
11483 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11484 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11485 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11486 cat >>confdefs.h <<_ACEOF
11487 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11488 _ACEOF
11491 done
11493 if test "x$ac_cv_func_fork" = xyes; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11495 $as_echo_n "checking for working fork... " >&6; }
11496 if ${ac_cv_func_fork_works+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 if test "$cross_compiling" = yes; then :
11500 ac_cv_func_fork_works=cross
11501 else
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504 $ac_includes_default
11506 main ()
11509 /* By Ruediger Kuhlmann. */
11510 return fork () < 0;
11513 return 0;
11515 _ACEOF
11516 if ac_fn_c_try_run "$LINENO"; then :
11517 ac_cv_func_fork_works=yes
11518 else
11519 ac_cv_func_fork_works=no
11521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11522 conftest.$ac_objext conftest.beam conftest.$ac_ext
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11527 $as_echo "$ac_cv_func_fork_works" >&6; }
11529 else
11530 ac_cv_func_fork_works=$ac_cv_func_fork
11532 if test "x$ac_cv_func_fork_works" = xcross; then
11533 case $host in
11534 *-*-amigaos* | *-*-msdosdjgpp*)
11535 # Override, as these systems have only a dummy fork() stub
11536 ac_cv_func_fork_works=no
11539 ac_cv_func_fork_works=yes
11541 esac
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11543 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11545 ac_cv_func_vfork_works=$ac_cv_func_vfork
11546 if test "x$ac_cv_func_vfork" = xyes; then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11548 $as_echo_n "checking for working vfork... " >&6; }
11549 if ${ac_cv_func_vfork_works+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 if test "$cross_compiling" = yes; then :
11553 ac_cv_func_vfork_works=cross
11554 else
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11557 /* Thanks to Paul Eggert for this test. */
11558 $ac_includes_default
11559 #include <sys/wait.h>
11560 #ifdef HAVE_VFORK_H
11561 # include <vfork.h>
11562 #endif
11563 /* On some sparc systems, changes by the child to local and incoming
11564 argument registers are propagated back to the parent. The compiler
11565 is told about this with #include <vfork.h>, but some compilers
11566 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11567 static variable whose address is put into a register that is
11568 clobbered by the vfork. */
11569 static void
11570 #ifdef __cplusplus
11571 sparc_address_test (int arg)
11572 # else
11573 sparc_address_test (arg) int arg;
11574 #endif
11576 static pid_t child;
11577 if (!child) {
11578 child = vfork ();
11579 if (child < 0) {
11580 perror ("vfork");
11581 _exit(2);
11583 if (!child) {
11584 arg = getpid();
11585 write(-1, "", 0);
11586 _exit (arg);
11592 main ()
11594 pid_t parent = getpid ();
11595 pid_t child;
11597 sparc_address_test (0);
11599 child = vfork ();
11601 if (child == 0) {
11602 /* Here is another test for sparc vfork register problems. This
11603 test uses lots of local variables, at least as many local
11604 variables as main has allocated so far including compiler
11605 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11606 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11607 reuse the register of parent for one of the local variables,
11608 since it will think that parent can't possibly be used any more
11609 in this routine. Assigning to the local variable will thus
11610 munge parent in the parent process. */
11611 pid_t
11612 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11613 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11614 /* Convince the compiler that p..p7 are live; otherwise, it might
11615 use the same hardware register for all 8 local variables. */
11616 if (p != p1 || p != p2 || p != p3 || p != p4
11617 || p != p5 || p != p6 || p != p7)
11618 _exit(1);
11620 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11621 from child file descriptors. If the child closes a descriptor
11622 before it execs or exits, this munges the parent's descriptor
11623 as well. Test for this by closing stdout in the child. */
11624 _exit(close(fileno(stdout)) != 0);
11625 } else {
11626 int status;
11627 struct stat st;
11629 while (wait(&status) != child)
11631 return (
11632 /* Was there some problem with vforking? */
11633 child < 0
11635 /* Did the child fail? (This shouldn't happen.) */
11636 || status
11638 /* Did the vfork/compiler bug occur? */
11639 || parent != getpid()
11641 /* Did the file descriptor bug occur? */
11642 || fstat(fileno(stdout), &st) != 0
11646 _ACEOF
11647 if ac_fn_c_try_run "$LINENO"; then :
11648 ac_cv_func_vfork_works=yes
11649 else
11650 ac_cv_func_vfork_works=no
11652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11653 conftest.$ac_objext conftest.beam conftest.$ac_ext
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11658 $as_echo "$ac_cv_func_vfork_works" >&6; }
11661 if test "x$ac_cv_func_fork_works" = xcross; then
11662 ac_cv_func_vfork_works=$ac_cv_func_vfork
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11664 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11667 if test "x$ac_cv_func_vfork_works" = xyes; then
11669 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11671 else
11673 $as_echo "#define vfork fork" >>confdefs.h
11676 if test "x$ac_cv_func_fork_works" = xyes; then
11678 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11682 for ac_header in stdlib.h
11683 do :
11684 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11685 if test "x$ac_cv_header_stdlib_h" = xyes; then :
11686 cat >>confdefs.h <<_ACEOF
11687 #define HAVE_STDLIB_H 1
11688 _ACEOF
11692 done
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11695 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11696 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 if test "$cross_compiling" = yes; then :
11700 ac_cv_func_malloc_0_nonnull=no
11701 else
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11704 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11705 # include <stdlib.h>
11706 #else
11707 char *malloc ();
11708 #endif
11711 main ()
11713 return ! malloc (0);
11715 return 0;
11717 _ACEOF
11718 if ac_fn_c_try_run "$LINENO"; then :
11719 ac_cv_func_malloc_0_nonnull=yes
11720 else
11721 ac_cv_func_malloc_0_nonnull=no
11723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11724 conftest.$ac_objext conftest.beam conftest.$ac_ext
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11729 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11730 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11732 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11734 else
11735 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11737 case " $LIBOBJS " in
11738 *" malloc.$ac_objext "* ) ;;
11739 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11741 esac
11744 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11749 for ac_header in stdlib.h
11750 do :
11751 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11752 if test "x$ac_cv_header_stdlib_h" = xyes; then :
11753 cat >>confdefs.h <<_ACEOF
11754 #define HAVE_STDLIB_H 1
11755 _ACEOF
11759 done
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11762 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11763 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
11764 $as_echo_n "(cached) " >&6
11765 else
11766 if test "$cross_compiling" = yes; then :
11767 ac_cv_func_realloc_0_nonnull=no
11768 else
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11771 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11772 # include <stdlib.h>
11773 #else
11774 char *realloc ();
11775 #endif
11778 main ()
11780 return ! realloc (0, 0);
11782 return 0;
11784 _ACEOF
11785 if ac_fn_c_try_run "$LINENO"; then :
11786 ac_cv_func_realloc_0_nonnull=yes
11787 else
11788 ac_cv_func_realloc_0_nonnull=no
11790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11791 conftest.$ac_objext conftest.beam conftest.$ac_ext
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11796 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11797 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11799 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11801 else
11802 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11804 case " $LIBOBJS " in
11805 *" realloc.$ac_objext "* ) ;;
11806 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11808 esac
11811 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11816 for ac_func in memset strchr strdup strerror strrchr strstr strtol
11817 do :
11818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11820 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11821 cat >>confdefs.h <<_ACEOF
11822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11823 _ACEOF
11826 done
11829 ac_config_files="$ac_config_files Makefile doc/Makefile replace/Makefile src/Makefile tests/Makefile"
11831 cat >confcache <<\_ACEOF
11832 # This file is a shell script that caches the results of configure
11833 # tests run on this system so they can be shared between configure
11834 # scripts and configure runs, see configure's option --config-cache.
11835 # It is not useful on other systems. If it contains results you don't
11836 # want to keep, you may remove or edit it.
11838 # config.status only pays attention to the cache file if you give it
11839 # the --recheck option to rerun configure.
11841 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11842 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11843 # following values.
11845 _ACEOF
11847 # The following way of writing the cache mishandles newlines in values,
11848 # but we know of no workaround that is simple, portable, and efficient.
11849 # So, we kill variables containing newlines.
11850 # Ultrix sh set writes to stderr and can't be redirected directly,
11851 # and sets the high bit in the cache file unless we assign to the vars.
11853 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11854 eval ac_val=\$$ac_var
11855 case $ac_val in #(
11856 *${as_nl}*)
11857 case $ac_var in #(
11858 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11859 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11860 esac
11861 case $ac_var in #(
11862 _ | IFS | as_nl) ;; #(
11863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11864 *) { eval $ac_var=; unset $ac_var;} ;;
11865 esac ;;
11866 esac
11867 done
11869 (set) 2>&1 |
11870 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11871 *${as_nl}ac_space=\ *)
11872 # `set' does not quote correctly, so add quotes: double-quote
11873 # substitution turns \\\\ into \\, and sed turns \\ into \.
11874 sed -n \
11875 "s/'/'\\\\''/g;
11876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11877 ;; #(
11879 # `set' quotes correctly as required by POSIX, so do not add quotes.
11880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11882 esac |
11883 sort
11885 sed '
11886 /^ac_cv_env_/b end
11887 t clear
11888 :clear
11889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11890 t end
11891 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11892 :end' >>confcache
11893 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11894 if test -w "$cache_file"; then
11895 if test "x$cache_file" != "x/dev/null"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11897 $as_echo "$as_me: updating cache $cache_file" >&6;}
11898 if test ! -f "$cache_file" || test -h "$cache_file"; then
11899 cat confcache >"$cache_file"
11900 else
11901 case $cache_file in #(
11902 */* | ?:*)
11903 mv -f confcache "$cache_file"$$ &&
11904 mv -f "$cache_file"$$ "$cache_file" ;; #(
11906 mv -f confcache "$cache_file" ;;
11907 esac
11910 else
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11912 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11915 rm -f confcache
11917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11918 # Let make expand exec_prefix.
11919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11921 DEFS=-DHAVE_CONFIG_H
11923 ac_libobjs=
11924 ac_ltlibobjs=
11926 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11927 # 1. Remove the extension, and $U if already installed.
11928 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11929 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11930 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11931 # will be set to the directory where LIBOBJS objects are built.
11932 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11933 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11934 done
11935 LIBOBJS=$ac_libobjs
11937 LTLIBOBJS=$ac_ltlibobjs
11940 if test -n "$EXEEXT"; then
11941 am__EXEEXT_TRUE=
11942 am__EXEEXT_FALSE='#'
11943 else
11944 am__EXEEXT_TRUE='#'
11945 am__EXEEXT_FALSE=
11948 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11949 as_fn_error $? "conditional \"AMDEP\" was never defined.
11950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11952 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11953 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11957 : "${CONFIG_STATUS=./config.status}"
11958 ac_write_fail=0
11959 ac_clean_files_save=$ac_clean_files
11960 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11962 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11963 as_write_fail=0
11964 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11965 #! $SHELL
11966 # Generated by $as_me.
11967 # Run this file to recreate the current configuration.
11968 # Compiler output produced by configure, useful for debugging
11969 # configure, is in config.log if it exists.
11971 debug=false
11972 ac_cs_recheck=false
11973 ac_cs_silent=false
11975 SHELL=\${CONFIG_SHELL-$SHELL}
11976 export SHELL
11977 _ASEOF
11978 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11979 ## -------------------- ##
11980 ## M4sh Initialization. ##
11981 ## -------------------- ##
11983 # Be more Bourne compatible
11984 DUALCASE=1; export DUALCASE # for MKS sh
11985 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11986 emulate sh
11987 NULLCMD=:
11988 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11989 # is contrary to our usage. Disable this feature.
11990 alias -g '${1+"$@"}'='"$@"'
11991 setopt NO_GLOB_SUBST
11992 else
11993 case `(set -o) 2>/dev/null` in #(
11994 *posix*) :
11995 set -o posix ;; #(
11996 *) :
11998 esac
12002 as_nl='
12004 export as_nl
12005 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12006 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12007 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12009 # Prefer a ksh shell builtin over an external printf program on Solaris,
12010 # but without wasting forks for bash or zsh.
12011 if test -z "$BASH_VERSION$ZSH_VERSION" \
12012 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12013 as_echo='print -r --'
12014 as_echo_n='print -rn --'
12015 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12016 as_echo='printf %s\n'
12017 as_echo_n='printf %s'
12018 else
12019 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12020 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12021 as_echo_n='/usr/ucb/echo -n'
12022 else
12023 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12024 as_echo_n_body='eval
12025 arg=$1;
12026 case $arg in #(
12027 *"$as_nl"*)
12028 expr "X$arg" : "X\\(.*\\)$as_nl";
12029 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12030 esac;
12031 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12033 export as_echo_n_body
12034 as_echo_n='sh -c $as_echo_n_body as_echo'
12036 export as_echo_body
12037 as_echo='sh -c $as_echo_body as_echo'
12040 # The user is always right.
12041 if test "${PATH_SEPARATOR+set}" != set; then
12042 PATH_SEPARATOR=:
12043 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12044 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12045 PATH_SEPARATOR=';'
12050 # IFS
12051 # We need space, tab and new line, in precisely that order. Quoting is
12052 # there to prevent editors from complaining about space-tab.
12053 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12054 # splitting by setting IFS to empty value.)
12055 IFS=" "" $as_nl"
12057 # Find who we are. Look in the path if we contain no directory separator.
12058 as_myself=
12059 case $0 in #((
12060 *[\\/]* ) as_myself=$0 ;;
12061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12067 done
12068 IFS=$as_save_IFS
12071 esac
12072 # We did not find ourselves, most probably we were run as `sh COMMAND'
12073 # in which case we are not to be found in the path.
12074 if test "x$as_myself" = x; then
12075 as_myself=$0
12077 if test ! -f "$as_myself"; then
12078 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12079 exit 1
12082 # Unset variables that we do not need and which cause bugs (e.g. in
12083 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12084 # suppresses any "Segmentation fault" message there. '((' could
12085 # trigger a bug in pdksh 5.2.14.
12086 for as_var in BASH_ENV ENV MAIL MAILPATH
12087 do eval test x\${$as_var+set} = xset \
12088 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12089 done
12090 PS1='$ '
12091 PS2='> '
12092 PS4='+ '
12094 # NLS nuisances.
12095 LC_ALL=C
12096 export LC_ALL
12097 LANGUAGE=C
12098 export LANGUAGE
12100 # CDPATH.
12101 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12104 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12105 # ----------------------------------------
12106 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12107 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12108 # script with STATUS, using 1 if that was 0.
12109 as_fn_error ()
12111 as_status=$1; test $as_status -eq 0 && as_status=1
12112 if test "$4"; then
12113 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12114 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12116 $as_echo "$as_me: error: $2" >&2
12117 as_fn_exit $as_status
12118 } # as_fn_error
12121 # as_fn_set_status STATUS
12122 # -----------------------
12123 # Set $? to STATUS, without forking.
12124 as_fn_set_status ()
12126 return $1
12127 } # as_fn_set_status
12129 # as_fn_exit STATUS
12130 # -----------------
12131 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12132 as_fn_exit ()
12134 set +e
12135 as_fn_set_status $1
12136 exit $1
12137 } # as_fn_exit
12139 # as_fn_unset VAR
12140 # ---------------
12141 # Portably unset VAR.
12142 as_fn_unset ()
12144 { eval $1=; unset $1;}
12146 as_unset=as_fn_unset
12147 # as_fn_append VAR VALUE
12148 # ----------------------
12149 # Append the text in VALUE to the end of the definition contained in VAR. Take
12150 # advantage of any shell optimizations that allow amortized linear growth over
12151 # repeated appends, instead of the typical quadratic growth present in naive
12152 # implementations.
12153 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12154 eval 'as_fn_append ()
12156 eval $1+=\$2
12158 else
12159 as_fn_append ()
12161 eval $1=\$$1\$2
12163 fi # as_fn_append
12165 # as_fn_arith ARG...
12166 # ------------------
12167 # Perform arithmetic evaluation on the ARGs, and store the result in the
12168 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12169 # must be portable across $(()) and expr.
12170 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12171 eval 'as_fn_arith ()
12173 as_val=$(( $* ))
12175 else
12176 as_fn_arith ()
12178 as_val=`expr "$@" || test $? -eq 1`
12180 fi # as_fn_arith
12183 if expr a : '\(a\)' >/dev/null 2>&1 &&
12184 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12185 as_expr=expr
12186 else
12187 as_expr=false
12190 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12191 as_basename=basename
12192 else
12193 as_basename=false
12196 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12197 as_dirname=dirname
12198 else
12199 as_dirname=false
12202 as_me=`$as_basename -- "$0" ||
12203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12204 X"$0" : 'X\(//\)$' \| \
12205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12206 $as_echo X/"$0" |
12207 sed '/^.*\/\([^/][^/]*\)\/*$/{
12208 s//\1/
12211 /^X\/\(\/\/\)$/{
12212 s//\1/
12215 /^X\/\(\/\).*/{
12216 s//\1/
12219 s/.*/./; q'`
12221 # Avoid depending upon Character Ranges.
12222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12225 as_cr_digits='0123456789'
12226 as_cr_alnum=$as_cr_Letters$as_cr_digits
12228 ECHO_C= ECHO_N= ECHO_T=
12229 case `echo -n x` in #(((((
12230 -n*)
12231 case `echo 'xy\c'` in
12232 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12233 xy) ECHO_C='\c';;
12234 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12235 ECHO_T=' ';;
12236 esac;;
12238 ECHO_N='-n';;
12239 esac
12241 rm -f conf$$ conf$$.exe conf$$.file
12242 if test -d conf$$.dir; then
12243 rm -f conf$$.dir/conf$$.file
12244 else
12245 rm -f conf$$.dir
12246 mkdir conf$$.dir 2>/dev/null
12248 if (echo >conf$$.file) 2>/dev/null; then
12249 if ln -s conf$$.file conf$$ 2>/dev/null; then
12250 as_ln_s='ln -s'
12251 # ... but there are two gotchas:
12252 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12253 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12254 # In both cases, we have to default to `cp -pR'.
12255 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12256 as_ln_s='cp -pR'
12257 elif ln conf$$.file conf$$ 2>/dev/null; then
12258 as_ln_s=ln
12259 else
12260 as_ln_s='cp -pR'
12262 else
12263 as_ln_s='cp -pR'
12265 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12266 rmdir conf$$.dir 2>/dev/null
12269 # as_fn_mkdir_p
12270 # -------------
12271 # Create "$as_dir" as a directory, including parents if necessary.
12272 as_fn_mkdir_p ()
12275 case $as_dir in #(
12276 -*) as_dir=./$as_dir;;
12277 esac
12278 test -d "$as_dir" || eval $as_mkdir_p || {
12279 as_dirs=
12280 while :; do
12281 case $as_dir in #(
12282 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12283 *) as_qdir=$as_dir;;
12284 esac
12285 as_dirs="'$as_qdir' $as_dirs"
12286 as_dir=`$as_dirname -- "$as_dir" ||
12287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12288 X"$as_dir" : 'X\(//\)[^/]' \| \
12289 X"$as_dir" : 'X\(//\)$' \| \
12290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12291 $as_echo X"$as_dir" |
12292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12293 s//\1/
12296 /^X\(\/\/\)[^/].*/{
12297 s//\1/
12300 /^X\(\/\/\)$/{
12301 s//\1/
12304 /^X\(\/\).*/{
12305 s//\1/
12308 s/.*/./; q'`
12309 test -d "$as_dir" && break
12310 done
12311 test -z "$as_dirs" || eval "mkdir $as_dirs"
12312 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12315 } # as_fn_mkdir_p
12316 if mkdir -p . 2>/dev/null; then
12317 as_mkdir_p='mkdir -p "$as_dir"'
12318 else
12319 test -d ./-p && rmdir ./-p
12320 as_mkdir_p=false
12324 # as_fn_executable_p FILE
12325 # -----------------------
12326 # Test if FILE is an executable regular file.
12327 as_fn_executable_p ()
12329 test -f "$1" && test -x "$1"
12330 } # as_fn_executable_p
12331 as_test_x='test -x'
12332 as_executable_p=as_fn_executable_p
12334 # Sed expression to map a string onto a valid CPP name.
12335 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12337 # Sed expression to map a string onto a valid variable name.
12338 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12341 exec 6>&1
12342 ## ----------------------------------- ##
12343 ## Main body of $CONFIG_STATUS script. ##
12344 ## ----------------------------------- ##
12345 _ASEOF
12346 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12349 # Save the log message, to keep $0 and so on meaningful, and to
12350 # report actual input values of CONFIG_FILES etc. instead of their
12351 # values after options handling.
12352 ac_log="
12353 This file was extended by GNU Trueprint $as_me 5.4, which was
12354 generated by GNU Autoconf 2.69. Invocation command line was
12356 CONFIG_FILES = $CONFIG_FILES
12357 CONFIG_HEADERS = $CONFIG_HEADERS
12358 CONFIG_LINKS = $CONFIG_LINKS
12359 CONFIG_COMMANDS = $CONFIG_COMMANDS
12360 $ $0 $@
12362 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12365 _ACEOF
12367 case $ac_config_files in *"
12368 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12369 esac
12371 case $ac_config_headers in *"
12372 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12373 esac
12376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12377 # Files that config.status was made for.
12378 config_files="$ac_config_files"
12379 config_headers="$ac_config_headers"
12380 config_commands="$ac_config_commands"
12382 _ACEOF
12384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12385 ac_cs_usage="\
12386 \`$as_me' instantiates files and other configuration actions
12387 from templates according to the current configuration. Unless the files
12388 and actions are specified as TAGs, all are instantiated by default.
12390 Usage: $0 [OPTION]... [TAG]...
12392 -h, --help print this help, then exit
12393 -V, --version print version number and configuration settings, then exit
12394 --config print configuration, then exit
12395 -q, --quiet, --silent
12396 do not print progress messages
12397 -d, --debug don't remove temporary files
12398 --recheck update $as_me by reconfiguring in the same conditions
12399 --file=FILE[:TEMPLATE]
12400 instantiate the configuration file FILE
12401 --header=FILE[:TEMPLATE]
12402 instantiate the configuration header FILE
12404 Configuration files:
12405 $config_files
12407 Configuration headers:
12408 $config_headers
12410 Configuration commands:
12411 $config_commands
12413 Report bugs to <bug-trueprint@gnu.org>.
12414 GNU Trueprint home page: <http://www.gnu.org/software/trueprint/>.
12415 General help using GNU software: <http://www.gnu.org/gethelp/>."
12417 _ACEOF
12418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12419 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12420 ac_cs_version="\\
12421 GNU Trueprint config.status 5.4
12422 configured by $0, generated by GNU Autoconf 2.69,
12423 with options \\"\$ac_cs_config\\"
12425 Copyright (C) 2012 Free Software Foundation, Inc.
12426 This config.status script is free software; the Free Software Foundation
12427 gives unlimited permission to copy, distribute and modify it."
12429 ac_pwd='$ac_pwd'
12430 srcdir='$srcdir'
12431 INSTALL='$INSTALL'
12432 MKDIR_P='$MKDIR_P'
12433 AWK='$AWK'
12434 test -n "\$AWK" || AWK=awk
12435 _ACEOF
12437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12438 # The default lists apply if the user does not specify any file.
12439 ac_need_defaults=:
12440 while test $# != 0
12442 case $1 in
12443 --*=?*)
12444 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12445 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12446 ac_shift=:
12448 --*=)
12449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12450 ac_optarg=
12451 ac_shift=:
12454 ac_option=$1
12455 ac_optarg=$2
12456 ac_shift=shift
12458 esac
12460 case $ac_option in
12461 # Handling of the options.
12462 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12463 ac_cs_recheck=: ;;
12464 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12465 $as_echo "$ac_cs_version"; exit ;;
12466 --config | --confi | --conf | --con | --co | --c )
12467 $as_echo "$ac_cs_config"; exit ;;
12468 --debug | --debu | --deb | --de | --d | -d )
12469 debug=: ;;
12470 --file | --fil | --fi | --f )
12471 $ac_shift
12472 case $ac_optarg in
12473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12474 '') as_fn_error $? "missing file argument" ;;
12475 esac
12476 as_fn_append CONFIG_FILES " '$ac_optarg'"
12477 ac_need_defaults=false;;
12478 --header | --heade | --head | --hea )
12479 $ac_shift
12480 case $ac_optarg in
12481 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12482 esac
12483 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12484 ac_need_defaults=false;;
12485 --he | --h)
12486 # Conflict between --help and --header
12487 as_fn_error $? "ambiguous option: \`$1'
12488 Try \`$0 --help' for more information.";;
12489 --help | --hel | -h )
12490 $as_echo "$ac_cs_usage"; exit ;;
12491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12492 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12493 ac_cs_silent=: ;;
12495 # This is an error.
12496 -*) as_fn_error $? "unrecognized option: \`$1'
12497 Try \`$0 --help' for more information." ;;
12499 *) as_fn_append ac_config_targets " $1"
12500 ac_need_defaults=false ;;
12502 esac
12503 shift
12504 done
12506 ac_configure_extra_args=
12508 if $ac_cs_silent; then
12509 exec 6>/dev/null
12510 ac_configure_extra_args="$ac_configure_extra_args --silent"
12513 _ACEOF
12514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12515 if \$ac_cs_recheck; then
12516 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12517 shift
12518 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12519 CONFIG_SHELL='$SHELL'
12520 export CONFIG_SHELL
12521 exec "\$@"
12524 _ACEOF
12525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12526 exec 5>>config.log
12528 echo
12529 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12530 ## Running $as_me. ##
12531 _ASBOX
12532 $as_echo "$ac_log"
12533 } >&5
12535 _ACEOF
12536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12538 # INIT-COMMANDS
12540 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12543 # The HP-UX ksh and POSIX shell print the target directory to stdout
12544 # if CDPATH is set.
12545 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12547 sed_quote_subst='$sed_quote_subst'
12548 double_quote_subst='$double_quote_subst'
12549 delay_variable_subst='$delay_variable_subst'
12550 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12551 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12552 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12553 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12554 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12555 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12556 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12557 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12558 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12559 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12560 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12561 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12562 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12563 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12564 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12565 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12566 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12567 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12568 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12569 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12570 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12571 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12572 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12573 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12574 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12575 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12576 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12577 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12578 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12579 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12580 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12581 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12582 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12583 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12584 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12585 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12586 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12587 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12588 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12589 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12590 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12591 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12592 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12593 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12594 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12595 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12596 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12597 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12598 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12599 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12600 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12601 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12602 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12603 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12604 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12605 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12606 lt_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"`'
12607 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12608 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12609 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12610 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12611 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12612 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12613 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12614 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12615 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12616 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12617 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12618 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12619 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12620 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12621 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12622 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12623 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12624 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12625 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12626 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12627 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12628 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12629 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12630 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12631 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12632 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12633 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12634 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12635 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12636 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12637 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12638 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12639 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12640 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12641 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12642 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12643 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12644 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12645 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12646 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12647 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12648 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12649 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12650 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12651 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12652 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12653 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12654 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12655 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12656 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12657 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12658 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12659 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12660 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12661 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12662 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12663 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12664 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12665 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12666 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12667 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12668 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12669 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12670 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12671 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12672 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12673 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12674 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12675 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12676 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12677 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12678 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12679 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12681 LTCC='$LTCC'
12682 LTCFLAGS='$LTCFLAGS'
12683 compiler='$compiler_DEFAULT'
12685 # A function that is used when there is no print builtin or printf.
12686 func_fallback_echo ()
12688 eval 'cat <<_LTECHO_EOF
12690 _LTECHO_EOF'
12693 # Quote evaled strings.
12694 for var in SHELL \
12695 ECHO \
12696 PATH_SEPARATOR \
12697 SED \
12698 GREP \
12699 EGREP \
12700 FGREP \
12701 LD \
12702 NM \
12703 LN_S \
12704 lt_SP2NL \
12705 lt_NL2SP \
12706 reload_flag \
12707 OBJDUMP \
12708 deplibs_check_method \
12709 file_magic_cmd \
12710 file_magic_glob \
12711 want_nocaseglob \
12712 DLLTOOL \
12713 sharedlib_from_linklib_cmd \
12714 AR \
12715 AR_FLAGS \
12716 archiver_list_spec \
12717 STRIP \
12718 RANLIB \
12719 CC \
12720 CFLAGS \
12721 compiler \
12722 lt_cv_sys_global_symbol_pipe \
12723 lt_cv_sys_global_symbol_to_cdecl \
12724 lt_cv_sys_global_symbol_to_c_name_address \
12725 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12726 nm_file_list_spec \
12727 lt_prog_compiler_no_builtin_flag \
12728 lt_prog_compiler_pic \
12729 lt_prog_compiler_wl \
12730 lt_prog_compiler_static \
12731 lt_cv_prog_compiler_c_o \
12732 need_locks \
12733 MANIFEST_TOOL \
12734 DSYMUTIL \
12735 NMEDIT \
12736 LIPO \
12737 OTOOL \
12738 OTOOL64 \
12739 shrext_cmds \
12740 export_dynamic_flag_spec \
12741 whole_archive_flag_spec \
12742 compiler_needs_object \
12743 with_gnu_ld \
12744 allow_undefined_flag \
12745 no_undefined_flag \
12746 hardcode_libdir_flag_spec \
12747 hardcode_libdir_separator \
12748 exclude_expsyms \
12749 include_expsyms \
12750 file_list_spec \
12751 variables_saved_for_relink \
12752 libname_spec \
12753 library_names_spec \
12754 soname_spec \
12755 install_override_mode \
12756 finish_eval \
12757 old_striplib \
12758 striplib; do
12759 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12760 *[\\\\\\\`\\"\\\$]*)
12761 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12764 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12766 esac
12767 done
12769 # Double-quote double-evaled strings.
12770 for var in reload_cmds \
12771 old_postinstall_cmds \
12772 old_postuninstall_cmds \
12773 old_archive_cmds \
12774 extract_expsyms_cmds \
12775 old_archive_from_new_cmds \
12776 old_archive_from_expsyms_cmds \
12777 archive_cmds \
12778 archive_expsym_cmds \
12779 module_cmds \
12780 module_expsym_cmds \
12781 export_symbols_cmds \
12782 prelink_cmds \
12783 postlink_cmds \
12784 postinstall_cmds \
12785 postuninstall_cmds \
12786 finish_cmds \
12787 sys_lib_search_path_spec \
12788 sys_lib_dlsearch_path_spec; do
12789 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12790 *[\\\\\\\`\\"\\\$]*)
12791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12796 esac
12797 done
12799 ac_aux_dir='$ac_aux_dir'
12800 xsi_shell='$xsi_shell'
12801 lt_shell_append='$lt_shell_append'
12803 # See if we are running on zsh, and set the options which allow our
12804 # commands through without removal of \ escapes INIT.
12805 if test -n "\${ZSH_VERSION+set}" ; then
12806 setopt NO_GLOB_SUBST
12810 PACKAGE='$PACKAGE'
12811 VERSION='$VERSION'
12812 TIMESTAMP='$TIMESTAMP'
12813 RM='$RM'
12814 ofile='$ofile'
12819 _ACEOF
12821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12823 # Handling of arguments.
12824 for ac_config_target in $ac_config_targets
12826 case $ac_config_target in
12827 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12828 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12829 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12830 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12831 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12832 "replace/Makefile") CONFIG_FILES="$CONFIG_FILES replace/Makefile" ;;
12833 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12834 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12836 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12837 esac
12838 done
12841 # If the user did not use the arguments to specify the items to instantiate,
12842 # then the envvar interface is used. Set only those that are not.
12843 # We use the long form for the default assignment because of an extremely
12844 # bizarre bug on SunOS 4.1.3.
12845 if $ac_need_defaults; then
12846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12851 # Have a temporary directory for convenience. Make it in the build tree
12852 # simply because there is no reason against having it here, and in addition,
12853 # creating and moving files from /tmp can sometimes cause problems.
12854 # Hook for its removal unless debugging.
12855 # Note that there is a small window in which the directory will not be cleaned:
12856 # after its creation but before its name has been assigned to `$tmp'.
12857 $debug ||
12859 tmp= ac_tmp=
12860 trap 'exit_status=$?
12861 : "${ac_tmp:=$tmp}"
12862 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12864 trap 'as_fn_exit 1' 1 2 13 15
12866 # Create a (secure) tmp directory for tmp files.
12869 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12870 test -d "$tmp"
12871 } ||
12873 tmp=./conf$$-$RANDOM
12874 (umask 077 && mkdir "$tmp")
12875 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12876 ac_tmp=$tmp
12878 # Set up the scripts for CONFIG_FILES section.
12879 # No need to generate them if there are no CONFIG_FILES.
12880 # This happens for instance with `./config.status config.h'.
12881 if test -n "$CONFIG_FILES"; then
12884 ac_cr=`echo X | tr X '\015'`
12885 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12886 # But we know of no other shell where ac_cr would be empty at this
12887 # point, so we can use a bashism as a fallback.
12888 if test "x$ac_cr" = x; then
12889 eval ac_cr=\$\'\\r\'
12891 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12892 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12893 ac_cs_awk_cr='\\r'
12894 else
12895 ac_cs_awk_cr=$ac_cr
12898 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12899 _ACEOF
12903 echo "cat >conf$$subs.awk <<_ACEOF" &&
12904 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12905 echo "_ACEOF"
12906 } >conf$$subs.sh ||
12907 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12908 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12909 ac_delim='%!_!# '
12910 for ac_last_try in false false false false false :; do
12911 . ./conf$$subs.sh ||
12912 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12914 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12915 if test $ac_delim_n = $ac_delim_num; then
12916 break
12917 elif $ac_last_try; then
12918 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12919 else
12920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12922 done
12923 rm -f conf$$subs.sh
12925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12926 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12927 _ACEOF
12928 sed -n '
12930 s/^/S["/; s/!.*/"]=/
12933 s/^[^!]*!//
12934 :repl
12935 t repl
12936 s/'"$ac_delim"'$//
12937 t delim
12940 s/\(.\{148\}\)..*/\1/
12941 t more1
12942 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12945 b repl
12946 :more1
12947 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12950 s/.\{148\}//
12951 t nl
12952 :delim
12954 s/\(.\{148\}\)..*/\1/
12955 t more2
12956 s/["\\]/\\&/g; s/^/"/; s/$/"/
12959 :more2
12960 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12963 s/.\{148\}//
12964 t delim
12965 ' <conf$$subs.awk | sed '
12966 /^[^""]/{
12968 s/\n//
12970 ' >>$CONFIG_STATUS || ac_write_fail=1
12971 rm -f conf$$subs.awk
12972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12973 _ACAWK
12974 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12975 for (key in S) S_is_set[key] = 1
12976 FS = "\a"
12980 line = $ 0
12981 nfields = split(line, field, "@")
12982 substed = 0
12983 len = length(field[1])
12984 for (i = 2; i < nfields; i++) {
12985 key = field[i]
12986 keylen = length(key)
12987 if (S_is_set[key]) {
12988 value = S[key]
12989 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12990 len += length(value) + length(field[++i])
12991 substed = 1
12992 } else
12993 len += 1 + keylen
12996 print line
12999 _ACAWK
13000 _ACEOF
13001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13002 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13003 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13004 else
13006 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13007 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13008 _ACEOF
13010 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13011 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13012 # trailing colons and then remove the whole line if VPATH becomes empty
13013 # (actually we leave an empty line to preserve line numbers).
13014 if test "x$srcdir" = x.; then
13015 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13017 s///
13018 s/^/:/
13019 s/[ ]*$/:/
13020 s/:\$(srcdir):/:/g
13021 s/:\${srcdir}:/:/g
13022 s/:@srcdir@:/:/g
13023 s/^:*//
13024 s/:*$//
13026 s/\(=[ ]*\).*/\1/
13028 s/\n//
13029 s/^[^=]*=[ ]*$//
13033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13034 fi # test -n "$CONFIG_FILES"
13036 # Set up the scripts for CONFIG_HEADERS section.
13037 # No need to generate them if there are no CONFIG_HEADERS.
13038 # This happens for instance with `./config.status Makefile'.
13039 if test -n "$CONFIG_HEADERS"; then
13040 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13041 BEGIN {
13042 _ACEOF
13044 # Transform confdefs.h into an awk script `defines.awk', embedded as
13045 # here-document in config.status, that substitutes the proper values into
13046 # config.h.in to produce config.h.
13048 # Create a delimiter string that does not exist in confdefs.h, to ease
13049 # handling of long lines.
13050 ac_delim='%!_!# '
13051 for ac_last_try in false false :; do
13052 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13053 if test -z "$ac_tt"; then
13054 break
13055 elif $ac_last_try; then
13056 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13057 else
13058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13060 done
13062 # For the awk script, D is an array of macro values keyed by name,
13063 # likewise P contains macro parameters if any. Preserve backslash
13064 # newline sequences.
13066 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13067 sed -n '
13068 s/.\{148\}/&'"$ac_delim"'/g
13069 t rset
13070 :rset
13071 s/^[ ]*#[ ]*define[ ][ ]*/ /
13072 t def
13074 :def
13075 s/\\$//
13076 t bsnl
13077 s/["\\]/\\&/g
13078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13079 D["\1"]=" \3"/p
13080 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13082 :bsnl
13083 s/["\\]/\\&/g
13084 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13085 D["\1"]=" \3\\\\\\n"\\/p
13086 t cont
13087 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13088 t cont
13090 :cont
13092 s/.\{148\}/&'"$ac_delim"'/g
13093 t clear
13094 :clear
13095 s/\\$//
13096 t bsnlc
13097 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13099 :bsnlc
13100 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13101 b cont
13102 ' <confdefs.h | sed '
13103 s/'"$ac_delim"'/"\\\
13104 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107 for (key in D) D_is_set[key] = 1
13108 FS = "\a"
13110 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13111 line = \$ 0
13112 split(line, arg, " ")
13113 if (arg[1] == "#") {
13114 defundef = arg[2]
13115 mac1 = arg[3]
13116 } else {
13117 defundef = substr(arg[1], 2)
13118 mac1 = arg[2]
13120 split(mac1, mac2, "(") #)
13121 macro = mac2[1]
13122 prefix = substr(line, 1, index(line, defundef) - 1)
13123 if (D_is_set[macro]) {
13124 # Preserve the white space surrounding the "#".
13125 print prefix "define", macro P[macro] D[macro]
13126 next
13127 } else {
13128 # Replace #undef with comments. This is necessary, for example,
13129 # in the case of _POSIX_SOURCE, which is predefined and required
13130 # on some systems where configure will not decide to define it.
13131 if (defundef == "undef") {
13132 print "/*", prefix defundef, macro, "*/"
13133 next
13137 { print }
13138 _ACAWK
13139 _ACEOF
13140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13141 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13142 fi # test -n "$CONFIG_HEADERS"
13145 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13146 shift
13147 for ac_tag
13149 case $ac_tag in
13150 :[FHLC]) ac_mode=$ac_tag; continue;;
13151 esac
13152 case $ac_mode$ac_tag in
13153 :[FHL]*:*);;
13154 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13155 :[FH]-) ac_tag=-:-;;
13156 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13157 esac
13158 ac_save_IFS=$IFS
13159 IFS=:
13160 set x $ac_tag
13161 IFS=$ac_save_IFS
13162 shift
13163 ac_file=$1
13164 shift
13166 case $ac_mode in
13167 :L) ac_source=$1;;
13168 :[FH])
13169 ac_file_inputs=
13170 for ac_f
13172 case $ac_f in
13173 -) ac_f="$ac_tmp/stdin";;
13174 *) # Look for the file first in the build tree, then in the source tree
13175 # (if the path is not absolute). The absolute path cannot be DOS-style,
13176 # because $ac_f cannot contain `:'.
13177 test -f "$ac_f" ||
13178 case $ac_f in
13179 [\\/$]*) false;;
13180 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13181 esac ||
13182 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13183 esac
13184 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13185 as_fn_append ac_file_inputs " '$ac_f'"
13186 done
13188 # Let's still pretend it is `configure' which instantiates (i.e., don't
13189 # use $as_me), people would be surprised to read:
13190 # /* config.h. Generated by config.status. */
13191 configure_input='Generated from '`
13192 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13193 `' by configure.'
13194 if test x"$ac_file" != x-; then
13195 configure_input="$ac_file. $configure_input"
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13197 $as_echo "$as_me: creating $ac_file" >&6;}
13199 # Neutralize special characters interpreted by sed in replacement strings.
13200 case $configure_input in #(
13201 *\&* | *\|* | *\\* )
13202 ac_sed_conf_input=`$as_echo "$configure_input" |
13203 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13204 *) ac_sed_conf_input=$configure_input;;
13205 esac
13207 case $ac_tag in
13208 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13210 esac
13212 esac
13214 ac_dir=`$as_dirname -- "$ac_file" ||
13215 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13216 X"$ac_file" : 'X\(//\)[^/]' \| \
13217 X"$ac_file" : 'X\(//\)$' \| \
13218 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13219 $as_echo X"$ac_file" |
13220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13221 s//\1/
13224 /^X\(\/\/\)[^/].*/{
13225 s//\1/
13228 /^X\(\/\/\)$/{
13229 s//\1/
13232 /^X\(\/\).*/{
13233 s//\1/
13236 s/.*/./; q'`
13237 as_dir="$ac_dir"; as_fn_mkdir_p
13238 ac_builddir=.
13240 case "$ac_dir" in
13241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13243 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13244 # A ".." for each directory in $ac_dir_suffix.
13245 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13246 case $ac_top_builddir_sub in
13247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13249 esac ;;
13250 esac
13251 ac_abs_top_builddir=$ac_pwd
13252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13253 # for backward compatibility:
13254 ac_top_builddir=$ac_top_build_prefix
13256 case $srcdir in
13257 .) # We are building in place.
13258 ac_srcdir=.
13259 ac_top_srcdir=$ac_top_builddir_sub
13260 ac_abs_top_srcdir=$ac_pwd ;;
13261 [\\/]* | ?:[\\/]* ) # Absolute name.
13262 ac_srcdir=$srcdir$ac_dir_suffix;
13263 ac_top_srcdir=$srcdir
13264 ac_abs_top_srcdir=$srcdir ;;
13265 *) # Relative name.
13266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13267 ac_top_srcdir=$ac_top_build_prefix$srcdir
13268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13269 esac
13270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13273 case $ac_mode in
13276 # CONFIG_FILE
13279 case $INSTALL in
13280 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13281 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13282 esac
13283 ac_MKDIR_P=$MKDIR_P
13284 case $MKDIR_P in
13285 [\\/$]* | ?:[\\/]* ) ;;
13286 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13287 esac
13288 _ACEOF
13290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13291 # If the template does not know about datarootdir, expand it.
13292 # FIXME: This hack should be removed a few years after 2.60.
13293 ac_datarootdir_hack=; ac_datarootdir_seen=
13294 ac_sed_dataroot='
13295 /datarootdir/ {
13299 /@datadir@/p
13300 /@docdir@/p
13301 /@infodir@/p
13302 /@localedir@/p
13303 /@mandir@/p'
13304 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13305 *datarootdir*) ac_datarootdir_seen=yes;;
13306 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13308 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13309 _ACEOF
13310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311 ac_datarootdir_hack='
13312 s&@datadir@&$datadir&g
13313 s&@docdir@&$docdir&g
13314 s&@infodir@&$infodir&g
13315 s&@localedir@&$localedir&g
13316 s&@mandir@&$mandir&g
13317 s&\\\${datarootdir}&$datarootdir&g' ;;
13318 esac
13319 _ACEOF
13321 # Neutralize VPATH when `$srcdir' = `.'.
13322 # Shell code in configure.ac might set extrasub.
13323 # FIXME: do we really want to maintain this feature?
13324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13325 ac_sed_extra="$ac_vpsub
13326 $extrasub
13327 _ACEOF
13328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13331 s|@configure_input@|$ac_sed_conf_input|;t t
13332 s&@top_builddir@&$ac_top_builddir_sub&;t t
13333 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13334 s&@srcdir@&$ac_srcdir&;t t
13335 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13336 s&@top_srcdir@&$ac_top_srcdir&;t t
13337 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13338 s&@builddir@&$ac_builddir&;t t
13339 s&@abs_builddir@&$ac_abs_builddir&;t t
13340 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13341 s&@INSTALL@&$ac_INSTALL&;t t
13342 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13343 $ac_datarootdir_hack
13345 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13346 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13349 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13351 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13353 which seems to be undefined. Please make sure it is defined" >&5
13354 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13355 which seems to be undefined. Please make sure it is defined" >&2;}
13357 rm -f "$ac_tmp/stdin"
13358 case $ac_file in
13359 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13360 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13361 esac \
13362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13366 # CONFIG_HEADER
13368 if test x"$ac_file" != x-; then
13370 $as_echo "/* $configure_input */" \
13371 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13372 } >"$ac_tmp/config.h" \
13373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13374 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13376 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13377 else
13378 rm -f "$ac_file"
13379 mv "$ac_tmp/config.h" "$ac_file" \
13380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13382 else
13383 $as_echo "/* $configure_input */" \
13384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13385 || as_fn_error $? "could not create -" "$LINENO" 5
13387 # Compute "$ac_file"'s index in $config_headers.
13388 _am_arg="$ac_file"
13389 _am_stamp_count=1
13390 for _am_header in $config_headers :; do
13391 case $_am_header in
13392 $_am_arg | $_am_arg:* )
13393 break ;;
13395 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13396 esac
13397 done
13398 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13399 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13400 X"$_am_arg" : 'X\(//\)[^/]' \| \
13401 X"$_am_arg" : 'X\(//\)$' \| \
13402 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13403 $as_echo X"$_am_arg" |
13404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13405 s//\1/
13408 /^X\(\/\/\)[^/].*/{
13409 s//\1/
13412 /^X\(\/\/\)$/{
13413 s//\1/
13416 /^X\(\/\).*/{
13417 s//\1/
13420 s/.*/./; q'`/stamp-h$_am_stamp_count
13423 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13424 $as_echo "$as_me: executing $ac_file commands" >&6;}
13426 esac
13429 case $ac_file$ac_mode in
13430 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13431 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13432 # are listed without --file. Let's play safe and only enable the eval
13433 # if we detect the quoting.
13434 case $CONFIG_FILES in
13435 *\'*) eval set x "$CONFIG_FILES" ;;
13436 *) set x $CONFIG_FILES ;;
13437 esac
13438 shift
13439 for mf
13441 # Strip MF so we end up with the name of the file.
13442 mf=`echo "$mf" | sed -e 's/:.*$//'`
13443 # Check whether this is an Automake generated Makefile or not.
13444 # We used to match only the files named `Makefile.in', but
13445 # some people rename them; so instead we look at the file content.
13446 # Grep'ing the first line is not enough: some people post-process
13447 # each Makefile.in and add a new line on top of each file to say so.
13448 # Grep'ing the whole file is not good either: AIX grep has a line
13449 # limit of 2048, but all sed's we know have understand at least 4000.
13450 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13451 dirpart=`$as_dirname -- "$mf" ||
13452 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13453 X"$mf" : 'X\(//\)[^/]' \| \
13454 X"$mf" : 'X\(//\)$' \| \
13455 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13456 $as_echo X"$mf" |
13457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13458 s//\1/
13461 /^X\(\/\/\)[^/].*/{
13462 s//\1/
13465 /^X\(\/\/\)$/{
13466 s//\1/
13469 /^X\(\/\).*/{
13470 s//\1/
13473 s/.*/./; q'`
13474 else
13475 continue
13477 # Extract the definition of DEPDIR, am__include, and am__quote
13478 # from the Makefile without running `make'.
13479 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13480 test -z "$DEPDIR" && continue
13481 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13482 test -z "am__include" && continue
13483 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13484 # When using ansi2knr, U may be empty or an underscore; expand it
13485 U=`sed -n 's/^U = //p' < "$mf"`
13486 # Find all dependency output files, they are included files with
13487 # $(DEPDIR) in their names. We invoke sed twice because it is the
13488 # simplest approach to changing $(DEPDIR) to its actual value in the
13489 # expansion.
13490 for file in `sed -n "
13491 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13492 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13493 # Make sure the directory exists.
13494 test -f "$dirpart/$file" && continue
13495 fdir=`$as_dirname -- "$file" ||
13496 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13497 X"$file" : 'X\(//\)[^/]' \| \
13498 X"$file" : 'X\(//\)$' \| \
13499 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13500 $as_echo X"$file" |
13501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13502 s//\1/
13505 /^X\(\/\/\)[^/].*/{
13506 s//\1/
13509 /^X\(\/\/\)$/{
13510 s//\1/
13513 /^X\(\/\).*/{
13514 s//\1/
13517 s/.*/./; q'`
13518 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13519 # echo "creating $dirpart/$file"
13520 echo '# dummy' > "$dirpart/$file"
13521 done
13522 done
13525 "libtool":C)
13527 # See if we are running on zsh, and set the options which allow our
13528 # commands through without removal of \ escapes.
13529 if test -n "${ZSH_VERSION+set}" ; then
13530 setopt NO_GLOB_SUBST
13533 cfgfile="${ofile}T"
13534 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13535 $RM "$cfgfile"
13537 cat <<_LT_EOF >> "$cfgfile"
13538 #! $SHELL
13540 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13541 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13542 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13543 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13545 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13546 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13547 # Foundation, Inc.
13548 # Written by Gordon Matzigkeit, 1996
13550 # This file is part of GNU Libtool.
13552 # GNU Libtool is free software; you can redistribute it and/or
13553 # modify it under the terms of the GNU General Public License as
13554 # published by the Free Software Foundation; either version 2 of
13555 # the License, or (at your option) any later version.
13557 # As a special exception to the GNU General Public License,
13558 # if you distribute this file as part of a program or library that
13559 # is built using GNU Libtool, you may include this file under the
13560 # same distribution terms that you use for the rest of that program.
13562 # GNU Libtool is distributed in the hope that it will be useful,
13563 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13564 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13565 # GNU General Public License for more details.
13567 # You should have received a copy of the GNU General Public License
13568 # along with GNU Libtool; see the file COPYING. If not, a copy
13569 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13570 # obtained by writing to the Free Software Foundation, Inc.,
13571 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13574 # The names of the tagged configurations supported by this script.
13575 available_tags=""
13577 # ### BEGIN LIBTOOL CONFIG
13579 # Which release of libtool.m4 was used?
13580 macro_version=$macro_version
13581 macro_revision=$macro_revision
13583 # Whether or not to build shared libraries.
13584 build_libtool_libs=$enable_shared
13586 # Whether or not to build static libraries.
13587 build_old_libs=$enable_static
13589 # What type of objects to build.
13590 pic_mode=$pic_mode
13592 # Whether or not to optimize for fast installation.
13593 fast_install=$enable_fast_install
13595 # Shell to use when invoking shell scripts.
13596 SHELL=$lt_SHELL
13598 # An echo program that protects backslashes.
13599 ECHO=$lt_ECHO
13601 # The PATH separator for the build system.
13602 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13604 # The host system.
13605 host_alias=$host_alias
13606 host=$host
13607 host_os=$host_os
13609 # The build system.
13610 build_alias=$build_alias
13611 build=$build
13612 build_os=$build_os
13614 # A sed program that does not truncate output.
13615 SED=$lt_SED
13617 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13618 Xsed="\$SED -e 1s/^X//"
13620 # A grep program that handles long lines.
13621 GREP=$lt_GREP
13623 # An ERE matcher.
13624 EGREP=$lt_EGREP
13626 # A literal string matcher.
13627 FGREP=$lt_FGREP
13629 # A BSD- or MS-compatible name lister.
13630 NM=$lt_NM
13632 # Whether we need soft or hard links.
13633 LN_S=$lt_LN_S
13635 # What is the maximum length of a command?
13636 max_cmd_len=$max_cmd_len
13638 # Object file suffix (normally "o").
13639 objext=$ac_objext
13641 # Executable file suffix (normally "").
13642 exeext=$exeext
13644 # whether the shell understands "unset".
13645 lt_unset=$lt_unset
13647 # turn spaces into newlines.
13648 SP2NL=$lt_lt_SP2NL
13650 # turn newlines into spaces.
13651 NL2SP=$lt_lt_NL2SP
13653 # convert \$build file names to \$host format.
13654 to_host_file_cmd=$lt_cv_to_host_file_cmd
13656 # convert \$build files to toolchain format.
13657 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13659 # An object symbol dumper.
13660 OBJDUMP=$lt_OBJDUMP
13662 # Method to check whether dependent libraries are shared objects.
13663 deplibs_check_method=$lt_deplibs_check_method
13665 # Command to use when deplibs_check_method = "file_magic".
13666 file_magic_cmd=$lt_file_magic_cmd
13668 # How to find potential files when deplibs_check_method = "file_magic".
13669 file_magic_glob=$lt_file_magic_glob
13671 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13672 want_nocaseglob=$lt_want_nocaseglob
13674 # DLL creation program.
13675 DLLTOOL=$lt_DLLTOOL
13677 # Command to associate shared and link libraries.
13678 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13680 # The archiver.
13681 AR=$lt_AR
13683 # Flags to create an archive.
13684 AR_FLAGS=$lt_AR_FLAGS
13686 # How to feed a file listing to the archiver.
13687 archiver_list_spec=$lt_archiver_list_spec
13689 # A symbol stripping program.
13690 STRIP=$lt_STRIP
13692 # Commands used to install an old-style archive.
13693 RANLIB=$lt_RANLIB
13694 old_postinstall_cmds=$lt_old_postinstall_cmds
13695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13697 # Whether to use a lock for old archive extraction.
13698 lock_old_archive_extraction=$lock_old_archive_extraction
13700 # A C compiler.
13701 LTCC=$lt_CC
13703 # LTCC compiler flags.
13704 LTCFLAGS=$lt_CFLAGS
13706 # Take the output of nm and produce a listing of raw symbols and C names.
13707 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13709 # Transform the output of nm in a proper C declaration.
13710 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13712 # Transform the output of nm in a C name address pair.
13713 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13715 # Transform the output of nm in a C name address pair when lib prefix is needed.
13716 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13718 # Specify filename containing input files for \$NM.
13719 nm_file_list_spec=$lt_nm_file_list_spec
13721 # The root where to search for dependent libraries,and in which our libraries should be installed.
13722 lt_sysroot=$lt_sysroot
13724 # The name of the directory that contains temporary libtool files.
13725 objdir=$objdir
13727 # Used to examine libraries when file_magic_cmd begins with "file".
13728 MAGIC_CMD=$MAGIC_CMD
13730 # Must we lock files when doing compilation?
13731 need_locks=$lt_need_locks
13733 # Manifest tool.
13734 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13736 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13737 DSYMUTIL=$lt_DSYMUTIL
13739 # Tool to change global to local symbols on Mac OS X.
13740 NMEDIT=$lt_NMEDIT
13742 # Tool to manipulate fat objects and archives on Mac OS X.
13743 LIPO=$lt_LIPO
13745 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13746 OTOOL=$lt_OTOOL
13748 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13749 OTOOL64=$lt_OTOOL64
13751 # Old archive suffix (normally "a").
13752 libext=$libext
13754 # Shared library suffix (normally ".so").
13755 shrext_cmds=$lt_shrext_cmds
13757 # The commands to extract the exported symbol list from a shared archive.
13758 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13760 # Variables whose values should be saved in libtool wrapper scripts and
13761 # restored at link time.
13762 variables_saved_for_relink=$lt_variables_saved_for_relink
13764 # Do we need the "lib" prefix for modules?
13765 need_lib_prefix=$need_lib_prefix
13767 # Do we need a version for libraries?
13768 need_version=$need_version
13770 # Library versioning type.
13771 version_type=$version_type
13773 # Shared library runtime path variable.
13774 runpath_var=$runpath_var
13776 # Shared library path variable.
13777 shlibpath_var=$shlibpath_var
13779 # Is shlibpath searched before the hard-coded library search path?
13780 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13782 # Format of library name prefix.
13783 libname_spec=$lt_libname_spec
13785 # List of archive names. First name is the real one, the rest are links.
13786 # The last name is the one that the linker finds with -lNAME
13787 library_names_spec=$lt_library_names_spec
13789 # The coded name of the library, if different from the real name.
13790 soname_spec=$lt_soname_spec
13792 # Permission mode override for installation of shared libraries.
13793 install_override_mode=$lt_install_override_mode
13795 # Command to use after installation of a shared archive.
13796 postinstall_cmds=$lt_postinstall_cmds
13798 # Command to use after uninstallation of a shared archive.
13799 postuninstall_cmds=$lt_postuninstall_cmds
13801 # Commands used to finish a libtool library installation in a directory.
13802 finish_cmds=$lt_finish_cmds
13804 # As "finish_cmds", except a single script fragment to be evaled but
13805 # not shown.
13806 finish_eval=$lt_finish_eval
13808 # Whether we should hardcode library paths into libraries.
13809 hardcode_into_libs=$hardcode_into_libs
13811 # Compile-time system search path for libraries.
13812 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13814 # Run-time system search path for libraries.
13815 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13817 # Whether dlopen is supported.
13818 dlopen_support=$enable_dlopen
13820 # Whether dlopen of programs is supported.
13821 dlopen_self=$enable_dlopen_self
13823 # Whether dlopen of statically linked programs is supported.
13824 dlopen_self_static=$enable_dlopen_self_static
13826 # Commands to strip libraries.
13827 old_striplib=$lt_old_striplib
13828 striplib=$lt_striplib
13831 # The linker used to build libraries.
13832 LD=$lt_LD
13834 # How to create reloadable object files.
13835 reload_flag=$lt_reload_flag
13836 reload_cmds=$lt_reload_cmds
13838 # Commands used to build an old-style archive.
13839 old_archive_cmds=$lt_old_archive_cmds
13841 # A language specific compiler.
13842 CC=$lt_compiler
13844 # Is the compiler the GNU compiler?
13845 with_gcc=$GCC
13847 # Compiler flag to turn off builtin functions.
13848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13850 # Additional compiler flags for building library objects.
13851 pic_flag=$lt_lt_prog_compiler_pic
13853 # How to pass a linker flag through the compiler.
13854 wl=$lt_lt_prog_compiler_wl
13856 # Compiler flag to prevent dynamic linking.
13857 link_static_flag=$lt_lt_prog_compiler_static
13859 # Does compiler simultaneously support -c and -o options?
13860 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13862 # Whether or not to add -lc for building shared libraries.
13863 build_libtool_need_lc=$archive_cmds_need_lc
13865 # Whether or not to disallow shared libs when runtime libs are static.
13866 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13868 # Compiler flag to allow reflexive dlopens.
13869 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13871 # Compiler flag to generate shared objects directly from archives.
13872 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13874 # Whether the compiler copes with passing no objects directly.
13875 compiler_needs_object=$lt_compiler_needs_object
13877 # Create an old-style archive from a shared archive.
13878 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13880 # Create a temporary old-style archive to link instead of a shared archive.
13881 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13883 # Commands used to build a shared archive.
13884 archive_cmds=$lt_archive_cmds
13885 archive_expsym_cmds=$lt_archive_expsym_cmds
13887 # Commands used to build a loadable module if different from building
13888 # a shared archive.
13889 module_cmds=$lt_module_cmds
13890 module_expsym_cmds=$lt_module_expsym_cmds
13892 # Whether we are building with GNU ld or not.
13893 with_gnu_ld=$lt_with_gnu_ld
13895 # Flag that allows shared libraries with undefined symbols to be built.
13896 allow_undefined_flag=$lt_allow_undefined_flag
13898 # Flag that enforces no undefined symbols.
13899 no_undefined_flag=$lt_no_undefined_flag
13901 # Flag to hardcode \$libdir into a binary during linking.
13902 # This must work even if \$libdir does not exist
13903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13905 # Whether we need a single "-rpath" flag with a separated argument.
13906 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13908 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13909 # DIR into the resulting binary.
13910 hardcode_direct=$hardcode_direct
13912 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13913 # DIR into the resulting binary and the resulting library dependency is
13914 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13915 # library is relocated.
13916 hardcode_direct_absolute=$hardcode_direct_absolute
13918 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13919 # into the resulting binary.
13920 hardcode_minus_L=$hardcode_minus_L
13922 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13923 # into the resulting binary.
13924 hardcode_shlibpath_var=$hardcode_shlibpath_var
13926 # Set to "yes" if building a shared library automatically hardcodes DIR
13927 # into the library and all subsequent libraries and executables linked
13928 # against it.
13929 hardcode_automatic=$hardcode_automatic
13931 # Set to yes if linker adds runtime paths of dependent libraries
13932 # to runtime path list.
13933 inherit_rpath=$inherit_rpath
13935 # Whether libtool must link a program against all its dependency libraries.
13936 link_all_deplibs=$link_all_deplibs
13938 # Set to "yes" if exported symbols are required.
13939 always_export_symbols=$always_export_symbols
13941 # The commands to list exported symbols.
13942 export_symbols_cmds=$lt_export_symbols_cmds
13944 # Symbols that should not be listed in the preloaded symbols.
13945 exclude_expsyms=$lt_exclude_expsyms
13947 # Symbols that must always be exported.
13948 include_expsyms=$lt_include_expsyms
13950 # Commands necessary for linking programs (against libraries) with templates.
13951 prelink_cmds=$lt_prelink_cmds
13953 # Commands necessary for finishing linking programs.
13954 postlink_cmds=$lt_postlink_cmds
13956 # Specify filename containing input files.
13957 file_list_spec=$lt_file_list_spec
13959 # How to hardcode a shared library path into an executable.
13960 hardcode_action=$hardcode_action
13962 # ### END LIBTOOL CONFIG
13964 _LT_EOF
13966 case $host_os in
13967 aix3*)
13968 cat <<\_LT_EOF >> "$cfgfile"
13969 # AIX sometimes has problems with the GCC collect2 program. For some
13970 # reason, if we set the COLLECT_NAMES environment variable, the problems
13971 # vanish in a puff of smoke.
13972 if test "X${COLLECT_NAMES+set}" != Xset; then
13973 COLLECT_NAMES=
13974 export COLLECT_NAMES
13976 _LT_EOF
13978 esac
13981 ltmain="$ac_aux_dir/ltmain.sh"
13984 # We use sed instead of cat because bash on DJGPP gets confused if
13985 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13986 # text mode, it properly converts lines to CR/LF. This bash problem
13987 # is reportedly fixed, but why not run on old versions too?
13988 sed '$q' "$ltmain" >> "$cfgfile" \
13989 || (rm -f "$cfgfile"; exit 1)
13991 if test x"$xsi_shell" = xyes; then
13992 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13993 func_dirname ()\
13995 \ case ${1} in\
13996 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13997 \ * ) func_dirname_result="${3}" ;;\
13998 \ esac\
13999 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14000 && mv -f "$cfgfile.tmp" "$cfgfile" \
14001 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14002 test 0 -eq $? || _lt_function_replace_fail=:
14005 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14006 func_basename ()\
14008 \ func_basename_result="${1##*/}"\
14009 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14010 && mv -f "$cfgfile.tmp" "$cfgfile" \
14011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14012 test 0 -eq $? || _lt_function_replace_fail=:
14015 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14016 func_dirname_and_basename ()\
14018 \ case ${1} in\
14019 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14020 \ * ) func_dirname_result="${3}" ;;\
14021 \ esac\
14022 \ func_basename_result="${1##*/}"\
14023 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14024 && mv -f "$cfgfile.tmp" "$cfgfile" \
14025 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14026 test 0 -eq $? || _lt_function_replace_fail=:
14029 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14030 func_stripname ()\
14032 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14033 \ # positional parameters, so assign one to ordinary parameter first.\
14034 \ func_stripname_result=${3}\
14035 \ func_stripname_result=${func_stripname_result#"${1}"}\
14036 \ func_stripname_result=${func_stripname_result%"${2}"}\
14037 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14038 && mv -f "$cfgfile.tmp" "$cfgfile" \
14039 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14040 test 0 -eq $? || _lt_function_replace_fail=:
14043 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14044 func_split_long_opt ()\
14046 \ func_split_long_opt_name=${1%%=*}\
14047 \ func_split_long_opt_arg=${1#*=}\
14048 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14049 && mv -f "$cfgfile.tmp" "$cfgfile" \
14050 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14051 test 0 -eq $? || _lt_function_replace_fail=:
14054 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14055 func_split_short_opt ()\
14057 \ func_split_short_opt_arg=${1#??}\
14058 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14059 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14060 && mv -f "$cfgfile.tmp" "$cfgfile" \
14061 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14062 test 0 -eq $? || _lt_function_replace_fail=:
14065 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14066 func_lo2o ()\
14068 \ case ${1} in\
14069 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14070 \ *) func_lo2o_result=${1} ;;\
14071 \ esac\
14072 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14073 && mv -f "$cfgfile.tmp" "$cfgfile" \
14074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14075 test 0 -eq $? || _lt_function_replace_fail=:
14078 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14079 func_xform ()\
14081 func_xform_result=${1%.*}.lo\
14082 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14083 && mv -f "$cfgfile.tmp" "$cfgfile" \
14084 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14085 test 0 -eq $? || _lt_function_replace_fail=:
14088 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14089 func_arith ()\
14091 func_arith_result=$(( $* ))\
14092 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14093 && mv -f "$cfgfile.tmp" "$cfgfile" \
14094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14095 test 0 -eq $? || _lt_function_replace_fail=:
14098 sed -e '/^func_len ()$/,/^} # func_len /c\
14099 func_len ()\
14101 func_len_result=${#1}\
14102 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14103 && mv -f "$cfgfile.tmp" "$cfgfile" \
14104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14105 test 0 -eq $? || _lt_function_replace_fail=:
14109 if test x"$lt_shell_append" = xyes; then
14110 sed -e '/^func_append ()$/,/^} # func_append /c\
14111 func_append ()\
14113 eval "${1}+=\\${2}"\
14114 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14115 && mv -f "$cfgfile.tmp" "$cfgfile" \
14116 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14117 test 0 -eq $? || _lt_function_replace_fail=:
14120 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14121 func_append_quoted ()\
14123 \ func_quote_for_eval "${2}"\
14124 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14125 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14126 && mv -f "$cfgfile.tmp" "$cfgfile" \
14127 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14128 test 0 -eq $? || _lt_function_replace_fail=:
14131 # Save a `func_append' function call where possible by direct use of '+='
14132 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14133 && mv -f "$cfgfile.tmp" "$cfgfile" \
14134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14135 test 0 -eq $? || _lt_function_replace_fail=:
14136 else
14137 # Save a `func_append' function call even when '+=' is not available
14138 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14139 && mv -f "$cfgfile.tmp" "$cfgfile" \
14140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14141 test 0 -eq $? || _lt_function_replace_fail=:
14144 if test x"$_lt_function_replace_fail" = x":"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14146 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14150 mv -f "$cfgfile" "$ofile" ||
14151 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14152 chmod +x "$ofile"
14156 esac
14157 done # for ac_tag
14160 as_fn_exit 0
14161 _ACEOF
14162 ac_clean_files=$ac_clean_files_save
14164 test $ac_write_fail = 0 ||
14165 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14168 # configure is writing to config.log, and then calls config.status.
14169 # config.status does its own redirection, appending to config.log.
14170 # Unfortunately, on DOS this fails, as config.log is still kept open
14171 # by configure, so config.status won't be able to write to it; its
14172 # output is simply discarded. So we exec the FD to /dev/null,
14173 # effectively closing config.log, so it can be properly (re)opened and
14174 # appended to by config.status. When coming back to configure, we
14175 # need to make the FD available again.
14176 if test "$no_create" != yes; then
14177 ac_cs_success=:
14178 ac_config_status_args=
14179 test "$silent" = yes &&
14180 ac_config_status_args="$ac_config_status_args --quiet"
14181 exec 5>/dev/null
14182 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14183 exec 5>>config.log
14184 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14185 # would make configure fail if this is the last instruction.
14186 $ac_cs_success || as_fn_exit 1
14188 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14190 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}